/* Deft Analytics — shared styles. Static, no build step. */

@font-face { font-family: "Schibsted Grotesk"; src: url("/assets/fonts/schibsted-grotesk-latin.woff2") format("woff2"); font-weight: 500 800; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("/assets/fonts/ibm-plex-sans-latin.woff2") format("woff2"); font-weight: 400 600; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/assets/fonts/ibm-plex-mono-400-latin.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/assets/fonts/ibm-plex-mono-500-latin.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  /* one cool, faintly green-tinted neutral family to sit with the navy + green brand */
  --bg: #f4f7f6;
  --surface: #ffffff;
  --sunk: #eaf0ee;
  --ink: #0e1b3d;
  --ink-2: #26324f;
  --muted: #525d76;
  --faint: #5d6782;
  --line: #dbe3e0;
  --line-soft: #e8eeec;

  --navy: #0e1b3d;
  --navy-2: #16264f;
  --green: #0f8f6b;        /* brand accent: marks, bars, fills */
  --green-ink: #0b7356;    /* accent as text/links: passes 4.5:1 on bg */
  --green-btn: #0d7a5b;    /* button fill: passes 4.5:1 with white */
  --green-btn-hover: #0a6a4e;
  --green-soft: #e1f2ec;
  --mint: #7fe0b5;
  --risk: #b4332a;
  --risk-ink: #a12c24;
  --risk-soft: #fbecea;
  --amber: #9a5b0c;

  --radius-lg: 20px;
  --radius: 14px;
  --radius-sm: 8px;
  --maxw: 1200px;
  --gutter: 24px;

  --font: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Schibsted Grotesk", var(--font);
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* shadows tinted with the navy, one light source from above */
  --shadow-sm: 0 1px 2px rgba(14, 27, 61, .06), 0 2px 8px rgba(14, 27, 61, .04);
  --shadow: 0 2px 4px rgba(14, 27, 61, .04), 0 18px 48px -12px rgba(14, 27, 61, .18);
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  --z-header: 50;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--green-ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
::selection { background: var(--green-soft); color: var(--ink); }
input, textarea { caret-color: var(--green); }
html { scrollbar-color: #b9c4c0 var(--bg); }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { font-family: var(--display); color: var(--ink); text-wrap: balance; }
p { text-wrap: pretty; }
.num, .mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: #fff;
  padding: 10px 16px; border-radius: var(--radius-sm); font-weight: 600; text-decoration: none; transition: top .2s; }
.skip:focus { top: 12px; }

.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; }

/* ── header ───────────────────────────────────────────── */
.site-header { position: sticky; top: 0; z-index: var(--z-header);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line-soft); }
.site-header .wrap { display: flex; align-items: center; gap: 32px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink);
  font-family: var(--display); font-weight: 700; font-size: 18px; letter-spacing: -.02em; flex: none; }
.brand img { height: 40px; width: auto; }
.brand-foot img { height: 44px; }
.nav { display: flex; gap: 28px; margin-right: auto; }
.nav a { white-space: nowrap; color: var(--ink-2); text-decoration: none; font-size: 15px; font-weight: 500; padding: 6px 0;
  border-bottom: 1.5px solid transparent; transition: color .2s, border-color .2s; }
.nav a:hover { color: var(--green-ink); }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--green); }
.header-actions { display: flex; align-items: center; gap: 20px; }
.link-quiet { color: var(--ink-2); font-size: 15px; font-weight: 500; text-decoration: none; }
.link-quiet:hover { color: var(--green-ink); }

.menu { display: none; margin-left: auto; position: relative; }
.menu summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface);
  font-weight: 600; font-size: 15px; color: var(--ink); }
