/* =========================================================================
   THROUGHLINE — Shared Design System
   Frozen contract. Do not add or edit global styles in page files.
   Palette: deep navy ink + cool neutrals + ONE accent (signal amber).
   Type: Space Grotesk (display) · Inter (body) · JetBrains Mono (data).
   ========================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* ----------------------------------------------------------------- Tokens */
:root {
  /* Color — ink base */
  --ink:        #0A0E17;
  --ink-2:      #0F1524;
  --surface:    #141B2D;
  --surface-2:  #1B2540;
  --line:       #243049;
  --line-2:     #33415F;

  /* Color — text */
  --text:       #EEF2F8;
  --muted:      #9AA7BD;
  --dim:        #6B7894;

  /* Color — accent (the throughline) */
  --accent:     #FFB224;
  --accent-press:#E89A0E;
  --accent-soft: rgba(255,178,36,.12);
  --accent-line: rgba(255,178,36,.30);

  /* Color — chart neutrals + semantic */
  --steel:      #5C6E8E;
  --steel-2:    #8696B0;
  --good:       #4FD18B;   /* positive delta */
  --good-soft:  rgba(79,209,139,.14);
  --warn:       #FF7A6B;   /* negative delta */
  --warn-soft:  rgba(255,122,107,.14);

  /* Spacing — 4 / 8 scale */
  --s1: 4px;  --s2: 8px;  --s3: 12px; --s4: 16px; --s5: 24px;
  --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px; --s10: 128px;

  /* Radius — restrained, geometric (no pills) */
  --r-xs: 4px; --r-sm: 6px; --r: 10px; --r-lg: 14px; --r-xl: 20px;

  /* Type */
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', monospace;

  /* Layout */
  --container: 1200px;
  --container-narrow: 880px;
  --gutter: clamp(20px, 5vw, 40px);

  /* Effects */
  --shadow: 0 1px 0 rgba(255,255,255,.02), 0 18px 40px -24px rgba(0,0,0,.7);
  --shadow-lift: 0 1px 0 rgba(255,255,255,.04), 0 28px 60px -28px rgba(0,0,0,.8);
  --glow: 0 0 0 1px var(--accent-line), 0 10px 40px -16px rgba(255,178,36,.35);
  --ease: cubic-bezier(.22,.61,.36,1);
  --dur: 180ms;

  --z-header: 50;
}

/* ------------------------------------------------------------------ Reset */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'cv11', 'ss01';
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
svg { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
ul, ol { list-style: none; padding: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: var(--r-xs); }

::selection { background: var(--accent); color: var(--ink); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: var(--s4); top: -120%; z-index: 100;
  background: var(--accent); color: var(--ink); padding: var(--s2) var(--s4);
  border-radius: var(--r-sm); font-weight: 600;
}
.skip-link:focus { top: var(--s4); }

/* ------------------------------------------------------------- Typography */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--text);
  text-wrap: balance;
}
h1 { font-size: clamp(2.25rem, 1.4rem + 3.6vw, 3.9rem); }
h2 { font-size: clamp(1.85rem, 1.3rem + 2.2vw, 2.85rem); }
h3 { font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.6rem); letter-spacing: -0.015em; }
h4 { font-size: 1.1rem; letter-spacing: -0.01em; }

p { text-wrap: pretty; }

.display { font-size: clamp(2.6rem, 1.4rem + 5vw, 4.6rem); line-height: 1.02; letter-spacing: -0.03em; }

.lead {
  font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem);
  line-height: 1.55; color: var(--muted); max-width: 56ch;
}
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.prose { max-width: 65ch; }
.prose p + p { margin-top: var(--s4); }

.eyebrow {
  display: inline-flex; align-items: center; gap: var(--s2);
  font-family: var(--font-mono); font-size: 0.78rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.14em; color: var(--accent);
}
.eyebrow::before {
  content: ''; width: 22px; height: 1px; background: var(--accent); opacity: .7;
}
.eyebrow--plain::before { display: none; }

