/* QubeLock: instrument-grade evidence. Built to reports/QubeLock design definition.md (v1).
   Mobile first. WCAG 2.2 AA in both themes. No gradients, glows, blurs, shadows or purple. */

@font-face { font-family: "Fraunces"; src: url("/fonts/Fraunces.woff2") format("woff2"); font-weight: 500 900; font-display: swap; }
@font-face { font-family: "Schibsted Grotesk"; src: url("/fonts/SchibstedGrotesk.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Schibsted Grotesk"; src: url("/fonts/SchibstedGrotesk-italic.woff2") format("woff2"); font-weight: 400 700; font-style: italic; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/fonts/IBMPlexMono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/fonts/IBMPlexMono-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }

/* 1. Tokens */
:root {
  --paper:    #F4F1EA;
  --ink:      #16150F;
  --rule:     #D8D2C4;
  --eucalypt: #2F6B4F;
  --ochre:    #A85A1C;
  --ochre-text: #94501A; /* ochre as small text: 5.4:1 on paper (the token itself is 4.49:1) */
  --oxide:    #A3322B;
  --muted:    #5E5A4E;

  --panel-bg:   #16150F;
  --panel-text: #ECE8DE;
  --panel-yes:  #6FB08C;
  --panel-warn: #D99456;
  --panel-flag: #E07A70;
  --panel-muted: #B5AF9E;
  --panel-rule: #34322a;

  --font-display: "Fraunces", Georgia, serif;
  --font-body:    "Schibsted Grotesk", system-ui, sans-serif;
  --font-mono:    "IBM Plex Mono", ui-monospace, monospace;

  --s1: 4px;  --s2: 8px;  --s3: 12px; --s4: 16px; --s5: 24px;
  --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px; --s10: 128px;

  --measure: 68ch;
  --radius: 2px;
  --hairline: 1px solid var(--rule);
  --gutter: var(--s4);
  color-scheme: light;
}
[data-theme="dark"] {
  --paper:    #15140F;
  --ink:      #ECE8DE;
  --rule:     #2C2A22;
  --eucalypt: #6FB08C;
  --ochre:    #D99456;
  --ochre-text: #D99456;
  --oxide:    #E07A70;
  --muted:    #A8A393;
  --panel-bg: #0C0B08;
  color-scheme: dark;
}
@media (min-width: 48rem) { :root { --gutter: var(--s6); } }

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 17px/1.55 var(--font-body);
  font-size-adjust: from-font; font-synthesis: none; -webkit-font-smoothing: antialiased;
}
@media (min-width: 48rem) { body { font-size: 18px; } }
h1, h2, h3, p, ol, ul, figure, dl { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
svg { display: block; }
a { color: inherit; text-decoration-line: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--eucalypt); outline-offset: 3px; }
code, .mono { font-family: var(--font-mono); }
code { font-size: 0.875em; }
.small { font: 500 14px/1.4 var(--font-body); }
.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }
.visually-hidden:where(:not(:focus-within, :active)) {
  position: absolute !important; clip-path: inset(50%) !important; overflow: hidden !important;
  width: 1px !important; height: 1px !important; margin: -1px !important; padding: 0 !important; border: 0 !important; white-space: nowrap !important;
}
/* An absolutely positioned caption breaks table-layout: fixed in Chrome; keep it in flow, still clipped. */
caption.visually-hidden { position: static !important; }
.skip { position: absolute; left: var(--s4); top: -5rem; background: var(--ink); color: var(--paper); padding: var(--s3) var(--s4); z-index: 10; }
.skip:focus { top: var(--s4); }
.wrap { max-width: calc(1200px + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

/* 2. Type scale */
h1 { font: 900 40px/0.95 var(--font-display); letter-spacing: -0.02em; max-width: 22ch; }
h2 { font: 700 30px/1.05 var(--font-display); letter-spacing: -0.01em; }
h3 { font: 600 20px/1.25 var(--font-body); }
@media (min-width: 64rem) {
  h1 { font-size: clamp(72px, 6.2vw, 88px); }
  h2 { font-size: 40px; }
  h3 { font-size: 22px; }
}
.label { font: 500 14px/1.4 var(--font-body); text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.lead { color: var(--muted); max-width: var(--measure); }

/* Header and top line */
.site-head { border-bottom: 1px solid var(--ink); }
.site-head__row { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); padding-block: var(--s4); }
.brand { display: grid; gap: 2px; text-decoration: none; }
.brand__word { font: 900 26px/1 var(--font-display); letter-spacing: -0.02em; }
.brand__desc { font: 400 13px/1.3 var(--font-mono); color: var(--muted); }
.site-nav { display: flex; align-items: center; gap: var(--s5); }
.site-nav__links { display: none; gap: var(--s5); }
.site-nav__links a { text-decoration: none; padding-block: var(--s3); font-size: 16px; }
.site-nav__links a:hover, .site-nav__links a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; }
@media (min-width: 60rem) { .site-nav__links { display: flex; } }
.theme-toggle {
  font: 500 14px/1 var(--font-body); color: var(--ink); background: transparent; white-space: nowrap;
  border: 1px solid var(--ink); border-radius: var(--radius); padding: 0 var(--s3); min-height: 44px; cursor: pointer;
}
.theme-toggle[aria-pressed="true"] { background: var(--ink); color: var(--paper); }

.topline { border-bottom: var(--hairline); }
.topline__row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s3); padding-block: var(--s2); font: 400 14px/1.4 var(--font-mono); }
.topline__row a { font-weight: 500; }
.topline__text { position: absolute; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; } /* the stamp carries it visually */
@media (max-width: 30rem) { .topline__dot { display: none; } }

