/* ---------- Design tokens ---------- */
:root {
  --bg: #f4f6f9;
  --surface: #ffffff;
  --ink: #1a2230;
  --ink-soft: #51607a;
  --line: #e2e7ef;
  --brand: #1f6feb;
  --brand-dark: #1858c4;
  --accent: #0f9d6b;
  --warn-bg: #fff4f4;
  --warn-line: #f3c2c2;
  --warn-ink: #9b1c1c;
  --info-bg: #eaf2ff;
  --info-ink: #1858c4;
  --shadow: 0 1px 2px rgba(16, 28, 51, .06), 0 8px 24px rgba(16, 28, 51, .06);
  --radius: 14px;
  --maxw: 1080px;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 20px;
}

h1, h2, h3 { line-height: 1.25; color: var(--ink); }
a { color: var(--brand); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Header ---------- */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 10;
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; min-height: 60px; flex-wrap: wrap;
}
.brand {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 800; font-size: 1.15rem; text-decoration: none; color: var(--ink);
}
.brand-mark { font-size: 1.3rem; }
.tagline { margin: 0; color: var(--ink-soft); font-size: .9rem; }

.main-nav { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.main-nav a {
  color: var(--ink-soft); text-decoration: none; font-weight: 600; font-size: .95rem;
}
.main-nav a:hover { color: var(--brand); }

/* ---------- Intro ---------- */
.intro { padding-top: 32px; }
.intro h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); margin: 0 0 .4em; }
.lede { font-size: 1.08rem; color: var(--ink-soft); max-width: 70ch; margin: 0; }
.lede strong { color: var(--ink); }

/* ---------- Trust bar (transparency-first positioning) ---------- */
.trust-bar {
  margin-top: 22px;
  background: linear-gradient(135deg, #f0f7f3, #eaf2ff);
  border: 1px solid #d3e6dc;
  border-radius: var(--radius);
  padding: 20px 22px;
}
.trust-lead { margin: 0 0 14px; font-size: 1.02rem; color: var(--ink); max-width: 80ch; }
.trust-points {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
}
.trust-points li {
  font-size: .92rem; color: var(--ink-soft); line-height: 1.5;
  background: rgba(255, 255, 255, .6); border-radius: 10px; padding: 12px 14px;
}
.trust-points strong { color: var(--ink); }
.trust-points span { color: var(--accent); font-weight: 800; margin-right: 4px; }
@media (max-width: 720px) { .trust-points { grid-template-columns: 1fr; } }

/* ---------- Data provenance badge (E-E-A-T trust signal) ---------- */
.data-badge {
  margin: 16px 0 0; font-size: .9rem; color: var(--ink-soft); line-height: 1.55;
  background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--accent);
  border-radius: 10px; padding: 12px 16px;
}
.data-badge strong { color: var(--ink); }
.data-badge span { color: var(--accent); font-weight: 800; margin-right: 4px; }
.data-badge a { color: var(--brand); text-decoration: none; }
.data-badge a:hover { text-decoration: underline; }

