/* FeedFlow landing: ink + orange, rings DNA, Sora/Inter self-hosted */
@font-face {
  font-family: "Sora";
  src: url("assets/fonts/Sora-var.ttf") format("truetype-variations");
  font-weight: 100 800;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("assets/fonts/Inter-var.ttf") format("truetype-variations");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("assets/fonts/JetBrainsMono-var.ttf") format("truetype-variations");
  font-weight: 100 800;
  font-display: swap;
}

:root {
  --ink: #0E1420;
  --ink-soft: #1B2634;
  --orange: #F97316;
  --orange-deep: #EA580C;
  --amber: #FB923C;
  --cream: #FFF3E4;
  --cream-2: #FBE6CB;
  --line-dk: rgba(255, 243, 228, 0.14);
  --line-lt: rgba(14, 20, 32, 0.14);
  --font-d: "Sora", system-ui, sans-serif;
  --font-b: "Inter", system-ui, sans-serif;
  --font-m: "JetBrains Mono", ui-monospace, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-b);
  font-weight: 500;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.wrap {
  max-width: 1180px; margin: 0 auto;
  padding-left: max(28px, env(safe-area-inset-left));
  padding-right: max(28px, env(safe-area-inset-right));
}
a { color: inherit; }
code {
  font-family: var(--font-m);
  font-size: 0.88em;
  background: rgba(14,20,32,0.08);
  padding: 0.1em 0.4em;
  border-radius: 5px;
}

h1, h2, h3 { font-family: var(--font-d); font-weight: 800; letter-spacing: -0.02em; line-height: 1.08; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
.sec-sub { color: rgba(14,20,32,0.62); margin-top: 12px; max-width: 520px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-d);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px 26px;
  border-radius: 8px;
  text-decoration: none;
  border: 2px solid transparent;
  white-space: nowrap;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-ink { background: var(--ink); color: var(--cream); }
.btn-ink:hover { background: var(--ink-soft); }
.btn-orange { background: var(--orange); color: var(--ink); }
.btn-orange:hover { background: var(--orange-deep); color: var(--cream); }
.btn-line { border-color: currentColor; color: var(--ink); }
.btn-line:hover { background: rgba(14,20,32,0.07); }
.btn-sm { padding: 10px 18px; font-size: 0.85rem; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--orange);
  border-bottom: 2px solid rgba(14,20,32,0.25);
}
.nav-in { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-d); font-weight: 800; font-size: 1.15rem;
  color: var(--ink); text-decoration: none; letter-spacing: -0.01em;
}
.brand-avatar { border-radius: 8px; display: block; }
.nav-links { display: flex; gap: 24px; margin-left: auto; }
.nav-links a {
  font-size: 0.9rem; font-weight: 600; color: var(--ink);
  text-decoration: none; opacity: 0.85;
}
.nav-links a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.nav-menu-cta { display: none; }
.burger {
  display: none; margin-left: auto;
  width: 42px; height: 42px; border: 0; background: transparent;
  flex-direction: column; align-items: center; justify-content: center; gap: 7px;
  cursor: pointer;
}
.burger span { width: 22px; height: 3px; background: var(--ink); border-radius: 2px; }

/* ---------- hero (orange, avatar DNA) ---------- */
.hero {
  background: var(--orange);
  color: var(--ink);
  padding: clamp(56px, 8vw, 110px) 0 clamp(64px, 8vw, 120px);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 40px; align-items: center;
}
.eyebrow {
  font-family: var(--font-m); font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.14em; margin-bottom: 22px;
}
.hero h1 { font-size: clamp(2.7rem, 6.4vw, 5rem); }
.hero h1 em { font-style: normal; position: relative; white-space: nowrap; }
.hero h1 em::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0.06em;
  height: 0.14em; background: var(--ink); border-radius: 3px;
}
.lede {
  margin-top: 26px; font-size: 1.08rem; font-weight: 500;
  max-width: 460px; color: rgba(14,20,32,0.85);
}
.hero-cta { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }

