:root {
  --bg: #f4f6f8;
  --surface: #ffffff;
  --text: #17202a;
  --muted: #5b6673;
  --border: #d8dee5;
  --accent: #2f5d8a;
  --accent-soft: #e3ecf5;
  --accent-text: #ffffff;
  --local: #2f5d8a;
  --region: #c3cdd8;
  --green-bg: #dcefe4; --green-fg: #1c5a39;
  --amber-bg: #fbecc8; --amber-fg: #7a4b00;
  --red-bg: #f8dcd8; --red-fg: #8a2318;
  --notice: #eef1f5;
  --radius: 10px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12161b;
    --surface: #1a2027;
    --text: #e6ebf0;
    --muted: #9aa6b2;
    --border: #2c3540;
    --accent: #7fb0e0;
    --accent-soft: #1f2d3b;
    --accent-text: #0e1620;
    --local: #7fb0e0;
    --region: #3d4a58;
    --green-bg: #1d3a2b; --green-fg: #9fe0bb;
    --amber-bg: #3d3014; --amber-fg: #f3cf7d;
    --red-bg: #45201b; --red-fg: #f5a99f;
    --notice: #202831;
  }
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); line-height: 1.5; }
.stat, .compare, .money, .tally, .badge { font-variant-numeric: tabular-nums; }
a { color: var(--accent); }
.wrap { max-width: 860px; margin: 0 auto; padding: 0 16px; }
.small { font-size: 0.875rem; }
.muted { color: var(--muted); }
.error { color: var(--red-fg); background: var(--red-bg); padding: 8px 12px; border-radius: 6px; }

.site-header { border-bottom: 1px solid var(--border); background: var(--surface); }
.site-header .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; column-gap: 16px; min-height: 56px; padding-block: 6px; }
.brand { font-weight: 700; text-decoration: none; color: var(--text); white-space: nowrap; }
.site-header nav a { margin-left: 16px; white-space: nowrap; }
.site-header nav a:first-child { margin-left: 0; }
.site-footer { margin-top: 48px; padding: 24px 0 96px; border-top: 1px solid var(--border); }

.hero { padding: 40px 0 0; }
.hero h1 { font-size: clamp(2.1rem, 6vw, 3rem); line-height: 1.1; margin: 0 0 10px; text-wrap: balance; }
.hero .sub { font-size: clamp(1.2rem, 2.6vw, 1.45rem); font-weight: 600; line-height: 1.35; margin: 0 0 12px; text-wrap: balance; }
.lede { font-size: 1.1rem; }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; margin: 16px 0; }
.card h2 { margin-top: 0; }

fieldset { border: 0; padding: 0; margin: 0 0 24px; }
legend { font-weight: 700; font-size: 1.1rem; margin-bottom: 8px; }
.step { display: inline-grid; place-items: center; width: 1.6em; height: 1.6em; border-radius: 50%; background: var(--accent); color: var(--accent-text); font-size: 0.85em; margin-right: 6px; }
label, .label { display: block; font-weight: 600; font-size: 0.9rem; margin: 12px 0 4px; }
input[type=text], input[type=number], select, textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--bg);
  border: 1px solid var(--border); border-radius: 6px; padding: 10px;
}
textarea { resize: vertical; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.row.three { grid-template-columns: repeat(3, 1fr); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.next { font-weight: 500; }
.spots li { margin-bottom: 10px; }
.starters { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 8px; }
.starters button { font: inherit; font-size: 0.85rem; padding: 4px 10px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--text); cursor: pointer; }
.starters button[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); }
.chips label { font-weight: 500; margin: 0; padding: 6px 10px; border: 1px solid var(--border); border-radius: 999px; cursor: pointer; }
.chips label:has(input:checked) { background: var(--accent-soft); border-color: var(--accent); }
.check-inline label { font-weight: 500; margin-top: 36px; }

