/* Self-hosted fonts — no third-party requests, by design */
@font-face { font-family: "Geist"; src: url("fonts/geist.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("fonts/geist-mono.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  /* one warm-neutral gray family + one accent */
  --bg: #f4f3ee; --surface: #fbfaf7; --surface-2: #eceae3; --ink: #191c1a; --muted: #5d605a; --line: #dcd9cf; --line-strong: #c6c2b6;
  --primary: #1d6a57; --primary-hover: #17594a; --primary-ink: #ffffff; --primary-soft: #dde9e2;
  --high: #b5391f; --medium: #a2660f; --low: #3a6a9e; --ok: #2b7a48;
  --radius: 16px; --radius-sm: 10px; --radius-xs: 6px;
  --shadow: 0 1px 0 rgba(255, 255, 255, .7) inset, 0 1px 2px rgba(60, 50, 25, .05), 0 6px 20px -8px rgba(60, 50, 25, .10);
  --shadow-lg: 0 1px 0 rgba(255, 255, 255, .7) inset, 0 2px 4px rgba(60, 50, 25, .04), 0 24px 48px -20px rgba(45, 60, 40, .22);
  --font: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --z-grain: 1; --z-header: 20; --z-skip: 30;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111311; --surface: #181b19; --surface-2: #202421; --ink: #e9e8e2; --muted: #9b9d96; --line: #2a2e2b; --line-strong: #3a3f3b;
    --primary: #5bbf9f; --primary-hover: #74ceb1; --primary-ink: #0a1f18; --primary-soft: #19302a;
    --high: #f07a62; --medium: #e2aa4f; --low: #7aa6dc; --ok: #66c486;
    --shadow: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 1px 2px rgba(0, 0, 0, .35);
    --shadow-lg: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 24px 48px -20px rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition-duration: .01ms !important; animation-iteration-count: 1 !important; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--font); font-feature-settings: "ss01"; -webkit-font-smoothing: antialiased; position: relative; }
/* subtle paper grain */
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: var(--z-grain); opacity: .05; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
@media (prefers-color-scheme: dark) { body::before { mix-blend-mode: screen; opacity: .03; } }

a { color: var(--primary); text-underline-offset: 3px; text-decoration-thickness: 1px; transition: color .2s var(--ease); }
a:hover { color: var(--primary-hover); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .6em; font-weight: 620; text-wrap: balance; }
h1 { font-size: clamp(1.75rem, 3.6vw, 2.4rem); letter-spacing: -.03em; }
h2 { font-size: 1.3rem; letter-spacing: -.02em; }
h3 { font-size: 1.05rem; letter-spacing: -.01em; font-weight: 600; }
p { margin: 0 0 1em; text-wrap: pretty; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.main { padding-top: 36px; padding-bottom: 88px; min-height: 70vh; position: relative; z-index: 2; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.break { word-break: break-all; }
.strong { font-weight: 650; }
.mt { margin-top: 28px; }
.inline { display: inline; }
.mono { font-family: var(--mono); font-size: .9em; letter-spacing: -.01em; }

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

/* header */
.top { background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: var(--z-header); }
.top-in { display: flex; align-items: center; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 680; color: var(--ink); text-decoration: none; font-size: 1.08rem; letter-spacing: -.02em; }
.brand:hover { color: var(--ink); }
.brand img { transition: transform .4s var(--ease); }
.brand:hover img { transform: rotate(-8deg); }
.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; flex-wrap: wrap; }
.nav a, .nav .linkbtn { padding: 7px 12px; border-radius: 999px; color: var(--muted); text-decoration: none; font-size: .925rem; font-weight: 500; transition: color .2s var(--ease), background-color .2s var(--ease); }
.nav a:hover, .nav .linkbtn:hover { color: var(--ink); background: var(--surface-2); }
.nav a.on { color: var(--ink); background: var(--surface); box-shadow: 0 0 0 1px var(--line), var(--shadow); font-weight: 600; }
.nav-public { gap: 8px; }
.nav-public a.btn { color: var(--primary-ink); padding: 7px 14px; }
.nav-public a.btn:hover { background: var(--primary-hover); color: var(--primary-ink); }
.nav-toggle { display: none; margin-left: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; color: var(--ink); font: inherit; font-weight: 500; cursor: pointer; }
.langs { display: flex; gap: 2px; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: var(--surface); }
.langs a { font-family: var(--mono); font-size: .7rem; font-weight: 600; padding: 3px 8px; border-radius: 999px; text-decoration: none; color: var(--muted); transition: color .2s, background-color .2s; }
.langs a:hover { color: var(--ink); }
.langs a.on { background: var(--ink); color: var(--bg); }
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .langs { order: 2; }
  .nav:not(.nav-public) { display: none; order: 3; width: 100%; flex-direction: column; align-items: stretch; padding-bottom: 14px; }
  .nav:not(.nav-public) a, .nav:not(.nav-public) .linkbtn { border-radius: var(--radius-sm); text-align: left; width: 100%; }
  .nav.open { display: flex; }
}

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; justify-content: center; border: 1px solid var(--primary); background: var(--primary);
  color: var(--primary-ink); padding: 10px 18px; border-radius: 999px; font: inherit; font-weight: 600; letter-spacing: -.01em; cursor: pointer; text-decoration: none;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .18) inset, 0 6px 14px -6px color-mix(in srgb, var(--primary) 60%, transparent);
  transition: background-color .2s var(--ease), transform .15s var(--ease), box-shadow .2s var(--ease), color .2s; }
