/* Validora landing (home + pricing) — lavender, product-led, light and dark.
   Legal pages add legal.css on top. */

/* No [data-theme] = dark (the old landing's
   palette), [data-theme='light'] = light. Every page's pre-paint script
   stamps light unless the visitor chose dark. */
:root {
  --bg: #161927;
  --lav: rgba(139, 92, 246, .14);
  --lav-2: rgba(139, 92, 246, .22);
  --hl: rgba(139, 92, 246, .42);
  --acc: #B79CFF;
  --ink: #F2F3F7;
  --ink-2: #B3B9C9;
  --ink-3: #99A0B2;
  --line: rgba(255, 255, 255, .09);
  --line-2: rgba(255, 255, 255, .18);
  --card: #1F2333;
  --ok: #34D399;
  --ok-bg: rgba(52, 211, 153, .16);
  --ok-ink: #6EE7B7;
  --warn-bg: rgba(251, 191, 36, .16);
  --warn-ink: #FCD34D;
  --risk-bg: rgba(244, 63, 94, .18);
  --risk-ink: #FDA4AF;
  --btn: linear-gradient(135deg, #8B5CF6, #D946EF);
  --btn-hover: linear-gradient(135deg, #9D74F8, #E063F2);
  --btn-shadow: 0 8px 24px -8px rgba(139, 92, 246, .7);
  --btn-2: #2E3345;
  --btn-2-hover: #3A4057;
  --node: #A78BFA;
  --wedge: linear-gradient(180deg, rgba(139, 92, 246, .14), rgba(139, 92, 246, 0) 90%);
  --tilt-bg: linear-gradient(135deg, rgba(139, 92, 246, .38), rgba(217, 70, 239, .12));
  --bar-2: rgba(167, 139, 250, .22);
  --teal: #2BB3C9;
  --eyebrow-ink: #D3C4FF;
  --ring: rgba(255, 255, 255, .04);
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px -12px rgba(0, 0, 0, .55);
  --shadow-lg: 0 0 0 1px rgba(255, 255, 255, .04), 0 30px 60px -20px rgba(0, 0, 0, .7), 0 0 80px -30px rgba(139, 92, 246, .45);
  --dot: rgba(255, 255, 255, .07);
  --blob-1: rgba(139, 92, 246, .30);
  --blob-2: rgba(217, 70, 239, .20);
  --blob-3: rgba(43, 179, 201, .14);
  --blob-4: rgba(190, 236, 90, .12);
  --glow: rgba(139, 92, 246, .32);
  --sk-arm: #6D4FD6;
  --sk-leg: #3B2F6B;
  --sans: 'DM Sans', system-ui, -apple-system, sans-serif;
  --r: 14px;
  color-scheme: dark;
}

[data-theme='light'] {
  --bg: #FCFBFF;
  --lav: #F4F0FE;
  --lav-2: #EAE2FD;
  --hl: #E2D6FD;
  --acc: #7C3AED;
  --ink: #0D0B17;
  --ink-2: #3D3A4B;
  --ink-3: #6E6A80;
  --line: #ECE6FA;
  --line-2: #DCD2F7;
  --card: #FFFFFF;
  --ok: #7ED321;
  --ok-bg: #E6F8CF;
  --ok-ink: #3B6A0B;
  --warn-bg: #FFE3C2;
  --warn-ink: #9A4A06;
  --risk-bg: #FFD9DE;
  --risk-ink: #A3122E;
  --btn: #0D0B17;
  --btn-hover: #221D33;
  --btn-shadow: 0 6px 18px -6px rgba(13, 11, 23, .5);
  --btn-2: #2A2342;
  --btn-2-hover: #3A3158;
  --node: #A78BFA;
  --wedge: linear-gradient(180deg, rgba(234, 226, 253, .9), rgba(244, 240, 254, 0) 90%);
  --tilt-bg: linear-gradient(135deg, #DCCEFC, #F1ECFE);
  --bar-2: #DCCEFC;
  --teal: #0E9AAE;
  --eyebrow-ink: #4A2A9A;
  --ring: rgba(255, 255, 255, .5);
  --shadow: 0 1px 2px rgba(40, 20, 90, .05), 0 12px 32px -12px rgba(76, 40, 170, .18);
  --shadow-lg: 0 2px 4px rgba(40, 20, 90, .05), 0 30px 60px -20px rgba(90, 50, 200, .32);
  --dot: rgba(76, 40, 170, .13);
  --blob-1: #E4D6FF;
  --blob-2: #F6D9FF;
  --blob-3: #D3F1F6;
  --blob-4: #EAF7C4;
  --glow: rgba(139, 92, 246, .22);
  --sk-arm: #C4B0F8;
  --sk-leg: #4A3D80;
  color-scheme: light;
}

/* One content column for every section: header, sections and footer share
   its left and right edge. Narrow reading columns (FAQ, compare) centre in it. */
:root { --wrap: 1200px; --gutter: 32px; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
h1, h2 { margin: 0; letter-spacing: -.045em; line-height: 1.02; font-weight: 800; }
h2 { font-size: clamp(30px, 3.4vw, 40px); }
ul, ol { list-style: none; margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; border-radius: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.ic {
  width: 18px; height: 18px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}

/* ── Buttons ───────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 40px; padding: 0 18px; border-radius: 10px;
  font-family: inherit; font-weight: 600; font-size: 14px; white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease, color .15s ease;
}
.btn .ic { width: 16px; height: 16px; }
.btn:hover { transform: translateY(-1px); }
.btn-lg { height: 46px; padding: 0 24px; font-size: 15px; }
.btn-dark { background: var(--btn); color: #fff; box-shadow: var(--btn-shadow); }
.btn-dark:hover { background: var(--btn-hover); }
.btn-ink { background: var(--btn-2); color: #fff; box-shadow: var(--btn-shadow); }
.btn-ink:hover { background: var(--btn-2-hover); }
.btn-ghost { background: var(--card); color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow); }
.btn-ghost:hover { border-color: var(--line-2); }
.plan .btn-ghost:hover { border-color: var(--acc); color: var(--acc); box-shadow: var(--shadow-lg); }

/* ── Nav ───────────────────────────────────────────────────────────── */
/* Sticky, so it stays in the flow (no jump) and the CTA stays in reach.
   Once the page scrolls, a full-width frosted bar appears behind it. */
.nav {
  position: sticky; top: 0; z-index: 20;
  max-width: var(--wrap); margin: 0 auto; padding: 18px var(--gutter);
  display: flex; align-items: center; gap: 40px;
}
.nav::before {
  content: ''; position: absolute; z-index: -1; inset: 0 calc(50% - 50vw);
  background: color-mix(in srgb, var(--bg) 84%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line); opacity: 0; transition: opacity .2s ease;
}
.nav.scrolled::before { opacity: 1; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 23px; letter-spacing: -.04em; }
.nav-links { display: flex; gap: 32px; font-size: 14px; font-weight: 500; }
.nav-links a, .footer a { color: var(--ink-2); transition: color .15s; }
.nav-links a:hover, .footer a:hover { color: var(--acc); }
.nav-links a[aria-current='page'] { color: var(--ink); font-weight: 600; }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.nav-burger { display: none; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.nav-burger span { width: 16px; height: 1.6px; background: var(--ink); border-radius: 2px; }
.nav-menu { display: none; }

/* ── Hero ──────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  max-width: var(--wrap); margin: 0 auto; padding: 40px var(--gutter) 90px;
  min-height: min(880px, calc(100svh - 76px));
  display: grid; grid-template-columns: 1fr 1.15fr; align-items: center; gap: 32px;
}
/* The lavender wedge the next section sits on */
.hero::after {
  content: ''; position: absolute; z-index: -1; left: 50%; bottom: -80px;
  width: 100vw; height: 220px; transform: translateX(-50%);
  background: var(--wedge);
  clip-path: polygon(0 22%, 17% 14%, 33% 20%, 50% 30%, 67% 34%, 83% 26%, 100% 20%, 100% 100%, 0 100%);
}
/* The wedge's top edge rolls like a slow wave */
@media (prefers-reduced-motion: no-preference) {
  .hero::after { animation: wedge-wave 7s ease-in-out infinite alternate; }
}
@keyframes wedge-wave {
  50% { clip-path: polygon(0 30%, 17% 34%, 33% 26%, 50% 16%, 67% 14%, 83% 22%, 100% 30%, 100% 100%, 0 100%); }
  100% { clip-path: polygon(0 16%, 17% 24%, 33% 32%, 50% 26%, 67% 18%, 83% 14%, 100% 24%, 100% 100%, 0 100%); }
}
h1 { font-size: clamp(48px, 7.4vw, 108px); }
.hl {
  display: inline-block; padding: 0 .12em; margin-left: .04em;
  background: var(--hl); border-radius: .16em;
  box-shadow: 0 10px 30px -8px rgba(124, 58, 237, .35);
}
.lede { margin: 28px 0 32px; max-width: 470px; font-size: 17px; color: var(--ink-2); }
.hero .lede { margin: 32px 0 40px; max-width: 560px; font-size: clamp(17px, 1.5vw, 20px); }
.cta-row { display: flex; gap: 16px; flex-wrap: wrap; }

/* ── Hero workflow: Validate → Analyze → Plan → Build ─────────────────
   One state, .hero[data-step], picks the active stage: its headline word
   (same treatment as .hl), its step and its pane. landing.js advances it. */
.w {
  display: inline-block; padding: 0 .12em; margin-left: -.12em; border-radius: .16em;
  transition: background-color .5s ease, box-shadow .5s ease;
}
.hero[data-step='0'] .w.st0, .hero[data-step='1'] .w.st1, .hero[data-step='2'] .w.st2, .hero[data-step='3'] .w.st3 {
  background: var(--hl); box-shadow: 0 10px 30px -8px rgba(124, 58, 237, .35);
}
/* The headline words are a second way to switch stage */
.hero .w { cursor: pointer; }
.hero .w:hover { background: var(--lav); }

.stage { position: relative; margin: 0; min-height: 600px; display: grid; place-items: center; }
.orbits { position: absolute; inset: -10px -30px 0 -40px; width: calc(100% + 70px); height: 100%; overflow: visible; }
.orbit { fill: none; stroke: var(--node); stroke-width: 1.4; opacity: .6; }
.orbit.dashed { stroke-dasharray: 4 7; opacity: .45; }
.node { fill: var(--node); }
.node.big { fill: #8B5CF6; filter: drop-shadow(0 0 8px rgba(139, 92, 246, .7)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.pill { display: inline-block; padding: 3px 9px; border-radius: 7px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.pill-warn { background: var(--warn-bg); color: var(--warn-ink); }
.flow {
  position: relative; width: min(440px, 100%); padding: 16px;
  box-shadow: var(--shadow-lg), 0 0 0 6px var(--ring);
  transform: perspective(1400px) rotateY(-9deg) rotateX(5deg) rotateZ(2deg);
  transition: transform .5s ease, box-shadow .5s ease;
}
.flow:hover, .flow:focus-within { transform: none; box-shadow: var(--shadow-lg), 0 0 0 6px var(--ring), 0 40px 80px -30px rgba(139, 92, 246, .55); }

/* Steps on one line; the accent fill runs up to the active step */
.flow-steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 14px; }
.flow-steps::before, .flow-steps::after {
  content: ''; position: absolute; left: 12.5%; width: 75%; top: 50%; height: 2px; margin-top: -1px; background: var(--lav-2);
}
.flow-steps::after { background: var(--acc); transform-origin: left; transform: scaleX(calc(var(--i, 0) / 3)); transition: transform .6s ease; }
.hero[data-step='1'] .flow-steps { --i: 1; }
.hero[data-step='2'] .flow-steps { --i: 2; }
.hero[data-step='3'] .flow-steps { --i: 3; }
.flow-steps button {
  position: relative; z-index: 1; overflow: hidden; display: flex; align-items: center; justify-content: center; gap: 6px;
  height: 34px; padding: 0 6px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer;
  background: var(--card); color: var(--ink-3); font: 600 13px var(--sans);
  transition: background-color .4s ease, color .4s ease, border-color .4s ease, box-shadow .4s ease, transform .15s ease;
}
.flow-steps button:hover { color: var(--ink); border-color: var(--acc); transform: translateY(-2px); }
.flow-steps button:active { transform: scale(.96); }
/* While autoplay runs, the active step fills up until the next one */
.flow-steps button::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--acc);
  transform: scaleX(0); transform-origin: left; opacity: 0;
}
.hero.playing[data-step='0'] .flow-steps .st0::after, .hero.playing[data-step='1'] .flow-steps .st1::after,
.hero.playing[data-step='2'] .flow-steps .st2::after, .hero.playing[data-step='3'] .flow-steps .st3::after {
  opacity: 1; animation: step-fill var(--dwell, 3.6s) linear both;
}
.flow-steps .n {
  display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%;
  background: var(--lav); color: var(--acc); font-size: 11px; transition: background-color .4s ease, color .4s ease;
}
.hero[data-step='0'] .flow-steps .st0, .hero[data-step='1'] .flow-steps .st1,
.hero[data-step='2'] .flow-steps .st2, .hero[data-step='3'] .flow-steps .st3 {
  background: var(--hl); border-color: transparent; color: var(--ink); box-shadow: 0 10px 24px -10px rgba(124, 58, 237, .45);
}
/* Finished stages: filled number, no highlight */
.hero[data-step='1'] .flow-steps .st0 .n, .hero[data-step='2'] .flow-steps :is(.st0, .st1) .n,
.hero[data-step='3'] .flow-steps :is(.st0, .st1, .st2) .n { background: var(--acc); color: #fff; }

/* Panes share one grid cell, so the card never changes height */
.flow-panes { display: grid; }
.flow-pane {
  grid-area: 1 / 1; display: flex; flex-direction: column; gap: 10px; min-width: 0;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .4s ease, transform .4s ease, visibility 0s linear .4s;
}
.hero[data-step='0'] .flow-pane.st0, .hero[data-step='1'] .flow-pane.st1,
.hero[data-step='2'] .flow-pane.st2, .hero[data-step='3'] .flow-pane.st3 {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity .45s ease .12s, transform .45s ease .12s, visibility 0s;
}
.f-label { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--acc); }
.f-title { font-size: 15px; line-height: 1.35; }
.f-input {
  margin: 0; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 12px;
  background: var(--bg); font-size: 14px; line-height: 1.45; box-shadow: 0 0 0 3px var(--lav);
}
.f-caret { display: inline-block; width: 2px; height: 1.1em; margin-left: 2px; vertical-align: -.2em; background: var(--acc); }
.f-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; }
.f-mute { font-size: 12px; color: var(--ink-3); }
.f-btn {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 9px;
  background: var(--btn); color: #fff; font: 600 13px var(--sans); box-shadow: var(--btn-shadow);
  border: 0; cursor: pointer; transition: background .15s ease, transform .15s ease;
}
.f-btn:hover { background: var(--btn-hover); transform: translateY(-1px); }
.f-btn:active, .f-btn.pressed { transform: scale(.94); box-shadow: 0 0 0 6px var(--lav-2); }
.f-btn .ic { width: 14px; height: 14px; transition: transform .2s ease; }
.f-btn:hover .ic { transform: translateX(3px); }
/* Run stages / action steps: done ✓, running, waiting */
.f-list { display: grid; gap: 7px; font-size: 13px; color: var(--ink-3); }
.f-list li { display: flex; align-items: center; gap: 9px; }
.f-list li::before {
  content: ''; flex: none; display: grid; place-items: center; width: 16px; height: 16px; box-sizing: border-box;
  border: 1.5px solid var(--line-2); border-radius: 50%; font-size: 10px; font-weight: 800;
  transition: background-color .25s ease, border-color .25s ease, transform .3s cubic-bezier(.2, .8, .2, 1.6);
}
.f-list li.done { color: var(--ink-2); }
.f-list li.done::before { content: '✓'; border: 0; background: var(--ok-bg); color: var(--ok-ink); }
.f-list li.run { color: var(--ink); font-weight: 600; }
.f-list li.run::before { border-color: var(--lav-2); border-top-color: var(--acc); }
.f-list em { margin-left: auto; font-style: normal; font-size: 12px; color: var(--ink-3); }
/* The plan's checklist ticks on click */
.f-check li button { padding: 0; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.f-check li { cursor: pointer; border-radius: 8px; transition: background-color .2s ease; }
.f-check li:hover { background: var(--lav); }
.f-check li.done button { text-decoration: line-through; text-decoration-color: var(--line-2); }
.f-check li.done::before { transform: scale(1.1); }
.f-bars { display: grid; grid-template-columns: auto 1fr 26px; align-items: center; gap: 8px 10px; font-size: 13px; color: var(--ink-2); }
.f-bars i { height: 6px; border-radius: 3px; background: var(--lav-2); position: relative; overflow: hidden; }
.f-bars i::after { content: ''; position: absolute; inset: 0 auto 0 0; width: var(--v); border-radius: 3px; background: var(--acc); }
.f-bars b { text-align: right; color: var(--ink); }
.f-score { font-size: 13px; color: var(--ink-2); }
.f-score b { font-size: 18px; color: var(--ink); margin-left: 4px; }
.stage-note { position: absolute; right: 0; bottom: -6px; font-size: 12px; color: var(--ink-3); }
.tap { display: inline-flex; align-items: center; gap: 6px; color: var(--acc); font-weight: 600; }
.tap::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--acc); }

@media (prefers-reduced-motion: no-preference) {
  .flow { animation: rise .7s cubic-bezier(.2, .8, .2, 1) both; }
  .orbits { animation: fade 1.2s ease both; }
  .tap::before { animation: pulse 1.2s ease-in-out infinite; }
  .f-caret { animation: pulse 1s steps(1) infinite; }
  .hero[data-step='0'] .f-btn { animation: nudge 1.6s ease-in-out 1.8s infinite; }
  /* Behind the card: the dashes drift, two nodes travel their orbits
     (paths = the two ellipses above, in viewBox units) */
  .orbit.dashed { animation: dash-drift 40s linear infinite; }
  .orbit-a, .orbit-b { cx: 0; cy: 0; offset-rotate: 0deg; animation: travel 36s linear infinite; }
  .orbit-a { offset-path: path('M546.6 160.2A270 120 -24 1 1 53.4 379.8A270 120 -24 1 1 546.6 160.2Z'); offset-distance: 30%; }
  .orbit-b { offset-path: path('M504.5 316.4A215 235 18 1 1 95.5 183.6A215 235 18 1 1 504.5 316.4Z'); animation-duration: 52s; animation-direction: reverse; }
  .orbit-a.node.big { animation: travel 36s linear infinite, pulse 3s ease-in-out infinite; }
  .f-list li.run::before { animation: spin .9s linear infinite; }
  /* Inside the pane that just opened, rows and bars arrive in order */
  .flow-pane .f-list li, .flow-pane .f-bars i::after { transition: opacity .35s ease, transform .5s ease; }
  .flow-pane .f-list li { opacity: 0; transform: translateX(-6px); }
  .flow-pane .f-bars i::after { transform: scaleX(0); transform-origin: left; }
  .hero[data-step='1'] .flow-pane.st1 .f-list li, .hero[data-step='2'] .flow-pane.st2 .f-list li { opacity: 1; transform: none; }
  .hero[data-step='3'] .flow-pane.st3 .f-bars i::after { transform: none; }
  .f-list li:nth-child(2), .f-bars i:nth-of-type(2)::after { transition-delay: .3s; }
  .f-list li:nth-child(3), .f-bars i:nth-of-type(3)::after { transition-delay: .45s; }
  .f-list li:nth-child(4), .f-bars i:nth-of-type(4)::after { transition-delay: .6s; }
  .f-list li:nth-child(5) { transition-delay: .75s; }
  .f-list li:nth-child(6) { transition-delay: .9s; }
  .f-list li:nth-child(1), .f-bars i:nth-of-type(1)::after { transition-delay: .15s; }
}
@media (prefers-reduced-motion: reduce) {
  .w, .flow, .flow-steps::after, .flow-steps button, .flow-steps .n, .flow-pane,
  .hero[data-step] .flow-pane { transition: none; }
}
/* Bigger card: app chrome on top, every pane filled */
.flow { width: min(570px, 100%); padding: 0 20px 20px; }
.flow-bar {
  display: flex; align-items: center; gap: 6px; height: 44px; margin: 0 -20px 16px; padding: 0 20px;
  border-bottom: 1px solid var(--line); font-size: 12px; color: var(--ink-3);
}
.flow-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); }
.flow-bar i:nth-child(1) { background: #FF6159; } .flow-bar i:nth-child(2) { background: #FFBD2E; } .flow-bar i:nth-child(3) { background: #28C941; }
.flow-bar span { margin-left: 8px; }
.live {
  display: inline-flex; align-items: center; gap: 6px; margin-left: auto; padding: 2px 9px; border-radius: 20px;
  background: var(--ok-bg); color: var(--ok-ink); font-size: 11px; font-weight: 700;
}
.live::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.flow-steps button { height: 40px; font-size: 14px; }
.flow-pane { gap: 13px; }
.f-label { font-size: 12px; }
.f-title { font-size: 16px; }
.f-input { min-height: 92px; padding: 14px 16px; font-size: 15px; }
.f-list { font-size: 14px; gap: 8px; }
.f-chips, .f-srcs, .f-scope { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.f-chips span {
  display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 20px;
  background: var(--lav); color: var(--eyebrow-ink); font-size: 12px; font-weight: 600;
}
.f-chips .ic { width: 13px; height: 13px; }
.f-scope b { padding: 4px 10px; border-radius: 8px; border: 1px dashed var(--line-2); font-size: 12px; font-weight: 600; color: var(--ink-2); }
.f-srcs span { padding: 4px 10px; border-radius: 7px; background: var(--bg); border: 1px solid var(--line); font-size: 12px; font-weight: 600; color: var(--ink-2); }
.f-meter { display: grid; gap: 6px; font-size: 13px; color: var(--ink-2); }
.f-meter b { font-size: 22px; color: var(--ink); margin-right: 2px; }
.f-meter i { position: relative; height: 6px; border-radius: 3px; background: var(--lav-2); }
.f-meter i::after { content: ''; position: absolute; inset: 0 30% 0 0; border-radius: 3px; background: linear-gradient(90deg, #8B5CF6, #D946EF); transform-origin: left; }
.f-plan { display: flex; align-items: center; gap: 16px; }
.f-ring { position: relative; flex: none; display: grid; place-items: center; }
.f-ring .d-ring { width: 68px; stroke-width: 11; }
.f-ring b { position: absolute; font-size: 19px; }
.f-why { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; font-size: 12.5px; color: var(--ink-2); }
.f-why span { padding: 9px 11px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); }
.f-why b { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.f-cli {
  display: block; padding: 11px 13px; border-radius: 10px; background: #15121F; color: #E4DBFF;
  font: 500 13px ui-monospace, SFMono-Regular, Menlo, monospace; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.f-cli span { color: #7EE0A1; }
.f-bars { font-size: 14px; row-gap: 16px; margin: 6px 0; }
.f-bars i { height: 8px; }
@media (prefers-reduced-motion: no-preference) {
  .live::before { animation: pulse 1.6s ease-in-out infinite; }
  .hero[data-step='1'] .f-meter i::after { animation: meter 2.4s ease-out both; }
  .hero[data-step='0'] .f-scope b { animation: scope-in .4s ease both; }
  .hero[data-step='0'] .f-scope b:nth-of-type(2) { animation-delay: .1s; }
  .hero[data-step='0'] .f-scope b:nth-of-type(3) { animation-delay: .2s; }
  .hero[data-step='0'] .f-scope b:nth-of-type(4) { animation-delay: .3s; }
  .hero[data-step='2'] .f-ring circle:last-child { animation: ring-in 1.2s ease both; }
}
@keyframes meter { from { transform: scaleX(.1); } }
@keyframes scope-in { from { opacity: 0; transform: translateY(4px); } }
@keyframes ring-in { from { stroke-dasharray: 0 100; } }
@keyframes step-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes nudge { 0%, 100% { box-shadow: var(--btn-shadow); } 50% { box-shadow: var(--btn-shadow), 0 0 0 6px var(--lav-2); } }
@keyframes travel { from { offset-distance: 0%; } to { offset-distance: 100%; } }
@keyframes rise { from { opacity: 0; translate: 0 18px; } }
@keyframes pulse { 50% { opacity: .55; } }
@keyframes fade { from { opacity: 0; } }
@keyframes dash-drift { to { stroke-dashoffset: -220; } }
@keyframes bob { 50% { transform: translateY(-8px); } }
/* Most of the loop on the visible upper arc; the stretch under the planet
   (out of frame) passes quickly. 158% = 58% on a closed path. */
@keyframes light-drift { from { transform: translate(-95px, 14px); } to { transform: translate(95px, -4px); } }
@keyframes moon-orbit { from { offset-distance: 58%; } 85% { offset-distance: 122%; } to { offset-distance: 158%; } }

/* ── Hero backdrop ───────────────────────────────────────────────────
   Full-bleed behind the hero (and under the nav): three slow lavender
   blobs, a faint dot grid, and a glow + dot spotlight resting behind
   the card. It doesn't follow the pointer: a moving backdrop under
   the text tires the eye. */
.hero-bg {
  --mx: 74%; --my: 52%;
  position: absolute; z-index: -1; top: -110px; bottom: -40px; left: 50%; width: 100vw; transform: translateX(-50%);
  overflow: hidden; pointer-events: none;
  -webkit-mask-image: linear-gradient(#000 75%, transparent); mask-image: linear-gradient(#000 75%, transparent);
}
.hero-bg::before, .hero-bg::after {
  content: ''; position: absolute; inset: 0; background-size: 26px 26px;
}
.hero-bg::before {
  background-image: radial-gradient(var(--dot) 1px, transparent 1.5px);
  -webkit-mask-image: radial-gradient(70% 70% at 50% 40%, #000 20%, transparent 75%); mask-image: radial-gradient(70% 70% at 50% 40%, #000 20%, transparent 75%);
}
.hero-bg::after {
  background-image: radial-gradient(var(--acc) 1.3px, transparent 1.8px);
  -webkit-mask-image: radial-gradient(220px circle at var(--mx) var(--my), #000, transparent 75%); mask-image: radial-gradient(220px circle at var(--mx) var(--my), #000, transparent 75%);
  opacity: .35;
}
.blob { position: absolute; border-radius: 50%; filter: blur(80px); }
.blob.b1 { width: 560px; height: 560px; left: -6%; top: 4%; background: var(--blob-1); }
.blob.b2 { width: 620px; height: 620px; right: -4%; top: 14%; background: var(--blob-2); }
.blob.b3 { width: 380px; height: 380px; left: 38%; top: 58%; background: var(--blob-3); }
/* The lime wash: rolls in on load, then breathes */
.blob.b4 { width: 1100px; height: 640px; left: 50%; top: -6%; margin-left: -550px; background: var(--blob-4); filter: blur(90px); }
.glow {
  position: absolute; left: var(--mx); top: var(--my); width: 640px; height: 640px; margin: -320px 0 0 -320px; border-radius: 50%;
  background: radial-gradient(closest-side, var(--glow), transparent);
  opacity: .55;
}
@media (prefers-reduced-motion: no-preference) {
  .blob.b1 { animation: blob 22s ease-in-out infinite alternate; }
  .blob.b2 { animation: blob 26s ease-in-out -8s infinite alternate-reverse; }
  .blob.b3 { animation: blob 18s ease-in-out -4s infinite alternate; }
  .blob.b4 { animation: wash-in 3.2s cubic-bezier(.45,.05,.25,1) .3s both, wash 14s ease-in-out 3.5s infinite alternate; }
}
@keyframes blob { 33% { transform: translate(60px, -40px) scale(1.08); } 66% { transform: translate(-40px, 50px) scale(.94); } to { transform: translate(30px, 20px); } }

/* ── Result ────────────────────────────────────────────────────────── */
.result {
  max-width: var(--wrap); margin: 0 auto; padding: 30px var(--gutter) 90px;
  display: grid; grid-template-columns: 1.85fr 1fr; align-items: center; gap: 56px;
}
.window-wrap { position: relative; perspective: 1600px; min-width: 0; }
.window-wrap::before {
  content: ''; position: absolute; inset: -18px 40px 30px -30px; z-index: -1;
  background: var(--tilt-bg);
  border-radius: 26px; transform: rotate(-4deg);
}
.window {
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  box-shadow: var(--shadow-lg); padding: 12px 14px 14px;
  transform: rotateY(7deg) rotateX(3deg); transform-origin: left center;
  transition: transform .4s ease;
}
.window:hover, .window:focus-within { transform: none; }
.win-bar { display: flex; align-items: center; gap: 6px; }
.win-bar i { width: 10px; height: 10px; border-radius: 50%; background: #FF6159; }
.win-bar i:nth-child(2) { background: #FFBD2E; }
.win-bar i:nth-child(3) { background: #28C941; }
.win-url {
  flex: 1; margin: 0 12px; padding: 4px 10px; border-radius: 7px; text-align: center;
  background: var(--lav); color: var(--ink-3); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.win-label { flex: none; font-size: 11px; font-weight: 600; color: var(--ok-ink); background: var(--ok-bg); padding: 3px 8px; border-radius: 6px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 12px 0; overflow-x: auto; scrollbar-width: none; }
.tabs button {
  flex: none; padding: 8px 10px; border: 0; background: none; cursor: pointer;
  font: 500 13px var(--sans); color: var(--ink-3);
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tabs button:hover { color: var(--ink); }
.tabs button[aria-selected='true'] { color: var(--ink); font-weight: 700; border-bottom-color: var(--acc); }
/* Enlarged preview: the same window, moved into a modal dialog */
.zoom { max-width: none; max-height: none; padding: 0; border: 0; outline: 0; background: none; overflow: visible; }
.zoom::backdrop { background: rgba(8, 6, 16, .82); backdrop-filter: blur(4px); }
.zoom .window { width: min(1400px, 94vw, calc((94vh - 120px) * 1.835)); transform: none; }
.zoom .win-zoom { display: none; }
.zoom .demo { overscroll-behavior: contain; }
.zoom-close {
  position: absolute; top: -14px; right: -14px; z-index: 1; width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--card); color: var(--ink); font: 600 20px/1 var(--sans); cursor: pointer;
}

/* ── Report demo: a mini, clickable version of the report ────────────
   Laid out at 1200px and scaled to the window with `zoom` (--z, set in
   landing.js); scrolls and works both in the page and in the dialog. */
.win-zoom {
  flex: none; display: grid; place-items: center; width: 26px; height: 26px; margin-left: 6px;
  border: 1px solid var(--line); border-radius: 7px; background: var(--card); color: var(--ink-2); cursor: pointer;
}
.win-zoom:hover { color: var(--acc); border-color: var(--line-2); }
.win-zoom .ic { width: 14px; height: 14px; }
.demo {
  aspect-ratio: 1490 / 812; overflow: auto;
  border: 1px solid var(--line); border-radius: 10px; background: var(--bg);
  scrollbar-width: thin;
}
.demo-in { width: 1200px; zoom: var(--z, .5); padding: 22px; display: grid; gap: 22px; font-size: 14px; color: var(--ink-2); }
.demo-in h3, .demo-in h4 { margin: 0; color: var(--ink); letter-spacing: -.02em; }
.d-title { font-size: 24px; }
.demo-in h4 { font-size: 17px; display: flex; align-items: center; gap: 8px; }
.demo-in p { margin: 6px 0 0; }
.demo-in b { color: var(--ink); }
.d-sub { color: var(--ink-3); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.d-mute { color: var(--ink-3); font-size: 13px; }
.d-note { color: var(--ink-3); font-size: 12px; max-width: 640px; margin-top: 14px !important; }
.d-eyebrow { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.d-eyebrow .ic { width: 13px; height: 13px; }
.c-acc { color: var(--acc); font-weight: 600; }
.c-ok { color: var(--ok-ink) !important; }
.c-warn { color: var(--warn-ink) !important; }
.c-risk { color: var(--risk-ink) !important; }
.d-card { padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.d-box { padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
.d-box.raised { background: var(--lav); }
.d-box.warn { border-color: var(--warn-bg); }
.d-box > b { display: block; font-size: 15px; }
.d-tag { display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: 12px; font-weight: 600; white-space: nowrap; background: var(--lav-2); color: var(--eyebrow-ink); }
.d-tag.ok { background: var(--ok-bg); color: var(--ok-ink); }
.d-tag.warn { background: var(--warn-bg); color: var(--warn-ink); }
.d-tag.risk { background: var(--risk-bg); color: var(--risk-ink); }
.d-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.d-head.flat { margin-bottom: 18px; }
.d-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.d-grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.d-grid3 .d-tag { margin-top: 12px; }
.d-foot { display: flex; justify-content: space-between; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--ink-3); }
.d-actions { display: flex; align-items: center; gap: 14px; margin-top: 14px; }
.d-btn { padding: 7px 14px; border: 0; border-radius: 8px; background: #8B5CF6; color: #fff; font: 600 14px var(--sans); cursor: pointer; }
.d-btn:disabled { background: var(--ok-bg); color: var(--ok-ink); cursor: default; }
.d-more { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.d-more summary { display: flex; justify-content: space-between; cursor: pointer; list-style: none; color: var(--ink-3); }
.d-more summary::-webkit-details-marker { display: none; }
.d-more summary::after { content: '+'; color: var(--acc); font-weight: 600; }
.d-more[open] summary::after { content: '−'; }
.d-more summary:hover { color: var(--ink); }
.d-expert { display: none; margin-top: 10px !important; padding-top: 10px; border-top: 1px dashed var(--line-2); font-size: 12.5px; color: var(--eyebrow-ink); }
.demo-in.expert .d-expert { display: block; }
.d-tr i.d-tag { font-style: normal; }
.d-big { margin: 6px 0 4px; font-size: 28px; font-weight: 700; color: var(--ink); letter-spacing: -.02em; }
.d-big small { display: block; font-size: 12px; font-weight: 400; color: var(--ink-3); letter-spacing: 0; }

/* Overview */
.d-hero { display: grid; grid-template-columns: 1fr 230px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.d-hero-main { padding: 26px; }
.d-lead { font-size: 23px; line-height: 1.3; max-width: 760px; }
.d-hero-main > .d-p { max-width: 760px; margin: 12px 0 20px; }
.d-hero-side { position: relative; padding: 30px 20px; border-left: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.d-ring { width: 120px; transform: rotate(-90deg); fill: none; stroke-width: 9; }
.d-ring circle:first-child { stroke: var(--lav-2); }
.d-ring circle:last-child { stroke: #A78BFA; stroke-linecap: round; }
.d-ring-num { position: absolute; top: 62px; font-size: 34px; font-weight: 700; color: var(--ink); line-height: 1; }
.d-ring-num small { display: block; font-size: 11px; color: var(--ink-3); font-weight: 400; margin-top: 4px; }
.d-hero-side > b { margin-top: 10px; }
.u { text-decoration: underline; text-underline-offset: 3px; }
.d-side-list { display: grid; gap: 2px; margin-top: 18px; text-align: left; font-size: 12.5px; }
.d-side-list .c-ok, .d-side-list .c-warn { font-weight: 600; margin-top: 8px; }
.d-seg { display: inline-flex; flex: none; padding: 4px; gap: 2px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); }
.d-seg > *, .d-seg button { padding: 6px 14px; border: 0; border-radius: 7px; background: none; font: 500 14px var(--sans); color: var(--ink-3); }
.d-seg > b, .d-seg button[aria-pressed='true'] { background: #8B5CF6; color: #fff; font-weight: 600; }
.d-seg button { cursor: pointer; }
.d-seg button:not([aria-pressed='true']):hover { color: var(--ink); }

/* Market */
.d-scope { display: grid; grid-template-columns: 1fr 100px 1fr; align-items: center; margin-top: 18px; }
.d-scope .d-tag { margin-top: 10px; }
.d-arrow { display: grid; justify-items: center; gap: 4px; text-align: center; font-size: 12px; color: var(--ink-3); }
.d-table { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--card); }
.d-tr { display: grid; grid-template-columns: 1.1fr 1.7fr .8fr 2fr 1.4fr; gap: 16px; padding: 14px 16px; border-top: 1px solid var(--line); }
.d-tr.th { border-top: 0; color: var(--ink-3); font-size: 13px; }
.d-tr > b { font-weight: 600; }

/* Competition */
.d-matrix { display: grid; grid-template-columns: 170px repeat(7, 1fr); margin-top: 18px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; font-size: 13px; }
.d-matrix > * { padding: 10px; border-top: 1px solid var(--line); display: flex; align-items: center; }
.d-matrix > .mh { border-top: 0; flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; color: var(--ink); font-weight: 600; }
.d-matrix > .mh small { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); font-weight: 500; }
.d-matrix > .mh.you small { color: var(--acc); }
.d-matrix > .you { background: var(--lav); }
.d-matrix button { flex: 1; padding: 5px 8px; border-radius: 7px; border: 1px solid; background: none; font: 500 13px var(--sans); text-align: left; cursor: pointer; }
.d-matrix button:hover, .d-matrix button[aria-pressed='true'] { box-shadow: 0 0 0 2px var(--acc); }
.d-detail { margin-top: 14px; padding: 12px 16px; border-radius: 10px; background: var(--lav); color: var(--ink); }
.d-matrix button.D { color: var(--ok-ink); background: var(--ok-bg); border-color: transparent; }
.d-matrix button.P { color: var(--eyebrow-ink); background: var(--lav-2); border-color: transparent; }
.d-matrix button.A { color: var(--warn-ink); background: var(--warn-bg); border-color: transparent; }
.d-matrix button.N { color: var(--ink-3); border-style: dashed; border-color: var(--line-2); }

/* Financials */
.d-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.d-quote { margin-top: 18px; padding-left: 16px; border-left: 3px solid #8B5CF6; color: var(--ink); font-size: 15px; }
.d-quote .d-eyebrow { margin-bottom: 4px; }
.lg { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-left: 6px; }
.lg.rev { background: #8B5CF6; margin-left: 0; }
.lg.cost { background: var(--teal); }
.d-chart { display: block; width: 100%; margin-top: 12px; overflow: visible; font: 11px var(--sans); }
.d-chart text { fill: var(--ink-3); }
.d-chart .grid { stroke: var(--line); }
.d-chart .rev { fill: #8B5CF6; }
.d-chart .cost { fill: var(--teal); }
.d-chart .sel { fill: var(--lav); }
.d-chart .on text { fill: var(--ink); font-weight: 600; }
.d-chart .l-rev { stroke: #8B5CF6; stroke-width: 2; fill: none; }
.d-chart .l-cost { stroke: var(--teal); stroke-width: 2; stroke-dasharray: 5 4; fill: none; }
.d-chart .dot { fill: #8B5CF6; }
.d-chart .dot-label { fill: var(--ink); font-weight: 600; }

/* Risks */
.d-dist { display: flex; align-items: center; gap: 6px; margin-top: 14px; }
.d-dist .d-big { margin: 0 10px 0 0; text-align: center; }
.d-dist button { flex: 1; height: 38px; border: 0; border-radius: 6px; cursor: pointer; }
.d-dist button:hover { filter: brightness(1.12); }
.crit { background: #E07A8E !important; }
.high { background: #C9A15A !important; }
.med { background: #6A5BA8 !important; }
.d-risks { padding: 0; }
.d-risks details { padding: 18px 22px; }
.d-risks summary { display: flex; justify-content: space-between; align-items: center; list-style: none; cursor: pointer; }
.d-risks summary::-webkit-details-marker { display: none; }
.d-risks summary::after { content: '+'; margin-left: 12px; color: var(--acc); font-weight: 600; }
.d-risks details[open] summary::after { content: '−'; }
.d-risks summary .d-tag { margin-left: auto; }
.d-risks details > * + * { margin-top: 14px; }
.d-grid2.plain p { color: var(--ink-3); }
.d-risks details + details { border-top: 1px solid var(--line); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 8px;
  background: var(--lav-2); color: var(--eyebrow-ink); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
}
.eyebrow .ic { width: 13px; height: 13px; }
.result-copy h2 { margin: 18px 0 26px; font-size: clamp(32px, 3.6vw, 44px); }
.checks { display: grid; gap: 12px; margin-bottom: 32px; }
.checks li { display: flex; align-items: center; gap: 14px; color: var(--ink-2); }
.checks .ic { color: var(--acc); }
.fine { margin: 12px 0 0; font-size: 13px; color: var(--ink-3); }

/* ── Benefits (bento) ──────────────────────────────────────────────
   Each cell: a short claim and the piece of the report that shows it. */
.benefits { max-width: var(--wrap); margin: 0 auto; padding: 50px var(--gutter) 40px; }
.benefits h2 { margin: 14px 0 28px; }
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tile {
  display: flex; flex-direction: column; gap: 18px; padding: 24px; min-width: 0;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow);
}
.tile.wide { grid-column: span 2; flex-direction: row; align-items: center; gap: 28px; }
.tile.wide .tile-copy { flex: 0 0 34%; }
.tile.wide .tile-ui { flex: 1; }
.tile h3 { margin: 0 0 6px; font-size: 19px; line-height: 1.2; letter-spacing: -.02em; }
.tile p { margin: 0; font-size: 14px; color: var(--ink-2); }
.tile-ui { min-width: 0; padding: 16px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); font-size: 13px; }
.tile:not(.wide) .tile-ui { margin-top: auto; }
.b-k { font-size: 12px; color: var(--ink-3); }
.d-tag.nv { background: none; border: 1px dashed var(--line-2); color: var(--ink-3); }
/* Clear call: score ring + what moves it */
.b-call { display: flex; align-items: center; gap: 20px; }
.b-ring { position: relative; flex: none; display: grid; place-items: center; }
.b-ring .d-ring { width: 104px; }
.b-ring b { position: absolute; font-size: 28px; line-height: 1; text-align: center; }
.b-ring small { display: block; margin-top: 3px; font-size: 11px; font-weight: 400; color: var(--ink-3); }
.b-lines { display: grid; gap: 10px; color: var(--ink-2); }
.b-lines span { display: block; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.b-unknown { padding-top: 10px; border-top: 1px solid var(--line); color: var(--ink); font-weight: 600; }
/* Proven vs guess */
.b-fig { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.b-fig b { font-size: 22px; letter-spacing: -.02em; }
.b-src { color: var(--ink-2); margin-bottom: 4px; }
.b-fig.muted { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); flex-direction: row; justify-content: space-between; align-items: center; }
/* Rivals: a slice of the capability matrix */
.b-matrix { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; align-items: center; }
.b-matrix small { font-size: 11px; font-weight: 600; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.b-matrix small.you { color: var(--acc); }
.b-matrix span { grid-column: 1 / -1; margin-top: 6px; color: var(--ink-2); }
.b-matrix i, .b-row i { font-style: normal; }
.b-matrix i { font-size: 11px; padding: 3px 6px; text-align: center; }
/* Next step: outcome + what changed */
.b-next { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 12px; }
.b-card { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 14px; border-radius: 10px; background: var(--card); border: 1px solid var(--line); }
.b-card b { font-size: 14px; line-height: 1.35; }
.b-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; color: var(--ink-2); }

/* ── Story: one hand-drawn scene on an 8s loop ───────────────────────
   0–25% the idea is typed and folds into a plane · 25–50% competitors and
   market reports · 50–75% forums and the news · 75–100% back to the laptop,
   the report is projected. Without motion the scene shows its end state.
   Runs only while .story.playing (landing.js). */
.story, .pricing-teaser { max-width: var(--wrap); margin: 0 auto; padding: 60px var(--gutter) 72px; }
.story-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.story-head h2 { margin-top: 14px; }
.story-head p { max-width: 400px; margin: 0; font-size: 15px; color: var(--ink-2); }
.story-stage {
  position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow);
  background: radial-gradient(70% 80% at 72% 0%, var(--lav), transparent 70%), var(--card);
}
.story-stage svg { display: block; width: 100%; height: auto; }
.story-note { position: absolute; right: 16px; top: 12px; font-size: 11px; color: var(--ink-3); }

.sk { fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.sk.thin { stroke-width: 1.5; }
.sk.thick { stroke-width: 4; }
.sk.leg { stroke-width: 13; stroke: var(--sk-leg); }
.sk.arm { stroke-width: 11; stroke: var(--sk-arm); }
.sk.arm.back { stroke: var(--sk-leg); }
.sk-f { fill: var(--card); }
.sk-lav { fill: var(--sk-arm); }
.sk-ink { fill: var(--ink); }
.sk-leaf { fill: var(--ok-bg); }
.sk-sun { fill: var(--warn-bg); stroke: var(--warn-ink); }
.sk-ray { stroke: var(--warn-ink); }
.sk-win { fill: var(--lav-2); }
.sk-win.on { fill: #FBBF24; }
.sk-unit { fill: var(--lav); stroke: var(--ink); stroke-width: 1.2; }
.st-led { fill: var(--line-2); }
.st-led.on { fill: #34D399; }
.st-led.alt { fill: #A78BFA; }
.st-cable { stroke: var(--acc); opacity: .5; }
.st-blush { fill: #F9A8D4; opacity: .55; }
.st-blink { fill: #F43F5E; }
.st-path { fill: none; stroke: var(--acc); stroke-width: 1.6; stroke-dasharray: 2 9; stroke-linecap: round; opacity: .55; }
.st-labels text { font: 600 12px var(--sans); fill: var(--ink-3); text-anchor: middle; }
.st-card { fill: var(--card); stroke: var(--line-2); stroke-width: 1.5; filter: drop-shadow(0 10px 18px rgba(76, 40, 170, .16)); }
.st-card.acc { stroke: var(--acc); }
.st-eyebrow { font: 700 11px var(--sans); letter-spacing: .08em; fill: var(--acc); }
.st-text { font: 500 14px var(--sans); fill: var(--ink); }
.st-cover { fill: var(--card); }
.st-bub rect { fill: var(--card); stroke: var(--acc); stroke-width: 1.3; filter: drop-shadow(0 6px 12px rgba(76, 40, 170, .16)); }
.st-bub circle { fill: var(--ok-bg); }
.st-bub path { fill: none; stroke: var(--ok-ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.st-bub text { font: 600 12.5px var(--sans); fill: var(--ink); }
.st-beam { fill: url(#st-beam); }
.st-ring { fill: none; stroke: var(--lav-2); stroke-width: 8; }
.st-ring.on { stroke: #A78BFA; stroke-linecap: round; stroke-dasharray: 65 100; }
.st-num { font: 800 22px var(--sans); fill: var(--ink); text-anchor: middle; }
.st-title { font: 700 15px var(--sans); fill: var(--ink); }
.st-small { font: 500 12px var(--sans); fill: var(--ink-2); }
.st-foot { font: 500 11.5px var(--sans); fill: var(--ink-3); }
.st-track { fill: var(--lav-2); }
.st-bar { fill: var(--acc); }
.st-idea, .st-plane { opacity: 0; } /* end state: the plane is home, the report is up */
.st-bub, .st-report-card, .st-bar, .st-cover, .st-hand { transform-box: fill-box; }
.st-bub { transform-origin: 0 100%; }
.st-report-card { transform-origin: 75% 100%; }
.st-bar { transform-origin: 0 50%; }
.st-cover { transform-origin: 100% 50%; }

.story-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; position: relative; margin-top: 22px; padding-top: 18px; counter-reset: st; }
.story-steps::before, .story-steps::after { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; border-radius: 3px; background: var(--lav-2); }
.story-steps::after { background: var(--acc); transform-origin: left; transform: scaleX(0); }
.story-steps li { display: grid; gap: 2px; font-size: 13px; color: var(--ink-3); counter-increment: st; text-align: center; }
.story-steps b { font-size: 15px; color: var(--ink); }
.story-steps b::before { content: counter(st) '. '; color: var(--acc); }

@media (prefers-reduced-motion: no-preference) {
  .story .st-idea { animation: st-idea 8s infinite; }
  .story .st-cover.l1 { animation: st-l1 8s infinite; }
  .story .st-cover.l2 { animation: st-l2 8s infinite; }
  .story .st-cover.l3 { animation: st-l3 8s infinite; }
  .story .st-plane { animation: st-plane 8s infinite ease-in-out; }
  .story .st-plane-in { animation: bob 1.4s ease-in-out infinite; }
  .story .st-bub.b1 { animation: st-b1 8s infinite; }
  .story .st-bub.b2 { animation: st-b2 8s infinite; }
  .story .st-bub.b3 { animation: st-b3 8s infinite; }
  .story .st-bub.b4 { animation: st-b4 8s infinite; }
  .story .st-report { animation: st-report 8s infinite; }
  .story .st-report-card { animation: st-card 8s infinite; }
  .story .st-ring.on { animation: st-ring 8s infinite; }
  .story .st-bar { animation: st-bar 8s infinite; }
  .story .st-hand { animation: st-tap .26s ease-in-out infinite alternate; }
  .story .st-hand.back { animation-delay: -.13s; }
  .story .st-eye { transform-box: fill-box; transform-origin: center; animation: st-blink 4s infinite; }
  .story .st-steam { animation: st-steam 2.4s ease-in-out infinite; }
  .story .st-cloud { animation: st-cloud 9s ease-in-out infinite alternate; }
  .story .st-cloud.c2 { animation-duration: 12s; }
  .story .st-blink { animation: pulse 1.2s ease-in-out infinite; }
  .story .st-led.on, .story .st-led.alt { animation: pulse 1.1s ease-in-out var(--d, 0s) infinite; }
  .story .st-led.alt:nth-of-type(4n) { animation-delay: -.5s; }
  .story .st-path { animation: dash-drift 30s linear infinite; }
  .story .story-steps::after { animation: st-progress 8s linear infinite; }
  .story .story-steps li { animation: st-step 8s infinite; }
  .story .story-steps li:nth-child(2) { animation-delay: -6s; }
  .story .story-steps li:nth-child(3) { animation-delay: -4s; }
  .story .story-steps li:nth-child(4) { animation-delay: -2s; }
  .story:not(.playing) *, .story:not(.playing) ::after { animation-play-state: paused !important; }
}
@keyframes st-idea {
  0% { opacity: 0; transform: translateY(10px); }
  2%, 21% { opacity: 1; transform: none; }
  25%, 100% { opacity: 0; transform: translate(240px, 90px) scale(.08); }
}
@keyframes st-l1 { 0%, 3% { transform: none; } 9%, 100% { transform: scaleX(0); } }
@keyframes st-l2 { 0%, 9% { transform: none; } 15%, 100% { transform: scaleX(0); } }
@keyframes st-l3 { 0%, 15% { transform: none; } 21%, 100% { transform: scaleX(0); } }
@keyframes st-plane {
  0%, 23% { opacity: 0; transform: translate(300px, 190px) scale(.3); }
  26% { opacity: 1; transform: translate(300px, 190px) rotate(-10deg); }
  31%, 36% { opacity: 1; transform: translate(535px, 225px) rotate(4deg); }
  42%, 48% { opacity: 1; transform: translate(695px, 115px) rotate(-14deg); }
  55%, 60% { opacity: 1; transform: translate(855px, 255px) rotate(10deg); }
  66%, 71% { opacity: 1; transform: translate(1015px, 195px) rotate(-6deg); }
  76% { opacity: 1; transform: translate(700px, 40px) rotate(190deg); }
  81%, 100% { opacity: 0; transform: translate(340px, 320px) rotate(230deg) scale(.3); }
}
@keyframes st-b1 { 0%, 31% { opacity: 0; transform: translateY(8px) scale(.5); } 34%, 95% { opacity: 1; transform: none; } 99%, 100% { opacity: 0; } }
@keyframes st-b2 { 0%, 42% { opacity: 0; transform: translateY(8px) scale(.5); } 45%, 95% { opacity: 1; transform: none; } 99%, 100% { opacity: 0; } }
@keyframes st-b3 { 0%, 55% { opacity: 0; transform: translateY(8px) scale(.5); } 58%, 95% { opacity: 1; transform: none; } 99%, 100% { opacity: 0; } }
@keyframes st-b4 { 0%, 66% { opacity: 0; transform: translateY(8px) scale(.5); } 69%, 95% { opacity: 1; transform: none; } 99%, 100% { opacity: 0; } }
@keyframes st-report { 0%, 80% { opacity: 0; } 84%, 95% { opacity: 1; } 99%, 100% { opacity: 0; } }
@keyframes st-card { 0%, 80% { transform: scale(.2); } 85%, 100% { transform: none; } }
@keyframes st-ring { 0%, 84% { stroke-dasharray: 0 100; } 92%, 100% { stroke-dasharray: 65 100; } }
@keyframes st-bar { 0%, 85% { transform: scaleX(0); } 92%, 100% { transform: none; } }
@keyframes st-tap { to { transform: translateY(-3px); } }
@keyframes st-blink { 0%, 95%, 100% { transform: none; } 97% { transform: scaleY(.1); } }
@keyframes st-steam { 0% { opacity: 0; transform: translateY(4px); } 50% { opacity: .8; } 100% { opacity: 0; transform: translateY(-8px); } }
@keyframes st-cloud { to { transform: translateX(26px); } }
@keyframes st-progress { to { transform: scaleX(1); } }
@keyframes st-step { 0%, 24% { opacity: 1; } 26%, 100% { opacity: .45; } }

/* ── Pricing teaser: the four plans in short; details on pricing.html ── */
.pt-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.pt-card {
  position: relative; display: flex; flex-direction: column; gap: 6px; padding: 24px;
  background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.pt-card:hover { transform: translateY(-4px); border-color: var(--line-2); box-shadow: var(--shadow-lg); }
.pt-card.featured { border: 1.5px solid var(--acc); box-shadow: var(--shadow-lg); }
.pt-card ul { display: grid; gap: 8px; margin: 12px 0 20px; font-size: 14px; color: var(--ink-2); }
.pt-card li { display: flex; gap: 10px; }
.pt-card li::before { content: '✓'; color: var(--acc); font-weight: 700; }
.pt-more { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; font-size: 14px; font-weight: 600; color: var(--acc); }
.pt-more .ic { width: 15px; height: 15px; transition: transform .2s ease; }
.pt-card:hover .pt-more .ic { transform: translateX(3px); }
.pt-note { margin: 14px 0 0; font-size: 13px; color: var(--ink-3); }

/* ── Closing ───────────────────────────────────────────────────────── */
.closing {
  position: relative; overflow: hidden;
  width: calc(min(100%, var(--wrap)) - 2 * var(--gutter)); margin: 28px auto 56px; min-height: 190px;
  display: grid; grid-template-columns: 1fr 1.25fr; align-items: center;
  border-radius: 26px; color: #fff;
  background:
    radial-gradient(60% 120% at 20% 100%, rgba(139, 92, 246, .45), transparent 60%),
    linear-gradient(100deg, #2A1559 0%, #3D2088 55%, #5A3BA8 100%);
}
.planet { align-self: stretch; position: relative; }
.planet svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.closing-body { padding: 28px 52px 28px 0; }
.closing h2 { font-size: clamp(26px, 2.6vw, 32px); letter-spacing: -.03em; line-height: 1.1; }
.closing h2 span { color: #E9E1FF; }
.idea {
  position: relative; display: flex; align-items: center; gap: 10px; margin-top: 18px;
  background: var(--card); border-radius: 14px; padding: 6px 6px 6px 16px;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .4);
}
.idea .spark { color: var(--acc); width: 20px; height: 20px; }
.idea input {
  flex: 1; min-width: 0; height: 40px; border: 0; outline: 0; background: transparent;
  font: 500 15px var(--sans); color: var(--ink);
}
.idea input::placeholder { color: var(--ink-3); }
.idea:focus-within { box-shadow: 0 0 0 3px rgba(196, 172, 255, .7), 0 10px 30px -10px rgba(0, 0, 0, .4); }
.idea button {
  position: relative; display: grid; place-items: center; flex: none;
  width: 42px; height: 42px; border: 0; border-radius: 10px; cursor: pointer;
  background: var(--btn); color: #fff; transition: background .15s;
}
.idea button:hover { background: var(--btn-hover); }
.idea button:disabled { cursor: progress; }
.spinner { display: none; width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff; animation: spin .7s linear infinite; }
.idea[data-state='loading'] .spinner { display: block; }
.idea[data-state='loading'] button .ic { display: none; }
.idea[data-state='error'] { box-shadow: 0 0 0 3px #FF8FA3; }
.idea-msg { margin: 10px 2px 0; font-size: 13px; color: #D9CFF7; min-height: 20px; }
.idea[data-state='error'] + .idea-msg { color: #FFD1DA; font-weight: 600; }

/* Have an idea: text and input left, planet right; the planet reacts to
   the input next to it. The closing CTA keeps the planet-left layout. */
.idea-band {
  grid-template-columns: 1.2fr 1fr; gap: 32px;
  background:
    radial-gradient(60% 120% at 80% 100%, rgba(139, 92, 246, .45), transparent 60%),
    linear-gradient(100deg, #2A1559 0%, #3D2088 55%, #5A3BA8 100%);
}
.idea-band .closing-body { padding: 36px 0 36px 48px; }
.idea-band .planet { min-height: 210px; }
.pl-ring { opacity: .7; transition: opacity .4s ease; }
.pl-stars { fill: #E9DDFF; opacity: .75; }
.pl-light { opacity: .9; transition: opacity .4s ease; }
.idea-band:focus-within .pl-light { opacity: 1; }
.pl-body { transition: filter .6s ease; }
.pl-moon { transition: filter .4s ease; }
.idea-band:focus-within .pl-ring { opacity: 1; }
.idea-band:focus-within .pl-body { filter: brightness(1.12); }
.idea-band:has(.idea input:not(:placeholder-shown)) .pl-moon { filter: drop-shadow(0 0 6px #E9DDFF); }
@media (prefers-reduced-motion: no-preference) {
  /* The moon follows the ring (same ellipse, as a path in viewBox units) */
  .pl-moon {
    cx: 0; cy: 0; offset-rotate: 0deg; animation: moon-orbit 40s linear infinite;
    offset-path: path('M368.1 38.7A210 70 -32 1 1 11.9 261.3A210 70 -32 1 1 368.1 38.7Z');
  }
  .pl-star { animation: twinkle 4s ease-in-out infinite; }
  /* Stars behind the planet circle its centre; the surface light drifts */
  .pl-stars { transform-box: view-box; transform-origin: 250px 330px; animation: spin 80s linear infinite; }
  .pl-stars.slow { animation-duration: 130s; animation-direction: reverse; }
  .pl-light { animation: light-drift 18s ease-in-out infinite alternate; }
  .pl-star + .pl-star { animation-delay: 2s; }
  .idea-band:has(.idea[data-state='loading']) .pl-body { animation: pulse 1.2s ease-in-out infinite; }
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Footer ────────────────────────────────────────────────────────── */
.footer {
  max-width: var(--wrap); margin: 0 auto; padding: 24px var(--gutter) 40px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px;
  font-size: 13px; color: var(--ink-3);
}
.footer nav { display: flex; flex-wrap: wrap; gap: 20px; }

/* ── Dark backdrop: the old landing's aurora and stars ─────────────── */
body { position: relative; }
:root:not([data-theme='light']) body {
  background:
    radial-gradient(900px 700px at -8% -12%, rgba(139, 92, 246, .22), transparent 60%),
    radial-gradient(820px 640px at 108% -6%, rgba(217, 70, 239, .14), transparent 60%),
    radial-gradient(1400px 600px at 50% 1150px, rgba(139, 92, 246, .14), transparent 65%),
    var(--bg);
}
:root:not([data-theme='light']) body::before {
  content: ''; position: absolute; z-index: -1; inset: 0 0 auto; height: 900px; pointer-events: none;
  background:
    radial-gradient(1.5px 1.5px at 12% 180px, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 22% 340px, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 8% 520px, #D8C9FF 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 86% 150px, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 76% 620px, #D8C9FF 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 92% 560px, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 38% 110px, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 60% 230px, #fff 50%, transparent 51%);
}
@media (prefers-reduced-motion: no-preference) {
  :root:not([data-theme='light']) body::before { animation: twinkle 4s ease-in-out infinite; }
}
@keyframes twinkle { 50% { opacity: .45; } }

/* ── Theme toggle ──────────────────────────────────────────────────── */
.theme-toggle {
  display: grid; place-items: center; width: 40px; height: 40px; flex: none;
  border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--ink-2); cursor: pointer;
}
.theme-toggle:hover { color: var(--acc); border-color: var(--line-2); }
.theme-toggle .ic { width: 17px; height: 17px; }
.theme-toggle .sun { display: none; }
:root:not([data-theme='light']) .theme-toggle .sun { display: block; }
:root:not([data-theme='light']) .theme-toggle .moon { display: none; }

/* ── FAQ ───────────────────────────────────────────────────────────── */
.faq { max-width: 760px; margin: 0 auto; padding: 40px var(--gutter) 70px; }
.faq h2, .compare h2 { text-align: center; margin: 14px 0 32px; }
.faq .eyebrow, .compare .eyebrow { display: flex; width: max-content; margin: 0 auto; }
.faq-list { display: grid; gap: 10px; }
.faq details {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow);
  transition: border-color .2s;
}
.faq details[open] { border-color: var(--line-2); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 22px; cursor: pointer; list-style: none; font-weight: 700;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px;
  background: var(--lav); color: var(--acc); font-weight: 600; transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 22px 20px; color: var(--ink-2); font-size: 15px; }
.faq details a { color: var(--acc); text-decoration: underline; }

/* ── Pricing page ──────────────────────────────────────────────────── */
.p-hero { max-width: var(--wrap); margin: 0 auto; padding: 80px var(--gutter) 36px; text-align: center; }
.p-hero h1, .p-hero h2 { font-size: clamp(40px, 5.4vw, 64px); }
.p-hero .lede { margin: 20px auto 28px; }
.bill {
  display: inline-flex; padding: 4px; gap: 4px; border-radius: 12px;
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.bill button {
  display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 18px; border: 0; border-radius: 9px;
  background: none; color: var(--ink-2); font: 600 14px var(--sans); cursor: pointer;
}
.bill button[aria-pressed='true'] { background: var(--btn); color: #fff; }
.save { padding: 2px 6px; border-radius: 6px; background: var(--ok-bg); color: var(--ok-ink); font-size: 11px; font-weight: 700; }
.bill button[aria-pressed='true'] .save { background: rgba(255, 255, 255, .2); color: #fff; }

.plans { max-width: var(--wrap); margin: 0 auto; padding: 32px var(--gutter) 70px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.plan {
  position: relative; display: flex; flex-direction: column; gap: 6px; padding: 24px;
  background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow);
}
.plan.featured { border: 1.5px solid var(--acc); box-shadow: var(--shadow-lg); }
.badge {
  position: absolute; top: -12px; left: 24px; padding: 3px 10px; border-radius: 8px;
  background: var(--btn); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .06em;
}
.plan-name { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--acc); }
.price { font-size: 40px; font-weight: 800; letter-spacing: -.04em; line-height: 1.1; }
.price small { font-size: 15px; font-weight: 500; letter-spacing: 0; color: var(--ink-3); }
.plan-note { min-height: 20px; font-size: 13px; color: var(--ink-3); }
.plan .checks { gap: 10px; margin: 14px 0 22px; font-size: 14px; }
.plan .checks li { align-items: flex-start; gap: 10px; }
.plan .checks .ic { margin-top: 2px; width: 16px; height: 16px; }
.plan .btn { justify-content: center; margin-top: auto; }
.credit-title { font-size: 22px; font-weight: 800; letter-spacing: -.03em; }
.packs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0; }
.pack {
  position: relative; padding: 14px 6px 10px; text-align: center; border: 1px solid var(--line); border-radius: 12px;
  background: var(--card); color: inherit; font: inherit; cursor: pointer; transition: border-color .15s, background .15s, box-shadow .15s;
}
.pack:hover { border-color: var(--line-2); }
.pack[aria-pressed='true'] { border-color: var(--acc); background: var(--lav); box-shadow: 0 0 0 1px var(--acc); }
.pack[aria-pressed='true'] b { color: var(--acc); }
.pack:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
.pack b { display: block; font-size: 18px; }
.pack span { font-size: 12px; color: var(--ink-3); }
.pack i { position: absolute; top: -9px; left: 50%; transform: translateX(-50%); padding: 1px 6px; border-radius: 6px; font: 700 10px var(--sans); white-space: nowrap; background: var(--lav-2); color: var(--eyebrow-ink); }
.pack i.best { background: var(--ok-bg); color: var(--ok-ink); }
/* Plan details: compact card by default, the explanations on request.
   Native <details>, so Enter/Space toggle it and the open state is announced. */
.plan-more { margin: -10px 0 20px; border-top: 1px solid var(--line); }
.plan-more summary {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 12px 0 2px; cursor: pointer; list-style: none; font-size: 13px; font-weight: 600; color: var(--acc);
}
.plan-more summary::-webkit-details-marker { display: none; }
.plan-more summary::after {
  content: '+'; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 6px;
  background: var(--lav); font-size: 14px; transition: transform .2s;
}
.plan-more[open] summary::after { transform: rotate(45deg); }
.plan-more dl { display: grid; gap: 10px; margin: 10px 0 0; font-size: 13px; }
.plan-more dt { font-weight: 600; color: var(--ink); }
.plan-more dd { margin: 2px 0 0; color: var(--ink-2); }
.plans-note { max-width: 640px; margin: -38px auto 96px; padding: 0 var(--gutter); text-align: center; font-size: 13px; color: var(--ink-3); }
.rates { margin-bottom: 22px; font-size: 13px; }
.rates div { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.rates b { color: var(--ink); }

.compare { max-width: 980px; margin: 0 auto; padding: 20px var(--gutter) 80px; }
.table-wrap { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
.compare table { width: 100%; min-width: 540px; border-collapse: collapse; font-size: 14px; }
.compare th, .compare td { padding: 14px 18px; text-align: center; border-bottom: 1px solid var(--line); }
.compare tr:last-child td { border-bottom: 0; }
.compare th { font-size: 13px; color: var(--acc); }
.compare th:first-child, .compare td:first-child { text-align: left; color: var(--ink-2); }
.compare td { font-weight: 600; }
.compare td.no { color: var(--ink-3); font-weight: 400; }
.compare .ic { color: var(--acc); width: 16px; height: 16px; vertical-align: -3px; }
.closing-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 18px; }
.closing-cta .btn-ghost { background: #fff; color: #0D0B17; border: 0; }
.closing-link { color: #E9E1FF; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ── Closing, light: card surface, dot grid, the sketched plane loops ── */
.finale {
  grid-template-columns: 1fr 1.1fr; gap: 24px; color: var(--ink);
  background: radial-gradient(var(--dot) 1px, transparent 1.5px) 0 0 / 22px 22px, var(--card);
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.finale h2 span { color: var(--ink-3); }
.finale .closing-link { color: var(--acc); }
.finale-art { align-self: stretch; position: relative; min-height: 200px; }
.finale-art svg { position: absolute; inset: 16px 0 0 24px; width: calc(100% - 24px); height: calc(100% - 16px); overflow: visible; }
.fin-plane { transform: translate(380px, 34px) rotate(-10deg); }
@media (prefers-reduced-motion: no-preference) {
  .fin-plane {
    offset-path: path('M20 160C90 150 120 60 190 70s60 90 10 92-40-80 40-96 110-30 160-40');
    offset-rotate: auto; transform: none; animation: fin-fly 7s ease-in-out infinite;
  }
  .finale .st-cloud { animation: st-cloud 9s ease-in-out infinite alternate; }
  .finale .st-cloud.c2 { animation-duration: 12s; }
  .finale .st-blink { animation: pulse 1.2s ease-in-out infinite; }
  .finale .st-path { animation: dash-drift 30s linear infinite; }
}
@keyframes fin-fly { 0% { offset-distance: 0%; opacity: 0; } 8% { opacity: 1; } 88% { opacity: 1; } 100% { offset-distance: 100%; opacity: 0; } }

/* ── Reveal ────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s ease; }
  .reveal.in { opacity: 1; transform: none; }
}

/* ── Tablet ────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .nav { gap: 24px; }
  .nav-links { gap: 20px; }
  .hero { grid-template-columns: 1fr; padding-bottom: 80px; min-height: 0; }
  .stage { min-height: 480px; max-width: 560px; width: 100%; margin: 0 auto; }
  .result { grid-template-columns: 1fr; gap: 48px; }
  .window-wrap { max-width: 900px; }
  .bento { grid-template-columns: 1fr 1fr; }
  .story-head { flex-direction: column; align-items: flex-start; }
  .story-steps, .pt-grid { grid-template-columns: repeat(2, 1fr); row-gap: 24px; }
  .tile.wide { flex-direction: column; align-items: stretch; gap: 18px; }
  .tile.wide .tile-copy { flex: none; }
}

/* ── Header menu: below 900px the five links and the actions no longer
   fit on one line, so the links move into the burger menu ─────────── */
@media (max-width: 900px) {
  .nav-links, .nav-signin { display: none; }
  .nav-burger { display: flex; }
  .nav-menu.open {
    display: flex; flex-direction: column; position: absolute; top: calc(100% - 4px); left: var(--gutter); right: var(--gutter);
    background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-lg); padding: 8px;
  }
  .nav-menu a { padding: 12px 14px; border-radius: 10px; font-weight: 500; }
  .nav-menu a:hover { background: var(--lav); }
}

/* ── Mobile ────────────────────────────────────────────────────────── */
@media (max-width: 760px) {
  :root { --gutter: 16px; }
  .nav { padding: 14px var(--gutter); gap: 12px; }
  .nav-actions { gap: 8px; }
  .brand { font-size: 20px; }
  .nav-actions .btn-dark { height: 38px; padding: 0 14px; }
  .nav-actions .btn-dark .ic { display: none; } /* keeps the header inside the gutter at 390px */

  .hero { padding: 24px var(--gutter) 60px; gap: 8px; }
  .lede, .hero .lede { font-size: 16px; margin: 20px 0 24px; }
  .cta-row .btn { flex: 1; justify-content: center; }
  .stage { min-height: 0; padding: 12px 0 34px; }
  .flow { transform: none; padding: 0 12px 12px; }
  .flow-bar { margin: 0 -12px 12px; padding: 0 12px; }
  .f-why { grid-template-columns: 1fr; }
  .flow-steps button { font-size: 12px; padding: 0 4px; }
  .flow-steps .n { display: none; }
  .orbits { inset: 0; width: 100%; }
  .orbit.dashed { display: none; }
  .stage-note { left: 0; right: auto; bottom: -14px; }

  .result { padding: 20px var(--gutter) 60px; }
  .window { transform: none; padding: 10px; }
  .win-url { display: none; }
  .win-label { margin-left: auto; }
  .window-wrap::before { inset: -10px 10px 20px -6px; }
  .result-copy .btn { width: 100%; justify-content: center; }

  .benefits { padding: 30px var(--gutter) 30px; }
  .story, .pricing-teaser { padding: 30px var(--gutter) 30px; }
  .story-stage { border-radius: 16px; }
  .story-note { display: none; }
  .story-steps, .pt-grid { grid-template-columns: 1fr; gap: 14px; }
  .bento { grid-template-columns: 1fr; gap: 12px; }
  .tile.wide { grid-column: auto; }
  .tile { padding: 18px; }
  .b-call { flex-direction: column; align-items: flex-start; }
  .b-next { grid-template-columns: 1fr; }

  .closing { grid-template-columns: 1fr; margin: 10px auto 32px; border-radius: 20px; }
  .planet { height: 110px; }
  .closing-body { padding: 0 20px 24px; }
  .finale-art { min-height: 150px; }
  .finale .closing-body { padding-top: 4px; }
  .idea-band { gap: 0; }
  .idea-band .closing-body { padding: 26px 20px 6px; }
  .idea-band .planet { min-height: 0; }
  .idea-band .pl-moon { display: none; } /* the 110px strip crops its orbit to the edge */
  .footer { padding: 20px var(--gutter) 32px; flex-direction: column; }
}

@media (max-width: 1024px) {
  .plans { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .theme-toggle { width: 38px; height: 38px; }
  .p-hero { padding: 24px var(--gutter) 24px; }
  .plans { grid-template-columns: 1fr; padding: 16px var(--gutter) 50px; gap: 22px; }
  .faq summary { padding: 16px 18px; }
  .faq details p { padding: 0 18px 18px; }
}

/* A soft-edged mask slides left to right, like a brush stroke */
.blob.b4 {
  -webkit-mask-image: linear-gradient(90deg, #000 40%, transparent 60%); mask-image: linear-gradient(90deg, #000 40%, transparent 60%);
  -webkit-mask-size: 300% 100%; mask-size: 300% 100%; -webkit-mask-position: 0 0; mask-position: 0 0;
}
@keyframes wash-in {
  from { -webkit-mask-position: 100% 0; mask-position: 100% 0; opacity: .4; }
  to { -webkit-mask-position: 0 0; mask-position: 0 0; opacity: 1; }
}
@keyframes wash {
  to { transform: translate(2%, 1%) scale(1.02); opacity: .85; }
}
