/* ==========================================================================
   PumaDoc — base, layout, chrome
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

/*
 * overflow-x on body alone does not stop a mobile browser widening the layout
 * viewport to the widest thing on the page — the 640px comparison table, even
 * though its own wrapper scrolls it. That widened viewport is what threw the
 * fixed-position menu and consent card off the screen. `clip` holds the
 * viewport at device width without making html a scroll container, so sticky
 * positioning keeps working.
 */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; }
img { height: auto; }
[hidden] { display: none !important; }

a { color: var(--ink); text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--frost-deep); }

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 3px;
}

.vh {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.hp { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }

.skip {
  position: fixed; top: 0; left: 50%; transform: translate(-50%, -110%);
  z-index: 200; background: var(--brand); color: var(--on-brand); font-weight: 600;
  padding: 0.65rem 1.25rem; border-radius: 0 0 10px 10px; text-decoration: none;
}
.skip:focus { transform: translate(-50%, 0); }

/* ── Layout ─────────────────────────────────────────────────────────── */

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sec { position: relative; padding-block: clamp(3.25rem, 6.5vw, 6rem); }
.sec--surface { background: var(--bg-2); }
.sec--paper { background: var(--surface); }
.sec--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }

/* ── Type ───────────────────────────────────────────────────────────── */

.h1, .h2, .h3, .h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.028em;
  text-wrap: balance;
  margin: 0;
}
.h1 { font-size: var(--step-5); }
.h1--page { font-size: var(--step-4); max-width: 17ch; }
.h2 { font-size: var(--step-3); }
.h3 { font-size: var(--step-2); line-height: 1.12; letter-spacing: -0.02em; }
.h4 { font-size: var(--step-1); line-height: 1.2; letter-spacing: -0.012em; font-weight: 600; }

p { margin: 0; }
.lede {
  font-size: var(--step-1);
  line-height: 1.52;
  color: var(--ink-2);
  max-width: 62ch;
  margin-top: var(--s-4);
}
.lede--wide { max-width: 68ch; }
.muted { color: var(--ink-3); }
.small { font-size: var(--step--1); color: var(--ink-3); line-height: 1.55; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--brand-ink);
  margin: 0 0 var(--s-4);
}
.eyebrow-tick {
  width: 6px; height: 6px; flex: none;
  background: var(--brand-deep);
  transform: rotate(45deg);
}

.sec-head { max-width: 72ch; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.sec-head--center { margin-inline: auto; text-align: center; }
.sec-head--center .lede { margin-inline: auto; }

.ic { width: 1em; height: 1em; flex: none; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-weight: 600; color: var(--brand-ink); text-decoration: none;
  font-size: var(--step--1);
}
.link-arrow .ic { width: 1.05em; height: 1.05em; transition: transform 0.25s var(--ease); }
.link-arrow:hover .ic { transform: translateX(4px); }

.linklike {
  background: none; border: 0; padding: 0; font: inherit; color: var(--ink-3);
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.linklike:hover { color: var(--ink); }

/* ── Buttons ────────────────────────────────────────────────────────── */

.btn {
  --btn-bg: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 46px;
  padding: 0.7rem 1.25rem;
  border: 1px solid transparent;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.95rem; font-weight: 600; letter-spacing: -0.005em;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  background: var(--btn-bg);
  transition: transform 0.18s var(--ease), background-color 0.18s var(--ease),
              border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn .ic { width: 1.05em; height: 1.05em; transition: transform 0.22s var(--ease); }
.btn:hover .ic { transform: translateX(3px); }

.btn-primary {
  background: var(--brand); color: var(--on-brand);
  box-shadow: 0 0 0 1px var(--brand-deep) inset, 0 6px 20px -10px var(--brand-glow);
}
.btn-primary:hover { background: var(--brand-soft); box-shadow: 0 0 0 1px var(--brand) inset, 0 10px 34px -10px var(--brand-glow); }

.btn-ghost { color: var(--ink); border-color: var(--line-strong); background: var(--surface); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { border-color: var(--frost); background: var(--frost-pale); }

.btn-quiet { color: var(--ink-3); }
.btn-quiet:hover { color: var(--ink); }

.btn-block { width: 100%; }
.btn-xl { min-height: 54px; padding: 0.85rem 1.6rem; font-size: 1.02rem; border-radius: 12px; }

/*
 * Login and Sign up. Login carries no fill — just enough brand tint to read as
 * a button against the black bar — so Sign up is the only thing that glows.
 * --on-brand is never rescoped by a dark block, so the label on the green
 * stays near-black wherever the pair is used.
 */
.btn-auth { min-height: 40px; padding: 0.5rem 1.15rem; border-radius: 12px; font-size: 0.9rem; }
.btn-auth--ghost {
  background: rgba(184, 241, 63, 0.08); color: #fff; border-color: transparent; box-shadow: none;
}
.btn-auth--ghost:hover { background: rgba(184, 241, 63, 0.16); }
.btn-auth--solid {
  background: var(--brand); color: var(--on-brand); border-color: transparent;
  box-shadow: 0 0 0 1px var(--brand-deep) inset;
}
.btn-auth--solid:hover { background: var(--brand-soft); box-shadow: 0 0 0 1px var(--brand) inset, 0 10px 30px -12px var(--brand-glow); }
.btn-sm { min-height: 38px; padding: 0.45rem 0.9rem; font-size: 0.85rem; }

.cta-pair { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-6); }

/* ── Fold: the seam between sections ────────────────────────────────── */

.fold {
  position: relative;
  display: flex; align-items: center; justify-content: center; gap: 0;
  height: 1px;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.fold-line { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--line-strong)); }
.fold-line:last-of-type { background: linear-gradient(90deg, var(--line-strong), transparent); }
.fold-node {
  width: 9px; height: 9px; flex: none; margin-inline: 0.85rem;
  border: 1px solid var(--line-strong);
  transform: rotate(45deg);
  background: var(--bg);
}
.fold-caption {
  position: absolute; top: 1rem; left: 50%; transform: translateX(-50%);
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--ink-4); white-space: nowrap;
}

/* ── Header ─────────────────────────────────────────────────────────── */

/* ── Top bar ──────────────────────────────────────────────────────────────
   A black instrument band. It merges into the dark video on the first screen
   and reads as a deliberate edge against the white sections below. Tokens are
   rescoped once here, so the mega-menu, the mobile drawer, the logo and the
   toggle all invert with it instead of needing per-element overrides.
   ────────────────────────────────────────────────────────────────────────── */
.announce, .site-header, .mobile-menu {
  --bar: #05080a;
  --surface: #0e1418;
  --surface-2: #161d22;
  --surface-3: #1d262c;
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.24);
  --ink: #ffffff;
  --ink-2: rgba(255, 255, 255, 0.74);
  --ink-3: rgba(255, 255, 255, 0.62);
  --ink-4: rgba(255, 255, 255, 0.46);
  --brand-ink: var(--brand);
  --brand-deep: var(--brand);
  --frost-pale: rgba(255, 255, 255, 0.08);
  --frost-deep: var(--frost);
  --shadow-lg: 0 28px 64px -28px rgba(0, 0, 0, 0.9);
  --shadow-sm: none;
}

.announce {
  position: relative; z-index: 60;
  background: var(--bar);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: var(--step--1);
}
.announce-inner { display: flex; align-items: center; justify-content: center; gap: var(--s-4); padding-block: 0.5rem; }
.announce p { color: var(--ink-2); text-align: center; }
.announce a { color: var(--brand); font-weight: 600; text-decoration: none; }
.announce a:hover { text-decoration: underline; }
.announce-tag {
  font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--brand); border: 1px solid rgba(184, 241, 63, 0.40); border-radius: 3px;
  padding: 0.1rem 0.4rem; margin-right: 0.6rem;
}
.announce-close {
  position: absolute; right: var(--gutter); background: none; border: 0; cursor: pointer;
  color: var(--ink-3); font-size: 1.25rem; line-height: 1; padding: 0.25rem 0.4rem;
}
.announce-close:hover { color: var(--ink); }

.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: var(--bar);
  color: var(--ink);
}

/* Scroll progress — the one piece of added chrome that earns its pixels. */
.header-progress {
  position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  transform: scaleX(0); transform-origin: left;
  background: linear-gradient(90deg, var(--frost), var(--brand));
  opacity: 0; transition: opacity 0.3s var(--ease);
  will-change: transform;
}
.site-header.is-stuck .header-progress { opacity: 1; }
/*
 * Three tracks, with the outer two sharing whatever is left: the nav sits in
 * the middle track and is therefore centred on the BAR, not merely between the
 * wordmark and the buttons — which is what `margin-left: auto` used to give,
 * and why it read right-of-centre. The outer tracks take minmax(0, 1fr) so an
 * unusually wide brand or CTA cluster shrinks rather than overflowing.
 */
.header-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center; gap: var(--s-5);
  min-height: var(--header-h);
  transition: min-height 0.3s var(--ease);
}
.header-inner > .brand { grid-column: 1; justify-self: start; }
.site-header.is-stuck .header-inner { min-height: 56px; }

.brand { display: inline-flex; text-decoration: none; color: var(--ink); }
.logo { display: inline-flex; align-items: center; gap: 0.5rem; }
.logo-mark {
  width: 29px; height: 29px; flex: none;
  color: var(--brand-deep);
  transition: color 0.25s var(--ease), transform 0.25s var(--ease);
}
.brand:hover .logo-mark { color: var(--brand-ink); transform: translateX(1px); }
/* Wordmark-only lockup: the dot carries the hover, since there is no mark to move. */
.logo--word .logo-word { font-size: 1.26rem; letter-spacing: -0.036em; }
.logo--word .logo-dot { transition: color 0.2s var(--ease); }
.brand:hover .logo--word .logo-dot { color: var(--brand); }
.logo-word {
  font-family: var(--font-display); font-weight: 700; font-size: 1.18rem;
  letter-spacing: -0.034em; color: var(--ink);
}
/* The dot is the "Doc" — a full stop, in the brand green. */
.logo-dot { color: var(--brand-deep); margin-left: 0.1em; }
.sec--final .logo-mark, .site-footer--night .logo-mark { color: var(--brand); }
.sec--final .logo-dot { color: var(--brand); }