.btn:hover { background: var(--primary-hover); border-color: var(--primary-hover); color: var(--primary-ink); transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-sm { padding: 6px 13px; font-size: .875rem; }
.btn-lg { padding: 13px 24px; font-size: 1.02rem; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); box-shadow: none; }
.btn-ghost:hover { background: var(--surface); color: var(--ink); border-color: var(--ink); }
.btn-danger { background: var(--high); border-color: var(--high); color: #fff; box-shadow: none; }
.btn-danger:hover { background: color-mix(in srgb, var(--high) 85%, #000); border-color: transparent; color: #fff; }
.linkbtn { background: none; border: 0; color: var(--primary); font: inherit; cursor: pointer; padding: 0; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.icon-btn { background: var(--surface); border: 1px solid var(--line); color: var(--muted); border-radius: var(--radius-sm); width: 40px; flex: none; cursor: pointer; font-size: 1.2rem; transition: color .2s, border-color .2s, background-color .2s; }
.icon-btn:hover { color: var(--high); border-color: var(--high); background: color-mix(in srgb, var(--high) 6%, var(--surface)); }
.btn:focus-visible, .linkbtn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible, button:focus-visible {
  outline: 2px solid var(--primary); outline-offset: 3px; }

/* cards & layout */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card-accent { background: var(--primary-soft); border-color: transparent; box-shadow: none; }
.page-head { margin-bottom: 24px; }
.page-head p { max-width: 65ch; color: var(--muted); }
.two-col { display: grid; grid-template-columns: 1.15fr 1fr; gap: 20px; margin-top: 20px; align-items: start; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 860px) { .two-col, .grid3 { grid-template-columns: 1fr; } }

/* flash */
.flash { padding: 12px 16px 12px 18px; border-radius: var(--radius-sm); margin-bottom: 16px; border: 1px solid; border-left-width: 4px; animation: rise .35s var(--ease) both; }
.flash-ok { background: color-mix(in srgb, var(--ok) 9%, var(--surface)); border-color: color-mix(in srgb, var(--ok) 35%, transparent); border-left-color: var(--ok); }
.flash-err { background: color-mix(in srgb, var(--high) 9%, var(--surface)); border-color: color-mix(in srgb, var(--high) 35%, transparent); border-left-color: var(--high); }
.flash-warn { background: color-mix(in srgb, var(--medium) 11%, var(--surface)); border-color: color-mix(in srgb, var(--medium) 35%, transparent); border-left-color: var(--medium); }
.flash-info { background: color-mix(in srgb, var(--low) 9%, var(--surface)); border-color: color-mix(in srgb, var(--low) 35%, transparent); border-left-color: var(--low); }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* forms */
.form { display: grid; gap: 16px; }
label { display: grid; gap: 6px; font-weight: 560; font-size: .925rem; }
label small { font-weight: 400; color: var(--muted); }
input, select, textarea { font: inherit; font-weight: 400; color: var(--ink); background: var(--bg); border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm); padding: 10px 13px; width: 100%; min-width: 0; transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background-color .2s; }
input:hover, select:hover, textarea:hover { border-color: var(--muted); }
input:focus, select:focus, textarea:focus { background: var(--surface); border-color: var(--primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 16%, transparent); outline: none; }
input:user-invalid { border-color: var(--high); }
textarea { resize: vertical; line-height: 1.55; font-size: .925rem; }
input[readonly] { background: var(--surface-2); }
input[type="checkbox"] { accent-color: var(--primary); width: 17px; height: 17px; }
label.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
label.check input { width: 17px; margin-top: 4px; flex: none; }
.auth { max-width: 440px; margin: 32px auto; padding: 32px; box-shadow: var(--shadow-lg); }
.auth h1 { font-size: 1.7rem; }
fieldset.card { margin: 0 0 18px; }
legend { font-weight: 650; font-size: 1.05rem; letter-spacing: -.01em; padding: 0 8px; }
.fields-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.multi { display: grid; gap: 6px; align-content: start; }
.multi-label { font-weight: 600; }
.multi-rows { display: grid; gap: 8px; }
.multi-row { display: flex; gap: 6px; }
.multi .js-add { justify-self: start; font-size: .9rem; }
.variants { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.sticky-save { position: sticky; bottom: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 88%, transparent); padding: 14px 0; display: flex; gap: 16px; align-items: center; flex-wrap: wrap;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--line); }
.filters { display: flex; gap: 12px; flex-wrap: wrap; align-items: end; margin-bottom: 18px; padding: 16px; }
.filters label { min-width: 150px; }
.row-actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 12px 0; }
.letter-form .fields-grid { margin-bottom: 4px; }

/* tags / severity */
.tag { display: inline-block; font-size: .72rem; font-weight: 560; padding: 2px 8px; border-radius: var(--radius-xs); background: var(--surface-2); color: var(--muted); white-space: nowrap; letter-spacing: .01em; }
.tag-warn { background: color-mix(in srgb, var(--medium) 18%, transparent); color: var(--ink); }
.tag-resolved { background: color-mix(in srgb, var(--ok) 16%, transparent); color: var(--ink); }
.tag-in_progress { background: color-mix(in srgb, var(--low) 16%, transparent); color: var(--ink); }
.sev { display: inline-block; width: 9px; height: 9px; border-radius: 3px; flex: none; }
.sev-high { background: var(--high); box-shadow: 0 0 0 3px color-mix(in srgb, var(--high) 18%, transparent); }
.sev-medium { background: var(--medium); box-shadow: 0 0 0 3px color-mix(in srgb, var(--medium) 18%, transparent); }
.sev-low { background: var(--low); box-shadow: 0 0 0 3px color-mix(in srgb, var(--low) 18%, transparent); }
.sev-text-high { color: var(--high); } .sev-text-medium { color: var(--medium); } .sev-text-low { color: var(--low); } .ok-text { color: var(--ok); }
.danger-text { color: var(--high); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.chip { font-family: var(--mono); font-size: .76rem; padding: 3px 9px; border-radius: var(--radius-xs); border: 1px solid var(--line); background: var(--bg); }
.chip-bad { border-color: color-mix(in srgb, var(--high) 50%, transparent); color: var(--high); background: color-mix(in srgb, var(--high) 6%, var(--surface)); }

/* ---------- home ---------- */
.hero { display: grid; grid-template-columns: 1.25fr 1fr; gap: 56px; align-items: center; padding: 40px 0 32px; }
.hero h1 { font-size: clamp(2.3rem, 5.6vw, 3.9rem); letter-spacing: -.045em; line-height: 1.02; font-weight: 640; margin-bottom: .45em; }
.hero h1 em { font-style: normal; color: var(--primary); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: .78rem; font-weight: 500; color: var(--muted);
  padding: 5px 12px 5px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); margin-bottom: 22px; }
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 0 color-mix(in srgb, var(--primary) 50%, transparent); animation: ping 2.4s var(--ease) infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--primary) 45%, transparent); } 70%, 100% { box-shadow: 0 0 0 8px transparent; } }
.lead { font-size: 1.15rem; line-height: 1.6; color: var(--muted); max-width: 54ch; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 30px 0 14px; }
.hero-free { display: flex; align-items: center; gap: 8px; }
.hero-free::before { content: "✓"; color: var(--ok); font-weight: 700; }

