/* Aegis. Monochrome graphite UI: colour belongs to the verdict only (high / medium / clean / unknown).
   Type: 48 / 24 / 15 / 13. Radius: 8 inside 12. Motion: 150 / 240 / 320 ms, ease-out. */

@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-display: swap; src: url("fonts/ibm-plex-sans-400.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 500; font-display: swap; src: url("fonts/ibm-plex-sans-500.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 600; font-display: swap; src: url("fonts/ibm-plex-sans-600.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 400; font-display: swap; src: url("fonts/jetbrains-mono-400.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 500; font-display: swap; src: url("fonts/jetbrains-mono-500.woff2") format("woff2"); }

:root {
  --canvas: #0B0C0E;
  --surface: #121316;
  --raised: #17181C;
  --line: #24262B;
  --line-strong: #33363D;
  --text: #ECECEE;
  --muted: #9A9CA3;
  --faint: #6B6E76;
  --high: #F2555A;
  --medium: #F0A43A;
  --clean: #3CCB7F;
  --unknown: #8C93A3;
  --btn: #ECECEE;
  --btn-text: #0B0C0E;
  --focus: #ECECEE;

  --sans: "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --t-display: 48px;
  --t-title: 24px;
  --t-body: 15px;
  --t-small: 13px;
  --r-outer: 12px;
  --r-inner: 8px;
  --fast: 150ms;
  --base: 240ms;
  --slow: 320ms;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root {
    --canvas: #FAFAF9;
    --surface: #FFFFFF;
    --raised: #F3F3F1;
    --line: #E6E6E3;
    --line-strong: #D4D4D0;
    --text: #111214;
    --muted: #5E6168;
    --faint: #8A8D94;
    --high: #D92D35;
    --medium: #B86E00;
    --clean: #1E9E5A;
    --unknown: #6B7280;
    --btn: #111214;
    --btn-text: #FAFAF9;
    --focus: #111214;
    color-scheme: light;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--text);
  font: 400 var(--t-body)/1.6 var(--sans);
  font-feature-settings: "tnum" 1;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
h1, h2, h3, p, ol, ul, dl, dd { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
img { display: block; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }

.wrap { width: 100%; max-width: 960px; margin: 0 auto; padding: 0 24px; }
.mono { font-family: var(--mono); font-feature-settings: "tnum" 1, "zero" 1; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.strong { color: var(--text); font-weight: 500; }
.break { overflow-wrap: anywhere; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.t-display { font-size: var(--t-display); line-height: 1.08; font-weight: 600; letter-spacing: -0.025em; }
.t-title { font-size: var(--t-title); line-height: 1.25; font-weight: 600; letter-spacing: -0.01em; }
.icon { width: 16px; height: 16px; flex: none; }

/* --- nav / footer --- */
.nav { border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 56px; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; letter-spacing: 0.1em; }
.brand .icon { width: 20px; height: 20px; }
.nav-right { display: flex; align-items: center; justify-content: flex-end; gap: 20px; flex: 1; min-width: 0; }
.nav-link { font-size: var(--t-small); color: var(--muted); white-space: nowrap; transition: color var(--fast) var(--ease); }
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--text); }
.nav-scan { display: flex; gap: 8px; width: min(360px, 60%); }
.nav-scan input {
  flex: 1; min-width: 0; height: 32px; padding: 0 12px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-inner);
  font-size: var(--t-small);
  transition: border-color var(--fast) var(--ease);
}
.nav-scan input:focus { outline: none; border-color: var(--line-strong); }
.footer { border-top: 1px solid var(--line); margin-top: 96px; }
.footer-inner { display: flex; justify-content: space-between; gap: 16px; padding-top: 24px; padding-bottom: 32px; font-size: var(--t-small); color: var(--muted); }

/* --- buttons / inputs --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border: 0; border-radius: var(--r-inner);
  background: var(--btn); color: var(--btn-text); font-weight: 500; cursor: pointer;
  transition: opacity var(--fast) var(--ease), transform var(--fast) var(--ease);
}
.btn:hover { opacity: 0.88; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.btn-sm { height: 32px; padding: 0 12px; font-size: var(--t-small); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn-ghost:hover { opacity: 1; border-color: var(--line-strong); background: var(--surface); }
.btn-link { background: none; border: 0; padding: 0; color: var(--muted); font-size: var(--t-small); cursor: pointer; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.btn-link:hover { color: var(--text); }

/* --- home --- */
.hero { padding: 96px 0 72px; max-width: 680px; }
.preview { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin-bottom: 24px; font-size: var(--t-small); color: var(--muted); }
.preview-tag { color: var(--text); border-color: var(--line-strong); background: var(--surface); font-weight: 500; }
.lede { margin-top: 20px; color: var(--muted); font-size: var(--t-body); max-width: 520px; }
.scan-form { margin-top: 40px; }
.field {
  display: flex; gap: 8px; padding: 6px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-outer);
  transition: border-color var(--fast) var(--ease);
}
.field:focus-within { border-color: var(--line-strong); }
.field-error { border-color: color-mix(in srgb, var(--high) 55%, var(--line)); }
.field input { flex: 1; min-width: 0; height: 44px; padding: 0 12px; background: none; border: 0; font-family: var(--mono); font-size: var(--t-body); }
.field input:focus { outline: none; }
.field input::placeholder, .nav-scan input::placeholder { color: var(--faint); }
.hint { margin-top: 12px; font-size: var(--t-small); color: var(--faint); }
.form-error { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: var(--t-small); color: var(--high); }
.form-ok { display: flex; align-items: center; gap: 8px; margin-top: 16px; font-size: var(--t-small); color: var(--clean); }
.graph-stats {
  display: flex; flex-wrap: wrap; gap: 8px 12px; margin-top: 28px;
  font-size: var(--t-small); color: var(--faint);
}
.waitlist-lede { margin: 16px 0 0; font-size: var(--t-small); }
/* Waitlist: the channel picker sits inside the field, left of the contact input. */
.field-main { display: flex; flex: 1; min-width: 0; }
.channel-pick { position: relative; display: flex; flex: none; border-right: 1px solid var(--line); }
.channel-pick:not(.is-enhanced)::after {
  content: ""; position: absolute; right: 12px; top: 50%; width: 6px; height: 6px; margin-top: -5px;
  border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(45deg); pointer-events: none;
}
.channel-pick select {
  height: 44px; padding: 0 32px 0 12px; border: 0; border-radius: var(--r-inner); background: none;
  font: inherit; font-size: var(--t-small); color: var(--text); cursor: pointer; appearance: none; -webkit-appearance: none;
}
.channel-pick select:focus { outline: none; }
.channel-pick select:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.channel-pick option { background: var(--surface); color: var(--text); }
.channel-pick select[hidden], .channel-button[hidden], .channel-menu[hidden] { display: none; }
.channel-button {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 156px; height: 44px; padding: 0 14px 0 12px;
  border: 0; border-radius: var(--r-inner); background: none; color: var(--text); font-size: var(--t-small); cursor: pointer;
  transition: background var(--fast) var(--ease);
}
.channel-button:hover, .channel-button[aria-expanded="true"] { background: var(--raised); }
.channel-current { display: inline-flex; align-items: center; gap: 8px; }
.channel-current .icon, .channel-option .icon { width: 15px; height: 15px; color: var(--muted); }
.chevron {
  width: 6px; height: 6px; margin: -3px 2px 0 2px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted);
  transform: rotate(45deg); transition: transform var(--fast) var(--ease);
}
.channel-button[aria-expanded="true"] .chevron { margin-top: 3px; transform: rotate(-135deg); }
.channel-menu {
  position: absolute; z-index: 20; top: calc(100% + 10px); left: 0; right: 0; padding: 6px;
  background: var(--raised); border: 1px solid var(--line-strong); border-radius: var(--r-outer);
  box-shadow: 0 16px 40px rgb(0 0 0 / 0.35), 0 2px 6px rgb(0 0 0 / 0.2);
}
.channel-menu:focus { outline: none; }
.channel-option {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 8px 10px 6px;
  border-radius: var(--r-inner); font-size: var(--t-small); color: var(--muted); cursor: pointer;
}
.channel-option-main { display: inline-flex; align-items: center; gap: 10px; }
.channel-option.is-active { background: var(--line); color: var(--text); }
.channel-option.is-active .icon { color: var(--text); }
.channel-option .icon-check { visibility: hidden; color: var(--text); }
.channel-option[aria-selected="true"] { color: var(--text); }
.channel-option[aria-selected="true"] .icon-check { visibility: visible; }
.waitlist-form { margin-top: 16px; }
.steps-intro { border-top: 1px solid var(--line); }
.steps-intro li { display: grid; grid-template-columns: 48px 1fr; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.steps-intro .mono { font-size: var(--t-small); padding-top: 2px; }
.steps-intro h3 { font-size: var(--t-body); font-weight: 500; }
.steps-intro p { margin-top: 4px; font-size: var(--t-small); max-width: 600px; }
.steps-intro h3 .tag { margin-left: 6px; }
.step-soon h3 { color: var(--muted); }.recent li { border-bottom: 1px solid var(--line); }
.recent a { display: grid; grid-template-columns: minmax(0, 1fr) 150px 110px 170px; align-items: center; gap: 16px; padding: 12px 8px; margin: 0 -8px; border-radius: 6px; color: inherit; text-decoration: none; font-size: var(--t-small); transition: background var(--fast) var(--ease); }
.recent a:hover, .recent a:focus-visible { background: var(--surface); }
.recent-site { display: flex; align-items: center; gap: 12px; min-width: 0; }
.recent-site .favicon { flex: none; }
.recent-domain { min-width: 0; font-size: var(--t-body); color: var(--text); }
.recent .result { justify-self: end; }

/* --- sections --- */
.section { margin-top: 56px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.section-head h2 { font-size: var(--t-body); font-weight: 600; display: flex; align-items: baseline; gap: 8px; }
.section-head p { font-size: var(--t-small); }
.count { font-size: var(--t-small); font-weight: 400; color: var(--faint); }
.empty { padding: 20px 0; font-size: var(--t-small); }
.note { margin-top: 12px; font-size: var(--t-small); }
.tag {
  display: inline-flex; align-items: center; height: 22px; padding: 0 8px;
  border: 1px solid var(--line); border-radius: 6px;
  font-size: var(--t-small); color: var(--muted); white-space: nowrap;
}
.tag-xs { height: 18px; padding: 0 5px; font-size: 11px; font-family: var(--mono); letter-spacing: 0.04em; vertical-align: 1px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; max-width: 100%;
  height: 26px; padding: 0 8px; border: 1px solid var(--line); border-radius: 6px;
  font-size: var(--t-small); color: var(--muted); white-space: nowrap;
  transition: border-color var(--fast) var(--ease), color var(--fast) var(--ease);
}
.chip-label { color: var(--text); overflow: hidden; text-overflow: ellipsis; }
.chip .icon { width: 12px; height: 12px; color: var(--faint); }
a.chip:hover { border-color: var(--line-strong); color: var(--text); }

/* --- verdict (the only coloured element) --- */
.tone-high { --tone: var(--high); }
.tone-medium { --tone: var(--medium); }
.tone-clean { --tone: var(--clean); }
.tone-unknown { --tone: var(--unknown); }
.tone-neutral { --tone: var(--muted); }

.verdict {
  margin-top: 40px;
  display: grid; grid-template-columns: 1fr minmax(240px, 300px); gap: 32px; align-items: center;
  padding: 28px 32px;
  background: color-mix(in srgb, var(--tone) 6%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--tone) 38%, var(--line));
  border-radius: var(--r-outer);
  view-transition-name: verdict;
}
.verdict-label { display: flex; align-items: center; gap: 10px; color: var(--tone); font-size: var(--t-title); font-weight: 600; letter-spacing: -0.01em; line-height: 1.2; }
.verdict-label .icon { width: 24px; height: 24px; }
.target { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
/* A tile behind the site's icon: icons drawn for a light tab vanish on dark, white ones on light. */
.favicon { box-sizing: border-box; width: 24px; height: 24px; padding: 3px; border-radius: 6px; object-fit: contain; background: var(--raised); border: 1px solid var(--line); }
.favicon-letter { display: inline-grid; place-items: center; padding: 0; color: var(--muted); font-size: 11px; font-weight: 600; }
.domain { font-size: var(--t-body); }
.index-label { font-size: var(--t-small); color: var(--muted); }
.index-value { display: flex; align-items: baseline; gap: 8px; margin-top: 2px; }
.index-number { font-size: var(--t-display); line-height: 1; font-weight: 500; letter-spacing: -0.03em; color: var(--text); }
.index-max { font-size: var(--t-small); color: var(--faint); }
.scale { margin-top: 14px; }
.scale-track { position: relative; height: 4px; border-radius: 2px; background: var(--line); }
.scale-fill { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 2px; background: var(--tone); transition: width 600ms var(--ease); }
.tick { position: absolute; top: -3px; width: 1px; height: 10px; background: var(--line-strong); }
/* MEDIUM_FROM / HIGH_FROM of aegis/scoring/rules.py */
.tick-medium { left: 30%; }
.tick-high { left: 60%; }
.scale-labels { position: relative; height: 16px; margin-top: 6px; font-size: 11px; color: var(--faint); }
.scale-labels span { position: absolute; top: 0; }
.scale-labels span:first-child { left: 0; }
.scale-labels span:last-child { right: 0; }
.scale-labels .at-medium { left: 30%; transform: translateX(-50%); }
.scale-labels .at-high { left: 60%; transform: translateX(-50%); }

.meta { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 14px; font-size: var(--t-small); }
.meta-actions { display: flex; align-items: center; gap: 16px; flex: none; }
.notice { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-inner); background: var(--surface); font-size: var(--t-small); color: var(--muted); }
.notice .icon { margin-top: 2px; }
.notice strong { color: var(--text); font-weight: 500; }
.contract-form { margin-top: 24px; }
.contract-form label { display: block; margin-bottom: 10px; font-size: var(--t-small); color: var(--muted); }

.feedback { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); font-size: var(--t-small); }
.mistake { margin-top: 12px; }
.mistake summary { display: inline; list-style: none; }
.mistake summary::-webkit-details-marker { display: none; }
.mistake-form { display: grid; gap: 8px; max-width: 560px; margin-top: 16px; }
.mistake-form label { margin-top: 8px; color: var(--muted); }
.mistake-form select, .mistake-form textarea, .mistake-form input {
  width: 100%; padding: 8px 12px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-inner);
  font: inherit; color: var(--text);
  transition: border-color var(--fast) var(--ease);
}
.mistake-form select, .mistake-form input { height: 36px; padding-top: 0; padding-bottom: 0; }
.mistake-form textarea { resize: vertical; min-height: 96px; }
.mistake-form :is(select, textarea, input):focus { outline: none; border-color: var(--line-strong); }
.mistake-form .btn { margin-top: 8px; }
.mistake-form .hint { margin-top: 4px; }