/* ---------- Demand letter generator ---------- */
.field input[type="text"], .field input[type="date"], .field textarea {
  width: 100%; box-sizing: border-box; font: inherit; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px;
}
.field textarea { resize: vertical; line-height: 1.5; }
#letter-output {
  width: 100%; box-sizing: border-box; margin-top: 4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9rem; line-height: 1.5;
  color: var(--ink); background: #fbfdff; border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px;
}
.demand-cta {
  margin: 18px 0 0; padding: 16px; text-align: center;
  background: linear-gradient(135deg, #f0f7f3, #eaf2ff); border: 1px solid #d3e6dc; border-radius: var(--radius);
}
.demand-cta .btn-primary { display: inline-block; text-decoration: none; }
.demand-cta .fine { margin: 8px 0 0; }

/* ---------- State pages (breadcrumb, quick facts, hub grid) ---------- */
.crumbs { padding-top: 18px; font-size: .85rem; color: var(--ink-soft); }
.crumbs a { color: var(--brand); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs span { color: var(--ink); font-weight: 600; }

.quick-facts {
  margin-top: 20px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 22px;
}
.quick-facts h2 { margin: 0 0 6px; font-size: 1.15rem; }

.callout {
  background: var(--info-bg); color: var(--info-ink); border-radius: 10px;
  padding: 10px 14px; margin: 12px 0 0; font-size: .9rem;
}

.state-groups {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 8px;
}
@media (max-width: 720px) { .state-groups { grid-template-columns: 1fr; } }
.state-group {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 18px 20px;
}
.state-group h2 { margin: 0 0 10px; font-size: 1.05rem; }
.state-group .count { color: var(--ink-soft); font-weight: 400; font-size: .85rem; }
.state-links { list-style: none; margin: 0; padding: 0; columns: 2; }
.state-links li { margin-bottom: 6px; break-inside: avoid; }
.state-links a { color: var(--brand); text-decoration: none; font-size: .92rem; }
.state-links a:hover { text-decoration: underline; }
.state-links.az { columns: 4; }
@media (max-width: 720px) { .state-links.az { columns: 2; } }

.back-link { margin: 22px 0 8px; font-size: .92rem; }
.back-link a { color: var(--brand); }

/* Sources / provenance */
.sources {
  margin-top: 24px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 22px;
}
.sources h2 { margin: 0 0 6px; font-size: 1.15rem; }
.sources .fine { font-size: .85rem; color: var(--ink-soft); margin: 0 0 10px; }
.sources ul { margin: 0; padding-left: 1.2em; }
.sources li { margin-bottom: 6px; font-size: .92rem; }
.sources a { color: var(--brand); word-break: break-word; }

/* Home "browse by state" teaser */
.states-teaser {
  margin-top: 40px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px;
}
.states-teaser h2 { margin-top: 0; font-size: 1.4rem; }
.states-teaser p { color: var(--ink-soft); max-width: 75ch; }

/* ---------- Layout ---------- */
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 24px;
  align-items: start;
  margin-top: 24px;
}
/* Sticky sidebar — the trust / explainer cards follow as the long form scrolls. */
.sidebar { position: sticky; top: 16px; align-self: start; }
@media (max-width: 860px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar { order: 2; position: static; }
}

/* ---------- Calculator card ---------- */
.calculator {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}
fieldset {
  border: 0; padding: 0; margin: 0 0 20px;
}
legend {
  font-weight: 700; font-size: 1.05rem; padding: 0; margin-bottom: 12px;
  color: var(--ink);
}
.field { margin-bottom: 16px; }
.field > label {
  display: block; font-weight: 600; margin-bottom: 6px; font-size: .95rem;
}
.optional { font-weight: 400; color: var(--ink-soft); font-size: .85rem; }

input[type="number"], select {
  width: 100%; padding: 11px 12px; font-size: 1rem; font-family: inherit;
  color: var(--ink); background: #fff;
  border: 1px solid var(--line); border-radius: 10px; appearance: none;
}
input[type="number"]:focus, select:focus, input[type="range"]:focus-visible {
  outline: 3px solid rgba(31, 111, 235, .25); outline-offset: 1px;
  border-color: var(--brand);
}
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2351607a' d='M6 8 0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px;
}
.input-money { position: relative; }
.input-money span {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  color: var(--ink-soft); font-weight: 600;
}
.input-money input { padding-left: 26px; }

input[type="range"] { width: 100%; accent-color: var(--brand); }
output#fault-out { font-variant-numeric: tabular-nums; color: var(--brand); font-weight: 800; }

.hint { margin: 6px 0 0; font-size: .85rem; color: var(--ink-soft); }