.nav-desktop { grid-column: 2; justify-self: center; }
.nav-list { display: flex; align-items: center; gap: 0.15rem; list-style: none; margin: 0; padding: 0; }
.nav-link {
  position: relative;
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.5rem 0.8rem; border-radius: 7px;
  font-size: 0.9rem; font-weight: 500; letter-spacing: -0.004em; color: var(--ink-2);
  text-decoration: none; background: none; border: 0; cursor: pointer;
  font-family: inherit;
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.nav-link:hover, .nav-link[aria-expanded='true'] { color: var(--ink); background: var(--frost-pale); }
.nav-link[aria-current='page'] { color: var(--ink); }
.nav-link[aria-current='page']::after {
  content: ''; position: absolute; left: 0.8rem; right: 0.8rem; bottom: 0.2rem;
  height: 2px; border-radius: 2px; background: var(--brand);
}
.caret { width: 9px; height: 6px; opacity: 0.72; transition: transform 0.2s var(--ease), opacity 0.2s var(--ease); }
.nav-link[aria-expanded='true'] .caret { transform: rotate(180deg); opacity: 1; }

.has-mega { position: relative; }
.mega {
  position: absolute; top: calc(100% + 0.6rem); left: 50%; transform: translateX(-50%);
  /* One column since the sample-venture aside went: the four links set the
     width now, so the panel sits under the trigger instead of reaching across
     half the bar to fill a second track that no longer has anything in it. */
  width: min(420px, 86vw);
  display: grid; gap: var(--s-2);
  padding: var(--s-3);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  animation: mega-in 0.18s var(--ease);
}
@keyframes mega-in { from { opacity: 0; transform: translate(-50%, -6px); } }
.mega-grid { display: grid; gap: 2px; }
.mega-item {
  display: flex; gap: 0.85rem; align-items: flex-start;
  padding: 0.75rem 0.85rem; border-radius: var(--radius-sm);
  text-decoration: none; color: var(--ink);
  transition: background-color 0.18s var(--ease);
}
.mega-item:hover { background: var(--frost-pale); }
.mega-icon {
  display: grid; place-items: center; width: 32px; height: 32px; flex: none;
  border: 1px solid var(--line); border-radius: 8px; color: var(--brand-ink);
  background: var(--brand-wash);
}
.mega-icon .ic { width: 16px; height: 16px; }
.mega-title { display: block; font-weight: 600; font-size: 0.92rem; }
.mega-desc { display: block; font-size: 0.82rem; color: var(--ink-3); line-height: 1.45; margin-top: 2px; }

.header-cta { grid-column: 3; justify-self: end; display: flex; align-items: center; gap: 0.5rem; }
.header-cta .btn { min-height: 40px; padding: 0.5rem 1rem; font-size: 0.89rem; }

.menu-toggle {
  display: none; grid-column: 3; justify-self: end;
  width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 10px;
  background: none; cursor: pointer; padding: 0;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.menu-toggle span { display: block; width: 17px; height: 1.5px; background: var(--ink); transition: transform 0.25s var(--ease), opacity 0.2s; }
.menu-toggle[aria-expanded='true'] span:first-child { transform: translateY(3.25px) rotate(45deg); }
.menu-toggle[aria-expanded='true'] span:last-child { transform: translateY(-3.25px) rotate(-45deg); }

.site-header--minimal { background: var(--bar); border-bottom: 0; }
.header-minimal-note {
  margin-left: auto; display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: var(--step--1); color: var(--ink-3);
}
.header-minimal-note .ic { color: var(--brand-ink); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 49;
  background: var(--bar); color: var(--ink);
  padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px));
  overflow-y: auto;
}
.mobile-menu-inner { display: flex; flex-direction: column; gap: var(--s-6); padding-block: var(--s-6); }
.mobile-menu ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.mobile-menu li a {
  display: block; padding: 0.95rem 0; border-bottom: 1px solid var(--line);
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 500;
  letter-spacing: -0.02em; text-decoration: none;
}
.mobile-menu-cta { display: grid; gap: var(--s-3); }

/* ── Footer ─────────────────────────────────────────────────────────── */

.site-footer {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  padding-block: clamp(3rem, 6vw, 5rem) var(--s-6);
  font-size: var(--step--1);
}
.footer-top { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 2fr); gap: clamp(2rem, 6vw, 5rem); }
.footer-brand { display: flex; flex-direction: column; gap: var(--s-4); }
.footer-pitch { color: var(--ink-3); max-width: 34ch; }
.footer-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-5); }
.footer-title {
  font-family: var(--font-mono); font-size: 0.68rem; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-4);
  margin: 0 0 var(--s-3);
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.footer-col a { color: var(--ink-2); text-decoration: none; }
.footer-col a:hover { color: var(--frost-deep); }

/*
 * The brand line, signing off. Same grammar as the beta heading — brand rule,
 * then the display face — at a size that closes a footer instead of opening a
 * section, so the two read as one system rather than a repeat.
 */
.footer-slogan {
  display: grid; gap: var(--s-3); justify-items: start;
  font-family: var(--font-display);
  font-size: var(--step-1); font-weight: 500;
  line-height: 1.2; letter-spacing: -0.025em;
  color: var(--ink);
  max-width: 20ch;
}
.footer-slogan-rule { width: 32px; height: 2px; background: var(--brand-deep); }

.footer-bottom {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-4) var(--s-6);
  margin-top: clamp(2.5rem, 5vw, 4rem); padding-top: var(--s-5);
  border-top: 1px solid var(--line); color: var(--ink-4);
}
.footer-social, .footer-badges { display: flex; flex-wrap: wrap; gap: var(--s-4); list-style: none; margin: 0; padding: 0; }
.footer-badges { margin-left: auto; }
.footer-badges li { display: inline-flex; align-items: center; gap: 0.4rem; }
.footer-badges .ic { color: var(--ink-3); }
.footer-social a { color: var(--ink-3); text-decoration: none; }
.footer-social a:hover { color: var(--frost-deep); }
.footer-disclaimer { margin-top: var(--s-4); color: var(--ink-4); font-size: 0.78rem; max-width: 80ch; }
.footer-disclaimer a { color: var(--ink-3); }
.site-footer--minimal { padding-block: var(--s-6); text-align: center; color: var(--ink-4); }
.site-footer--minimal a { color: var(--ink-3); }

/* ── Sticky mobile CTA ──────────────────────────────────────────────── */

.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  padding: 0.7rem var(--gutter);
  padding-bottom: calc(0.7rem + env(safe-area-inset-bottom, 0px));
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 24px -18px rgba(10, 18, 22, 0.4);
  transform: translateY(100%);
  transition: transform 0.3s var(--ease);
}
.sticky-cta.is-visible { transform: translateY(0); }
@media (min-width: 900px) { .sticky-cta { display: none; } }

/* ── Consent ────────────────────────────────────────────────────────── */