.summary { margin-top: 32px; padding: 20px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-outer); }
.summary .about { font-size: var(--t-body); font-weight: 500; max-width: 72ch; }
.summary .about + p { margin-top: 12px; color: var(--muted); font-size: var(--t-small); max-width: 72ch; }
.summary > p:first-child:not(.about) { max-width: 72ch; }
.ai-note { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: var(--t-small); color: var(--faint); }
.ai-note.paused { align-items: flex-start; max-width: 72ch; }
.ai-note.paused .tag { flex-shrink: 0; margin-top: 1px; }

/* --- red flags --- */
.flag { display: grid; grid-template-columns: 1fr auto; gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.flag h3 { font-size: var(--t-body); font-weight: 500; }
.flag-body > p { margin-top: 4px; font-size: var(--t-small); max-width: 72ch; }
.refs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; align-items: center; font-size: var(--t-small); }
.weight { font-size: var(--t-small); padding-top: 2px; }

/* --- checklist --- */
.checklist { display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; }
.checklist li { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: var(--t-small); }
.result { display: inline-flex; align-items: center; gap: 6px; color: var(--tone); font-weight: 500; white-space: nowrap; }
.result.tone-neutral { color: var(--muted); font-weight: 400; }

/* --- contracts table --- */
.table-wrap { overflow-x: auto; }
.contracts { width: 100%; border-collapse: collapse; font-size: var(--t-small); min-width: 760px; }
.contracts th { text-align: left; font-weight: 400; color: var(--faint); padding: 12px 12px 10px 0; border-bottom: 1px solid var(--line); white-space: nowrap; }
.contracts td { padding: 14px 12px 14px 0; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--muted); }
.contracts .num { text-align: right; padding-right: 0; }
.contracts td.c-name { width: 40%; color: var(--text); }
.c-name .name { font-weight: 500; }
.desc { margin-top: 4px; color: var(--muted); max-width: 48ch; }