.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.btn-primary, .btn-ghost {
  font: inherit; font-weight: 700; cursor: pointer; border-radius: 10px;
  padding: 12px 20px; border: 1px solid transparent; transition: background .15s, border-color .15s;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-ghost { background: #fff; color: var(--ink-soft); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink-soft); }

/* ---------- Stepped form (single page, human order) ---------- */
.form-intro { color: var(--ink-soft); margin: 0 0 18px; font-size: .95rem; }
fieldset.step { position: relative; }
fieldset.step legend { display: flex; align-items: center; gap: 9px; }
.step-n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; border-radius: 50%; background: var(--brand); color: #fff;
  font-size: .85rem; font-weight: 800; flex: none;
}
.role-group { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 520px) { .role-group { grid-template-columns: 1fr; } }
.role-opt {
  display: flex; align-items: flex-start; gap: 10px; cursor: pointer;
  border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; background: #fff;
  transition: border-color .15s, background .15s;
}
.role-opt:hover { border-color: var(--brand); }
.role-opt input { margin-top: 3px; accent-color: var(--brand); flex: none; }
.role-opt span { display: flex; flex-direction: column; }
.role-opt small { color: var(--ink-soft); font-size: .82rem; }
.role-opt:has(input:checked) { border-color: var(--brand); background: #f3f8ff; }

input[type="date"] {
  width: 100%; padding: 11px 12px; font-size: 1rem; font-family: inherit; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
}
input[type="date"]:focus { outline: 3px solid rgba(31,111,235,.25); border-color: var(--brand); }

.field > .field-label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .95rem; }

/* ---------- Custom calendar ---------- */
.calendar {
  border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: #fff;
  max-width: 360px;
}
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.cal-title { font-weight: 700; font-size: .98rem; }
.cal-nav {
  border: 1px solid var(--line); background: #fff; border-radius: 8px; width: 32px; height: 32px;
  font-size: 1.1rem; line-height: 1; cursor: pointer; color: var(--ink);
}
.cal-nav:hover:not([disabled]) { border-color: var(--brand); color: var(--brand); }
.cal-nav[disabled] { opacity: .35; cursor: not-allowed; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.cal-dow { margin-bottom: 4px; }
.cal-dowcell { text-align: center; font-size: .72rem; font-weight: 700; color: var(--ink-soft); padding: 4px 0; }
.cal-dowcell.sun { color: #d4332e; }
.cal-dowcell.sat { color: #1f6feb; }
.cal-cell {
  position: relative; aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center;
  border: 0; background: transparent; border-radius: 8px; font-size: .9rem; color: var(--ink);
  cursor: pointer; font-family: inherit; padding: 0;
}
button.cal-cell:hover { background: #eef3fb; }
.cal-cell.empty { cursor: default; }
.cal-cell.sun, .cal-cell.holiday { color: #d4332e; }
.cal-cell.sat { color: #1f6feb; }
.cal-cell.holiday { font-weight: 700; }
.cal-cell.today { outline: 2px solid var(--brand); outline-offset: -2px; }
.cal-cell.selected { background: var(--brand) !important; color: #fff !important; font-weight: 700; }
.cal-cell.disabled { color: #c4ccd8; cursor: not-allowed; }
.cal-dot {
  position: absolute; bottom: 5px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 4px; border-radius: 50%; background: #d4332e;
}
.cal-cell.selected .cal-dot { background: #fff; }
.cal-legend { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px; font-size: .72rem; color: var(--ink-soft); }
.cal-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 3px; vertical-align: middle; }
.cal-legend .lg-holiday { background: #d4332e; }
.cal-legend .lg-weekend { background: #1f6feb; }
.cal-legend .lg-disabled { background: #c4ccd8; }
.cal-selected { margin: 8px 0 0; font-size: .88rem; color: var(--ink-soft); }
.cal-selected.has-date { color: var(--accent); font-weight: 600; }

.advanced { margin-top: 4px; }
.advanced summary { cursor: pointer; color: var(--brand); font-size: .9rem; font-weight: 600; }
.advanced[open] summary { margin-bottom: 10px; }

/* ---------- Results ---------- */
.results { margin-top: 24px; }
.result-card {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; background: #fbfcfe;
}
.result-card.error {
  background: var(--warn-bg); border-color: var(--warn-line); color: var(--warn-ink);
}
.result-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.result-head h2 { margin: 0; font-size: 1.3rem; }

.badge {
  font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  padding: 3px 9px; border-radius: 999px;
}
.badge-info { background: var(--info-bg); color: var(--info-ink); }

.estimate-range {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 18px;
}
.estimate-col {
  text-align: center; padding: 16px 8px; border: 1px solid var(--line);
  border-radius: 12px; background: #fff;
}
.estimate-col.primary { border-color: var(--brand); background: #f3f8ff; }
.estimate-label {
  display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: .05em;
  color: var(--ink-soft); margin-bottom: 4px; font-weight: 700;
}
.estimate-amount {
  display: block; font-size: clamp(1.1rem, 3.5vw, 1.6rem); font-weight: 800;
  font-variant-numeric: tabular-nums; color: var(--ink);
}
.estimate-col.primary .estimate-amount { color: var(--brand-dark); }

.estimate-zero {
  background: var(--warn-bg); border: 1px solid var(--warn-line); color: var(--warn-ink);
  border-radius: 12px; padding: 16px 18px; margin-bottom: 18px;
}
.estimate-zero-amount { margin: 0 0 6px; font-size: 1.5rem; font-weight: 800; }
.estimate-zero p:last-child { margin: 0; }

.rule-box {
  background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--brand);
  border-radius: 10px; padding: 14px 16px; margin: 6px 0 20px;
}
.rule-box h3 { margin: 0 0 6px; font-size: 1.05rem; }
.rule-box p { margin: 0 0 8px; font-size: .95rem; color: var(--ink-soft); }
.rule-box p:last-child { margin-bottom: 0; }
.state-note {
  background: var(--info-bg); border-radius: 8px; padding: 8px 10px;
  font-size: .88rem !important; color: var(--info-ink) !important;
}

.breakdown { width: 100%; border-collapse: collapse; margin: 10px 0 6px; }
.breakdown th, .breakdown td {
  text-align: left; padding: 9px 4px; border-bottom: 1px solid var(--line); font-size: .95rem;
}
.breakdown td { text-align: right; font-variant-numeric: tabular-nums; }
.breakdown tr:last-child th, .breakdown tr:last-child td { border-bottom: 0; }

.sol-note { font-size: .9rem; color: var(--ink-soft); background: #fff;
  border: 1px dashed var(--line); border-radius: 8px; padding: 10px 12px; }
.micro-disclaimer { font-size: .82rem; color: var(--ink-soft); margin-bottom: 0; }

.cant-see {
  margin-top: 18px; background: #fff; border: 1px solid var(--line);
  border-left: 4px solid var(--accent); border-radius: 10px; padding: 14px 16px;
}
.cant-see h3 { margin: 0 0 8px; font-size: 1.05rem; }
.cant-see p { margin: 0 0 10px; font-size: .92rem; color: var(--ink-soft); }
.cant-see ul { margin: 0 0 10px; padding-left: 1.2em; }
.cant-see li { font-size: .92rem; color: var(--ink-soft); margin-bottom: 5px; }
.cant-see p:last-child { margin-bottom: 0; }

/* ---------- Case strength factors ---------- */
.strength-factors {
  margin-top: 18px; background: #fff; border: 1px solid var(--line);
  border-radius: 10px; padding: 14px 16px;
}
.strength-factors h3 { margin: 0 0 10px; font-size: 1.05rem; }
.strength-factors ul { margin: 0; padding: 0; list-style: none; }
.strength-factors li { font-size: .92rem; display: flex; gap: 8px; margin-bottom: 8px; }
.strength-factors li:last-child { margin-bottom: 0; }
.strength-icon { flex-shrink: 0; font-size: 1rem; line-height: 1.4; }
.strength-ok   .strength-icon { color: #2b7a3d; }
.strength-warn .strength-icon { color: #a05a00; }
.strength-info .strength-icon { color: var(--brand); }
.strength-ok   { color: var(--ink); }
.strength-warn { color: var(--ink); }
.strength-info { color: var(--ink); }

/* ---------- Deadline box ---------- */
.deadline-box { margin-top: 16px; border-radius: 10px; padding: 14px 16px; border: 1px solid var(--line); }
.deadline-box h3 { margin: 0 0 6px; font-size: 1.05rem; }
.deadline-box p { margin: 0 0 8px; font-size: .95rem; }
.deadline-box p:last-child { margin-bottom: 0; }
.deadline-box .fine { font-size: .82rem; color: var(--ink-soft); }
.deadline-box.ok { background: #f0f7f3; border-color: #cfe6da; }
.deadline-box.warn { background: var(--warn-bg); border-color: var(--warn-line); color: var(--warn-ink); }
.deadline-box.passed { background: #fdecec; border-color: #f3b4b4; color: var(--warn-ink); }
.deadline-box.tip { background: var(--info-bg); border-color: #cfe0fb; color: var(--info-ink); }

/* ---------- Free next steps ---------- */
.next-basic { margin-top: 18px; }
.next-basic h3 { font-size: 1.05rem; margin: 0 0 8px; }
.next-basic ul { margin: 0; padding-left: 1.2em; }
.next-basic li { font-size: .93rem; color: var(--ink-soft); margin-bottom: 6px; }

/* ---------- Full action plan ---------- */
.action-plan {
  margin-top: 18px; background: #fff; border: 1px solid var(--line);
  border-left: 4px solid var(--accent); border-radius: 10px; padding: 16px 18px;
}
.action-plan h3 { margin: 0 0 10px; font-size: 1.1rem; }
.action-plan ol { margin: 0 0 10px; padding-left: 1.3em; }
.action-plan li { font-size: .93rem; color: var(--ink-soft); margin-bottom: 9px; }
.action-plan li strong { color: var(--ink); }
.action-plan .fine { font-size: .82rem; color: var(--ink-soft); margin: 0; }

/* ---------- Sidebar / info ---------- */
.info-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); margin-top: 16px;
}
.info-card h2 { font-size: 1.05rem; margin: 0 0 10px; }
.info-card p { margin: 0; font-size: .9rem; color: var(--ink-soft); line-height: 1.55; }
.info-card p strong { color: var(--ink); }
.rule-list { margin: 0; padding-left: 18px; font-size: .9rem; color: var(--ink-soft); }
.rule-list li { margin-bottom: 8px; }
.rule-list strong { color: var(--ink); }

/* ---------- Explainer / FAQ ---------- */
.explainer { margin-top: 40px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.explainer h2 { font-size: 1.4rem; margin-top: 0; }
.explainer h2 + p, .explainer p { color: var(--ink-soft); max-width: 75ch; }
.explainer details {
  border: 1px solid var(--line); border-radius: 10px; padding: 0 14px; margin-bottom: 10px;
  background: #fbfcfe;
}
.explainer summary {
  cursor: pointer; font-weight: 600; padding: 12px 0; list-style-position: inside;
}
.explainer details[open] summary { border-bottom: 1px solid var(--line); }
.explainer details p { margin: 12px 0; font-size: .95rem; }

/* ---------- Disclaimer ---------- */
.disclaimer {
  margin-top: 28px; background: var(--warn-bg); border: 1px solid var(--warn-line);
  border-radius: var(--radius); padding: 22px;
}
.disclaimer h2 { margin-top: 0; font-size: 1.1rem; color: var(--warn-ink); }
.disclaimer p { margin: 0; font-size: .9rem; color: #6b2b2b; }

/* ---------- Ad slots (placeholders) ---------- */
.ad-slot {
  display: flex; align-items: center; justify-content: center;
  background: repeating-linear-gradient(45deg, #eef1f6, #eef1f6 10px, #e7ebf2 10px, #e7ebf2 20px);
  border: 1px dashed #c9d2e0; border-radius: 10px;
  color: #9aa6bb; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase;
  min-height: 90px; margin: 22px 0;
}
.ad-slot-tall { min-height: 600px; margin-top: 0; }
@media (max-width: 860px) { .ad-slot-tall { min-height: 120px; } }

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 48px; background: var(--surface); border-top: 1px solid var(--line);
  padding: 22px 0; color: var(--ink-soft); font-size: .88rem;
}
.site-footer .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.site-footer nav { display: flex; gap: 16px; flex-wrap: wrap; }
.site-footer nav a { color: var(--brand); text-decoration: none; }
.site-footer nav a:hover { text-decoration: underline; }
.site-footer p { margin: 0; }

/* ---------- Content / prose pages (About, Privacy, Contact, Disclaimer) ---------- */
.content-page { padding: 36px 0 8px; }
.prose {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: clamp(22px, 4vw, 40px); max-width: 820px; margin: 0 auto;
}
.prose h1 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); margin: 0 0 .3em; }
.prose h2 { font-size: 1.25rem; margin: 1.7em 0 .5em; }
.prose h3 { font-size: 1.05rem; margin: 1.3em 0 .4em; }
.prose p, .prose li { color: var(--ink-soft); }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose li { margin-bottom: 6px; }
.prose a { color: var(--brand); }
.prose .meta { font-size: .85rem; color: var(--ink-soft); margin: 0 0 1.5em; }
.prose address { font-style: normal; }
.prose .callout {
  background: var(--info-bg); border-radius: 10px; padding: 12px 16px; margin: 1.2em 0;
  font-size: .95rem; color: var(--info-ink);
}
.prose .callout.warn { background: var(--warn-bg); color: #6b2b2b; }

@media (max-width: 520px) {
  .estimate-range { grid-template-columns: 1fr; }
  .actions { flex-direction: column; }
  .btn-primary, .btn-ghost { width: 100%; }
}

/* ---- Reality check: what you might actually collect ---- */
.reality-check {
  margin: 22px 0; padding: 16px 18px; border-radius: var(--radius);
  background: var(--warn-bg); border: 1px solid var(--warn-line);
}
.reality-check h3 { margin: 0 0 .5em; font-size: 1.05rem; color: var(--warn-ink); }
.reality-check p { margin: .4em 0; color: #6b3a34; }
.reality-check .fine { font-size: .82rem; color: #8a5a52; }
.reality-check .approx { font-size: .82em; color: #9a6a62; font-style: italic; }

/* ---- Hidden recovery sources checklist ---- */
.recovery-sources {
  margin: 22px 0; padding: 18px 20px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
}
.recovery-sources h3 { margin: 0 0 .5em; font-size: 1.1rem; }
.recovery-sources > p { color: var(--ink-soft); margin: .4em 0 1em; }
.recovery-list { list-style: none; margin: 0; padding: 0; }
.recovery-list > li { border-top: 1px solid var(--line); }
.recovery-list > li:first-child { border-top: none; }
.recovery-list details { padding: 4px 0; }
.recovery-list summary {
  cursor: pointer; padding: 11px 4px; font-weight: 600; color: var(--ink);
  list-style: none; display: flex; align-items: center; gap: 8px;
}
.recovery-list summary::-webkit-details-marker { display: none; }
.recovery-list summary::before {
  content: "＋"; color: var(--accent); font-weight: 700; flex: 0 0 auto;
}
.recovery-list details[open] summary::before { content: "－"; }
.recovery-list details p { margin: .2em 0 .8em 26px; color: var(--ink-soft); font-size: .95rem; }
.recovery-list .caveat { font-size: .88rem; color: var(--ink-soft); opacity: .9; }
.recovery-list .src { font-size: .8rem; margin: .35em 0 .2em 26px; }
.recovery-list .src a { color: var(--brand); word-break: break-word; }
.recovery-sources .fine { font-size: .82rem; color: var(--ink-soft); margin-top: 1em; }

/* Settlement caption under the headline range + no-fault floor note */
.estimate-cap { font-size: .85rem; color: var(--ink-soft); margin: 8px 0 0; text-align: center; }
.nofault-note {
  background: var(--warn-bg); border: 1px solid var(--warn-line); border-radius: 10px;
  padding: 10px 14px; margin: 12px 0; font-size: .9rem; color: #6b3a34;
}
