/* AffidavitReady
   Calm, warm, and plain. Written for someone settling a parent's or spouse's
   affairs on a phone, often in a hard week: large type, generous tap targets,
   one clear action per screen, nothing that shouts. Mobile sizes are the
   defaults; desktop steps up at 640px and 960px. */

:root {
  --paper: #fbfaf7;        /* warm off-white page */
  --surface: #ffffff;
  --sand: #f4f1ea;         /* quiet section wash */
  --sand-2: #ebe6db;

  --ink: #1c1917;          /* stone-900 */
  --ink-2: #44403c;        /* stone-700 */
  --muted: #57534e;        /* stone-600, AA on paper */
  --faint: #78716c;        /* stone-500, decorative/large only */
  --line: rgb(28 25 23 / 0.09);
  --line-strong: rgb(28 25 23 / 0.17);

  --brand: #0d5c55;        /* deep teal */
  --brand-strong: #0a4641;
  --brand-soft: #e8f1ee;
  --brand-tint: #f2f7f5;

  --ok: #166534;  --ok-soft: #eef6ee;
  --warn: #8a4b0f; --warn-soft: #fbf3e4;
  --bad: #9f1d1d;  --bad-soft: #fbefed;

  --radius: 16px;
  --radius-sm: 10px;
  --gutter: 20px;
  --shadow-sm: 0 1px 2px rgb(28 25 23 / 0.05);
  --shadow: 0 1px 2px rgb(28 25 23 / 0.04), 0 8px 24px -8px rgb(28 25 23 / 0.10);
  --shadow-lg: 0 2px 4px rgb(28 25 23 / 0.04), 0 24px 48px -16px rgb(28 25 23 / 0.18);

  --font-sans: "InterVariable", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  /* Libre Caslon Text ships 400, 700, and 400 italic only: serif text uses 400. */
  --font-serif: "Libre Caslon Text", "Big Caslon", "Iowan Old Style", Georgia, serif;

  --select-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%2357534e'%3E%3Cpath fill-rule='evenodd' d='M5.22 8.22a.75.75 0 0 1 1.06 0L10 11.94l3.72-3.72a.75.75 0 1 1 1.06 1.06l-4.25 4.25a.75.75 0 0 1-1.06 0L5.22 9.28a.75.75 0 0 1 0-1.06Z' clip-rule='evenodd'/%3E%3C/svg%3E");
}

@font-face {
  font-family: "InterVariable";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("https://rsms.me/inter/font-files/InterVariable.woff2?v=4.1") format("woff2");
}

* { box-sizing: border-box; }

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 24px;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
@media (min-width: 640px) { body { font-size: 1rem; } }

main { flex: 1; }

a { color: var(--brand); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--brand-strong); }

:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

svg.icon { width: 20px; height: 20px; flex-shrink: 0; }

/* ---- layout ------------------------------------------------------------ */

.wrap-wide { max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }
/* Narrow pages: a 720px reading column on the same left edge as the logo. */
.column { max-width: 720px; }
.site-footer p { max-width: 72ch; }
@media (min-width: 640px) { :root { --gutter: 32px; } }

main { padding: 40px 0 80px; }
@media (min-width: 640px) { main { padding-top: 56px; } }

.section { padding-top: 64px; }
@media (min-width: 960px) { .section { padding-top: 96px; } }
.section-head { max-width: 40rem; margin-bottom: 28px; }
.section-head p { color: var(--muted); margin: 0; }

.stack > * + * { margin-top: 16px; }

/* ---- header & footer --------------------------------------------------- */

.site-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.site-header .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}
/* Wordmark: the headline serif, no icon. "Affidavit" upright in ink,
   "Ready" in the italic in brand teal. */
.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.28em;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.375rem;
  line-height: 1;
  letter-spacing: 0.005em;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.brand:hover { color: var(--ink); }