/* --- not checked / team / links --- */
.unknown li { display: grid; grid-template-columns: 16px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.unknown .icon { color: var(--unknown); margin-top: 3px; }
.unknown h3 { font-size: var(--t-small); font-weight: 500; }
.unknown p { font-size: var(--t-small); }
.team li { padding: 16px 0; border-bottom: 1px solid var(--line); }
.team-head { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; font-size: var(--t-small); }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px 24px; margin-top: 12px; font-size: var(--t-small); }
.facts dt { color: var(--faint); }
.facts dd { color: var(--text); overflow-wrap: anywhere; }
.socials { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 16px; }
.socials a { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--r-inner); font-size: var(--t-small); transition: border-color var(--fast) var(--ease); max-width: 100%; }
.socials a:hover { border-color: var(--line-strong); }
.socials .icon { width: 14px; height: 14px; color: var(--muted); flex: none; }
.socials .icon-arrow-up-right { width: 12px; height: 12px; color: var(--faint); }

/* --- progress --- */
.progress-head { padding: 72px 0 32px; }
.eyebrow { font-size: var(--t-small); }
.progress-head h1 { margin-top: 4px; }
.progress-head p:last-child { margin-top: 8px; font-size: var(--t-small); }
.timer { color: var(--text); }
.steps { border-top: 1px solid var(--line); }
.step { display: grid; grid-template-columns: 20px 1fr auto; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--faint); font-size: var(--t-body); }
.step-done { color: var(--muted); }
.step-active { color: var(--text); }
.step-icon { display: grid; place-items: center; width: 20px; height: 20px; }
.step-icon .icon { width: 16px; height: 16px; color: var(--text); }
.step-detail { font-size: var(--t-small); color: var(--muted); }
.ring { width: 8px; height: 8px; border-radius: 50%; border: 1px solid var(--line-strong); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text); animation: pulse 1.6s var(--ease) infinite; }
.leave { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 24px; font-size: var(--t-small); }
.skeleton { margin-top: 48px; display: grid; gap: 12px; }
.sk-panel { display: grid; gap: 14px; padding: 28px 32px; border: 1px solid var(--line); border-radius: var(--r-outer); background: var(--surface); margin-bottom: 12px; view-transition-name: verdict; }
.sk-line { height: 12px; border-radius: 4px; background: linear-gradient(90deg, var(--raised) 0%, var(--line) 50%, var(--raised) 100%); background-size: 200% 100%; animation: shimmer 1.8s linear infinite; }
.w30 { width: 30%; } .w50 { width: 50%; } .w60 { width: 60%; } .w80 { width: 80%; } .w90 { width: 90%; }

