:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --surface-2: #f3f1ec;
  --text: #1d1c1a;
  --muted: #5f5b54;
  --border: #e4e0d8;
  --accent: #c2410c;
  --accent-ink: #ffffff;
  --high-bg: #fde2e1; --high-fg: #9b1c1c;
  --med-bg: #fdefd3;  --med-fg: #7a4b00;
  --low-bg: #e2f3e5;  --low-fg: #22612f;
  --radius: 10px;
  --max: 1080px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #141311; --surface: #1d1c19; --surface-2: #26241f;
    --text: #f1efe9; --muted: #aaa59b; --border: #34312b;
    --accent: #fb8c4b; --accent-ink: #1a0d05;
    --high-bg: #4a1d1d; --high-fg: #ffb4b0;
    --med-bg: #45330f;  --med-fg: #ffd58a;
    --low-bg: #193524;  --low-fg: #9fe0b0;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--accent); }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }

/* header */
.site-header { border-bottom: 1px solid var(--border); background: var(--bg); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; color: var(--text); text-decoration: none; }
.brand svg { width: 28px; height: 28px; }
.nav { display: flex; gap: 20px; align-items: center; font-size: 15px; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover { color: var(--text); }
@media (max-width: 640px) { .nav .hide-sm { display: none; } }

.btn {
  display: inline-block; padding: 12px 20px; border-radius: 8px;
  background: var(--accent); color: var(--accent-ink); font-weight: 600;
  text-decoration: none; border: 0; font-size: 16px;
}
.btn:hover { filter: brightness(1.07); }
.btn.secondary { background: transparent; color: var(--text); border: 1px solid var(--border); }
.nav .btn { padding: 8px 14px; font-size: 15px; color: var(--accent-ink); }

/* hero */
.hero { padding-top: 72px; padding-bottom: 40px; }
.eyebrow { color: var(--accent); font-weight: 600; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; margin: 0 0 12px; }
.hero h1 { font-size: clamp(34px, 6vw, 56px); line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 20px; max-width: 16ch; }
.hero p.lead { font-size: clamp(18px, 2.4vw, 21px); color: var(--muted); max-width: 58ch; margin: 0 0 28px; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* report preview */
.preview {
  margin-top: 48px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: 0 10px 30px rgba(0,0,0,.06); overflow: hidden;
}
.preview-bar { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 16px; border-bottom: 1px solid var(--border); background: var(--surface-2); font-size: 14px; color: var(--muted); }
.preview-bar strong { color: var(--text); }
.table-scroll { overflow-x: auto; }
table.report { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 620px; }
table.report th, table.report td { padding: 10px 16px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
table.report th { font-size: 13px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
table.report tr:last-child td { border-bottom: 0; }
table.report td.num { text-align: right; font-variant-numeric: tabular-nums; }
.scope { color: var(--muted); font-size: 14px; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .03em; }
.badge.high { background: var(--high-bg); color: var(--high-fg); }
.badge.medium { background: var(--med-bg); color: var(--med-fg); }
.badge.low { background: var(--low-bg); color: var(--low-fg); }
.caption { color: var(--muted); font-size: 14px; margin-top: 10px; }

/* sections */
section { padding: 64px 0; }
section.alt { background: var(--surface-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
h2 { font-size: clamp(26px, 4vw, 36px); line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 16px; }
.section-lead { color: var(--muted); max-width: 60ch; margin: 0 0 36px; }
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.card h3 { margin: 0 0 8px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }
.step-num { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 15px; margin-bottom: 12px; }

.two-col { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
ul.check, ul.cross { list-style: none; padding: 0; margin: 0; }
ul.check li, ul.cross li { padding-left: 28px; position: relative; margin: 10px 0; }
ul.check li::before { content: "✓"; position: absolute; left: 0; color: var(--low-fg); font-weight: 700; }
ul.cross li::before { content: "✕"; position: absolute; left: 0; color: var(--high-fg); font-weight: 700; }

.cta-band { text-align: center; }
.cta-band p { color: var(--muted); max-width: 52ch; margin: 0 auto 24px; }

/* footer */
.site-footer { border-top: 1px solid var(--border); padding: 28px 0; color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }

/* legal pages */
.legal { padding: 48px 0 72px; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(30px, 5vw, 42px); margin: 0 0 6px; }
.legal .updated { color: var(--muted); margin: 0 0 32px; }
.legal h2 { font-size: 22px; margin: 36px 0 10px; }
.legal li { margin: 6px 0; }
.draft-note { background: var(--med-bg); color: var(--med-fg); border-radius: 8px; padding: 12px 16px; margin-bottom: 28px; font-size: 15px; }
.legal table { border-collapse: collapse; width: 100%; font-size: 15px; margin: 12px 0; }
.legal th, .legal td { border: 1px solid var(--border); padding: 8px 10px; text-align: left; vertical-align: top; }
.card h3.mt { margin-top: 12px; }