.brand-ready { font-style: italic; color: var(--brand); }
.header-link {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px;
  border-radius: 999px; border: 1px solid var(--line-strong);
  color: var(--ink); background: var(--surface);
  font-size: 0.9375rem; font-weight: 500; text-decoration: none;
}
.header-link:hover { color: var(--ink); border-color: var(--brand); }

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--sand);
  padding: 48px 0 56px;
  color: var(--muted);
  font-size: 0.9375rem;
}
@media (min-width: 640px) { .site-footer { font-size: 0.875rem; } }
.site-footer p { margin: 0 0 12px; max-width: 72ch; text-wrap: pretty; }
.site-footer strong { color: var(--ink-2); font-weight: 600; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 20px 0 16px; padding: 0; list-style: none; }
.footer-links a { color: var(--ink-2); text-decoration: none; }
.footer-links a:hover { color: var(--brand); text-decoration: underline; }

/* Focus mode (the quiz): minimal chrome so the question is the whole screen. */
.focus-mode .site-header { background: transparent; border-bottom: 0; }
.focus-mode main { padding: 8px 0 32px; }
.focus-mode .site-footer { background: transparent; border-top: 0; padding: 0 0 28px; }
.focus-mode .site-footer p { font-size: 0.8125rem; margin: 0; }

/* ---- type -------------------------------------------------------------- */

h1, h2, h3 { color: var(--ink); text-wrap: balance; }
h1, h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: -0.01em;
}
h1 { font-size: 2.25rem; line-height: 1.12; margin: 0 0 16px; max-width: 22ch; }
h1.small { font-size: 1.875rem; line-height: 1.2; max-width: 28ch; }
h2 { font-size: 1.75rem; line-height: 1.2; margin: 0 0 12px; }
h3 { font-size: 1.125rem; line-height: 1.4; margin: 0 0 8px; font-weight: 600; letter-spacing: -0.01em; }
@media (min-width: 640px) {
  h1 { font-size: 3rem; }
  h1.small { font-size: 2.25rem; }
  h2 { font-size: 2.125rem; }
}
@media (min-width: 960px) { .hero h1 { font-size: 3.5rem; } }
p { margin: 0 0 16px; text-wrap: pretty; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 0 0 16px; font-size: 0.875rem; font-weight: 500; color: var(--brand);
}
.lede { font-size: 1.1875rem; line-height: 1.6; color: var(--ink-2); max-width: 46ch; }
@media (min-width: 640px) { .lede { font-size: 1.1875rem; } }

.muted, .hint, .fine-print { color: var(--muted); }
.hint, .fine-print { font-size: 0.9375rem; }
@media (min-width: 640px) { .hint, .fine-print { font-size: 0.875rem; } }

.num { font-variant-numeric: tabular-nums; }

/* ---- buttons ----------------------------------------------------------- */