a.link { color: var(--accent); font-weight: 500; transition: color var(--dur) var(--ease); }
a.link:hover { color: var(--accent-press); }
a.link--arrow::after { content: ' →'; font-family: var(--font-mono); }

/* ----------------------------------------------------------------- Layout */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: var(--container-narrow); }

.section { padding-block: clamp(64px, 8vw, 120px); }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }
.section--alt { background: var(--ink-2); border-block: 1px solid var(--line); }
.section--ink { background: var(--ink); }

.section__head { max-width: 60ch; margin-bottom: var(--s7); }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head p { margin-top: var(--s4); }

.stack > * + * { margin-top: var(--s4); }
.stack-lg > * + * { margin-top: var(--s6); }
.cluster { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s4); }
.cluster--tight { gap: var(--s2); }

.grid { display: grid; gap: var(--s5); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.split--reverse > :first-child { order: 2; }
/* Let grid children shrink below their content's intrinsic min-width so that
   wide content (e.g. a min-width table) scrolls inside its own wrapper instead
   of forcing the column — and the page — wider than the viewport. */
.grid > *, .split > * { min-width: 0; }

@media (max-width: 900px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: var(--s7); }
  .split--reverse > :first-child { order: 0; }
}

.text-center { text-align: center; }
.center-x { margin-inline: auto; }
.divider { height: 1px; background: var(--line); border: 0; }

/* ----------------------------------------------------------------- Header */
.site-header {
  position: sticky; top: 0; z-index: var(--z-header);
  background: color-mix(in srgb, var(--ink) 82%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; gap: var(--s5);
}
.brand { display: inline-flex; align-items: center; gap: var(--s3); font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; letter-spacing: -0.02em; color: var(--text); }
.brand__mark { flex: none; }
.brand:hover .brand__mark .tl-node { fill: var(--accent); }

.nav { display: flex; align-items: center; gap: var(--s2); }
.nav__links { display: flex; align-items: center; gap: var(--s1); }
.nav__link {
  display: inline-block; padding: var(--s2) var(--s3); border-radius: var(--r-sm);
  font-size: 0.95rem; font-weight: 500; color: var(--muted);
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.nav__link:hover { color: var(--text); background: var(--surface); }
.nav__link[aria-current="page"] { color: var(--text); }
.nav__link[aria-current="page"]::after {
  content: ''; display: block; height: 2px; margin-top: 4px; border-radius: 2px;
  background: var(--accent);
}
.nav__actions { display: flex; align-items: center; gap: var(--s3); margin-left: var(--s3); }

.nav__toggle {
  display: none; width: 42px; height: 42px; align-items: center; justify-content: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); cursor: pointer;
}
.nav__toggle svg { width: 20px; height: 20px; stroke: var(--text); }
.nav__toggle .icon-close { display: none; }
.nav__toggle[aria-expanded="true"] .icon-open { display: none; }
.nav__toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 860px) {
  .nav__toggle { display: inline-flex; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: var(--s4);
    padding: var(--s5) var(--gutter) var(--s6);
    background: var(--ink-2); border-bottom: 1px solid var(--line);
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
  }
  .nav[data-open="true"] { transform: none; opacity: 1; pointer-events: auto; }
  .nav__links { flex-direction: column; align-items: stretch; gap: var(--s1); }
  .nav__link { padding: var(--s3) var(--s4); font-size: 1.05rem; }
  .nav__link[aria-current="page"]::after { display: none; }
  .nav__link[aria-current="page"] { background: var(--surface); }
  .nav__actions { flex-direction: column; align-items: stretch; margin-left: 0; }
  .nav__actions .btn { width: 100%; }
}

