/* Generated from assets/brand/tokens.json by npm run tokens: do not edit by hand. Greppet Commissioner. */
@font-face { font-family: "Commissioner"; src: url("/scan/assets/fonts/Commissioner-Variable-latin.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
:root, [data-theme="light"] {
  --surface: #f9f9f9;
  --surface-raised: #ffffff;
  --surface-sunk: #f6f4f1;
  --line: #eae7e2;
  --hover: #eae7e2;
  --selected: #ece6dc;
  --line-control: #8c877f;
  --ink: #0e0e0e;
  --ink-muted: #5f5b55;
  --ink-faint: #d3cfc8;
  --accent: #fbb117;
  --accent-text: #0e0e0e;
  --accent-stat: #3b8fd6;
  --accent-tint: #feecd1;
  --accent-on-band: #fbb117;
  --on-accent: #0e0e0e;
  --band: #0e0e0e;
  --on-band: #f6f4f1;
  --on-band-muted: #a9a49c;
  --line-on-band: #2a2825;
  --signal-agree: #0f6717;
  --signal-agree-tint: #dce6dc;
  --signal-agree-mark: #3d8f47;
  --signal-differs: #9a4b30;
  --signal-differs-tint: #fae9e3;
  --signal-differs-mark: #bc735b;
  --signal-unknown: #5e4e91;
  --signal-unknown-tint: #e9e5f3;
  --signal-unknown-mark: #8577b8;
  --draft: var(--ink);
  --focus: var(--accent-text);
  --shadow-record: 0 8px 28px rgba(14, 14, 14, 0.09);
}
[data-theme="dark"] {
  color-scheme: dark;
  --surface: #141312;
  --surface-raised: #1e1c1a;
  --surface-sunk: #0e0e0e;
  --line: #2a2825;
  --hover: #2a2825;
  --selected: #302d29;
  --line-control: #8a857d;
  --ink: #f4f2ee;
  --ink-muted: #a9a49c;
  --ink-faint: #3a3733;
  --accent: #fbb117;
  --accent-text: #fbb117;
  --accent-stat: #5fb5f2;
  --accent-tint: #3c2a0d;
  --accent-on-band: #fbb117;
  --on-accent: #0e0e0e;
  --band: #0e0e0e;
  --on-band: #f4f2ee;
  --on-band-muted: #a9a49c;
  --line-on-band: #2a2825;
  --signal-agree: #8fd097;
  --signal-agree-tint: #1b2a1c;
  --signal-agree-mark: #8fd097;
  --signal-differs: #f0a88e;
  --signal-differs-tint: #3a2219;
  --signal-differs-mark: #f0a88e;
  --signal-unknown: #c3b4e8;
  --signal-unknown-tint: #2a2338;
  --signal-unknown-mark: #b3a6e3;
  --draft: var(--ink);
  --focus: var(--accent-text);
  --shadow-record: 0 8px 28px rgba(0, 0, 0, 0.5);
}
:root {
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --space-16: 64px;
  --space-24: 96px;
  --space-32: 128px;
  --radius-none: 0px;
  --radius-hover: 6px;
  --radius-control: 10px;
  --radius-graphic: 16px;
  --font-display: Commissioner, Inter, system-ui, sans-serif;
  --font-sans: Commissioner, Inter, system-ui, sans-serif;
  --text-display: 300 64px/68px var(--font-display);
  --text-h1: 300 48px/54px var(--font-display);
  --text-h2: 300 34px/40px var(--font-display);
  --text-stat: 400 64px/64px var(--font-display);
  --text-h3: 600 22px/28px var(--font-sans);
  --text-h4: 600 16px/22px var(--font-sans);
  --text-lead: 300 21px/32px var(--font-sans);
  --text-body: 300 17px/28px var(--font-sans);
  --text-body-sm: 300 15px/24px var(--font-sans);
  --text-label: 500 14px/20px var(--font-sans);
  --text-eyebrow: 500 13px/16px var(--font-sans);
  --text-tag: 500 12px/16px var(--font-sans);
  --text-caption: 400 12px/16px var(--font-sans);
  --tracking-display: -0.025em;
  --tracking-h1: -0.02em;
  --tracking-h2: -0.015em;
  --tracking-stat: -0.02em;
  --tracking-h3: -0.01em;
  --tracking-h4: -0.005em;
  --tracking-lead: 0;
  --tracking-body: 0;
  --tracking-body-sm: 0;
  --tracking-label: 0;
  --tracking-eyebrow: 0;
  --tracking-tag: 0;
  --tracking-caption: 0;
  /* The app's earlier names (greppet.appAliases), so every screen keeps working. */
  --muted: var(--ink-muted);
  --faint: var(--ink-muted);
  --rule: var(--line);
  --rule-strong: var(--line-control);
  --decor: var(--ink-faint);
  --dot: var(--ink-faint);
  --canvas: var(--surface);
  --surface-2: var(--surface-sunk);
  --surface-3: var(--hover);
  --accent-mark: var(--accent);
  --accent-strong: var(--ink);
  --accent-strong-hover: var(--ink);
  --accent-tint-line: var(--line-control);
  --amber-tint: var(--accent-tint);
  --amber-text: var(--ink);
  --on-ink: var(--on-band);
  --on-ink-muted: var(--on-band-muted);
  --on-strong: var(--surface);
  --font: var(--font-sans);
  --page-title-size: 32px;
  --page-title-weight: 700;
  --page-title-line: 1.15;
  --page-title-tracking: -0.02em;
  --number-xl-size: 30px;
  --number-xl-weight: 700;
  --number-xl-line: 1.1;
  --number-xl-tracking: -0.01em;
  --title-size: 20px;
  --title-weight: 600;
  --title-line: 1.3;
  --title-tracking: -0.01em;
  --heading-size: 17px;
  --heading-weight: 600;
  --heading-line: 1.35;
  --heading-tracking: 0;
  --body-lg-size: 15px;
  --body-lg-weight: 400;
  --body-lg-line: 1.5;
  --body-lg-tracking: 0;
  --body-size: 14px;
  --body-weight: 400;
  --body-line: 1.5;
  --body-tracking: 0;
  --small-size: 13px;
  --small-weight: 400;
  --small-line: 1.45;
  --small-tracking: 0;
  --label-size: 12px;
  --label-weight: 500;
  --label-line: 1.4;
  --label-tracking: 0;
  --eyebrow-size: 11px;
  --eyebrow-weight: 600;
  --eyebrow-line: 1.3;
  --eyebrow-tracking: 0.06em;
  --space-5: 20px;
  --space-10: 40px;
  --radius-s: 6px;
  --radius-m: 8px;
  --radius-l: 12px;
  --radius-pill: 999px;
  --shadow-bar: 0 1px 0 var(--line);
  --shadow-card: var(--shadow-record);
  --shadow-raised: var(--shadow-record);
  --shadow-control: var(--shadow-record);
  --page-max: 1280px;
  --gutter: 32px;
  --gutter-phone: 16px;
  --header: 52px;
  --card-min: 280px;
}
.display { font-family: var(--font-display); font-size: 64px; line-height: 68px; font-weight: 300; letter-spacing: -0.025em; font-variation-settings: "FLAR" 100; }
.h1 { font-family: var(--font-display); font-size: 48px; line-height: 54px; font-weight: 300; letter-spacing: -0.02em; font-variation-settings: "FLAR" 100; }
.h2 { font-family: var(--font-display); font-size: 34px; line-height: 40px; font-weight: 300; letter-spacing: -0.015em; font-variation-settings: "FLAR" 100; }
.stat { font-family: var(--font-display); font-size: 64px; line-height: 64px; font-weight: 400; letter-spacing: -0.02em; font-variation-settings: "FLAR" 100; }
.h3 { font-family: var(--font-sans); font-size: 22px; line-height: 28px; font-weight: 600; letter-spacing: -0.01em; font-variation-settings: "FLAR" 0; }
.h4 { font-family: var(--font-sans); font-size: 16px; line-height: 22px; font-weight: 600; letter-spacing: -0.005em; font-variation-settings: "FLAR" 0; }
.lead { font-family: var(--font-sans); font-size: 21px; line-height: 32px; font-weight: 300; letter-spacing: 0; font-variation-settings: "FLAR" 0; }
.body { font-family: var(--font-sans); font-size: 17px; line-height: 28px; font-weight: 300; letter-spacing: 0; font-variation-settings: "FLAR" 0; }
.body-sm { font-family: var(--font-sans); font-size: 15px; line-height: 24px; font-weight: 300; letter-spacing: 0; font-variation-settings: "FLAR" 0; }
.label { font-family: var(--font-sans); font-size: 14px; line-height: 20px; font-weight: 500; letter-spacing: 0; font-variation-settings: "FLAR" 0; }
.eyebrow { font-family: var(--font-sans); font-size: 13px; line-height: 16px; font-weight: 500; letter-spacing: 0; font-variation-settings: "FLAR" 0; }
.tag { font-family: var(--font-sans); font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: 0; font-variation-settings: "FLAR" 0; }
.caption { font-family: var(--font-sans); font-size: 12px; line-height: 16px; font-weight: 400; letter-spacing: 0; font-variation-settings: "FLAR" 0; }
@media (max-width: 640px) {
  .display { font-size: 40px; line-height: 44px; }
  .h1 { font-size: 32px; line-height: 38px; }
  .h2 { font-size: 26px; line-height: 32px; }
  .stat { font-size: 48px; line-height: 48px; }
  .lead { font-size: 18px; line-height: 28px; }
}

/* The Commissioner shell shared by the blind-spot diagnostic and the live risk scan (both builds put it
   right after assets/brand/tokens.css): the header, the black footer, buttons, the page rule. The
   same look as greppet.com (site/web/src/assets/css/site.css, site/web/tools/layout.mjs), without the
   mega-menus and without any script. Every colour is a token. */
:root { --font-sans: Commissioner, system-ui, sans-serif; --font-display: Commissioner, system-ui, sans-serif; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header: lockup left, plain nav in the middle, one button right, a hairline underneath. */
.site-header { position: relative; z-index: 20; background: var(--surface); border-bottom: 1px solid var(--line); font-family: var(--font-sans); }
.hdr-in { display: flex; align-items: center; gap: var(--space-6); height: 64px; width: min(100% - 64px, 1312px); margin-inline: auto; }
.hdr-logo { display: inline-flex; align-items: center; flex: none; text-decoration: none; }
.hdr-logo img { display: block; height: 26px; width: auto; }
.hdr-nav { flex: 1; display: flex; justify-content: center; }
.hdr-nav ul { display: flex; gap: var(--space-2); list-style: none; margin: 0; padding: 0; }
.nav-a { font-family: var(--font-sans); font-size: 14px; line-height: 20px; font-weight: 500; color: var(--ink); text-decoration: none; padding: 6px var(--space-3); border-radius: var(--radius-hover); display: inline-flex; align-items: center; transition: background-color .15s ease; }
.nav-a:hover { background: var(--hover); color: var(--ink); }
.hdr-cta { margin-left: auto; }
/* "Your results" (F46, as on greppet.com): shown by tools.js only when this visit has a result. */
.hdr-results { margin-left: auto; font-size: 14px; line-height: 20px; font-weight: 500; color: var(--ink); text-decoration: none; padding: 6px var(--space-3); border-radius: var(--radius-hover); white-space: nowrap; transition: background-color .15s ease; }
.hdr-results:hover { background: var(--hover); color: var(--ink); }
.hdr-results[hidden] { display: none; }
.hdr-results:not([hidden]) + .hdr-cta { margin-left: 0; }

/* The site's eyebrow (F40, F42: not the monospace labels): a small amber square and medium text. */
.ge-eyebrow { display: inline-flex; align-items: center; gap: var(--space-2); font-family: var(--font-sans); font-size: 13px; line-height: 16px; font-weight: 500; color: var(--accent-text); margin: 0; letter-spacing: 0; text-transform: none; }
.ge-eyebrow::before { content: ""; width: 8px; height: 8px; background: var(--accent); flex: none; }
.site-header :focus-visible, .ge-footer :focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* Buttons: ink, softly rounded; amber with ink text on hover. */
.ge-btn { font-family: var(--font-sans); font-size: 14px; line-height: 20px; font-weight: 500; height: 44px; padding: 0 var(--space-6); border-radius: var(--radius-control); border: 1px solid transparent; display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); cursor: pointer; text-decoration: none; white-space: nowrap; transition: background-color .2s ease, color .2s ease, border-color .2s ease; }
.ge-btn-primary { background: var(--ink); color: var(--surface); }
.ge-btn-primary:hover { background: var(--accent); color: var(--on-accent); }
.ge-btn-sm { height: 36px; padding: 0 var(--space-4); }

/* The page rule: a hairline down the left of the content, as on greppet.com. */
.wrap { width: min(100% - 128px, 1200px); margin-inline: auto; }
.ge-page-rule { border-left: 1px solid var(--line); padding-left: 52px; }

/* Footer: black on every page. */
.ge-footer { background: var(--band); color: var(--on-band); padding: var(--space-16) 0 var(--space-8); margin: 0; font-family: var(--font-sans); font-weight: 300; font-variation-settings: "FLAR" 0; }
.ge-footer .ge-page-rule { border-left-color: var(--line-on-band); }
.ge-footer-top { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--space-12); }
.ge-footer-brand { display: flex; flex-direction: column; gap: var(--space-4); align-items: flex-start; }
.ge-footer-brand img { display: block; height: 26px; width: auto; }
.ge-footer-brand p { margin: 0; font-size: 14px; line-height: 22px; font-weight: 300; color: var(--on-band-muted); max-width: 34ch; }
.ge-footer-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-8); }
.ge-footer-col { display: flex; flex-direction: column; gap: var(--space-2); }
.ge-footer .ge-footer-h { margin: 0 0 var(--space-2); font-family: var(--font-sans); font-size: 14px; line-height: 20px; font-weight: 500; letter-spacing: 0; color: var(--on-band); font-variation-settings: "FLAR" 0; }
.ge-footer a { color: var(--on-band-muted); font-size: 14px; line-height: 20px; font-weight: 400; text-decoration: none; transition: color .15s ease; }
.ge-footer a:hover { color: var(--on-band); }
.ge-footer a:focus-visible { outline: 2px solid var(--accent-on-band); outline-offset: 2px; }
.ge-footer-note { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--space-3) var(--space-6); margin-top: var(--space-12); font-size: 12px; line-height: 16px; color: var(--on-band-muted); }
.ge-footer-note a { font-size: 12px; line-height: 16px; color: var(--on-band); }
.ge-footer-legal { display: flex; justify-content: space-between; align-items: center; gap: var(--space-6); flex-wrap: wrap; margin-top: var(--space-6); padding-top: var(--space-6); border-top: 1px solid var(--line-on-band); }
.ge-footer-top + .ge-footer-legal { margin-top: var(--space-16); }
.ge-footer-legal .ge-caption { font-size: 12px; line-height: 16px; font-weight: 400; color: var(--on-band-muted); }
.ge-footer-legal nav { display: flex; gap: var(--space-6); flex-wrap: wrap; }
.ge-footer-legal a { font-size: 12px; line-height: 16px; }

