/* Marketing landing — shares the app's dark palette (style.css tokens), own layout. */
:root {
  --bg: #101216; --bg2: #14171c; --panel: #1a1d23; --panel2: #22262e;
  --ink: #e9ecf1; --mute: #8b929d; --line: #2c313a; --line-strong: #3a404b;
  --accent: #3d8bfd; --accent-ink: #cfe0ff; --accent-soft: rgba(61, 139, 253, .12);
  --good: #2f9e63; --amber: #d69a2e; --bad: #d6553f;
  --radius: 14px; --radius-sm: 10px; --maxw: 1080px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; background: var(--bg); color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; line-height: 1.6; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* nav */
.nav { position: sticky; top: 0; z-index: 20;
  background: rgba(16, 18, 22, .82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 650; letter-spacing: -.01em; }
.brand img { width: 26px; height: 26px; border-radius: 7px; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a.muted-link { color: var(--mute); font-size: 14.5px; font-weight: 550; }
.nav-links a.muted-link:hover { color: var(--ink); }
@media (max-width: 680px) { .nav-links a.muted-link { display: none; } }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px;
  padding: 11px 20px; border-radius: 999px; cursor: pointer; border: 1px solid transparent;
  transition: filter .12s, background .12s, border-color .12s; white-space: nowrap; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { filter: brightness(1.1); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--panel); border-color: var(--mute); }
.btn-lg { padding: 14px 26px; font-size: 16px; }

/* hero */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line);
  background:
    radial-gradient(70% 90% at 82% -10%, rgba(61,139,253,.16), transparent 60%),
    radial-gradient(50% 70% at 8% 0%, rgba(47,158,99,.10), transparent 55%); }
.hero .wrap { padding: 76px 20px 84px; display: grid; grid-template-columns: 1.05fr .95fr;
  gap: 48px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 650;
  letter-spacing: .04em; text-transform: uppercase; color: var(--accent);
  background: var(--accent-soft); border: 1px solid rgba(61,139,253,.25);
  padding: 5px 12px; border-radius: 999px; }
h1 { font-size: clamp(34px, 5vw, 52px); line-height: 1.08; letter-spacing: -.025em;
  margin: 20px 0 16px; font-weight: 720; }