.hero-mark { position: relative; display: flex; flex-direction: column; align-items: center; }
.hero-rings {
  width: min(400px, 82vw); aspect-ratio: 1; color: var(--ink);
  animation: ringspin 140s linear infinite;
}
.hero-rings svg { width: 100%; height: 100%; display: block; }
@keyframes ringspin { to { transform: rotate(360deg); } }
.hero-note {
  font-family: var(--font-m); font-weight: 700; font-size: 1.3rem;
  margin-top: 6px;
}
.hero-note span { font-weight: 500; font-size: 0.85rem; display: block; text-align: center; }

/* ---------- speed band (ink) ---------- */
.speed { background: var(--ink); color: var(--cream); padding: 40px 0; }
.speed-in {
  display: flex; align-items: center; justify-content: center;
  gap: clamp(30px, 7vw, 90px);
}
.speed-fig { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.speed-num {
  font-family: var(--font-d); font-weight: 800;
  font-size: clamp(2.6rem, 6vw, 4.4rem); line-height: 1;
  color: var(--orange);
}
.speed-num.stale {
  color: rgba(255,243,228,0.4);
  text-decoration: line-through; text-decoration-thickness: 0.09em;
}
.speed-cap {
  font-family: var(--font-m); font-size: 0.72rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,243,228,0.6); text-align: center;
}
.speed-div { width: 2px; height: 64px; background: var(--line-dk); }

/* ---------- features (cream, numbered rows) ---------- */
.features { padding: clamp(64px, 9vw, 110px) 0; }
.feat-list { list-style: none; margin-top: 44px; }
.feat-list li {
  display: grid; grid-template-columns: 72px 1fr; gap: 20px;
  padding: 26px 0; border-top: 2px solid var(--line-lt);
}
.feat-list li:last-child { border-bottom: 2px solid var(--line-lt); }
.feat-no { font-family: var(--font-m); font-weight: 700; color: var(--orange-deep); font-size: 0.95rem; }
.feat-list h3 { font-size: 1.25rem; margin-bottom: 6px; }
.feat-list p { color: rgba(14,20,32,0.72); max-width: 640px; }

/* ---------- demo / video ---------- */
.demo { padding: 0 0 clamp(64px, 9vw, 110px); }
.demo-grid {
  display: grid; grid-template-columns: minmax(0, 340px) 1fr;
  gap: clamp(36px, 6vw, 80px); align-items: center;
}
.demo-frame video {
  width: 100%; border-radius: 18px; display: block;
  border: 3px solid var(--ink);
  box-shadow: 10px 10px 0 var(--ink);
}
.demo-copy p { margin: 16px 0 26px; color: rgba(14,20,32,0.72); max-width: 420px; }