@media (max-width: 960px) {
  .hdr-nav { display: none; }
  .ge-footer-top { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .hdr-in, .wrap { width: calc(100% - 32px); }
  .hdr-in { gap: var(--space-4); }
  .hdr-results { padding: 6px var(--space-1); }
  /* "Book a free 20-minute walkthrough" (25 Nov) is too long for one line beside the logo on a phone: two lines. */
  .hdr-cta { flex: 0 1 auto; min-width: 0; height: auto; min-height: 40px; padding-block: 4px; white-space: normal; text-align: center; line-height: 16px; max-width: 14em; }
  .ge-page-rule { padding-left: 16px; }
  .ge-footer { padding: var(--space-12) 0 var(--space-6); }
  .ge-footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-8) var(--space-4); }
  .ge-footer-legal { flex-direction: column; align-items: flex-start; }
  .ge-footer-top + .ge-footer-legal { margin-top: var(--space-12); }
}
@media print { .site-header, .ge-footer { display: none !important; } }
@media (prefers-reduced-motion: reduce) { .nav-a, .ge-btn, .ge-footer a, .hdr-results { transition: none; } }

/* F54 (30 Nov 2026): headings, buttons and links never break inside a word or at their own hyphen, at any width
   from 360 px (Peter's new rule). Long addresses in body text may still wrap. */