h1 .grad { background: linear-gradient(100deg, #6fb0ff, #3d8bfd); -webkit-background-clip: text;
  background-clip: text; color: transparent; }
.lede { font-size: 18px; color: #c4cad3; max-width: 33ch; margin: 0 0 30px; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-note { margin-top: 18px; font-size: 13px; color: var(--mute); }

/* hero visual — a stylized "clip" card */
/* Hero card. Shows a REAL generated clip and a real question from the bank, injected by
   tools/build_site.py. The previous version faked a traffic scene with coloured divs
   (.road/.dash/.car/.cyc, now removed) — a mock-up of the one thing we can actually
   render at volume. The answer is deliberately not revealed here.

   aspect-ratio must match the renderer's native 1280x600, same as the app's .stimulus.
   Using 16/9 here made the card a quarter taller than it needed to be AND cropped ~17%
   off the sides — on a hazard clip, where the thing being tested is often near the edge. */
.clipcard { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: var(--panel); box-shadow: 0 20px 60px rgba(0,0,0,.4);
  margin: 0; max-width: 520px; width: 100%; justify-self: end; align-self: center; }
.clipcard video { display: block; width: 100%; aspect-ratio: 1280 / 600; object-fit: cover;
  background: #16181c; }
.clipcard .qbar { padding: 12px 14px; border-top: 1px solid var(--line); }
.clipcard .qbar .q { font-weight: 600; font-size: 13.5px; margin-bottom: 8px; }
.clipcard .opt { font-size: 12.5px; color: #cbd0d8; border: 1px solid var(--line);
  border-radius: 7px; padding: 6px 10px; margin-bottom: 5px; }
.clipcard .qnote { margin: 9px 0 0; font-size: 11px; color: var(--mute); line-height: 1.4; }

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 34px; padding: 54px 20px 60px; }
  .lede { max-width: none; }
  .clipcard { max-width: 460px; }
}

/* generic section */
section.block { padding: 76px 0; border-bottom: 1px solid var(--line); }
.block h2 { font-size: clamp(26px, 3.4vw, 34px); letter-spacing: -.02em; line-height: 1.15;
  margin: 0 0 14px; font-weight: 680; }
.block .sub { color: var(--mute); font-size: 17px; max-width: 56ch; margin: 0 0 40px; }
.center { text-align: center; }
.center .sub { margin-left: auto; margin-right: auto; }

/* feature grid */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 820px) { .grid3 { grid-template-columns: 1fr; } }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; transition: border-color .15s, transform .15s; }
.card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.card .ic { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); margin-bottom: 16px; }
.card .ic svg { width: 22px; height: 22px; }
.card h3 { margin: 0 0 8px; font-size: 18px; font-weight: 640; letter-spacing: -.01em; }
.card p { margin: 0; color: #b8bec7; font-size: 14.5px; }

/* split feature (diagnostics) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; gap: 30px; } }
.bars-note { margin: 14px 0 0; font-size: 11.5px; color: var(--mute); }
.bars { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.barrow { display: grid; grid-template-columns: 130px 1fr 40px; gap: 12px; align-items: center;
  margin: 12px 0; font-size: 13.5px; }
.barrow .track { height: 9px; background: var(--panel2); border-radius: 999px; overflow: hidden; }
.barrow .fill { display: block; height: 100%; border-radius: 999px; }  /* display:block is load-bearing: a <span> is inline, and width/height do not
     apply to non-replaced inline elements — the bar rendered empty without it. */
.barrow .pct { text-align: right; font-variant-numeric: tabular-nums; font-weight: 650; font-size: 13px; }
.check { color: var(--good); }

/* stat row */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 720px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat { text-align: center; padding: 8px; }
.stat .n { font-size: clamp(28px, 4vw, 38px); font-weight: 720; letter-spacing: -.02em; color: #fff; }
.stat .l { color: var(--mute); font-size: 13.5px; margin-top: 4px; }

/* pricing */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 760px; margin: 0 auto; }
@media (max-width: 680px) { .plans { grid-template-columns: 1fr; } }
.plan { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px; }
.plan.feat { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 16px 40px rgba(61,139,253,.12); }
.plan .name { font-weight: 640; font-size: 15px; color: var(--mute); }
.plan.feat .name { color: var(--accent); }
.plan .price { font-size: 40px; font-weight: 720; letter-spacing: -.02em; margin: 8px 0 2px; }
.plan .price span { font-size: 15px; font-weight: 500; color: var(--mute); }
.plan ul { list-style: none; padding: 0; margin: 20px 0 24px; }
.plan li { padding: 7px 0 7px 26px; position: relative; font-size: 14.5px; color: #c4cad3; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--good); font-weight: 700; }
.plan .btn { width: 100%; justify-content: center; }

/* faq */
.faq { max-width: 760px; margin: 0 auto; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 4px 20px;
  margin-bottom: 12px; background: var(--panel); }
.faq summary { cursor: pointer; font-weight: 600; font-size: 16px; padding: 16px 0; list-style: none;
  display: flex; justify-content: space-between; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--mute); font-size: 22px; font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 18px; color: #b8bec7; font-size: 14.5px; }

/* final cta */
.finalcta { text-align: center; background:
    radial-gradient(60% 120% at 50% 0%, rgba(61,139,253,.14), transparent 70%); }
.finalcta h2 { margin-bottom: 10px; }

/* footer */
footer { padding: 44px 0 60px; color: var(--mute); font-size: 13.5px; }
footer .cols { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; margin-bottom: 28px; }
footer a { color: var(--mute); } footer a:hover { color: var(--ink); }
footer .disclaimer { border-top: 1px solid var(--line); padding-top: 22px; line-height: 1.7; }
footer .disclaimer strong { color: #b8bec7; font-weight: 600; }

/* ── preview framing + topic pages (see tools/build_site.py) ── */
.notice { margin: 18px 0 22px; padding: 14px 16px; font-size: 15px; line-height: 1.55;
  color: var(--ink); background: var(--amber-soft); border: 1px solid var(--line);
  border-left: 3px solid var(--amber); border-radius: var(--radius-sm); }
.topiclinks .card { display: block; text-decoration: none; color: inherit; transition: border-color .12s, transform .12s; }
.topiclinks .card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.topiclinks .card h3::after { content: " →"; color: var(--accent); }
.subform { display: flex; flex-direction: column; gap: 10px; }
.subform input[type="email"] { padding: 11px 13px; font: inherit; font-size: 15px; color: var(--ink);
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.subform input[type="email"]:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.subform .check { display: flex; gap: 9px; align-items: flex-start; font-size: 13px; color: var(--mute); }
.submsg { font-size: 13px; margin: 2px 0 0; }
.submsg.ok { color: var(--good); }
.submsg.bad { color: var(--bad); }
.topic h1 { max-width: 22ch; }
.topic h2 { margin: 34px 0 12px; font-size: 22px; }
.topic p, .topic li { line-height: 1.65; }
.topic .lede { max-width: 62ch; }
.topic .sub { max-width: 66ch; }
.lawlist, .checklist, .linklist { max-width: 66ch; padding-left: 22px; }
.lawlist li, .checklist li, .linklist li { margin: 8px 0; }
.lawlist { list-style: none; padding-left: 0; }
.lawlist li { padding-left: 14px; border-left: 2px solid var(--line-strong); }
.topicshot { margin: 18px 0 6px; }
.topicshot img { width: 100%; height: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.topicshot figcaption { margin-top: 8px; font-size: 13px; color: var(--mute); }