/* --- message / legal / address pages --- */
.message { padding: 96px 0 0; max-width: 560px; display: grid; gap: 16px; justify-items: start; }
.legal { padding: 72px 0 0; max-width: 640px; }
.legal .lede { margin-top: 12px; }
.legal-list { list-style: disc; padding-left: 1.25rem; margin-top: 12px; display: grid; gap: 8px; font-size: var(--t-small); color: var(--muted); }
.legal-list strong { color: var(--text); font-weight: 500; }
.legal a { text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.legal a:hover { color: var(--text); }
.footer a { text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.footer a:hover { color: var(--text); }

.address-head { padding: 72px 0 8px; }
.address-head.tone-high, .address-head.tone-medium, .address-head.tone-clean, .address-head.tone-unknown {
  /* tone vars already set by .tone-* */
}
.address-full { margin-top: 8px; font-size: var(--t-small); }
.address-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 16px; }
.label-list, .peer-list, .path-list { border-top: 1px solid var(--line); }
.label-list li {
  display: grid; grid-template-columns: 140px 160px 1fr; gap: 12px; align-items: baseline;
  padding: 14px 0; border-bottom: 1px solid var(--line); font-size: var(--t-small);
}
.peer-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: var(--t-small); }
.peer-list a { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.peer-list a:hover .strong { text-decoration: underline; text-underline-offset: 3px; }
.path-list li { display: grid; gap: 10px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: var(--t-small); }
.section-link { color: var(--muted); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.section-link:hover { color: var(--text); }

/* --- roadmap: shipped is solid, next pulses, planned is dashed --- */
.roadmap-head { padding: 72px 0 0; max-width: 640px; }
.roadmap-head h1 { margin-top: 4px; }
.roadmap-head .lede { margin-top: 12px; }
.phase-strip { margin-top: 40px; }
.phase-strip ol { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
.phase-strip li { position: relative; }
.phase-strip li + li::before {
  content: ""; position: absolute; top: 6px; right: calc(100% - 6px); width: calc(100% - 12px); height: 1px;
  background: var(--line-strong);
}
.phase-strip li.strip-next::before, .phase-strip li.strip-planned::before {
  background: repeating-linear-gradient(90deg, var(--line-strong) 0 4px, transparent 4px 8px);
}
.phase-strip a { display: grid; justify-items: start; gap: 6px; padding-bottom: 4px; color: inherit; text-decoration: none; }
.strip-node { position: relative; z-index: 1; width: 13px; height: 13px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--canvas); }
.strip-done .strip-node { background: var(--text); border-color: var(--text); }
.strip-next .strip-node { border-color: var(--text); box-shadow: inset 0 0 0 3px var(--canvas); background: var(--text); }
.strip-version { font-size: var(--t-small); color: var(--text); }
.strip-label { font-size: 12px; color: var(--faint); }
.strip-planned .strip-version { color: var(--muted); }
.phase-strip a:hover .strip-version { text-decoration: underline; text-underline-offset: 3px; }

.roadmap-list { margin-top: 40px; }
.phase { position: relative; display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 20px; padding-bottom: 24px; scroll-margin-top: 24px; }
.phase:not(:last-child)::before {
  content: ""; position: absolute; left: 15px; top: 54px; bottom: -14px; width: 2px; border-radius: 1px;
  background: repeating-linear-gradient(180deg, var(--line-strong) 0 6px, transparent 6px 12px);
}
.phase-done::before { background: var(--line-strong) !important; }
.phase-rail { padding-top: 18px; }
.phase-node { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--canvas); }
.phase-done .phase-node { background: var(--text); border-color: var(--text); }
.phase-done .phase-node .icon { color: var(--canvas); }
.phase-next .phase-node { border-color: var(--text); }
.phase-card { padding: 20px 24px; border: 1px solid var(--line); border-radius: var(--r-outer); }
.phase-done .phase-card { background: var(--surface); }
.phase-next .phase-card { background: var(--surface); border-color: var(--line-strong); }
.phase-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: var(--t-small); }
.phase-version { color: var(--text); font-weight: 500; }
.phase-next .tag { color: var(--text); border-color: var(--line-strong); }
.phase-card h2 { margin-top: 12px; font-size: var(--t-title); font-weight: 600; line-height: 1.25; letter-spacing: -0.01em; }
.phase-planned .phase-card h2 { font-size: var(--t-body); }
.phase-summary { margin-top: 6px; font-size: var(--t-small); max-width: 64ch; }
.phase-items { display: grid; gap: 8px; margin-top: 16px; font-size: var(--t-small); color: var(--muted); }
.phase-items li { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 10px; align-items: start; }
.phase-items .icon { width: 14px; height: 14px; margin-top: 3px; color: var(--text); }
.item-dot { width: 5px; height: 5px; margin: 8px 0 0 5px; border-radius: 50%; background: var(--faint); }
.phase-next .phase-items { color: var(--text); }
.phase-next .item-dot { background: var(--text); }
/* Pro is the one ask of the page: inverted badge, brighter frame, the primary button. Still no colour. */
.tag-pro { background: var(--btn); color: var(--btn-text); border-color: var(--btn); font-weight: 600; letter-spacing: 0.02em; }
.pro-callout {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 32px; padding: 20px 24px;
  border: 1px solid color-mix(in srgb, var(--text) 35%, var(--line)); border-radius: var(--r-outer);
  background: var(--surface);
}
.pro-callout-title { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font-weight: 600; }
.pro-callout .muted { margin-top: 4px; font-size: var(--t-small); max-width: 56ch; }
.pro-callout .btn { flex: none; }
.phase-pro .phase-card { background: var(--surface); border-color: color-mix(in srgb, var(--text) 35%, var(--line)); }
.phase-pro .phase-card h2 { font-size: var(--t-title); }
.waitlist-join { scroll-margin-top: 160px; }
.phase-pro .phase-node { border-color: var(--text); }
.phase-pro .phase-items { color: var(--text); }
.phase-pro .item-dot { background: var(--text); }
.pro-join { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); font-size: var(--t-small); }
.pro-join .muted { margin-top: 2px; }
.pro-join .waitlist-form { margin-top: 12px; max-width: 520px; }
.strip-pro .strip-node { border-color: var(--text); }
.strip-pro .strip-version, .strip-pro .strip-label { color: var(--text); }