.btn { font: inherit; font-weight: 600; padding: 10px 16px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; }
.btn.primary { background: var(--accent); color: var(--accent-text); border-color: var(--accent); padding: 12px 20px; }
.btn:disabled { opacity: 0.6; cursor: wait; }
a.btn { display: inline-block; text-decoration: none; }
.offer { margin: 10px 0 0; }

details.money-inputs { margin: 0 0 24px; }
details.money-inputs summary { font-weight: 700; font-size: 1.1rem; cursor: pointer; }

.proof { list-style: none; padding: 0; margin: 8px 0 24px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.proof li { border-left: 3px solid var(--accent); padding: 2px 0 2px 10px; color: var(--muted); }
.proof strong { color: var(--text); display: block; }

.objections { margin-top: 32px; }
details.qa { border-top: 1px solid var(--border); }
details.qa:last-of-type { border-bottom: 1px solid var(--border); }
details.qa > summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 12px 0; }
details.qa > summary::-webkit-details-marker { display: none; }
details.qa > summary::after { content: "+"; flex: none; font-weight: 700; font-size: 1.35rem; line-height: 1; color: var(--accent); }
details.qa[open] > summary::after { content: "−"; }
details.qa > summary h3 { margin: 0; font-size: 1.02rem; }
details.qa p { margin: 0 0 14px; }

.source { font-size: 0.78rem; color: var(--muted); margin: 4px 0 16px; }
.sample-banner { background: var(--accent-soft); border-color: var(--accent); }

.locked-wrap { display: grid; grid-template-columns: 3fr 2fr; gap: 16px; align-items: center; }
.locked { padding-left: 20px; }
.locked li { margin: 6px 0; }
.teaser { filter: blur(3px); opacity: 0.7; user-select: none; }
.t-row { display: flex; gap: 8px; justify-content: space-between; margin: 10px 0; }
.t-row span { display: block; height: 12px; border-radius: 3px; background: var(--region); flex: 1; }
.t-row span:first-child { flex: 2; }
.t-row .t-badge { flex: 0 0 48px; background: var(--red-bg); }
.t-row .t-badge.amber { background: var(--amber-bg); }

.buy-bar { display: none; }
.prose h2 { font-size: 1.15rem; margin-top: 28px; }

.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-weight: 700; font-size: 0.95em; }
.badge.green { background: var(--green-bg); color: var(--green-fg); }
.badge.amber { background: var(--amber-bg); color: var(--amber-fg); }
.badge.red { background: var(--red-bg); color: var(--red-fg); }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 16px 0; }
.stats > div { background: var(--notice); border-radius: 8px; padding: 12px; }
.stat { display: block; font-size: 1.5rem; font-weight: 700; }

table { width: 100%; border-collapse: collapse; }
.compare th, .compare td { padding: 6px 4px; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--border); }
.compare thead th { font-size: 0.85rem; color: var(--muted); font-weight: 600; }
.compare tbody th { font-weight: 500; width: 32%; }
.compare caption { text-align: left; padding-bottom: 8px; }
.bars { width: 46%; }
.pull { white-space: nowrap; }
.bar { height: 14px; border-radius: 3px; margin: 3px 0; position: relative; min-width: 2px; }
.bar.local { background: var(--local); }
.bar.region { background: var(--region); }
.bar span { position: absolute; left: calc(100% + 6px); top: -3px; font-size: 0.8rem; white-space: nowrap; }
.key { display: inline-block; width: 12px; height: 12px; border-radius: 2px; vertical-align: middle; margin: 0 4px 0 8px; }
.key.local { background: var(--local); }
.key.region { background: var(--region); }
.pull .dots { color: var(--accent); letter-spacing: 1px; margin-right: 6px; }
.pull-0 th, .pull-0 .pull { color: var(--muted); }

