:root {
  color-scheme: light;
  --ink: light-dark(#191c21, #f0f1f3);
  --muted: light-dark(#565e68, #b3b8c1);
  --line: light-dark(#dcdee0, #393d45);
  --paper: light-dark(white, #1b1e24);
  --bg: light-dark(#f8f8f6, #111317);
  --brand-ink: light-dark(var(--acc), color-mix(in srgb, var(--acc) 44%, var(--soft)));
  --tint: light-dark(color-mix(in srgb, var(--soft) 60%, white), color-mix(in srgb, var(--acc) 14%, var(--paper)));
  --control-line: light-dark(#c7cbd0, #626975);
  --deep: color-mix(in srgb, var(--acc) 19%, #13151a);
  --radius: 14px;
  --width: 1184px;
  --gutter: clamp(18px, 4.5vw, 72px);
  --mono: ui-monospace, "SFMono-Regular", Consolas, monospace;
}
@media screen {
  :root:not(:has(body.print)) { color-scheme: light dark; }
  :root[data-theme="light"]:not(:has(body.print)) { color-scheme: light; }
  :root[data-theme="dark"]:not(:has(body.print)) { color-scheme: dark; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; }
a { color: var(--brand-ink); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.14; text-wrap: balance; }
h1 { font-size: clamp(36px, 4.4vw, 60px); letter-spacing: -.047em; margin-bottom: 12px; }
h2 { font-size: clamp(23px, 2.3vw, 31px); letter-spacing: -.035em; margin: 36px 0 15px; }
h3 { font-size: 19px; letter-spacing: -.025em; margin-bottom: 7px; }
.top { background: var(--paper); border-bottom: 1px solid var(--line); }
.top-inner, .hero-inner, .preview, main { width: min(calc(100% - 2 * var(--gutter)), var(--width)); margin-inline: auto; }
.top-inner { min-height: 77px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.logo { display: inline-flex; color: var(--ink); font-size: 25px; font-weight: 750; letter-spacing: -.055em; text-decoration: none; white-space: nowrap; }
.logo img { display: block; width: auto; height: 36px; max-width: 160px; object-fit: contain; }
.logo:has(img) { background: light-dark(transparent, #fff); border-radius: 6px; }
.logo svg { display: block; width: auto; height: 32px; max-width: 160px; }
.header-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px 16px; }
.theme-switch { display: inline-flex; padding: 2px; gap: 2px; border: 1px solid var(--line); border-radius: 22px; background: var(--bg); }
.theme-switch button { min-height: 32px; width: 34px; padding: 0; border: 0; border-radius: 18px; color: var(--muted); background: transparent; }
.theme-switch button:hover { color: var(--ink); background: var(--tint); }
.theme-switch button[aria-pressed="true"] { color: var(--brand-ink); background: var(--paper); box-shadow: 0 0 0 1px var(--line); }
.theme-switch .icon { width: 16px; height: 16px; }
#nav, .row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
#nav { justify-content: flex-end; gap: 18px; font-size: 14px; color: var(--muted); }
#nav a { text-decoration: none; font-weight: 600; }
main { padding: 38px 0 72px; overflow-wrap: anywhere; }
main:has(.hero) { width: 100%; padding: 0; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.pad { padding: 24px; }
.eyebrow { font: 600 11px/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--brand-ink); margin: 0 0 16px; }
button, .btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 42px; border: 1px solid transparent; border-radius: 8px; padding: 10px 16px; font-family: inherit; font-size: 14px; font-weight: 600; line-height: 1.35; background: var(--acc); color: white; cursor: pointer; text-decoration: none; transition: background .16s, border-color .16s, box-shadow .16s; }
button:hover, .btn:hover { background: color-mix(in srgb, var(--acc) 84%, black); }
button:disabled { opacity: .55; cursor: default; }
button.plain, .btn.ghost, button.ghost { color: var(--ink); background: var(--paper); border-color: var(--line); }
button.plain:hover, .btn.ghost:hover, button.ghost:hover { border-color: var(--acc); background: var(--tint); }
button.link { background: transparent; color: var(--brand-ink); min-height: 0; padding: 4px 0; }
button.link:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--brand-ink); outline-offset: 3px; }
.icon, .x svg { flex: none; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
#nav .nav-login { border-radius: 24px; min-height: 36px; padding: 7px 16px; }
.hero { background: var(--paper); border-bottom: 1px solid var(--line); }
.hero-inner { display: grid; grid-template-columns: 1.08fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; padding: clamp(42px, 5.4vw, 84px) 0; }
.hero-copy { min-width: 0; animation: arrive .42s ease-out both; }
.hero .eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 24px; }
.signal-line { height: 2px; width: 25px; background: var(--acc); }
.hero h1 { font-size: clamp(40px, 4.7vw, 70px); font-weight: 690; line-height: 1.02; letter-spacing: -.055em; margin: 0 0 24px; }
.hero h1 em { display: block; color: var(--brand-ink); font-style: normal; }
.intro { max-width: 490px; margin: 0 0 30px; font-size: clamp(16px, 1.24vw, 18px); line-height: 1.56; color: var(--muted); }
.instrument { min-width: 0; border-radius: 20px; background: var(--deep); overflow: hidden; }
.radar-art { width: 100%; display: block; }
.scope-lines { color: color-mix(in srgb, var(--soft) 37%, transparent); stroke-width: .85px; }
.scope-points { color: var(--soft); }
.scope-points path { fill: none; stroke: currentColor; opacity: .6; }
.scope-labels { font: 500 13px var(--mono); fill: var(--soft); }
.scope-degrees { font: 10px var(--mono); text-anchor: middle; fill: white; opacity: .60; }
.radar-beam { transform-origin: 0 0; animation: calibrate 1.2s ease-out both; }
@keyframes arrive { from { opacity: .2; transform: translateY(6px); } }
@keyframes calibrate { from { transform: rotate(-42deg); } }
.site-form { display: flex; width: 100%; max-width: 530px; align-items: stretch; gap: 5px; padding: 5px; border: 1px solid var(--control-line); border-radius: 12px; background: var(--paper); box-shadow: 0 3px 8px #17191d08; }
.url-field { display: flex; flex: 1; align-items: center; min-width: 0; color: var(--muted); padding-left: 12px; }
input[type=text], input[type=tel], textarea, select { font: inherit; width: 100%; min-width: 0; color: var(--ink); background: var(--paper); border: 1px solid var(--control-line); border-radius: 7px; padding: 10px 12px; }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 1; }
input[type=checkbox] { accent-color: var(--acc); }
textarea { display: block; resize: vertical; min-height: 44px; }
label { display: block; font-size: 14px; font-weight: 550; margin: 15px 0 5px; }
.url-field input { border: 0; padding-inline: 10px 3px; background: transparent; }
.url-field input:focus-visible { outline: 0; }
.site-form:focus-within { border-color: var(--acc); box-shadow: 0 0 0 2px var(--tint); }
.site-form button { flex: none; min-height: 44px; }
.site-form button .icon { transition: transform .18s; }
.site-form button:hover .icon { transform: translateX(2px); }
#login:not(:empty) { margin-top: 16px; }
.login-hint { flex-basis: 100%; font-size: 14px; margin: 0; }
.preview { padding: 38px 0 56px; }
.preview h2 { margin: 0 0 28px; font-size: clamp(26px, 2.4vw, 35px); }
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.features article { padding: 0 clamp(20px, 2.8vw, 46px); border-left: 1px solid var(--line); }
.features article:first-child { border: 0; padding-left: 0; }
.features article:last-child { padding-right: 0; }
.features .icon { width: 29px; height: 29px; color: var(--brand-ink); stroke-width: 1.55; margin: 0 0 12px; }
.features h3 { font-size: clamp(19px, 1.55vw, 22px); }
.features p { color: var(--muted); margin: 0; max-width: 340px; }
.page-head { padding: 12px 0 24px; }
.page-head .eyebrow { margin-bottom: 10px; }
.page-head p:last-child { margin: 0; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(19px, 2.4vw, 32px); margin-bottom: 16px; }
.card > :first-child { margin-top: 0; }
.card > :last-child { margin-bottom: 0; }
.card > h2:first-child { font-size: 23px; }
.card:has(table) { overflow-x: auto; }
.section-nav { display: flex; gap: 4px; flex-wrap: wrap; position: sticky; top: 0; z-index: 1; background: var(--bg); border-block: 1px solid var(--line); padding: 8px 0; margin-bottom: 20px; }
.section-nav button { min-height: 36px; background: transparent; padding: 6px 12px; color: var(--ink); }
.section-nav button:hover, .section-nav button:focus-visible { background: var(--tint); color: var(--brand-ink); }
#company, #questions, #checks, #history { scroll-margin-top: 68px; }
.grid { display: grid; gap: 14px; }
.g2 { grid-template-columns: repeat(2,minmax(0,1fr)); }
.site-card { display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.site-card b { font-size: 19px; margin-right: 8px; }
.site-card .row { gap: 14px; font-size: 14px; }
#qs { margin: 18px 0; }
.q-item { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 10px; margin-bottom: 15px; align-items: start; }
.q-item .small { margin-top: 5px; }
.q-item textarea[readonly] { background: var(--bg); }
summary { cursor: pointer; }
.finding { background: var(--tint); border-left: 3px solid var(--acc); padding: 16px 22px; margin-bottom: 20px; }
.headline { font-size: clamp(17px, 1.6vw, 22px); font-weight: 550; line-height: 1.4; margin: 0; }
.metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.tile { padding: clamp(15px, 2vw, 27px); border-left: 1px solid var(--line); }
.tile:first-child { border: 0; }
.num { font-size: clamp(24px, 2.6vw, 40px); font-weight: 670; font-variant-numeric: tabular-nums; line-height: 1.12; letter-spacing: -.045em; }
.tile:first-child .num { color: var(--brand-ink); }
.lbl { margin-top: 10px; font-size: 15px; font-weight: 600; line-height: 1.35; }
.sub { margin-top: 6px; font-size: 13px; color: var(--muted); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 11px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--bg); font-weight: 650; color: var(--muted); font-size: 12px; }
tbody tr:last-child td { border-bottom: 0; }
td.n, th.n { text-align: right; font-variant-numeric: tabular-nums; }
td.n, .matrix th.n, .engine-name { white-space: nowrap; }
.tag { display: inline-block; font-size: 12px; line-height: 1.4; font-weight: 550; padding: 4px 8px; border-radius: 5px; background: var(--tint); color: var(--brand-ink); }
.tag.gray, .tag.bad { background: var(--bg); color: var(--ink); }
.tag.bad { border: 1px dashed var(--muted); }
.cell { position: relative; width: 25px; height: 25px; min-height: 0; padding: 0; border-radius: 6px; }
.cell.yes { background: var(--acc); }
.cell.yes::after { content: ""; position: absolute; inset: 8px; border-radius: 50%; background: white; }
.cell.no { background: var(--tint); border-color: color-mix(in srgb, var(--brand-ink) 46%, var(--paper)); }
.cell.yes:hover, .cell.no:hover { box-shadow: 0 0 0 2px var(--acc); }
.cell.fail, .cell.wait { background: repeating-linear-gradient(45deg,var(--line) 0 1px,var(--paper) 1px 4px); cursor: default; }
.cell.fail::after { content: ""; position: absolute; inset: 11px 5px; background: var(--muted); }
.bar, .progress { height: 7px; background: var(--line); border-radius: 8px; overflow: hidden; margin: 6px 0; }
.bar i, .progress i { display: block; height: 100%; background: var(--acc); }
.progress i { transition: width .4s; }
.steps { padding-left: 27px; margin: 0; }
.steps li { padding: 10px 0 10px 6px; border-bottom: 1px solid var(--line); }
.steps li::marker { color: var(--brand-ink); font-weight: 650; }
.steps li:last-child { border: 0; }
.quote { border-left: 2px solid var(--acc); padding: 3px 0 3px 14px; margin: 16px 0; }
.quote .small { margin-bottom: 4px; }
.note, .err { border: 1px solid var(--line); background: var(--paper); padding: 12px 16px; margin: 14px 0; border-radius: 8px; font-size: 14px; }
.err { border-left: 3px solid var(--ink); }
.modal { margin: 0; width: 100%; max-width: none; height: 100%; max-height: none; border: 0; color: var(--ink); position: fixed; inset: 0; z-index: 10; display: flex; align-items: flex-start; justify-content: center; padding: 8vh 16px; background: #13151a80; overflow: auto; }
.modal:not([open]) { display: none; }
.modal::backdrop { background: transparent; }
.modal-box { position: relative; width: min(100%, 720px); background: var(--paper); border-radius: var(--radius); padding: 32px; overflow-wrap: anywhere; }
.modal-box h3 { padding-right: 30px; margin-bottom: 18px; }
.modal-box .x { position: absolute; right: 12px; top: 12px; min-height: 36px; width: 36px; padding: 0; background: var(--bg); color: var(--ink); }
.answer { white-space: pre-wrap; background: var(--bg); border-radius: 8px; padding: 16px; max-height: 50vh; overflow: auto; font-size: 14px; }
.spin { display: inline-block; width: 16px; height: 16px; border: 2px solid var(--line); border-top-color: var(--acc); border-radius: 50%; animation: spin 1s linear infinite; margin-right: 6px; vertical-align: -2px; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 880px) {
  .hero-inner { gap: 24px; }
  .hero h1 { font-size: clamp(36px, 4.7vw, 46px); }
  .site-form button { padding-inline: 12px; }
  .metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .tile:nth-child(3) { border-left: 0; }
  .tile:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 680px) {
  .top-inner { min-height: 62px; padding-block: 8px; flex-wrap: wrap; gap: 5px 12px; }
  .header-actions { margin-left: auto; gap: 6px 10px; }
  #nav { gap: 9px; }
  #nav > span { overflow-wrap: anywhere; font-size: 12px; }
  .logo { font-size: 22px; }
  .logo img { height: 29px; max-width: 120px; }
  .logo svg { height: 26px; max-width: 120px; }
  main { padding-top: 22px; }
  .hero-inner { grid-template-columns: 1fr; gap: 26px; padding: 34px 0 26px; }
  .hero h1 { font-size: clamp(37px, 8.8vw, 54px); margin-bottom: 17px; }
  .hero .eyebrow { margin-bottom: 16px; }
  .intro { margin-bottom: 20px; }
  .instrument { border-radius: 13px; }
  .radar-art { height: auto; max-height: 310px; }
  .preview { padding: 28px 0 40px; }
  .preview h2 { margin-bottom: 16px; }
  .features, .g2 { grid-template-columns: 1fr; }
  .features article, .features article:first-child { display: grid; grid-template-columns: 32px 1fr; column-gap: 16px; border: none; border-top: 1px solid var(--line); padding: 18px 0; }
  .features article .icon { grid-row: span 2; margin: 0; }
  .site-card { align-items: flex-start; flex-direction: column; }
  .section-nav { position: static; }
  #company, #questions, #checks, #history { scroll-margin-top: 10px; }
  .card:has(table) table { min-width: 510px; }
  .modal-box { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::after { animation: none !important; transition: none !important; }
}
.print-only { display: none; }
body.print { background: white; }
body.print main { width: 100%; max-width: none; padding: 0; }
body.print #nav, body.print .no-print, body.print .modal { display: none; }
body.print .print-only { display: block; }
@page { size: A4; margin: 14mm; }
@media print {
  body { background: white; font-size: 10pt; line-height: 1.4; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  main, .top-inner { width: 100%; max-width: none; padding: 0; }
  .no-print, #nav, .modal, .section-nav { display: none !important; }
  .print-only { display: block; }
  .top-inner { min-height: 0; padding-bottom: 5px; }
  .logo { font-size: 13pt; }
  .logo img { height: 21px; }
  .logo svg { height: 19px; }
  .page-head { padding: 12pt 0 8pt; }
  .eyebrow { font-size: 8pt; margin-bottom: 5pt; }
  h1 { font-size: 26pt; margin-bottom: 4pt; }
  h2 { font-size: 15pt; margin: 14pt 0 5pt; }
  h1, h2, h3, thead { break-after: avoid; }
  .card, .card:has(table) { overflow: visible; border: 0; padding: 0; margin: 0 0 6pt; }
  .card:has(table) table { min-width: 0; }
  table, .small, .quote, .note { font-size: 9pt; }
  table { table-layout: auto; }
  td, th { padding: 3pt 5pt; }
  th { font-size: 8pt; }
  .finding { padding: 7pt 10pt; margin: 0 0 8pt; }
  .headline { font-size: 12pt; }
  .metrics { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .tile, .tile:nth-child(n) { padding: 8pt; border: 0; border-right: 1px solid var(--line); }
  .num { font-size: 17pt; }
  .lbl, .sub, .tag { font-size: 8pt; }
  .lbl, .sub { margin-top: 3pt; }
  .tag { padding: 2pt 4pt; }
  .matrix .cell { display: none; }
  .matrix td.n { font-size: 8pt; }
  .note { padding: 6pt 8pt; margin: 6pt 0; }
  .metrics, tr, .quote, .steps li, .finding { break-inside: avoid; }
  .steps li { padding-block: 5pt; }
  .quote { margin: 6pt 0; }
}