h1, h2, h3, a, button, .ge-btn { overflow-wrap: normal; word-break: normal; hyphens: manual; }

/* The site header, one file for the website AND the two free tools (F58, Peter's follow-up list, 30 Nov 2026):
   site/web/tools/build.mjs appends it to site.css; scripts/scan-build.ts and scripts/diagnostic-build.ts add it to the
   tools' stylesheets, so /scan/, /diagnostic and the results page have the same sticky header with menus (F30: "all
   pages"). Its script is site/web/src/assets/js/header.js. Moved here from site.css unchanged, except where noted. */
.ge-nav { display: flex; gap: var(--space-2); font-size: 14px; font-weight: 500; list-style: none; margin: 0; padding: 0; }
/* Header: always visible (F30, 27 Nov 2026: it holds the main button). Anchors land below it. */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--surface); border-bottom: 1px solid var(--line); }
html { scroll-padding-top: 80px; }
/* "Your results" (F46): a quiet text link, shown by site.js only when this visit has a tool result. */
.hdr-results { font-size: 14px; line-height: 20px; font-weight: 500; color: var(--ink); text-decoration: none; padding: 6px var(--space-3); border-radius: var(--radius-hover); white-space: nowrap; }
.hdr-results:hover { background: var(--hover); }
.hdr-results[hidden], .mm-results[hidden] { display: none; }
.hdr-in { display: flex; align-items: center; gap: var(--space-6); height: 64px; width: min(100% - 64px, 1312px); margin-inline: auto; }
.hdr-logo img { height: 26px; width: auto; }
.hdr-nav { flex: 1; display: flex; justify-content: center; }
.nav-a { font: inherit; font-size: 14px; line-height: 20px; font-weight: 500; color: var(--ink); text-decoration: none; padding: 6px var(--space-3); border-radius: var(--radius-hover); border: 0; background: transparent; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; transition: background-color .15s ease; }
.nav-a:hover, .nav-a[aria-current], .nav-a[data-current], .nav-btn[aria-expanded="true"] { background: var(--hover); }
.nav-btn svg { transition: transform .2s ease; }
.nav-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.mega { position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-record); }
.mega-in { width: min(100% - 128px, 1200px); margin-inline: auto; padding: var(--space-8) 0 var(--space-12); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-8); }
.mega-t { font-size: 12px; line-height: 16px; font-weight: 500; color: var(--ink-muted); margin-bottom: var(--space-3); }
.mega ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-1); }
.mega a { display: flex; flex-direction: column; gap: 2px; padding: var(--space-2) var(--space-3); margin-left: calc(-1 * var(--space-3)); border-radius: var(--radius-hover); text-decoration: none; }
.mega a:hover { background: var(--hover); }
.mega-l { font-size: 15px; line-height: 22px; font-weight: 500; color: var(--ink); }
.mega-d { font-size: 13px; line-height: 18px; font-weight: 300; color: var(--ink-muted); }
.hdr-burger { display: none; width: 44px; height: 44px; border: 1px solid var(--line-control); border-radius: var(--radius-control); background: transparent; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.hdr-burger span { width: 18px; height: 1.5px; background: var(--ink); transition: transform .2s ease; }
.hdr-burger[aria-expanded="true"] span:first-child { transform: translateY(3.25px) rotate(45deg); }
.hdr-burger[aria-expanded="true"] span:last-child { transform: translateY(-3.25px) rotate(-45deg); }
.mmenu { border-top: 1px solid var(--line); background: var(--surface); max-height: calc(100vh - 64px); overflow-y: auto; }
.mm-in { width: calc(100% - 32px); margin-inline: auto; padding: var(--space-4) 0 var(--space-8); display: flex; flex-direction: column; }
.mm-group, .mm-link { border-bottom: 1px solid var(--line); }
.mm-group summary, .mm-link { display: flex; justify-content: space-between; align-items: center; padding: var(--space-4) 0; font-size: 17px; font-weight: 500; color: var(--ink); text-decoration: none; cursor: pointer; list-style: none; }
.mm-link[aria-current] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.mm-group summary::-webkit-details-marker { display: none; }
.mm-group summary::after { content: "+"; font-weight: 300; font-size: 22px; }
.mm-group[open] summary::after { content: "–"; }
.mm-group ul { list-style: none; margin: 0 0 var(--space-4); padding: 0; display: flex; flex-direction: column; gap: var(--space-1); }
.mm-group a { display: block; padding: var(--space-2) 0; color: var(--ink-muted); text-decoration: none; font-size: 15px; }
.mm-cta { margin-top: var(--space-6); justify-content: center; }
/* Phone menu details (moved from site.css, 26 Nov mobile fixes): the "+" and "–" are not read out; the menu fits iOS. */
.mm-group summary::after { content: "+" / ""; }
.mm-group[open] summary::after { content: "–" / ""; }
.mmenu { max-height: calc(100dvh - 64px); overscroll-behavior: contain; }
.mega-l { text-wrap: balance; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* F58c: when this tab has a result, a small amber dot on "Free tools" (and on its phone group); "Your results" is
   inside the menu. Shown by header.js from the one session-storage key the tools write. */
.nav-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-left: 6px; vertical-align: 2px; }
.nav-dot[hidden] { display: none; }
.has-mega .nav-btn { white-space: nowrap; }
.hdr-cta { white-space: nowrap; flex: none; }
/* F58: the full bar (logo, seven items, the walkthrough button) needs about 1180 px; below that the phone menu takes
   over, so the button is never cut off at the right edge. */
@media (max-width: 1199px) {
  .hdr-nav, .hdr-cta { display: none; }
  .hdr-burger { display: inline-flex; margin-left: auto; }
}
@media (max-width: 640px) {
  .hdr-in { width: calc(100% - 32px); }
}

/* The lead magnet's styles, in one file: the pages here, the e-mails, and the website embed
   (npm run lead:embed). The flow never depends on them, so the website redesign can restyle the
   form by replacing this file. Colours, sizes and spacing are the design system's tokens
   (assets/brand/tokens.css, docs/design/system.md); no colour literals. */
* { box-sizing: border-box; }
body { margin: 0; font-family: var(--font); font-size: var(--body-lg-size); line-height: var(--body-lg-line); color: var(--ink); background: var(--canvas); }
main { max-width: 640px; margin: 0 auto; padding: var(--space-12) var(--gutter) var(--space-12); }
.mark { font-weight: 700; font-size: var(--title-size); letter-spacing: -0.01em; }
.rule { width: 56px; border-top: 3px solid var(--accent); margin: var(--space-2) 0 var(--space-8); }
h1 { font-size: var(--page-title-size); font-weight: var(--page-title-weight); line-height: var(--page-title-line); letter-spacing: var(--page-title-tracking); margin: 0 0 var(--space-3); }
h2 { font-size: var(--heading-size); font-weight: var(--heading-weight); margin: var(--space-8) 0 var(--space-3); }
.lede { color: var(--muted); margin: 0 0 var(--space-8); }
.card { background: var(--surface); border-radius: var(--radius-l); box-shadow: var(--shadow-card); padding: var(--space-8); }
label.f { display: block; font-weight: 600; margin: 0 0 var(--space-2); }
.hint { display: block; font-weight: 400; color: var(--muted); font-size: var(--small-size); }
input[type=text], input[type=email] { width: 100%; font: inherit; padding: var(--space-3) var(--space-4); border: 1px solid var(--rule-strong); border-radius: var(--radius-m); background: var(--surface); color: var(--ink); margin: 0 0 var(--space-6); }
input:focus-visible, button:focus-visible, a:focus-visible { outline: 3px solid var(--accent-tint-line); outline-offset: 2px; }
.err { color: var(--accent-text); font-size: var(--small-size); margin: calc(-1 * var(--space-5)) 0 var(--space-5); font-weight: 600; }
.consent { background: var(--surface-2); border-radius: var(--radius-m); padding: var(--space-5) var(--space-6); margin: 0 0 var(--space-5); font-size: var(--small-size); line-height: var(--small-line); }
.consent h2 { font-size: var(--body-size); margin: 0 0 var(--space-2); }
.consent ul { margin: 0; padding-left: var(--space-5); }
.consent .more { margin: var(--space-2) 0 0; }
.consent li { margin: 0 0 var(--space-1); }
.tick { display: flex; gap: var(--space-3); align-items: flex-start; margin: 0 0 var(--space-6); font-size: var(--body-size); }
.tick input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--accent-strong); }
button { font: inherit; font-weight: 600; background: var(--accent-strong); color: var(--on-accent); border: 0; border-radius: var(--radius-m); padding: var(--space-3) var(--space-6); cursor: pointer; }
button:hover { background: var(--accent-strong-hover); }
button.quiet { background: var(--ink); }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.small { font-size: var(--small-size); color: var(--muted); }
a { color: var(--ink); }
.sign { border-top: 1px solid var(--rule); padding: var(--space-5) 0; }
.sign:first-of-type { border-top: 0; padding-top: 0; }
.sign .what { font-weight: 600; margin: 0 0 var(--space-2); }
.sign blockquote { margin: 0 0 var(--space-2); padding: 0 0 0 var(--space-4); border-left: 3px solid var(--accent-tint-line); color: var(--ink); }
.pill { display: inline-block; font-size: var(--label-size); font-weight: 600; background: var(--accent-tint); color: var(--accent-text); border-radius: var(--radius-pill); padding: 1px 10px; margin-left: var(--space-2); }
ol.qs { padding-left: var(--space-5); margin: 0; }
ol.qs li { margin: 0 0 var(--space-2); }
footer { margin-top: var(--space-10); }
@media (max-width: 640px) { main { padding: var(--space-8) var(--gutter-phone); } .card { padding: var(--space-5); } h1 { font-size: 26px; } }