/* 3. Layout */
.section { padding-block: var(--s8); border-top: var(--hairline); }
@media (min-width: 64rem) { .section { padding-block: var(--s9); } }
.section__head { display: grid; gap: var(--s3); margin-bottom: var(--s6); max-width: var(--measure); }
.doc { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: var(--s5); row-gap: var(--s4); }
.doc > * { min-width: 0; }
.doc > .note, .doc > .note--stack { margin-bottom: var(--s6); }
@media (min-width: 64rem) {
  .doc { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .doc > .main { grid-column: 1 / span 8; }
  .doc > .note, .doc > .note--stack { grid-column: 9 / span 4; align-self: start; }
}

/* Graph-paper backdrop (hero and dot field only) */
.graph-paper { position: relative; isolation: isolate; }
.graph-paper::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-color: var(--rule); opacity: 0.4;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8'%3E%3Cpath d='M8 .5H.5V8' fill='none' stroke='black'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8'%3E%3Cpath d='M8 .5H.5V8' fill='none' stroke='black'/%3E%3C/svg%3E");
  -webkit-mask-size: 8px 8px; mask-size: 8px 8px;
}
@media (prefers-contrast: more) { .graph-paper::before { display: none; } }

/* 4. Hero */
.hero { padding-block: var(--s7) var(--s8); }
.hero__grid { display: grid; gap: var(--s6) var(--s7); }
.hero__copy { display: grid; gap: var(--s5); align-content: start; }
.hero__sub { font-size: 19px; line-height: 1.5; max-width: 46ch; }
@media (min-width: 64rem) {
  .hero { padding-block: var(--s8) var(--s9); }
  .hero__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: start; }
  .hero__grid > h1 { grid-column: 1 / -1; max-width: 24ch; }
  .hero__copy { grid-column: 1 / span 5; }
  .hero__grid > .panel { grid-column: 6 / -1; }
  .hero__sub { font-size: 21px; }
}