.btn, .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 12px 24px;
  border-radius: 999px;
  font: inherit;
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background-color 120ms, border-color 120ms, transform 120ms;
}
.btn:active, .btn-secondary:active { transform: translateY(1px); }
@media (min-width: 640px) { .btn, .btn-secondary { min-height: 48px; font-size: 1rem; } }
.btn { background: var(--brand); color: #fff; border: 1px solid var(--brand); box-shadow: 0 1px 2px rgb(13 92 85 / 0.25); }
.btn:hover { background: var(--brand-strong); border-color: var(--brand-strong); color: #fff; }
.btn-secondary { background: var(--surface); color: var(--ink); border: 1px solid var(--line-strong); }
.btn-secondary:hover { border-color: var(--ink-2); color: var(--ink); }
.btn-block { width: 100%; }
@media (min-width: 640px) { .btn-block { width: auto; min-width: 14rem; } }
.btn .icon { width: 18px; height: 18px; }

.link-quiet { color: var(--ink-2); font-weight: 500; }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 32px; }

/* ---- forms ------------------------------------------------------------- */

.field { margin-bottom: 20px; }
.field label, .field-label { display: block; margin-bottom: 8px; font-weight: 500; color: var(--ink); }
.field .hint { margin: 8px 0 0; }

input[type="text"], input[type="email"], input[type="tel"], input[type="date"],
input[type="number"], input[type="search"], select, textarea {
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  font: inherit;
  font-size: 1.0625rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  transition: border-color 120ms, box-shadow 120ms;
}
input::placeholder, textarea::placeholder { color: var(--faint); }
input:hover, select:hover, textarea:hover { border-color: rgb(28 25 23 / 0.3); }
@media (min-width: 640px) {
  input[type="text"], input[type="email"], input[type="tel"], input[type="date"],
  input[type="number"], input[type="search"], select, textarea { font-size: 1rem; min-height: 48px; }
}
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgb(13 92 85 / 0.14);
}
select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 44px;
  background: var(--surface) var(--select-arrow) no-repeat right 14px center / 20px 20px;
  cursor: pointer;
}
select:invalid, select option[value=""] { color: var(--faint); }
select option { color: var(--ink); }
input[type="date"] { appearance: none; -webkit-appearance: none; }
input[type="date"]::-webkit-date-and-time-value { text-align: left; }
textarea { min-height: 120px; line-height: 1.5; }
.input-short { max-width: 18rem; }
.input-tiny { max-width: 9rem; }

.money-input { position: relative; max-width: 18rem; }
.money-input span {
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  color: var(--muted); pointer-events: none; font-weight: 500;
}
.money-input input { padding-left: 32px; font-variant-numeric: tabular-nums; }

fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; margin-bottom: 10px; font-weight: 500; color: var(--ink-2); }

/* Radio and checkbox rows: large tap targets, CSS-only checked state. */
.radio-stack { display: grid; gap: 10px; }
.radio-stack label, .check-row {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 56px;
  padding: 14px 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  font-weight: 450;
  line-height: 1.4;
  transition: border-color 120ms, background-color 120ms, box-shadow 120ms;
}
.check-row { align-items: flex-start; }
.radio-stack label:hover, .check-row:hover { border-color: var(--brand); }
.radio-stack label:has(input:checked), .check-row:has(input:checked) {
  border-color: var(--brand);
  background: var(--brand-tint);
  box-shadow: 0 0 0 1px var(--brand);
}
.radio-stack input, .check-row input {
  flex-shrink: 0;
  appearance: none;
  width: 22px;
  height: 22px;
  margin: 0;
  border: 1.5px solid #a8a29e;
  background: var(--surface);
  cursor: pointer;
}
.check-row input { margin-top: 1px; }
.radio-stack input[type="radio"] { border-radius: 50%; }
.radio-stack input[type="radio"]:checked {
  border-color: var(--brand);
  background: var(--brand);
  box-shadow: inset 0 0 0 5px var(--surface);
}
.check-row input[type="checkbox"] { border-radius: 6px; }
.check-row input[type="checkbox"]:checked {
  border-color: var(--brand);
  background: var(--brand) url("data:image/svg+xml,%3Csvg viewBox='0 0 14 14' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 8L6 11L11 3.5' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
}
.radio-stack input:focus-visible, .check-row input:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.radio-stack label:has(input:focus-visible) { box-shadow: 0 0 0 4px rgb(13 92 85 / 0.14); }
@media (min-width: 640px) {
  .radio-stack label, .check-row { min-height: 52px; padding: 12px 16px; }
  .radio-stack input, .check-row input { width: 20px; height: 20px; }
}
@media (forced-colors: active) {
  .radio-stack input, .check-row input { appearance: auto; }
}

/* ---- quiz -------------------------------------------------------------- */

.quiz { margin-top: 32px; }
.question { padding: 28px 0; border-top: 1px solid var(--line); }
.question:first-of-type { border-top: 0; padding-top: 8px; }
.question > p:first-of-type strong { font-weight: 600; font-size: 1.1875rem; letter-spacing: -0.01em; line-height: 1.35; }
.question-number {
  display: block;
  margin-bottom: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--brand);
  font-variant-numeric: tabular-nums;
}
.question .hint { margin-bottom: 18px; }
.value-fields { display: grid; gap: 24px; }
.value-fields .field { margin: 0; }
.range-fallback legend { font-size: 0.9375rem; color: var(--muted); }
.quiz-submit { padding-top: 28px; border-top: 1px solid var(--line); }

