/* Feelet — site styles
   Layout concept: a dark "instrument" hero (the meter + the stamp), then light customs-form sections
   on --paper, with ink bands for the pilot and footer. Mono for anything you would read off an invoice. */

:root {
  /* Brand tokens (brief, part 2) */
  --paper: #EEF2F0;
  --ink: #14211D;
  --signal: #FFC629;
  --stamp: #D7382B;
  --cleared: #2F8F5B;
  --steel: #5E6B66;

  /* Roles */
  --bg: var(--paper);
  --fg: var(--ink);
  --surface: #FBFCFB;
  --surface-2: #E2E8E5;
  --line: #C6D0CB;
  --muted: #4D5A55;
  --stamp-text: #B42318;        /* small red text, AA on paper and surface */
  --cleared-text: #22704A;      /* small green text, AA on paper and surface */
  --stamp-tint: rgba(215, 56, 43, 0.09);
  --cleared-tint: rgba(47, 143, 91, 0.10);
  --signal-hover: #FFD45C;
  --focus: var(--ink);
  --shadow: 0 1px 0 rgba(20, 33, 29, 0.06), 0 18px 40px -24px rgba(20, 33, 29, 0.35);

  /* Dark bands (hero, header, pilot, footer) are dark in both themes */
  --band-bg: #14211D;
  --band-fg: #E6ECE9;
  --band-muted: #A9B5B0;
  --band-line: #2C3B35;
  --band-panel: #18251F;
  --band-cell: #0C1412;
  --band-stamp: #F0574A;
  --band-cleared: #4CC283;
  --band-bad-text: #FF9A90;

  --display: "Big Shoulders Stencil", "Big Shoulders Stencil Display", Impact, "Arial Narrow Bold", sans-serif;
  --sans: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --gutter: clamp(16px, 4.5vw, 64px);
  --header-h: 72px;
  --radius: 4px;
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #101A17;
    --fg: #E6ECE9;
    --surface: #17241F;
    --surface-2: #1E2D27;
    --line: #2E3E37;
    --muted: #A3B0AA;
    --steel: #93A19B;
    --stamp: #F0574A;
    --cleared: #4CC283;
    --stamp-text: #FF8A7F;
    --cleared-text: #5FD394;
    --stamp-tint: rgba(240, 87, 74, 0.14);
    --cleared-tint: rgba(76, 194, 131, 0.13);
    --focus: #E6ECE9;
    --shadow: 0 1px 0 rgba(0, 0, 0, 0.3), 0 18px 40px -24px rgba(0, 0, 0, 0.8);
    --band-bg: #0A1310;
    --band-panel: #13201B;
    --band-cell: #060D0B;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #101A17;
  --fg: #E6ECE9;
  --surface: #17241F;
  --surface-2: #1E2D27;
  --line: #2E3E37;
  --muted: #A3B0AA;
  --steel: #93A19B;
  --stamp: #F0574A;
  --cleared: #4CC283;
  --stamp-text: #FF8A7F;
  --cleared-text: #5FD394;
  --stamp-tint: rgba(240, 87, 74, 0.14);
  --cleared-tint: rgba(76, 194, 131, 0.13);
  --focus: #E6ECE9;
  --shadow: 0 1px 0 rgba(0, 0, 0, 0.3), 0 18px 40px -24px rgba(0, 0, 0, 0.8);
  --band-bg: #0A1310;
  --band-panel: #13201B;
  --band-cell: #060D0B;
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--band-bg); }
img, svg { max-width: 100%; }
img { height: auto; display: block; }
h1, h2, h3, h4 { margin: 0; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
code, .mono { font-family: var(--mono); }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--signal); color: var(--ink); padding: 10px 16px; font-weight: 700; border-radius: var(--radius); }
.skip-link:focus { top: calc(env(safe-area-inset-top, 0px) + 12px); }

:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.band :focus-visible, .site-header :focus-visible, .sheet :focus-visible, .site-footer :focus-visible { outline-color: var(--band-fg); }

.wrap {
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}