/* Domain field */
.domain-field { display: grid; gap: var(--s2); max-width: 36rem; }
.domain-field__label { font: 600 16px/1.3 var(--font-body); }
.domain-field__row, .early__row, .panel__notify-row { display: grid; gap: var(--s2); }
@media (min-width: 30rem) { .domain-field__row, .early__row, .panel__notify-row { grid-template-columns: 1fr auto; } }
input[type="text"], input[type="email"] {
  font: 400 17px/1.3 var(--font-body); color: var(--ink); background: var(--paper);
  border: 1px solid var(--ink); border-radius: var(--radius); padding: 0 var(--s4); width: 100%; min-height: 44px;
}
.domain-field input { min-height: 56px; }
input:focus-visible { outline: 2px solid var(--eucalypt); outline-offset: 2px; }
input::placeholder { color: var(--muted); opacity: 1; }
.error { display: none; font: 500 14px/1.4 var(--font-body); color: var(--oxide); }
:is(input:user-invalid, input.user-invalid-fallback) { border-color: var(--oxide); }
:is(input:user-invalid, input.user-invalid-fallback) ~ .error { display: block; }
.form-msg { font: 500 15px/1.4 var(--font-body); min-height: 1.4em; }
.form-msg.is-err { color: var(--oxide); }
.form-msg.is-ok { color: var(--eucalypt); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Buttons and links */
.btn {
  font: 600 16px/1 var(--font-body); color: var(--paper); background: var(--ink); border: 1px solid var(--ink);
  border-radius: var(--radius); padding: 0 var(--s5); min-height: 44px; cursor: pointer; white-space: nowrap;
  text-decoration: none; display: inline-flex; align-items: center; justify-content: center;
}
.domain-field .btn { min-height: 56px; }
.btn:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.btn[disabled] { opacity: 0.7; cursor: progress; }
.btn--on-panel { background: var(--panel-text); color: var(--panel-bg); border-color: var(--panel-text); }
.link-secondary { font-weight: 600; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.link-secondary:hover { text-decoration-thickness: 2px; }

/* Instrument panel (always dark) */
.panel {
  background: var(--panel-bg); color: var(--panel-text); border-radius: var(--radius);
  margin-inline: calc(-1 * var(--gutter)); /* full bleed on mobile */
  font: 400 14px/1.5 var(--font-mono);
}
@media (min-width: 48rem) { .panel { margin-inline: 0; } }
.panel a { color: var(--panel-text); }
.panel :focus-visible { outline-color: var(--panel-yes); }
.panel__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s1) var(--s4); padding: var(--s4); border-bottom: 1px solid var(--panel-rule); }
.panel__title { font-weight: 500; letter-spacing: 0.04em; }
.panel__when { color: var(--panel-muted); }
.panel__cols { display: none; }
.panel__rows { list-style: none; margin: 0; padding: 0; }
.probe { position: relative; border-bottom: 1px solid var(--panel-rule); }
.probe details > summary { list-style: none; cursor: pointer; }
.probe details > summary::-webkit-details-marker { display: none; }
.probe__line { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s1) var(--s3); padding: var(--s3) var(--s4); align-items: baseline; }
.probe__check { font-weight: 500; }
.probe__ms { color: var(--panel-muted); text-align: right; font-variant-numeric: tabular-nums; grid-column: 2; grid-row: 1; }
.probe__result { grid-column: 1 / -1; font-family: var(--font-body); font-size: 15px; display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s1) var(--s2); }
.probe__status { font: 500 13px/1.2 var(--font-mono); border: 1px solid currentColor; border-radius: var(--radius); padding: 3px 6px; }
.probe details[open] > summary { border-bottom: 1px dashed var(--panel-rule); }
.probe details > summary .probe__check::after { content: " +"; color: var(--panel-muted); }
.probe details[open] > summary .probe__check::after { content: " \2212"; }
.probe__raw { margin: 0; padding: var(--s3) var(--s4) var(--s4); white-space: pre-wrap; overflow-wrap: anywhere; color: var(--panel-muted); font: 400 13px/1.55 var(--font-mono); }
.probe.is-pending .probe__line { color: var(--panel-muted); }
@media (min-width: 40rem) {
  .panel__cols { display: grid; grid-template-columns: 11rem minmax(0, 1fr) 5rem; gap: var(--s3); padding: var(--s2) var(--s4); color: var(--panel-muted); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; border-bottom: 1px solid var(--panel-rule); }
  .panel__cols span:last-child { text-align: right; }
  .probe__line { grid-template-columns: 11rem minmax(0, 1fr) 5rem; }
  .probe__result { grid-column: 2; grid-row: 1; }
  .probe__ms { grid-column: 3; }
}
.panel__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s4); padding: var(--s4); }
.panel__done { color: var(--panel-muted); max-width: 40ch; }
.panel__share { padding: 0 var(--s4) var(--s4); color: var(--panel-muted); }
.panel__notify { padding: var(--s4); border-top: 1px dashed var(--panel-rule); display: grid; gap: var(--s2); font-family: var(--font-body); }
.panel__notify input { background: var(--panel-bg); color: var(--panel-text); border-color: var(--panel-text); }
.panel__notify .error, .panel__notify .form-msg.is-err { color: var(--panel-flag); }
.panel__notify .form-msg.is-ok { color: var(--panel-yes); }
.panel__notify[hidden], .panel__share[hidden] { display: none; }

