:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --ink: #1d2433;
  --muted: #5a6275;
  --line: #e4e1d9;
  --brand: #0f6e66;
  --brand-ink: #ffffff;
  --brand-soft: #e3f1ef;
  --accent: #c2410c;
  --focus: #1d4ed8;
  --radius: 14px;
  --max: 1080px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12161d;
    --surface: #1a1f28;
    --ink: #eef0f4;
    --muted: #a7aebd;
    --line: #2c3340;
    --brand: #4fb3a8;
    --brand-ink: #0d1a19;
    --brand-soft: #18302e;
    --accent: #f59e6b;
    --focus: #93b4ff;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--brand); text-underline-offset: 3px; }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
img, svg { max-width: 100%; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--surface); padding: 8px 12px; z-index: 10; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--surface); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 1.2rem; letter-spacing: -0.01em; }
.brand svg { width: 34px; height: 34px; flex: none; }
.nav { display: flex; gap: 20px; align-items: center; }
.nav a { color: var(--muted); text-decoration: none; font-size: 0.95rem; }
.nav a:hover { color: var(--ink); }
.nav a.btn, .nav a.btn:hover { color: var(--brand-ink); }
@media (max-width: 640px) { .nav a:not(.btn) { display: none; } }

/* Buttons */
.btn { display: inline-block; background: var(--brand); color: var(--brand-ink); text-decoration: none; font-weight: 600; padding: 12px 20px; border-radius: 999px; }
.btn:hover { filter: brightness(1.07); }
.btn-small { padding: 8px 16px; font-size: 0.95rem; }
.btn-ghost { background: transparent; color: var(--brand); border: 2px solid var(--brand); }

/* Hero */
.hero { padding-top: 72px; padding-bottom: 56px; }
.badge { display: inline-block; background: var(--brand-soft); color: var(--brand); font-weight: 600; font-size: 0.85rem; padding: 6px 12px; border-radius: 999px; margin-bottom: 18px; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 18px; max-width: 18ch; }
.hero .lede { font-size: 1.2rem; color: var(--muted); max-width: 60ch; margin: 0 0 28px; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Sections */
section { padding: 56px 0; border-top: 1px solid var(--line); }
section h2 { font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -0.01em; margin: 0 0 12px; }
section .intro { color: var(--muted); max-width: 65ch; margin: 0 0 28px; }

.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 20px 18px; }
.card h3 { margin: 0 0 6px; font-size: 1.05rem; }
.card p { margin: 0; color: var(--muted); font-size: 0.97rem; }
.card .icon { width: 28px; height: 28px; color: var(--brand); margin-bottom: 10px; }
.card ul, .panel ul { margin: 8px 0 0; padding-left: 20px; color: var(--muted); font-size: 0.96rem; }
.card li, .panel li { margin: 6px 0; }
.standards { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.standards .card { position: relative; padding-top: 22px; }
.num { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); font-weight: 700; font-size: 0.95rem; margin-bottom: 10px; }
.facts strong { color: var(--ink); }
@media (max-width: 400px) { .standards { grid-template-columns: 1fr; } }

.two { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 820px) { .two { grid-template-columns: 1.1fr 0.9fr; align-items: start; } }

.facts { list-style: none; margin: 0; padding: 0; }
.facts li { padding: 12px 0 12px 30px; border-bottom: 1px solid var(--line); position: relative; }
.facts li::before { content: ""; position: absolute; left: 4px; top: 21px; width: 10px; height: 10px; border-radius: 50%; background: var(--brand); }
.note { font-size: 0.9rem; color: var(--muted); margin-top: 14px; }

.panel { background: var(--brand-soft); border-radius: var(--radius); padding: 28px; }
.panel h3 { margin-top: 0; }

.cta { text-align: center; }
.cta p { max-width: 60ch; margin: 0 auto 24px; color: var(--muted); }
.cta .email { font-weight: 600; font-size: 1.15rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); padding: 32px 0 40px; font-size: 0.9rem; color: var(--muted); }
.site-footer .wrap { display: grid; gap: 12px; }
.site-footer a { color: var(--muted); }
.todo { background: #fff3cd; color: #5c4400; padding: 0 4px; border-radius: 4px; }
@media (prefers-color-scheme: dark) { .todo { background: #5c4400; color: #fff3cd; } }

/* Readiness check */
.x-check { padding-top: 40px; padding-bottom: 64px; max-width: 860px; }
.x-intro h1, #results h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); letter-spacing: -0.02em; margin: 0 0 12px; }
.x-intro .lede { font-size: 1.1rem; color: var(--muted); margin: 0 0 12px; }
.x-progress[hidden] { display: none; }
.x-progress { position: sticky; top: 0; z-index: 5; background: var(--bg); padding: 12px 0; display: flex; align-items: center; gap: 14px; font-size: 0.95rem; color: var(--muted); border-bottom: 1px solid var(--line); margin: 16px 0 8px; }
.x-bar { flex: 1; height: 8px; background: var(--line); border-radius: 999px; overflow: hidden; }
.x-bar span { display: block; height: 100%; width: 0; background: var(--brand); transition: width .2s; }
.x-area { border-top: 0; padding: 28px 0 8px; }
.x-area h2 { display: flex; align-items: center; gap: 10px; font-size: 1.35rem; margin: 0 0 12px; }
.x-area h2 .num { margin: 0; }
.x-q { border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); padding: 14px 16px 12px; margin: 0 0 12px; }
.x-q legend { padding: 0 4px; font-weight: 600; }
.x-opts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.x-opt { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; cursor: pointer; min-height: 44px; }
.x-opt:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.x-opt input { accent-color: var(--brand); width: 18px; height: 18px; margin: 0; }
.x-opt:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }
.x-submit { padding: 24px 0 0; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.x-submit button { border: 0; font-size: 1rem; cursor: pointer; }
.x-results { margin: 20px 0 8px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.x-res-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.x-res h3 { font-size: 1rem; }
.x-badge { font-size: 0.8rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.x-good .x-badge { background: #dcfce7; color: #14532d; }
.x-gaps .x-badge { background: #fef3c7; color: #713f12; }
.x-attention .x-badge { background: #fee2e2; color: #7f1d1d; }
.x-meter { height: 8px; background: var(--line); border-radius: 999px; overflow: hidden; margin: 12px 0 6px; }
.x-meter span { display: block; height: 100%; background: var(--brand); }
.x-pct { margin: 0; font-weight: 700; font-size: 1.2rem; color: var(--ink) !important; }
.x-section { border-top: 1px solid var(--line); padding: 28px 0 8px; }
.x-section.panel { padding: 24px; margin-top: 24px; border-top: 0; }
.x-tips li { margin: 10px 0; }
.x-all details { border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; margin: 0 0 8px; background: var(--surface); }
.x-all summary { cursor: pointer; font-weight: 600; }
.x-next .actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.x-next button { cursor: pointer; font: inherit; font-weight: 600; }
.hero .actions .btn-check { background: transparent; color: var(--brand); border: 2px solid var(--brand); }
@media print {
  .site-header, .site-footer, .x-progress, .x-next .actions, .skip { display: none !important; }
  .x-all details { break-inside: avoid; }
  .x-all details:not([open]) > ul { display: block; }
  body { background: #fff; color: #000; }
}

/* Privacy page */
.doc { max-width: 760px; padding: 48px 20px 64px; margin: 0 auto; }
.doc h1 { font-size: 2rem; margin: 0 0 6px; }
.doc h2 { font-size: 1.25rem; margin: 32px 0 8px; }
.doc .updated { color: var(--muted); margin: 0 0 24px; }
.doc table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
.doc th, .doc td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