/* ----------------------------------------------------------------- Footer */
.site-footer { background: var(--ink-2); border-top: 1px solid var(--line); padding-block: var(--s9) var(--s6); }
.footer__grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: var(--s7); }
.footer__brand { max-width: 32ch; }
.footer__brand p { margin-top: var(--s4); color: var(--muted); font-size: 0.95rem; }
.footer__col h4 { font-family: var(--font-mono); font-size: 0.74rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; color: var(--dim); margin-bottom: var(--s4); }
.footer__col li + li { margin-top: var(--s3); }
.footer__col a { color: var(--muted); font-size: 0.95rem; transition: color var(--dur) var(--ease); }
.footer__col a:hover { color: var(--text); }
.footer__bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: var(--s4); margin-top: var(--s8); padding-top: var(--s5);
  border-top: 1px solid var(--line); color: var(--dim); font-size: 0.875rem;
}
.footer__status { display: inline-flex; align-items: center; gap: var(--s2); font-family: var(--font-mono); font-size: 0.8rem; }
.footer__status .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 4px var(--good-soft); }
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; gap: var(--s6); } .footer__brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  padding: 12px 20px; border-radius: var(--r-sm); border: 1px solid transparent;
  font-family: var(--font-body); font-size: 0.95rem; font-weight: 600; line-height: 1;
  cursor: pointer; white-space: nowrap; text-align: center;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease),
              color var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); color: var(--ink); }
.btn--primary:hover { background: var(--accent-press); box-shadow: var(--glow); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn--ghost:hover { border-color: var(--text); background: var(--surface); }
.btn--soft { background: var(--surface); color: var(--text); border-color: var(--line); }
.btn--soft:hover { background: var(--surface-2); border-color: var(--line-2); }
.btn--lg { padding: 15px 26px; font-size: 1rem; }
.btn--sm { padding: 9px 14px; font-size: 0.875rem; }
.btn--block { width: 100%; }
.btn svg { width: 18px; height: 18px; }

/* ----------------------------------------------------------- Badges/delta */
.badge {
  display: inline-flex; align-items: center; gap: var(--s2);
  padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line-2);
  background: var(--surface); font-family: var(--font-mono); font-size: 0.74rem;
  font-weight: 500; letter-spacing: 0.02em; color: var(--muted);
}
.badge--accent { color: var(--accent); border-color: var(--accent-line); background: var(--accent-soft); }
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.delta {
  display: inline-flex; align-items: center; gap: 4px;
  font-family: var(--font-mono); font-variant-numeric: tabular-nums;
  font-size: 0.82rem; font-weight: 600; padding: 2px 8px; border-radius: var(--r-xs);
}
.delta--up { color: var(--good); background: var(--good-soft); }
.delta--down { color: var(--warn); background: var(--warn-soft); }
.delta--flat { color: var(--muted); background: var(--surface-2); }
.delta__arrow { font-size: 0.7em; }

/* ------------------------------------------------------------------ Cards */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: var(--s6); transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease), background var(--dur) var(--ease);
}
.card--hover:hover { border-color: var(--line-2); transform: translateY(-3px); }
.card--accent { position: relative; }
.card--accent::before {
  content: ''; position: absolute; inset: -1px -1px auto -1px; height: 3px;
  background: linear-gradient(90deg, var(--accent), transparent 70%);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
}
.card__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: var(--r-sm);
  background: var(--accent-soft); border: 1px solid var(--accent-line); margin-bottom: var(--s5);
}
.card__icon svg { width: 22px; height: 22px; stroke: var(--accent); }
.card h3 { margin-bottom: var(--s3); }
.card p { color: var(--muted); }

/* feature index marker (use only when content is a real sequence) */
.feature-index { font-family: var(--font-mono); font-size: 0.8rem; color: var(--dim); letter-spacing: 0.1em; }

/* ----------------------------------------------------------- Metric cards */
.metric {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: var(--s5);
}
.metric__label {
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--dim);
}
.metric__value {
  font-family: var(--font-display); font-weight: 600; font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.1rem);
  font-variant-numeric: tabular-nums; letter-spacing: -0.02em; margin-top: var(--s3); line-height: 1;
}
.metric__value .unit { font-size: 0.5em; color: var(--muted); font-weight: 500; margin-left: 3px; }
.metric__foot { display: flex; align-items: center; gap: var(--s3); margin-top: var(--s3); }
.metric__foot .muted { font-size: 0.8rem; }

