/* Self-hosted fonts. The brief deferred this until "third-party requests
   become a concern" — they became the concern: two cross-origin round trips
   (googleapis for the CSS, then gstatic for the file) before text could paint,
   which made mobile LCP bimodal at 1.59s or 2.80s and caused the font-swap
   layout shift on short pages. Both are variable fonts, latin subset, so the
   whole type system is two files served from our own origin.
   font-display: swap keeps text visible immediately; preload in base.njk means
   the real font usually wins the race anyway. */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url('/assets/fonts/inter-latin-var.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('/assets/fonts/jetbrains-mono-latin-var.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --bg:        #FBFBFD;
    --surface:   #FFFFFF;
    --surface-2: #F5F5F7;
    --surface-3: #EEEEF1;
    --border:    #E5E5EA;
    --border-2:  #D2D2D7;
    --hairline:  #F0F0F2;

    --text:       #1D1D1F;
    --text-2:     #424245;
    --text-muted: #5E5E63;   /* was #6E6E73. Moved to keep a visible step below --text-dim (#707075) after that token was darkened for AA; two indistinguishable tokens is a broken scale, not a preserved one. */
    --text-dim:   #707075;   /* was #86868B: 3.33 on --surface-2, under AA. Solved for surface-2, the darkest ground it sits on; white and --bg clear automatically. */

    --brand:       #0066CC;
    --brand-bright:#0077ED;
    --brand-soft:  #E5F1FB;
    --brand-deep:  #003D7A;

    --aurora-cyan:   #5AC8FA;
    --aurora-purple: #AF52DE;
    --aurora-mint:   #34C759;
    --aurora-rose:   #FF9F86;

    --positive:      #167B4D;   /* was #1A8754: 3.86 on --positive-soft, under AA. The step-down chart keeps #1A8754 as a literal and is untouched. */
    --positive-soft: #DDF2E5;
    --warning:       #8A4A07;   /* was #B25E09: 3.99 on --warning-soft, under AA. */
    --warning-soft:  #FCEBD3;
    --danger:        #9A2716;   /* was #C7321F: 4.31 on --danger-soft, under AA. */
    --danger-soft:   #FCE0DB;

    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
    --mono: 'JetBrains Mono', 'SF Mono', ui-monospace, monospace;

    --r:    14px;
    --r-sm: 10px;
    --r-lg: 20px;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.04);
    --shadow:    0 1px 3px rgba(0,0,0,.04), 0 8px 24px -12px rgba(0,0,0,.10);
    --shadow-lg: 0 2px 6px rgba(0,0,0,.05), 0 24px 56px -24px rgba(0,0,0,.16);
  }

  * { box-sizing: border-box; }

  body {
    margin: 0; background: var(--bg); color: var(--text);
    font-family: var(--font); font-size: 16px; line-height: 1.55;
    -webkit-font-smoothing: antialiased; letter-spacing: -0.011em;
  }

  .wrap { max-width: 1120px; margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 2.5rem); }

  a { color: var(--brand); text-decoration: none; }
  a:hover { color: var(--brand-bright); }
  a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px;
  }

  /* ---------- atmosphere ---------- */
  .aurora { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
  .blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .42; }
  .blob.a { width: 620px; height: 620px; top: -220px; left: -120px;
    background: radial-gradient(circle, var(--aurora-cyan) 0%, transparent 68%); }
  .blob.b { width: 560px; height: 560px; top: -160px; right: -140px;
    background: radial-gradient(circle, var(--aurora-purple) 0%, transparent 68%); opacity: .3; }
  .blob.c { width: 520px; height: 520px; top: 180px; left: 42%;
    background: radial-gradient(circle, var(--brand) 0%, transparent 70%); opacity: .22; }
  .grain {
    position: absolute; inset: 0; pointer-events: none; z-index: 1; opacity: .5;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/><feColorMatrix type='saturate' values='0'/></filter><rect width='200' height='200' filter='url(%23n)' opacity='0.28'/></svg>");
  }

  /* ---------- eyebrow ---------- */
  .eyebrow {
    font-family: var(--mono); font-size: 11px; font-weight: 500;
    letter-spacing: .12em; color: var(--brand); margin: 0;
    display: inline-flex; align-items: center; gap: 9px;
  }
  .eyebrow::before {
    content: ""; width: 6px; height: 6px; border-radius: 50%;
    background: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); flex: none;
  }

  .pill {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 999px; padding: 7px 15px 7px 12px;
    font-size: 13px; color: var(--text-2); box-shadow: var(--shadow-sm);
  }
  .pill::before {
    content: ""; width: 6px; height: 6px; border-radius: 50%;
    background: var(--brand); box-shadow: 0 0 6px var(--brand); flex: none;
  }

  /* ---------- type ---------- */
  h1 {
    font-size: clamp(42px, 6.4vw, 80px); line-height: 1.02; font-weight: 800;
    letter-spacing: -0.035em; margin: 22px 0 0; max-width: 17ch; text-wrap: balance;
  }
  .grad {
    background: linear-gradient(100deg, var(--brand) 0%, var(--aurora-cyan) 42%, var(--aurora-purple) 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
  }
  h2 {
    font-size: clamp(30px, 3.8vw, 48px); line-height: 1.08; font-weight: 700;
    letter-spacing: -0.03em; margin: 14px 0 0; max-width: 20ch; text-wrap: balance;
  }
  h3 { font-size: 19px; line-height: 1.25; font-weight: 600; letter-spacing: -0.02em; margin: 0; }
  .lede { font-size: clamp(17px, 1.6vw, 19px); line-height: 1.58; color: var(--text-2); margin: 20px 0 0; max-width: 56ch; }
  p { margin: 0; }

  /* ---------- nav ---------- */
  nav { position: relative; z-index: 3; border-bottom: 1px solid var(--hairline); }
  .nav-in { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 0; }
  .brandmark { display: flex; align-items: center; gap: 11px; font-weight: 600; font-size: 17px; letter-spacing: -0.025em; color: var(--text); }
  .mark {
    width: 26px; height: 26px; border-radius: 7px; flex: none;
    background: linear-gradient(140deg, var(--brand-bright), var(--brand-deep));
    box-shadow: 0 5px 14px -5px var(--brand);
    display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 12px; letter-spacing: 0;
  }
  .nav-links { display: flex; align-items: center; gap: 26px; font-size: 14px; }
  .nav-links a { color: var(--text-muted); }
  .nav-links a:hover { color: var(--text); }
  .btn {
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--brand); color: #fff !important; border: 1px solid var(--brand);
    border-radius: 10px; padding: 11px 20px; font-size: 15px; font-weight: 500;
    box-shadow: 0 6px 18px -8px rgba(0,102,204,.65); cursor: pointer;
    font-family: var(--font); letter-spacing: -0.01em;
  }
  .btn:hover { background: var(--brand-bright); border-color: var(--brand-bright); color: #fff !important; }
  .btn.sm { padding: 8px 15px; font-size: 14px; border-radius: 9px; }
  .btn.ghost {
    background: var(--surface); color: var(--text) !important; border-color: var(--border-2);
    box-shadow: var(--shadow-sm);
  }
  .btn.ghost:hover { background: var(--surface-2); color: var(--text) !important; border-color: var(--border-2); }
  @media (max-width: 860px) { .nav-links a:not(.btn) { display: none; } }

  /* ---------- hero ---------- */
  .hero { position: relative; overflow: hidden; padding: clamp(56px, 9vw, 108px) 0 clamp(48px, 7vw, 88px); }
  .hero .wrap { position: relative; z-index: 2; }
  .hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
  .facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(212px, 1fr)); gap: 14px; margin-top: 52px; }
  .fact {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--r);
    padding: 17px 19px; box-shadow: var(--shadow-sm);
  }
  .fact-k { font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; color: var(--text-dim); text-transform: uppercase; }
  .fact-v { font-size: 15px; font-weight: 600; margin-top: 7px; letter-spacing: -0.02em; }

  /* ---------- sections ---------- */
  section { padding: clamp(56px, 7.5vw, 104px) 0; border-top: 1px solid var(--hairline); position: relative; }
  section.tint { background: var(--surface-2); }
  .head { max-width: 62ch; margin-bottom: 44px; }

  .cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(268px, 1fr)); gap: 18px; }
  .card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--r);
    padding: 26px 24px; box-shadow: var(--shadow-sm);
    display: flex; flex-direction: column; gap: 11px;
    transition: box-shadow .18s ease, transform .18s ease;
  }
  .card:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
  .card p { font-size: 14.5px; color: var(--text-2); }
  .card .q { font-size: 19px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.3; }
  .card .note { font-size: 13.5px; color: var(--text-dim); }

  /* ---------- tracks ---------- */
  .track {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--r);
    padding: 26px 26px; box-shadow: var(--shadow-sm); display: grid;
    grid-template-columns: 46px 1fr; gap: 0 20px; align-items: start;
  }
  .track + .track { margin-top: 14px; }
  .track-n {
    font-family: var(--mono); font-size: 11px; font-weight: 500; color: #fff;
    background: linear-gradient(140deg, var(--brand-bright), var(--brand-deep));
    border-radius: 8px; width: 34px; height: 34px; display: grid; place-items: center;
    box-shadow: 0 5px 14px -6px var(--brand);
  }
  .track-b { display: flex; flex-direction: column; gap: 10px; }
  .track-b p { font-size: 15px; color: var(--text-2); max-width: 72ch; }
  .outcome {
    display: inline-flex; align-items: center; gap: 8px; align-self: flex-start;
    background: var(--positive-soft); color: var(--positive);
    border-radius: 999px; padding: 6px 13px; font-size: 13px; font-weight: 500;
  }
  .outcome::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--positive); flex: none; }
  @media (max-width: 620px) { .track { grid-template-columns: 1fr; gap: 14px; } }

  /* ---------- phases ---------- */
  .phases { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
  .phase { position: relative; }
  .phase.now { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft), var(--shadow); }
  .phase-step { font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-dim); }
  .phase-name { font-size: 21px; font-weight: 700; letter-spacing: -0.025em; }
  .phase-price { font-size: 26px; font-weight: 700; letter-spacing: -0.03em; color: var(--brand); font-variant-numeric: tabular-nums; }
  .phase-term { font-size: 13px; color: var(--text-dim); }

  /* ---------- chart ---------- */
  .chart-card {
    margin-top: 22px; background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--r-lg); padding: 28px clamp(18px, 3vw, 32px) 24px; box-shadow: var(--shadow);
  }
  .chart-title { font-size: clamp(20px, 2.4vw, 27px); font-weight: 700; letter-spacing: -0.028em; line-height: 1.2; margin: 0; max-width: 26ch; }
  .chart-sub { font-size: 14px; color: var(--text-muted); margin: 9px 0 0; max-width: 62ch; }
  .chart-scroll { overflow-x: auto; margin-top: 22px; }
  .chart-scroll svg { display: block; min-width: 540px; width: 100%; height: auto; }
  .band { transition: opacity .15s ease; }
  .chart-scroll g.band-group:hover .band { opacity: .85; }

  .stepnote {
    margin-top: 20px; display: flex; gap: 14px; align-items: flex-start;
    background: var(--brand-soft); border: 1px solid #CFE4F7; border-radius: var(--r);
    padding: 18px 20px;
  }
  .stepnote .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); flex: none; margin-top: 7px; box-shadow: 0 0 8px var(--brand); }
  .stepnote p { font-size: 14.5px; color: var(--text-2); }
  .stepnote b { color: var(--text); font-weight: 600; }

  /* ---------- terms ---------- */
  .terms { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
  .term { display: flex; flex-direction: column; gap: 9px; }
  .term .tag {
    font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase;
    color: var(--brand); background: var(--brand-soft); border-radius: 6px;
    padding: 4px 9px; align-self: flex-start;
  }
  .term p { font-size: 14.5px; color: var(--text-2); }

  /* ---------- about ---------- */
  .about { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 44px; align-items: start; }
  @media (max-width: 900px) { .about { grid-template-columns: 1fr; gap: 28px; } }
  /* while the portrait is absent: single column, held to a readable measure.
     Remove .about-solo from the markup when the photograph goes in. */
  .about-solo { grid-template-columns: 1fr; max-width: 760px; }
  .about p { font-size: 16.5px; color: var(--text-2); }
  .about p + p { margin-top: 16px; }
  .about strong { color: var(--text); font-weight: 600; }
  .portrait {
    aspect-ratio: 4/5; border-radius: var(--r-lg); border: 1px solid var(--border);
    background: linear-gradient(150deg, var(--surface-3), var(--brand-soft));
    display: grid; place-items: center; text-align: center; padding: 20px;
    font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-dim);
    box-shadow: var(--shadow);
  }

  /* ---------- placeholders (build-time only) ---------- */
  .ph {
    border: 1.5px dashed var(--border-2); border-radius: var(--r);
    background:
      repeating-linear-gradient(45deg, transparent 0 11px, rgba(0,102,204,.028) 11px 22px),
      var(--surface-2);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center; gap: 9px; padding: 30px 22px;
  }
  .ph-action {
    font-family: var(--mono); font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase;
    border-radius: 5px; padding: 4px 9px; font-weight: 500;
  }
  .ph-action.replace { color: var(--brand); background: var(--brand-soft); }
  .ph-action.remove  { color: var(--warning); background: var(--warning-soft); }
  .ph-title { font-size: 15.5px; font-weight: 600; color: var(--text-2); letter-spacing: -0.015em; max-width: 32ch; line-height: 1.35; }
  .ph-spec { font-family: var(--mono); font-size: 11px; color: var(--text-dim); letter-spacing: .04em; }
  .ph-when { font-size: 12.5px; color: var(--text-dim); max-width: 42ch; line-height: 1.5; }
  .ph.wide  { aspect-ratio: 16/9; }
  .ph.sq    { aspect-ratio: 4/5; }
  .ph.chart { aspect-ratio: 4/3; min-height: 210px; }
  @media (max-width: 620px) { .ph.wide, .ph.chart { aspect-ratio: auto; min-height: 190px; } }

  /* ---------- form ---------- */
  .start { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 48px; align-items: start; }
  @media (max-width: 900px) { .start { grid-template-columns: 1fr; gap: 30px; } }
  form {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
    padding: 28px; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; gap: 15px;
  }
  .field { display: flex; flex-direction: column; gap: 6px; }
  label { font-size: 13px; font-weight: 500; color: var(--text-2); }
  input, textarea {
    font-family: var(--font); font-size: 15px; color: var(--text); background: var(--surface-2);
    border: 1px solid var(--border); border-radius: var(--r-sm); padding: 11px 13px; width: 100%;
    letter-spacing: -0.01em;
  }
  input:focus, textarea:focus { background: var(--surface); border-color: var(--brand); }
  textarea { min-height: 88px; resize: vertical; }
  .fine { font-size: 12.5px; color: var(--text-dim); }
  .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
  @media (max-width: 520px) { .row2 { grid-template-columns: 1fr; } }

  /* honeypot: off-screen, never focusable, invisible to the user */
  .hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

  .form-err { display: none; color: var(--danger); font-size: 14px; margin-top: 12px; }
  .form-err.show { display: block; }

  /* ---------- footer ---------- */
  footer { border-top: 1px solid var(--hairline); background: var(--surface-2); padding: 40px 0 52px; }
  .foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px 40px; }
  .foot p { font-size: 13.5px; color: var(--text-muted); line-height: 1.85; }
  .foot .mono { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; color: var(--text-dim); text-transform: uppercase; }

  /* ---------- subpage headings ---------- */
  h1.page-title {
    font-size: clamp(30px, 4vw, 44px); line-height: 1.08; font-weight: 800;
    letter-spacing: -0.03em; margin: 16px 0 0;
  }

  /* ---------- severity chips (audit) ---------- */
  .sev {
    font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase;
    padding: 3px 8px; border-radius: 4px; align-self: flex-start; font-weight: 500;
  }
  .sev.critical { background: var(--danger-soft);  color: var(--danger); }
  .sev.high     { background: var(--warning-soft); color: var(--warning); }

  .audit-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; }
  .audit-item { display: flex; flex-direction: column; gap: 10px; }
  .audit-item .label { font-size: 18px; font-weight: 600; letter-spacing: -0.02em; }
  .audit-item .k {
    font-family: var(--mono); font-size: 10px; letter-spacing: .1em;
    text-transform: uppercase; color: var(--text-dim); display: block; margin-bottom: 3px;
  }
  .audit-item p { margin: 0; font-size: 14.5px; color: var(--text-2); line-height: 1.55; }

  /* ---------- mobile nav ---------- */
  .nav-mobile { display: none; position: relative; }
  .nav-mobile summary {
    list-style: none; cursor: pointer; display: flex; flex-direction: column;
    justify-content: center; gap: 4px; width: 40px; height: 40px; padding: 9px;
    border: 1px solid var(--border); border-radius: 9px; background: var(--surface);
  }
  .nav-mobile summary::-webkit-details-marker { display: none; }
  .nav-mobile summary span { display: block; height: 1.5px; background: var(--text-2); border-radius: 2px; }
  .nav-drawer {
    position: absolute; right: 0; top: calc(100% + 8px); z-index: 40;
    display: flex; flex-direction: column; gap: 4px; min-width: 190px;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--r); padding: 10px; box-shadow: var(--shadow-lg);
  }
  .nav-drawer a { padding: 9px 11px; border-radius: var(--r-sm); font-size: 15px; color: var(--text-2); }
  .nav-drawer a:hover { background: var(--surface-2); color: var(--text); }
  .nav-drawer a.btn { justify-content: center; margin-top: 4px; color: #fff !important; }
  @media (max-width: 860px) { .nav-mobile { display: block; } }
  /* the primary CTA stays visible at every width; the burger carries the rest */
  @media (max-width: 860px) {
    .nav-in { gap: 10px; }
    .nav-links { gap: 0; }
    .nav-links .btn.sm { padding: 8px 13px; font-size: 13.5px; }
  }

  /* Links inside prose must be distinguishable without relying on colour alone
     (WCAG 1.4.1). Nav items and buttons are exempt: position and shape already
     distinguish them. */
  p a:not(.btn) { text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
  p a:not(.btn):hover { text-decoration-thickness: 2px; }

  /* The step-down chart's Growth colour, driven by the token rather than an SVG
     literal. Plumbing only: the value it resolves to is --positive, so the chart
     renders as specced and can never diverge from the palette again. */
  .c-pos-fill   { fill: var(--positive); }
  .c-pos-stroke { stroke: var(--positive); }

  /* ---------- audit: interactive layer ---------- */
  /* Everything in .js-only stays hidden until audit.js runs, so with JavaScript
     off the page degrades to the static checklist rather than showing dead
     controls. */
  .js-only { display: none; }
  .js .js-only { display: block; }

  .audit-bar {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    flex-wrap: wrap; margin-bottom: 20px; padding: 12px 16px;
    background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r);
  }
  .js .audit-bar { display: flex; }
  .audit-progress { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; color: var(--text-2); }

  ol.audit-grid { list-style: none; padding: 0; margin: 0; }

  .answers { border: 0; padding: 14px 0 0; margin: 4px 0 0; border-top: 1px solid var(--hairline); }
  .js .answers { display: block; }
  .answers legend { padding: 0; }
  .answer { display: flex; align-items: center; gap: 9px; padding: 5px 0; cursor: pointer; font-size: 14.5px; color: var(--text-2); }
  .answer input { accent-color: var(--brand); width: 16px; height: 16px; flex: none; margin: 0; }
  .answer:hover { color: var(--text); }

  .results-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 40px 0 18px; }
  .results-head h2 { font-size: 24px; letter-spacing: -0.025em; margin: 0; }
  .result-group { margin-bottom: 26px; }
  .result-group h3 { display: flex; align-items: center; gap: 10px; font-size: 17px; letter-spacing: -0.02em; margin: 0 0 4px; }
  .rg-count {
    font-family: var(--mono); font-size: 11px; background: var(--surface-3);
    color: var(--text-2); border-radius: 999px; padding: 2px 9px; font-weight: 500;
  }
  .rg-blurb { font-size: 14px; color: var(--text-muted); margin: 0 0 12px; }
  .result-item {
    border-left: 2px solid var(--border-2); padding: 2px 0 2px 15px; margin-bottom: 14px;
  }
  .ri-label { font-weight: 600; font-size: 15.5px; letter-spacing: -0.015em; margin-right: 9px; }
  .ri-state {
    font-family: var(--mono); font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase;
    padding: 2px 7px; border-radius: 3px;
  }
  .ri-state.vendor { background: var(--danger-soft); color: var(--danger); }
  .ri-state.unsure { background: var(--warning-soft); color: var(--warning); }
  .result-item p { font-size: 14.5px; color: var(--text-2); margin: 7px 0 0; line-height: 1.55; }
  .result-item p.ri-action { color: var(--text); }
  .results-none { font-size: 15px; color: var(--text-2); }
  .audit-form { margin-top: 20px; }

  /* ---------- print: the results ledger only ---------- */
  @media print {
    nav, footer, .audit-bar, .audit-form, #audit-list, .head .lede,
    #audit-print, .no-print .btn, .hero-actions { display: none !important; }
    .no-print h2, .no-print p { display: none !important; }
    body { background: #fff; }
    .results-head { margin-top: 0; }
    .result-group, .result-item { break-inside: avoid; }
    a[href]::after { content: ""; }
  }

  /* ---------- audit: question zero ---------- */
  .gate { margin-bottom: 20px; border-left: 3px solid var(--brand); }
  .gate-q { font-size: 21px; font-weight: 700; letter-spacing: -0.025em; margin: 8px 0 0; line-height: 1.25; }
  .gate-help { font-size: 14.5px; color: var(--text-2); margin: 9px 0 0; max-width: 62ch; }
  .result-gate {
    border: 1px solid var(--border); border-left: 3px solid var(--brand);
    background: var(--surface); border-radius: var(--r); padding: 18px 20px; margin-bottom: 24px;
  }
  .result-gate h3 { margin: 0 0 6px; font-size: 16px; letter-spacing: -0.02em; }
  .result-gate p { margin: 0; font-size: 14.5px; color: var(--text-2); line-height: 1.55; }
  .result-gate.vendor { border-left-color: var(--danger); }
  .result-gate.unknown { border-left-color: var(--warning); }

  /* ---------- audit: before you sign ---------- */
  .beforesign { margin-top: 44px; padding-top: 34px; border-top: 1px solid var(--hairline); max-width: 760px; }
  .beforesign h2 { font-size: 24px; letter-spacing: -0.025em; margin: 0 0 12px; }
  .bys-list { list-style: none; counter-reset: bys; padding: 0; margin: 26px 0 0; }
  .bys-list li { counter-increment: bys; display: grid; grid-template-columns: 28px 1fr; gap: 12px; margin-bottom: 20px; }
  .bys-list li::before {
    content: counter(bys, decimal-leading-zero); font-family: var(--mono); font-size: 11px;
    color: var(--brand); padding-top: 4px;
  }
  .bys-ask { margin: 0; font-size: 16.5px; font-weight: 600; letter-spacing: -0.015em; color: var(--text); }
  .bys-why { margin: 5px 0 0; font-size: 14.5px; color: var(--text-2); }
  .bys-closing {
    margin: 26px 0 0; padding: 16px 18px; background: var(--surface-2);
    border-radius: var(--r); font-size: 15px; color: var(--text-2); line-height: 1.6;
  }

  /* ---------- subpage prose ---------- */
  /* base h2 caps at 20ch for display headings; subheads need the full measure */
  h2.sub { font-size: 21px; font-weight: 700; letter-spacing: -0.025em; margin: 38px 0 12px; max-width: 46ch; }
  .own-list { padding-left: 1.1em; margin: 0; }
  .own-list li { margin-bottom: 11px; color: var(--text-2); font-size: 16px; line-height: 1.6; }
  .own-list strong { color: var(--text); font-weight: 600; }
  .page-cta { border-top: 1px solid var(--hairline); margin-top: 40px; padding-top: 26px; }
  .page-cta p { color: var(--text-2); margin: 0 0 4px; }

  /* the step-down callout, reused on subpages */
  .stepnote {
    display: grid; grid-template-columns: 10px 1fr; gap: 14px; align-items: start;
    background: var(--brand-soft); border-radius: var(--r); padding: 20px 22px; margin: 30px 0;
  }
  .stepnote-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); margin-top: 8px; }
  .stepnote p { margin: 0; font-size: 15.5px; color: var(--text-2); line-height: 1.6; }
  .stepnote strong { color: var(--text); font-weight: 600; }

  /* On /exit the six tracks are page sections, so they are h2 semantically.
     Base h2 is display-sized; match the homepage's track heading instead. */
  .track-b h2 { font-size: 19px; line-height: 1.25; font-weight: 600; letter-spacing: -0.02em; margin: 0; max-width: none; }
  .term h3 { font-size: 16.5px; }

  /* Base p has margin:0 and the homepage supplies spacing per component. Subpage
     prose has no such component, so consecutive paragraphs collided. */
  .prose p { font-size: 16px; line-height: 1.62; color: var(--text-2); max-width: 72ch; }
  .prose p + p { margin-top: 16px; }
  .prose strong { color: var(--text); font-weight: 600; }

  /* Same discipline as the pricing chart's "Illustrated at the mid tier":
     an illustrative figure says so, in the frame, not in a footnote. */
  /* The placeholder this replaced carried an inline margin-top:38px, which was
     lost when add-images.py swapped the whole block. Without it the screenshot
     sits flush against the fact cards. */
  .hero-figure { margin: 38px 0 0; }
  .figure-note {
    font-size: 13px; color: var(--text-muted); margin-top: 10px;
    max-width: 62ch; line-height: 1.5;
  }

  /* ---------- legal pages ---------- */
  .legal-date { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); margin: 14px 0 0; }
  .legal h2 { font-size: 18px; font-weight: 600; letter-spacing: -0.02em; margin: 34px 0 10px; max-width: none; }
  .legal p, .legal li { font-size: 15.5px; color: var(--text-2); line-height: 1.62; }
  .legal p + p { margin-top: 13px; }
  .legal ul { padding-left: 1.15em; margin: 10px 0 0; }
  .legal li { margin-bottom: 7px; }
  .legal strong { color: var(--text); font-weight: 600; }
  .legal code { font-family: var(--mono); font-size: 13px; background: var(--surface-2); padding: 1px 5px; border-radius: 3px; }

  .audit-disclaimer {
    font-size: 13.5px; color: var(--text-muted); line-height: 1.55;
    max-width: 68ch; margin: 26px 0 0; padding-top: 16px;
    border-top: 1px solid var(--hairline);
  }
  .foot-legal { font-size: 12.5px; }

  /* ---------- the lead journey (homepage, "inside out") ---------- */
  .journey {
    display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px;
    margin-top: 8px;
  }
  .jstep {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--r);
    padding: 18px 16px 16px; display: flex; flex-direction: column; gap: 6px;
    box-shadow: var(--shadow-sm); position: relative;
  }
  /* dotted connector between steps, so the five read as one path */
  .jstep + .jstep::before {
    content: ""; position: absolute; left: -12px; top: 30px; width: 12px; height: 0;
    border-top: 2px dotted var(--brand); opacity: .55;
  }
  .jn {
    font-family: var(--mono); font-size: 12px; font-weight: 500; color: #fff;
    width: 28px; height: 28px; border-radius: 50%; background: var(--brand);
    display: grid; place-items: center; margin-bottom: 6px;
    box-shadow: 0 0 0 4px var(--brand-soft);
  }
  .jt { font-size: 16px; font-weight: 600; letter-spacing: -0.02em; }
  .jd { font-size: 13.5px; color: var(--text-2); line-height: 1.45; }
  .jl {
    font-family: var(--mono); font-size: 10.5px; letter-spacing: .04em; color: var(--danger);
    margin-top: 8px; padding-top: 10px; border-top: 1px dashed var(--border); line-height: 1.45;
  }
  .jstep.is-goal { border-color: var(--positive); box-shadow: 0 0 0 3px var(--positive-soft); }
  .jstep.is-goal .jn { background: var(--positive); box-shadow: 0 0 0 4px var(--positive-soft); }
  .jstep.is-goal .jl { color: var(--text-muted); }
  .journey-note { margin-top: 28px; max-width: 72ch; }
  .journey-note p { font-size: 16px; line-height: 1.62; color: var(--text-2); }
  .journey-note p + p { margin-top: 14px; }
  .journey-note strong { color: var(--text); font-weight: 600; }
  @media (max-width: 860px) {
    .journey { grid-template-columns: 1fr 1fr; }
    .jstep + .jstep::before { display: none; }
    .jstep.is-goal { grid-column: 1 / -1; }
  }
  @media (max-width: 480px) { .journey { grid-template-columns: 1fr; } }


  /* ---------- stat tiles (homepage hero) ----------
     The four facts at a size that reads as confidence rather than a footnote.
     Same numbers, same tokens — only the scale changed. */
  .stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 52px; }
  .stat {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
    padding: 22px 22px 20px; box-shadow: var(--shadow-sm);
  }
  .stat-n {
    font-size: clamp(38px, 4.4vw, 56px); font-weight: 800; letter-spacing: -0.04em; line-height: 1;
    color: var(--brand); display: block;
  }
  .stat-n small { font-size: .5em; font-weight: 600; letter-spacing: -0.02em; margin-left: 2px; }  /* inherits --brand: brand-bright is 4.31 on white */
  .stat-k {
    font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase;
    color: var(--text-dim); margin-top: 10px; display: block;
  }
  .stat-v { font-size: 14.5px; color: var(--text-2); margin-top: 4px; line-height: 1.4; display: block; }
  @media (max-width: 860px) { .stats { grid-template-columns: 1fr 1fr; } }
  @media (max-width: 420px) { .stats { grid-template-columns: 1fr; } }

  /* ---------- the question being asked (homepage, top of #problem) ----------
     A demonstration of the moment, not a fabricated answer. The reply never
     arrives — that's the point. Types on scroll-in; static under reduced motion. */
  .ask {
    max-width: 640px; background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--r-lg); box-shadow: var(--shadow); overflow: hidden; margin: 0 0 18px;
  }
  .ask-bar {
    display: flex; align-items: center; gap: 7px; padding: 11px 16px;
    background: var(--surface-2); border-bottom: 1px solid var(--hairline);
  }
  .ask-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--border-2); }
  .ask-dot:nth-child(1) { background: #FF5F57; } .ask-dot:nth-child(2) { background: #FEBC2E; } .ask-dot:nth-child(3) { background: #28C840; }
  .ask-title { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; color: var(--text-dim); margin-left: 8px; }
  .ask-body { padding: 20px 20px 18px; }
  .ask-q {
    margin: 0; font-size: 16.5px; line-height: 1.55; color: var(--text);
    background: var(--brand-soft); border-radius: 14px 14px 4px 14px; padding: 13px 16px;
    display: inline-block; max-width: 100%; min-height: 1.55em;
  }
  .ask-cursor {
    display: inline-block; width: 2px; height: 1.05em; background: var(--brand);
    vertical-align: text-bottom; margin-left: 2px; animation: ask-blink 1s steps(2) infinite;
  }
  .ask.is-done .ask-cursor { display: none; }
  .ask-reply {
    display: none; gap: 5px; align-items: center; margin-top: 14px; padding: 12px 16px;
    background: var(--surface-2); border-radius: 14px 14px 14px 4px; width: max-content;
  }
  .ask.is-done .ask-reply { display: inline-flex; }
  .ask-reply span {
    width: 7px; height: 7px; border-radius: 50%; background: var(--text-dim);
    animation: ask-bounce 1.2s ease-in-out infinite;
  }
  .ask-reply span:nth-child(2) { animation-delay: .15s; }
  .ask-reply span:nth-child(3) { animation-delay: .3s; }
  .ask-note { font-size: 15px; color: var(--text-2); max-width: 60ch; margin: 0 0 40px; line-height: 1.55; }
  @keyframes ask-blink { 50% { opacity: 0; } }
  @keyframes ask-bounce { 0%, 80%, 100% { transform: translateY(0); opacity: .5; } 40% { transform: translateY(-4px); opacity: 1; } }
  @media (prefers-reduced-motion: reduce) {
    .ask-cursor, .ask-reply span { animation: none; }
  }

  /* ---------- hero: copy left, the question right ---------- */
  .hero-grid {
    display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 48px; align-items: center;
  }
  .hero-ask { position: relative; }
  .hero-ask .ask { margin: 0; max-width: none; }
  .ask-note-hero { margin: 14px 0 0; font-size: 14px; max-width: none; }
  @media (max-width: 960px) {
    .hero-grid { grid-template-columns: 1fr; gap: 34px; }
    .hero-ask { max-width: 640px; }
  }

  /* the dashboard, now the proof at the end of "What I do" */
  .report-figure { margin-top: 44px; }
  .report-figure-inner { margin: 0; max-width: 960px; }
  .report-figure-inner img { box-shadow: var(--shadow-lg); border: 1px solid var(--border); }
  .hero-grid h1 { font-size: clamp(40px, 5.2vw, 66px); }
  .hero-grid .lede { max-width: 48ch; }

  /* ---------- proof strip: cited numbers, AI Syndicate's card at your tokens ----------
     Every figure links to a source a reader can check. That is the whole point. */
  .proof { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 0 0 40px; }
  .proof-card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
    padding: 20px 20px 16px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
  }
  .proof-n {
    font-size: clamp(40px, 4.6vw, 58px); font-weight: 800; letter-spacing: -0.04em; line-height: 1;
    color: var(--brand); display: block;
  }
  .proof-n small { font-size: .5em; font-weight: 600; letter-spacing: -0.02em; }
  .proof-l { font-size: 14.5px; color: var(--text); line-height: 1.4; margin-top: 10px; font-weight: 500; }
  .proof-s {
    font-family: var(--mono); font-size: 10.5px; letter-spacing: .03em; color: var(--text-dim);
    margin-top: auto; padding-top: 12px; line-height: 1.5;
  }
  .proof-s a { color: var(--text-muted); text-decoration: underline; text-underline-offset: 2px; }
  .proof-s a:hover { color: var(--brand); }
  @media (max-width: 960px) { .proof { grid-template-columns: 1fr 1fr; } }
  @media (max-width: 480px) { .proof { grid-template-columns: 1fr; } }