/* the "report" mock */
.hero-card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 0; box-shadow: var(--shadow-lg); overflow: hidden;
  transform: rotate(1.2deg); transition: transform .5s var(--ease); }
.hero-card:hover { transform: rotate(0deg) translateY(-2px); }
.hero-card::after { content: ""; position: absolute; inset: auto -40% -60% auto; width: 80%; aspect-ratio: 1; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--primary) 14%, transparent), transparent); }
.report-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 22px; border-bottom: 1px dashed var(--line-strong);
  font-family: var(--mono); font-size: .72rem; color: var(--muted); }
.report-head b { font-weight: 600; color: var(--ink); }
.report-body { padding: 22px; position: relative; z-index: 1; }
.mock-score { display: flex; align-items: baseline; gap: 10px; margin-bottom: 6px; }
.mock-score span { font-family: var(--mono); font-size: 3.4rem; font-weight: 600; letter-spacing: -.06em; line-height: 1; color: var(--medium); font-variant-numeric: tabular-nums; }
.mock-score small { color: var(--muted); }
.gauge { height: 6px; border-radius: 99px; background: linear-gradient(90deg, var(--ok), var(--medium) 55%, var(--high)); margin: 10px 0 20px; position: relative; opacity: .9; }
.gauge i { position: absolute; top: 50%; width: 14px; height: 14px; border-radius: 50%; background: var(--surface); border: 3px solid var(--ink); transform: translate(-50%, -50%); left: 67%; }
.mock-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.mock-list li { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 11px 13px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: .9rem;
  animation: rise .5s var(--ease) both; }