/* Test mode and the reviewer's view (staging, dev): never on the public website. */
.testmode { background: var(--amber-tint); color: var(--amber-text); border-radius: var(--radius-m); padding: var(--space-3) var(--space-5); margin: 0 0 var(--space-6); font-size: var(--small-size); }
.review { margin-top: var(--space-10); border-top: 3px solid var(--rule-strong); padding-top: var(--space-6); }
.review table { width: 100%; border-collapse: collapse; font-size: var(--small-size); line-height: var(--small-line); margin: 0 0 var(--space-6); }
.review th, .review td { text-align: left; vertical-align: top; border-bottom: 1px solid var(--rule); padding: var(--space-2) var(--space-2) var(--space-2) 0; }
.review th { font-weight: 600; color: var(--muted); }
.review td.q { width: 45%; }
.lang { float: right; font-size: var(--small-size); }
.card.thin, .card.mentions { margin-top: var(--space-6); }
.card.thin h2 { margin-top: 0; }

/* The live risk scan's own styles. scripts/scan-build.ts puts them last, after the Commissioner tokens
   (assets/brand/tokens.css), the shared shell (website/diagnostic/shell.css) and the lead magnet's
   styles (src/lead-magnet/lead.css), so they restyle those to greppet.com's look: the form like the
   home page's "Scan one key account" block, titles in Commissioner Light with full flare. */