/* Text links underline from the left */
.link {
  color: inherit;
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1.5px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size .25s var(--ease-out);
  padding-bottom: 1px;
}
.link:hover, .link:focus-visible, .link[aria-current="true"] { background-size: 100% 1.5px; }
.link-u { color: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.link-u:hover { text-decoration-thickness: 2px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  border: 2px solid transparent; border-radius: var(--radius);
  font-family: var(--sans); font-size: 16px; font-weight: 700; line-height: 1.1;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .08s ease, background-color .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:active:not([aria-disabled="true"]):not(:disabled) { transform: translateY(1px); }
.btn-lg { min-height: 58px; padding: 0 28px; font-size: 18px; }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn-primary { background: var(--signal); color: var(--ink); box-shadow: inset 0 -3px 0 rgba(20, 33, 29, 0.22); }
.btn-primary:hover { background: var(--signal-hover); }
.btn-primary:active { box-shadow: inset 0 -1px 0 rgba(20, 33, 29, 0.22); }
.btn-outline { background: transparent; color: currentColor; border-color: currentColor; }
.btn-outline:hover { background: color-mix(in srgb, currentColor 8%, transparent); }
.btn-ghost { background: transparent; color: inherit; border-color: transparent; padding: 0 12px; }
.btn-ghost:hover { background: color-mix(in srgb, currentColor 8%, transparent); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; box-shadow: none; }
.btn:disabled:hover, .btn[aria-disabled="true"]:hover { background: var(--signal); }
.btn-outline:disabled:hover, .btn-outline[aria-disabled="true"]:hover { background: transparent; }
.btn svg { flex-shrink: 0; }

.copy-btn {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px;
  border: 1px solid var(--line); background: var(--surface); color: var(--fg);
  border-radius: var(--radius); font-size: 14px; font-weight: 600; cursor: pointer;
  transition: transform .08s ease, border-color .15s ease;
}
.copy-btn:hover { border-color: var(--fg); }
.copy-btn:active { transform: translateY(1px); }

/* ---------- Texture & dividers ---------- */
.corrugated { background-image: repeating-linear-gradient(90deg, rgba(230, 236, 233, 0.035) 0 2px, transparent 2px 16px); }
.hazard { height: 14px; background: repeating-linear-gradient(45deg, var(--signal) 0 14px, var(--ink) 14px 28px); }

/* ---------- Stamp ---------- */
.stamp {
  display: inline-flex; flex-direction: column; align-items: center;
  padding: 10px 20px 8px;
  border: 6px solid currentColor; outline: 2px solid currentColor; outline-offset: 5px; border-radius: 6px;
  font-family: var(--display); font-weight: 900; line-height: .9; letter-spacing: 2px; text-transform: uppercase;
  transform: rotate(var(--stamp-rot, -8deg));
  -webkit-mask-image: repeating-radial-gradient(circle at 40% 45%, #000 0 1.6px, rgba(0, 0, 0, .76) 1.6px 2.6px);
  mask-image: repeating-radial-gradient(circle at 40% 45%, #000 0 1.6px, rgba(0, 0, 0, .76) 1.6px 2.6px);
  user-select: none;
  white-space: nowrap;
}
.stamp-main { font-size: var(--stamp-size, 64px); }
.stamp-sub { font-family: var(--mono); font-weight: 600; font-size: calc(var(--stamp-size, 64px) * .19); letter-spacing: 3px; margin-top: 6px; }
.stamp--red { color: var(--stamp); }
.stamp--green { color: var(--cleared); }
.stamp--neutral { color: var(--steel); }
.stamp-land { animation: stamp-land .42s cubic-bezier(.2, 1.6, .4, 1) both, stamp-shake .16s linear .38s 1; }
@keyframes stamp-land {
  0% { opacity: 0; transform: rotate(var(--stamp-rot, -8deg)) scale(1.9); filter: blur(1px); }
  70% { opacity: 1; filter: none; }
  100% { opacity: 1; transform: rotate(var(--stamp-rot, -8deg)) scale(1); }
}
@keyframes stamp-shake { 0%, 100% { translate: 0 0; } 33% { translate: 2px 0; } 66% { translate: -2px 0; } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: var(--band-bg); color: var(--band-fg);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.site-header .wrap { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; transition: height .2s var(--ease-out); }
.site-header.is-compact { border-bottom-color: var(--band-line); }
.site-header.is-compact .wrap { height: 56px; }
.wordmark { display: inline-flex; align-items: center; color: inherit; text-decoration: none; min-height: 44px; }
.wordmark svg { height: 30px; width: auto; display: block; }
.site-header.is-compact .wordmark svg { height: 26px; }
.nav { display: flex; align-items: center; gap: 32px; }
.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a { display: inline-flex; align-items: center; min-height: 44px; font-size: 16px; font-weight: 500; }
.nav-links a .link { pointer-events: none; }
.menu-btn { display: none; }

@media (max-width: 860px) {
  .nav-links, .nav .btn { display: none; }
  .menu-btn {
    display: inline-flex; align-items: center; gap: 8px; min-height: 44px; min-width: 44px; padding: 0 12px;
    background: transparent; border: 1px solid var(--band-line); border-radius: var(--radius); color: var(--band-fg); cursor: pointer; font-weight: 600;
  }
}

/* Mobile sheet */
.sheet {
  position: fixed; inset: 0; z-index: 70;
  background: var(--band-bg); color: var(--band-fg);
  padding: calc(env(safe-area-inset-top, 0px) + 12px) max(16px, env(safe-area-inset-right, 0px)) calc(env(safe-area-inset-bottom, 0px) + 24px) max(16px, env(safe-area-inset-left, 0px));
  display: flex; flex-direction: column; gap: 24px;
  overflow-y: auto;
}
.sheet.is-open { animation: sheet-in .22s var(--ease-out) both; }
@keyframes sheet-in { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }
.sheet-top { display: flex; justify-content: space-between; align-items: center; min-height: 48px; }
.sheet-links { list-style: none; display: grid; border-top: 1px solid var(--band-line); }
.sheet-links a { display: flex; align-items: center; min-height: 64px; border-bottom: 1px solid var(--band-line); color: inherit; text-decoration: none; font-family: var(--display); font-weight: 800; font-size: 40px; text-transform: uppercase; }
.sheet .btn { width: 100%; }
.sheet-note { font-family: var(--mono); font-size: 13px; color: var(--band-muted); }
.sheet-backdrop { position: fixed; inset: 0; z-index: 65; background: rgba(0, 0, 0, .4); }

/* ---------- Hero ---------- */
.band { background: var(--band-bg); color: var(--band-fg); }
.hero { position: relative; overflow: hidden; }
.hero .wrap {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 540px); gap: clamp(32px, 5vw, 80px);
  align-items: center;
  padding-top: clamp(40px, 6vw, 80px); padding-bottom: clamp(56px, 7vw, 96px);
}
.hero-copy { display: flex; flex-direction: column; gap: 28px; min-width: 0; }
.hero-eyebrow { font-family: var(--mono); font-size: 13px; font-weight: 500; letter-spacing: .08em; color: var(--signal); }
.hero h1 {
  font-family: var(--display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(60px, 7.4vw, 108px); line-height: .9; letter-spacing: -.005em;
}
.hero h1 em { font-style: normal; color: var(--signal); }
.hero-sub { font-size: clamp(17px, 1.45vw, 20px); line-height: 1.55; color: #C3CDC9; max-width: 620px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-small { font-family: var(--mono); font-size: 13px; color: var(--band-muted); }

.hero-visual { position: relative; margin: 0; min-width: 0; }
.meter {
  background: var(--band-panel); border: 1px solid var(--band-line); border-radius: 6px;
  padding: 22px 24px 48px; font-family: var(--mono);
}
.meter-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 12px; letter-spacing: .1em; color: var(--band-muted); }
.meter-status { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.meter-dot { width: 8px; height: 8px; border-radius: 50%; background: #6F7C77; }
.meter.is-running .meter-dot { background: var(--signal); animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .3; } }
.meter-digits { display: flex; gap: 6px; margin-top: 14px; font-family: var(--display); font-weight: 800; font-size: clamp(56px, 6.4vw, 92px); line-height: 1; color: #6F7C77; transition: color .4s ease; font-variant-numeric: tabular-nums; }
.meter.is-running .meter-digits { color: var(--signal); }
.meter-cell { background: var(--band-cell); border-radius: 3px; min-width: .62em; padding: 6px 4px 2px; text-align: center; }
.meter-cell.is-sep { background: none; min-width: .2em; padding-inline: 0; }
.meter-cents { align-self: flex-end; font-size: .38em; padding-bottom: .2em; }
.meter-rate { margin-top: 10px; font-size: 13px; color: var(--band-muted); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.meter:not(.is-running) .meter-rate-val { text-decoration: line-through; }

.invoice {
  position: relative; margin: -30px 0 0 clamp(0px, 3vw, 36px);
  background: #FBFCFB; color: #14211D; border-radius: 3px; overflow: hidden;
  box-shadow: 0 24px 48px -20px rgba(0, 0, 0, .6);
  font-family: var(--mono); font-size: 13px;
  transform: rotate(1deg);
}
.invoice-watermark { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 900; font-size: 140px; color: rgba(94, 107, 102, .08); transform: rotate(-22deg); pointer-events: none; }
.invoice-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 16px 20px 12px; border-bottom: 2px solid #14211D; }
.invoice-carrier { font-family: var(--sans); font-weight: 700; font-size: 15px; }
.invoice-no { font-size: 11.5px; color: #4D5A55; margin-top: 2px; }
.invoice-tag { font-size: 10.5px; letter-spacing: .1em; padding: 3px 7px; border: 1px solid #5E6B66; color: #4D5A55; }
.invoice-rows { list-style: none; padding: 4px 20px 14px; }
.inv-row { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 7px 8px; margin: 0 -8px; border-bottom: 1px dashed #C6D0CB; transition: background-color .2s ease; }
.inv-row .inv-label { color: #4D5A55; }
.inv-row .inv-val { text-align: right; }
.inv-icon { font-weight: 700; text-align: center; }
.inv-row[data-state="ok"] .inv-icon { color: #23744A; }
.inv-row[data-state="ok"] .inv-icon::before { content: "✓"; }
.inv-row[data-state="bad"] { background: rgba(215, 56, 43, .09); }
.inv-row[data-state="bad"] .inv-icon, .inv-row[data-state="bad"] .inv-label, .inv-row[data-state="bad"] .inv-val { color: #B42318; font-weight: 600; }
.inv-row[data-state="bad"] .inv-icon::before { content: "✕"; }
.inv-row[data-state="pending"] .inv-icon::before { content: "·"; color: #9AA7A1; }
.inv-row.is-flash { animation: flash .5s ease 2; }
@keyframes flash { 50% { background: rgba(215, 56, 43, .28); } }
.invoice-total { display: flex; justify-content: space-between; align-items: baseline; padding: 0 20px 16px; }
.invoice-total b { font-family: var(--display); font-weight: 800; font-size: 30px; }
.scanline { position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--signal); box-shadow: 0 0 18px 5px rgba(255, 198, 41, .55); opacity: 0; pointer-events: none; }
.hero-stamp { position: absolute; left: 20%; top: 52%; --stamp-size: clamp(48px, 5vw, 72px); --stamp-rot: -9deg; color: var(--stamp); mix-blend-mode: multiply; z-index: 3; }
.hero-visual.is-pre .invoice { opacity: 0; transform: translateX(40px) rotate(2deg); }
.hero-visual .invoice { transition: opacity .45s var(--ease-out), transform .45s var(--ease-out); }
.hero-visual.stamp-hidden .hero-stamp { opacity: 0; }
.hero-visual.is-scanning .scanline { animation: scan 1.2s ease-in-out both; }
@keyframes scan { 0% { top: 0; opacity: 1; } 92% { opacity: 1; } 100% { top: 100%; opacity: 0; } }

@media (max-width: 1020px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); }
  .hero-visual { max-width: 560px; }
}
@media (max-width: 520px) {
  .hero h1 { font-size: clamp(52px, 15vw, 64px); }
  .hero-ctas .btn { width: 100%; }
  .meter { padding: 18px 16px 44px; }
  .invoice { margin-left: 8px; margin-right: -4px; font-size: 12px; }
  .invoice-rows { padding-inline: 14px; }
  .invoice-head, .invoice-total { padding-inline: 14px; }
  .inv-row { grid-template-columns: 16px minmax(0, 1fr) auto; }
  .hero-stamp { left: 10%; }
}

/* ---------- Sections ---------- */
.section { padding-top: clamp(72px, 9vw, 128px); padding-bottom: clamp(72px, 9vw, 128px); }
.section + .section { border-top: 1px solid var(--line); }
.section-head { display: grid; gap: 16px; max-width: 820px; margin-bottom: clamp(40px, 5vw, 64px); }
.eyebrow { font-family: var(--mono); font-size: 13px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); display: inline-flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 10px; height: 10px; background: var(--signal); border: 1.5px solid var(--ink); flex-shrink: 0; }
.h2 { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: clamp(42px, 5.6vw, 76px); line-height: .92; }
.lede { font-size: clamp(17px, 1.4vw, 19px); color: var(--muted); max-width: 640px; }
.cite { font-family: var(--mono); font-size: 12.5px; letter-spacing: .02em; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; border: 1px solid var(--line); background: var(--surface-2); border-radius: 3px; font-family: var(--mono); font-size: 12.5px; white-space: nowrap; color: var(--fg); }

/* Scroll reveal: only when JS runs and motion is allowed */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* Numbers */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 2px solid var(--fg); }
.stat { padding: 28px 28px 8px 0; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.stat + .stat { padding-left: 28px; border-left: 1px solid var(--line); }
.stat-num { font-family: var(--display); font-weight: 900; font-size: clamp(60px, 6.6vw, 96px); line-height: .9; font-variant-numeric: tabular-nums; white-space: nowrap; }
.stat-num small { font-size: .46em; margin-left: .12em; }
.stat p { color: var(--fg); font-size: 16px; line-height: 1.5; }
.stat .source { margin-top: auto; font-family: var(--mono); font-size: 13px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }
@media (max-width: 1020px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .stats { grid-template-columns: minmax(0, 1fr); }
  .stat, .stat + .stat { padding: 24px 0 4px; border-left: 0; }
  .stat + .stat { border-top: 1px solid var(--line); }
}

/* How it works */
.steps { position: relative; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 48px); }
.route { position: absolute; top: 27px; left: 28px; right: 28px; border-top: 2px dashed var(--steel); pointer-events: none; }
.route-box { position: absolute; top: -14px; left: 0; width: 44px; height: 26px; transform: translateX(calc(var(--route-p, 0) * (var(--route-len, 0px)) - 50%)); transition: transform .1s linear; color: var(--fg); }
.step { position: relative; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.step-num { width: 56px; height: 56px; display: grid; place-items: center; background: var(--ink); color: var(--signal); font-family: var(--display); font-weight: 900; font-size: 32px; border-radius: 3px; position: relative; z-index: 1; }
.step h3 { font-family: var(--display); font-weight: 800; font-size: 34px; text-transform: uppercase; line-height: 1; margin-top: 10px; }
.step p { color: var(--muted); }
.control-note { margin-top: 48px; padding: 18px 22px; border: 1px solid var(--line); border-left: 0; background: var(--surface); display: flex; gap: 14px; align-items: flex-start; max-width: 820px; border-radius: var(--radius); }
.control-note svg { flex-shrink: 0; margin-top: 2px; }
@media (max-width: 760px) {
  .steps { grid-template-columns: minmax(0, 1fr); gap: 40px; padding-left: 80px; }
  .route { top: 28px; bottom: 28px; left: 27px; right: auto; border-top: 0; border-left: 2px dashed var(--steel); }
  .route-box { top: 0; left: -23px; transform: translateY(calc(var(--route-p, 0) * var(--route-len, 0px) - 50%)) rotate(90deg); }
  .step-num { position: absolute; left: -80px; top: 0; }
  .step h3 { margin-top: 8px; }
}

/* What we check */
.checks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.check-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: transform .18s var(--ease-out), box-shadow .18s var(--ease-out), border-color .18s ease; }
.check-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.check-card.is-open { border-color: var(--fg); }
.check-toggle { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; align-items: start; padding: 22px 22px 20px; background: none; border: 0; text-align: left; cursor: pointer; border-radius: var(--radius); }
.check-title { font-family: var(--display); font-weight: 800; font-size: 30px; text-transform: uppercase; line-height: 1; }
.check-line { grid-column: 1 / -1; color: var(--muted); font-size: 16px; line-height: 1.5; }
.check-meta { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; margin-top: 6px; }
.plus { width: 28px; height: 28px; border: 1.5px solid var(--fg); border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; transition: transform .2s var(--ease-out); }
.check-toggle[aria-expanded="true"] .plus, .faq-q[aria-expanded="true"] .plus { transform: rotate(45deg); }
.check-panel { padding: 0 22px 20px; }
.check-panel ul { list-style: none; border-top: 1px dashed var(--line); padding-top: 12px; display: grid; gap: 8px; }
.check-panel li { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; line-height: 1.45; }
.check-panel li .cite { color: var(--muted); white-space: nowrap; }
@media (max-width: 1020px) { .checks { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .checks { grid-template-columns: minmax(0, 1fr); } }

/* Self-check */
.sc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: clamp(24px, 4vw, 56px); align-items: start; }
.sc-steps { display: grid; gap: 24px; min-width: 0; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3vw, 32px); }
.panel-title { display: flex; align-items: baseline; gap: 14px; margin-bottom: 20px; }
.panel-title b { font-family: var(--display); font-weight: 900; font-size: 22px; color: var(--ink); background: var(--signal); padding: 2px 9px; border-radius: 2px; }
.panel-title h3 { font-family: var(--display); font-weight: 800; font-size: 32px; text-transform: uppercase; line-height: 1; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; }
.field { display: grid; gap: 6px; min-width: 0; align-content: start; }
.field.full { grid-column: 1 / -1; }
.field label, .field .label { font-size: 15px; font-weight: 600; }
.field .opt { font-weight: 400; color: var(--muted); }
.input, .select, .textarea {
  width: 100%; min-height: 48px; padding: 10px 14px;
  background: var(--bg); border: 1.5px solid var(--line); border-radius: var(--radius);
  color: var(--fg); font-size: 16px; transition: border-color .15s ease, box-shadow .15s ease;
}
.input[type="date"] { font-family: var(--mono); }
.input:hover, .select:hover, .textarea:hover { border-color: var(--steel); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--fg); box-shadow: 0 0 0 3px color-mix(in srgb, var(--signal) 65%, transparent); }
.input[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--stamp-text); }
.select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 20px) 21px, calc(100% - 14px) 21px; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.textarea { min-height: 112px; resize: vertical; line-height: 1.5; }
.field-error { color: var(--stamp-text); font-size: 14px; font-weight: 600; }
.field-hint { color: var(--muted); font-size: 14px; }

.switch { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; cursor: pointer; font-weight: 600; font-size: 15px; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch .track { width: 46px; height: 26px; border-radius: 13px; background: var(--surface-2); border: 1.5px solid var(--steel); position: relative; flex-shrink: 0; transition: background-color .15s ease; }
.switch .track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 19px; height: 19px; border-radius: 50%; background: var(--steel); transition: transform .18s var(--ease-out), background-color .15s ease; }
.switch input:checked + .track { background: var(--signal); border-color: var(--ink); }
.switch input:checked + .track::after { transform: translateX(20px); background: var(--ink); }
.switch input:focus-visible + .track { outline: 2px solid var(--focus); outline-offset: 2px; }

.gap-line { margin-top: 22px; font-family: var(--mono); font-size: 15px; font-weight: 500; }
.gap-line.is-late { color: var(--stamp-text); }
.gap-line.is-ok { color: var(--cleared-text); }
.ruler { position: relative; margin-top: 12px; height: 46px; }
.ruler-bar { position: absolute; left: 0; right: 0; top: 10px; height: 12px; border: 1.5px solid var(--fg); background: linear-gradient(90deg, var(--cleared-tint) 0 50%, transparent 50%), repeating-linear-gradient(45deg, var(--stamp-tint) 0 6px, transparent 6px 12px); border-radius: 2px; }
.ruler-30 { position: absolute; left: 50%; top: 2px; height: 28px; border-left: 2px solid var(--fg); }
.ruler-ticks { position: absolute; left: 0; right: 0; top: 28px; display: flex; justify-content: space-between; font-family: var(--mono); font-size: 11.5px; color: var(--muted); }
.ruler-ticks span { width: 0; display: flex; justify-content: center; white-space: nowrap; }
.ruler-marker { position: absolute; top: -2px; width: 0; height: 0; left: 0; transform: translateX(-8px); border-left: 8px solid transparent; border-right: 8px solid transparent; border-top: 12px solid var(--cleared); transition: left .25s var(--ease-out), border-top-color .2s ease; }
.ruler-marker.is-late { border-top-color: var(--stamp); }

.tip { display: flex; gap: 10px; padding: 12px 14px; background: var(--surface-2); border-radius: var(--radius); font-size: 15px; margin-bottom: 18px; }
.sc-group { border: 0; margin: 0; padding: 0; }
.sc-group + .sc-group { margin-top: 22px; }
.sc-group > legend { font-family: var(--mono); font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 0; margin-bottom: 8px; }
.sc-item { border: 0; margin: 0; padding: 10px 0; border-top: 1px dashed var(--line); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; align-items: center; }
.sc-item > legend { float: left; padding: 0; font-size: 15.5px; line-height: 1.4; }
.sc-item .cite { color: var(--muted); margin-left: 6px; white-space: nowrap; }
.seg { display: inline-flex; border: 1.5px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.seg label { position: relative; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 12px; font-size: 14px; font-weight: 600; cursor: pointer; color: var(--muted); }
.seg label + label { border-left: 1.5px solid var(--line); }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg label:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: -3px; }
.seg label:has(input[value="present"]:checked) { background: var(--cleared-tint); color: var(--cleared-text); }
.seg label:has(input[value="missing"]:checked) { background: var(--stamp-tint); color: var(--stamp-text); }
.seg label:hover { color: var(--fg); }
.sc-progress { font-family: var(--mono); font-size: 13px; color: var(--muted); margin-top: 18px; }
@media (max-width: 560px) {
  .fields { grid-template-columns: minmax(0, 1fr); }
  .sc-item { grid-template-columns: minmax(0, 1fr); }
  .seg { width: 100%; }
  .seg label { flex: 1; }
}

.result { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 80px); background: var(--surface); border: 2px solid var(--fg); border-radius: var(--radius); padding: 26px; display: grid; gap: 16px; }
.result-label { font-family: var(--mono); font-size: 12.5px; letter-spacing: .1em; color: var(--muted); }
.result-stamp-slot { min-height: 116px; display: flex; align-items: center; justify-content: center; padding: 8px 0; }
.result .stamp { --stamp-size: 48px; --stamp-rot: -6deg; }
.result-reasons { list-style: none; display: grid; gap: 8px; }
.result-reasons li { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; line-height: 1.45; padding-left: 20px; position: relative; }
.result-reasons li::before { content: "✕"; position: absolute; left: 0; color: var(--stamp-text); font-weight: 700; }
.result-reasons .cite { color: var(--muted); white-space: nowrap; }
.result-text { font-size: 15.5px; line-height: 1.55; }
.result-text strong { font-family: var(--mono); font-weight: 600; }
.result-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.result-actions .btn-primary { flex: 1 1 100%; }
.result-small { font-size: 13.5px; color: var(--muted); }
.see-result { display: none; }
@media (max-width: 1020px) {
  .sc { grid-template-columns: minmax(0, 1fr); }
  .result { position: static; }
  .see-result { display: flex; width: 100%; }
  .js .result.is-collapsed { display: none; }
}

/* Sample report */
.report-wrap { position: relative; }
.report { position: relative; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: 3px; overflow: hidden; }
.report-watermark { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 900; font-size: clamp(120px, 22vw, 300px); color: color-mix(in srgb, var(--steel) 9%, transparent); transform: rotate(-16deg); pointer-events: none; }
.report-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 18px 24px; background: var(--ink); color: var(--band-fg); font-family: var(--mono); font-size: 13px; letter-spacing: .04em; }
.report-head .wm svg { height: 22px; width: auto; display: block; }
.report-totals { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.report-total { padding: 22px 24px; display: grid; gap: 4px; }
.report-total + .report-total { border-left: 1px solid var(--line); }
.report-total .k { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; color: var(--muted); text-transform: uppercase; }
.report-total .v { font-family: var(--display); font-weight: 900; font-size: clamp(34px, 3.4vw, 48px); line-height: 1; }
.report-total .v.red { color: var(--stamp-text); }
.table-scroll { position: relative; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.report table { width: 100%; border-collapse: collapse; min-width: 860px; font-size: 14.5px; }
.report th { text-align: left; font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 500; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.report td { padding: 14px 16px; border-bottom: 1px dashed var(--line); vertical-align: top; line-height: 1.45; }
.report td.mono, .report td.num { font-family: var(--mono); white-space: nowrap; }
.report td.num { text-align: right; font-variant-numeric: tabular-nums; }
.report th.num { text-align: right; }
.report tr:last-child td { border-bottom: 0; }
.finding { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; border-radius: 3px; font-family: var(--mono); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.finding.bad { color: var(--stamp-text); background: var(--stamp-tint); border: 1px solid currentColor; }
.finding.over { color: var(--fg); background: color-mix(in srgb, var(--signal) 40%, transparent); border: 1px solid var(--fg); }
.finding.ok { color: var(--cleared-text); background: var(--cleared-tint); border: 1px solid currentColor; }
.report-foot { display: flex; justify-content: space-between; gap: 16px; align-items: center; flex-wrap: wrap; padding: 18px 24px; border-top: 1px solid var(--line); background: var(--surface-2); font-size: 14px; color: var(--muted); position: relative; }
@media (max-width: 640px) {
  .report-totals { grid-template-columns: minmax(0, 1fr); }
  .report-total + .report-total { border-left: 0; border-top: 1px solid var(--line); }
}

/* Pilot band */
.pilot { padding-top: clamp(72px, 9vw, 120px); padding-bottom: clamp(72px, 9vw, 120px); }
.pilot .wrap { display: grid; gap: 40px; }
.pilot .h2 { color: var(--band-fg); max-width: 980px; }
.pilot .h2 em { font-style: normal; color: var(--signal); }
.pilot-points { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--band-line); }
.pilot-points li { padding: 24px 24px 0 0; display: flex; gap: 14px; align-items: flex-start; font-size: 18px; font-weight: 600; }
.pilot-points li + li { padding-left: 24px; border-left: 1px solid var(--band-line); }
.pilot-points svg { color: var(--signal); flex-shrink: 0; margin-top: 3px; }
@media (max-width: 760px) {
  .pilot-points { grid-template-columns: minmax(0, 1fr); }
  .pilot-points li, .pilot-points li + li { padding: 18px 0; border-left: 0; border-bottom: 1px solid var(--band-line); }
  .pilot .btn { width: 100%; }
}

/* About */
.about { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.photo { position: relative; aspect-ratio: 1; max-width: 100%; background: var(--surface-2); border: 1px solid var(--line); overflow: hidden; border-radius: 3px; }
.photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); transition: filter .3s ease; }
.photo::after { content: ""; position: absolute; inset: 0; background: var(--signal); mix-blend-mode: multiply; opacity: 0; transition: opacity .3s ease; pointer-events: none; }
.photo:hover::after { opacity: .85; }
.about-text { display: grid; gap: 20px; max-width: 680px; }
.about-text > p:not(.eyebrow) { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.55; }
.about-links { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; margin-top: 8px; }
.about-links a { font-weight: 600; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
.email-pill { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 15px; }
@media (max-width: 640px) { .about { grid-template-columns: minmax(0, 1fr); } .photo { max-width: 240px; } }

/* Trust */
.trust { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.trust li { display: grid; gap: 12px; align-content: start; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.trust svg { color: var(--fg); }
.trust b { font-family: var(--display); font-weight: 800; font-size: 26px; text-transform: uppercase; line-height: 1; }
.trust span { color: var(--muted); font-size: 15.5px; line-height: 1.5; }
@media (max-width: 1020px) { .trust { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .trust { grid-template-columns: minmax(0, 1fr); } }

/* FAQ */
.faq { max-width: 900px; border-top: 2px solid var(--fg); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; min-height: 64px; background: none; border: 0; text-align: left; cursor: pointer; font-size: clamp(18px, 1.6vw, 21px); font-weight: 600; line-height: 1.35; }
.faq-q:hover .faq-text { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.faq-a { padding: 0 52px 24px 0; color: var(--muted); font-size: 17px; max-width: 72ch; }
.faq-a a { color: var(--fg); }

/* Send */
.send-band { padding-top: clamp(72px, 9vw, 120px); padding-bottom: clamp(72px, 9vw, 120px); }
.send { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.send-intro { display: grid; gap: 20px; position: sticky; top: calc(env(safe-area-inset-top, 0px) + 88px); }
.email-box { margin-top: 12px; padding: 18px 20px; border: 1px dashed var(--steel); border-radius: var(--radius); display: grid; gap: 10px; font-size: 15.5px; }
.email-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.email-row code { font-size: 15px; user-select: all; }
.form-card { position: relative; background: var(--surface); border: 2px solid var(--fg); border-radius: var(--radius); padding: clamp(20px, 3vw, 36px); box-shadow: var(--shadow); }
.form-card .fields { gap: 18px 20px; }
.req { color: var(--stamp-text); }
.drop {
  display: grid; justify-items: center; gap: 10px; text-align: center;
  padding: 28px 16px; border: 2px dashed var(--steel); border-radius: var(--radius); background: var(--bg);
  transition: border-color .15s ease, background-color .15s ease;
}
.drop.is-over { border-color: var(--fg); background: color-mix(in srgb, var(--signal) 18%, var(--bg)); }
.drop[aria-invalid="true"] { border-color: var(--stamp-text); }
.drop p { font-size: 15px; color: var(--muted); }
.drop b { color: var(--fg); }
.file-input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.file-list { list-style: none; display: grid; gap: 8px; margin-top: 10px; }
.file-item { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 8px 8px 8px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); font-size: 14.5px; }
.file-item.is-bad { border-color: var(--stamp-text); background: var(--stamp-tint); }
.file-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.file-size { font-family: var(--mono); font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.file-err { grid-column: 2 / -1; color: var(--stamp-text); font-size: 13.5px; font-weight: 600; }
.file-progress { grid-column: 2 / -1; height: 4px; background: var(--surface-2); border-radius: 2px; overflow: hidden; }
.file-progress span { display: block; height: 100%; width: 0; background: var(--cleared); transition: width .15s linear; }
.file-remove { width: 44px; height: 44px; display: grid; place-items: center; background: none; border: 0; border-radius: var(--radius); cursor: pointer; color: var(--muted); }
.file-remove:hover { color: var(--fg); background: var(--surface-2); }
.counter { font-family: var(--mono); font-size: 12.5px; color: var(--muted); justify-self: end; }
.counter.is-over { color: var(--stamp-text); }
.consent { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; align-items: start; font-size: 15px; line-height: 1.5; cursor: pointer; }
.consent input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--ink); cursor: pointer; }
.consent a { color: var(--fg); }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.submit-row { display: grid; gap: 10px; margin-top: 8px; }
.submit-row .btn { width: 100%; }
.submit-hint { font-size: 14px; color: var(--muted); min-height: 1.4em; }
.submit-hint.is-shown { color: var(--fg); }
.form-error { display: grid; gap: 12px; padding: 16px 18px; border: 2px solid var(--stamp-text); background: var(--stamp-tint); border-radius: var(--radius); }
.form-error b { color: var(--stamp-text); }
.success { display: grid; gap: 18px; justify-items: start; padding: 8px 0; }
.success .stamp { --stamp-size: 56px; --stamp-rot: -7deg; color: var(--cleared); margin: 8px 0 10px 6px; }
.success h3 { font-family: var(--display); font-weight: 900; font-size: clamp(36px, 4vw, 52px); text-transform: uppercase; line-height: .95; }
.success p { font-size: 17px; }
.success strong { font-family: var(--mono); font-weight: 600; }
@media (max-width: 900px) {
  .send { grid-template-columns: minmax(0, 1fr); }
  .send-intro { position: static; }
}

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + 24px); z-index: 90;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--ink); color: #E6ECE9; padding: 12px 18px; border-radius: var(--radius);
  font-weight: 600; font-size: 15px; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .5);
  transition: opacity .2s ease, transform .2s var(--ease-out); max-width: calc(100vw - 32px);
}
.toast.is-shown { opacity: 1; transform: translate(-50%, 0); }

/* Footer */
.site-footer { background: var(--band-bg); color: var(--band-fg); padding-top: 64px; padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 40px); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 40px; padding-bottom: 40px; border-bottom: 1px solid var(--band-line); }
.footer-brand { display: grid; gap: 12px; align-content: start; }
.footer-brand svg { height: 34px; width: auto; }
.footer-brand p { color: var(--band-muted); }
.footer-col h2 { font-family: var(--mono); font-size: 12.5px; letter-spacing: .1em; font-weight: 500; color: var(--band-muted); text-transform: uppercase; margin-bottom: 12px; }
.footer-col ul { list-style: none; display: grid; gap: 2px; }
.footer-col a { display: inline-flex; align-items: center; min-height: 40px; }
.footer-legal { padding-top: 28px; display: grid; gap: 12px; font-size: 14px; color: var(--band-muted); max-width: 980px; }
.footer-legal .mono { font-size: 13px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; } }

/* Legal pages & 404 */
.legal { padding-top: clamp(48px, 7vw, 96px); padding-bottom: clamp(64px, 8vw, 120px); }
.legal article { max-width: 70ch; margin-inline: auto; }
.legal h1 { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: clamp(48px, 7vw, 84px); line-height: .92; }
.legal .updated { font-family: var(--mono); font-size: 13.5px; color: var(--muted); margin: 18px 0 36px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.legal p, .legal li { font-size: 17px; line-height: 1.7; }
.legal p + p { margin-top: 16px; }
.legal ol { padding-left: 1.4em; display: grid; gap: 14px; margin: 24px 0; }
.legal ul { padding-left: 1.2em; display: grid; gap: 6px; margin-top: 8px; }
.legal strong { font-weight: 700; }
.legal .provider { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 15px; color: var(--muted); }
.legal a { color: var(--fg); }
.notfound { min-height: 62vh; display: grid; place-items: center; text-align: center; padding-block: 80px; }
.notfound .inner { display: grid; justify-items: center; gap: 28px; }
.notfound .stamp { --stamp-size: 72px; color: var(--stamp); }
.notfound h1 { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: clamp(44px, 7vw, 84px); line-height: .92; max-width: 16ch; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .check-card:hover { transform: none; }
}

/* Print (legal pages print well) */
@media print {
  :root { --bg: #fff; --fg: #000; --muted: #333; --line: #bbb; }
  body { background: #fff; color: #000; font-size: 11pt; }
  body::before, .site-header .nav, .menu-btn, .site-footer .footer-grid, .skip-link, .toast { display: none !important; }
  .site-header, .site-footer { position: static; background: #fff; color: #000; }
  .site-header .wordmark { color: #000; }
  .legal { padding: 0; }
  .legal article { max-width: none; }
  .legal p, .legal li { font-size: 11pt; }
  a { color: #000; }
  .legal a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; }
}

/* ---------- Wordmark: the two e's read as a pair of container doors ---------- */
.wm { display: inline-flex; align-items: flex-end; font-family: var(--display); font-weight: 900; font-size: 34px; line-height: 1; letter-spacing: .01em; color: inherit; white-space: nowrap; }
.wm-doors { display: inline-flex; align-items: flex-end; margin: 0 .05em; padding: .14em .03em 0; border: .07em solid currentColor; border-bottom: 0; border-radius: .05em .05em 0 0; line-height: .78; position: relative; }
.wm-doors > span { padding: 0 .035em; position: relative; }
.wm-doors > span + span { border-left: .05em solid currentColor; }
.site-header.is-compact .wm { font-size: 29px; }
.site-header .wm { transition: font-size .2s var(--ease-out); }
.wm--sm { font-size: 24px; }
.wm--lg { font-size: 44px; }

/* Overrides */
.nav-links a:hover .link, .nav-links a[aria-current="true"] .link { background-size: 100% 1.5px; }
.sheet { left: auto; width: min(440px, calc(100% - 48px)); box-shadow: -20px 0 40px rgba(0, 0, 0, .35); }
.sheet.is-open { animation-name: sheet-in-side; }
@keyframes sheet-in-side { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
.drop:has(.file-input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.result:focus { outline: none; }
.success h3:focus { outline: none; }

.nav-links a, .sheet-links a, .wordmark { color: inherit; text-decoration: none; }
.stat-num.is-text { font-size: clamp(48px, 4.6vw, 72px); padding-top: .12em; }
.result { min-width: 0; }
.result-stamp-slot { overflow: hidden; }
.result .stamp { --stamp-size: 40px; }
@media (max-width: 400px) { .result .stamp { --stamp-size: 34px; } }