.consent {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  padding: var(--gutter);
  padding-bottom: calc(var(--gutter) + env(safe-area-inset-bottom, 0px));
  display: flex; justify-content: flex-start;
}
.consent-card {
  width: min(430px, 100%);
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-lg);
  padding: var(--s-4) var(--s-5) var(--s-5);
  box-shadow: var(--shadow-lg);
  display: grid; gap: var(--s-3);
  animation: consent-in 0.35s var(--ease);
}
@keyframes consent-in { from { opacity: 0; transform: translateY(18px); } }
.consent-title { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; letter-spacing: -0.02em; margin: 0; }
.consent p { font-size: 0.82rem; color: var(--ink-2); line-height: 1.55; }
.consent-options { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.switch {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.4rem 0.7rem; border: 1px solid var(--line); border-radius: 999px;
  font-size: 0.82rem; color: var(--ink-2); cursor: pointer;
}
.switch.is-locked { opacity: 0.6; cursor: default; }
.switch input { accent-color: var(--brand-ink); }
.consent-actions { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.consent-actions .btn { flex: 1 1 auto; min-height: 42px; font-size: 0.88rem; }
@media (max-width: 720px) { .consent { justify-content: center; } }

/* ==========================================================================
   Hero — the fold, the rain, the assembling venture
   ========================================================================== */

.hero { position: relative; overflow: hidden; padding-block: clamp(3rem, 7vw, 6rem) clamp(3rem, 7vw, 5.5rem); }

/* Mirrored horizon: the Inception fold, built from gradients not images. */
.hero-grid-bg, .final-grid-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(120% 78% at 50% -12%, var(--frost-pale), transparent 62%),
    radial-gradient(70% 55% at 88% 12%, var(--brand-wash), transparent 66%);
}
/* The fold: one grid plane mirrored about the horizon. */
.hero-grid-bg::before, .hero-grid-bg::after {
  content: ''; position: absolute; left: -25%; right: -25%; height: 46%;
  background-image:
    linear-gradient(to right, var(--frost) 1px, transparent 1px),
    linear-gradient(to bottom, var(--frost) 1px, transparent 1px);
  background-size: 68px 68px;
  opacity: 0.42;
  mask-image: linear-gradient(to top, #000, transparent);
  -webkit-mask-image: linear-gradient(to top, #000, transparent);
}
.hero-grid-bg::before { bottom: 50%; transform: perspective(520px) rotateX(58deg); transform-origin: bottom; }
.hero-grid-bg::after  { top: 50%;    transform: perspective(520px) rotateX(-58deg) scaleY(0.72); transform-origin: top; opacity: 0.2; }

#rain { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.30; pointer-events: none; }

.hero-inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
  gap: clamp(2rem, 4vw, 3.5rem); align-items: center;
}
.hero-copy { min-width: 0; }
.hero h1 { font-size: clamp(1.95rem, 1.2rem + 3.3vw, 3.6rem); }
.hero .lede { max-width: 52ch; }

/* Headline decode — Matrix, but it resolves fast and leaves real text behind. */
.decode [data-decode-line] { display: block; }
.decode .w { display: inline-block; white-space: nowrap; }
.decode .glyph { color: var(--frost); opacity: 0.9; }

.hero-cta-wrap { margin-top: clamp(1.75rem, 3vw, 2.5rem); }

/*
 * The brand line, heading the beta section. It sits with the proof it
 * introduces rather than floating at the foot of the hero, where it left a
 * band of dead white between two sections and belonged to neither.
 *
 * The 40x2 brand rule above it is the same accent the entity explorer uses,
 * so the flourish is a word the site already speaks.
 */
.beta-head {
  display: grid; justify-items: center; gap: var(--s-5);
  text-align: center;
  margin-bottom: clamp(2.25rem, 4vw, 3.25rem);
}
.beta-head-rule { width: 40px; height: 2px; background: var(--brand-deep); }
.beta-head h2 {
  font-weight: 500;
  /* Wide enough to hold one line on desktop — a slogan broken in half reads
     like a sentence. It still wraps, balanced, once the screen narrows. */
  max-width: 44ch;
}

/* ── Idea box ───────────────────────────────────────────────────────── */

.signup-cta { display: grid; gap: var(--s-3); justify-items: start; max-width: 620px; }
.signup-note { font-size: var(--step--1); color: var(--ink-3); margin: 0; }
.signup-trust {
  display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-4);
  font-size: 0.8rem; color: var(--ink-3); margin: 0;
}
.signup-trust span { display: inline-flex; align-items: center; gap: 0.35rem; }
.signup-trust .ic { width: 13px; height: 13px; color: var(--good); }

.checkline {
  display: flex; gap: 0.6rem; align-items: flex-start;
  font-size: 0.8rem; color: var(--ink-3); line-height: 1.45; cursor: pointer;
}
.checkline input { margin-top: 0.2rem; accent-color: var(--brand-ink); flex: none; width: 16px; height: 16px; }

.form-status { font-size: var(--step--1); min-height: 0; }
.form-status:empty { display: none; }
.form-status[data-tone='error'] { color: var(--bad); }
.form-status[data-tone='ok'] { color: var(--good); }
.form-note { font-size: 0.78rem; color: var(--ink-4); }
.form-note a { color: var(--frost-deep); }

/* ── Hero visual: the five entities assembling ──────────────────────── */

.venture-viz {
  position: relative; aspect-ratio: 1 / 1; width: 100%; max-width: 520px;
  margin-inline: auto; display: grid; place-items: center;
}
.venture-viz svg { width: 100%; height: 100%; overflow: visible; }
.vz-ring { fill: none; stroke: var(--frost); stroke-width: 1; opacity: 0.7; }
.vz-ring--dashed { stroke-dasharray: 3 9; stroke: var(--frost); opacity: 0.9; }
.vz-core {
  fill: var(--surface); stroke: var(--brand-deep); stroke-width: 1.5;
  filter: drop-shadow(0 8px 16px rgba(10, 18, 22, 0.10));
}
.vz-core-label {
  font-family: var(--font-mono); font-size: 5.4px; letter-spacing: 0.1em;
  text-transform: uppercase; fill: var(--brand-ink); text-anchor: middle;
}
.vz-core-sub { font-family: var(--font-body); font-size: 7px; font-weight: 600; fill: var(--ink); text-anchor: middle; }
.vz-node rect { fill: var(--surface); stroke: var(--line-strong); stroke-width: 1; filter: drop-shadow(0 2px 4px rgba(10,18,22,.06)); }
.vz-node text { font-family: var(--font-mono); font-size: 6.6px; letter-spacing: 0.1em; text-transform: uppercase; fill: var(--ink-2); text-anchor: middle; }
.vz-node .vz-dot { stroke: none; }
.vz-link { stroke: var(--frost); stroke-width: 1; fill: none; opacity: 0.8; }
.vz-pulse { stroke-width: 1.5; fill: none; stroke-linecap: round; }

.vz-readout {
  position: absolute; left: 50%; bottom: -0.25rem; transform: translateX(-50%);
  display: flex; gap: 1.25rem; padding: 0.5rem 0.9rem;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  border: 1px solid var(--line); border-radius: 999px;
  font-family: var(--font-mono); font-size: 0.7rem; color: var(--ink-3);
  white-space: nowrap;
}
.vz-readout b { color: var(--brand-ink); font-weight: 500; font-variant-numeric: tabular-nums; }

/* ── Proof strip ────────────────────────────────────────────────────── */

/* ── Cards ──────────────────────────────────────────────────────────── */

.grid { display: grid; gap: var(--s-4); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  display: flex; flex-direction: column; gap: var(--s-3);
  padding: var(--s-5);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.card p { color: var(--ink-2); font-size: var(--step--1); line-height: 1.6; }
.card-metric {
  margin-top: auto; padding-top: var(--s-3); border-top: 1px solid var(--line);
  display: flex; align-items: baseline; gap: 0.5rem;
}
.card-metric b {
  font-family: var(--font-mono); font-size: 1.05rem; color: var(--frost-deep);
  font-variant-numeric: tabular-nums;
}
.card-metric span { font-size: 0.76rem; color: var(--ink-4); }

.transition-line {
  margin-top: var(--s-6); padding-top: var(--s-5); border-top: 1px solid var(--line);
  font-family: var(--font-display); font-size: var(--step-2); font-weight: 500;
  letter-spacing: -0.02em; color: var(--ink);
}
.transition-line b { color: var(--brand-ink); font-weight: 700; }

/* ==========================================================================
   The autonomous loop
   ========================================================================== */

.loop { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.loop-diagram {
  position: sticky; top: calc(var(--header-h) + 2rem);
  aspect-ratio: 200 / 212; max-width: 400px; width: 100%; margin-inline: auto;
}
@media (max-width: 980px) { .loop-diagram { position: static; } }
.loop-diagram svg { width: 100%; height: 100%; overflow: visible; }
.loop-track { fill: none; stroke: var(--frost); stroke-width: 1.25; }
.loop-runner { fill: none; stroke: var(--brand-deep); stroke-width: 2.5; stroke-linecap: round; }
/* Both fills are opaque on purpose: the runner arc passes behind these
   circles, and a translucent fill let it show through under the label. */
.loop-stop circle { fill: var(--bg); stroke: var(--frost); stroke-width: 1.25; transition: stroke 0.3s var(--ease), fill 0.3s var(--ease); }
.loop-stop text { font-family: var(--font-mono); font-size: 6.6px; letter-spacing: 0.06em; fill: var(--ink-2); text-anchor: middle; dominant-baseline: central; transition: fill 0.3s var(--ease); }
.loop-stop.is-active circle { stroke: var(--brand-deep); stroke-width: 1.5; fill: var(--brand); }
.loop-stop.is-active text { fill: var(--on-brand); }

.loop-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.loop-step {
  display: grid; grid-template-columns: auto 1fr; gap: 0 var(--s-4);
  padding: var(--s-4); border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease);
  cursor: pointer;
}
.loop-step:hover, .loop-step.is-active { background: var(--surface); border-color: var(--line); }
.loop-step-n {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em;
  color: var(--ink-4); grid-row: span 2; padding-top: 0.2rem;
  transition: color 0.3s var(--ease);
}
.loop-step.is-active .loop-step-n { color: var(--brand-ink); }
.loop-step h3 { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; letter-spacing: -0.02em; margin: 0; }
.loop-step p { font-size: var(--step--1); color: var(--ink-3); margin-top: 0.2rem; }
.loop-step a { color: var(--brand-ink); text-decoration: none; font-size: 0.8rem; font-weight: 600; }

/* ==========================================================================
   Entity Explorer
   ========================================================================== */

.explorer { display: grid; gap: var(--s-5); }
.tabs {
  display: flex; flex-wrap: wrap; gap: 0.4rem;
  border-bottom: 1px solid var(--line); padding-bottom: var(--s-4);
}
.tab {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.55rem 1rem; border-radius: 999px;
  border: 1px solid var(--line); background: none;
  font-family: var(--font-body); font-size: 0.9rem; font-weight: 600; color: var(--ink-3);
  cursor: pointer; transition: all 0.22s var(--ease);
}
.tab-dot { width: 8px; height: 8px; border-radius: 2px; background: var(--accent, var(--ink-3)); transform: rotate(45deg); transition: box-shadow 0.22s var(--ease); }
.tab:hover { color: var(--ink); border-color: var(--line-strong); }
.tab[aria-selected='true'] {
  color: var(--ink); border-color: var(--accent, var(--line-strong));
  background: color-mix(in srgb, var(--accent, var(--ink-3)) 10%, transparent);
}
.tab[aria-selected='true'] .tab-dot { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }

.explorer-body { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.explorer-side { display: grid; gap: var(--s-4); align-content: start; }
.explorer-side .btn { justify-self: start; }
.explorer-side .side-note { padding-top: var(--s-4); border-top: 1px solid var(--line); }
.explorer-side h3 { font-family: var(--font-display); font-size: var(--step-2); font-weight: 700; letter-spacing: -0.025em; margin: 0; }
.explorer-side .accent-rule { width: 40px; height: 2px; background: var(--accent); }
.explorer-side p { color: var(--ink-2); }

.autoplay {
  display: inline-flex; align-items: center; gap: 0.5rem; margin-top: var(--s-2);
  font-family: var(--font-mono); font-size: 0.7rem; color: var(--ink-4);
  background: none; border: 0; cursor: pointer; padding: 0;
}
.autoplay-bar { width: 54px; height: 3px; border-radius: 2px; background: var(--surface-3); position: relative; overflow: hidden; }
.autoplay-bar i { position: absolute; inset: 0; background: var(--accent, var(--brand)); transform-origin: left; transform: scaleX(0); }
.autoplay.is-playing .autoplay-bar i { animation: autoplay 6s linear forwards; }
@keyframes autoplay { to { transform: scaleX(1); } }

/* Artifact card — a lit document floating in the void */
.artifact {
  background: var(--paper); color: var(--paper-ink);
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--paper-line);
  box-shadow: var(--shadow-lg);
}
.artifact-head {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3);
  padding: var(--s-4) var(--s-5);
  border-bottom: 1px solid var(--paper-line);
  background: var(--paper-2);
}
.artifact-head h4 { font-family: var(--font-display); font-size: 1.02rem; font-weight: 700; letter-spacing: -0.02em; margin: 0; flex: 1; min-width: 0; }
.confidence { display: inline-flex; align-items: center; gap: 0.5rem; }
.confidence-meter { width: 52px; height: 5px; border-radius: 3px; background: #d2d8e6; overflow: hidden; }
.confidence-meter i { display: block; height: 100%; background: var(--accent); border-radius: 3px; }
.confidence span { font-family: var(--font-mono); font-size: 0.68rem; color: var(--paper-muted); white-space: nowrap; }

.artifact-meta {
  display: flex; flex-wrap: wrap; gap: 0.35rem 1rem;
  padding: 0.6rem var(--s-5);
  border-bottom: 1px solid var(--paper-line);
  font-family: var(--font-mono); font-size: 0.68rem; color: var(--paper-muted);
}
.artifact-body { padding: var(--s-4) var(--s-5); display: grid; gap: 0; }
.finding { display: grid; grid-template-columns: minmax(120px, 0.34fr) 1fr; gap: var(--s-4); padding: 0.75rem 0; border-bottom: 1px solid var(--paper-line); }
.finding:last-child { border-bottom: 0; }
.finding dt { font-size: 0.78rem; font-weight: 600; color: var(--paper-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.finding dd { margin: 0; font-size: 0.92rem; line-height: 1.55; color: var(--paper-ink); }
.artifact-sources {
  padding: var(--s-4) var(--s-5); background: var(--paper-2);
  border-top: 1px solid var(--paper-line);
  font-size: 0.76rem; color: var(--paper-muted);
}
.artifact-sources b { display: block; font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 0.4rem; }
.artifact-sources ol { margin: 0; padding-left: 1.1rem; display: grid; gap: 0.25rem; }

.sample-note {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-4);
  border: 1px dashed var(--line-strong); border-radius: 999px; padding: 0.3rem 0.75rem;
}

/* ==========================================================================
   Outreach pipeline
   ========================================================================== */

.pipeline { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-3); }
.pipe {
  position: relative; padding: var(--s-5) var(--s-4);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  display: grid; gap: 0.3rem;
}
.pipe::after {
  content: ''; position: absolute; top: 50%; right: calc(var(--s-3) * -1 - 1px);
  width: var(--s-3); height: 1px; background: var(--line-strong);
}
.pipe:last-child::after { display: none; }
.pipe b {
  font-family: var(--font-display); font-size: clamp(1.75rem, 4vw, 2.4rem); font-weight: 700;
  letter-spacing: -0.035em; color: var(--ink); font-variant-numeric: tabular-nums; line-height: 1;
}
.pipe-label { font-size: 0.86rem; color: var(--ink-2); }
.pipe-src { font-family: var(--font-mono); font-size: 0.66rem; color: var(--ink-4); letter-spacing: 0.06em; }
.pipe:last-child b { color: var(--brand-ink); }

.example-tag {
  display: inline-block; font-family: var(--font-mono); font-size: 0.64rem;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--bg);
  background: var(--ink-3); border-radius: 3px; padding: 0.1rem 0.4rem; vertical-align: middle;
}

.mode-toggle { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.mode-toggle button {
  padding: 0.45rem 1rem; border: 0; border-radius: 999px; background: none;
  font-family: var(--font-body); font-size: 0.85rem; font-weight: 600; color: var(--ink-3); cursor: pointer;
  transition: all 0.22s var(--ease);
}
.mode-toggle button[aria-pressed='true'] { background: var(--surface-3); color: var(--ink); box-shadow: 0 0 0 1px var(--line-strong); }

.bullets { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-3); }
.bullets li { display: flex; gap: 0.75rem; align-items: flex-start; color: var(--ink-2); font-size: var(--step--1); line-height: 1.6; }
.bullets .ic { color: var(--good); margin-top: 0.3rem; width: 15px; height: 15px; }

.note-box {
  padding: var(--s-4); border-radius: var(--radius-sm);
  border: 1px solid var(--line); border-left: 2px solid var(--brand);
  background: var(--bg-2); font-size: var(--step--1); color: var(--ink-2); line-height: 1.6;
}
.note-box b { color: var(--ink); }

/* ==========================================================================
   Before / after slider + improvement log
   ========================================================================== */

.ba { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 2.5rem); align-items: start; }
.ba-stage { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-md); }
.ba-pane { padding: clamp(1.5rem, 4vw, 2.75rem); min-height: 300px; display: grid; align-content: center; gap: 0.75rem; }
.ba-pane--after { position: absolute; inset: 0; background: var(--frost-pale); clip-path: inset(0 0 0 50%); }
.ba-tag { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.ba-pane h4 { font-family: var(--font-display); font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 700; letter-spacing: -0.03em; margin: 0; line-height: 1.05; }
.ba-pane p { color: var(--ink-2); font-size: var(--step--1); max-width: 40ch; }
.ba-pane .fake-cta {
  justify-self: start; margin-top: 0.4rem; padding: 0.5rem 1rem; border-radius: 8px;
  font-size: 0.85rem; font-weight: 600; background: var(--surface-3); color: var(--ink-2); border: 1px solid var(--line-strong);
}
.ba-pane--after .fake-cta { background: var(--brand); color: var(--on-brand); border-color: var(--brand-deep); }
.ba-handle {
  position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; background: var(--brand);
  transform: translateX(-1px); z-index: 3;
}
.ba-handle::after {
  content: '⇄'; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: var(--on-brand);
  display: grid; place-items: center; font-size: 0.9rem; box-shadow: var(--shadow-md);
}
.ba-range {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: 4;
  opacity: 0; cursor: ew-resize; margin: 0;
}
.ba-range:focus-visible + .ba-handle { box-shadow: 0 0 0 3px var(--brand-glow); }

.log { display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.log-head {
  padding: 0.7rem var(--s-4); background: var(--bg-2); border-bottom: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-4);
  display: flex; justify-content: space-between; align-items: center;
}
.log-live { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--brand-ink); }
.log-live i { width: 6px; height: 6px; border-radius: 50%; background: var(--brand-deep); animation: blip 2.2s ease-in-out infinite; }
@keyframes blip { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }
.log-item { display: grid; gap: 0.35rem; padding: var(--s-4); border-bottom: 1px solid var(--line); background: var(--surface); }
.log-item:last-child { border-bottom: 0; }
.log-day { font-family: var(--font-mono); font-size: 0.68rem; color: var(--ink-4); letter-spacing: 0.08em; }
.log-item p { font-size: 0.86rem; color: var(--ink-2); line-height: 1.55; }
.log-delta { display: inline-flex; align-items: baseline; gap: 0.4rem; font-size: 0.78rem; color: var(--ink-4); }
.log-delta b { font-family: var(--font-mono); color: var(--good); font-size: 0.9rem; }