[hidden] { display: none !important; }
body { margin: 0; background: var(--surface); color: var(--ink); font-family: var(--font-sans); font-weight: 300; font-size: 17px; line-height: 28px; font-variation-settings: "FLAR" 0; -webkit-font-smoothing: antialiased; }
a { color: var(--ink); font-weight: 500; text-decoration: underline; text-decoration-color: var(--line-control); text-underline-offset: 3px; }
a:hover { color: var(--ink-muted); }
:focus-visible, input:focus-visible, button:focus-visible, a:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.ge-skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: var(--surface); padding: var(--space-2) var(--space-4); border-radius: var(--radius-control); text-decoration: none; }
.ge-skip:focus { left: 8px; color: var(--surface); }
[tabindex="-1"]:focus { outline: none; }

/* The content column: on the page rule, as on greppet.com. */
.scan-main { max-width: none; margin: 0 auto; padding: var(--space-16) 0 var(--space-24) 52px; min-height: 50vh; }
.scan-main > section, .scan-main > noscript, .scan-main > .err { max-width: 680px; }
.scan-main h1 { font-family: var(--font-display); font-weight: 300; font-size: 48px; line-height: 54px; letter-spacing: -0.02em; font-variation-settings: "FLAR" 100; color: var(--ink); margin: 0 0 var(--space-4); text-wrap: balance; }
.scan-main h2 { font-family: var(--font-display); font-weight: 300; font-size: 34px; line-height: 40px; letter-spacing: -0.015em; font-variation-settings: "FLAR" 100; color: var(--ink); margin: var(--space-12) 0 var(--space-4); }
.scan-main > section p { margin: 0 0 var(--space-4); }
.lede { font-size: 21px; line-height: 32px; font-weight: 300; color: var(--ink-muted); margin: 0 0 var(--space-6); max-width: 40ch; }
.small { font-size: 15px; line-height: 24px; font-weight: 300; color: var(--ink-muted); }