/* ----------------------------------------------------------------- Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); }
.table { width: 100%; border-collapse: collapse; font-size: 0.95rem; min-width: 520px; }
.table th, .table td { padding: var(--s4) var(--s5); text-align: left; border-bottom: 1px solid var(--line); }
.table thead th {
  font-family: var(--font-mono); font-size: 0.74rem; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--dim); font-weight: 600; background: var(--ink-2);
}
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background var(--dur) var(--ease); }
.table tbody tr:hover { background: var(--surface); }
.table td.num, .table th.num { text-align: right; font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.table .yes { color: var(--good); }
.table .no { color: var(--dim); }
.cell-strong { color: var(--text); font-weight: 600; }

/* ------------------------------------------------------------------ Charts
   Reusable, hand-drawn SVG/CSS chart primitives.
   The accent series IS the throughline. Secondary series use steel. */
.chart { position: relative; }
.chart-grid line { stroke: var(--line); stroke-width: 1; }
.series { fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.series--accent { stroke: var(--accent); }
.series--steel  { stroke: var(--steel); stroke-dasharray: 4 5; stroke-width: 2; }
.area--accent { fill: url(#tlAreaFill); opacity: .9; }
.dot-accent { fill: var(--accent); }
.dot-ink { fill: var(--ink); stroke: var(--accent); stroke-width: 2; }
.axis-label { font-family: var(--font-mono); font-size: 10px; fill: var(--dim); }

/* draw-on-load for the hero throughline — fires once, no JS dependency */
.tl-draw { stroke-dasharray: var(--len, 1200); stroke-dashoffset: var(--len, 1200); animation: tlDraw 1.7s var(--ease) .15s forwards; }
@keyframes tlDraw { to { stroke-dashoffset: 0; } }

/* CSS bar chart */
.bars { display: flex; align-items: flex-end; gap: var(--s2); height: 120px; }
.bars--tall { height: 180px; }
.bar { flex: 1; min-width: 4px; background: var(--steel); border-radius: var(--r-xs) var(--r-xs) 0 0;
  height: var(--h, 40%); transition: height 600ms var(--ease); }
.bar--accent { background: var(--accent); }
.bar-track { display: flex; flex-direction: column; align-items: center; gap: var(--s2); flex: 1; }
.bar-track .cap { font-family: var(--font-mono); font-size: 0.68rem; color: var(--dim); }

/* horizontal stat bar (distribution / percentile) */
.statbar { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.statbar__fill { height: 100%; border-radius: 999px; background: var(--accent); width: var(--w, 50%); }
.statbar__fill--steel { background: var(--steel); }

/* gauge (SVG donut) */
.gauge { transform: rotate(-90deg); }
.gauge__track { fill: none; stroke: var(--surface-2); }
.gauge__value { fill: none; stroke: var(--accent); stroke-linecap: round; transition: stroke-dashoffset 800ms var(--ease); }

/* sparkline container */
.spark { width: 100%; height: 34px; overflow: visible; }

/* --------------------------------------------------------- Product window */
.window {
  background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lift); overflow: hidden;
}
.window__bar {
  display: flex; align-items: center; gap: var(--s3); padding: var(--s3) var(--s4);
  background: var(--ink-2); border-bottom: 1px solid var(--line);
}
.window__dots { display: flex; gap: 7px; }
.window__dots i { width: 11px; height: 11px; border-radius: 50%; background: var(--line-2); }
.window__title { font-family: var(--font-mono); font-size: 0.78rem; color: var(--dim); margin-left: var(--s2); }
.window__body { padding: var(--s5); }
.window__chrome { display: flex; }

/* in-app left rail + content (drawn dashboard) */
.app-rail { width: 200px; flex: none; border-right: 1px solid var(--line); padding: var(--s4); background: var(--ink-2); }
.app-rail__item { display: flex; align-items: center; gap: var(--s3); padding: var(--s2) var(--s3); border-radius: var(--r-sm); font-size: 0.85rem; color: var(--muted); }
.app-rail__item svg { width: 16px; height: 16px; stroke: currentColor; }
.app-rail__item--active { background: var(--surface); color: var(--text); }
.app-rail__item--active svg { stroke: var(--accent); }
.app-main { flex: 1; padding: var(--s5); min-width: 0; }
.app-topbar { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); margin-bottom: var(--s5); }
@media (max-width: 720px) { .app-rail { display: none; } }

/* ------------------------------------------------------------ Logo strip */
.logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(24px, 5vw, 56px); }
.logo { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; letter-spacing: -0.01em; color: var(--steel-2); opacity: .85; transition: opacity var(--dur) var(--ease), color var(--dur) var(--ease); }
.logo:hover { opacity: 1; color: var(--text); }
.logo .mono { font-family: var(--font-mono); font-weight: 600; letter-spacing: 0.04em; }

/* ----------------------------------------------------------- Quote/avatar */
.quote { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.35rem, 1rem + 1.6vw, 2rem); line-height: 1.32; letter-spacing: -0.02em; text-wrap: balance; }
.quote__mark { color: var(--accent); }
.cite { display: flex; align-items: center; gap: var(--s4); margin-top: var(--s6); }
.avatar {
  flex: none; width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--font-mono); font-weight: 600; font-size: 0.95rem;
  color: var(--ink); background: var(--accent);
}
.avatar--steel { background: var(--steel-2); color: var(--ink); }
.avatar--ring { background: var(--surface); color: var(--accent); border: 1px solid var(--accent-line); }
.cite__name { font-family: var(--font-body); font-weight: 600; color: var(--text); font-size: 0.95rem; }
.cite__role { color: var(--dim); font-size: 0.85rem; }