/* ---------- compare ---------- */
.compare { padding: clamp(64px, 9vw, 110px) 0; }
.cmp-wrap { margin-top: 40px; position: relative; }
.cmp-wrap::after {
  content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 64px;
  border-radius: 0 11px 11px 0; pointer-events: none;
  background: linear-gradient(to right, rgba(255,255,255,0), #fff 80%);
  opacity: 0; transition: opacity 0.2s ease;
}
.cmp-wrap.has-scroll:not(.at-end)::after { opacity: 1; }
.cmp-scroll { overflow-x: auto; border: 3px solid var(--ink); border-radius: 14px; }
.cmp-hint {
  display: none; margin-top: 10px;
  font-family: var(--font-m); font-size: 0.72rem; letter-spacing: 0.04em;
  color: rgba(14,20,32,0.55);
  transition: opacity 0.2s ease;
}
.cmp-hint.gone { opacity: 0; }
.cmp-table {
  width: 100%; min-width: 820px;
  border-collapse: separate; border-spacing: 0; background: #fff;
  font-size: 0.93rem;
}
.cmp-table thead th:first-child, .cmp-table th[scope="row"] {
  position: sticky; left: 0; z-index: 2; background: #fff;
  box-shadow: inset -2px 0 0 rgba(14,20,32,0.15);
}
.cmp-table th, .cmp-table td {
  padding: 15px 18px; text-align: left;
  border-bottom: 1px solid rgba(14,20,32,0.1);
  vertical-align: top;
}
.cmp-table thead th {
  font-family: var(--font-d); font-size: 0.95rem; font-weight: 800;
  border-bottom: 2px solid rgba(14,20,32,0.2);
  white-space: nowrap;
}
.cmp-table tbody th[scope="row"] {
  font-weight: 700; font-size: 0.85rem;
  color: rgba(14,20,32,0.6); white-space: nowrap;
}
.cmp-table tr:last-child td, .cmp-table tr:last-child th { border-bottom: 0; }
/* FeedFlow column: mencolok, orange block */
.cmp-table th.hot, .cmp-table td.hot {
  background: var(--orange); color: var(--ink);
  border-left: 2px solid var(--ink); border-right: 2px solid var(--ink);
}
.cmp-table thead th.hot {
  border-top: 2px solid var(--ink);
  border-radius: 8px 8px 0 0;
  position: relative;
}
.cmp-table tbody tr:last-child td.hot { border-bottom: 2px solid var(--ink); border-radius: 0 0 8px 8px; }
.cmp-table td { color: rgba(14,20,32,0.8); }
.cmp-table td.hot { color: var(--ink); }
.cmp-src { margin-top: 14px; font-size: 0.8rem; color: rgba(14,20,32,0.5); font-family: var(--font-m); }

/* ---------- pricing (ink break) ---------- */
.pricing { background: var(--ink); color: var(--cream); padding: clamp(64px, 9vw, 110px) 0; }
.pricing .sec-sub { color: rgba(255,243,228,0.6); }
.price-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.cur-toggle {
  display: inline-flex; border: 2px solid var(--cream); border-radius: 10px;
  overflow: hidden; flex-shrink: 0;
}
.cur-btn {
  font-family: var(--font-m); font-weight: 700; font-size: 0.85rem;
  padding: 10px 18px; border: 0; background: transparent;
  color: var(--cream); cursor: pointer;
}
.cur-btn.on { background: var(--cream); color: var(--ink); }
.price-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px; margin-top: 44px;
}
.plan {
  border: 2px solid var(--line-dk); border-radius: 14px;
  padding: 30px 26px; display: flex; flex-direction: column;
  background: rgba(255,243,228,0.03);
}
.plan h3 { font-size: 1.05rem; letter-spacing: 0.02em; text-transform: uppercase; color: var(--amber); }
.plan .tag {
  align-self: flex-start;
  font-family: var(--font-m); font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--orange); color: var(--ink);
  padding: 4px 10px; border-radius: 5px; margin-bottom: 14px;
}
.price { margin: 14px 0 22px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.price .cur { font-family: var(--font-d); font-weight: 800; font-size: 2.4rem; letter-spacing: -0.02em; }
.price small { font-family: var(--font-m); font-size: 0.75rem; color: rgba(255,243,228,0.55); }
.plan ul { list-style: none; margin-bottom: 28px; flex: 1; }
.plan li {
  padding: 9px 0 9px 26px; position: relative;
  font-size: 0.94rem; color: rgba(255,243,228,0.85);
  border-bottom: 1px solid rgba(255,243,228,0.08);
}
.plan li::before {
  content: ""; position: absolute; left: 2px; top: 15px;
  width: 8px; height: 8px; border-radius: 50%; background: var(--orange);
}
.plan .btn { text-align: center; }
.plan .btn-line { color: var(--cream); }
.plan .btn-line:hover { background: rgba(255,243,228,0.08); }
.plan.featured { border-color: var(--orange); }
.pay-note { margin-top: 26px; font-family: var(--font-m); font-size: 0.78rem; color: rgba(255,243,228,0.5); }

/* ---------- faq ---------- */
.faq { padding: clamp(64px, 9vw, 110px) 0; }
.faq-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 48px; }
.faq-list details { border-top: 2px solid var(--line-lt); }
.faq-list details:last-child { border-bottom: 2px solid var(--line-lt); }
.faq-list summary {
  font-family: var(--font-d); font-weight: 700; font-size: 1.02rem;
  padding: 20px 34px 20px 0; cursor: pointer; list-style: none; position: relative;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+"; position: absolute; right: 4px; top: 18px;
  font-family: var(--font-m); font-weight: 700; font-size: 1.2rem; color: var(--orange-deep);
}
.faq-list details[open] summary::after { content: "–"; }
.faq-list details p { padding: 0 40px 22px 0; color: rgba(14,20,32,0.72); }
.faq-list a { color: var(--orange-deep); font-weight: 600; }