.notice { background: var(--notice); border-radius: 8px; padding: 12px 16px; margin-top: 16px; }
.unlock .ticks { padding-left: 20px; }
.fix { border-top: 1px solid var(--border); padding-top: 8px; }
.money th, .money td { text-align: left; padding: 8px 4px; border-bottom: 1px solid var(--border); vertical-align: top; }
.money th { font-weight: 500; width: 55%; }
.key-row th, .key-row td { font-weight: 700; }
.tally { margin-bottom: 16px; font-size: 0.8rem; }
.tally th, .tally td { border: 1px solid var(--border); padding: 4px; height: 28px; }
.tally thead th { font-weight: 600; }

@media (max-width: 640px) {
  .row, .row.three, .stats, .proof, .locked-wrap { grid-template-columns: 1fr; }
  .teaser { display: none; }
  .site-header nav a { margin-left: 10px; }
  .buy-bar:not([hidden]) {
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
    position: fixed; left: 0; right: 0; bottom: 0; padding: 10px 16px;
    background: var(--surface); border-top: 1px solid var(--border); box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.08);
  }
  .check-inline label { margin-top: 12px; }
  .compare tbody th { width: 34%; font-size: 0.9rem; }
  .pull-label { display: none; }
  .bar span { font-size: 0.75rem; }
  .tally { font-size: 0.7rem; }
}

.share-row { display: flex; gap: 8px; }
.share-row input { flex: 1; min-width: 0; }

@media print {
  .no-print, .site-header, .buy-bar { display: none; }
  body { background: #fff; color: #000; }
  .card { border: 0; padding: 0; margin: 0 0 18px; }
  .page-break { break-before: page; }
}

/* Landing: who it's for, why residents matter, the story, then what you get before any questions. */
.nowrap { white-space: nowrap; }
.kicker { margin: 0 0 8px; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }
.story { background: var(--notice); border-radius: 8px; padding: 12px 16px; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 20px 0 0; }
.cta.again { margin-top: 28px; }
.get { margin: 40px 0 8px; }
.get h2 { margin: 0 0 12px; }
.tiers { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.tier { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 18px 14px; }
.tier h3 { margin: 0 0 6px; }
.tier p { margin: 0 0 14px; }
.tier ul { list-style: none; padding: 0; margin: 0 0 14px; }
.tier li { position: relative; padding-left: 22px; margin: 4px 0; }
.tier li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.story { margin: 28px 0 0; }
.clip { margin: 24px auto 0; max-width: 300px; }
.clip img { display: block; width: 100%; height: auto; border: 1px solid var(--border); border-radius: 14px; background: #fff; box-shadow: 0 10px 28px rgba(23, 32, 42, 0.14); }
.clip figcaption { margin-top: 8px; font-size: 0.8rem; color: var(--muted); text-align: center; }
.clip-toggle { font: inherit; color: var(--accent); background: none; border: 0; padding: 0 0 0 4px; text-decoration: underline; cursor: pointer; }
@media (min-width: 760px) {
  .hero { display: grid; grid-template-columns: minmax(0, 1fr) 300px; grid-template-rows: repeat(5, auto) 1fr; column-gap: 48px; }
  .hero > * { grid-column: 1; }
  .hero > .clip { grid-column: 2; grid-row: 1 / -1; margin: 0; }
}
/* On a phone the clip comes straight after the button, so it shows on the first screen. */
@media (max-width: 759px) {
  .hero { display: flex; flex-direction: column; }
  .hero > .clip { order: 1; }
  .hero > .lede { order: 2; margin: 24px 0 0; }
}
.shot { margin: auto 0 0; }
.shot > a { display: block; }
.shot img { display: block; width: 100%; height: auto; border: 1px solid var(--border); border-radius: 8px; background: #fff; }
.shot > a:hover img { border-color: var(--accent); }
.shot figcaption { margin-top: 6px; font-size: 0.8rem; color: var(--muted); }
@media (max-width: 640px) {
  .tiers { grid-template-columns: 1fr; }
}
#radiusWhy { margin: 6px 0 0; }
.others button { display: inline-flex; align-items: center; gap: 6px; }
.others .badge { font-size: 0.75rem; }
.recover { margin: 0 0 16px; }
.recover p { margin: 6px 0; }
