:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --ink: #1d1f1c;
  --muted: #5d625a;
  --line: #e4e2dc;
  --brand: #c2410c;
  --brand-ink: #ffffff;
  --accent-bg: #fff4ec;
  --ok: #166534;
  --warn: #9a3412;
  --radius: 10px;
  --max: 1040px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161714;
    --surface: #1f201d;
    --ink: #f1efe9;
    --muted: #a9aca3;
    --line: #34362f;
    --brand: #fb923c;
    --brand-ink: #1a0f06;
    --accent-bg: #2a1d13;
    --ok: #86efac;
    --warn: #fdba74;
  }
}
* { 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, sans-serif;
}
a { color: var(--brand); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
header.site { border-bottom: 1px solid var(--line); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.logo { font-weight: 800; font-size: 20px; color: var(--ink); text-decoration: none; letter-spacing: -0.02em; }
.logo span { color: var(--brand); }
nav a { color: var(--muted); text-decoration: none; margin-left: 18px; font-size: 15px; }
nav a:hover { color: var(--ink); }
h1 { font-size: clamp(30px, 5vw, 46px); line-height: 1.12; letter-spacing: -0.025em; margin: 0 0 16px; }
h2 { font-size: 26px; letter-spacing: -0.015em; margin: 0 0 12px; }
h3 { font-size: 18px; margin: 0 0 6px; }
.lede { font-size: 19px; color: var(--muted); max-width: 640px; }
.hero { padding-top: 64px; padding-bottom: 40px; }
section { padding: 40px 0; }
.btn {
  display: inline-block; background: var(--brand); color: var(--brand-ink);
  padding: 12px 20px; border-radius: var(--radius); font-weight: 650;
  text-decoration: none; border: 0; font-size: 16px; cursor: pointer;
}
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.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; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.tag { display: inline-block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--brand); margin-bottom: 6px; }
.callout { background: var(--accent-bg); border-radius: var(--radius); padding: 28px; }
form.signup { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
input, select {
  font: inherit; color: var(--ink); background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 11px 12px; min-width: 0;
}
form.signup input[type=email] { flex: 1 1 240px; }
.hp { position: absolute; left: -9999px; }
.msg { font-size: 15px; margin-top: 8px; min-height: 1.4em; }
.msg.ok { color: var(--ok); } .msg.err { color: var(--warn); }
footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; padding: 28px 0 40px; margin-top: 40px; }
footer a { color: var(--muted); }
/* calculator */
.calc { display: grid; gap: 20px; grid-template-columns: 1fr 1fr; align-items: start; }
@media (max-width: 760px) { .calc { grid-template-columns: 1fr; } nav a.hide-sm { display: none; } }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.field .in { display: flex; align-items: center; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.field .in span { padding: 0 10px; color: var(--muted); }
.field .in input { border: 0; flex: 1; background: transparent; }
.seg { display: flex; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 16px; }
.seg button { flex: 1; font: inherit; font-size: 15px; padding: 10px; border: 0; background: var(--surface); color: var(--muted); cursor: pointer; }
.seg button[aria-pressed=true] { background: var(--ink); color: var(--bg); font-weight: 650; }
.out dl { display: grid; grid-template-columns: 1fr auto; gap: 10px 16px; margin: 0; }
.out dt { color: var(--muted); }
.out dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.out .big dd { font-size: 28px; color: var(--brand); }
.bar { display: flex; height: 14px; border-radius: 7px; overflow: hidden; margin: 18px 0 6px; background: var(--line); }
.bar i { display: block; height: 100%; }
.bar .c { background: var(--muted); } .bar .p { background: var(--brand); }
.legend { font-size: 13px; color: var(--muted); display: flex; justify-content: space-between; }
.note { font-size: 14px; color: var(--warn); margin-top: 12px; min-height: 1.2em; }
table.ref { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: 15px; }
table.ref th, table.ref td { border-bottom: 1px solid var(--line); padding: 8px; text-align: right; }
table.ref th:first-child, table.ref td:first-child { text-align: left; }
.prose { max-width: 680px; }
