
:root {
  --bg: #08090c; --surface: #0f1117; --surface-2: #15171e; --text: #eceef2; --muted: #9095a2; --faint: #6c717d;
  --line: rgba(255,255,255,.08); --line-strong: rgba(255,255,255,.14);
  --accent: #ff6b6b; --accent-rgb: 255 107 107; --accent-soft: #ffb3a8; --accent-ink: #08090c;
  --sev-critical: #ff3b5c; --sev-high: #ff9f43; --sev-medium: #f5d547; --sev-low: #6fb6ff; --sev-info: #9095a2;
  --ok: #82e4be;
  --wrap: min(1120px, calc(100vw - 32px)); --wrap-wide: min(1680px, calc(100vw - 48px));
  --radius-s: 6px; --radius-m: 14px; --radius-l: 20px;
  --ease-out: cubic-bezier(.23,1,.32,1);
  --font-sans: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Instrument Serif", Georgia, serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
  --text-hero: clamp(2.2rem, 1.4rem + 3.6vw, 4.2rem);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--font-sans); }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--text); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.wrap { width: var(--wrap); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: var(--surface); padding: 8px 12px; z-index: 10; }
.muted { color: var(--muted); }
.serif { font-family: var(--font-serif); font-style: italic; font-weight: 400; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.01em; margin: 0 0 .5em; }
h1 { font-size: var(--text-hero); font-weight: 600; }
h2 { font-size: 1.6rem; font-weight: 600; }
h3 { font-size: 1.05rem; font-weight: 600; }
.site-header { border-bottom: 1px solid var(--line); background: rgba(8,9,12,.85); position: sticky; top: 0; backdrop-filter: blur(10px); z-index: 5; }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }
.brand { color: var(--text); text-decoration: none; font-weight: 700; letter-spacing: .12em; font-size: .9rem; white-space: nowrap; }
.brand-product { font-family: var(--font-serif); font-style: italic; letter-spacing: 0; font-weight: 400; font-size: 1.15rem; color: var(--accent); }
nav ul { display: flex; gap: 18px; align-items: center; list-style: none; margin: 0; padding: 0; }
nav a, nav button { color: var(--muted); text-decoration: none; white-space: nowrap; }
nav a:hover { color: var(--text); }
main { padding-block: clamp(32px, 6vw, 72px); min-height: 60vh; }
.site-footer { border-top: 1px solid var(--line); padding-block: 28px; font-size: .9rem; }
.disclaimer { font-weight: 600; margin: 0 0 6px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 999px;
  border: 1px solid transparent; background: var(--accent); color: var(--accent-ink); font: 600 .95rem var(--font-sans); text-decoration: none; cursor: pointer;
  transition: transform .15s var(--ease-out), background-color .15s var(--ease-out); }