/* ==========================================================================
   Knowledge site mock
   ========================================================================== */

.browser { border: 1px solid var(--line-strong); border-radius: var(--radius); overflow: hidden; background: var(--surface); box-shadow: var(--shadow-lg); }
.browser-bar {
  display: flex; align-items: center; gap: var(--s-4);
  padding: 0.6rem var(--s-4); background: var(--bg-2); border-bottom: 1px solid var(--line);
}
.browser-dots { display: inline-flex; gap: 6px; }
.browser-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
.browser-url {
  flex: 1; font-family: var(--font-mono); font-size: 0.72rem; color: var(--ink-3);
  background: var(--surface); border: 1px solid var(--line); border-radius: 6px;
  padding: 0.25rem 0.65rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.browser-body { background: var(--paper); color: var(--paper-ink); }

.ks { display: grid; grid-template-columns: 190px 1fr; min-height: 340px; }
.ks-nav { border-right: 1px solid var(--paper-line); padding: var(--s-4); background: var(--paper-2); }
.ks-search {
  display: block; width: 100%; font-family: var(--font-mono); font-size: 0.7rem; color: var(--paper-muted);
  border: 1px solid var(--paper-line); border-radius: 6px; padding: 0.35rem 0.55rem; background: #fff; margin-bottom: var(--s-4);
}
.ks-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; }
.ks-nav a {
  display: flex; align-items: center; gap: 0.5rem; padding: 0.4rem 0.5rem; border-radius: 6px;
  font-size: 0.82rem; color: var(--paper-muted); text-decoration: none;
}
.ks-nav a:hover { background: #fff; color: var(--paper-ink); }
.ks-nav a.is-active { background: #fff; color: var(--paper-ink); font-weight: 600; box-shadow: inset 2px 0 0 var(--accent, var(--brand)); }
.ks-nav .dot { width: 6px; height: 6px; border-radius: 2px; transform: rotate(45deg); }
.ks-main { padding: var(--s-5); display: grid; gap: var(--s-3); align-content: start; }
.ks-crumb { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--paper-muted); }
.ks-main h4 { font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; letter-spacing: -0.028em; margin: 0; }
.ks-main p { font-size: 0.88rem; line-height: 1.62; color: #2d3444; max-width: 58ch; }
.ks-stamp { font-family: var(--font-mono); font-size: 0.66rem; color: var(--paper-muted); border-top: 1px solid var(--paper-line); padding-top: 0.6rem; }
.ks-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.ks-chip { font-size: 0.72rem; padding: 0.2rem 0.55rem; border-radius: 999px; background: var(--paper-2); border: 1px solid var(--paper-line); color: var(--paper-muted); }

.uses { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-4); }
.use { display: grid; gap: 0.4rem; padding-top: var(--s-4); border-top: 1px solid var(--line); }
.use b { font-size: 0.95rem; font-weight: 600; }
.use p { font-size: var(--step--1); color: var(--ink-3); line-height: 1.55; }

/* ==========================================================================
   The 30-day journey — stacked levels
   ========================================================================== */

.journey { display: grid; gap: var(--s-3); }
.level {
  position: relative;
  display: grid; grid-template-columns: 96px 150px minmax(0, 1.1fr) minmax(0, 0.9fr) 110px;
  gap: var(--s-4) var(--s-5); align-items: start;
  padding: var(--s-5);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color 0.35s var(--ease), transform 0.35s var(--ease), background-color 0.35s var(--ease);
}
.level:hover, .level.is-active { border-color: var(--line-strong); background: var(--surface-2); }
.level-id { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.12em; color: var(--ink-4); }
.level-id b { display: block; color: var(--brand-ink); font-size: 1.5rem; letter-spacing: -0.02em; font-weight: 500; margin-bottom: 0.15rem; }
.level-phase { display: grid; gap: 0.25rem; }
.level-phase h3 { font-family: var(--font-display); font-size: 1.22rem; font-weight: 700; letter-spacing: -0.025em; margin: 0; }
.level-phase span { font-family: var(--font-mono); font-size: 0.72rem; color: var(--ink-3); }
.level-col { display: grid; gap: 0.3rem; }
.level-col dt { font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-4); }
.level-col dd { margin: 0; font-size: var(--step--1); color: var(--ink-2); line-height: 1.55; }
.level-mrr { display: grid; gap: 0.3rem; justify-items: end; text-align: right; }
.level-mrr b { font-family: var(--font-mono); font-size: 1.05rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.level-bar { width: 100%; height: 4px; border-radius: 3px; background: var(--surface-3); overflow: hidden; }
.level-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--frost), var(--brand)); border-radius: 3px; width: 0; transition: width 1.1s var(--ease-fold); }
.level-hours { font-family: var(--font-mono); font-size: 0.66rem; color: var(--ink-4); }