/* The form page: the words on the left, the form on the beige column on the right. */
.scan-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-12); align-items: start; }
.scan-copy { padding-top: var(--space-6); }
.coverage { display: flex; gap: var(--space-3); align-items: baseline; margin: 0 0 var(--space-6); font-size: 15px; line-height: 24px; font-weight: 400; color: var(--ink); max-width: 44ch; }
.coverage::before { content: ""; width: 6px; height: 6px; background: var(--accent); flex: none; transform: translateY(-2px); }
.scan-panel { background: var(--surface-sunk); border-radius: var(--radius-graphic); padding: var(--space-12); }
.scan-panel .card { background: transparent; box-shadow: none; border-radius: 0; padding: 0; }
.scan-panel > section h2 { margin-top: 0; }
.keep { margin: var(--space-6) 0 0; font-size: 13px; line-height: 20px; }

/* Fields, as the design system's Input: label above, 44px, white, a 1px control border. */
label.f { display: block; font-size: 14px; line-height: 20px; font-weight: 500; color: var(--ink); margin: 0 0 var(--space-2); }
.hint { display: block; font-size: 12px; line-height: 16px; font-weight: 400; color: var(--ink-muted); margin-top: 2px; }
input[type=text], input[type=email] { display: block; width: 100%; height: 44px; font-family: var(--font-sans); font-size: 15px; font-weight: 400; padding: 0 var(--space-4); border: 1px solid var(--line-control); border-radius: var(--radius-control); background: var(--surface-raised); color: var(--ink); margin: 0 0 var(--space-6); }
input[type=text]:focus-visible, input[type=email]:focus-visible { border-color: var(--ink); }
input[aria-invalid="true"] { border-color: var(--signal-differs); }
.scan-main .err { color: var(--signal-differs); font-size: 13px; line-height: 18px; font-weight: 500; margin: calc(-1 * var(--space-4)) 0 var(--space-5); }
.scan-main > noscript .err, .scan-main > .err { margin: 0 0 var(--space-6); }