.mock-list li:nth-child(2) { animation-delay: .08s; } .mock-list li:nth-child(3) { animation-delay: .16s; } .mock-list li:nth-child(4) { animation-delay: .24s; }
.mock-list li > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mock-list code { font-family: var(--mono); font-size: .74rem; color: var(--muted); }
.redact { display: inline-block; width: 4.5em; height: .75em; border-radius: 2px; background: var(--ink); opacity: .82; vertical-align: -1px; }

.section { margin-top: 104px; }
.section-head { display: grid; grid-template-columns: 1fr 1.6fr; gap: 40px; align-items: end; margin-bottom: 32px; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -.035em; margin: 0; }
.section-head p { margin: 0; color: var(--muted); max-width: 52ch; }
.kicker { display: block; font-family: var(--mono); font-size: .75rem; font-weight: 500; color: var(--primary); margin-bottom: 12px; letter-spacing: .02em; }

/* steps: a ruled timeline, not three boxes */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; counter-reset: s; border-top: 1px solid var(--line-strong); }
.steps li { counter-increment: s; padding: 26px 28px 8px 0; display: grid; gap: 8px; align-content: start; position: relative; }
.steps li + li { padding-left: 28px; border-left: 1px solid var(--line); }
.steps li::before { content: "0" counter(s); font-family: var(--mono); font-size: .8rem; font-weight: 500; color: var(--primary); }
.steps li::after { content: ""; position: absolute; top: -4px; left: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--primary); }
.steps li + li::after { left: -4px; }
.steps strong { font-size: 1.15rem; font-weight: 600; letter-spacing: -.02em; }
.steps span { color: var(--muted); }

/* checks: editorial index */
.index { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 48px; }
.index li { display: grid; grid-template-columns: 2.2rem 1fr; gap: 4px 12px; padding: 22px 0; border-top: 1px solid var(--line); transition: background-color .25s var(--ease); }
.index li::before { content: attr(data-n); grid-row: span 2; font-family: var(--mono); font-size: .78rem; color: var(--muted); padding-top: 3px; }
.index h3 { margin: 0; }
.index p { margin: 0; color: var(--muted); max-width: 46ch; }
.index li:hover h3 { color: var(--primary); }
.grid3 .card h3 { margin-bottom: .3em; }
.grid3 .card p { color: var(--muted); margin: 0; }

/* GDPR band */
.rights { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; padding: 44px; border-radius: 24px; position: relative; overflow: hidden; }
.rights::before { content: ""; position: absolute; inset: -30% -10% auto auto; width: 60%; aspect-ratio: 1; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--primary) 18%, transparent), transparent); }
.rights h2 { font-size: clamp(1.5rem, 2.8vw, 2rem); letter-spacing: -.03em; }
.rights p { max-width: 58ch; margin-bottom: 0; }
.articles { display: grid; gap: 10px; position: relative; }
.articles div { display: flex; align-items: baseline; gap: 14px; padding: 12px 16px; background: color-mix(in srgb, var(--surface) 75%, transparent); border-radius: var(--radius-sm); border: 1px solid color-mix(in srgb, var(--primary) 18%, transparent); }
.articles b { font-family: var(--mono); font-weight: 600; font-size: .85rem; color: var(--primary); min-width: 4.5em; }
.closing { text-align: center; padding: 24px 0 0; }
.closing h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); letter-spacing: -.035em; }