/* ---------- final CTA (orange bookend) ---------- */
.final {
  background: var(--orange); color: var(--ink);
  padding: clamp(72px, 10vw, 130px) 0;
  position: relative; overflow: hidden; text-align: center;
}
.final-rings {
  position: absolute; width: 620px; height: 620px;
  left: 50%; top: 50%; transform: translate(-50%, -50%);
  color: rgba(14,20,32,0.12); pointer-events: none;
  animation: ringspin 160s linear infinite;
}
.final-rings svg { width: 100%; height: 100%; }
.final-inner { position: relative; }
.final h2 { font-size: clamp(2.4rem, 5.5vw, 4rem); margin-bottom: 34px; }
.final .handle { margin-top: 22px; font-family: var(--font-m); font-weight: 700; }
.final .handle a { text-decoration: none; border-bottom: 2px solid var(--ink); }
.support-line { margin-top: 30px; font-family: var(--font-m); font-size: 0.78rem; opacity: 0.8; }
.support-line a { font-weight: 700; }

/* ---------- mobile ---------- */
@media (max-width: 860px) {
  .wrap {
    padding-left: max(20px, env(safe-area-inset-left));
    padding-right: max(20px, env(safe-area-inset-right));
  }

  /* nav: brand + burger only; CTA lives inside the dropdown so the
     burger can never be pushed off-screen on narrow phones */
  .nav-in { gap: 14px; }
  .nav-cta { display: none; }
  .burger { display: flex; width: 44px; height: 44px; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--orange); flex-direction: column; gap: 0;
    border-bottom: 2px solid rgba(14,20,32,0.25);
    box-shadow: 0 18px 30px rgba(14,20,32,0.16);
    padding: 6px 0 16px;
  }
  .nav-links.open { display: flex; }
  .nav-links > a:not(.btn) { padding: 16px 28px; font-size: 1rem; }
  .nav-menu-cta {
    display: block; margin: 12px 20px 4px; text-align: center;
  }

  /* hero: copy first; rings become a clipped watermark behind it */
  .hero { position: relative; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { position: relative; z-index: 1; }
  .hero-mark { position: absolute; inset: 0; pointer-events: none; }
  .hero-rings {
    position: absolute; top: -8%; right: -24%;
    width: min(340px, 85vw); opacity: 0.15;
  }
  .hero-note { display: none; }

  /* compare: narrower label column so FeedFlow + a slice of the next
     bot are visible — the cut-off column is the scroll affordance */
  .cmp-table { min-width: 620px; font-size: 0.86rem; }
  .cmp-table th, .cmp-table td { padding: 12px; }
  .cmp-table thead th:first-child, .cmp-table th[scope="row"] {
    width: 118px; max-width: 118px;
    white-space: normal; font-size: 0.78rem;
  }
  .cmp-hint { display: block; }

  .feat-list li { grid-template-columns: 52px 1fr; gap: 14px; padding: 22px 0; }
  .price-grid { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; gap: 24px; }
  .demo-grid { grid-template-columns: 1fr; }
  .demo-frame { max-width: 340px; }
}

@media (max-width: 420px) {
  .speed-in { gap: 18px; }
  .speed-num { font-size: 2.2rem; }
  .speed-div { height: 48px; }
  .hero-cta .btn { flex: 1 1 auto; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-rings, .final-rings { animation: none; }
  html { scroll-behavior: auto; }
}
