/* ============================================================
   FeedFlow landing — brand system
   Direction: ink navy canvas (#0E1420) + single orange accent
   (#F97316) + amber ramp (#FB923C/#FDBA74) + cream text (#FFF3E4).
   Motif: RSS dot + quarter arcs sweeping up-right (from avatar gen).
   Dials: ENERGY 2 / RHYTHM 2 / MOTION 1. Dark is the brand theme,
   not a default. Icons: Tabler outline, stroke 1.5.
   ============================================================ */

:root {
  --ink: #0E1420;
  --ink-soft: #16202E;
  --ink-card: #141D2A;
  --line: #243143;
  --orange: #F97316;
  --orange-deep: #EA580C;
  --amber: #FB923C;
  --amber-pale: #FDBA74;
  --cream: #FFF3E4;
  --text: #EDE4D6;
  --muted: #96A2B3;
  --radius: 14px;
  --font: "Outfit", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --wrap: 1120px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--text);
  font-family: var(--font);
  font-size: 16.5px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.mono { font-family: var(--mono); }

h1, h2, h3 { color: var(--cream); letter-spacing: -0.02em; line-height: 1.08; }
h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 700; }
h3 { font-size: 18px; font-weight: 600; }

a { color: var(--amber-pale); text-decoration: none; }
a:focus-visible, button:focus-visible, summary:focus-visible, details:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--orange); color: var(--ink); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 22px;
  border-radius: var(--radius);
  font-family: var(--font); font-weight: 600; font-size: 15.5px;
  cursor: pointer; border: 1px solid transparent;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(.98); }
