:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --surface-2: #eef1f5;
  --text: #16202e;
  --muted: #5b6676;
  --border: #dde2ea;
  --brand: #1f4e8c;
  --brand-ink: #ffffff;
  --brand-soft: #e3ecf8;
  --good: #1e7a4f;
  --radius: 10px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f141b;
    --surface: #171e28;
    --surface-2: #1f2834;
    --text: #e6ebf2;
    --muted: #9aa6b6;
    --border: #2b3645;
    --brand: #6ea2e8;
    --brand-ink: #0f141b;
    --brand-soft: #1c2b40;
    --good: #5cc592;
  }
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--brand); }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }

header { background: var(--surface); border-bottom: 1px solid var(--border); }
header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; padding-bottom: 12px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 19px; color: var(--text); text-decoration: none; }
.brand img { width: 28px; height: 28px; border-radius: 6px; }
.links { display: flex; gap: 8px; align-items: center; }

.btn { display: inline-flex; align-items: center; justify-content: center; padding: 10px 18px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font-weight: 600; text-decoration: none; white-space: nowrap; }
.btn.primary { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.btn.big { padding: 14px 24px; font-size: 18px; }

.hero { padding: 72px 0 56px; }
.hero h1 { font-size: clamp(32px, 5vw, 52px); line-height: 1.1; margin: 0 0 16px; max-width: 760px; }
.hero p { font-size: clamp(18px, 2.2vw, 21px); color: var(--muted); max-width: 680px; margin: 0 0 28px; }
.eyebrow { display: inline-block; font-size: 14px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--brand); margin-bottom: 12px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.note { font-size: 14px; color: var(--muted); }

section { padding: 48px 0; }
section h2 { font-size: clamp(24px, 3.2vw, 32px); line-height: 1.2; margin: 0 0 12px; }
section > .wrap > p.lead { color: var(--muted); max-width: 680px; margin: 0 0 28px; }
.alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.alt .card { background: var(--bg); }
.card h3 { margin: 0 0 6px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.steps li { counter-increment: step; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.steps li::before { content: counter(step); display: inline-flex; width: 32px; height: 32px; border-radius: 50%; align-items: center; justify-content: center; background: var(--brand-soft); color: var(--brand); font-weight: 700; margin-bottom: 10px; }
.steps strong { display: block; margin-bottom: 4px; }
.steps span { color: var(--muted); font-size: 16px; }

ul.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
ul.checks li { padding-left: 30px; position: relative; }
ul.checks li::before { content: "\2713"; position: absolute; left: 0; top: 0; font-weight: 700; color: var(--good); }

.prose { max-width: 720px; }
.prose h2 { margin-top: 36px; font-size: 22px; }
.prose p, .prose li { color: var(--text); }

footer { padding: 32px 0 48px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer a { color: var(--muted); }

.draft-banner { background: var(--brand-soft); border-radius: var(--radius); padding: 12px 16px; margin: 0 0 24px; font-size: 15px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 12px 0; }
.prose th, .prose td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
.prose th { color: var(--muted); font-weight: 600; }
@media (max-width: 640px) { .prose table { display: block; overflow-x: auto; } }