@media (max-width: 860px) {
  .hero, .section-head, .rights { grid-template-columns: 1fr; }
  .hero { gap: 40px; padding-top: 16px; }
  .hero-card { transform: none; }
  .section { margin-top: 72px; }
  .section-head { gap: 12px; }
  .steps { grid-template-columns: 1fr; border-top: 0; border-left: 1px solid var(--line-strong); }
  .steps li, .steps li + li { padding: 4px 0 26px 24px; border-left: 0; }
  .steps li::after, .steps li + li::after { top: 10px; left: -4px; }
  .index { grid-template-columns: 1fr; }
  .rights { padding: 28px 22px; }
}

/* ---------- dashboard ---------- */
.dash-grid { display: grid; grid-template-columns: 2fr repeat(4, 1fr); gap: 12px; }
.score { display: flex; align-items: center; gap: 20px; }
.score-num { font-family: var(--mono); font-size: 3.4rem; font-weight: 600; line-height: 1; letter-spacing: -.06em; font-variant-numeric: tabular-nums; }
.score-high .score-num { color: var(--high); } .score-medium .score-num { color: var(--medium); } .score-low .score-num { color: var(--ok); }
.score-high { background: linear-gradient(135deg, color-mix(in srgb, var(--high) 7%, var(--surface)), var(--surface) 60%); }
.score-medium { background: linear-gradient(135deg, color-mix(in srgb, var(--medium) 8%, var(--surface)), var(--surface) 60%); }
.score-low { background: linear-gradient(135deg, color-mix(in srgb, var(--ok) 7%, var(--surface)), var(--surface) 60%); }
.score p { margin: 0; }
.stat { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 6px; padding: 18px 20px; }
.stat > span:last-child { font-size: .8rem; color: var(--muted); font-weight: 500; }
.stat-n { font-family: var(--mono); font-size: 2rem; font-weight: 600; line-height: 1.05; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
@media (max-width: 860px) { .dash-grid { grid-template-columns: repeat(2, 1fr); } .score { grid-column: 1 / -1; } }
.table { width: 100%; border-collapse: collapse; font-size: .925rem; font-variant-numeric: tabular-nums; }
.table th, .table td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.table th { color: var(--muted); font-weight: 500; font-size: .76rem; font-family: var(--mono); border-bottom-color: var(--line-strong); }
.table tbody tr { transition: background-color .15s; }
.table tbody tr:hover { background: color-mix(in srgb, var(--surface-2) 55%, transparent); }
.table tbody tr:last-child td { border-bottom: 0; }
.table td.right { text-align: right; }
.todo { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 2px; }
.todo li { display: flex; align-items: center; gap: 12px; padding: 8px 10px; margin: 0 -10px; border-radius: var(--radius-sm); transition: background-color .15s; }
.todo li:hover { background: var(--surface-2); }
.todo li a { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); text-decoration: none; font-weight: 500; }
.todo li a:hover { color: var(--primary); }
.progress { width: 100%; height: 8px; border-radius: 99px; overflow: hidden; appearance: none; border: 0; background: var(--surface-2); }
.progress::-webkit-progress-bar { background: var(--surface-2); border-radius: 99px; }
.progress::-webkit-progress-value { background: var(--primary); border-radius: 99px; transition: width .4s var(--ease); }
.progress::-moz-progress-bar { background: var(--primary); border-radius: 99px; }
.progress-lg { height: 10px; margin: 22px 0 10px; }

/* ---------- scan ---------- */
.scan-box { max-width: 560px; margin: 48px auto; padding: 40px 32px; box-shadow: var(--shadow-lg); }
#scan-text { font-family: var(--mono); font-variant-numeric: tabular-nums; }
/* radar sweep instead of a generic spinner */
.spinner { width: 76px; height: 76px; border-radius: 50%; margin: 0 auto 22px; position: relative;
  background: repeating-radial-gradient(circle, transparent 0 11px, color-mix(in srgb, var(--primary) 22%, transparent) 11px 12px), var(--primary-soft);
  border: 1px solid color-mix(in srgb, var(--primary) 30%, transparent); }
.spinner::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, transparent 0 70%, color-mix(in srgb, var(--primary) 55%, transparent) 100%); animation: spin 1.6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner::after { animation: spin 6s linear infinite !important; } .eyebrow::before, .mock-list li, .flash { animation: none; } }

