/* ── Fonts ────────────────────────────────────────────────── */

@font-face {
  font-family: "B612";
  src: url("/fonts/b612.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "B612";
  src: url("/fonts/b612-bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "B612";
  src: url("/fonts/b612-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "B612";
  src: url("/fonts/b612-bold-italic.woff2") format("woff2");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "B612 Mono";
  src: url("/fonts/b612mono.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "B612 Mono";
  src: url("/fonts/b612mono-bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ── Palette (mirrors the app's custom properties) ───────── */

:root {
  --accent: #5a7a94;
  --accent-hover: #48677f;
  --accent-subtle: rgba(90, 122, 148, 0.1);
  --text-primary: #1c1c1c;
  --text-secondary: #5c5c5c;
  --text-muted: #9a9a9a;
  --bg-primary: #ffffff;
  --bg-secondary: #f7f7f7;
  --border: #e2e2e2;
  --card-bg: #ffffff;
  --success: #22c55e;
}

/* ── Reset & Base ─────────────────────────────────────────── */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: "B612", sans-serif;
  color: var(--text-primary);
  background: var(--bg-secondary);
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ── Layout ──────────────────────────────────────────────── */

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Hero ─────────────────────────────────────────────────── */

.hero {
  padding: 100px 0 80px;
  text-align: center;
  background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.hero .tagline {
  font-size: 1.35rem;
  color: var(--text-primary);
  margin-bottom: 16px;
  font-weight: 500;
}

.hero .subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 32px;
}

.hero .cta {
  margin-bottom: 16px;
}

.hero .platforms {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ── Demo panels (hero) ──────────────────────────────────── */

.demo {
  max-width: 860px;
  margin: 0 auto 40px;
  text-align: left;
}

.demo-panels {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 20px;
  align-items: start;
}

/* ── Panel chrome ────────────────────────────────────────── */

.demo-panel {
  display: flex;
  flex-direction: column;
  height: 420px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  background: var(--card-bg);
}

.panel-chrome {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  background: #2a2a2a;
  flex-shrink: 0;
}

.chrome-dots {
  display: flex;
  gap: 6px;
}

.chrome-dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: block;
}

.chrome-dots i:nth-child(1) { background: #ff5f57; }
.chrome-dots i:nth-child(2) { background: #febc2e; }
.chrome-dots i:nth-child(3) { background: #28c840; }

.chrome-title {
  font-family: "B612", sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  color: #a0a0a0;
  letter-spacing: 0.01em;
}

.panel-path {
  padding: 6px 14px;
  font-family: "B612 Mono", monospace;
  font-size: 0.7rem;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-shrink: 0;
}

.path-current {
  color: var(--text-primary);
  font-weight: 600;
}

/* ── Panel body (shared between source & carousel) ───────── */

.panel-body {
  flex: 1;
  padding: 6px 0;
  font-family: "B612 Mono", monospace;
  font-size: 0.72rem;
  line-height: 1;
  overflow: hidden;
  position: relative;
}

/* ── File entries ────────────────────────────────────────── */

.file {
  padding: 3px 14px 3px 28px;
  color: var(--text-primary);
  white-space: nowrap;
  position: relative;
}

.file::before {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.file.raw::before {
  background: #d4a017;
  left: 15px;
}

.file.jpg::before {
  background: var(--accent);
  left: 15px;
}

/* ── Source panel "more" indicator ────────────────────────── */

.panel-more {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 14px 8px;
  color: var(--text-muted);
  font-style: italic;
  font-family: "B612", sans-serif;
  font-size: 0.72rem;
  background: linear-gradient(transparent, var(--card-bg) 50%);
}

/* ── Tree view (destination library) ─────────────────────── */

.tree-folder {
  padding: 3px 14px 3px 28px;
  color: var(--text-primary);
  font-weight: 600;
  white-space: nowrap;
  position: relative;
}

.tree-folder::before {
  content: "\25B8";
  position: absolute;
  left: 14px;
  font-size: 0.65rem;
  color: var(--accent);
}

.depth-1 { padding-left: 44px; }
.depth-1.tree-folder::before { left: 30px; }
.depth-1.file::before { left: 31px; }

.depth-2 { padding-left: 60px; }
.depth-2.file::before { left: 47px; }

/* ── Carousel (rotating destination templates) ───────────── */

.carousel {
  position: relative;
  flex: 1;
  overflow: hidden;
  font-family: "B612 Mono", monospace;
  font-size: 0.72rem;
  line-height: 1;
}

.carousel::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 28px;
  background: linear-gradient(transparent, var(--card-bg));
  pointer-events: none;
  z-index: 2;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  padding: 0;
  overflow: hidden;
  opacity: 0;
}

.slide-a { animation: carouselA 15s ease-in-out infinite; }
.slide-b { animation: carouselB 15s ease-in-out infinite; }
.slide-c { animation: carouselC 15s ease-in-out infinite; }

@keyframes carouselA {
  0%, 28%  { opacity: 1; }
  33%, 93% { opacity: 0; }
  100%     { opacity: 1; }
}

@keyframes carouselB {
  0%, 28%  { opacity: 0; }
  33%, 61% { opacity: 1; }
  66%, 100%{ opacity: 0; }
}

@keyframes carouselC {
  0%, 61%  { opacity: 0; }
  66%, 93% { opacity: 1; }
  100%     { opacity: 0; }
}

/* Template label inside each slide */
.slide-template {
  padding: 5px 14px;
  font-size: 0.65rem;
  color: var(--accent);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Stack effect (cards peeking behind dest panel) ──────── */

.demo-stack {
  position: relative;
  margin-right: 10px;
  margin-bottom: 10px;
}

.demo-stack::before,
.demo-stack::after {
  content: '';
  position: absolute;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--card-bg);
}

.demo-stack::before {
  top: 5px;
  left: 5px;
  right: -5px;
  bottom: -5px;
  z-index: -1;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.demo-stack::after {
  top: 10px;
  left: 10px;
  right: -10px;
  bottom: -10px;
  z-index: -2;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

/* ── Arrow between panels ────────────────────────────────── */

.demo-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
  padding-top: 160px;
}

.demo-arrow svg {
  width: 40px;
  height: 24px;
}

/* ── Reduced motion ──────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  .carousel-slide {
    animation: none !important;
    opacity: 0;
  }
  .carousel-slide:first-child {
    opacity: 1;
  }
}

/* ── Demo responsive ─────────────────────────────────────── */

@media (max-width: 768px) {
  .demo-panels {
    grid-template-columns: 1fr;
    gap: 12px;
    max-width: 360px;
    margin: 0 auto;
  }

  .demo-panel {
    height: 340px;
  }

  .demo-arrow {
    padding-top: 0;
  }

  .demo-arrow svg {
    transform: rotate(90deg);
    width: 32px;
    height: 20px;
  }

  .demo-stack {
    margin-right: 10px;
  }
}

/* ── Buttons ──────────────────────────────────────────────── */

.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 8px;
  font-size: 1.05rem;
  font-weight: 600;
  transition: background 0.15s, transform 0.1s;
  cursor: pointer;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-secondary {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
}

.btn-secondary:hover {
  background: var(--accent);
  color: #fff;
}

.cta-pair {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

/* ── Features ─────────────────────────────────────────────── */

.features {
  padding: 20px 0;
}

.features h2 {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 32px;
  letter-spacing: -0.01em;
}
.features .subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 16px auto 16px;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.feature {
  padding: 24px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.feature h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.feature p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ── Pricing ──────────────────────────────────────────────── */

.pricing {
  padding: 80px 0;
  background: var(--bg-primary);
  border-top: 1px solid var(--border);
}

.pricing h2 {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.pricing-lede {
  text-align: center;
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0 auto 48px;
  font-size: 1.05rem;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  align-items: stretch;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 32px 28px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.plan-pro {
  border-color: var(--accent);
  box-shadow: 0 8px 32px rgba(90, 122, 148, 0.12);
}

.plan-badge {
  position: absolute;
  top: -12px;
  right: 24px;
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
}

.plan-header h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.plan-price {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.plan-price-note {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-left: 4px;
}

.plan-tagline {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 24px;
}

.plan-features {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  flex: 1;
}

.plan-features li {
  position: relative;
  padding: 8px 0 8px 24px;
  color: var(--text-primary);
  font-size: 0.95rem;
  border-bottom: 1px solid var(--bg-secondary);
}

.plan-features li:last-child {
  border-bottom: none;
}

.plan-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 8px;
  color: var(--accent);
  font-weight: 700;
}

.plan-cta {
  display: block;
  text-align: center;
  margin-bottom: 12px;
}

.plan-foot {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ── Screenshot ───────────────────────────────────────────── */

.screenshot {
  padding: 40px 0 80px;
  text-align: center;
}

.screenshot img {
  margin: 0 auto;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--border);
}

/* ── Bottom CTA ───────────────────────────────────────────── */

.bottom-cta {
  padding: 80px 0;
  text-align: center;
  background: var(--bg-primary);
  border-top: 1px solid var(--border);
}

.bottom-cta h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.bottom-cta p {
  color: var(--text-secondary);
  margin-bottom: 24px;
}

/* ── Footer ───────────────────────────────────────────────── */

.site-footer {
  padding: 40px 0 32px;
  text-align: center;
  background: var(--bg-primary);
  border-top: 1px solid var(--border);
}

.site-footer .footer-links {
  list-style: none;
  display: flex;
  gap: 24px;
  justify-content: center;
  margin: 0 0 12px;
  padding: 0;
  flex-wrap: wrap;
}

.site-footer .footer-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  text-decoration: none;
}

.site-footer .footer-links a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.site-footer .footer-copy {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
}

/* ── Legal page ───────────────────────────────────────────── */

.container-narrow {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

.legal {
  padding: 80px 0;
  background: var(--bg-primary);
  border-top: 1px solid var(--border);
}

.legal h1 {
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 32px;
}

.prose h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-top: 40px;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.prose h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 24px;
  margin-bottom: 8px;
}

.prose p,
.prose li {
  font-size: 1rem;
  color: var(--text-primary);
  line-height: 1.65;
}

.prose p {
  margin-bottom: 16px;
}

.prose ul {
  padding-left: 24px;
  margin-bottom: 16px;
}

.prose li {
  margin-bottom: 6px;
}

.prose a {
  color: var(--accent);
  text-decoration: underline;
}

.prose a:hover {
  color: var(--accent-hover);
}

.prose strong {
  color: var(--text-primary);
}

.prose blockquote {
  border-left: 3px solid var(--accent);
  padding: 16px 20px;
  background: var(--bg-secondary);
  margin: 0 0 24px;
  border-radius: 0 6px 6px 0;
}

.prose blockquote p:last-child {
  margin-bottom: 0;
}

.prose hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 32px 0;
}

.prose code {
  font-family: "B612 Mono", monospace;
  font-size: 0.9em;
  background: var(--bg-secondary);
  padding: 2px 6px;
  border-radius: 4px;
}

/* ── Responsive ───────────────────────────────────────────── */

@media (max-width: 768px) {
  .hero {
    padding: 64px 0 48px;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero .tagline {
    font-size: 1.1rem;
  }

  .feature-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .features {
    padding: 48px 0;
  }

  .pricing {
    padding: 48px 0;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .cta-pair {
    display: flex;
    flex-direction: column;
    width: 100%;
  }

  .cta-pair .btn {
    width: 100%;
  }

  .legal {
    padding: 48px 0;
  }

  .legal h1 {
    font-size: 1.9rem;
  }

  .site-footer .footer-links {
    gap: 16px;
  }
}
