/* ==================================================================
   Token override for the pages that predate v2 (demos, case study,
   concepts). Those pages define their own :root in an inline <style>;
   this file is linked AFTER it, so on equal specificity it wins and
   repaints them without touching their layout.

   It is a superset of the v2 tokens: it also carries names only the
   older pages use (--bg-3, --accent-glow, --ok-tint, the radii, the
   extra easings), so nothing falls back to an unset variable.
   ================================================================== */

:root {
  --bg:           #0a0a0b;
  --bg-2:         #101013;
  --bg-3:         #16161a;
  --card:         #141418;
  --ink:          #f2f0ed;
  --ink-soft:     #a9a7a3;
  --ink-faint:    #8e8c88;
  --accent:       #6d93ff;
  --accent-deep:  #3f68d6;
  --accent-lift:  #94b0ff;
  --accent-tint:  rgba(109, 147, 255, 0.08);
  --accent-edge:  rgba(109, 147, 255, 0.30);
  --accent-glow:  rgba(109, 147, 255, 0.14);
  --line:         #1d1d22;
  --line-strong:  #2c2c33;
  --field-line:   #6f6f78;
  --ok:           #4fb07c;
  --ok-tint:      rgba(79, 176, 124, 0.12);
  --nav-bg:       rgba(10, 10, 11, 0.86);
  --on-accent:    #0a0a0b;
  --mono:         'Geist', system-ui, -apple-system, Segoe UI, sans-serif;
  --serif:        'Newsreader', Georgia, serif;
  --sans:         'Geist', system-ui, -apple-system, Segoe UI, sans-serif;
}

/* The older pages set font-family with literals rather than tokens, and
   they hardcode a handful of colours outside :root. These catch the ones
   that would otherwise stay espresso. */
body, button, input, textarea, select { font-family: 'Geist', system-ui, -apple-system, Segoe UI, sans-serif; }
h1, h2, h3, h4, .serif { font-family: 'Newsreader', Georgia, serif; }

/* Dark label on the light cobalt fill, matching the homepage. */
.btn-primary, .cform-btn { color: var(--on-accent); }

/* Nav normalisation. The older pages set the nav in uppercase with wide
   tracking; the v2 nav is sentence case. Same component, two voices, so
   these bring the legacy pages into line without touching their markup. */
.nav-brand {
  font-family: 'Newsreader', Georgia, serif !important;
  font-size: 1.02rem; font-weight: 400;
  text-transform: none !important; letter-spacing: normal !important;
  color: var(--ink);
}
.nav-links { align-items: stretch; height: 100%; }
.nav-links a {
  font-family: 'Geist', system-ui, sans-serif !important;
  font-size: 0.88rem !important; font-weight: 450;
  text-transform: none !important; letter-spacing: 0.005em !important;
  display: inline-flex; align-items: center; align-self: stretch;
}
.nav-links a.btn { align-self: center; }
.nav-links .btn {
  padding: 10px 20px; min-height: 40px; font-size: 0.84rem !important;
  border-radius: 2px; border: 1px solid var(--line-strong); color: var(--ink);
  display: inline-flex; align-items: center; text-decoration: none;
}
.nav-links .btn:hover { border-color: var(--accent); color: var(--accent-lift); }
.mobile-menu a {
  font-family: 'Newsreader', Georgia, serif !important;
  text-transform: none !important; letter-spacing: 0 !important;
}

/* ---- One nav breakpoint --------------------------------------------
   These pages collapsed the nav at 720px while the v2 pages collapse at
   900px, so between 721 and 900 the same site showed a full nav on five
   pages and a hamburger on three. These rules fully determine the state at
   every width, so the 720px rules in each page no longer decide anything. */
@media (max-width: 900px) {
  .nav-links  { display: none !important; }
  .nav-toggle { display: inline-flex !important; }
  /* Each page still carries `@media (min-width: 721px){.mobile-menu{display:
     none !important}}`. Between 721 and 900 that beat `.mobile-menu.is-open`,
     so the hamburger showed and opening it did nothing. Higher specificity
     plus !important, so the open state wins back its own window. */
  .mobile-menu.is-open { display: flex !important; }
}
@media (min-width: 901px) {
  .nav-links   { display: flex !important; }
  .nav-toggle  { display: none !important; }
  .mobile-menu { display: none !important; }
}

/* Display weight. The older pages set headings at 600, which in Newsreader is
   visibly heavier than the 300 the new pages use. Left alone, the demos would
   read as a chunkier relative of the homepage. */