.journey-foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: var(--s-4); margin-top: var(--s-5);
}
.goal-flag {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-mono); font-size: 0.75rem; color: var(--ink-3);
  border: 1px solid var(--line); border-radius: 999px; padding: 0.4rem 0.9rem;
}
.goal-flag b { color: var(--brand-ink); }

/* ==========================================================================
   Results
   ========================================================================== */

.quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4); }
.quote {
  display: flex; flex-direction: column; gap: var(--s-4);
  padding: var(--s-5); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.quote blockquote { margin: 0; font-size: 1.02rem; line-height: 1.52; letter-spacing: -0.01em; color: var(--ink); }
.quote blockquote::before { content: '“'; color: var(--brand-ink); font-family: var(--font-display); font-size: 1.6rem; line-height: 0; vertical-align: -0.1em; margin-right: 0.1rem; }
.quote-who { display: flex; align-items: center; gap: 0.75rem; margin-top: auto; }
/*
 * An initials monogram cannot sit beside a real person's name without looking
 * like an avatar they never chose — and two of these founders share the
 * letters AM. The mark draws the card's theme instead, so it illustrates the
 * story rather than impersonating the storyteller.
 */
.quote-mark {
  width: 40px; height: 40px; flex: none; border-radius: 50%;
  background: linear-gradient(140deg, var(--brand-wash), var(--frost-pale));
  border: 1px solid var(--brand-deep);
  display: grid; place-items: center;
  /* Strokes in the one green that clears AA as a line; the lime lives inside
     the glyph as fill, where it is outlined and reads at 20px. */
  color: var(--brand-ink);
}
.quote-mark .ic { width: 21px; height: 21px; }
.quote-who b { display: block; font-size: 0.88rem; font-weight: 600; }
.quote-who span { display: block; font-size: 0.76rem; color: var(--ink-4); }
/*
 * The card's theme, in the mono voice the eyebrows already use. It heads the
 * card rather than closing it: three quotes of this length are a wall, and a
 * four-word line gives the eye somewhere to land before committing to one.
 * It sits where the result figure used to, which these quotes cannot carry.
 */
.quote-kicker {
  padding-bottom: var(--s-3); border-bottom: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 0.7rem; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--brand-ink);
}
.case-card {
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: var(--s-5);
  align-items: center; margin-top: var(--s-4);
  padding: var(--s-6); border-radius: var(--radius);
  background: linear-gradient(140deg, var(--frost-pale), var(--surface));
  border: 1px solid var(--line);
}
.case-outcome {
  display: grid; gap: 0.3rem; padding: var(--s-4); border-radius: var(--radius-sm);
  background: var(--bg-2); border: 1px solid var(--line); text-align: center;
}
.case-outcome b { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; letter-spacing: -0.03em; color: var(--brand-ink); }

.disclosure {
  margin-top: var(--s-5); padding: var(--s-4); border-radius: var(--radius-sm);
  border: 1px dashed var(--line-strong); font-size: 0.78rem; color: var(--ink-4); line-height: 1.6;
}

/* ==========================================================================
   Comparison + pricing
   ========================================================================== */

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table.cmp { width: 100%; border-collapse: collapse; font-size: var(--step--1); min-width: 640px; }
table.cmp th, table.cmp td { padding: 0.85rem var(--s-4); text-align: left; border-bottom: 1px solid var(--line); }
table.cmp thead th {
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-4); font-weight: 500; background: var(--bg-2);
  position: sticky; top: 0;
}
table.cmp thead th:last-child { color: var(--frost-deep); }
table.cmp tbody th { font-weight: 500; color: var(--ink-2); }
table.cmp td { color: var(--ink-3); }
table.cmp td:last-child { color: var(--ink); background: var(--brand-wash); }
table.cmp tbody tr:last-child th, table.cmp tbody tr:last-child td { border-bottom: 0; }
table.cmp .group-row th {
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--brand-ink); background: var(--bg-2);
}
.mark { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; }
.mark .ic { width: 13px; height: 13px; }
.mark--yes { color: var(--good); background: rgba(46, 139, 79, 0.12); }
.mark--no { color: var(--ink-4); }
.mark--partial { color: var(--warn); }
.mark-text { font-variant-numeric: tabular-nums; }

.billing-toggle { display: inline-flex; align-items: center; gap: var(--s-3); margin-bottom: var(--s-5); }
.billing-toggle .mode-toggle button { font-size: 0.82rem; }
.save-tag { font-family: var(--font-mono); font-size: 0.7rem; color: var(--good); }

.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4); align-items: start; }
.plan {
  position: relative; display: flex; flex-direction: column; gap: var(--s-4);
  padding: var(--s-5); border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
}
.plan--featured {
  border-color: var(--brand-deep);
  background: linear-gradient(170deg, var(--brand-wash), var(--surface) 55%);
  box-shadow: var(--shadow-md);
}
.plan-badge {
  position: absolute; top: calc(var(--s-4) * -0.75); left: var(--s-5);
  font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.14em; text-transform: uppercase;
  background: var(--brand); color: var(--on-brand); border-radius: 4px; padding: 0.2rem 0.5rem;
}
.plan h3 { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; letter-spacing: -0.025em; margin: 0; }
.plan-tagline { font-size: var(--step--1); color: var(--ink-3); }
.plan-price { display: flex; align-items: baseline; gap: 0.35rem; padding-block: var(--s-2); }
.plan-price b {
  font-family: var(--font-display); font-size: 2.6rem; font-weight: 700;
  letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums;
}
.plan-price span { font-size: 0.82rem; color: var(--ink-4); }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.plan li { display: flex; gap: 0.6rem; align-items: flex-start; font-size: var(--step--1); color: var(--ink-2); line-height: 1.5; }
.plan li .ic { color: var(--brand-ink); width: 14px; height: 14px; margin-top: 0.3rem; flex: none; }
.plan .btn { margin-top: auto; }
.reassure { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin-top: var(--s-5); font-size: var(--step--1); color: var(--ink-3); }
.reassure span { display: inline-flex; align-items: center; gap: 0.4rem; }
.reassure .ic { color: var(--good); width: 14px; height: 14px; }

/* ==========================================================================
   FAQ
   ========================================================================== */

.faq { border-top: 1px solid var(--line); max-width: 860px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
  padding: var(--s-4) 0; cursor: pointer; list-style: none;
  font-family: var(--font-display); font-size: var(--step-1); font-weight: 500; letter-spacing: -0.015em;
  color: var(--ink-2); transition: color 0.2s var(--ease);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover, .faq-item[open] summary { color: var(--ink); }
.faq-sign { position: relative; width: 14px; height: 14px; flex: none; }
.faq-sign::before, .faq-sign::after {
  content: ''; position: absolute; top: 50%; left: 0; width: 100%; height: 1.5px;
  background: var(--brand); transition: transform 0.25s var(--ease);
}
.faq-sign::after { transform: rotate(90deg); }
.faq-item[open] .faq-sign::after { transform: rotate(0deg); }
.faq-answer { padding-bottom: var(--s-5); max-width: 68ch; }
.faq-answer p { color: var(--ink-3); font-size: var(--step--1); line-height: 1.65; }
.faq-answer a { color: var(--frost-deep); }

/* ==========================================================================
   Final CTA
   ========================================================================== */

.sec--final {
  /* Rescoped the same way as the console, so the idea box and every label
     inside it invert without a single per-element override. */
  --bg: var(--night); --bg-2: var(--night-2);
  --surface: var(--night-2); --surface-2: var(--night-3); --surface-3: var(--night-3);
  --line: var(--night-line); --line-strong: rgba(158, 193, 214, 0.34);
  --ink: var(--night-ink); --ink-2: var(--night-ink-2);
  --ink-3: var(--night-ink-2); --ink-4: var(--night-ink-3);
  --brand-ink: var(--brand); --frost-deep: var(--frost);
  --paper-line: var(--night-line);

  position: relative; overflow: hidden;
  padding-block: clamp(4rem, 9vw, 7.5rem);
  background: var(--night); color: var(--night-ink);
}
.sec--final .final-grid-bg {
  background:
    radial-gradient(110% 80% at 50% -10%, rgba(158, 193, 214, 0.14), transparent 60%),
    radial-gradient(60% 50% at 82% 20%, rgba(184, 241, 63, 0.10), transparent 68%);
}
.sec--final .btn-ghost { background: transparent; box-shadow: none; }
.sec--final .btn-ghost:hover { background: rgba(158, 193, 214, 0.10); border-color: var(--frost); }
.final-inner { position: relative; z-index: 2; display: grid; justify-items: center; text-align: center; }
.final-title { max-width: 18ch; }
.final-inner .lede { margin-inline: auto; }
.final-inner .signup-cta { margin-top: var(--s-6); width: 100%; justify-items: center; }
.final-inner .signup-trust { justify-content: center; }
.final-inner .form-status { text-align: center; }

/* ==========================================================================
   Page-level pieces
   ========================================================================== */

.sec--pagehero { position: relative; overflow: hidden; padding-block: clamp(3rem, 7vw, 5.5rem) clamp(2.5rem, 5vw, 4rem); }
.sec--pagehero .shell { position: relative; z-index: 2; }
.pagehero-meta { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; list-style: none; margin: var(--s-5) 0 0; padding: 0; }
.pagehero-meta li {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-mono); font-size: 0.72rem; color: var(--ink-3);
}
.pagehero-meta li::before { content: ''; width: 5px; height: 5px; background: var(--brand-deep); transform: rotate(45deg); }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split--wide-left { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.split--wide-right { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); }
.stack { display: grid; gap: var(--s-5); align-content: start; }
.stack--tight { gap: var(--s-4); }

