:root {
  --ink: #14213d; --text: #2b3445; --muted: #5b6577; --line: #dfe3ea; --bg: #f6f7f9; --card: #fff;
  --brand: #1d4ed8; --brand-dark: #1e3a8a;
  --critical: #b42318; --serious: #b54708; --moderate: #175cd3; --minor: #475467;
  --good: #067647; --warn: #b54708; --bad: #b42318;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; color: var(--text); background: var(--bg); }
h1, h2, h3 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); letter-spacing: -.02em; }
h2 { font-size: 1.3rem; margin-top: 2rem; }
h3 { font-size: 1.05rem; margin: 0; }
p { margin: 0 0 1em; }
a { color: var(--brand); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid #f59e0b; outline-offset: 2px; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }
.center { text-align: center; }
.pad { padding-top: 48px; padding-bottom: 48px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; border-radius: 6px; z-index: 10; }
.skip:focus { left: 8px; }

.top { background: #fff; border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; justify-content: space-between; align-items: center; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); text-decoration: none; font-size: 1.1rem; }
.mark { width: 22px; height: 22px; border-radius: 50%; border: 5px solid var(--brand); border-right-color: #93c5fd; }
.foot { border-top: 1px solid var(--line); margin-top: 56px; padding: 24px 0; color: var(--muted); font-size: .875rem; background: #fff; }

.hero { background: linear-gradient(180deg, #fff, var(--bg)); padding: 64px 0 40px; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; font-weight: 700; color: var(--brand); margin-bottom: .6em; }
.lead { font-size: 1.15rem; color: var(--text); }
.scan-form { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px; margin: 28px 0 10px; box-shadow: 0 8px 24px rgba(20, 33, 61, .06); }
.field { display: flex; flex-direction: column; gap: 4px; }
.field.grow { flex: 1 1 220px; }
label { font-weight: 600; font-size: .9rem; color: var(--ink); }
input[type=text], input[type=email], input[type=password], textarea { font: inherit; padding: 11px 12px; border: 1px solid #98a2b3; border-radius: 8px; width: 100%; background: #fff; color: var(--ink); }
.btn { display: inline-block; font: inherit; font-weight: 700; padding: 12px 20px; border-radius: 8px; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; text-decoration: none; }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.primary:hover { background: var(--brand-dark); }
.btn.dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.small { padding: 4px 10px; font-size: .85rem; font-weight: 600; }
.alert { background: #fef3f2; border: 1px solid #fda29b; color: #7a271a; padding: 12px 14px; border-radius: 8px; }
.alert.ok { background: #ecfdf3; border-color: #75e0a7; color: #085d3a; }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px; padding-top: 16px; }
.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { padding-left: 26px; position: relative; margin-bottom: 6px; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: .45em; width: 10px; height: 6px; border-left: 3px solid var(--good); border-bottom: 3px solid var(--good); transform: rotate(-45deg); }

.report { padding-top: 36px; }
.summary { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 28px; }
.ring { position: relative; width: 150px; height: 150px; flex: 0 0 150px; }
.ring svg { width: 100%; height: 100%; }
.ring circle { fill: none; stroke-width: 10; }
.ring .track { stroke: #eaecf0; }
.ring .value { stroke-linecap: round; }
.ring.good .value { stroke: var(--good); } .ring.warn .value { stroke: var(--warn); } .ring.bad .value { stroke: var(--bad); }
.ring .num { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; }
.ring .num strong { font-size: 2.6rem; color: var(--ink); }
.ring .num span { font-size: .8rem; color: var(--muted); margin-top: 4px; }
.pill { display: inline-block; padding: 2px 10px; border-radius: 99px; font-weight: 700; font-size: .85rem; color: #fff; margin-right: 6px; }
.pill.good { background: var(--good); } .pill.warn { background: var(--warn); } .pill.bad { background: var(--bad); }
.counts { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 12px; }
.counts li { border: 1px solid var(--line); border-left-width: 4px; border-radius: 6px; padding: 4px 12px; background: #fff; font-size: .9rem; }
.counts .critical { border-left-color: var(--critical); } .counts .serious { border-left-color: var(--serious); }
.counts .moderate { border-left-color: var(--moderate); } .counts .minor { border-left-color: var(--minor); }
.issues { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.issue { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; }
.issue p:last-child { margin-bottom: 0; }
.issue-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.issue-head h3 { flex: 1 1 240px; }
.sev { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #fff; padding: 2px 8px; border-radius: 4px; }
.sev.critical { background: var(--critical); } .sev.serious { background: var(--serious); } .sev.moderate { background: var(--moderate); } .sev.minor { background: var(--minor); }
.count { font-weight: 700; color: var(--ink); white-space: nowrap; }
.fix { background: #f0f6ff; border-left: 4px solid var(--brand); padding: 10px 12px; border-radius: 0 6px 6px 0; }
details { margin-top: 8px; }
summary { cursor: pointer; font-weight: 600; color: var(--brand); }
.samples { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 6px; }
.samples li { display: flex; gap: 10px; align-items: baseline; }
.samples .line { flex: 0 0 76px; font-size: .8rem; color: var(--muted); }
code { font: .82rem/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: #f2f4f7; padding: 4px 8px; border-radius: 4px; overflow-wrap: anywhere; color: #1d2939; }
.unlock { margin-top: 20px; background: #fff; border: 2px dashed #93c5fd; border-radius: 14px; padding: 24px; text-align: center; }
.unlock h2 { margin-top: 0; }
.fixbox { margin-top: 28px; background: var(--ink); color: #e6e9f0; border-radius: 16px; padding: 28px; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; }
.fixbox h2 { color: #fff; margin-top: 0; }
.fixbox label { color: #fff; }
.fixbox form { display: grid; gap: 10px; }
.fixbox .btn.dark { background: #fff; color: var(--ink); border-color: #fff; }
.fixbox .muted { color: #c4cad6; }
.manual { margin-top: 28px; }
.noprint { margin-top: 24px; }
.stack { display: grid; gap: 12px; max-width: 340px; }
.row-between { display: flex; justify-content: space-between; align-items: center; }
.inline { display: inline; }
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
table { border-collapse: collapse; width: 100%; font-size: .9rem; }
th, td { text-align: left; padding: 8px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: #f9fafb; color: var(--ink); }

@media print {
  .top nav, .unlock, .fixbox form, .noprint, .skip { display: none !important; }
  body { background: #fff; }
  details > *:not(summary) { display: block; }
  .fixbox { background: #fff; color: var(--text); border: 1px solid var(--line); }
  .fixbox h2 { color: var(--ink); }
}