/* One question per screen (progressive enhancement: without JavaScript the
   whole quiz shows as one page). quiz_steps_controller adds .is-stepping. */
.quiz-progress { display: none; }
.is-stepping .quiz-progress {
  display: block;
  position: sticky; top: 0; z-index: 5;
  padding: 12px 0 10px;
  background: var(--paper);
}
.quiz-progress-track { height: 6px; border-radius: 999px; background: var(--sand-2); overflow: hidden; }
.quiz-progress-bar { height: 100%; width: 0; border-radius: inherit; background: var(--brand); transition: width 300ms ease; }
.quiz-progress-label { display: block; margin-top: 8px; font-size: 0.8125rem; color: var(--muted); font-variant-numeric: tabular-nums; }

.is-stepping .quiz { margin-top: 0; }
.is-stepping .question,
.is-stepping .question:first-of-type {
  border: 0;
  padding: 24px 0 0;
  display: flex;
  flex-direction: column;
  min-height: calc(100dvh - 210px);
  animation: step-in 260ms ease both;
}
.is-stepping .question[hidden] { display: none; }
.is-stepping .question-number { display: none; }
.is-stepping .question > p:first-of-type { margin-bottom: 12px; }
.is-stepping .question > p:first-of-type strong {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.75rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
@media (min-width: 640px) {
  .is-stepping .question > p:first-of-type strong { font-size: 2.125rem; }
  .is-stepping .question { min-height: 0; padding-top: 40px; }
}
.is-stepping .question > p:first-of-type:focus { outline: none; }
.is-stepping .quiz-intro[hidden] { display: none; }
.is-stepping .quiz-submit { padding: 0; border: 0; }
.is-stepping .quiz-submit .fine-print { margin-top: 16px; }

.step-nav {
  margin-top: auto;
  position: sticky; bottom: 0;
  display: flex; align-items: center; gap: 12px;
  padding: 24px 0 calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(to bottom, rgb(251 250 247 / 0), var(--paper) 28%);
}
.step-nav .btn, .step-nav .quiz-submit { flex: 1; }
.step-nav .quiz-submit .btn { width: 100%; }
@media (min-width: 640px) {
  .step-nav { position: static; margin-top: 32px; padding: 0; background: none; }
  .step-nav .btn, .step-nav .quiz-submit { flex: 0 1 auto; }
  .step-nav .quiz-submit .btn { width: auto; }
}
.step-back {
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  min-height: 52px; min-width: 52px; padding: 0 14px;
  border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface);
  color: var(--ink-2); font: inherit; font-weight: 500; cursor: pointer;
}
.step-back:hover { border-color: var(--ink-2); }
.step-back .label { display: none; }
@media (min-width: 640px) { .step-back { min-height: 48px; } .step-back .label { display: inline; } }
.step-error { margin: 14px 0 0; color: var(--bad); font-weight: 500; font-size: 0.9375rem; }
.step-error:empty { display: none; }
.step-start { margin-top: 28px; }
.on-intro .quiz-progress { display: none; }
.on-intro .quiz-intro { padding-top: 24px; }
@media (min-width: 640px) { .on-intro .quiz-intro { padding-top: 8vh; } .is-stepping .question { padding-top: 6vh; } }
.is-stepping .question > .fine-print { margin-top: 20px; }
@media (max-width: 639px) { .is-stepping .question > .fine-print { order: 9; } }