/* --------------------------------------------------------------- FAQ */
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s4);
  padding: var(--s5) 0; cursor: pointer; list-style: none; font-family: var(--font-display);
  font-weight: 500; font-size: 1.15rem; color: var(--text);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary .faq__plus { flex: none; width: 22px; height: 22px; position: relative; transition: transform var(--dur) var(--ease); }
.faq__item summary .faq__plus::before, .faq__item summary .faq__plus::after { content: ''; position: absolute; background: var(--accent); border-radius: 2px; }
.faq__item summary .faq__plus::before { inset: 10px 0; height: 2px; }
.faq__item summary .faq__plus::after { inset: 0 10px; width: 2px; }
.faq__item[open] summary .faq__plus { transform: rotate(45deg); }
.faq__item .faq__body { padding-bottom: var(--s5); color: var(--muted); max-width: 70ch; }

/* --------------------------------------------------------------- Forms */
.form { display: grid; gap: var(--s5); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s5); }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } }
.field { display: grid; gap: var(--s2); }
.field > label { font-size: 0.875rem; font-weight: 500; color: var(--text); }
.field .req { color: var(--accent); }
.field .hint { font-size: 0.8rem; color: var(--dim); }
.input, .textarea, .select {
  width: 100%; padding: 12px 14px; background: var(--ink-2);
  border: 1px solid var(--line-2); border-radius: var(--r-sm); color: var(--text);
  font-size: 1rem; transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur) var(--ease);
}
.input::placeholder, .textarea::placeholder { color: var(--dim); }
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.textarea { resize: vertical; min-height: 130px; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%239AA7BD' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.field[data-invalid="true"] .input, .field[data-invalid="true"] .textarea, .field[data-invalid="true"] .select { border-color: var(--warn); }
.field__error { font-size: 0.8rem; color: var(--warn); display: none; }
.field[data-invalid="true"] .field__error { display: block; }
.form__note { font-size: 0.85rem; color: var(--dim); }
.form-success {
  display: none; text-align: center; padding: var(--s7);
  border: 1px solid var(--accent-line); background: var(--accent-soft); border-radius: var(--r-lg);
}
.form-success[data-active="true"] { display: block; }
.form-success svg { width: 44px; height: 44px; stroke: var(--accent); margin: 0 auto var(--s4); }

/* --------------------------------------------------------------- Pricing */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s5); align-items: start; }
@media (max-width: 900px) { .tiers { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; } }
.tier { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s6); display: flex; flex-direction: column; }
.tier--featured { border-color: var(--accent-line); box-shadow: var(--glow); }
.tier__name { font-family: var(--font-mono); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--accent); }
.tier__price { font-family: var(--font-display); font-weight: 600; font-size: 2.6rem; letter-spacing: -0.03em; margin-top: var(--s4); line-height: 1; }
.tier__price .per { font-size: 0.9rem; color: var(--dim); font-weight: 400; font-family: var(--font-body); }
.tier__desc { color: var(--muted); margin-top: var(--s3); font-size: 0.95rem; min-height: 3em; }
.tier__list { margin: var(--s5) 0 var(--s6); display: grid; gap: var(--s3); }
.tier__list li { display: flex; gap: var(--s3); align-items: flex-start; color: var(--muted); font-size: 0.95rem; }
.tier__list li svg { flex: none; width: 18px; height: 18px; stroke: var(--accent); margin-top: 2px; }
.tier .btn { margin-top: auto; }

