:root {
  --bg: #ffffff;
  --bg-soft: #f4f6f8;
  --ink: #14202b;
  --ink-soft: #46586a;
  --rule: #d5dce3;
  --accent: #1c4e80;
  --accent-ink: #ffffff;
  --accent-soft: #e6eef6;
  --warn-bg: #fff6e0;
  --warn-rule: #d9a400;
  --bad-bg: #fdeaea;
  --bad-rule: #b3261e;
  --ok-bg: #e8f4ea;
  --ok-rule: #2e7d32;
  --radius: 2px;
  --max: 1080px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1820;
    --bg-soft: #17232d;
    --ink: #e8eef3;
    --ink-soft: #a9b8c5;
    --rule: #2a3946;
    --accent: #6fb0ea;
    --accent-ink: #0b141b;
    --accent-soft: #162a3b;
    --warn-bg: #2d2610;
    --warn-rule: #d9a400;
    --bad-bg: #331a19;
    --bad-rule: #e57973;
    --ok-bg: #16281a;
    --ok-rule: #6bbf70;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
a { color: var(--accent); }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--accent); color: var(--accent-ink); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; top: 8px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
header.site { border-bottom: 1px solid var(--rule); background: var(--bg); }
header.site .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; min-height: 64px; }
.brand { font-weight: 700; font-size: 20px; letter-spacing: -0.01em; color: var(--ink); text-decoration: none; }
.brand span { color: var(--accent); }
nav.main { display: flex; flex-wrap: wrap; gap: 4px 20px; }
nav.main a { color: var(--ink); text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
nav.main a:hover, nav.main a[aria-current="page"] { border-bottom-color: var(--accent); }
main { padding: 36px 0 64px; }
h1 { font-size: clamp(28px, 4.2vw, 40px); line-height: 1.15; margin: 0 0 14px; letter-spacing: -0.02em; font-weight: 700; }
h2 { font-size: 24px; margin: 40px 0 12px; line-height: 1.25; }
h3 { font-size: 18px; margin: 24px 0 8px; }
p { margin: 0 0 14px; max-width: 72ch; }
.lead { font-size: 19px; color: var(--ink-soft); max-width: 62ch; }
.muted { color: var(--ink-soft); }
.small { font-size: 14px; }
.grid { display: grid; gap: 16px; }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid.four { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.card { border: 1px solid var(--rule); border-radius: var(--radius); padding: 18px 20px; background: var(--bg); }
.card h3 { margin-top: 0; }
a.card { display: block; text-decoration: none; color: var(--ink); }
a.card:hover { border-color: var(--accent); }
.stat { border-left: 4px solid var(--accent); padding: 4px 0 4px 14px; }
.stat b { display: block; font-size: 30px; line-height: 1.1; letter-spacing: -0.02em; }
.stat span { color: var(--ink-soft); font-size: 14px; }
.band { background: var(--bg-soft); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 28px 0; margin: 40px 0; }
.notice { border-left: 4px solid var(--warn-rule); background: var(--warn-bg); padding: 12px 16px; margin: 18px 0; max-width: 80ch; }
.notice.bad { border-left-color: var(--bad-rule); background: var(--bad-bg); }
.notice.ok { border-left-color: var(--ok-rule); background: var(--ok-bg); }
.notice p:last-child { margin-bottom: 0; }
table { border-collapse: collapse; width: 100%; font-size: 15px; margin: 12px 0 24px; }
th, td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--rule); vertical-align: top; }
th { background: var(--bg-soft); font-weight: 600; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.scroll { overflow-x: auto; }
.bar { background: var(--accent-soft); height: 10px; min-width: 2px; border-radius: var(--radius); }
label { display: block; font-weight: 600; margin: 14px 0 4px; }
.hint { font-weight: 400; color: var(--ink-soft); font-size: 14px; }
input[type="text"], input[type="email"], input[type="number"], input[type="date"], select {
  width: 100%; max-width: 420px; padding: 10px 12px; font: inherit; color: var(--ink); background: var(--bg);
  border: 1px solid var(--ink-soft); border-radius: var(--radius);
}
input[type="checkbox"] { width: 18px; height: 18px; margin-right: 8px; vertical-align: -3px; }
.check { font-weight: 400; display: flex; align-items: flex-start; gap: 4px; max-width: 70ch; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
button, .button {
  display: inline-block; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; text-align: center;
  padding: 11px 20px; border-radius: var(--radius); border: 2px solid var(--accent); background: var(--accent); color: var(--accent-ink);
}
button:hover, .button:hover { filter: brightness(1.08); }
button.secondary, .button.secondary { background: transparent; color: var(--accent); }
button[disabled] { opacity: 0.6; cursor: wait; }
.tool { display: grid; gap: 28px; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); align-items: start; }
@media (max-width: 820px) { .tool { grid-template-columns: 1fr; } }
.result { border: 1px solid var(--rule); border-radius: var(--radius); padding: 18px 20px; background: var(--bg-soft); min-height: 120px; }
.result h2 { margin-top: 0; font-size: 20px; }
.result .big { font-size: 34px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.status { font-size: 13px; font-weight: 600; border: 1px solid var(--rule); padding: 1px 6px; border-radius: var(--radius); white-space: nowrap; }
.status.cms { border-color: var(--ok-rule); }
.status.summary { border-color: var(--warn-rule); }
.status.unverified { border-color: var(--bad-rule); }
.tiers { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin: 20px 0; }
.tier { border: 1px solid var(--rule); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.tier.pick { border: 2px solid var(--accent); }
.tier .price { font-size: 34px; font-weight: 700; letter-spacing: -0.02em; line-height: 1; }
.tier .price small { font-size: 15px; font-weight: 400; color: var(--ink-soft); }
.tier ul { margin: 6px 0 12px; padding-left: 20px; }
.tier button { margin-top: auto; }
footer.site { border-top: 1px solid var(--rule); background: var(--bg-soft); padding: 28px 0 36px; font-size: 14px; color: var(--ink-soft); }
footer.site a { color: var(--ink-soft); }
footer.site .cols { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-bottom: 18px; }
ul.plain { list-style: none; padding: 0; margin: 0; }
ul.plain li { margin: 4px 0; }
.crumbs { font-size: 14px; margin-bottom: 14px; }
code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 0.92em; background: var(--bg-soft); padding: 1px 4px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

.flush { margin-top: 0; }
.spaced { margin-top: 32px; }
.spaced-s { margin-top: 18px; }
.barsvg { display: block; width: 100%; height: 10px; min-width: 60px; }
.barsvg rect { fill: var(--accent); }
