/* Autonomi — stealth→launch site */
/* ==========================================================================
   Autonomi Design System — Colors & Type
   Source of truth: DESIGN.md + webapp/src/styles/globals.css
   ========================================================================== */

/* Webfonts — loaded from Google Fonts.
   NOTE: Plus Jakarta Sans (display) and Inter (body) are the canonical families. */

:root {
  /* ----- Brand: Primary (dominant interaction color) ----- */
  --brand-primary:        oklch(0.434 0.235 279.302); /* #4429CC-ish */
  --brand-primary-dark:   oklch(0.242 0.153 274.087);
  --brand-primary-light:  oklch(0.593 0.234 285.979);

  /* ----- Brand: Secondary (strategic accent — never default fill) ----- */
  --brand-secondary:       oklch(0.721 0.183 44.083);  /* #FF7733-ish */
  --brand-secondary-dark:  oklch(0.591 0.169 42.316);
  --brand-secondary-light: oklch(0.812 0.115 46.928);

  /* ----- Functional states ----- */
  --success:        oklch(0.625 0.196 142.769);
  --success-dark:   oklch(0.503 0.168 142.57);
  --success-tint:   oklch(0.947 0.049 145.175);
  --error:          oklch(0.613 0.208 29.475);
  --error-dark:     oklch(0.495 0.184 29.963);
  --error-tint:     oklch(0.938 0.031 25.028);

  /* ----- Neutrals (blue-ink family) ----- */
  --neutral-ink:  oklch(0.186 0.016 284.716);
  --neutral-900:  oklch(0.402 0.032 284.881);
  --neutral-700:  oklch(0.577 0.032 285.353);
  --neutral-300:  oklch(0.762 0.021 285.885);
  --neutral-100:  oklch(0.948 0.007 286.272);

  /* ----- Surfaces ----- */
  --canvas:          oklch(1 0 0);
  --surface:         oklch(1 0 0);
  --warm-bg:         oklch(0.953 0.033 67.421); /* auth / editorial only */

  /* ----- Semantic foreground / background ----- */
  --fg-1: var(--neutral-ink);     /* strongest text */
  --fg-2: var(--neutral-900);     /* secondary titles */
  --fg-3: var(--neutral-700);     /* muted copy */
  --fg-4: var(--neutral-300);     /* hints, disabled */
  --bg-1: var(--canvas);
  --bg-2: var(--neutral-100);
  --bg-3: var(--warm-bg);
  --border: var(--neutral-300);
  --border-subtle: color-mix(in oklab, var(--neutral-300) 55%, transparent);
  --ring:   color-mix(in oklab, var(--brand-primary) 35%, transparent);

  /* ----- Type families ----- */
  --font-display: 'Plus Jakarta Sans', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-body:    'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --font-serif:   'Lora', Georgia, 'Times New Roman', serif; /* legacy editorial only */

  /* ----- Type scale (Inter body, Plus Jakarta Sans display) ----- */
  --text-display: 600 56px/1.05 var(--font-display);
  --text-h1:      600 40px/1.1  var(--font-display);
  --text-h2:      600 28px/1.15 var(--font-display);
  --text-h3:      600 20px/1.25 var(--font-display);
  --text-lead:    400 18px/1.5  var(--font-body);
  --text-body:    400 15px/1.55 var(--font-body);
  --text-body-sm: 400 13px/1.5  var(--font-body);
  --text-label:   500 12px/1.2  var(--font-body);
  --text-mono:    500 13px/1.45 var(--font-mono);

  /* ----- Letter spacing ----- */
  --tracking-tight: -0.015em;
  --tracking-label: 0.02em;
  --tracking-kicker: 0.14em;

  /* ----- Radii (large on shells, consistent throughout) ----- */
  --radius-xs:  4px;
  --radius-sm:  8px;
  --radius-md:  12px;
  --radius-lg:  16px;
  --radius-xl:  20px;
  --radius-2xl: 28px;
  --radius-pill: 999px;

  /* ----- Spacing (4px grid) ----- */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;

  /* ----- Elevation (flat-first; soft + broad when used) ----- */
  --shadow-0:  none;
  --shadow-1:  0 1px 2px rgba(24, 24, 38, 0.04),
               0 0 0 1px color-mix(in oklab, var(--neutral-300) 60%, transparent);
  --shadow-2:  0 6px 20px -6px rgba(24, 24, 38, 0.08),
               0 2px 6px -2px rgba(24, 24, 38, 0.05);
  --shadow-pop: 0 20px 50px -12px rgba(24, 24, 38, 0.18),
                0 8px 20px -8px rgba(24, 24, 38, 0.10);

  /* ----- Motion ----- */
  --ease-standard: cubic-bezier(0.2, 0.0, 0.0, 1.0);
  --ease-emphasized: cubic-bezier(0.2, 0.0, 0.0, 1.2);
  --dur-fast: 120ms;
  --dur-base: 200ms;
  --dur-slow: 320ms;
}

/* Dark mode — calm, grounded */
:root.dark,
[data-theme='dark'] {
  --canvas:   oklch(0.16 0.001 0);
  --surface:  oklch(0.22 0.002 0);
  --fg-1: oklch(0.97 0.005 286);
  --fg-2: oklch(0.86 0.01 286);
  --fg-3: oklch(0.68 0.02 286);
  --fg-4: oklch(0.42 0.02 286);
  --bg-1: var(--canvas);
  --bg-2: oklch(0.24 0.003 286);
  --border: color-mix(in oklab, white 10%, transparent);
  --border-subtle: color-mix(in oklab, white 6%, transparent);
}

/* ==========================================================================
   Semantic element defaults
   ========================================================================== */

html, body {
  font: var(--text-body);
  color: var(--fg-1);
  background: var(--bg-1);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1 { font: var(--text-h1); letter-spacing: var(--tracking-tight); color: var(--fg-1); margin: 0; }
h2 { font: var(--text-h2); letter-spacing: var(--tracking-tight); color: var(--fg-1); margin: 0; }
h3 { font: var(--text-h3); color: var(--fg-1); margin: 0; }
p  { font: var(--text-body); color: var(--fg-2); margin: 0; }

.kicker, .eyebrow {
  font: var(--text-label);
  letter-spacing: var(--tracking-kicker);
  text-transform: uppercase;
  color: var(--fg-3);
}

code, kbd, samp, pre { font: var(--text-mono); }

.display { font: var(--text-display); letter-spacing: var(--tracking-tight); }
.lead    { font: var(--text-lead);    color: var(--fg-2); }
.muted   { color: var(--fg-3); }
.label   { font: var(--text-label); letter-spacing: var(--tracking-label); color: var(--fg-3); }

::selection { background: color-mix(in oklab, var(--brand-primary) 25%, transparent); }
:focus-visible {
  outline: 2px solid var(--brand-primary);
  outline-offset: 2px;
  border-radius: var(--radius-xs);
}


/* ---------- Theme tokens ----------
   Neutrals mirror the app (webapp/src/styles/globals.css). Accent is the
   marketing brand blue (Booth design), lightened and desaturated in dark so
   it doesn't vibrate against the neutral page. Orange survives as the brand
   dot only. `data-theme` on <html> is "light" | "dark"; unset follows the OS. */
:root {
  color-scheme: light;
  --site-bg: oklch(1 0 0);                              /* --background */
  --site-ink: oklch(0.32 0.02 80);                      /* --foreground */
  --site-ink-2: color-mix(in oklab, var(--site-ink) 72%, var(--site-ink-3));
  --site-ink-3: oklch(0.53 0.015 250);                  /* --muted-foreground */
  --site-ink-4: color-mix(in oklab, var(--site-ink-3) 60%, transparent);
  --site-line: oklch(0.93 0 0);                         /* --border */
  --site-line-strong: oklch(0.86 0 0);
  --site-surface: oklch(1 0 0);                         /* --card */
  --site-surface-2: oklch(0.98 0.003 250);              /* --card-hover */
  --accent: #312BEC;                                    /* brand blue */
  --accent-soft: color-mix(in oklab, var(--accent) 14%, transparent);
  --brand-orange: #EF5D06;
  --brand-wordmark: var(--accent);
  --status-live: oklch(0.45 0.18 145);                  /* --success */
  --wash-ground: #FFFFFF;         /* multiply identity: the field disappears */
  --wash-tint: #1500FF;           /* colour the caustic ridges take */
  --wash-blend: multiply;
  --wash-opacity: 0.5;
  --cta-wash-color: #312BEC;
  --glow-opacity: 0;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --site-bg: oklch(0.16 0.001 0);
  --site-ink: oklch(0.94 0.003 250);
  --site-ink-2: color-mix(in oklab, var(--site-ink) 72%, var(--site-ink-3));
  --site-ink-3: oklch(0.65 0.005 0);
  --site-ink-4: color-mix(in oklab, var(--site-ink-3) 55%, transparent);
  --site-line: oklch(0.3 0.002 0);
  --site-line-strong: oklch(0.38 0.002 0);
  --site-surface: oklch(0.22 0.002 0);
  --site-surface-2: oklch(0.25 0.002 0);
  --accent: #4B6EFC;                                    /* brand blue, lifted for the dark page */
  --accent-soft: color-mix(in oklab, var(--accent) 22%, transparent);
  --brand-orange: #FF7734;
  --brand-wordmark: var(--site-ink);
  --status-live: oklch(0.78 0.15 155);
  --wash-ground: #000000;         /* screen identity */
  --wash-tint: #6F76F9;
  --wash-blend: screen;
  --wash-opacity: 0.75;
  --cta-wash-color: #1C45E9;
  --glow-opacity: 1;
}

/* Every flex and grid item shrinks to its track: no min-content floor to widen
   a column when a child carries nowrap text or a zoomed demo. */
* { box-sizing: border-box; min-width: 0; min-height: 0; }
html, body { margin: 0; padding: 0; background: var(--site-bg); color: var(--site-ink); }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  min-height: 100vh;
  overflow-x: hidden;
  transition: background 400ms var(--ease-standard), color 400ms var(--ease-standard);
}
body::selection, *::selection { background: color-mix(in oklab, var(--accent) 35%, transparent); color: var(--site-ink); }

.wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  padding: 20px 0;
  backdrop-filter: blur(14px);
  background: color-mix(in oklab, var(--site-bg) 72%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color 300ms, background 300ms;
}
.nav.scrolled { border-bottom-color: var(--site-line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.nav-left { display: flex; align-items: center; gap: 48px; }
.nav-logo { height: 22px; display: block; color: var(--brand-wordmark); }
.nav-logo .dot { fill: var(--brand-orange); }
.nav-logo path { transition: fill 400ms var(--ease-standard); }
.nav a, .footer a { color: var(--site-ink); }
.footer .nav-logo { opacity: 0.85; }
.nav-links { display: flex; gap: 32px; }
.nav-link {
  font: 500 14px/1 var(--font-body);
  color: var(--site-ink-2);
  text-decoration: none;
  transition: color 160ms;
  position: relative;
}
.nav-link:hover { color: var(--site-ink); }
.nav-cta {
  font: 500 14px/1 var(--font-body);
  color: var(--site-bg);
  background: var(--site-ink);
  padding: 10px 18px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 160ms, box-shadow 220ms;
  white-space: nowrap;
}
@media (hover: hover) { .nav-cta:hover { transform: translateY(-0.5px); box-shadow: 0 8px 24px -8px rgba(0,0,0,0.25); } }
.nav-cta-short { display: none; }
@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-cta-long { display: none; }
  .nav-cta-short { display: inline; }
}

/* ---------- General type ---------- */
.eyebrow {
  font: 400 14px/1 var(--font-body);
  letter-spacing: 0;
  text-transform: none;
  color: var(--site-ink-3);
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before {
  content: ""; width: 6px; height: 6px; border-radius: 999px;
  background: var(--brand-orange);
  box-shadow: 0 0 12px var(--brand-orange);
}
.display {
  font: 600 clamp(48px, 7.4vw, 112px)/0.98 var(--font-display);
  letter-spacing: -0.028em;
  color: var(--site-ink);
  margin: 0;
}
.h2 {
  font: 600 clamp(36px, 9vw, 58px)/1 var(--font-display);
  letter-spacing: -0.022em;
  color: var(--site-ink);
  margin: 0;
}
.lede {
  font: 400 18px/1.4 var(--font-body);
  color: var(--site-ink-2);
  max-width: 640px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 15px/1 var(--font-body);
  padding: 14px 22px;
  border-radius: 999px;
  text-decoration: none; border: none; cursor: pointer;
  transition: transform 160ms, box-shadow 220ms, background 200ms, color 200ms;
}
.btn-primary { background: var(--site-ink); color: var(--site-bg); }
@media (hover: hover) { .btn-primary:hover { transform: translateY(-0.5px); box-shadow: 0 10px 30px -10px rgba(0,0,0,0.35); } }
.btn .arrow { transition: transform 200ms; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Reveal ---------- */
/* Entrances: a short, strong ease-out — cubic-bezier(0.23, 1, 0.32, 1) — and
   a small rise, so a section arrives rather than drifts in. */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 480ms cubic-bezier(0.23, 1, 0.32, 1), transform 480ms cubic-bezier(0.23, 1, 0.32, 1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.delay-1 { transition-delay: 80ms; }
.reveal.delay-2 { transition-delay: 160ms; }
.reveal.delay-3 { transition-delay: 240ms; }
.reveal.delay-4 { transition-delay: 320ms; }
@media (prefers-reduced-motion: reduce) { .reveal { transform: none; transition-duration: 200ms; } }

/* ---------- Hero ---------- */
/* The vertical paddings track viewport height, not width. */
.hero {
  position: relative;
  padding: clamp(40px, 12vh, 180px) 0 clamp(32px, 10vh, 156px);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
}
.hero-copy { display: flex; flex-direction: column; gap: 28px; position: relative; z-index: 1; }
.hero-h1 { max-width: 620px; font-size: clamp(44px, 5.6vw, 80px); line-height: 1.015; letter-spacing: -0.033em; }
.accent { color: var(--accent); }
.hero-h1 .stop { color: var(--brand-orange); }
.hero-kicker { font-size: 22px; font-weight: 500; line-height: 1.35; color: var(--site-ink); letter-spacing: -0.01em; max-width: 560px; }
.hero-sub { max-width: 560px; }
/* On the <p>s themselves: the tokens' `p { font: … }` shorthand would otherwise win. */
.hero-sub p { font: 400 16px/1.4 var(--font-body); }
.hero-sub p + p { margin-top: 1em; }
.hero-cta-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; align-items: center; }

/* ---------- Hero product demo ----------
   A fragment of the v2 shell, built at the app's own sizes (14px/20px titles,
   12px/16px detail, 8px card corners, the rail's gap-2.5) and zoomed down as a
   whole so the type stays crisp. `zoom` re-lays the fragment out at the
   smaller size, where a transform would only blur it. */
/* The demo runs past the container's right edge on wide screens, and on a
   single column fills 95% of the viewport and runs off the bottom of its
   frame, which clips it. Its zoom is the ratio of that width to the design
   width. `useDemoZoom` sets it from script: Safari miscomputes the CSS form,
   tan(atan2(95vw, var(--demo-w))), as a zoom value. */
.hero-demo { --demo-w: 800px; --demo-zoom: 0.92; position: relative; z-index: 1; }
.faq-a strong { font-weight: 600; color: var(--site-ink); }
.demo {
  zoom: var(--demo-zoom);
  width: var(--demo-w);
  max-width: none;
  flex: none;
  height: 440px;
  display: grid;
  grid-template-columns: 344px 1fr;
  gap: 10px;
  font-family: var(--font-body);
  color: var(--site-ink);
  -webkit-font-smoothing: antialiased;
}
@media (max-width: 960px) {
  /* Single column: the clipped demo is the hero's bottom edge. The frame
     spans the same 95vw as the demo, or it clips the demo's right side. */
  .hero { padding-bottom: 0; }
  .demo-frame { margin-inline: calc(2.5vw - 32px); height: calc(440px * var(--demo-zoom) * 0.72); overflow: hidden; }
}
/* Phones get the rail alone at nearly full width, so its type stays legible. */
@media (max-width: 600px) {
  .hero-demo { --demo-w: 344px; }
  .demo { grid-template-columns: 1fr; }
  .demo .nomi { display: none; }
}

.demo-rail { display: flex; flex-direction: column; gap: 10px; min-height: 0; }
.tnum { font-variant-numeric: tabular-nums; }


/* ---------- Completeness chart ---------- */
.cc {
  display: flex; flex-direction: column; gap: 12px;
  padding: 14px;
  border-radius: 8px; border: 1px solid var(--site-line);
  background: var(--site-surface); box-shadow: var(--shadow-pop);
}
.cc-title { margin: 0; font: 500 12px/16px var(--font-body); color: var(--site-ink-3); }
.cc-plot { display: block; width: 100%; height: auto; overflow: visible; }
.cc-plot [class^="cc-"] { vector-effect: non-scaling-stroke; }
.cc-area-met { fill: url(#cc-met-fill); }
.cc-area-assessed { fill: var(--site-ink-3); fill-opacity: 0.07; }
.cc-line-met { stroke: var(--accent); stroke-width: 2; }
.cc-line-assessed { stroke: var(--site-ink-3); stroke-width: 1.5; stroke-opacity: 0.7; }
.cc-baseline { stroke: var(--site-line); stroke-width: 1; }
.cc-ceiling { stroke: var(--site-ink-3); stroke-opacity: 0.5; stroke-width: 1; }
.cc-target { stroke: var(--site-ink-3); stroke-opacity: 0.6; stroke-width: 1; stroke-dasharray: 3 3; }
.cc-projection { stroke: var(--accent); stroke-opacity: 0.5; stroke-width: 2; stroke-dasharray: 4 6; }
.cc-dot-met { fill: var(--accent); stroke: var(--site-surface); stroke-width: 2; }
.cc-dot-target { fill: var(--site-surface); fill-opacity: 0.75; stroke: var(--accent); stroke-opacity: 0.5; stroke-width: 1.5; }
.cc-axis {
  display: flex; justify-content: space-between; margin-top: -4px;
  font: 400 12px/16px var(--font-body); font-variant-numeric: tabular-nums;
  color: var(--site-ink-3);
}
.cc-axis-target { color: var(--site-ink); }

/* ---------- Task list ----------
   The hairline starts at the text's left edge (14px + 16px marker + 12px gap
   = 42px) and stops 14px short of the right; the first row has none above it. */
.tasklist {
  display: flex; flex-direction: column; flex: 1; min-height: 0; overflow: hidden;
  border-radius: 8px; border: 1px solid var(--site-line);
  background: var(--site-surface); box-shadow: var(--shadow-pop);
}
.tasklist-head { display: flex; align-items: center; gap: 12px; padding: 16px 16px 4px 14px; }
.tasklist-icon { width: 14px; height: 14px; flex: none; color: var(--site-ink-3); }
.tasklist-label { margin: 0; font: 500 14px/20px var(--font-body); color: var(--site-ink-3); }
.tasklist-rows { list-style: none; margin: 0; padding: 0 0 4px; display: flex; flex-direction: column; }
.task { position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 14px; }
.task::before {
  content: ""; position: absolute; top: 0; left: 42px; right: 14px; height: 1px;
  background: var(--site-line);
}
.task:first-child::before { display: none; }
.task-text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.task-title { font: 500 14px/20px var(--font-body); color: var(--site-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.task-desc {
  font: 400 12px/16px var(--font-body); color: var(--site-ink-3);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.task-marker { position: relative; display: block; flex: none; width: 16px; height: 16px; }
.ring-layer {
  position: absolute; inset: 0;
  opacity: 0; filter: blur(3px);
  transition: opacity 200ms var(--ease-standard), filter 200ms var(--ease-standard);
}
.ring-layer[data-on="true"] { opacity: 1; filter: blur(0); transition-delay: 100ms; }
/* The due date's column opens and closes with the row's status. */
.task-slots {
  display: grid; grid-template-columns: 0fr; flex: none;
  transition: grid-template-columns 360ms var(--ease-standard), opacity 240ms var(--ease-standard);
  opacity: 0;
}
.task-slots[data-open="true"] { grid-template-columns: 1fr; opacity: 1; transition-delay: 0ms, 120ms; }
.task-due { display: flex; align-items: center; gap: 4px; min-width: 0; overflow: hidden; padding-left: 12px; font: 400 12px/16px var(--font-body); color: var(--site-ink-3); white-space: nowrap; }
.task-due-icon { width: 12px; height: 12px; flex: none; }

/* ---------- Status ring ---------- */
:root { --ring-arc-none: 0 39.27; --ring-arc-open: 9.8175 29.4525; --ring-arc-full: 39.27 39.27; }
.ring { width: 16px; height: 16px; flex: none; display: block; }
.ring-track { stroke: var(--site-line); }
/* TransitionRing: the arc draws and the check strokes on the parent's state. */
.ring-arc { stroke: var(--accent); stroke-dasharray: var(--ring-arc-none); transition: stroke-dasharray 400ms var(--ease-standard), stroke 360ms var(--ease-standard); }
.ring-check { stroke: var(--accent); stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 320ms var(--ease-standard) 160ms; }
.ring-tone { stroke: var(--site-ink-3); }
.ring-active .ring-tone { stroke: var(--accent); }

/* ---------- Pixel grid ---------- */
.pixel-grid {
  display: grid; grid-template-columns: repeat(5, 1.2px); grid-template-rows: repeat(5, 1.2px);
  gap: 2px; width: 14px; height: 14px; flex: none; pointer-events: none;
}
.pixel-grid-cell { background: var(--accent); opacity: 0.08; animation: pixel-on 1.3s ease-in-out var(--pixel-delay) infinite both; }
/* Loaders that have faded out stop ticking. */
.thought[data-active="false"] .pixel-grid-cell, .thought[data-active="false"] .thought-breathe,
.working[data-resting="true"] .pixel-grid-cell, .cont-log-loader[data-on="false"] .pixel-grid-cell { animation-play-state: paused; }
.pixel-grid-cell[data-held] { animation: none; }
@keyframes pixel-on { 0%, 62%, 100% { opacity: 0.08; } 18%, 42% { opacity: 1; } }

/* ---------- Nomi panel ---------- */
.nomi {
  display: flex; flex-direction: column; min-height: 0;
  border-radius: 8px; border: 1px solid var(--site-line);
  background: var(--site-surface); box-shadow: var(--shadow-pop);
  overflow: hidden;
}
.nomi-head { display: flex; align-items: center; gap: 8px; height: 45px; flex: none; padding: 0 16px; border-bottom: 1px solid var(--site-line); }
.nomi-sparkle { width: 16px; height: 16px; flex: none; fill: var(--site-ink); }
.nomi-name { margin: 0; font: 600 14px/20px var(--font-body); color: var(--site-ink); }
.nomi-context { font: 400 12px/16px var(--font-body); color: var(--site-ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* The thread clips at its top and holds its turns to the bottom edge; older
   turns dissolve out under a mask as the conversation grows. */
.nomi-thread {
  flex: 1; min-height: 0; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 0 16px;
  mask-image: linear-gradient(to bottom, transparent 0, #000 40px);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 40px);
}
/* `flex: none`: the stack keeps its content height and overflows the thread's
   top edge, where the mask takes it; the global `min-height: 0` would
   otherwise let it shrink and squash the turns into each other. */
.nomi-turns { flex: none; display: flex; flex-direction: column; padding: 16px 0 6px; }

.turn-in {
  display: grid; grid-template-rows: 1fr;
  animation: turn-in 420ms var(--ease-standard) both;
}
.turn-in-body { min-height: 0; display: flex; flex-direction: column; gap: 8px; padding-top: 14px; }
/* A part arriving inside a turn keeps the turn's own gap. */
.turn-in .turn-in .turn-in-body { padding-top: 0; }
.turn-user .turn-in-body { align-items: flex-end; }
@keyframes turn-in {
  from { grid-template-rows: 0fr; opacity: 0; transform: translateY(6px); }
  to { grid-template-rows: 1fr; opacity: 1; transform: none; }
}

/* `Chat / Message / User`: background/subtle on a hairline, 10px corners,
   16×12 padding. */
.bubble-user {
  max-width: 80%; padding: 12px 16px;
  border-radius: 10px; border: 1px solid var(--site-line);
  /* background/subtle: a step off the card in either theme, not the page's deep ground. */
  background: color-mix(in oklab, var(--site-ink) 5%, var(--site-surface));
  font: 400 14px/1.6 var(--font-body); color: var(--site-ink);
}
.prose { margin: 0; font: 400 14px/1.6 var(--font-body); color: var(--site-ink); }
.prose code {
  font: 500 12.5px/1 var(--font-mono); color: var(--site-ink);
  background: color-mix(in oklab, var(--site-ink) 7%, transparent);
  padding: 2px 4px; border-radius: 4px;
}

/* Thought: one 28px line whose label cross-cuts, traces folding beneath. */
.thought { display: flex; flex-direction: column; }
.thought-label { position: relative; height: 28px; }
.thought-thinking, .thought-thought {
  position: absolute; inset: 0; display: flex; align-items: center; gap: 10px;
  font: 500 14px/20px var(--font-body); white-space: nowrap;
  transition: opacity 180ms var(--ease-standard);
}
.thought-thinking { color: var(--site-ink); }
.thought-thought { color: var(--site-ink-3); font-weight: 400; gap: 4px; opacity: 0; }
.thought[data-active="false"] .thought-thinking { opacity: 0; }
.thought[data-active="false"] .thought-thought { opacity: 1; transition-delay: 120ms; }
.thought-loader { display: flex; width: 16px; height: 16px; align-items: center; justify-content: center; }
.thought-breathe { animation: breathe 1.3s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }
.thought-chevron { width: 12px; height: 12px; transition: transform 150ms ease-out; }
.thought[data-open="true"] .thought-chevron { transform: rotate(90deg); }
.thought-traces {
  display: grid; grid-template-rows: 1fr;
  transition: grid-template-rows 320ms var(--ease-standard), opacity 220ms var(--ease-standard);
}
.thought[data-open="false"] .thought-traces { grid-template-rows: 0fr; opacity: 0; }
/* Padding lives on the rows, not the list, so a folded list is truly 0 tall. */
.thought-traces-list { list-style: none; margin: 0; padding: 0 0 0 2px; min-height: 0; overflow: hidden; display: flex; flex-direction: column; gap: 3px; }
.thought-traces-list li:first-child { margin-top: 4px; }
.thought-traces-list li:last-child { margin-bottom: 6px; }
.trace {
  display: flex; align-items: center; gap: 10px; min-width: 0;
  font: 400 12px/16px var(--font-body); color: var(--site-ink-3);
  animation: trace-in 250ms cubic-bezier(0, 0, 0.29, 1) both;
  transition: color 200ms var(--ease-standard);
}
.trace[data-state="current"] { color: var(--site-ink); }
.trace-marker { width: 11px; height: 11px; flex: none; }
.trace-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@keyframes trace-in { from { opacity: 0; translate: 0 6px; } to { opacity: 1; translate: 0 0; } }

/* Working card: rounded-xl, p-5, the loader and the ring sharing one 16px slot. */
.working {
  display: flex; flex-direction: column; gap: 8px;
  padding: 20px; border-radius: 14px; border: 1px solid var(--site-line);
  background: var(--site-surface);
}
.working-row { display: flex; align-items: center; gap: 10px; }
.working-slot { position: relative; width: 16px; height: 16px; flex: none; }
.working-loader, .working-ring { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.working-loader { inset: 1px; transition: opacity 180ms ease-in, filter 180ms ease-in; }
.working-ring { opacity: 0; filter: blur(3px); transition: opacity 200ms ease-out 100ms, filter 200ms ease-out 100ms; }
.working[data-resting="true"] .working-loader { opacity: 0; filter: blur(3px); }
.working[data-resting="true"] .working-ring { opacity: 1; filter: blur(0); }
.working-label { position: relative; flex: 1; min-width: 0; height: 20px; }
.working-title, .working-settled {
  position: absolute; inset: 0; font: 500 14px/20px var(--font-body); color: var(--site-ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.working-title { transition: opacity 140ms ease-in; }
.working-settled { opacity: 0; transition: opacity 160ms ease-out 140ms; }
.working[data-resting="true"] .working-title { opacity: 0; }
.working[data-resting="true"] .working-settled { opacity: 1; }
.working-elapsed { flex: none; width: 42px; text-align: right; font: 400 12px/16px var(--font-mono); font-variant-numeric: tabular-nums; color: var(--site-ink-3); }
.working-detail { margin: 0; font: 400 12px/16px var(--font-body); color: var(--site-ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Composer: surface/card on a hairline, 14px corners, a 1px lift. */
.composer {
  flex: none; margin: 8px 16px 16px;
  border-radius: 14px; border: 1px solid var(--site-line);
  background: var(--site-surface);
  box-shadow: 0 1px 2px rgba(24, 24, 38, 0.05);
}
.composer-field { display: flex; align-items: flex-start; min-height: 52px; padding: 12px 14px 4px; font: 400 14px/20px var(--font-body); color: var(--site-ink); }
.composer-field[data-empty="true"] .composer-text { color: var(--site-ink-3); }
.composer-text { white-space: pre-wrap; }
.composer-caret { width: 1px; height: 18px; margin: 1px 0 0 1px; background: var(--site-ink); animation: caret 1s steps(2, start) infinite; }
@keyframes caret { to { visibility: hidden; } }
.composer-bar { display: flex; align-items: center; gap: 8px; padding: 6px 8px 8px 10px; }
.composer-attach { display: flex; width: 24px; height: 24px; align-items: center; justify-content: center; border-radius: 8px; color: var(--site-ink-3); }
.composer-scope { font: 500 14px/20px var(--font-body); color: var(--site-ink-3); }
.composer-send {
  margin-left: auto; display: flex; width: 28px; height: 28px; align-items: center; justify-content: center;
  border-radius: 999px; background: var(--accent); color: #fff;
  opacity: 0.4; transition: opacity 200ms var(--ease-standard);
}
.composer-send[data-ready="true"] { opacity: 1; }
.composer-icon { width: 16px; height: 16px; }

@media (prefers-reduced-motion: reduce) {
  .turn-in, .trace { animation: fade-in 200ms ease-out both; }
  .pixel-grid-cell { animation: none; opacity: 0.4; }
  .thought-breathe { animation: none; }
  .ring-layer, .task-slots { transition-duration: 0ms; }
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* Shader wash (WebGPU) — behind everything in the section */
/* The canvas paints the page's own ground colour and blends, following the
   app's sidebar wash: only the caustic ridges tint the page, so body copy
   never sits on fog. The CTA's gradient is a plain alpha layer, so it opts
   out of blending. */
.wash {
  position: absolute; inset: 0; width: 100%; height: 100%;
  display: block; pointer-events: none;
  opacity: var(--wash-opacity);
  mix-blend-mode: var(--wash-blend);
}
.wash[data-mode="gradient"] { opacity: 1; mix-blend-mode: normal; }
.wash-fallback { display: none; }
.no-webgpu .wash { display: none; }
.no-webgpu .wash-fallback {
  display: block; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 60% at 70% 30%, color-mix(in oklab, var(--wash-tint) 18%, transparent), transparent 70%);
}

/* Hero background orbs (behind everything) */
.hero-glow {
  position: absolute; pointer-events: none;
  width: 720px; height: 720px;
  background: radial-gradient(circle, color-mix(in oklab, var(--accent) 18%, transparent), transparent 60%);
  border-radius: 50%;
  top: -200px; right: -180px;
  filter: blur(10px);
  opacity: var(--glow-opacity);
}

/* ---------- Section base ---------- */
section { position: relative; }
.section {
  padding: clamp(80px, 10vw, 140px) 0;
  border-top: 1px solid var(--site-line);
}
.section-head {
  display: flex; flex-direction: column; gap: 20px;
  max-width: 820px; margin-bottom: 64px;
}
/* A head with nothing under it (Economics) carries no gap; one followed by
   a control row (FAQ tabs) sits closer to it. */
.section-head:last-child { margin-bottom: 0; }
.section-head:has(+ [role="tablist"]) { margin-bottom: 32px; }

/* ---------- The economics ----------
   Two halves, unequal on purpose: the left states the problem in the muted
   ink on a flat panel; the right states the answer in full ink on the accent.
   The charts share one drawing: baseline, line, a dot where each
   certification starts. */
.econ-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 800px) { .econ-grid { grid-template-columns: 1fr; gap: 40px; } }
.econ-side { display: flex; flex-direction: column; gap: 14px; }
.econ-kicker { font: 500 11px/1 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--site-ink-3); display: flex; align-items: center; gap: 8px; }
.econ-kicker::before { content: ""; width: 8px; height: 8px; border-radius: 999px; background: color-mix(in oklab, var(--site-ink) 30%, transparent); }
.econ-side[data-kept="true"] .econ-kicker { color: var(--accent); }
.econ-side[data-kept="true"] .econ-kicker::before { background: var(--accent); }
.econ-title { margin: 0 0 10px; font: 500 19px/1.4 var(--font-body); letter-spacing: -0.01em; color: var(--site-ink-3); max-width: 44ch; min-height: 0; }
.econ-side[data-kept="true"] .econ-title { color: var(--site-ink); }
@media (min-width: 801px) { .econ-title { min-height: calc(19px * 1.4 * 4); } }
.econ-panel {
  --econ-line: var(--site-ink-3);
  --econ-fill: color-mix(in oklab, var(--site-ink) 14%, transparent);
  display: flex; flex-direction: column; gap: 12px;
  padding: 24px 24px 20px;
  border-radius: 20px;
  background: var(--site-surface);
  box-shadow: inset 0 0 0 1px var(--site-line);
}
.econ-side[data-kept="true"] .econ-panel {
  --econ-line: var(--accent);
  --econ-fill: color-mix(in oklab, var(--accent) 55%, transparent);
  background: radial-gradient(120% 90% at 100% 0%, color-mix(in oklab, var(--accent) 26%, transparent), transparent 60%), var(--site-surface);
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--accent) 45%, transparent);
}
.econ-plot { display: block; width: 100%; height: auto; overflow: visible; transition: opacity 400ms var(--ease-standard); }
.econ-panel[data-resetting="true"] .econ-plot { opacity: 0; transition-duration: 500ms; }
.econ-base { stroke: var(--site-line-strong); stroke-width: 1; stroke-dasharray: 3 3; }
.econ-tick { font: 500 10px var(--font-mono); letter-spacing: 0.06em; fill: var(--site-ink-3); }

/* One certification: its bar rises over its beat. On the left the spend
   then clears, leaving the outline of what it cost; on the right the bar
   stays, and the next one shows the part the trail already covers, so only
   the remainder rises. Pending snaps back with no transition, so a loop
   restarts clean under the fade. */
.econ-paid {
  fill: var(--econ-fill); stroke: var(--econ-line); stroke-width: 1.5;
  transform-box: fill-box; transform-origin: 50% 100%; transform: scaleY(0);
  transition: transform 900ms var(--ease-standard), fill-opacity 600ms var(--ease-standard) 120ms;
}
.econ-carried {
  fill: color-mix(in oklab, var(--accent) 12%, transparent); stroke: var(--accent); stroke-width: 1; stroke-dasharray: 3 3;
  opacity: 0; transition: opacity 300ms var(--ease-standard);
}
.econ-cert[data-state="drawing"] .econ-paid, .econ-cert[data-state="done"] .econ-paid { transform: scaleY(1); }
.econ-cert[data-state="drawing"] .econ-carried, .econ-cert[data-state="done"] .econ-carried { opacity: 1; }
/* Spent: the fill clears and only the outline of the cost remains. */
.econ-side[data-kept="false"] .econ-cert[data-state="done"] .econ-paid { fill-opacity: 0.08; }
.econ-cert[data-state="pending"] .econ-paid, .econ-cert[data-state="pending"] .econ-carried { transition: none; opacity: 0; }
.econ-cert[data-state="pending"] .econ-tick { opacity: 0.45; }
.econ-tick { transition: opacity 300ms var(--ease-standard); }

.econ-legend { display: flex; gap: 16px; flex-wrap: wrap; }
.econ-legend-k { display: inline-flex; align-items: center; gap: 6px; font: 400 12px/16px var(--font-body); color: var(--site-ink-3); }
.econ-legend-k::before { content: ""; width: 10px; height: 10px; border-radius: 2px; box-sizing: border-box; }
.econ-legend-k[data-swatch="paid"]::before { background: var(--econ-fill); border: 1.5px solid var(--econ-line); }
.econ-legend-k[data-swatch="carried"]::before { background: color-mix(in oklab, var(--accent) 12%, transparent); border: 1px dashed var(--accent); }

.econ-caption { font: 500 14px/1.4 var(--font-body); color: var(--site-ink-2); }
.econ-side[data-kept="true"] .econ-caption { color: var(--accent); }

/* ---------- FAQ ---------- */
.faq-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 20px; }
.faq-tab {
  font: 500 14px/1 var(--font-body);
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--site-line-strong);
  background: transparent;
  color: var(--site-ink-2);
  cursor: pointer;
  transition: background 160ms, color 160ms, border-color 160ms;
}
.faq-tab:hover { color: var(--site-ink); }
.faq-tab[aria-selected="true"] { background: var(--site-ink); border-color: var(--site-ink); color: var(--site-bg); }
.faq-list { max-width: 820px; border-top: 1px solid var(--site-line); }
.faq-item { border-bottom: 1px solid var(--site-line); }
.faq-q {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 0;
  font: 600 18px/1.3 var(--font-display); letter-spacing: -0.012em;
  color: var(--site-ink);
  cursor: pointer; list-style: none;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q:hover { color: var(--accent); }
.faq-chevron { width: 16px; height: 16px; flex: none; color: var(--site-ink-3); transition: transform 200ms var(--ease-standard); }
.faq-item[open] .faq-chevron { transform: rotate(180deg); }
.faq-a { padding: 0 0 24px; max-width: 680px; }
.faq-a p { margin: 0; color: var(--site-ink-2); }
.faq-a p + p { margin-top: 12px; }

/* ---------- Continuous (the board) ----------
   The hero's surface — hairlines, 14/12 type, 8px corners, blue and neutral —
   at the same zoom, so the two read as one product. Fills the wrap. */
.cont {
  zoom: 0.85;
  margin-top: 40px;
  display: flex; flex-direction: column;
  border-radius: 8px; border: 1px solid var(--site-line);
  background: var(--site-surface); box-shadow: var(--shadow-pop);
  font-family: var(--font-body); color: var(--site-ink);
  overflow: hidden;
}
.cont-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  height: 45px; padding: 0 16px; border-bottom: 1px solid var(--site-line);
  font: 500 14px/20px var(--font-body); color: var(--site-ink-3);
}
.cont-head-count { color: var(--site-ink); transition: color 300ms var(--ease-standard); }
.cont-head-count[data-attention="true"] { color: var(--accent); }

.cont-lane { display: grid; grid-template-columns: 180px 1fr; align-items: center; border-bottom: 1px solid var(--site-line); transition: opacity 300ms var(--ease-standard); }
.cont-lane-label { display: flex; flex-direction: column; padding: 16px 16px; }
.cont-lane-k { font: 400 12px/16px var(--font-body); color: var(--site-ink-3); }
.cont-lane-v { font: 500 14px/20px var(--font-body); color: var(--site-ink); }
.cont-track { position: relative; min-width: 0; overflow: hidden; }

/* Releases: a hairline axis, and the blue line filling along it on a
   compositor transform — its duration is set per leg from the markup, so the
   browser draws the whole journey between two renders. Chips sit centred in
   six equal cells; the line runs between the first and last centres. */
.cont-lane[data-resetting="true"] { opacity: 0; transition-duration: 700ms; }
.cont-track-releases { height: 84px; }
.cont-axis, .cont-fill { position: absolute; top: 50%; left: calc(100% / 12); right: calc(100% / 12); }
.cont-axis { height: 1px; background: var(--site-line); }
.cont-fill {
  height: 2px; margin-top: -0.5px; border-radius: 999px;
  background: var(--accent);
  transform-origin: left center; transform: scaleX(0);
  will-change: transform;
}
.cont-rel {
  position: absolute; top: 50%; transform: translate(-50%, -50%);
  display: flex; align-items: center; gap: 8px;
  padding: 5px 10px 5px 8px; border-radius: 999px;
  border: 1px solid var(--site-line); background: var(--site-surface);
  font: 500 12px/16px var(--font-mono); color: var(--site-ink-3); white-space: nowrap;
  transition: color 360ms var(--ease-standard), border-color 360ms var(--ease-standard), background-color 360ms var(--ease-standard);
}
.cont-rel[data-state="assessing"], .cont-rel[data-state="attention"] { color: var(--site-ink); border-color: color-mix(in oklab, var(--accent) 45%, transparent); }
.cont-rel[data-state="met"] { color: #fff; border-color: var(--accent); background: var(--accent); transition-delay: 120ms; }

/* The chip's ring draws round while the release is assessed (the arc runs
   0 → full over the result time), then strokes its check as the chip turns
   blue, or eases back to the quarter arc if the release regressed. */
.cont-rel .ring-check { stroke: #fff; }
.cont-rel[data-state="assessing"] .ring-arc { stroke-dasharray: var(--ring-arc-full); transition-duration: 1400ms; transition-timing-function: linear; }
.cont-rel[data-state="met"] .ring-arc { stroke-dasharray: var(--ring-arc-full); stroke: #fff; }
.cont-rel[data-state="met"] .ring-check { stroke-dashoffset: 0; }
.cont-rel[data-state="attention"] .ring-arc { stroke-dasharray: var(--ring-arc-open); }

/* Verdicts: one cell under each release, its rows in the agent's trace
   style — the assessment line settling from loader to dot, the verdict
   beneath it with its ring — each rising in as it lands. */
.cont-track-verdicts { display: grid; grid-template-columns: repeat(6, 1fr); padding: 14px 0; min-height: 76px; }
.cont-cell { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; padding: 0 8px 0 24px; }
.cont-log-row { align-items: flex-start; gap: 8px; min-height: 20px; max-width: 100%; }
.cont-log-row[data-current="true"] { color: var(--site-ink); }
.cont-log-slot { position: relative; width: 16px; height: 16px; flex: none; margin-top: 2px; }
.cont-log-loader, .cont-log-dot {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  opacity: 0; filter: blur(3px); transition: opacity 200ms var(--ease-standard), filter 200ms var(--ease-standard);
}
.cont-log-loader { inset: 1px; }
.cont-log-dot { width: 11px; height: 11px; inset: 2.5px; }
.cont-log-loader[data-on="true"], .cont-log-dot[data-on="true"] { opacity: 1; filter: blur(0); }
.cont-log-text { min-width: 0; line-height: 20px; }

.cont-foot { display: grid; grid-template-columns: repeat(3, 1fr); }
/* Tablets shrink the board a little; phones reflow it — lanes stacked, the
   verdict cells three across — so its type never drops below ~10px. */
@media (max-width: 960px) { .cont { zoom: 0.8; } }
@media (max-width: 720px) {
  .cont-lane { grid-template-columns: 1fr; }
  .cont-lane-label { flex-direction: row; gap: 6px; padding: 12px 16px 0; }
  /* Six chips will not sit side by side on a phone: alternate them above and
     below the line, which doubles the room each one has. */
  .cont-track-releases { height: 108px; margin: 0 16px; }
  .cont-rel[data-row="0"] { transform: translate(-50%, -128%); }
  .cont-rel[data-row="1"] { transform: translate(-50%, 28%); }
  /* The end chips would otherwise clip at the card's sides. */
  .cont-rel[data-edge="start"] { transform: translate(-30%, -128%); }
  .cont-rel[data-edge="end"] { transform: translate(-70%, 28%); }
  .cont-rel-suffix { display: none; }
  .cont-track-verdicts { grid-template-columns: repeat(3, 1fr); row-gap: 10px; padding: 12px 16px 14px; }
  .cont-cell { padding: 0; }
  .cont-foot { grid-template-columns: 1fr; }
  .cont-foot-cell + .cont-foot-cell { border-left: 0; border-top: 1px solid var(--site-line); }
}
.cont-foot-cell { display: flex; flex-direction: column; padding: 14px 16px; }
.cont-foot-cell + .cont-foot-cell { border-left: 1px solid var(--site-line); }
.cont-foot-k { font: 400 12px/16px var(--font-body); color: var(--site-ink-3); }
.cont-foot-v { font: 500 14px/20px var(--font-body); color: var(--site-ink); }
.cont-foot-v.accent { color: var(--accent); }


/* ---------- Partners ---------- */
.partners-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
@media (max-width: 900px) { .partners-grid { grid-template-columns: 1fr; } }
.partner-card {
  padding: 32px;
  border-radius: 20px;
  background: var(--site-surface);
  box-shadow: inset 0 0 0 1px var(--site-line);
  display: flex; flex-direction: column; gap: 14px;
  min-height: 320px;
  transition: background 240ms, box-shadow 240ms, transform 240ms;
}
@media (hover: hover) { .partner-card:hover {
  background: var(--site-surface-2);
  box-shadow: inset 0 0 0 1px var(--site-line-strong);
  transform: translateY(-2px);
} }
.partner-mark {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: color-mix(in oklab, var(--accent) 14%, transparent);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 4px;
}
.partner-mark svg { width: 32px; height: 32px; }
.partner-kicker { font: 500 11px/1 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--site-ink-3); }
.partner-title { font: 600 22px/1.18 var(--font-display); letter-spacing: -0.015em; color: var(--site-ink); }
.partner-body { font: 400 14px/1.45 var(--font-body); color: var(--site-ink-2); }
.partner-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.partner-tag {
  font: 500 11px/1 var(--font-mono);
  padding: 6px 10px;
  border-radius: 999px;
  background: color-mix(in oklab, var(--site-ink) 8%, transparent);
  color: var(--site-ink-2);
}

.partners-foot {
  margin-top: 24px;
  padding: 20px 28px;
  border-radius: 16px;
  background: color-mix(in oklab, var(--accent) 8%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--accent) 24%, transparent);
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
.partners-foot-k {
  font: 600 14px/1 var(--font-display);
  color: var(--accent);
  letter-spacing: -0.005em;
}
.partners-foot-sep {
  width: 1px; height: 18px;
  background: color-mix(in oklab, var(--accent) 30%, transparent);
}
.partners-foot-v {
  font: 400 14px/1.5 var(--font-body);
  color: var(--site-ink-2);
  flex: 1;
  min-width: 200px;
}

/* ---------- Workflows ---------- */
.workflows { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 1100px) { .workflows { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .workflows { grid-template-columns: 1fr; } }
.wf {
  position: relative; min-width: 0;
  padding: 28px;
  border-radius: 20px;
  background: var(--site-surface);
  box-shadow: inset 0 0 0 1px var(--site-line);
  min-height: 320px;
  display: flex; flex-direction: column; gap: 18px;
  cursor: pointer;
  transition: background 260ms, transform 260ms, box-shadow 260ms;
  overflow: hidden;
}
@media (hover: hover) { .wf:hover {
  background: var(--site-surface-2);
  transform: translateY(-2px);
  box-shadow: inset 0 0 0 1px var(--site-line-strong);
} }
.wf-num {
  font: 500 12px/1 var(--font-mono);
  color: var(--accent);
  letter-spacing: 0.14em;
}
.wf-title { font: 600 26px/1.1 var(--font-display); letter-spacing: -0.015em; color: var(--site-ink); }
.wf-desc { font: 400 14px/1.5 var(--font-body); color: var(--site-ink-3); margin-top: auto; }
.wf-viz { height: 100px; position: relative; margin-top: 4px; }

/* The four illustrations, in the product's own surface: hairline rows, mono
   ids, status rings, blue and neutral — the same parts the hero draws with. */
.wfx { display: flex; flex-direction: column; height: 100%; justify-content: center; font: 400 12px/16px var(--font-body); color: var(--site-ink-3); }
.wfx-row { display: flex; align-items: center; gap: 8px; min-width: 0; }
.wfx-id { font: 500 11px/16px var(--font-mono); color: var(--site-ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wfx .ring { width: 14px; height: 14px; }

/* 01 · a requirement list with its verdicts. */
.wfx-list { gap: 0; }
.wfx-list .wfx-row { height: 28px; }
.wfx-list .wfx-row + .wfx-row { border-top: 1px solid var(--site-line); }
.wfx-verdict { margin-left: auto; white-space: nowrap; }
.wfx-verdict[data-status="active"] { color: var(--accent); }

/* 02 · a document whose cited line is the one the claim points at. */
.wfx-doc { gap: 7px; }
.wfx-doc-head { margin-bottom: 2px; }
.wfx-line { height: 6px; border-radius: 999px; background: color-mix(in oklab, var(--site-ink) 10%, transparent); }
.wfx-line-cited { background: var(--accent); }
.wfx-cite { margin-top: 3px; font: 500 11px/16px var(--font-mono); color: var(--accent); white-space: nowrap; }

/* 03 · the Working card's row, with its traces. */
.wfx-run { gap: 3px; }
.wfx-loader { display: flex; width: 16px; height: 16px; align-items: center; justify-content: center; flex: none; }
.wfx-title { font: 500 13px/20px var(--font-body); color: var(--site-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wfx-elapsed { margin-left: auto; font: 400 11px/16px var(--font-mono); font-variant-numeric: tabular-nums; color: var(--site-ink-3); }
.wfx-detail { padding-left: 24px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 4px; }
.wfx-trace { display: flex; align-items: center; gap: 8px; padding-left: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wfx-trace[data-state="current"] { color: var(--site-ink); }
.wfx-dot { width: 11px; height: 11px; flex: none; }

/* 04 · the package's sections, the last one sealed. */
.wfx-pack { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.wfx-tile {
  display: flex; align-items: center; gap: 6px; padding: 6px 8px;
  border-radius: 6px; border: 1px solid var(--site-line);
  font: 500 11px/16px var(--font-mono); color: var(--site-ink-2);
}
.wfx-tile[data-sealed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.wfx-tile[data-sealed="true"] .ring-tone { stroke: #fff; }

/* On hover each illustration advances one beat, on the same curves the
   product uses: the open requirement resolves, the citation is followed,
   the capture lands, the package seals section by section. Only on a real
   pointer: a tap would leave a touch screen's :hover stuck mid-beat. */
.wfx-resolve .ring-arc { stroke-dasharray: var(--ring-arc-open); transition-duration: 520ms; }
.wfx-resolve .ring-check { transition: stroke-dashoffset 280ms var(--ease-standard); }
.wfx-verdict { position: relative; }
.wfx-verdict-then { position: absolute; right: 0; top: 0; color: var(--site-ink-3); opacity: 0; }
.wfx-verdict-now, .wfx-verdict-then { transition: opacity 240ms var(--ease-standard); }

.wfx-line { transform-origin: left center; transition: transform 420ms var(--ease-standard); }
.wfx-cite { display: inline-flex; gap: 0; transition: transform 320ms var(--ease-standard); }

.wfx-trace { transition: color 240ms var(--ease-standard); }
.wfx-trace-next { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows 360ms var(--ease-standard), opacity 260ms var(--ease-standard); }
.wfx-trace-next > .wfx-trace { min-height: 0; overflow: hidden; }

.wfx-tile { transition: background-color 260ms var(--ease-standard), border-color 260ms var(--ease-standard), color 260ms var(--ease-standard); }
.wfx-tile .ring-tone { transition: stroke 260ms var(--ease-standard); }
@media (hover: hover) and (pointer: fine) {
.wf:hover .wfx-resolve .ring-arc { stroke-dasharray: var(--ring-arc-full); }
.wf:hover .wfx-resolve .ring-check { stroke-dashoffset: 0; transition-delay: 380ms; }
.wf:hover .wfx-verdict[data-status="active"] .wfx-verdict-now { opacity: 0; transition-delay: 300ms; }
.wf:hover .wfx-verdict[data-status="active"] .wfx-verdict-then { opacity: 1; transition-delay: 420ms; }
.wf:hover .wfx-line-cited { transform: scaleX(1.16); }
.wf:hover .wfx-cite { transform: translateX(3px); }
.wf:hover .wfx-trace-next { grid-template-rows: 1fr; opacity: 1; transition-delay: 120ms; }
.wf:hover .wfx-run > .wfx-trace { color: var(--site-ink-3); }
.wf:hover .wfx-tile { background: var(--accent); border-color: var(--accent); color: #fff; }
.wf:hover .wfx-tile .ring-tone { stroke: #fff; }
.wf:hover .wfx-tile:nth-child(2) { transition-delay: 70ms; }
.wf:hover .wfx-tile:nth-child(3) { transition-delay: 140ms; }
.wf:hover .wfx-tile:nth-child(4) { transition-delay: 210ms; }
.wf:hover .wfx-tile:nth-child(5) { transition-delay: 280ms; }
.wf:hover .wfx-tile:nth-child(2) .ring-tone { transition-delay: 70ms; }
.wf:hover .wfx-tile:nth-child(3) .ring-tone { transition-delay: 140ms; }
.wf:hover .wfx-tile:nth-child(4) .ring-tone { transition-delay: 210ms; }
.wf:hover .wfx-tile:nth-child(5) .ring-tone { transition-delay: 280ms; }
}
@media (prefers-reduced-motion: reduce) { .wfx-cite, .wfx-line { transition: none; } }

/* ---------- Comparison ---------- */
.compare {
  margin-top: 48px;
  border-radius: 24px;
  background: var(--site-surface);
  box-shadow: inset 0 0 0 1px var(--site-line);
  overflow: hidden;
}
.compare-head {
  display: grid; grid-template-columns: 1.2fr 1fr 1fr;
  border-bottom: 1px solid var(--site-line);
}
.compare-head > div {
  padding: 20px 28px;
  font: 400 14px/1 var(--font-body);
  color: var(--site-ink-3);
  display: flex; align-items: center; gap: 10px;
}
.compare-head .before-h::before { content: ""; width: 8px; height: 8px; border-radius: 999px; background: color-mix(in oklab, var(--site-ink) 30%, transparent); }
.compare-head .after-h { color: var(--accent); }
.compare-head .after-h::before { content: ""; width: 8px; height: 8px; border-radius: 999px; background: var(--accent); }

.crow {
  display: grid; grid-template-columns: 1.2fr 1fr 1fr;
  border-bottom: 1px solid var(--site-line);
  transition: background 200ms;
}
.crow:last-child { border-bottom: none; }
.crow:hover { background: color-mix(in oklab, var(--accent) 5%, transparent); }
.crow > div { padding: 22px 28px; }
.crow .c-step { font: 600 17px/1.3 var(--font-display); letter-spacing: -0.01em; color: var(--site-ink); }
/* The figure leads each cell — the time it takes — with the how beneath it. */
.crow .c-before, .crow .c-after { display: flex; flex-direction: column; gap: 6px; }
.crow .c-figure { font: 600 22px/1.1 var(--font-display); letter-spacing: -0.015em; color: var(--site-ink); }
.crow .c-after .c-figure { color: var(--accent); }
.crow .c-text { font: 400 13px/1.35 var(--font-body); color: var(--site-ink-2); max-width: 34ch; }
/* The manual column sits a step back from the ComplianceOS one, in either theme. */
.crow .c-before .c-figure { color: var(--site-ink-2); }
.crow .c-before .c-text { color: var(--site-ink-3); }
@media (max-width: 800px) {
  .crow { grid-template-columns: 1fr; }
  /* The head becomes the legend for the two figures in each row. */
  .compare-head { display: flex; flex-wrap: wrap; column-gap: 20px; padding: 18px 24px; }
  .compare-head > div { padding: 0; line-height: 1.4; }
  .compare-head > div:first-child { display: none; }
  .crow > div { padding: 16px 24px; }
  .crow .c-step { padding-bottom: 4px; }
}

/* ---------- Standards ---------- */
.standards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 1180px) { .standards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 800px) { .standards { grid-template-columns: 1fr; } }
.std {
  padding: 28px;
  border-radius: 20px;
  background: var(--site-surface);
  box-shadow: inset 0 0 0 1px var(--site-line);
  display: flex; flex-direction: column; gap: 14px;
  min-height: 240px;
}
.std-region { font: 500 11px/1 var(--font-mono); letter-spacing: 0.14em; color: var(--accent); text-transform: uppercase; display: flex; align-items: center; gap: 7px; }
.std-region::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.std-region.status-live { color: var(--status-live); }
.std-region.status-horizon { color: var(--site-ink-3); }
.std-name { font: 600 28px/1.05 var(--font-display); letter-spacing: -0.02em; color: var(--site-ink); }
.std-desc { font: 400 14px/1.45 var(--font-body); color: var(--site-ink-3); }
.std-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.std-tag {
  font: 500 11px/1 var(--font-mono);
  padding: 6px 10px;
  border-radius: 999px;
  background: color-mix(in oklab, var(--site-ink) 8%, transparent);
  color: var(--site-ink-2);
}

/* ---------- CTA ---------- */
.cta {
  padding: clamp(72px, 9vw, 120px) 0;
  border-top: 1px solid var(--site-line);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-inner {
  display: flex; flex-direction: column; align-items: center; gap: 24px;
  max-width: 820px; margin: 0 auto; position: relative; z-index: 1;
}
.cta h2 { text-align: center; }
.cta .lede { text-align: center; margin: 0 auto; }
.cta-glow {
  position: absolute; pointer-events: none;
  width: 700px; height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in oklab, var(--accent) 22%, transparent), transparent 60%);
  left: 50%; top: 50%; transform: translate(-50%, -50%);
  opacity: var(--glow-opacity);
}

/* ---------- Footer ---------- */
.footer {
  padding: 48px 0 64px;
  border-top: 1px solid var(--site-line);
  color: var(--site-ink-3);
  font: 400 13px/1.5 var(--font-body);
}
.footer-row { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }

/* ---------- Leadership ---------- */
.leaders { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .leaders { grid-template-columns: 1fr; } }
.leader {
  padding: 28px;
  border-radius: 20px;
  background: var(--site-surface);
  box-shadow: inset 0 0 0 1px var(--site-line);
  display: flex; flex-direction: column; gap: 6px;
}
.leader-avatar {
  width: 64px; height: 64px; margin-bottom: 14px;
  border-radius: 50%; overflow: hidden;
  background: var(--accent-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font: 600 20px/1 var(--font-display); letter-spacing: -0.01em;
}
.leader-avatar img { width: 100%; height: 100%; object-fit: cover; }
.leader-name { display: flex; align-items: center; gap: 8px; font: 600 20px/1.2 var(--font-display); letter-spacing: -0.015em; color: var(--site-ink); }
.leader-link { display: inline-flex; color: var(--site-ink-3); transition: color 160ms; }
.leader-link:hover { color: var(--accent); }
.leader-link svg { width: 16px; height: 16px; }
.leader-role { font: 500 11px/1.4 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--site-ink-3); }
.leader-bio { margin-top: 8px; font: 400 14px/1.45 var(--font-body); color: var(--site-ink-2); }

/* ---------- Modal ---------- */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 100;
  background: color-mix(in oklab, black 50%, transparent);
  backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  /* Hidden outright when closed: a full-viewport blur must not stay in the paint tree. */
  visibility: hidden;
  transition: opacity 240ms var(--ease-standard), visibility 0s 240ms;
}
.modal-backdrop.open { opacity: 1; pointer-events: auto; visibility: visible; transition-delay: 0s; }
.modal {
  width: 100%; max-width: 460px;
  background: oklch(1 0 0);
  color: oklch(0.186 0.016 284.716);
  border-radius: 24px;
  padding: 36px;
  box-shadow: 0 40px 100px -20px rgba(0,0,0,0.4);
  transform: scale(0.96);
  transition: transform 240ms var(--ease-standard);
}
.modal-backdrop.open .modal { transform: scale(1); }
.modal h3 { color: oklch(0.186 0.016 284.716); font: 600 24px/1.15 var(--font-display); letter-spacing: -0.015em; }
.modal p { color: oklch(0.48 0.02 284); margin: 8px 0 20px; font-size: 14px; }
.modal form { display: flex; flex-direction: column; gap: 12px; }
.modal input, .modal select {
  width: 100%; padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid oklch(0.82 0.01 284);
  background: #fff;
  font: 400 14px/1.2 var(--font-body);
  color: oklch(0.186 0.016 284.716);
  transition: border-color 160ms, box-shadow 160ms;
}
.modal input:focus, .modal select:focus {
  outline: none;
  border-color: oklch(0.434 0.235 279.302);
  box-shadow: 0 0 0 3px color-mix(in oklab, oklch(0.434 0.235 279.302) 22%, transparent);
}
.modal .submit {
  margin-top: 4px;
  width: 100%;
  padding: 14px 20px;
  border-radius: 999px;
  border: none; cursor: pointer;
  background: #312BEC;
  color: #fff;
  font: 500 15px/1 var(--font-body);
  transition: transform 160ms;
}
@media (hover: hover) { .modal .submit:not(:disabled):hover { transform: translateY(-0.5px); } }
.modal .submit:disabled { cursor: default; opacity: 0.7; }
.modal .modal-error { margin: 0; text-align: center; font-size: 13px; color: oklch(0.52 0.19 27); }
/* Honeypot for bots (see worker.js): out of view and out of the tab order. */
.modal .modal-trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.modal .close {
  position: absolute; top: 16px; right: 16px;
  width: 32px; height: 32px; border-radius: 999px;
  border: none; background: transparent;
  color: oklch(0.48 0.02 284);
  cursor: pointer; font-size: 16px;
}
.modal .close:hover { background: oklch(0.94 0.01 284); }
.modal .modal-alt { margin: 16px 0 0; text-align: center; }
.modal-alt a { color: #312BEC; text-decoration: underline; text-underline-offset: 2px; }
.modal-wrap { position: relative; }
.modal-success { text-align: center; padding: 20px 0 8px; }
.modal-success .check {
  width: 56px; height: 56px; border-radius: 999px; margin: 0 auto 16px;
  background: color-mix(in oklab, oklch(0.434 0.235 279.302) 10%, transparent);
  display: flex; align-items: center; justify-content: center;
  color: oklch(0.434 0.235 279.302); font-size: 24px;
}