/* --- admin --- */
.admin-nav { display: flex; gap: 18px; overflow-x: auto; min-width: 0; }
.admin-who { display: flex; align-items: center; gap: 12px; flex: none; font-size: var(--t-small); }
.admin-page { padding-top: 40px; }
.admin-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.admin-head .muted { margin-top: 6px; font-size: var(--t-small); max-width: 64ch; }
.admin-head .btn { flex: none; }
.admin-error { margin: 0 0 24px; color: var(--text); }
.admin-ok { margin: 0 0 24px; }
.admin-ok .icon { color: var(--clean); }
.admin-login { max-width: 440px; margin: 48px auto 0; padding: 32px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-outer); }
.admin-login .eyebrow { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.admin-login h1 { margin-top: 8px; }
.admin-login .muted { margin-top: 10px; font-size: var(--t-small); }
.admin-login .btn { width: 100%; margin-top: 24px; }
.login-status { min-height: 1.6em; margin-top: 12px; font-size: var(--t-small); color: var(--muted); }
.login-status.is-error { color: var(--high); }

.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.tiles-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tile { display: grid; align-content: start; gap: 2px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-outer); transition: border-color var(--fast) var(--ease); }
a.tile:hover { border-color: var(--line-strong); }
.tile-attention { border-color: var(--line-strong); }
.tile-label { font-size: var(--t-small); color: var(--muted); }
.tile-value { font-size: var(--t-title); font-weight: 600; letter-spacing: -0.01em; }
.tile-note { font-size: 12px; color: var(--faint); }
.bars { display: block; width: 100%; height: auto; margin-top: 16px; }
.bar-track { fill: var(--surface); }
.bar { fill: var(--text); }
.bar-label { fill: var(--faint); font: 11px var(--mono); }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.filter { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; font-size: var(--t-small); color: var(--muted); transition: border-color var(--fast) var(--ease), color var(--fast) var(--ease); }
.filter:hover { border-color: var(--line-strong); color: var(--text); }
.filter[aria-current="page"] { background: var(--raised); border-color: var(--line-strong); color: var(--text); }
.filter .icon { width: 14px; height: 14px; }
.admin-table { width: 100%; border-collapse: collapse; font-size: var(--t-small); }
.admin-table th { text-align: left; font-weight: 400; color: var(--faint); padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); white-space: nowrap; }
.admin-table td { padding: 12px 12px 12px 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
.admin-table .num { text-align: right; padding-right: 0; white-space: nowrap; }
.channel-cell { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); }

