:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --text: #101828;
  --muted: #475467;
  --border: #e4e7ec;
  --brand: #0e9f6e;
  --brand-ink: #0b7a55;
  --brand-soft: #e7f6ef;
  --crit: #b42318;
  --high: #c4320a;
  --med: #b54708;
  --low: #175cd3;
  --info: #475467;
  --radius: 12px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c1117;
    --surface: #131a22;
    --text: #e6edf3;
    --muted: #9aa7b4;
    --border: #243040;
    --brand: #22c58b;
    --brand-ink: #4fd8a5;
    --brand-soft: #10291f;
    --crit: #f97066;
    --high: #fb8a5c;
    --med: #fdb022;
    --low: #84adff;
    --info: #98a2b3;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--brand-ink); }
img, svg { max-width: 100%; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
header.site { border-bottom: 1px solid var(--border); background: var(--surface); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; flex-wrap: wrap; }
.logo { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 19px; color: var(--text); text-decoration: none; letter-spacing: -0.01em; }
nav.top { display: flex; gap: 18px; font-size: 15px; }
nav.top a { color: var(--muted); text-decoration: none; }
nav.top a:hover { color: var(--text); }
main { padding: 32px 0 64px; }
footer.site { border-top: 1px solid var(--border); padding: 28px 0 40px; color: var(--muted); font-size: 14px; }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }
footer.site nav { display: flex; flex-wrap: wrap; gap: 8px 16px; }
footer.site a { color: var(--muted); }
h1 { font-size: clamp(28px, 5vw, 44px); line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 12px; }
h2 { font-size: 22px; line-height: 1.25; margin: 0 0 12px; }
h3 { font-size: 17px; margin: 0 0 6px; }
p.lead { font-size: 18px; color: var(--muted); max-width: 680px; margin: 0 0 24px; }
.muted { color: var(--muted); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.92em; word-break: break-all; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.grid { display: grid; gap: 16px; }
@media (min-width: 760px) { .grid.two { grid-template-columns: 1fr 1fr; } .grid.three { grid-template-columns: repeat(3, 1fr); } .grid.side { grid-template-columns: 1.6fr 1fr; align-items: start; } }
.stack > * + * { margin-top: 16px; }

form.scan { display: grid; gap: 10px; grid-template-columns: 1fr; max-width: 760px; }
@media (min-width: 640px) { form.scan { grid-template-columns: 1fr 170px auto; align-items: start; } form.scan .cf-turnstile { grid-column: 1 / -1; } }
input[type=text], select, textarea { width: 100%; font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; }
input[type=text]:focus, select:focus, textarea:focus { outline: 2px solid var(--brand); outline-offset: 1px; }
button, .btn { font: inherit; font-weight: 650; border-radius: 10px; padding: 12px 18px; border: 1px solid transparent; background: var(--brand); color: #fff; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap; }
button.secondary, .btn.secondary { background: transparent; color: var(--text); border-color: var(--border); }
button:disabled { opacity: 0.6; cursor: progress; }
.error { color: var(--crit); font-weight: 600; }
.notice { border: 1px solid var(--border); background: var(--brand-soft); border-radius: 10px; padding: 12px 14px; }
.warn { border-left: 3px solid var(--med); padding: 4px 0 4px 12px; color: var(--muted); font-size: 14px; }

.score-head { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.ring { --c: var(--brand); width: 132px; height: 132px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--c) calc(var(--p) * 1%), var(--border) 0); flex: none; }
.ring > div { width: 104px; height: 104px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; text-align: center; }
.ring strong { font-size: 36px; line-height: 1; display: block; }
.ring span { font-size: 13px; color: var(--muted); font-weight: 700; }
.grade-A, .grade-B { --c: var(--brand); } .grade-C { --c: var(--med); } .grade-D, .grade-F { --c: var(--crit); }

.pill { display: inline-block; padding: 1px 9px; border-radius: 999px; font-size: 12px; font-weight: 750; text-transform: uppercase; letter-spacing: 0.03em; color: #fff; vertical-align: 2px; }
.sev-critical { background: var(--crit); } .sev-high { background: var(--high); } .sev-medium { background: var(--med); } .sev-low { background: var(--low); } .sev-info { background: var(--info); }
ul.findings { list-style: none; padding: 0; margin: 0; }
ul.findings li { padding: 12px 0; border-top: 1px solid var(--border); }
ul.findings li:first-child { border-top: 0; }
dl.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; font-size: 15px; }
dl.facts dt { color: var(--muted); }
dl.facts dd { margin: 0; word-break: break-word; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: 0.03em; }
.table-wrap { overflow-x: auto; }
pre.snippet { white-space: pre-wrap; word-break: break-all; background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; font: 13px/1.5 ui-monospace, Menlo, Consolas, monospace; margin: 6px 0 12px; }
.price { font-size: 30px; font-weight: 800; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: s; padding: 4px 0 4px 36px; position: relative; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 4px; width: 24px; height: 24px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-ink); font-weight: 800; font-size: 13px; display: grid; place-items: center; }
.status-row { display: flex; gap: 10px; flex-wrap: wrap; }
.status-row span { padding: 4px 10px; border-radius: 999px; border: 1px solid var(--border); color: var(--muted); font-size: 14px; }
.status-row span.on { border-color: var(--brand); color: var(--brand-ink); background: var(--brand-soft); font-weight: 650; }
.prose { max-width: 760px; }
.prose h2 { margin-top: 32px; }