/* Status labels: text plus colour, never colour alone */
.st, .probe__status { white-space: nowrap; }
.st { display: inline-block; font: 500 13px/1.2 var(--font-mono); border: 1px solid currentColor; border-radius: var(--radius); padding: 3px 6px; }
.st--yes { color: var(--eucalypt); }
.st--warn { color: var(--ochre-text); }
.st--flag { color: var(--oxide); }
.st--muted { color: var(--muted); }
.panel .st--yes { color: var(--panel-yes); }
.panel .st--warn { color: var(--panel-warn); }
.panel .st--flag { color: var(--panel-flag); }
.panel .st--muted { color: var(--panel-muted); }

/* Verified stamp */
.stamp { width: 140px; height: auto; color: var(--oxide); rotate: -3deg; flex: none; }
.stamp text { font-family: var(--font-mono); font-weight: 500; fill: currentColor; }
.stamp rect { fill: none; stroke: currentColor; }
.stamp--panel { color: var(--panel-flag); }
.stamp--inline { width: 96px; rotate: -3deg; }
.ledger .stamp { width: 104px; }

/* Readout numerals */
.readouts { list-style: none; padding: 0; display: grid; gap: var(--s6); margin-bottom: var(--s8); }
@media (min-width: 52rem) { .readouts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s6); } }
.readout { display: grid; gap: var(--s3); text-decoration: none; }
.readout__n { font: 500 64px/1 var(--font-mono); font-variant-numeric: tabular-nums; letter-spacing: -0.03em; padding-bottom: var(--s3); border-bottom: var(--hairline); }
@media (min-width: 64rem) { .readout__n { font-size: clamp(96px, 8.6vw, 128px); } }
.readout__cap { font-size: 17px; line-height: 1.4; max-width: 30ch; }
.readout__src { font: 400 14px/1.5 var(--font-mono); color: var(--muted); }
.readout:hover .readout__cap { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }

/* 195-dot field */
.dotfield { display: grid; gap: var(--s4); }
.dotfield__cap { font: 500 14px/1.4 var(--font-body); color: var(--muted); max-width: var(--measure); }
.dotfield__body { display: grid; gap: var(--s6); align-items: start; }
@media (min-width: 52rem) { .dotfield__body { grid-template-columns: auto minmax(0, 1fr); gap: var(--s7); } }
.dotfield__grid-wrap { padding: var(--s5); justify-self: start; border: var(--hairline); }
.dots { display: grid; grid-template-columns: repeat(var(--cols), 10px); gap: 6px; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.dot--pq { background: var(--eucalypt); }
.dot--classical { background: var(--ochre); }
.dot--p256 { outline: 1.5px solid var(--oxide); outline-offset: 1.5px; }
.dot--ring { background: transparent; outline: 1.5px solid var(--oxide); outline-offset: -1.5px; }
.dots .dot { cursor: crosshair; }
.dots .dot.is-active { outline: 2px solid var(--ink); outline-offset: 2px; }
.legend { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); font: 500 14px/1.4 var(--font-body); }
.legend li { display: flex; align-items: center; gap: var(--s2); }
.dotfield__side { display: grid; gap: var(--s5); align-content: start; }
.dotfield__readout { font: 400 14px/1.5 var(--font-mono); min-height: 3em; border-left: 2px solid var(--rule); padding-left: var(--s3); }
.mini { border-collapse: collapse; font-size: 15px; max-width: 26rem; width: 100%; }
.mini caption { text-align: left; margin-bottom: var(--s2); }
.mini th, .mini td { text-align: left; padding: var(--s1) 0; border-bottom: var(--hairline); font-weight: 400; }
.mini thead th { font: 500 13px/1.4 var(--font-body); text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.mini td { font-family: var(--font-mono); text-align: right; }
.mini thead th:last-child { text-align: right; }
.proof-foot { margin-top: var(--s6); display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); align-items: baseline; }