/* ----------------------------------------------------------------- CTA band */
.cta-band {
  position: relative; overflow: hidden; text-align: center;
  background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--r-xl);
  padding: clamp(40px, 6vw, 80px);
}
.cta-band h2 { max-width: 18ch; margin-inline: auto; }
.cta-band p { max-width: 50ch; margin: var(--s4) auto 0; }
.cta-band .cluster { justify-content: center; margin-top: var(--s6); }

/* ----------------------------------------------------------------- Reveal
   Entrance motion is intentionally minimal — content renders immediately so
   it is robust without JS and screenshots cleanly. .reveal / data-delay are
   retained as inert hooks so page markup stays declarative and consistent. */
.reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .tl-draw { animation: none !important; stroke-dashoffset: 0 !important; }
  .bar, .statbar__fill, .gauge__value { transition: none; }
  * { scroll-behavior: auto !important; }
}

/* -------------------------------------------------------------- Utilities */
.mt-0 { margin-top: 0; } .mt-3 { margin-top: var(--s3); } .mt-4 { margin-top: var(--s4); }
.mt-5 { margin-top: var(--s5); } .mt-6 { margin-top: var(--s6); } .mt-7 { margin-top: var(--s7); }
.full { width: 100%; } .nowrap { white-space: nowrap; }
.hide-mobile { } @media (max-width: 680px) { .hide-mobile { display: none !important; } }

/* ----------------------------------------------- Pipeline (the signature)
   A continuous accent line drawn through the delivery stages. The literal
   "throughline". Horizontal on desktop, vertical rail on mobile. */
.pipeline { position: relative; }
.pipeline__track { display: grid; grid-template-columns: repeat(5, 1fr); position: relative; }
.pipeline__track::before {
  content: ''; position: absolute; left: 10%; right: 10%; top: 12px; height: 2px;
  background: linear-gradient(90deg, var(--accent-line), var(--accent) 50%, var(--accent-line));
}
.pipeline__stage { position: relative; display: flex; flex-direction: column; align-items: center; gap: var(--s2); text-align: center; }
.pipeline__node {
  position: relative; z-index: 1; width: 26px; height: 26px; border-radius: 50%;
  background: var(--ink); border: 2px solid var(--accent); display: grid; place-items: center;
}
.pipeline__node::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.pipeline__txt { display: flex; flex-direction: column; gap: 3px; align-items: center; }
.pipeline__name { font-family: var(--font-mono); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text); }
.pipeline__metric { font-size: 0.8rem; color: var(--dim); }
@media (max-width: 680px) {
  .pipeline__track { grid-template-columns: 1fr; }
  .pipeline__track::before { left: 12px; right: auto; top: 12px; bottom: 12px; width: 2px; height: auto; background: linear-gradient(180deg, var(--accent-line), var(--accent) 50%, var(--accent-line)); }
  .pipeline__stage { flex-direction: row; align-items: center; gap: var(--s4); text-align: left; padding: var(--s3) 0; }
  .pipeline__txt { align-items: flex-start; }
}