/* ---------- findings ---------- */
.findings { display: grid; gap: 10px; }
.finding { padding: 0; border-left: 3px solid var(--line); transition: box-shadow .25s var(--ease), border-color .2s; }
.finding:hover { box-shadow: var(--shadow-lg); }
.sevb-high { border-left-color: var(--high); } .sevb-medium { border-left-color: var(--medium); } .sevb-low { border-left-color: var(--low); }
.finding summary { display: flex; align-items: center; gap: 12px; padding: 16px 20px; cursor: pointer; list-style: none; flex-wrap: wrap; border-radius: var(--radius); }
.finding summary::-webkit-details-marker { display: none; }
.finding summary::after { content: ""; width: 8px; height: 8px; margin-left: auto; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(45deg) translate(-2px, -2px); transition: transform .25s var(--ease); }
.finding[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.f-title { font-weight: 600; flex: 1 1 240px; min-width: 0; overflow-wrap: anywhere; letter-spacing: -.01em; }
.f-body { padding: 18px 20px 22px; border-top: 1px dashed var(--line-strong); }
.finding[open] .f-body { animation: rise .3s var(--ease) both; }
.meta { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0 0 16px; font-size: .9rem; }
.meta dt { color: var(--muted); font-family: var(--mono); font-size: .78rem; padding-top: 2px; }
.meta dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.snippet { margin: 0 0 16px; padding: 12px 16px; border-left: 2px solid var(--line-strong); background: var(--bg); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: .9rem; color: var(--muted); font-style: italic; }
.fix { padding-left: 1.3em; display: grid; gap: 10px; margin: 0 0 18px; }
.fix li::marker { font-family: var(--mono); color: var(--primary); font-size: .85em; }
.fix .btn { margin: 4px 6px 0 0; }
.status-actions { display: flex; gap: 8px; flex-wrap: wrap; padding-top: 16px; border-top: 1px dashed var(--line); }

/* ---------- brokers ---------- */
.brokers { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.broker { display: grid; gap: 10px; align-content: start; grid-template-rows: auto 1fr auto; padding: 20px; transition: border-color .2s, box-shadow .25s var(--ease), transform .25s var(--ease); }
.broker:hover { border-color: var(--line-strong); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.broker p { margin: 0; }
.broker-head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.broker-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.broker-status { display: flex; gap: 8px; align-items: center; }
.broker-status select { width: auto; padding: 5px 10px; font-size: .875rem; }
.broker-removed, .broker-not_found { opacity: .62; border-color: color-mix(in srgb, var(--ok) 40%, var(--line)); background: color-mix(in srgb, var(--ok) 4%, var(--surface)); }
.broker-removed:hover, .broker-not_found:hover { opacity: 1; }
.broker-requested { border-color: color-mix(in srgb, var(--low) 50%, var(--line)); }

/* ---------- prose / footer / misc ---------- */
.prose { max-width: 68ch; margin: 0 auto; }
.prose h2 { margin-top: 1.6em; }
.prose p, .prose li { line-height: 1.7; }
.foot { border-top: 1px solid var(--line); padding: 32px 0 40px; font-size: .85rem; position: relative; z-index: 2; }
.foot-in { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }
.foot-in a { color: var(--muted); }
.foot-in a:hover { color: var(--ink); }
.foot-in .muted { margin-left: auto; }
@media (max-width: 640px) { .foot-in .muted { margin-left: 0; } }
.pager { display: flex; gap: 12px; align-items: center; justify-content: center; margin-top: 22px; font-variant-numeric: tabular-nums; }
.scan-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.scan-opt { display: grid; gap: 4px; text-align: left; padding: 16px 18px; border-radius: 14px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); font: inherit; cursor: pointer;
  transition: border-color .2s, transform .15s var(--ease), box-shadow .2s var(--ease); }
.scan-opt:hover { border-color: var(--primary); transform: translateY(-1px); box-shadow: var(--shadow); }
.scan-opt:active { transform: scale(.985); }
.scan-opt strong::after { content: " →"; color: var(--primary); opacity: 0; transition: opacity .2s; }
.scan-opt:hover strong::after { opacity: 1; }
.scan-opt-deep { border-color: color-mix(in srgb, var(--primary) 50%, transparent); background: var(--primary-soft); }
@media (max-width: 520px) { .scan-choice { grid-template-columns: 1fr; } }
.verified { font-size: .78rem; font-weight: 600; font-family: var(--mono); }
.verified-yes { color: var(--high); } .verified-no, .verified-unreachable { color: var(--muted); }

.notfound { max-width: 520px; margin: 48px auto; padding: 48px 32px; }
.notfound-code { font-family: var(--mono); font-size: 4.5rem; font-weight: 600; letter-spacing: -.08em; line-height: 1; color: var(--line-strong); margin-bottom: 12px; }