/* F60 (30 Nov 2026): one short line under the email field, then "What we keep, and why" folded (a <details>). */
.consent-short { margin: var(--space-3) 0 var(--space-2); font-size: 14px; line-height: 20px; color: var(--ink); }
details.consent > summary { cursor: pointer; font-size: 14px; line-height: 20px; font-weight: 600; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; list-style: none; padding: var(--space-1) 0; }
details.consent > summary::-webkit-details-marker { display: none; }
details.consent > summary::after { content: " +" / ""; font-weight: 400; }
details.consent[open] > summary::after { content: " –" / ""; }
details.consent[open] > summary { margin-bottom: var(--space-3); }
details.consent:not([open]) { padding-bottom: 0; }
/* The consent text: open, under a hairline, no box. */
.consent { background: transparent; border-top: 1px solid var(--line-control); border-radius: 0; padding: var(--space-5) 0 0; margin: var(--space-2) 0 var(--space-5); font-size: 14px; line-height: 22px; font-weight: 300; color: var(--ink-muted); }
.scan-main .consent h2 { font-family: var(--font-sans); font-size: 14px; line-height: 20px; font-weight: 600; letter-spacing: 0; font-variation-settings: "FLAR" 0; color: var(--ink); margin: 0 0 var(--space-2); }
.consent ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.consent li { position: relative; padding-left: var(--space-5); margin: 0; }
.consent li::before { content: ""; position: absolute; left: 2px; top: 9px; width: 6px; height: 6px; background: var(--accent); }
.consent .more { margin: var(--space-3) 0 0; font-size: 14px; }
.tick { display: flex; gap: var(--space-3); align-items: flex-start; margin: 0 0 var(--space-6); font-size: 15px; line-height: 22px; font-weight: 400; color: var(--ink); }
.tick input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--ink); }

/* Buttons, as the design system's primary and secondary buttons. */
button { font-family: var(--font-sans); font-size: 14px; line-height: 20px; font-weight: 500; height: 44px; padding: 0 var(--space-6); border: 1px solid transparent; border-radius: var(--radius-control); background: var(--ink); color: var(--surface); cursor: pointer; transition: background-color .2s ease, color .2s ease, border-color .2s ease; }
button:hover { background: var(--accent); color: var(--on-accent); }
button.quiet { background: transparent; color: var(--ink); border-color: var(--line-control); }
button.quiet:hover { background: var(--hover); border-color: var(--ink); color: var(--ink); }
button[disabled] { opacity: 0.6; cursor: progress; }
/* The submit button with the one limits line beside it (under it on a narrow column). */
.submit-row { display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-5); align-items: center; margin: 0 0 var(--space-4); }
.submit-row button { flex: none; }
.submit-row .limits { margin: 0; flex: 1 1 18ch; font-size: 14px; line-height: 20px; }

/* The waiting page. */
.dots { display: inline-block; width: 12px; height: 12px; margin-right: 8px; border-radius: 50%; border: 2px solid var(--ink); border-right-color: transparent; vertical-align: -1px; animation: scan-spin 1s linear infinite; }
@keyframes scan-spin { to { transform: rotate(360deg); } }

/* The report (built by the server, src/lead-magnet/pages.ts). */
#scan-report-body { max-width: 680px; }
#scan-report-body h2 { font-family: var(--font-sans); font-size: 22px; line-height: 28px; font-weight: 600; letter-spacing: -0.01em; font-variation-settings: "FLAR" 0; margin: var(--space-12) 0 var(--space-4); }
.sign { border-top: 1px solid var(--line); padding: var(--space-5) 0; }
.sign .what { font-weight: 600; }
.sign blockquote { border-left: 3px solid var(--accent); color: var(--ink); font-weight: 400; }
.pill { font-size: 12px; line-height: 16px; font-weight: 500; background: var(--accent-tint); color: var(--ink); border-radius: 0; padding: var(--space-1) var(--space-2); }
.card.thin, .card.mentions { background: var(--surface-sunk); box-shadow: none; border-radius: var(--radius-graphic); }
ol.qs { padding-left: var(--space-5); }

