/* Our own site must pass the checks we sell: AA contrast, visible focus, no layout shifts on zoom. */
:root {
  --bg: #ffffff; --fg: #14181f; --muted: #4a5361; --card: #f5f7fa; --line: #d9dee6;
  --accent-fg: #ffffff; --good: #116329; --warn: #8a4b00; --bad: #b42318;
  --radius: 12px; font-size: 100%;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0f1216; --fg: #e8ecf1; --muted: #a8b1bd; --card: #181d24; --line: #2c333d;
    --good: #4ac26b; --warn: #e3a23b; --bad: #ff7b72; }
  :root .btn { --accent: #4493f8; color: #0b0f14; }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--fg); font: 1rem/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: inherit; text-underline-offset: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--fg); color: var(--bg); padding: 8px 12px; border-radius: 6px; z-index: 10; }
.skip:focus { left: 8px; }
.muted { color: var(--muted); } .small { font-size: .875rem; }

header.site { border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.15rem; text-decoration: none; }
.mark { width: 22px; height: 22px; border-radius: 6px; background: linear-gradient(135deg, transparent 50%, var(--accent) 50%); border: 2px solid var(--accent); }
nav { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
nav a { text-decoration: none; } nav a:hover { text-decoration: underline; }

.btn { display: inline-block; background: var(--accent); color: var(--accent-fg); border: 0; border-radius: 10px; padding: 12px 20px;
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.btn:hover { filter: brightness(1.08); } .btn:disabled { opacity: .7; cursor: progress; }
.btn.small { padding: 6px 12px; font-size: .9rem; }

.hero { padding: 64px 0 40px; }
.eyebrow { color: var(--accent); font-weight: 600; margin: 0 0 8px; }
@media (prefers-color-scheme: dark) { .eyebrow { color: #79b8ff; } }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.15; margin: 0 0 16px; max-width: 18ch; }
h2 { font-size: 1.6rem; margin: 0 0 16px; } h3 { margin: 0 0 6px; font-size: 1.1rem; }
.lead { font-size: 1.15rem; max-width: 60ch; color: var(--muted); }
.scan { display: flex; gap: 8px; max-width: 620px; margin: 24px 0 8px; flex-wrap: wrap; }
.scan input { flex: 1 1 260px; }
input[type=text], input[type=email], input[type=tel], input[type=date] { font: inherit; padding: 11px 14px; border: 2px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--fg); width: 100%; }
input:focus-visible { border-color: var(--accent); }

section.wrap { padding-top: 40px; padding-bottom: 40px; }
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.card p { margin: 0 0 8px; }
.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; counter-reset: s; }
.steps li { counter-increment: s; padding: 20px; border-left: 4px solid var(--accent); background: var(--card); border-radius: 0 var(--radius) var(--radius) 0; }
.steps li h3::before { content: counter(s) ". "; }
.plan .price { font-size: 2rem; font-weight: 700; margin: 4px 0 8px; } .plan .price span { font-size: 1rem; font-weight: 400; color: var(--muted); }
.plan ul { padding-left: 1.2em; margin: 0; } .plan.featured { border: 2px solid var(--accent); }

.result .card { position: relative; }
.score { float: right; text-align: right; font-weight: 700; margin-left: 16px; }
.score .num { font-size: 2.6rem; line-height: 1; } .score.good { color: var(--good); } .score.warn { color: var(--warn); } .score.bad { color: var(--bad); }
.issues { padding-left: 1.2em; } .issue { margin: 14px 0; } .issue p { margin: 4px 0; }
.issue-head { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.pill { font-size: .75rem; font-weight: 700; padding: 2px 8px; border-radius: 99px; border: 1px solid currentColor; }
.pill.critical, .pill.serious { color: var(--bad); } .pill.moderate { color: var(--warn); } .pill.minor { color: var(--muted); }
.card.error { border-color: var(--bad); }

.stack { display: grid; gap: 14px; max-width: 520px; }
.stack label { display: grid; gap: 4px; font-weight: 600; } .stack label.inline { display: inline-flex; gap: 6px; font-weight: 400; margin-right: 16px; }
fieldset { border: 0; padding: 0; margin: 0; } legend { font-weight: 600; margin-bottom: 4px; }
#waitlist-msg.ok { color: var(--good); } #waitlist-msg.error { color: var(--bad); }

.faq details { border-bottom: 1px solid var(--line); padding: 12px 0; } .faq summary { cursor: pointer; font-weight: 600; }
.prose { max-width: 720px; }
footer.site { border-top: 1px solid var(--line); margin-top: 40px; padding: 24px 0; font-size: .95rem; }
@media (max-width: 600px) { nav a:not(.btn) { display: none; } .hero { padding-top: 40px; } }

/* Report */
.progress { height: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 99px; overflow: hidden; max-width: 520px; }
.progress > div { height: 100%; width: 5%; background: var(--accent); transition: width .4s; }
.score-big { font-size: 2.4rem; font-weight: 700; margin: 0; } .score-big span { font-size: 1rem; color: var(--muted); font-weight: 400; }
.score-big.good { color: var(--good); } .score-big.warn { color: var(--warn); } .score-big.bad { color: var(--bad); }
.summary { margin: 16px 0; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 16px 0 32px; }
.btn.secondary { background: transparent; color: var(--fg); border: 2px solid var(--accent); }
ol.plain { list-style: none; padding: 0; } ol.plain .issue { margin: 12px 0; }
code { font-size: .85em; word-break: break-all; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; } th, td { text-align: left; padding: 8px; border-bottom: 1px solid var(--line); }
td a { word-break: break-all; }
@media print {
  header.site, footer.site nav, .actions, .skip { display: none !important; }
  body { background: #fff; color: #000; } .card { break-inside: avoid; } details { display: block; } details > summary { display: none; }
  details:not([open]) > *:not(summary) { display: block; }
}
.fix { border-left: 3px solid var(--good); padding: 4px 0 4px 12px; margin: 12px 0; }
.fix p { margin: 6px 0; }
.code { position: relative; }
.code pre { background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 12px; overflow-x: auto; margin: 8px 0; white-space: pre-wrap; }
.code .copy { margin-bottom: 4px; }

/* Statement generator */
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 32px; align-items: start; }
@media (max-width: 800px) { .two-col { grid-template-columns: 1fr; } }
select, textarea { font: inherit; padding: 10px 12px; border: 2px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--fg); width: 100%; }
select:focus-visible, textarea:focus-visible { border-color: var(--accent); }
.output { position: sticky; top: 16px; }
#statement-preview h2 { font-size: 1.3rem; } #statement-preview h3 { margin-top: 16px; }
.error { color: var(--bad); }