.btn:hover { background: var(--accent-soft); color: var(--accent-ink); }
.btn:active { transform: scale(.97); }
.btn-small { min-height: 36px; padding: 0 14px; font-size: .85rem; }
.btn-ghost { background: transparent; border-color: var(--line-strong); color: var(--text); }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }
.btn-danger { background: transparent; border-color: var(--sev-critical); color: var(--sev-critical); }
button.link { background: none; border: 0; color: var(--muted); font: inherit; line-height: inherit; cursor: pointer; padding: 0; }
nav form { display: flex; margin: 0; }
button.link:hover { color: var(--text); }
input[type=text], input[type=email], textarea, select { width: 100%; min-height: 44px; padding: 10px 14px; border-radius: var(--radius-s);
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); font: inherit; }
textarea { min-height: 96px; resize: vertical; }
label { display: block; font-weight: 600; margin-bottom: 6px; }
.field-row { display: flex; gap: 10px; flex-wrap: wrap; }
.field-row input { flex: 1 1 220px; }
.error { color: var(--sev-critical); }
.notice { border: 1px solid var(--line-strong); border-radius: var(--radius-m); padding: 14px 18px; background: var(--surface); }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .75rem; color: var(--accent); font-weight: 600; margin: 0 0 12px; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 62ch; }
.hero { max-width: 760px; }
.check-form { margin-top: 28px; display: grid; gap: 14px; }
.results { margin-top: 48px; }
.results-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.finding-list { list-style: none; padding: 0; margin: 16px 0; display: grid; gap: 10px; }
.finding { display: grid; grid-template-columns: 92px 1fr; gap: 14px; align-items: start; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--surface); }
.finding p { margin: 0; }
.finding .sev { justify-self: start; }
.finding a.finding-link { color: var(--text); text-decoration: none; }
.finding a.finding-link:hover h3 { color: var(--accent); }
.sev { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; border: 1px solid currentColor; text-align: center; }
.sev-critical { color: var(--sev-critical); } .sev-high { color: var(--sev-high); } .sev-medium { color: var(--sev-medium); }
.sev-low { color: var(--sev-low); } .sev-info { color: var(--sev-info); }
.grade { display: inline-flex; align-items: baseline; gap: 8px; padding: 6px 14px; border-radius: var(--radius-m); border: 1px solid var(--line-strong); background: var(--surface-2); }
.grade-letter { font: 400 2rem/1 var(--font-serif); font-style: italic; }
.grade-score { color: var(--muted); font-variant-numeric: tabular-nums; }
.grade-a .grade-letter { color: var(--ok); } .grade-b .grade-letter { color: var(--sev-low); } .grade-c .grade-letter { color: var(--sev-medium); }
.grade-d .grade-letter { color: var(--sev-high); } .grade-f .grade-letter { color: var(--sev-critical); }
.cta { margin-top: 28px; padding: 24px; border-radius: var(--radius-l); background: linear-gradient(135deg, rgba(124,156,255,.14), rgba(124,156,255,.02)); border: 1px solid var(--line-strong); }
.cta p { margin-top: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mono, code, pre { font-family: var(--font-mono); }
code { font-size: .88em; background: var(--surface-2); border: 1px solid var(--line); border-radius: 4px; padding: 1px 5px; overflow-wrap: anywhere; }
.small { font-size: .85rem; }
.narrow { max-width: 560px; }
.stack { display: grid; gap: 10px; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.page-head h1 { font-size: clamp(1.8rem, 1.2rem + 2.4vw, 2.8rem); overflow-wrap: anywhere; }
.page-head .eyebrow a { color: inherit; text-decoration: none; }
section { margin-top: 36px; }
.domain-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.domain-card { display: grid; grid-template-columns: 1fr auto auto; gap: 20px; align-items: center; padding: 18px 22px;
  border: 1px solid var(--line); border-radius: var(--radius-l); background: var(--surface); transition: border-color .15s var(--ease-out), transform .15s var(--ease-out); }
.domain-card:hover { border-color: var(--line-strong); transform: translateY(-1px); }
.domain-link { color: var(--text); text-decoration: none; min-width: 0; }
.domain-link h2 { font-size: 1.25rem; margin: 0 0 2px; overflow-wrap: anywhere; }
.domain-link p { margin: 0; }
.spark { color: var(--accent); }
.spark-empty { font-size: .8rem; }
.pill { font-size: .75rem; padding: 3px 10px; border-radius: 999px; border: 1px dashed var(--line-strong); color: var(--muted); }
.add-domain { margin-top: 48px; max-width: 620px; }
.panel { border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius-l); padding: clamp(18px, 3vw, 28px); }
.panel.danger { border-color: rgba(255,93,108,.35); }
.record { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 18px 0; }
.record dt { color: var(--muted); }
.record dd { margin: 0; min-width: 0; }
.inline-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.sev-group { margin-top: 22px; }
.sev-heading { font-size: .9rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.host-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.host { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; padding: 14px 18px; border: 1px solid var(--line); border-radius: var(--radius-m); }
.host p { margin: 2px 0 0; }
.authorise { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
label.check { display: flex; gap: 8px; align-items: center; font-weight: 500; margin: 0; }
label.check input { width: 18px; height: 18px; accent-color: var(--accent); }
.section-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; }
.platform-form { display: flex; gap: 8px; align-items: center; }
.platform-form select { min-height: 36px; width: auto; }
.guide ol { padding-left: 1.4em; display: grid; gap: 8px; }
.guide li::marker { color: var(--accent); font-weight: 700; }
.evidence { margin-top: 28px; border: 1px solid var(--line); border-radius: var(--radius-m); padding: 12px 16px; }
.evidence summary { cursor: pointer; color: var(--muted); }
.evidence pre { white-space: pre-wrap; overflow-wrap: anywhere; font-size: .85rem; margin: 12px 0 0; }
.actions { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); align-items: start; }
.plans { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 16px; }
.plan-card { display: grid; gap: 10px; padding: 18px; border: 1px solid var(--line-strong); border-radius: var(--radius-m); background: var(--surface-2); }
.plan-card h3 { margin: 0; }
.plan-card p { margin: 0; }
.renewal { font-size: .82rem; color: var(--muted); }
label.check.consent { align-items: flex-start; font-weight: 400; font-size: .9rem; }
label.check.consent input { margin-top: 3px; flex: none; }
@media (max-width: 640px) { .domain-card { grid-template-columns: 1fr auto; } .domain-card .spark, .domain-card .spark-empty { display: none; } }
.reverify { border-color: rgba(255,159,67,.55); margin-bottom: 20px; }
.reverify h2 { color: var(--sev-high); }
.scan-progress { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.scan-progress p { margin: 0; }
.demo-banner { background: linear-gradient(90deg, rgba(245,213,71,.18), rgba(245,213,71,.06)); border-bottom: 1px solid rgba(245,213,71,.35);
  color: var(--text); text-align: center; padding: 10px 16px; font-size: .9rem; }
.demo-banner a { color: var(--sev-medium); margin-left: 6px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
@media (max-width: 520px) {
  .finding { grid-template-columns: 1fr; } nav ul { gap: 12px; }
  .signed-in .header-inner { flex-wrap: wrap; row-gap: 4px; padding-block: 10px; }
  .signed-in nav { width: 100%; } .signed-in nav ul { flex-wrap: wrap; }
  .brand { letter-spacing: .06em; font-size: .8rem; } .brand-product { font-size: 1rem; }
  .hide-sm { display: none; }
}

.wrap-wide { width: var(--wrap-wide); }
@media (max-width: 640px) { .wrap-wide { width: var(--wrap); } }
.icon { width: 1.1em; height: 1.1em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dashboard { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; margin: 8px 0 48px; }
.dash-card, .stat { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); min-width: 0;
  background-image: radial-gradient(120% 90% at 0% 0%, rgb(var(--accent-rgb) / .06), transparent 55%);
  transition: transform .25s var(--ease-out), border-color .25s var(--ease-out), box-shadow .25s var(--ease-out); }
.dash-card { padding: 20px 22px; }
.dash-card:hover, .stat:hover { transform: translateY(-2px); border-color: var(--line-strong); box-shadow: 0 18px 40px -24px rgb(0 0 0 / .8), 0 0 0 1px rgb(var(--accent-rgb) / .06); }
.card-head { display: flex; align-items: center; gap: 10px; font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 600; margin-bottom: 16px; }
.card-head .icon { width: 28px; height: 28px; padding: 6px; border-radius: 8px; color: var(--accent); background: rgb(var(--accent-rgb) / .1); stroke-width: 2; }
.dash-score { grid-column: span 3; display: grid; place-items: center; }
.dash-stats { grid-column: span 6; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.dash-next { grid-column: span 3; display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
  background-image: radial-gradient(140% 100% at 100% 0%, rgb(var(--accent-rgb) / .16), transparent 60%); border-color: rgb(var(--accent-rgb) / .25); }
.dash-trend { grid-column: span 7; } .dash-severity { grid-column: span 5; }
.dash-coverage { grid-column: span 4; } .dash-recent { grid-column: span 8; } .dash-hosts { grid-column: span 12; }
.gauge { width: min(100%, 260px); height: auto; }
.gauge-track, .gauge-fill { fill: none; stroke-width: 14; stroke-linecap: round; }
.gauge-track { stroke: var(--surface-2); }
.gauge-fill { stroke: var(--accent); stroke-dasharray: 100 100; filter: drop-shadow(0 0 10px currentColor); color: rgb(var(--accent-rgb) / .45); }
.gauge-score { fill: var(--text); font: 600 52px/1 var(--font-sans); text-anchor: middle; font-variant-numeric: tabular-nums; }
.gauge-grade { fill: var(--muted); font: italic 22px var(--font-serif); text-anchor: middle; }
.gauge-fill.grade-a { stroke: var(--ok); color: rgb(130 228 190 / .4); } .gauge-fill.grade-b { stroke: var(--sev-low); color: rgb(111 182 255 / .4); }
.gauge-fill.grade-c { stroke: var(--sev-medium); color: rgb(245 213 71 / .35); } .gauge-fill.grade-d { stroke: var(--sev-high); color: rgb(255 159 67 / .4); }
.gauge-fill.grade-f { stroke: var(--sev-critical); color: rgb(255 59 92 / .45); }
.stat { padding: 18px 20px; display: flex; flex-direction: column; justify-content: space-between; gap: 6px; overflow: hidden; }
.stat-value { font: 600 clamp(1.9rem, 1.3rem + 1.8vw, 2.8rem)/1 var(--font-sans); font-variant-numeric: tabular-nums; }
.stat-label { color: var(--muted); font-size: .85rem; }
.stat-icon { position: absolute; top: 16px; right: 16px; width: 22px; height: 22px; color: var(--faint); transition: transform .3s var(--ease-out), color .3s var(--ease-out); }
.stat:hover .stat-icon { transform: scale(1.15) rotate(-6deg); color: var(--accent); }
.tone-bad .stat-value { color: var(--sev-critical); } .tone-good .stat-value { color: var(--ok); }
.tone-bad .stat-icon { color: var(--sev-critical); animation: pulse 2.4s ease-in-out infinite; }
.next-title { font-size: 1.15rem; font-weight: 600; line-height: 1.3; margin: 4px 0 0; }
.dash-next .mono { margin: 0; }
.next-gain { font: italic 1.6rem/1.1 var(--font-serif); color: var(--ok); margin: 6px 0 10px; }
.dash-next .btn { margin-top: auto; }
.dash-next .btn .icon { transition: transform .2s var(--ease-out); }
.dash-next .btn:hover .icon { transform: translateX(3px); }
.next-clear { display: flex; gap: 10px; align-items: center; color: var(--ok); }
.trend-delta { margin: -6px 0 10px; font-weight: 600; font-size: .95rem; }
.trend-delta.up { color: var(--ok); } .trend-delta.down { color: var(--sev-high); }
.trend { width: 100%; height: 150px; display: block; overflow: visible; }
.trend-grid { stroke: var(--line); stroke-dasharray: 3 5; vector-effect: non-scaling-stroke; }
.trend-line { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linejoin: round; vector-effect: non-scaling-stroke; stroke-dasharray: 100 100; }
.trend-area { fill: rgb(var(--accent-rgb) / .12); }
.risk-bar { display: block; width: 100%; height: 10px; border-radius: 999px; overflow: hidden; background: var(--surface-2); margin-bottom: 18px; }
.risk-bar.empty { height: auto; background: none; color: var(--ok); font-size: .9rem; }
.fill-critical { fill: var(--sev-critical); } .fill-high { fill: var(--sev-high); } .fill-medium { fill: var(--sev-medium); }
.fill-low { fill: var(--sev-low); } .fill-info { fill: var(--sev-info); }
.sev-bars { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; height: 150px; }
.sev-bar { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; height: 100%; min-height: 0; text-align: center; gap: 6px; }
.sev-bar-count { font-weight: 600; font-variant-numeric: tabular-nums; }
.sev-bar svg { width: 100%; height: 100%; min-height: 0; display: block; }
.sev-bar rect { transform-box: fill-box; transform-origin: bottom; }
.sev-bar-label { color: var(--muted); font-size: .72rem; }
.coverage { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.coverage-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--radius-s); background: var(--surface-2);
  font-size: .9rem; color: var(--text); text-decoration: none; border: 1px solid transparent;
  transition: border-color .2s var(--ease-out), background-color .2s var(--ease-out), transform .2s var(--ease-out); }
.coverage-row .icon { color: var(--muted); }
.coverage-label { flex: 1; }
a.coverage-row:hover { border-color: rgb(var(--accent-rgb) / .4); background: rgb(var(--accent-rgb) / .06); color: var(--text); transform: translateX(3px); }
a.coverage-row:hover .icon { color: var(--accent); }
a.coverage-row[aria-current] { border-color: var(--accent); background: rgb(var(--accent-rgb) / .1); }
.coverage-state { white-space: nowrap; font-weight: 600; }
.coverage .ok .coverage-state { color: var(--ok); } .coverage .has-issues .coverage-state { color: var(--sev-high); }
.coverage .locked .coverage-row { opacity: .6; } .coverage .locked .coverage-state { color: var(--faint); font-weight: 400; }
.recent { width: 100%; border-collapse: collapse; font-size: .9rem; }
.recent th { text-align: left; color: var(--faint); font-weight: 500; font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; padding: 0 10px 8px 0; }
.recent td { padding: 10px 10px 10px 0; border-top: 1px solid var(--line); vertical-align: middle; }
.recent tbody tr { transition: background-color .15s var(--ease-out); }
.recent tbody tr:hover { background: rgb(255 255 255 / .02); }
.recent td a { color: var(--text); text-decoration: none; } .recent td a:hover { color: var(--accent); }
.mono { font-family: var(--font-mono); font-size: .82rem; }
.findings-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; scroll-margin-top: 80px; }
#findings-heading { scroll-margin-top: 90px; }
.findings-filter { display: inline-flex; align-items: center; gap: 8px; margin-left: 12px; padding: 4px 12px; border-radius: 999px;
  font-size: .9rem; font-weight: 500; vertical-align: middle; color: var(--accent); background: rgb(var(--accent-rgb) / .1); border: 1px solid rgb(var(--accent-rgb) / .3); }

/* Motion: cards rise in, charts draw in. Off for reduced motion. */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes draw { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
@media (prefers-reduced-motion: no-preference) {
  .dashboard > *, .dash-stats > .stat { animation: rise .6s var(--ease-out) backwards; }
  .dashboard > :nth-child(2) .stat:nth-child(1) { animation-delay: .05s; } .dashboard > :nth-child(2) .stat:nth-child(2) { animation-delay: .1s; }
  .dashboard > :nth-child(2) .stat:nth-child(3) { animation-delay: .15s; } .dashboard > :nth-child(2) .stat:nth-child(4) { animation-delay: .2s; }
  .dashboard > :nth-child(2) { animation: none; }
  .dashboard > :nth-child(3) { animation-delay: .2s; } .dashboard > :nth-child(4) { animation-delay: .25s; } .dashboard > :nth-child(5) { animation-delay: .3s; }
  .dashboard > :nth-child(6) { animation-delay: .35s; } .dashboard > :nth-child(7) { animation-delay: .4s; } .dashboard > :nth-child(8) { animation-delay: .45s; }
  .gauge-fill { animation: draw 1.4s var(--ease-out) .15s both; }
  .trend-line { animation: draw 1.6s var(--ease-out) .4s both; }
  .trend-area { animation: rise .8s var(--ease-out) .9s both; }
  .sev-bar rect { animation: grow .8s var(--ease-out) both; }
  .sev-bar:nth-child(2) rect { animation-delay: .08s; } .sev-bar:nth-child(3) rect { animation-delay: .16s; }
  .sev-bar:nth-child(4) rect { animation-delay: .24s; } .sev-bar:nth-child(5) rect { animation-delay: .32s; }
}
@media (prefers-reduced-motion: reduce) {
  .tone-bad .stat-icon { animation: none; }
  .dash-card:hover, .stat:hover, a.coverage-row:hover { transform: none; }
}
@media (max-width: 1200px) {
  .dash-score { grid-column: span 4; } .dash-stats { grid-column: span 8; } .dash-next { grid-column: span 12; }
}
@media (max-width: 900px) {
  .dash-score, .dash-stats, .dash-trend, .dash-severity, .dash-coverage, .dash-recent { grid-column: span 12; }
}
@media (max-width: 640px) {
  .dash-card { padding: 16px; }
  .recent th:nth-child(3), .recent td:nth-child(3), .recent th:nth-child(4), .recent td:nth-child(4) { display: none; }
  .dash-hosts .recent th:nth-child(3), .dash-hosts .recent td:nth-child(3) { display: table-cell; }
  .findings-filter { margin: 8px 0 0; display: flex; width: fit-content; }
}