@keyframes step-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .is-stepping .question { animation: none; }
  .quiz-progress-bar { transition: none; }
}

/* ---- surfaces ---------------------------------------------------------- */

.panel {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
@media (min-width: 640px) { .panel { padding: 32px 36px; } }
.panel > :last-child { margin-bottom: 0; }

.panel-ok   { background: var(--ok-soft); border-color: rgb(22 101 52 / 0.14); box-shadow: none; }
.panel-warn { background: var(--warn-soft); border-color: rgb(138 75 15 / 0.14); box-shadow: none; }
.panel-bad  { background: var(--bad-soft); border-color: rgb(159 29 29 / 0.12); box-shadow: none; }
.panel-brand { background: var(--brand-soft); border-color: rgb(13 92 85 / 0.12); box-shadow: none; }

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 4px 12px 4px 10px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.7);
  font-size: 0.875rem;
  font-weight: 600;
}
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.panel-ok .status { color: var(--ok); }
.panel-warn .status { color: var(--warn); }
.panel-bad .status { color: var(--bad); }

.flash { padding: 14px 18px; border-radius: var(--radius-sm); margin: 0 0 24px; }
.flash.notice { background: var(--ok-soft); color: var(--ok); }
.flash.alert { background: var(--bad-soft); color: var(--bad); }
.flash ul { margin: 6px 0 0; padding-left: 20px; }

.callout {
  padding: 16px 20px;
  border-left: 3px solid var(--brand);
  background: var(--brand-tint);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 20px 0;
}
.callout > :last-child { margin-bottom: 0; }

/* ---- lists ------------------------------------------------------------- */