/* Margin note */
.note, .note--stack { font: italic 400 14px/1.45 var(--font-body); color: var(--oxide); max-width: 30ch; }
.note--stack { display: grid; gap: var(--s4); }
.note__mark { display: block; width: 72px; height: 8px; margin-bottom: var(--s1); }
.note__mark svg, .underlined > svg { overflow: visible; }
.note__mark svg { width: 100%; height: 100%; }
.note__mark path, .underlined path { fill: none; stroke: var(--oxide); stroke-width: 2; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.underlined { position: relative; white-space: nowrap; }
.underlined > svg { position: absolute; left: -2%; bottom: -0.3em; width: 104%; height: 0.45em; pointer-events: none; }

/* Ledger tables */
.ledger-wrap { container-type: inline-size; }
.ledger { width: 100%; border-collapse: collapse; border-top: 1px solid var(--ink); }
.ledger th, .ledger td { text-align: left; vertical-align: top; padding: var(--s4) var(--s4) var(--s4) 0; border-bottom: var(--hairline); }
.ledger thead th { font: 500 14px/1.4 var(--font-body); text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); padding-block: var(--s3); }
.ledger td.mono, .ledger th.mono { font: 400 15px/1.5 var(--font-mono); }
@container (width >= 600px) {
  .ledger { table-layout: fixed; }
  .ledger--changed th:nth-child(1) { width: 15%; } .ledger--changed th:nth-child(2) { width: 47%; } .ledger--changed th:nth-child(3) { width: 14%; }
  .ledger--checks th:nth-child(1) { width: 24%; } .ledger--checks th:nth-child(2) { width: 42%; }
  .ledger--pricing th:nth-child(1) { width: 17%; } .ledger--pricing th:nth-child(2) { width: 15%; } .ledger--pricing th:nth-child(4) { width: 15%; }
  .ledger--status th:nth-child(1) { width: 14%; } .ledger--status th:nth-child(2) { width: 17%; } .ledger--status th:nth-child(3) { width: 41%; } .ledger--status th:nth-child(5) { width: 13%; }
  .ledger--pairs tbody th { width: 22%; }
}
.ledger td.prose { display: table-cell; max-width: none; }
.ledger td.prose p + p { margin-top: var(--s2); }
.ledger td.small a { display: inline-block; padding-block: 3px; } /* stacked source links reach 24px targets (WCAG 2.5.8) */
.ledger th.plan, .ledger--pairs tbody th { font: 700 20px/1.2 var(--font-display); }
.ledger--status .st { margin: 0 var(--s1) var(--s1) 0; }
@container (width < 600px) {
  .ledger, .ledger thead, .ledger tbody, .ledger tr, .ledger th, .ledger td, .ledger td.prose { display: block; }
  .ledger thead { display: none; }
  .ledger tr { padding: var(--s3) 0; border-bottom: var(--hairline); }
  .ledger th, .ledger td { border-bottom: 0; padding: var(--s1) 0; width: auto; }
  .ledger td[data-label]::before { content: attr(data-label); display: block; font: 500 13px/1.4 var(--font-body); text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 2px; }
  .ledger--pairs td[data-label]::before { content: none; }
}
.counters { display: flex; flex-wrap: wrap; gap: var(--s3) var(--s7); margin-bottom: var(--s6); font: 400 15px/1.5 var(--font-mono); }
.counter__n { font: 500 32px/1 var(--font-mono); color: var(--oxide); font-variant-numeric: tabular-nums; margin-right: var(--s1); }

/* Evidence Pack preview */
.pack { position: relative; }
.pack__sheet { position: relative; background: var(--paper); border: 1px solid var(--ink); border-radius: var(--radius); padding: var(--s5) var(--s4); }
@media (min-width: 48rem) { .pack__sheet { padding: var(--s6); } }
.pack__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: start; gap: var(--s3); border-bottom: 1px solid var(--ink); padding-bottom: var(--s4); margin-bottom: var(--s2); }
.pack__title { font: 700 22px/1.2 var(--font-display); }
.pack__meta, .pack__ref, .pack__score, .pack__foot { font-size: 14px; color: var(--muted); }
.pack__q { padding-block: var(--s5); border-bottom: var(--hairline); }
.pack__q:last-of-type { border-bottom: 0; }
.pack__question { font-weight: 600; margin-top: var(--s1); }
.pack__score { color: var(--ink); margin-top: var(--s2); }
.pack__answer { margin-top: var(--s3); padding-left: var(--s4); border-left: 2px solid var(--eucalypt); display: grid; gap: var(--s2); }
.pack__foot { margin-top: var(--s4); padding-top: var(--s4); border-top: 1px solid var(--ink); }
.pack .stamp { width: 112px; }