h1, h2 { font-weight: 300; letter-spacing: -0.02em; }
h3 { font-weight: 400; }


/* ==================================================================
   Review fixes, 2026-09-20.
   Everything below repairs a defect the v2 pages do not have, on the
   five pages that predate v2. tokens.css is linked after each page's
   own inline <style>, so equal specificity wins here.
   ================================================================== */

/* ---- Nav parity --------------------------------------------------
   These pages ran a 64px nav on a hardcoded rgba(14, 11, 8, .86), which
   is espresso, while the v2 pages ran 68px on off-black. The bar changed
   height and colour on every crossing between the two halves. Both are
   now fixed at source in each page, so there is nothing to override
   here; only the wordmark tracking is corrected below, in the rule that
   set it in the first place. */

/* The legacy nav puts its 1px border outside a 68px .nav-inner, so the
   bar rendered 69px against the v2 pages' 68px. Matching v2's box model:
   the height belongs to nav, and the border sits inside it. */
nav { height: var(--nav-h); }
.nav-inner { height: 100%; }
.nav-brand { display: inline-flex; align-items: center; height: 100%; }

/* ---- One accent, one error colour, no neon -----------------------
   --alert was #f0a898, a peach left over from the espresso palette, for
   the same job site.css gives to --accent-lift. --accent-glow drove
   fourteen zero-offset neon glows. --ease-spring overshot to 1.56,
   which is a bounce, on a site whose other half never bounces. */
:root {
  --alert:       #94b0ff;
  --alert-tint:  rgba(109, 147, 255, 0.14);
  --alert-edge:  rgba(109, 147, 255, 0.45);
  --accent-glow: rgba(109, 147, 255, 0.06);
  --ease-spring: cubic-bezier(0.23, 1, 0.32, 1);
}

/* ---- Press feedback ----------------------------------------------
   Not one :active state existed on any of these five pages, which are
   the only ones a visitor actually operates. No transition is added:
   .btn already animates transform, and the in-demo buttons are clicked
   repeatedly while driving the demo, where instant is the right answer. */
.btn:active, .cform-btn:active, .tlink:active, button:active {
  transform: scale(0.97);
}

/* ---- Reveal timing ------------------------------------------------
   900ms against the v2 pages' 500ms, staggered at 100ms against a
   30 to 80ms band. */
.anim .reveal { transition-duration: 0.5s !important; }
.anim .reveal[data-d="1"] { transition-delay: 0.06s !important; }
.anim .reveal[data-d="2"] { transition-delay: 0.12s !important; }

/* ---- Tap targets --------------------------------------------------
   Breadcrumb links measured 14px tall and footer links 25.9px, against
   a 24px AA minimum and the 44px this site sets for itself. */
.crumb a, .footer-inner a, .foot-links a, footer a {
  display: inline-block; padding-block: 13px;
}
.skip-link { padding: 14px 20px; }

/* ---- Legibility floor ---------------------------------------------
   169 pieces of functional text below 11px, from 10.88px down to
   8.32px, none of it decorative: form labels, breadcrumbs, step
   markers, status chips, every footer link. Raised to an 11px floor.
   The v2 pages had none of this and do not link this file.
   .crumb, .footer-inner, .demo-meta, .figure .l and .pullquote span are NOT in this list: those three
   were fixed at source in each page, at a larger size than this floor, so
   listing them here would shrink them back. */
.eyebrow, .honesty-mark, .demo-badge, .card-visual-flow, .panel-title, .panel-sub,
.mock-tag, .lr-form label, .lr-note, .clock-lbl, .rule-id, .rule-test, .rule-flag,
.phone-date, .phone-idle, .notif-src, .notif-ago, .notif-cta, .dispatch-row,
.assigned-lbl, .assigned-desk, .bcol-av, .bcol-name, .bcol-desk, .bcol-count,
.lead-card-meta, .ltag, .board-hint, .prod-card h3, .demo-note, .queue-lbl, .mail-addr,
.mail-time, .mail-wait, .chip, .stat-lbl, .now-lbl, .sig-id, .sig-test, .sig-flag,
.verdict-lbl, .draft-flag, .compose-state, .cm-row, .approve p, .step-num, .step-lbl,
.pf-form label, .doc-note, .doc-state, .doc-btn, .file-ico, .file-name, .file-size,
.file-done, .slot-who, .finish-lbl, .owner-av, .owner-desk, .tr-state, .log-row,
.spec-tag {
  font-size: 0.6875rem !important;
}