.complaints { border-top: 1px solid var(--line); }
.complaint { padding: 20px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 24px; }
.complaint-head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; font-size: var(--t-small); }
.complaint-time { margin-left: auto; font-size: 12px; }
.status-open { color: var(--text); border-color: var(--line-strong); }
.complaint-message { margin-top: 12px; white-space: pre-wrap; overflow-wrap: anywhere; max-width: 80ch; }
.complaint-meta { display: flex; flex-wrap: wrap; gap: 8px 32px; margin-top: 12px; font-size: var(--t-small); }
.complaint-meta dt { color: var(--faint); }
.complaint-actions { display: flex; gap: 8px; margin-top: 16px; }

.admin-form { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.admin-form > label { display: grid; gap: 6px; font-size: var(--t-small); color: var(--muted); }
.admin-form .wide { grid-column: 1 / -1; }
.admin-form .half { grid-column: span 2; }
.admin-form input:not([type=checkbox]), .admin-form select {
  width: 100%; height: 40px; padding: 0 12px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-inner);
  font: inherit; color: var(--text);
  transition: border-color var(--fast) var(--ease);
}
.admin-form :is(input, select):focus { outline: none; border-color: var(--line-strong); }
.admin-form input::placeholder { color: var(--faint); }
.checks { display: grid; gap: 8px; }
.check { display: flex; align-items: center; gap: 10px; font-size: var(--t-small); color: var(--muted); }
.check input { width: 16px; height: 16px; accent-color: var(--text); }
.kv { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); column-gap: 32px; }
.kv div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: var(--t-small); }
.kv dt { color: var(--muted); }