.prose { max-width: 70ch; }
.prose h2 { font-family: var(--font-display); font-size: var(--step-2); font-weight: 700; letter-spacing: -0.025em; margin: var(--s-7) 0 var(--s-3); }
.prose h3 { font-family: var(--font-display); font-size: var(--step-1); font-weight: 600; letter-spacing: -0.015em; margin: var(--s-5) 0 var(--s-2); }
.prose p, .prose li { color: var(--ink-2); line-height: 1.7; }
.prose p { margin-bottom: var(--s-4); }
.prose ul, .prose ol { padding-left: 1.25rem; margin: 0 0 var(--s-4); display: grid; gap: 0.5rem; }
.prose a { color: var(--frost-deep); }
.prose > :first-child { margin-top: 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: var(--step--1); margin-bottom: var(--s-4); }
.prose th, .prose td { text-align: left; padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.prose th { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-4); }

.toc {
  position: sticky; top: calc(var(--header-h) + 1.5rem);
  align-self: start; display: grid; gap: 0.5rem;
  padding: var(--s-4); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
}
.toc a { font-size: var(--step--1); color: var(--ink-3); text-decoration: none; padding: 0.2rem 0; }
.toc a:hover { color: var(--frost-deep); }

.field { display: grid; gap: 0.4rem; }
.field label { font-size: 0.82rem; font-weight: 600; color: var(--ink-2); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 46px; padding: 0.7rem 0.85rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  color: var(--ink); font: inherit; font-size: 0.95rem;
}
.field textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-4); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { border-color: var(--brand-ink); }
.field-error { font-size: 0.76rem; color: var(--bad); }
.field.has-error input, .field.has-error select { border-color: var(--bad); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4); }
.form-grid .span-2 { grid-column: span 2; }
.form-card {
  padding: clamp(1.5rem, 4vw, 2.5rem); border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--line);
  display: grid; gap: var(--s-4);
}

.step-list { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: var(--s-5); }
.step-list li { counter-increment: step; display: grid; grid-template-columns: auto 1fr; gap: var(--s-4); }
.step-list li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-mono); font-size: 0.78rem; color: var(--brand-ink);
  border: 1px solid var(--line-strong); border-radius: 8px;
  width: 34px; height: 34px; display: grid; place-items: center;
}
.step-list b { display: block; font-size: 1rem; font-weight: 600; margin-bottom: 0.2rem; }
.step-list p { font-size: var(--step--1); color: var(--ink-3); line-height: 1.6; }

.article-list { display: grid; gap: var(--s-3); }
.article-row {
  display: grid; grid-template-columns: 130px minmax(0, 1fr) auto; gap: var(--s-5); align-items: baseline;
  padding: var(--s-5) 0; border-top: 1px solid var(--line); text-decoration: none;
}
.article-row:hover .article-title { color: var(--frost-deep); }
.article-cat { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-4); }
.article-title { font-family: var(--font-display); font-size: var(--step-1); font-weight: 600; letter-spacing: -0.02em; transition: color 0.2s var(--ease); }
.article-row p { font-size: var(--step--1); color: var(--ink-3); margin-top: 0.3rem; max-width: 60ch; }
.article-time { font-family: var(--font-mono); font-size: 0.72rem; color: var(--ink-4); white-space: nowrap; }

.stat-band { display: flex; flex-wrap: wrap; gap: var(--s-6) var(--s-8); padding: var(--s-5); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.stat-band div { display: grid; gap: 0.2rem; }
.stat-band b { font-family: var(--font-display); font-size: 1.9rem; font-weight: 700; letter-spacing: -0.035em; font-variant-numeric: tabular-nums; }
.stat-band span { font-size: 0.8rem; color: var(--ink-4); }

.chip-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip {
  padding: 0.35rem 0.8rem; border-radius: 999px; border: 1px solid var(--line);
  background: none; color: var(--ink-3); font: inherit; font-size: 0.82rem; cursor: pointer;
}
.chip[aria-pressed='true'] { border-color: var(--brand-deep); color: var(--ink); background: var(--brand-wash); }

/* Totem — spinning top, used for processing states */
.totem { width: 64px; height: 64px; }
.totem-spin { transform-origin: 32px 40px; animation: totem 1.5s linear infinite; }
@keyframes totem { to { transform: rotate(360deg); } }

.progress-steps { display: grid; gap: var(--s-3); max-width: 420px; }
.pstep { display: flex; align-items: center; gap: 0.75rem; font-size: var(--step--1); color: var(--ink-4); transition: color 0.4s var(--ease); }
.pstep .dot { width: 8px; height: 8px; border-radius: 2px; transform: rotate(45deg); background: var(--line-strong); transition: background-color 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.pstep.is-done { color: var(--ink-2); }
.pstep.is-done .dot { background: var(--good); }
.pstep.is-current { color: var(--ink); }
.pstep.is-current .dot { background: var(--brand); box-shadow: 0 0 10px var(--brand-glow); }

.error-code {
  font-family: var(--font-mono); font-size: clamp(4rem, 16vw, 9rem); line-height: 1;
  /* --line-strong gave 1.52:1. Large text needs 3:1; this is 3.5:1 on white. */
  color: #5f8eab; letter-spacing: -0.04em;
}

/* ==========================================================================
   Motion
   ========================================================================== */

.reveal { opacity: 1; }
html.js .reveal { opacity: 0; transform: translateY(14px); }
html.js .reveal.is-in { opacity: 1; transform: none; transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
html.js .reveal-stagger > * { opacity: 0; transform: translateY(12px); }
html.js .reveal-stagger.is-in > * { opacity: 1; transform: none; transition: opacity 0.45s var(--ease), transform 0.45s var(--ease); }
html.js .reveal-stagger.is-in > *:nth-child(2) { transition-delay: 70ms; }
html.js .reveal-stagger.is-in > *:nth-child(3) { transition-delay: 140ms; }
html.js .reveal-stagger.is-in > *:nth-child(4) { transition-delay: 210ms; }
html.js .reveal-stagger.is-in > *:nth-child(5) { transition-delay: 280ms; }

@media (prefers-reduced-motion: reduce) {
  html.js .reveal, html.js .reveal-stagger > * { opacity: 1 !important; transform: none !important; transition: none !important; }
  .autoplay.is-playing .autoplay-bar i, .log-live i, .totem-spin { animation: none !important; }
  .totem-spin { transform: rotate(18deg); }
  .autoplay-bar i { transform: scaleX(1); }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.01ms !important; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1100px) {
  .level { grid-template-columns: 78px 1fr 1fr; }
  .level-mrr { grid-column: 2 / -1; justify-items: start; text-align: left; }
  .footer-top { grid-template-columns: 1fr; }
}

@media (max-width: 980px) {
  .nav-desktop, .header-cta { display: none; }
  .menu-toggle { display: flex; }
  .hero-inner, .loop, .explorer-body, .ba, .split, .split--wide-left, .split--wide-right, .case-card { grid-template-columns: minmax(0, 1fr); }
  .venture-viz { max-width: 400px; }
  .grid-3, .grid-4, .quotes, .plans, .uses { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pipeline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pipe:nth-child(2)::after { display: none; }
  .toc { position: static; }
}

@media (max-width: 720px) {
  .grid-3, .grid-4, .quotes, .plans, .uses, .form-grid, .footer-cols { grid-template-columns: minmax(0, 1fr); }
  .form-grid .span-2 { grid-column: auto; }
  .footer-cols { gap: var(--s-6); }
  .footer-badges { margin-left: 0; }
  .level { grid-template-columns: 1fr; gap: var(--s-3); }
  .level-id { display: flex; align-items: baseline; gap: 0.6rem; }
  .level-id b { margin: 0; }
  .ks { grid-template-columns: 1fr; }
  .ks-nav { border-right: 0; border-bottom: 1px solid var(--paper-line); }
  .ks-nav ul { display: flex; flex-wrap: wrap; gap: 0.3rem; }
  .finding { grid-template-columns: 1fr; gap: 0.2rem; }
  .article-row { grid-template-columns: 1fr; gap: 0.5rem; }
  .signup-cta { justify-items: stretch; }
  .signup-cta .btn { width: 100%; }
  .stat-band { gap: var(--s-5); }
  .stat-band div { min-width: 40%; }
}

@media (max-width: 420px) {
  .cta-pair .btn { width: 100%; }
}

@media print {
  .site-header, .site-footer, .sticky-cta, .consent, .announce, .console { display: none !important; }
  body { background: #fff; color: #000; }
}

/* Explorer chrome added with the single-panel-per-tab structure */
.tabs-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-4); border-bottom: 1px solid var(--line); padding-bottom: var(--s-4); }
.tabs { border-bottom: 0; padding-bottom: 0; }
.explorer-body:focus-visible { outline-offset: 8px; }
.explorer-foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: var(--s-4); margin-top: var(--s-6); padding-top: var(--s-5); border-top: 1px solid var(--line);
}
.explorer-foot .small { max-width: 64ch; }
.explorer-foot a.link-arrow, .explorer-foot .small a { color: var(--brand-ink); }

/* How-it-works detail levels */
.level-detail { padding-top: var(--s-6); border-top: 1px solid var(--line); }
.level-detail:first-child { padding-top: 0; border-top: 0; }
.level-detail-head { display: grid; grid-template-columns: 96px 1fr; gap: var(--s-5); align-items: start; }
.level-detail-head .level-id { display: block; }
.level-detail .card dt { font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-4); margin-bottom: 0.15rem; }
.level-detail .card dd { margin: 0 0 0.75rem; font-size: var(--step--1); color: var(--ink-2); line-height: 1.55; }
.video-placeholder {
  display: grid; gap: var(--s-4); place-items: start;
  padding: clamp(2rem, 6vw, 4rem); border-radius: var(--radius-lg);
  border: 1px solid var(--line); background: linear-gradient(150deg, var(--frost-pale), var(--surface));
  position: relative; overflow: hidden;
}
.video-placeholder::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 80% at 85% 20%, var(--brand-wash), transparent 70%);
}
@media (max-width: 720px) { .level-detail-head { grid-template-columns: 1fr; gap: var(--s-3); } }