.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.steps li {
  counter-increment: step; position: relative;
  padding: 20px 20px 20px 68px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.steps li::before {
  content: counter(step);
  position: absolute; left: 20px; top: 20px;
  width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand-strong);
  font-size: 0.9375rem; font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.steps strong { display: block; font-weight: 600; color: var(--ink); margin-bottom: 2px; }
.steps li { color: var(--ink-2); }
@media (min-width: 960px) {
  .steps.steps-grid { grid-template-columns: repeat(4, 1fr); }
  .steps.steps-grid li { padding: 72px 24px 24px; }
  .steps.steps-grid li::before { left: 24px; top: 24px; }
}

.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checklist li { position: relative; padding-left: 32px; }
.checklist li::before {
  content: "";
  position: absolute; left: 0; top: 0.2em;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--brand-soft) url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' fill='%230d5c55' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' d='M12.416 3.376a.75.75 0 0 1 .208 1.04l-5 7.5a.75.75 0 0 1-1.154.114l-3-3a.75.75 0 0 1 1.06-1.06l2.353 2.353 4.493-6.74a.75.75 0 0 1 1.04-.207Z' clip-rule='evenodd'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.checklist.checklist-stop li::before {
  background: var(--sand-2) url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' fill='%2357534e' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5.28 4.22a.75.75 0 0 0-1.06 1.06L6.94 8l-2.72 2.72a.75.75 0 1 0 1.06 1.06L8 9.06l2.72 2.72a.75.75 0 1 0 1.06-1.06L9.06 8l2.72-2.72a.75.75 0 0 0-1.06-1.06L8 6.94 5.28 4.22Z'/%3E%3C/svg%3E") center / 14px no-repeat;
}

.features { display: grid; gap: 16px; margin: 0; }
@media (min-width: 640px) { .features { grid-template-columns: 1fr 1fr; } }
.features > div {
  padding: 24px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.features dt { font-weight: 600; color: var(--ink); }
.features dd { margin: 6px 0 0; color: var(--muted); }

.summary { margin: 0; display: grid; gap: 0; }
.summary div { display: grid; gap: 2px; padding: 12px 0; border-top: 1px solid var(--line); }
.summary div:first-child { border-top: 0; padding-top: 0; }
@media (min-width: 640px) { .summary div { grid-template-columns: 14rem 1fr; gap: 16px; } }
.summary dt { font-weight: 500; color: var(--ink); }
.summary dd { margin: 0; color: var(--ink-2); }

/* ---- landing ----------------------------------------------------------- */

.hero { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .hero { grid-template-columns: 1.15fr 0.85fr; gap: 64px; padding-top: 16px; } }
.hero h1 { max-width: 16ch; }
.hero h1 em { font-style: normal; }

.trust-row { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 28px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 0.9375rem; }
.trust-row li { display: inline-flex; align-items: center; gap: 8px; }
.trust-row .icon { width: 18px; height: 18px; color: var(--brand); }

/* Hero photo: Romain Dancre on Unsplash (Unsplash License). Decorative. */
.hero-photo {
  max-width: 440px; width: 100%; margin: 0 auto;
  aspect-ratio: 4 / 5;
  border-radius: 20px;
  overflow: hidden;
  background: var(--sand);
  box-shadow: 0 1px 2px rgb(28 25 23 / 0.06), 0 24px 48px -20px rgb(28 25 23 / 0.35);
}
.hero-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 959px) { .hero-photo { aspect-ratio: 4 / 3; max-width: none; } .hero-photo img { object-position: 50% 45%; } }

.band {
  margin-top: 64px;
  padding: 20px 0;
  border-block: 1px solid var(--line);
  display: grid; gap: 16px;
}
@media (min-width: 640px) { .band { grid-template-columns: repeat(3, 1fr); gap: 32px; } }
.band div { display: flex; gap: 12px; align-items: flex-start; }
.band .icon { color: var(--brand); margin-top: 3px; }
.band strong { display: block; font-weight: 600; color: var(--ink); }
.band span { color: var(--muted); font-size: 0.9375rem; }

/* State picker: one searchable list, shared by the home page and /quiz/new. */
.state-picker {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.state-search { position: relative; padding: 16px; border-bottom: 1px solid var(--line); background: var(--surface); }
.state-search .icon { position: absolute; left: 32px; top: 50%; transform: translateY(-50%); color: var(--faint); pointer-events: none; }
.state-search input { padding-left: 48px; box-shadow: none; background: var(--paper); }
.state-list {
  list-style: none; margin: 0; padding: 8px;
  display: grid; grid-template-columns: 1fr;
  max-height: 26rem; overflow-y: auto; overscroll-behavior: contain;
}
@media (min-width: 640px) { .state-list { grid-template-columns: repeat(2, 1fr); column-gap: 8px; max-height: none; overflow: visible; } }
@media (min-width: 960px) { .state-list { grid-template-columns: repeat(3, 1fr); } }
.state-list li[hidden] { display: none; }
.state-row {
  display: flex; align-items: center; gap: 12px;
  min-height: 56px; padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--ink); text-decoration: none;
}
.state-row:hover { background: var(--brand-tint); color: var(--ink); }
.state-row:hover .chev { color: var(--brand); transform: translateX(2px); }
.state-row .abbr {
  width: 40px; height: 40px; flex-shrink: 0; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--sand); color: var(--ink-2);
  font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.02em;
}
.state-row.is-available .abbr { background: var(--brand-soft); color: var(--brand-strong); }
.state-row .text { flex: 1; min-width: 0; display: grid; line-height: 1.3; }
.state-row .name { font-weight: 550; }
.state-row .meta { font-size: 0.875rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.state-row .chev { width: 18px; height: 18px; color: var(--faint); transition: transform 120ms, color 120ms; }
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 2px 8px; border-radius: 999px;
  background: var(--brand-soft); color: var(--brand-strong);
  font-size: 0.75rem; font-weight: 600; white-space: nowrap;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.state-row .name .badge { margin-left: 8px; vertical-align: 2px; }
.state-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; padding: 14px 20px; border-top: 1px solid var(--line); background: var(--paper); font-size: 0.875rem; color: var(--muted); }
.state-empty { padding: 24px 20px; margin: 0; color: var(--muted); }