/* The footer row: the privacy link and the cookies line (F48). */
.ge-footer-note .scan-foot { margin: 0; }
.ge-footer-note a { font-weight: 400; text-decoration: none; }

/* The eyebrow sits on the page rule, as on greppet.com (its square on the line). */
.scan-copy > .ge-eyebrow, .scan-main > section > .ge-eyebrow { margin: 0 0 var(--space-4) -56.5px; }

/* The steps (the V5 flow, 27 Nov): one field at a time, a count above, Next and Back under it.
   Without script the fieldsets all show as one form. No sliding or fading: the step simply changes. */
fieldset.step { border: 0; margin: 0; padding: 0; min-width: 0; }
.step-count { margin: 0 0 var(--space-5); font-size: 13px; line-height: 16px; font-weight: 500; color: var(--ink-muted); }
.is-steps fieldset.step[hidden] { display: none !important; }
.step-nav { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }
.step-nav .submit-row { order: 2; flex: 1 1 100%; margin: 0; }
.step-nav .step-back { order: 1; }
.step-nav .step-next { order: 0; }
.is-steps fieldset.step:not([hidden]) { animation: scan-step-in .2s ease-out; }
@keyframes scan-step-in { from { opacity: 0.4; } to { opacity: 1; } }
#state-sent button { margin-top: var(--space-2); }

/* The report's next step (F47): one walkthrough button, then the way to another scan and to "Your results". */
.next-step { max-width: 680px; margin: var(--space-12) 0 var(--space-8); padding: var(--space-8); background: var(--surface-sunk); border-radius: var(--radius-graphic); }
.scan-main .next-step h2 { font-family: var(--font-sans); font-size: 22px; line-height: 28px; font-weight: 600; letter-spacing: -0.01em; font-variation-settings: "FLAR" 0; margin: 0 0 var(--space-2); }
.next-step p { margin: 0 0 var(--space-4); }
.next-step .next-row { margin: var(--space-5) 0; }
.next-step .ge-btn { color: var(--surface); text-decoration: none; }
.next-step .ge-btn:hover { color: var(--on-accent); }
.next-step .next-links { margin: 0; font-size: 15px; }

@media (max-width: 960px) {
  .scan-split { grid-template-columns: 1fr; gap: var(--space-8); }
  .scan-copy { padding-top: 0; }
}
@media (max-width: 640px) {
  body { font-size: 16px; line-height: 26px; }
  .scan-main { padding: var(--space-12) 0 var(--space-16) 16px; }
  .scan-main h1 { font-size: 32px; line-height: 38px; }
  .scan-main h2 { font-size: 26px; line-height: 32px; }
  .lede { font-size: 18px; line-height: 28px; }
  .scan-panel { padding: var(--space-6) var(--space-4); border-radius: var(--radius-graphic); }
  .scan-copy > .ge-eyebrow, .scan-main > section > .ge-eyebrow { margin-left: -20.5px; }
  .next-step { padding: var(--space-6) var(--space-4); }
}
/* F59 (30 Nov 2026): the first result, in the panel. The walkthrough is the amber button (the site's ge-btn-accent);
   inside the panel it may wrap onto two lines rather than run past a 360 px phone (its "20‑minute" has a
   non-breaking hyphen, so no word breaks). */
.scan-panel .scan-basic-signs { margin: var(--space-4) 0; }
/* A source link stays on one line (F54: a website's name never breaks at its hyphens): it moves to the next line
   whole, and a very long address ends in "…" (the link itself is the full address). */
.scan-basic-src a { display: inline-block; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; }
.scan-basic-host { display: block; font-size: 22px; line-height: 30px; font-weight: 500; }
@media (max-width: 640px) { .scan-basic-host { font-size: 19px; line-height: 26px; } }
.scan-panel .scan-basic-more { font-weight: 600; margin: var(--space-4) 0 var(--space-2); }
.scan-panel .next-step { max-width: none; margin: var(--space-8) 0 var(--space-4); padding: 0; background: transparent; border-radius: 0; }
.scan-panel .next-step p { margin: 0 0 var(--space-4); }
.scan-panel .next-step .ge-btn { white-space: normal; height: auto; min-height: 44px; padding: var(--space-3) var(--space-6); text-align: center; }
.ge-btn-accent, .next-step .ge-btn-accent { background: var(--accent); color: var(--on-accent); }
.ge-btn-accent:hover, .next-step .ge-btn-accent:hover { background: var(--ink); color: var(--surface); }
.scan-panel .next-links { margin: var(--space-4) 0 0; font-size: 15px; }
.scan-email { margin-top: var(--space-8); padding-top: var(--space-6); border-top: 1px solid var(--line); }
.scan-email h3 { font-family: var(--font-sans); font-size: 20px; line-height: 26px; font-weight: 600; margin: 0 0 var(--space-4); }
/* Touch screens and below 1024 px: form text 16 px, or iOS Safari zooms the page into the field (mobile test, 26 Nov 2026). */
@media (max-width: 1023px), (pointer: coarse) { input[type=text], input[type=email] { font-size: 16px; } }
@media (prefers-reduced-motion: reduce) { .dots { animation: none; } button { transition: none; } .is-steps fieldset.step:not([hidden]) { animation: none; } }