.menu summary::-webkit-details-marker { display: none; }
.menu summary svg { width: 16px; height: 16px; transition: transform .25s var(--ease-out); }
.menu[open] summary svg { transform: rotate(90deg); }
.menu-panel { position: absolute; right: 0; top: calc(100% + 10px); width: min(300px, calc(100vw - 32px));
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 8px; display: grid; }
.menu-panel a { padding: 12px 14px; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 500; }
.menu-panel a:hover { background: var(--sunk); }
.menu-panel .btn { margin: 8px 6px 6px; justify-content: center; }
.menu-panel .btn-primary, .menu-panel .btn-primary:hover { color: #fff; background: var(--green-btn); }

/* ── buttons ──────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; gap: 8px; font: 600 15px/1 var(--font); text-decoration: none;
  padding: 13px 20px; border-radius: 11px; border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: background-color .2s, border-color .2s, color .2s, transform .12s var(--ease-out), box-shadow .2s; }
.btn:active { transform: translateY(1px) scale(.985); }
.btn-primary { background: var(--green-btn); color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,.18) inset, 0 6px 16px -6px rgba(13,122,91,.55); }
.btn-primary:hover { background: var(--green-btn-hover); }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn-secondary:hover { border-color: #b9c6c2; }
.btn-lg { padding: 16px 24px; font-size: 16px; border-radius: 13px; }
.btn-sm { padding: 10px 16px; font-size: 14.5px; }

/* ── type helpers ─────────────────────────────────────── */
.h2 { font-weight: 700; font-size: clamp(30px, 4.2vw, 46px); line-height: 1.08; letter-spacing: -.03em; max-width: 22ch; }
.lead { font-size: clamp(17px, 1.6vw, 19px); color: var(--muted); max-width: 60ch; margin-top: 18px; }
.small { font-size: 14px; color: var(--faint); }

section { position: relative; }
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section + .section { border-top: 1px solid var(--line-soft); }
.section.tail { padding-bottom: clamp(56px, 7vw, 88px); border-top: 0; }

/* ── hero ─────────────────────────────────────────────── */
.hero { padding: clamp(48px, 7vw, 96px) 0 clamp(64px, 8vw, 112px); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(40px, 6vw, 80px); align-items: center; }
.hero h1 { font-weight: 800; font-size: clamp(44px, 6.4vw, 84px); line-height: .98; letter-spacing: -.04em; max-width: 11ch; }
.hero .lead { margin-top: 26px; font-size: clamp(18px, 1.7vw, 20px); max-width: 52ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.facts { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 28px; list-style: none; }
.facts li { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; color: var(--muted); font-weight: 500; }
.facts svg { width: 17px; height: 17px; color: var(--green); flex: none; }

/* evidence exhibit: the signature element */
.exhibit-wrap { position: relative; }
.exhibit { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); padding: 26px 26px 22px; overflow: hidden; }
.exhibit::before { /* faint ruled-paper texture */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(to bottom, transparent 0 31px, rgba(14,27,61,.035) 31px 32px); }
.exhibit > * { position: relative; }
.ex-tab { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 14px;
  border-bottom: 1px dashed var(--line); font-family: var(--mono); font-size: 12.5px; color: var(--faint); }
.ex-tab b { color: var(--ink); font-weight: 500; }
.sev { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 6px; font-family: var(--mono);
  font-size: 12px; background: var(--risk-soft); color: var(--risk-ink); border: 1px solid rgba(180,51,42,.25); }
.ex-title { font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: -.02em; margin-top: 18px; line-height: 1.2; }
.ex-sub { font-size: 14px; color: var(--muted); margin-top: 4px; }
.ex-score { position: relative; display: flex; align-items: baseline; gap: 14px; margin-top: 20px; padding-right: 116px; }
.ex-score .num { font-size: 52px; font-weight: 500; letter-spacing: -.04em; color: var(--risk-ink); line-height: 1; }
.ex-score span:last-child { font-size: 14px; color: var(--muted); max-width: 22ch; line-height: 1.4; }
.ex-rows { list-style: none; margin-top: 18px; border-top: 1px solid var(--line-soft); }
.ex-rows li { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; align-items: center; padding: 11px 0;
  border-bottom: 1px solid var(--line-soft); font-size: 14.5px; color: var(--ink-2); }
.ex-rows .num { font-size: 14px; color: var(--ink); }
.scale { grid-column: 1 / -1; position: relative; height: 6px; border-radius: 99px; background: var(--sunk); }
.scale i { position: absolute; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%;
  background: var(--surface); border: 2.5px solid var(--risk); box-shadow: 0 1px 3px rgba(14,27,61,.2); }
.scale.mid::after { content: ""; position: absolute; left: 50%; top: -3px; bottom: -3px; width: 1px; background: #b9c4c0; }
.ex-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 16px; font-size: 13px; color: var(--faint); }
.ex-foot a { font-weight: 600; font-size: 13.5px; }
.stamp { position: absolute; right: 0; top: 50%; margin-top: -24px; transform: rotate(-7deg); padding: 7px 12px 6px; border: 2px solid var(--risk);
  border-radius: 8px; color: var(--risk); font-family: var(--mono); font-weight: 500; font-size: 12.5px; letter-spacing: .06em;
  text-transform: uppercase; line-height: 1.25; text-align: center; background: rgba(251,236,234,.7); mix-blend-mode: multiply; }
.exhibit-note { font-size: 13.5px; color: var(--faint); margin-top: 14px; padding-left: 4px; }

/* the one authored motion moment: the exhibit fills in, then gets stamped */
@media (prefers-reduced-motion: no-preference) {
  .exhibit .ex-rows li { animation: row-in .6s var(--ease-out) both; }
  .exhibit .ex-rows li:nth-child(1) { animation-delay: .25s; }
  .exhibit .ex-rows li:nth-child(2) { animation-delay: .4s; }
  .exhibit .ex-rows li:nth-child(3) { animation-delay: .55s; }
  .exhibit .ex-rows li:nth-child(4) { animation-delay: .7s; }
  .exhibit .scale i { animation: marker-in 1s var(--ease-out) both; animation-delay: .8s; }
  .exhibit .stamp { animation: stamp .45s cubic-bezier(.3, 1.6, .5, 1) both; animation-delay: 1.35s; }
  @keyframes row-in { from { opacity: 0; transform: translateY(6px); filter: blur(3px); } }
  @keyframes marker-in { from { left: 50% !important; opacity: 0; } }
  @keyframes stamp { from { opacity: 0; transform: rotate(-7deg) scale(1.6); filter: blur(2px); } }
}

/* ── compare: rating view vs deft view ────────────────── */
.compare { display: grid; grid-template-columns: 1fr 1fr; margin-top: 56px; border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); box-shadow: var(--shadow-sm); }
.compare > div { padding: clamp(24px, 3.4vw, 40px); }
.compare > div + div { border-left: 1px solid var(--line); background: linear-gradient(180deg, #fff, #fbfdfc); }
.compare h3 { font-family: var(--font); font-size: 14px; font-weight: 600; color: var(--muted); }
.compare .big { font-family: var(--display); font-size: clamp(24px, 2.6vw, 30px); font-weight: 700; letter-spacing: -.02em;
  margin: 14px 0 22px; line-height: 1.15; }
.metric-list { list-style: none; display: grid; gap: 0; }
.metric-list li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line-soft); font-size: 15.5px; color: var(--ink-2); }
.metric-list .num { color: var(--ink); font-size: 15px; }
.good { color: var(--green-ink) !important; }
.bad { color: var(--risk-ink) !important; }
.verdict { display: flex; gap: 10px; align-items: flex-start; margin-top: 20px; padding: 14px 16px; border-radius: 12px; font-size: 15px; line-height: 1.45; }
.verdict svg { width: 18px; height: 18px; flex: none; margin-top: 2px; }
.verdict.ok { background: var(--green-soft); color: #0a5c45; }
.verdict.flag { background: var(--risk-soft); color: #8e2620; }
.after-note { margin-top: 28px; max-width: 64ch; color: var(--muted); }

/* ── three scores ─────────────────────────────────────── */
.split-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 64px; align-items: end; }
.split-head .lead { margin-top: 0; }
.scores { list-style: none; margin-top: 56px; display: grid; gap: 0; border-top: 1px solid var(--line); }
.scores li { display: grid; grid-template-columns: minmax(180px, .9fr) minmax(0, 1.4fr) minmax(220px, 1fr); gap: 16px 40px;
  align-items: center; padding: 30px 0; border-bottom: 1px solid var(--line); }
.scores h3 { font-size: 21px; font-weight: 700; letter-spacing: -.015em; }
.scores .range { font-family: var(--mono); font-size: 13px; color: var(--faint); margin-top: 4px; }
.scores p { color: var(--muted); font-size: 16px; max-width: 54ch; }
.ruler { position: relative; padding-top: 30px; }
.ruler .track { display: block; height: 6px; border-radius: 99px; background: linear-gradient(90deg, #e9d6d3, var(--sunk) 45%, #cfe8de); }
.ruler .track.mid { background: linear-gradient(90deg, #e9d6d3, var(--sunk) 50%, #cfe8de); position: relative; }
.ruler .mark { position: absolute; top: 33px; width: 0; }
.ruler .mark::before { content: ""; position: absolute; left: -6px; top: -6px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--surface); border: 2.5px solid var(--risk); box-shadow: 0 1px 3px rgba(14,27,61,.2); }
.ruler .mark b { position: absolute; bottom: 12px; left: 0; transform: translateX(-12px); white-space: nowrap;
  font: 500 12px var(--mono); color: var(--risk-ink); }
.ruler .mark[style*="100%"] b { left: auto; right: 0; transform: translateX(12px); }
.ruler .ends { display: flex; justify-content: space-between; gap: 12px; margin-top: 10px; font-size: 12.5px; color: var(--faint); }
.section-link { margin-top: 28px; display: inline-flex; font-weight: 600; }

/* ── loop / how a study runs ──────────────────────────── */
.loop { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; margin-top: 56px; }
.loop li { position: relative; padding: 0 22px 0 0; counter-increment: step; }
.loop li::before { content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  font-family: var(--mono); font-size: 14px; font-weight: 500; color: var(--ink); background: var(--surface);
  border: 1.5px solid var(--line); position: relative; z-index: 1; }
.loop li::after { content: ""; position: absolute; top: 17px; left: 34px; right: 0; height: 1.5px; background: var(--line); }
.loop li:last-child::after { display: none; }
.loop li.gate::before { background: var(--ink); border-color: var(--ink); color: #fff; }
.loop h3 { font-family: var(--font); font-size: 17px; font-weight: 600; margin-top: 18px; letter-spacing: -.005em; }
.loop p { color: var(--muted); font-size: 15px; margin-top: 6px; }
.gate-note { display: flex; gap: 14px; align-items: flex-start; margin-top: 48px; padding: 20px 22px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); max-width: 760px; }
.gate-note svg { width: 22px; height: 22px; color: var(--ink); flex: none; margin-top: 1px; }
.gate-note p { color: var(--ink-2); font-size: 15.5px; }

/* ── audience ─────────────────────────────────────────── */
.audience { list-style: none; margin-top: 48px; border-top: 1px solid var(--line); }
.audience li { display: grid; grid-template-columns: minmax(200px, .8fr) minmax(0, 1.6fr); gap: 12px 48px; padding: 30px 0; border-bottom: 1px solid var(--line); }
.audience h3 { font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.audience q { display: block; font-family: var(--display); font-weight: 600; font-size: clamp(18px, 1.8vw, 21px); color: var(--ink); quotes: "“" "”"; letter-spacing: -.01em; line-height: 1.35; }
.audience p { color: var(--muted); margin-top: 8px; font-size: 16px; max-width: 60ch; }

/* ── scope & limits ───────────────────────────────────── */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 48px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(24px, 3vw, 36px); }
.panel h3 { font-size: 20px; font-weight: 700; letter-spacing: -.015em; }
.source-list { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.source-list li { padding: 7px 12px; border-radius: 8px; background: var(--sunk); font-size: 14.5px; font-weight: 500; color: var(--ink-2); }
.panel dl { margin-top: 22px; display: grid; gap: 14px; }
.panel dt { font-size: 14px; font-weight: 600; color: var(--ink); }
.panel dd { font-size: 15px; color: var(--muted); margin-top: 2px; }
.checks { list-style: none; margin-top: 18px; display: grid; gap: 14px; }
.checks li { display: grid; grid-template-columns: 20px 1fr; gap: 12px; font-size: 15.5px; color: var(--ink-2); }
.checks svg { width: 20px; height: 20px; color: var(--green); margin-top: 2px; }

/* ── closing cta ──────────────────────────────────────── */
.closing { background: var(--navy); color: #fff; border-radius: 28px; padding: clamp(40px, 6vw, 72px);
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 40px 64px; align-items: end; position: relative; overflow: clip; }
.closing::after { content: ""; position: absolute; inset: auto -10% -60% 40%; height: 120%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(15,143,107,.35), transparent 70%); }
.closing > * { position: relative; z-index: 1; }
.closing h2 { color: #fff; font-weight: 700; font-size: clamp(30px, 4vw, 46px); letter-spacing: -.03em; line-height: 1.06; max-width: 18ch; }
.closing > div > p { color: #c6cde0; margin-top: 18px; max-width: 54ch; }
.closing > div > ul { list-style: none; margin-top: 22px; display: grid; gap: 10px; }
.closing > div > ul li { display: flex; gap: 10px; color: #dfe4f0; font-size: 15.5px; }
.closing > div > ul li svg { width: 18px; height: 18px; color: var(--mint); flex: none; margin-top: 3px; }
.closing .actions { display: grid; gap: 14px; justify-items: start; }
.closing .btn-primary { background: #fff; color: var(--ink); box-shadow: none; }
.closing .btn-primary:hover { background: #e8f6f0; }
.mail-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 14.5px; color: #aab3ca; }
.mail-row code { font-family: var(--mono); font-size: 14px; color: #fff; }
.copy-btn { font: 600 13.5px var(--font); color: #fff; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.2);
  border-radius: 8px; padding: 6px 10px; cursor: pointer; transition: background-color .2s; }
.copy-btn:hover { background: rgba(255,255,255,.16); }
.closing > div > .small { color: #8d97b3; margin-top: 14px; }

/* ── footer ───────────────────────────────────────────── */
.site-footer { padding: 64px 0 40px; border-top: 1px solid var(--line); }
.foot { display: grid; grid-template-columns: 1.6fr repeat(2, 1fr); gap: 32px; }
.foot p { color: var(--muted); font-size: 15px; max-width: 38ch; margin-top: 14px; }
.foot h2 { font-family: var(--font); font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 14px; }
.foot ul { list-style: none; display: grid; gap: 10px; }
.foot ul a { color: var(--muted); text-decoration: none; font-size: 15px; }
.foot ul a:hover { color: var(--green-ink); text-decoration: underline; }
.foot-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 48px; padding-top: 24px;
  border-top: 1px solid var(--line-soft); font-size: 14px; color: var(--faint); }

/* ── document pages (methodology, sample report) ──────── */
.doc-hero { padding: clamp(48px, 7vw, 88px) 0 clamp(32px, 4vw, 48px); }
.doc-hero h1 { font-weight: 800; font-size: clamp(38px, 5vw, 60px); line-height: 1.04; letter-spacing: -.035em; max-width: 18ch; }
.doc-hero .lead { margin-top: 20px; }
.doc-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.doc-meta span { font-family: var(--mono); font-size: 12.5px; color: var(--muted); padding: 5px 10px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); }
.doc { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 64px; align-items: start; padding-bottom: 32px; }
.toc { position: sticky; top: 96px; font-size: 14.5px; }
.toc h2 { font-family: var(--font); font-size: 13px; font-weight: 600; color: var(--faint); margin-bottom: 12px; }
.toc ol { list-style: none; display: grid; gap: 4px; border-left: 1px solid var(--line); }
.toc a { display: block; padding: 5px 0 5px 14px; margin-left: -1px; border-left: 1.5px solid transparent; color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--ink); border-left-color: var(--green); }
.prose { max-width: 70ch; }
.prose h2 { font-size: clamp(24px, 2.6vw, 30px); font-weight: 700; letter-spacing: -.025em; line-height: 1.15; margin: 64px 0 16px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 19px; font-weight: 700; letter-spacing: -.01em; margin: 32px 0 8px; }
.prose p, .prose li { color: var(--ink-2); }
.prose p + p { margin-top: 14px; }
.prose ul, .prose ol { padding-left: 22px; margin: 14px 0; display: grid; gap: 8px; }
.prose li::marker { color: var(--faint); }
.prose code { font-family: var(--mono); font-size: .88em; background: var(--sunk); padding: 2px 6px; border-radius: 5px; color: var(--ink); }
.prose strong { color: var(--ink); font-weight: 600; }
.formula { margin: 18px 0; padding: 16px 18px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line);
  font-family: var(--mono); font-size: 14.5px; color: var(--ink); overflow-x: auto; }
.table-wrap { overflow-x: auto; margin: 20px 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
th { font-weight: 600; color: var(--ink); background: #f8faf9; font-size: 14px; }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; white-space: nowrap; }
td.mono { white-space: nowrap; }
.callout { margin: 22px 0; padding: 16px 18px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); display: flex; gap: 12px; }
.callout svg { width: 20px; height: 20px; flex: none; color: var(--amber); margin-top: 2px; }
.callout p { margin: 0 !important; font-size: 15.5px; }

/* report */
.finding { margin-top: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.finding-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 22px 24px; border-bottom: 1px solid var(--line-soft); }
.finding-head h3 { margin: 6px 0 0; font-size: 21px; }
.finding-head .mono { font-size: 12.5px; color: var(--faint); }
.finding-score { text-align: right; flex: none; }
.finding-score .num { font-size: 36px; color: var(--risk-ink); letter-spacing: -.03em; line-height: 1; }
.finding-score div:last-child { font-size: 12.5px; color: var(--faint); margin-top: 4px; }
.facts-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line-soft); }
.facts-grid div { padding: 16px 24px; }
.facts-grid div + div { border-left: 1px solid var(--line-soft); }
.facts-grid dt { font-size: 13px; color: var(--faint); }
.facts-grid dd { font-family: var(--mono); font-size: 18px; color: var(--ink); margin-top: 2px; }
.oil { display: grid; grid-template-columns: repeat(3, 1fr); }
.oil section { padding: 20px 24px; }
.oil section + section { border-left: 1px solid var(--line-soft); }
.oil h4 { font-size: 13.5px; font-weight: 600; color: var(--ink); display: flex; align-items: center; gap: 8px; }
.oil h4 i { width: 8px; height: 8px; border-radius: 2px; display: inline-block; }
.oil p { font-size: 15px; color: var(--muted); margin-top: 8px; }

/* 404 */
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 80px 0; }
.notfound h1 { font-size: clamp(36px, 5vw, 56px); font-weight: 800; letter-spacing: -.035em; }
.notfound p { color: var(--muted); margin: 14px auto 28px; max-width: 46ch; }
.notfound .hero-actions { justify-content: center; }


/* ── pipeline + relevance gate (mirrors the engine: collect → gate → score → cluster → evidence) ── */
.pipe { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin-top: 56px;
  border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); overflow: hidden; }
.pipe li { position: relative; padding: 22px 22px 24px; }
.pipe li + li { border-left: 1px solid var(--line); }
.pipe li + li::before { content: ""; position: absolute; left: -6px; top: 28px; width: 10px; height: 10px; background: var(--surface);
  border-top: 1px solid var(--line); border-right: 1px solid var(--line); transform: rotate(45deg); }
.pipe-k { font-family: var(--display); font-weight: 700; font-size: 17px; letter-spacing: -.01em; color: var(--ink); }
.pipe p { color: var(--muted); font-size: 15px; margin-top: 8px; }
.pipe li.is-gate { background: var(--ink); }
.pipe li.is-gate + li::before { background: var(--ink); border-color: var(--ink); }
.pipe li.is-gate .pipe-k { color: #fff; }
.pipe li.is-gate p { color: #c6cde0; }
.gate-demo { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 32px 56px; margin-top: 40px; align-items: start; }
.gate-copy h3 { font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.gate-copy p { color: var(--muted); margin-top: 10px; max-width: 52ch; }
.gate-copy .small { margin-top: 16px; }
.triage { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); overflow: hidden; }
.card-line { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; padding: 14px 20px; background: var(--sunk);
  border-bottom: 1px solid var(--line); font-size: 14.5px; color: var(--ink-2); }
.card-line .mono { font-size: 12.5px; color: var(--muted); }
.triage ul { list-style: none; }
.triage li { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; align-items: center; padding: 16px 20px; }
.triage li + li { border-top: 1px solid var(--line-soft); }
.triage q { quotes: "“" "”"; color: var(--ink); font-size: 15.5px; }
.lbl { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 12.5px; padding: 4px 9px; border-radius: 6px; white-space: nowrap; }
.lbl svg { width: 14px; height: 14px; }
.lbl.ok { background: var(--green-soft); color: #0a5c45; }
.lbl.off { background: var(--sunk); color: var(--muted); }
.lbl.unsure { background: #fbf1e2; color: var(--amber); }

/* ── intake form ─────────────────────────────────────── */
.closing { align-items: start; }
.intake, .intake-done { background: var(--surface); color: var(--ink); border-radius: var(--radius-lg); padding: clamp(22px, 3vw, 30px);
  display: grid; gap: 14px; box-shadow: 0 30px 60px -24px rgba(0,0,0,.45); }
.intake h3, .intake-done h3 { font-size: 20px; font-weight: 700; letter-spacing: -.015em; }
.intake label { display: grid; gap: 6px; font-size: 14px; font-weight: 500; color: var(--ink); }
.intake .opt { font-weight: 400; color: var(--faint); margin-left: 6px; }
.intake .lab { display: block; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.intake input:not([type="checkbox"]), .intake select, .intake textarea {
  font: 400 15.5px/1.4 var(--font); color: var(--ink); background: #fff; border: 1px solid #c9d3cf; border-radius: 10px;
  padding: 11px 12px; width: 100%; transition: border-color .15s, box-shadow .15s; }
.intake textarea { resize: vertical; min-height: 84px; }
.intake input::placeholder, .intake textarea::placeholder { color: #7a8398; }
.intake input:focus, .intake select:focus, .intake textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(15,143,107,.18); }
.intake [aria-invalid="true"] { border-color: var(--risk) !important; }
.intake fieldset { border: 0; display: grid; gap: 8px; }
.intake legend { font-size: 14px; font-weight: 500; margin-bottom: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { display: inline-flex; grid-auto-flow: column; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid #c9d3cf;
  border-radius: 9px; font-weight: 400; font-size: 14px; cursor: pointer; transition: border-color .15s, background-color .15s; }
.chips label:has(input:checked) { border-color: var(--green); background: var(--green-soft); }
.intake input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--green-btn); flex: none; margin: 0; }
.intake .attest { grid-template-columns: 18px 1fr; align-items: start; gap: 10px; font-weight: 400; font-size: 14.5px; color: var(--ink-2); }
.intake .attest input { margin-top: 3px; }
.intake .attest .err { grid-column: 2; }
.err { font-size: 13.5px; font-weight: 500; color: var(--risk-ink); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.intake .btn { justify-self: start; }
.intake .btn[disabled] { opacity: .7; cursor: progress; }
.closing .intake .btn-primary { background: var(--green-btn); color: #fff; }
.closing .intake .btn-primary:hover { background: var(--green-btn-hover); }
.form-status:empty { display: none; }
.form-status { font-size: 14.5px; }
.form-status.is-error { color: var(--risk-ink); background: var(--risk-soft); padding: 10px 12px; border-radius: 10px; }
.form-note { font-size: 13.5px; color: var(--faint); }
.intake-done p { color: var(--ink-2); }
.intake-done .mono { font-family: var(--mono); background: var(--sunk); padding: 2px 6px; border-radius: 5px; }
.intake-done:focus { outline: none; }

@media (max-width: 1020px) {
  .pipe { grid-template-columns: 1fr; }
  .pipe li + li { border-left: 0; border-top: 1px solid var(--line); }
  .pipe li + li::before { left: 28px; top: -6px; transform: rotate(135deg); }
  .gate-demo { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .row2 { grid-template-columns: 1fr; }
  .triage li { grid-template-columns: 1fr; }
  .triage .lbl { justify-self: start; }
}

/* ── responsive ───────────────────────────────────────── */
@media (max-width: 1020px) {
  .nav, .header-actions { display: none; }
  .menu { display: block; }
  .loop { grid-template-columns: 1fr; gap: 0; }
  .loop li { display: grid; grid-template-columns: 34px 1fr; gap: 0 18px; padding: 0 0 28px; }
  .loop li::before { grid-row: span 2; }
  .loop li::after { top: 34px; bottom: 0; left: 17px; right: auto; width: 1.5px; height: auto; }
  .loop h3 { margin-top: 5px; }
  .scores li { grid-template-columns: 1fr 1fr; }
  .scores li .ruler { grid-column: 1 / -1; }
}
@media (max-width: 880px) {
  :root { --gutter: 20px; }
  .nav, .header-actions { display: none; }
  .menu { display: block; }
  .hero .wrap, .split-head, .two-col, .closing, .doc { grid-template-columns: 1fr; }
  .compare { grid-template-columns: 1fr; }
  .compare > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .audience li { grid-template-columns: 1fr; }
  .scores li { grid-template-columns: 1fr; gap: 12px; }
  .foot { grid-template-columns: 1fr 1fr; }
  .foot > div:first-child { grid-column: 1 / -1; }
  .toc { position: static; }
  .doc { gap: 32px; }
  .facts-grid, .oil { grid-template-columns: 1fr; }
  .facts-grid div + div, .oil section + section { border-left: 0; border-top: 1px solid var(--line-soft); }
}
@media (max-width: 480px) {
  :root { --gutter: 16px; }
  .brand img { height: 34px; }
  .closing { padding: 32px 16px 16px; border-radius: 22px; }
  .closing > div:first-child { padding: 0 6px; }
  .hero-actions .btn { flex: 1 1 100%; justify-content: center; }
  .stamp { font-size: 11px; }
  .ex-score { padding-right: 100px; }
  .ex-score .num { font-size: 44px; }
  .exhibit { padding: 20px 18px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