.price-card { display: grid; gap: 20px; align-items: center; }
@media (min-width: 640px) { .price-card { grid-template-columns: auto 1fr; gap: 32px; } }
.price-block { display: flex; align-items: baseline; gap: 10px; margin: 8px 0 4px; }
.price { font-family: var(--font-serif); font-size: 3.25rem; font-weight: 400; line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.price-note { color: var(--muted); }

.split { display: grid; gap: 32px; }
@media (min-width: 960px) { .split { grid-template-columns: 0.9fr 1.1fr; gap: 64px; } }

.faq { margin: 0; display: grid; gap: 12px; }
.faq details {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 20px; font-weight: 600; min-height: 56px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 20px; height: 20px; flex-shrink: 0; background: var(--select-arrow) center / 20px no-repeat; transition: transform 160ms; }
.faq details[open] summary::after { transform: rotate(180deg); }
.faq details > p { margin: 0; padding: 0 20px 20px; color: var(--ink-2); }

.cta-band {
  margin-top: 96px; padding: 40px 24px; border-radius: 24px;
  background: var(--brand); color: #e6f0ed; text-align: center;
}
@media (min-width: 640px) { .cta-band { padding: 56px 48px; } }
.cta-band h2 { color: #fff; margin-inline: auto; max-width: 22ch; }
.cta-band p { max-width: 46ch; margin: 0 auto 28px; }
.cta-band .btn { background: #fff; color: var(--brand-strong); border-color: #fff; }
.cta-band .btn:hover { background: #eef5f3; color: var(--brand-strong); }

/* ---- order flow -------------------------------------------------------- */

.form-section { padding: 32px 0 8px; border-top: 1px solid var(--line); }
.form-section:first-of-type { border-top: 0; padding-top: 8px; }
.form-section h2 { font-family: var(--font-sans); font-size: 1.25rem; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 16px; }

.field-row { display: grid; gap: 0 16px; }
@media (min-width: 640px) {
  .field-row.cols-2 { grid-template-columns: 1fr 1fr; }
  .field-row.cols-3 { grid-template-columns: 2fr 1fr 1fr; }
}

.property-row { padding: 16px 0; border-top: 1px solid var(--line); }
.property-row:first-child { border-top: 0; padding-top: 0; }
@media (min-width: 640px) {
  .property-row { display: grid; grid-template-columns: 2fr 1fr 1.5fr; gap: 12px; padding: 8px 0; border: 0; }
  .property-row .field { margin: 0; }
}

table.review { width: 100%; border-collapse: collapse; margin: 8px 0 24px; }
table.review th, table.review td { padding: 12px 0; text-align: left; vertical-align: top; border-top: 1px solid var(--line); }
table.review tr:first-child th, table.review tr:first-child td { border-top: 0; }
table.review th { width: 40%; padding-right: 16px; font-weight: 500; color: var(--muted); }
table.review td { color: var(--ink); }
table.review td.num, table.review th.num { text-align: right; font-variant-numeric: tabular-nums; }
table.review tr.total th, table.review tr.total td { color: var(--ink); font-weight: 600; border-top: 1px solid var(--line-strong); }

.pay-box { margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--line); }

/* ---- prose (rendered markdown, legal pages) ---------------------------- */

.prose { max-width: 68ch; font-size: 1.0625rem; line-height: 1.75; color: var(--ink-2); }
@media (min-width: 640px) { .prose { font-size: 1rem; } }
.prose > * + * { margin-top: 1em; }
.prose h1 { color: var(--ink); }
.prose h2 { font-size: 1.625rem; margin-top: 2em; margin-bottom: 0.5em; }
.prose h3 { font-size: 1.125rem; margin-top: 1.8em; margin-bottom: 0.4em; }
.prose p, .prose ul, .prose ol { margin-top: 0; margin-bottom: 1em; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: 0.35em; }
.prose li::marker { color: var(--faint); }
.prose a { color: var(--brand); font-weight: 500; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.875em; padding: 0.1em 0.35em; border-radius: 4px; background: var(--sand); color: var(--ink); }
.prose pre { overflow-x: auto; padding: 16px; border-radius: var(--radius-sm); background: var(--sand); font-size: 0.875rem; }
.prose blockquote { margin-left: 0; padding-left: 16px; border-left: 3px solid var(--line-strong); color: var(--muted); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.5em 0; }
.prose input[type="checkbox"] { width: auto; min-height: 0; margin-right: 6px; accent-color: var(--brand); box-shadow: none; }
.prose ul:has(input[type="checkbox"]) { list-style: none; padding-left: 0.2em; }

/* ---- plain-English definitions ----------------------------------------- */

.def { position: relative; border-bottom: 1px dotted var(--brand); cursor: help; }
.def .def-tip {
  display: none;
  position: absolute;
  left: 0;
  bottom: calc(100% + 8px);
  z-index: 50;
  width: min(280px, 80vw);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: #fafaf9;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 400;
  font-style: normal;
  line-height: 1.5;
  letter-spacing: 0;
  text-align: left;
  white-space: normal;
  box-shadow: 0 8px 24px rgb(0 0 0 / 0.18);
}
.def:hover .def-tip, .def:focus .def-tip { display: block; }
.def:focus { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 2px; }

.glossary-list { margin: 0; }
.glossary-list div { padding: 16px 0; border-top: 1px solid var(--line); }
.glossary-list div:first-child { border-top: 0; }
.glossary-list dt { font-weight: 600; color: var(--ink); }
.glossary-list dd { margin: 4px 0 0; color: var(--ink-2); }

.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;
}
.sr-only:focus { position: static; width: auto; height: auto; margin: 0; clip: auto; overflow: visible; }

/* ---- what you get ------------------------------------------------------ */

.get-grid { display: grid; gap: 20px; align-items: start; }
@media (min-width: 960px) { .get-grid { grid-template-columns: 1.55fr 1fr; gap: 24px; } }

.contents-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden;
}
.contents { list-style: none; margin: 0; padding: 8px 24px; }
.contents li { display: flex; gap: 16px; align-items: flex-start; padding: 16px 0; }
.contents li + li { border-top: 1px solid var(--line); }
.contents-icon {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--sand); color: var(--brand);
}
.line-icon { width: 22px; height: 22px; }
.contents strong { display: block; color: var(--ink); font-weight: 600; }
.contents span:not(.contents-icon) { display: block; margin-top: 2px; color: var(--muted); text-wrap: pretty; }

.price-panel {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: 28px;
}
@media (min-width: 960px) { .price-panel { position: sticky; top: 24px; } }
.price-panel .price-block { margin-top: 0; }
.price-facts { list-style: none; margin: 16px 0 24px; padding: 0; display: grid; gap: 10px; color: var(--ink-2); }
.price-facts li { display: flex; gap: 10px; align-items: center; }
.price-facts .icon { width: 18px; height: 18px; color: var(--brand); flex-shrink: 0; }
.guarantee-note { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 0.875rem; color: var(--muted); }
.guarantee-note p { margin: 0 0 6px; }
.guarantee-note strong { color: var(--ink); }
.guarantee-note .icon { width: 18px; height: 18px; color: var(--brand); vertical-align: -3px; margin-right: 4px; }
.price-panel .btn-block { width: 100%; min-width: 0; }

/* Illinois order form: one card per person. */
.person-card { padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); margin-bottom: 12px; }
.check-row-group { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 0.9375rem; color: var(--ink-2); }
.check-row-group label { display: inline-flex; gap: 8px; align-items: center; }