.btn-primary { background: var(--orange); color: #14100B; }
.btn-primary:hover { background: var(--amber); }
.btn-ghost { border-color: var(--line); color: var(--cream); background: transparent; }
.btn-ghost:hover { border-color: var(--amber-pale); }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 14.5px; }
.btn-lg { min-height: 52px; padding: 0 32px; font-size: 17px; }
.btn.full { width: 100%; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(14, 20, 32, .86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.mark { width: 30px; height: 30px; }
.brand-name { font-weight: 800; font-size: 18px; color: var(--cream); letter-spacing: -0.01em; }
.brand-name.sm { font-size: 15px; }
.nav-links { display: flex; gap: 24px; margin-left: auto; }
.nav-links a { color: var(--muted); font-size: 15px; font-weight: 500; }
.nav-links a:hover { color: var(--cream); }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.lang-toggle { display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.lang-btn {
  min-width: 40px; min-height: 30px; padding: 0 10px;
  background: transparent; color: var(--muted); border: 0;
  font-family: var(--font); font-weight: 600; font-size: 13px; cursor: pointer;
}
.lang-btn[aria-pressed="true"] { background: var(--ink-soft); color: var(--orange); }
.nav-burger { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-burger span { display: block; width: 20px; height: 2px; background: var(--cream); margin: 5px 0; }
.nav-mobile { border-top: 1px solid var(--line); padding: 12px 24px 20px; }
.nav-mobile a { display: block; padding: 12px 0; color: var(--text); font-weight: 500; border-bottom: 1px solid var(--line); }
.nav-mobile a.btn { border-bottom: 0; margin-top: 14px; color: #14100B; }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 64px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.eyebrow {
  font-family: var(--mono); font-size: 12.5px; font-weight: 500;
  letter-spacing: .14em; color: var(--orange); margin-bottom: 18px;
}
.hero h1 { font-size: clamp(40px, 6vw, 64px); font-weight: 800; margin-bottom: 20px; }
.hero-sub { font-size: 19px; color: var(--muted); max-width: 46ch; margin-bottom: 32px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-panel {
  background: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 48px 40px 32px;
  position: relative;
  overflow: hidden;
}
.arcs { width: 100%; max-width: 380px; display: block; margin: 0 auto; }
.arc { stroke-dasharray: 400; stroke-dashoffset: 400; }
.a1 { animation: draw 1s .15s cubic-bezier(.4,0,.2,1) forwards; }
.a2 { animation: draw 1.1s .3s cubic-bezier(.4,0,.2,1) forwards; }
.a3 { animation: draw 1.2s .45s cubic-bezier(.4,0,.2,1) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.hero-panel-caption {
  text-align: center; margin-top: 28px; color: var(--muted); font-size: 14px;
}
.hero-panel-caption .mono { color: var(--orange); font-size: 22px; font-weight: 700; }

/* ---------- Speed strip ---------- */
.speed { background: var(--orange); padding: 44px 0; }
.speed-grid { display: flex; align-items: center; justify-content: space-around; gap: 24px; }
.speed-cell { text-align: center; }
.speed-num { font-size: clamp(44px, 7vw, 72px); font-weight: 700; line-height: 1; }
.speed-num.muted { color: rgba(20, 16, 11, .5); }
.speed-num.accent { color: #14100B; }
.speed-label { color: rgba(20, 16, 11, .75); font-weight: 500; margin-top: 8px; font-size: 14.5px; }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-sub { color: var(--muted); max-width: 62ch; margin: 12px 0 40px; }

/* Features — editorial split: sticky head + row list (no card grid) */
.feat-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 64px; align-items: start; }
.feat-head { position: sticky; top: 96px; }
.feat-head p { color: var(--muted); margin-top: 14px; max-width: 34ch; }
.feat-list { list-style: none; }
.feat-list li {
  display: flex; gap: 20px; align-items: flex-start;
  padding: 26px 0; border-top: 1px solid var(--line);
}
.feat-list li:first-child { border-top: 0; padding-top: 4px; }
.feat-list p { color: var(--muted); margin-top: 6px; font-size: 15.5px; }
.feat-list code { font-family: var(--mono); font-size: 13px; color: var(--amber-pale); }
.ic {
  width: 22px; height: 22px; flex: none; margin-top: 2px;
  stroke: var(--orange); stroke-width: 1.5; fill: none;
  stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- Video ---------- */
.video-section[hidden] { display: none; }
.video-grid { display: grid; grid-template-columns: 1fr .8fr; gap: 56px; align-items: center; }
.video-copy p { color: var(--muted); margin: 14px 0 26px; max-width: 38ch; }
.video-frame {
  border: 1px solid var(--line); border-radius: 20px; overflow: hidden;
  background: var(--ink-card); aspect-ratio: 9/16; max-width: 340px; margin: 0 auto;
}
.video-frame video { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ---------- Compare table ---------- */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.cmp-table { width: 100%; border-collapse: collapse; min-width: 640px; }
.cmp-table th, .cmp-table td {
  text-align: left; padding: 15px 20px; font-size: 15px;
  border-bottom: 1px solid var(--line);
}
.cmp-table tr:last-child td { border-bottom: 0; }
.cmp-table thead th { color: var(--muted); font-weight: 600; font-size: 13.5px; }
.cmp-table td:first-child { color: var(--muted); }
.cmp-table td { color: var(--text); }
.cmp-table .ff { background: rgba(249, 115, 22, .08); }
.cmp-table th.ff { color: var(--orange); }
.cmp-table td.ff { color: var(--cream); font-weight: 600; }

/* ---------- Pricing ---------- */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.price-card {
  background: var(--ink-card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px 26px;
  display: flex; flex-direction: column;
}
.price-card.featured { border-color: var(--orange); position: relative; }
.price-flag {
  position: absolute; top: -12px; left: 24px;
  background: var(--orange); color: #14100B;
  font-size: 12px; font-weight: 700; letter-spacing: .04em;
  padding: 4px 12px; border-radius: 999px;
}
.price-num { font-size: 34px; font-weight: 700; color: var(--cream); margin: 10px 0 2px; }
.price-num .per { font-size: 15px; color: var(--muted); font-weight: 500; }
.price-per { color: var(--muted); font-size: 13.5px; margin-bottom: 22px; }
.price-card ul { list-style: none; margin-bottom: 26px; flex: 1; }
.price-card li {
  padding: 9px 0 9px 26px; position: relative; font-size: 15px; color: var(--text);
}
.price-card li::before {
  content: ""; position: absolute; left: 0; top: 15px;
  width: 8px; height: 8px; border-radius: 2px; background: var(--orange);
}
.price-note { color: var(--muted); font-size: 14px; margin-top: 26px; text-align: center; }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 56px; align-items: start; }
.faq-list details { border-top: 1px solid var(--line); }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary {
  padding: 20px 8px 20px 0; cursor: pointer; font-weight: 600; color: var(--cream);
  font-size: 16.5px; list-style: none; position: relative;
}
.faq-list summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-family: var(--mono); color: var(--orange); font-size: 20px;
}
.faq-list details[open] summary::after { content: "–"; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list details p { color: var(--muted); padding: 0 8px 22px 0; max-width: 60ch; }

/* ---------- Final CTA ---------- */
.final { padding: 110px 0; text-align: center; position: relative; overflow: hidden; }
.final-inner { position: relative; }
.final h2 { font-size: clamp(34px, 5vw, 52px); margin-bottom: 30px; }
.final .handle { color: var(--muted); margin-top: 18px; font-size: 15px; }
.final-arcs {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 560px; opacity: .14; pointer-events: none;
}

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 30px 0; }
.footer-inner { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: var(--muted); font-size: 14px; }
.footer-links a:hover { color: var(--cream); }
.footer-note { color: var(--muted); font-size: 13px; margin-left: auto; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid, .feat-grid, .video-grid, .faq-grid { grid-template-columns: 1fr; gap: 36px; }
  .feat-head { position: static; }
  .hero { padding: 48px 0; }
  .hero-panel { padding: 32px 24px 24px; }
  .price-grid { grid-template-columns: 1fr; }
  .nav-links, .nav-actions .btn { display: none; }
  .nav-burger { display: block; margin-left: auto; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 14px; }
  .footer-note { margin-left: 0; }
}

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .arc { animation: none; stroke-dashoffset: 0; }
  .btn { transition: none; }
}