/* --- motion: four moments only --- */
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes draw { from { stroke-dashoffset: 24; } to { stroke-dashoffset: 0; } }

/* 1. a stage completes: its check draws once */
.just-done .check-path { stroke-dasharray: 24; animation: draw var(--base) var(--ease) both; }
/* 3. red flags arrive 40 ms apart */
.flag { animation: rise var(--base) var(--ease) both; }
.flag:nth-child(2) { animation-delay: 40ms; }
.flag:nth-child(3) { animation-delay: 80ms; }
.flag:nth-child(4) { animation-delay: 120ms; }
.flag:nth-child(5) { animation-delay: 160ms; }
.flag:nth-child(6) { animation-delay: 200ms; }
.flag:nth-child(n+7) { animation-delay: 240ms; }
/* 4. progress -> report: the skeleton panel becomes the verdict */
@view-transition { navigation: auto; }
::view-transition-group(verdict) { animation-duration: var(--slow); animation-timing-function: var(--ease); }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: var(--base); }
/* 2. the Risk Index counts up once: app.js */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  @view-transition { navigation: none; }
}

/* --- small screens --- */
@media (max-width: 720px) {
  .wrap { padding: 0 16px; }
  :root { --t-display: 36px; }
  .hero { padding: 56px 0 48px; }
  .verdict { grid-template-columns: 1fr; gap: 24px; padding: 24px 20px; }
  .meta, .leave { flex-direction: column; align-items: flex-start; }
  .checklist { grid-template-columns: 1fr; }
  .recent a { grid-template-columns: minmax(0, 1fr) auto; row-gap: 2px; }
  .recent-chain, .recent-ago { grid-row: 2; font-size: 12px; }
  .recent-ago { grid-column: 2; justify-self: end; }
  .recent .result { grid-row: 1; grid-column: 2; }
  .nav-scan { display: none; }
  .footer-inner { flex-direction: column; gap: 4px; }
  .field { flex-direction: column; }
  .field .btn { width: 100%; }
  .label-list li { grid-template-columns: 1fr; gap: 4px; }
  .roadmap-head { padding-top: 48px; }
  .strip-label { display: none; }
  .phase { grid-template-columns: 24px minmax(0, 1fr); gap: 12px; }
  .phase:not(:last-child)::before { left: 11px; top: 46px; }
  .phase-node { width: 24px; height: 24px; }
  .phase-card { padding: 16px; }
  .phase-card h2 { font-size: var(--t-body); }
  .pro-callout { flex-direction: column; align-items: stretch; padding: 16px; }
  .admin .nav-inner { height: auto; flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px; }
  .admin .nav-right { flex-basis: 100%; justify-content: space-between; }
  .admin-head { flex-direction: column; align-items: flex-start; }
  .admin-form, .tiles { grid-template-columns: 1fr 1fr; }
  .admin-form .half { grid-column: 1 / -1; }
  .complaint-time { margin-left: 0; }
}