/* Product capability cards */
.cap-card { text-decoration: none; transition: border-color .25s var(--ease), transform .25s var(--ease); }
.cap-card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.cap-n { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em; color: var(--brand-ink); }
.cap-card .link-arrow { margin-top: auto; }

/* Integrations */
.int-flow { display: grid; gap: 0.5rem; margin: 0; padding: var(--s-3) 0; border-top: 1px solid var(--line); }
.int-flow div { display: grid; grid-template-columns: 52px 1fr; gap: 0.6rem; }
.int-flow dt { font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brand-ink); padding-top: 2px; }
.int-flow dd { margin: 0; font-size: 0.82rem; color: var(--ink-3); line-height: 1.45; }

.flow { display: grid; gap: 0; padding: clamp(1rem,3vw,1.5rem) clamp(1.5rem,4vw,2.5rem); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
.flow-lane {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3);
  padding-block: var(--s-4); border-bottom: 1px solid var(--line);
}
.flow-lane:last-of-type { border-bottom: 0; }
.flow-stage {
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.1em;
  color: var(--brand-ink); min-width: 48px;
}
.flow-node { padding: 0.6rem 1.1rem; border-radius: 10px; border: 1px solid var(--line-strong); font-weight: 600; font-size: 0.92rem; background: var(--surface-2); }
.flow-node--core { border-color: var(--brand-deep); color: var(--brand-ink); background: var(--brand-wash); }
.flow-arrow { display: inline-flex; align-items: center; gap: 0.35rem; font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: .08em; color: var(--ink-4); text-transform: uppercase; }
.flow-arrow .ic { width: 15px; height: 15px; color: var(--line-strong); }
.flow-note { max-width: 70ch; padding-top: var(--s-4); border-top: 1px solid var(--line); }

.scheduler-slot { padding: var(--s-4); border: 1px dashed var(--line-strong); border-radius: var(--radius-sm); background: var(--bg-2); }
.scheduler-slot .small { color: var(--ink-4); }

/* Legal pages */
.legal-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.legal-layout .toc a { display: block; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: var(--s-7) 0 var(--s-5); }
.prose section { scroll-margin-top: calc(var(--header-h) + 1.5rem); }
.prose code { font-family: var(--font-mono); font-size: 0.85em; background: var(--surface-2); border: 1px solid var(--line); border-radius: 4px; padding: 0.1em 0.35em; }
@media (max-width: 980px) { .legal-layout { grid-template-columns: 1fr; } }

/* ==========================================================================
   The loop: one entry stage feeding a four-stage cycle
   ========================================================================== */

.loop-entry rect { fill: var(--surface-2); stroke: var(--line-strong); stroke-width: 1; }
.loop-entry text {
  font-family: var(--font-mono); font-size: 6.4px; letter-spacing: 0.12em;
  fill: var(--brand-ink); text-anchor: middle; dominant-baseline: central;
}
.loop-stem { stroke: var(--frost); stroke-width: 1.25; fill: none; color: var(--frost); }
.loop-center {
  font-family: var(--font-mono); font-size: 6px; letter-spacing: 0.14em;
  text-transform: uppercase; fill: var(--ink-4); text-anchor: middle;
}

.loop-steps-wrap { display: grid; gap: var(--s-2); }
.loop-divider {
  display: flex; align-items: center; gap: var(--s-4);
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--ink-4);
  padding-left: var(--s-4);
}
.loop-divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }

.loop-step {
  grid-template-columns: auto 1fr auto;
  align-items: start;
}
.loop-step--entry { background: var(--surface); border-color: var(--line); }
.loop-step--entry .loop-step-n { color: var(--brand-ink); }
.loop-step-out {
  font-family: var(--font-mono); font-size: 0.66rem; color: var(--ink-4);
  border: 1px solid var(--line); border-radius: 999px; padding: 0.2rem 0.6rem;
  white-space: nowrap; align-self: center;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.loop-step.is-active .loop-step-out { color: var(--brand-ink); border-color: var(--brand-deep); background: var(--brand-wash); }
.loop-step h3 { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.stage-tag {
  font-family: var(--font-mono); font-size: 0.6rem; font-weight: 400;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-4);
  border: 1px solid var(--line); border-radius: 3px; padding: 0.1rem 0.35rem;
}
.loop-step a { grid-column: 2; justify-self: start; }

/* ==========================================================================
   Hero console — the loop narrating itself
   ========================================================================== */

.console {
  /* The one place the Matrix register survives: a dark instrument on a white
     page. Tokens are rescoped locally so every child inverts with it. */
  --surface: var(--night-2);
  --line: var(--night-line);
  --ink: var(--night-ink);
  --ink-2: var(--night-ink-2);
  --ink-3: var(--night-ink-2);
  --ink-4: var(--night-ink-3);
  --stage: var(--brand);

  position: relative; margin-top: var(--s-4);
  border: 1px solid var(--night-2); border-radius: var(--radius-sm);
  background: var(--night);
  color: var(--night-ink);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.console > * { position: relative; z-index: 1; }
.console[data-stage='create']  { --stage: var(--e-customer); }
.console[data-stage='launch']  { --stage: #a78bfa; }
.console[data-stage='reach']   { --stage: var(--brand); }
.console[data-stage='learn']   { --stage: var(--frost); }
.console[data-stage='improve'] { --stage: var(--brand); }

.console-head {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-3);
  padding: 0.45rem 0.75rem; border-bottom: 1px solid var(--night-line);
  font-family: var(--font-mono); font-size: 0.64rem; letter-spacing: 0.14em; text-transform: uppercase;
}
.console-live { display: inline-flex; align-items: center; gap: 0.45rem; color: var(--night-ink-3); }
.console-live i { width: 6px; height: 6px; border-radius: 50%; background: var(--brand); animation: blip 2.2s ease-in-out infinite; }
.console-stage { color: var(--stage); transition: color 0.4s var(--ease); }

.console-list { list-style: none; margin: 0; padding: 0.5rem 0.75rem; display: grid; gap: 0.3rem; min-height: 5.6rem; align-content: end; }
.console-line {
  display: flex; gap: 0.5rem; align-items: baseline;
  font-family: var(--font-mono); font-size: 0.68rem; line-height: 1.45; color: var(--ink-3);
  animation: console-in 0.35s var(--ease);
}
.console-line:last-child { color: var(--night-ink); }
.console-tick { width: 5px; height: 5px; flex: none; transform: rotate(45deg); background: var(--stage); opacity: 0.8; }
.console-line[data-stage='create']  .console-tick { background: var(--e-customer); }
.console-line[data-stage='launch']  .console-tick { background: #a78bfa; }
.console-line[data-stage='reach']   .console-tick { background: var(--brand); }
.console-line[data-stage='learn']   .console-tick { background: var(--frost); }
.console-line[data-stage='improve'] .console-tick { background: var(--brand); }
@keyframes console-in { from { opacity: 0; transform: translateY(4px); } }

.console-note {
  padding: 0.4rem 0.75rem 0.55rem; border-top: 1px solid var(--night-line);
  font-size: 0.68rem; color: var(--night-ink-3);
}

@media (prefers-reduced-motion: reduce) { .console-line { animation: none !important; } }
@media (max-width: 720px) {
  .loop-step { grid-template-columns: auto 1fr; }
  .loop-step-out { grid-column: 2; justify-self: start; align-self: start; }
  .console-list { min-height: 0; }
}

/* The console's rain: the Matrix register, kept to the one dark instrument. */
.console #rain { position: absolute; inset: 0; z-index: 0; opacity: 0.22; }

/* Inside the console the neutral is light, so the tag inverts with it. */
.console .example-tag { color: var(--night); background: var(--night-ink-2); }

/* ==========================================================================
   Integrations — grouped by the loop stage each tool serves
   ========================================================================== */

.tool-stages { display: grid; gap: 0; border-top: 1px solid var(--line); }
.tool-stage {
  display: grid; grid-template-columns: minmax(180px, 228px) minmax(0, 1fr);
  gap: var(--s-5); align-items: start;
  padding-block: var(--s-5);
  border-bottom: 1px solid var(--line);
}
.tool-stage-head { display: grid; gap: 0.35rem; padding-top: 0.3rem; }
.tool-stage-label { display: flex; align-items: baseline; gap: 0.7rem; }
.tool-stage-n {
  font-family: var(--font-mono); font-size: 0.78rem; color: var(--brand-ink);
  letter-spacing: 0.08em;
}
.tool-stage-title {
  font-family: var(--font-display); font-size: 1.1rem; font-weight: 700;
  letter-spacing: -0.022em; color: var(--ink);
}
.tool-stage-note { font-size: 0.82rem; color: var(--ink-3); line-height: 1.45; max-width: 30ch; }

/* Sized so the four-tool Reach row fits on one line at the 1200px shell. */
.tool-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(195px, 1fr)); gap: var(--s-3); }
.tool {
  position: relative; display: grid; gap: 0.2rem; align-content: start;
  padding: var(--s-4);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  text-decoration: none; box-shadow: var(--shadow-sm);
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.tool::before {
  content: ''; position: absolute; left: 0; top: var(--s-4); bottom: var(--s-4);
  width: 2px; border-radius: 2px; background: var(--frost);
  transition: background-color 0.2s var(--ease);
}
.tool:hover { border-color: var(--line-strong); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.tool:hover::before { background: var(--brand-deep); }
.tool-name {
  font-family: var(--font-display); font-size: 1.02rem; font-weight: 700;
  letter-spacing: -0.022em; color: var(--ink);
}
.tool-role { font-size: 0.82rem; color: var(--ink-3); line-height: 1.4; }
.tool-connect {
  margin-top: 0.45rem; justify-self: start;
  font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-4); border: 1px solid var(--line); border-radius: 3px; padding: 0.12rem 0.4rem;
}
.tool[data-stage='auto-create'] .tool-connect,
.tool[data-stage='improve'] .tool-connect { color: var(--brand-ink); border-color: var(--brand-deep); background: var(--brand-wash); }

.tool-foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: var(--s-4); margin-top: var(--s-5);
}
.tool-foot .small { max-width: 62ch; }
.tool-tm { margin-top: var(--s-5); color: var(--ink-4); }

@media (max-width: 760px) {
  .tool-stage { grid-template-columns: minmax(0, 1fr); gap: var(--s-3); }
  .tool-stage-head { padding-top: 0; }
  .tool-row { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}

.int-stage-head { margin-bottom: var(--s-5); }
.int-stage-head .h3 { max-width: 30ch; }
.int-card-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); }
.int-card .tool-connect { margin-top: 0; }
.int-card[data-stage='auto-create'] .tool-connect,
.int-card[data-stage='improve'] .tool-connect { color: var(--brand-ink); border-color: var(--brand-deep); background: var(--brand-wash); }