/* Pricing extras */
.pricing-note { margin-top: var(--s3); }
.early { margin-top: var(--s6); max-width: 40rem; display: grid; gap: var(--s3); }
.early fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: var(--s1) var(--s5); }
.early legend { font-weight: 600; margin-bottom: var(--s2); padding: 0; }
.early .opt { display: flex; align-items: center; gap: var(--s2); min-height: 44px; }
.early .opt input { width: 20px; height: 20px; accent-color: var(--eucalypt); margin: 0; }
.early label[for] { font-weight: 600; }

/* FAQ */
.faq-list { border-top: 1px solid var(--ink); margin-top: var(--s4); }
.qa { padding-block: var(--s6); border-bottom: var(--hairline); display: grid; gap: var(--s3); max-width: var(--measure); }
.qa h2 { font-size: 26px; }
@media (min-width: 64rem) { .qa h2 { font-size: 30px; } }
.src { font: 500 14px/1.4 var(--font-body); color: var(--muted); }

/* Footer */
.site-foot { border-top: 1px solid var(--ink); padding-block: var(--s7) var(--s8); font-size: 15px; }
.site-foot__grid { display: grid; gap: var(--s6); }
@media (min-width: 60rem) { .site-foot__grid { grid-template-columns: 1fr 1.6fr; } }
.site-foot__meta { display: grid; gap: var(--s2); color: var(--muted); align-content: start; }
.site-foot__meta .brand__word { color: var(--ink); }
.site-foot__links { display: flex; flex-wrap: wrap; gap: var(--s1) var(--s4); }
.site-foot__links a { color: var(--ink); padding-block: var(--s2); }
.site-foot__sources { padding-left: var(--s5); display: grid; gap: var(--s1); font-size: 14px; color: var(--muted); margin-top: var(--s2); }

/* Document pages */
.page-head { padding-block: var(--s7) var(--s6); display: grid; gap: var(--s4); }
.page-head h1 { max-width: 20ch; }
.page-head__meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3) var(--s5); }
.answer { font-size: 20px; line-height: 1.5; max-width: var(--measure); padding-left: var(--s4); border-left: 2px solid var(--eucalypt); }
.prose { display: grid; gap: var(--s4); max-width: var(--measure); }
.prose h2 { margin-top: var(--s6); }
.prose ul, .prose ol { padding-left: var(--s5); display: grid; gap: var(--s2); }
.changelog { padding-left: var(--s5); font-size: 16px; display: grid; gap: var(--s1); margin-top: var(--s4); }
.optout { display: grid; gap: var(--s2); max-width: 36rem; }
.raw-all { margin-top: var(--s6); }
.raw-all summary { cursor: pointer; font-weight: 600; min-height: 44px; display: flex; align-items: center; }
.raw-all pre { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13px; }
.check-again { margin-top: var(--s6); }

/* 5. Motion: everything appears in its final state unless the visitor allows motion */
@media (prefers-reduced-motion: no-preference) {
  .probe.is-arriving::after {
    content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--panel-yes);
    transform-origin: left center; animation: sweep 200ms ease-out both, fade-out 120ms ease-out 200ms forwards; pointer-events: none;
  }
  .probe.is-arriving .probe__result, .probe.is-arriving .probe__ms { animation: fade 120ms ease-out 200ms both; }
  .stamp.is-pressed { animation: press 120ms ease-out both; }
  .dots.is-waiting .dot { background: var(--rule); outline-color: transparent; }
  .dots.is-filling .dot { transition: background-color 120ms ease-out, outline-color 120ms ease-out; transition-delay: calc(var(--i) * 3ms); }
}
@keyframes sweep { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes fade-out { to { opacity: 0; } }
@keyframes press { from { scale: 1.08; opacity: 0; } to { scale: 1; opacity: 1; } }

@media (forced-colors: active) {
  .dot--pq, .dot--classical { forced-color-adjust: none; }
  .st, .probe__status, .stamp rect { forced-color-adjust: auto; }
}