/* ==========================================================================
   Beta results — a hero figure plus a KPI row. Deliberately not a chart:
   one headline number and three supporting values carry this on their own.
   ========================================================================== */

.beta {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center;
  padding: clamp(1.75rem, 4vw, 3rem);
  margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(90% 120% at 0% 0%, var(--brand-wash), transparent 62%),
    var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}
.beta-lead { display: grid; gap: var(--s-3); align-content: start; }

/* The one number the section leads with. */
.beta-figure {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(3.25rem, 9vw, 5.75rem); line-height: 0.92;
  letter-spacing: -0.045em; color: var(--ink);
  /* z-index:0 makes this its own stacking context, so the highlight below sits
     behind the glyphs but still in front of the panel's background. */
  position: relative; z-index: 0; display: inline-block; justify-self: start;
}
.beta-figure::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0.08em; height: 0.16em;
  background: var(--brand); opacity: 0.75; border-radius: 2px; z-index: -1;
}
.beta-lede {
  font-size: var(--step-1); line-height: 1.45; color: var(--ink-2);
  max-width: 26ch; text-wrap: balance;
}
.beta-lead .cta-pair { margin-top: var(--s-3); }

.beta-stats { display: grid; gap: 0; margin: 0; }
.beta-stat {
  display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-4);
  padding-block: var(--s-4); border-bottom: 1px solid var(--line);
}
.beta-stat:first-child { border-top: 1px solid var(--line); }
.beta-stat dt { font-size: var(--step--1); color: var(--ink-3); order: 2; text-align: right; }
.beta-stat dd {
  margin: 0; order: 1;
  font-family: var(--font-display); font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 700;
  letter-spacing: -0.035em; color: var(--ink); font-variant-numeric: tabular-nums;
}

.stat-band-lead { flex: 1 1 100%; padding-bottom: var(--s-4); border-bottom: 1px solid var(--line); }
.stat-band-lead b { font-size: clamp(2.5rem, 7vw, 3.75rem); letter-spacing: -0.045em; line-height: 1; }
.stat-band-lead span { max-width: 34ch; font-size: var(--step-0); color: var(--ink-2); }

@media (max-width: 860px) {
  .beta { grid-template-columns: minmax(0, 1fr); }
  .beta-lede { max-width: none; }
}

/* ==========================================================================
   Video screen (HERO.variant = 'video')
   A standalone first screen. Nothing sits on the video but a scroll cue and
   the controls — the message belongs in the footage, and the semantic H1 lives
   in the section below where crawlers and screen readers can reach it.
   ========================================================================== */

.vscreen {
  /* The screen follows the film's own aspect, so there are no letterbox bars
     in the common case; the viewport cap keeps it from ever pushing the page
     below the fold on short screens. */
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--night);
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: calc(100vh - var(--header-h));
  max-height: calc(100svh - var(--header-h));
}

.vscreen-media { position: absolute; inset: 0; z-index: -1; background: var(--night); }
.vscreen-poster, .vscreen-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-position: center;
}
/* The poster fills the screen; the film itself is letterboxed, because
   cropping a frame whose captions sit dead centre would cut them in half. */
.vscreen-poster { object-fit: cover; }
.vscreen-video { object-fit: contain; background: #000; }
.vscreen-video { opacity: 0; transition: opacity 0.9s var(--ease); }
.vscreen-media.is-playing .vscreen-video { opacity: 1; }

/* Edges only. The centre 80% stays clean for the footage's own text. */
.vscreen-vignette {
  position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgba(10, 18, 22, 0.55), transparent 18%),
    linear-gradient(to top, rgba(10, 18, 22, 0.70), transparent 26%);
}

.vscreen-flag {
  position: absolute; top: var(--s-4); right: var(--s-4); z-index: 2;
  font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--night);
  background: #e8ab2e; border-radius: 3px; padding: 0.2rem 0.5rem;
}

/* Scroll cue — a real link, so keyboard users get the same affordance. */
.vscreen-cue {
  position: absolute; left: 50%; bottom: clamp(1.5rem, 4vh, 2.75rem); z-index: 2;
  transform: translateX(-50%);
  display: inline-flex; flex-direction: column; align-items: center; gap: 0.6rem;
  padding: 0.5rem 0.9rem; border-radius: 999px;
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: #d4dfe6; text-decoration: none;
  transition: opacity 0.4s var(--ease), color 0.2s var(--ease);
}
.vscreen-cue:hover { color: #fff; }
.vscreen-cue.is-hidden { opacity: 0; pointer-events: none; }
.vscreen-cue-chev {
  width: 11px; height: 11px;
  border-right: 2px solid var(--brand); border-bottom: 2px solid var(--brand);
  transform: rotate(45deg);
  animation: cue 2.4s var(--ease) infinite;
}
@keyframes cue {
  0%, 100% { transform: rotate(45deg) translate(0, 0); opacity: 0.55; }
  50%      { transform: rotate(45deg) translate(3px, 3px); opacity: 1; }
}

/* ── Film controls ───────────────────────────────────────────────────── */

.film-cta {
  position: absolute; inset: 0; z-index: 2;
  display: grid; place-items: center;
  transition: opacity 0.35s var(--ease);
}
.vscreen-media.is-active ~ .film-cta { opacity: 0; pointer-events: none; }

.film-play {
  display: inline-flex; align-items: center; gap: var(--s-4);
  padding: 0.6rem 1.4rem 0.6rem 0.6rem;
  border-radius: 999px; cursor: pointer;
  background: rgba(10, 18, 22, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.20);
  backdrop-filter: blur(14px) saturate(140%);
  color: #fff; font: inherit; text-align: left;
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.film-play:hover { background: rgba(10, 18, 22, 0.76); border-color: var(--brand); transform: translateY(-1px); }
.film-play:disabled { cursor: default; opacity: 0.7; transform: none; }

.film-play-ring {
  display: grid; place-items: center; flex: none;
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--brand);
  transition: transform 0.25s var(--ease);
}
.film-play:hover .film-play-ring { transform: scale(1.06); }
.film-play-icon {
  width: 0; height: 0; margin-left: 4px;
  border-left: 15px solid var(--on-brand);
  border-top: 9px solid transparent; border-bottom: 9px solid transparent;
}
.film-play-text { display: grid; gap: 0.15rem; }
.film-play-label { font-size: 1.02rem; font-weight: 600; letter-spacing: -0.012em; }
.film-play-meta {
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: rgba(255, 255, 255, 0.72);
}

/* Once it is running, the frame is the film — chrome gets out of the way. */
.vscreen-media.is-playing .vscreen-vignette { opacity: 0.35; }
.vscreen-media.is-playing .vscreen-video { opacity: 1; z-index: 1; }
.vscreen-video:focus-visible { outline: 2px solid var(--brand); outline-offset: -4px; }

/* Pause / replay — WCAG 2.2.2 requires a stop mechanism for anything that
   auto-plays past five seconds. */
.vscreen-toggle {
  position: absolute; right: var(--gutter); bottom: clamp(1.5rem, 4vh, 2.75rem); z-index: 3;
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.45rem 0.85rem; border-radius: 999px;
  background: rgba(10, 18, 22, 0.72); border: 1px solid rgba(158, 193, 214, 0.28);
  color: #d4dfe6; font: inherit; font-size: 0.76rem; cursor: pointer;
  backdrop-filter: blur(8px);
}
.vscreen-toggle:hover { border-color: var(--brand); color: #fff; }
.vscreen-toggle-icon { width: 9px; height: 10px; flex: none; border-left: 3px solid currentColor; border-right: 3px solid currentColor; }
.vscreen-toggle[data-state='play'] .vscreen-toggle-icon,
.vscreen-toggle[data-state='replay'] .vscreen-toggle-icon {
  border: 0; width: 0; height: 0;
  border-left: 9px solid currentColor;
  border-top: 5px solid transparent; border-bottom: 5px solid transparent;
}
.vscreen-toggle[data-state='replay'] { border-color: var(--brand); color: #fff; }

#hero { scroll-margin-top: calc(var(--header-h) + 8px); }

@media (max-width: 860px) {
  .vscreen { height: auto; aspect-ratio: 16 / 9; min-height: 0; max-height: none; }
  .vscreen-cue { bottom: 0.6rem; }
  .vscreen-toggle { right: 0.75rem; bottom: 0.6rem; padding: 0.35rem 0.6rem; font-size: 0.68rem; }
  .vscreen-toggle-label { display: none; }
    .vscreen-cue { font-size: 0.66rem; }
  .film-play { padding: 0.5rem 1.1rem 0.5rem 0.5rem; gap: var(--s-3); }
  .film-play-ring { width: 46px; height: 46px; }
  .film-play-label { font-size: 0.94rem; }
}

@media (prefers-reduced-motion: reduce) {
  .vscreen-video { display: none; }
  .vscreen-cue-chev { animation: none; opacity: 0.8; }
}
