:root {
  --ink: #071A24;
  --muted: #5E6B6E;
  --soft: #F8F5EE;
  --paper: #FFFDF7;
  --line: rgba(7, 26, 36, .14);
  --teal-950: #062A2F;
  --teal-900: #0B4F46;
  --teal-700: #0E7C6B;
  --teal-500: #1FAE95;
  --ocean-500: #0477C9;
  --teal-100: #DDF1FA;
  --wave-50: #EEF8FC;
  --sand: #F8F5EE;
  --foam: #FFFFFF;
  --amber: #FFF3DD;
  --amber-ink: #6D4306;
  --rose: #FAECE7;
  --rose-ink: #713219;
  --blue: #E8F3FA;
  --blue-ink: #0C447C;
  --shadow: 0 18px 50px rgba(7, 26, 36, .08);
  --radius: 18px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 14%, rgba(4,119,201,.075), transparent 28%),
    radial-gradient(circle at 92% 18%, rgba(14,124,107,.075), transparent 30%),
    linear-gradient(180deg, var(--paper), var(--soft));
  line-height: 1.55;
}
body::before {
  content: "";
  position: fixed;
  inset: auto 0 0 0;
  height: 38vh;
  pointer-events: none;
  opacity: .22;
  z-index: -1;
  background:
    radial-gradient(80% 55% at 50% 100%, rgba(4,119,201,.11), transparent 68%),
    repeating-radial-gradient(ellipse at 50% 100%, rgba(4,119,201,.13) 0 1px, transparent 1px 22px);
}
a { color: inherit; }
.skip-link {
  position: absolute;
  left: 1rem;
  top: .75rem;
  z-index: 100;
  transform: translateY(-160%);
  background: var(--ink);
  color: white;
  padding: .65rem .9rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 900;
}
.skip-link:focus { transform: translateY(0); }
code { background: rgba(7,63,53,.08); padding: .12rem .35rem; border-radius: 8px; }
button, select, input { font: inherit; }
.site-header {
  min-height: 72px;
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .55rem clamp(1rem, 3vw, 1.75rem);
  background: rgba(255, 253, 247, .94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.pa-brand { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--ink); font-weight: 900; letter-spacing: -.03em; }
.pa-brand-mark { width: 2.5rem; height: 2.5rem; flex: 0 0 auto; display: block; }
.pa-brand-wave { fill: var(--ocean-500); }
.pa-brand-word { font-size: 1.35rem; line-height: 1; }
.hero-brand-mark { width: 100%; height: 100%; filter: drop-shadow(0 20px 32px rgba(4,119,201,.13)); }
.header-actions { display: inline-flex; align-items: center; gap: .7rem; }
.header-pill { font-size: .76rem; color: var(--muted); border: 1px solid var(--line); background: rgba(255,255,255,.7); padding: .35rem .7rem; border-radius: 999px; }
.header-cta { min-height: 38px; display: inline-flex; align-items: center; justify-content: center; padding: .48rem .78rem; border-radius: 999px; background: var(--teal-900); color: #eafff6; text-decoration: none; font-size: .82rem; font-weight: 900; }
.header-cta:hover { background: var(--teal-700); }
.header-privacy-btn {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.72);
  color: var(--ink);
  padding: .48rem .78rem;
  font-size: .82rem;
  font-weight: 900;
  cursor: pointer;
}
.header-privacy-btn:hover { background: white; border-color: rgba(7,63,53,.25); }
@media (max-width: 720px) {
  .header-pill { display: none; }
  .header-privacy-btn { padding: .43rem .64rem; font-size: .78rem; }
}
.hero { position: relative; overflow: hidden; padding: clamp(2.25rem, 6vw, 4.25rem) 1rem 2.25rem; border-bottom: 1px solid var(--line); background: radial-gradient(circle at 80% 12%, rgba(4,119,201,.13), transparent 35%), radial-gradient(circle at 18% 18%, rgba(14,124,107,.09), transparent 30%), linear-gradient(180deg, #fffdf7, #f8f5ee); }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 74px; pointer-events: none; opacity: .18; background: repeating-radial-gradient(ellipse at 50% 100%, rgba(4,119,201,.34) 0 1px, transparent 1px 18px); }
.hero-inner, .container { width: min(1060px, calc(100% - 2rem)); margin: 0 auto; }
.hero-split { display: grid; grid-template-columns: minmax(0, 1.07fr) minmax(280px, .83fr); align-items: center; gap: clamp(1.5rem, 5vw, 3rem); }
.hero-copy-block { text-align: left; }
.hero-logo-card { position: relative; isolation: isolate; display: grid; place-items: center; background: rgba(255,255,255,.66); border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--shadow); padding: clamp(1rem, 3vw, 1.5rem); }
.hero-logo-card::before { content: ""; position: absolute; inset: 12px; z-index: -1; border-radius: 22px; background: linear-gradient(180deg, transparent 0 62%, rgba(4,119,201,.10) 62% 100%); }
.hero-logo-lockup { display: grid; justify-items: center; gap: .45rem; text-align: center; }
.hero-mark { width: min(180px, 42vw); aspect-ratio: 1; display: inline-grid; place-items: center; color: var(--ink); }
.hero-logo-lockup strong { font-size: clamp(2rem, 5vw, 3.4rem); line-height: .95; letter-spacing: -.06em; font-weight: 900; }
.hero-logo-lockup span:not(.hero-mark) { color: var(--muted); font-weight: 800; }
.eyebrow { margin: 0 0 .65rem; text-transform: uppercase; letter-spacing: .09em; color: var(--teal-700); font-size: .76rem; font-weight: 850; }
h1, h2, h3, h4, p { margin-top: 0; }
h1 { margin-bottom: 1rem; font-size: clamp(2.4rem, 7vw, 4.85rem); line-height: .96; letter-spacing: -.07em; }
h2 { font-size: clamp(1.55rem, 4vw, 2.2rem); line-height: 1.08; letter-spacing: -.045em; margin-bottom: .65rem; }
h3 { line-height: 1.15; letter-spacing: -.025em; margin-bottom: .65rem; }
h4 { margin-bottom: .22rem; }
.hero-copy { font-size: clamp(1.02rem, 2vw, 1.2rem); color: var(--muted); max-width: 650px; margin: 0 0 1.35rem; }
.hero-actions, .action-row { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; align-items: center; }
.hero-actions { justify-content: flex-start; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: .72rem 1rem; border: 1px solid transparent; border-radius: 12px; font-weight: 800; font-size: .95rem; text-decoration: none; cursor: pointer; transition: transform .14s ease, background .14s ease, border-color .14s ease; }
.btn:hover { transform: translateY(-1px); }
.primary { background: var(--teal-900); color: #eafff6; }
.primary:hover { background: var(--teal-700); }
.ghost { background: rgba(255,255,255,.72); border-color: var(--line); color: var(--ink); }
.ghost:hover { background: white; border-color: rgba(7,63,53,.25); }
.wide { width: 100%; }
.privacy-note, .muted { color: var(--muted); }
.privacy-note { margin-top: 1rem; font-size: .88rem; }
.source-mini-link { color: var(--teal-700); font-weight: 900; text-decoration-thickness: .08em; text-underline-offset: .18em; }
.tiny { font-size: .78rem; color: var(--muted); }
.trust-strip { width: min(1060px, calc(100% - 2rem)); margin: 1rem auto 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
.trust-strip > div { position: relative; overflow: hidden; background: rgba(255,255,255,.74); border: 1px solid var(--line); border-radius: 16px; padding: 1rem; }
.trust-strip > div::after { content: ""; position: absolute; left: 1rem; right: 1rem; bottom: .55rem; height: 1px; background: linear-gradient(90deg, transparent, rgba(4,119,201,.28), transparent); opacity: .7; }
.trust-strip strong { display: block; }
.trust-strip span { display: block; color: var(--muted); font-size: .9rem; }
.section { padding: 3.5rem 0 0; }
.priority-start { padding-top: 2.7rem; }
.compact-heading { max-width: 820px; }
.section-heading { max-width: 740px; margin-bottom: 1.25rem; }
.card { background: rgba(255,255,255,.84); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(1rem, 3vw, 1.45rem); }
.facts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: .75rem; }
.fact-card { min-height: 130px; background: white; border: 1px solid var(--line); border-radius: 16px; padding: 1rem; }
.fact-card .value { font-size: 1.55rem; font-weight: 900; letter-spacing: -.05em; color: var(--teal-900); margin-bottom: .25rem; }
.fact-card .label { font-size: .9rem; color: var(--muted); }
.source-details { margin-top: .9rem; border: 1px solid var(--line); border-radius: 14px; padding: .85rem 1rem; background: rgba(255,255,255,.60); }
.source-details summary { cursor: pointer; font-weight: 800; }
.source-details a { color: var(--teal-700); }
.source-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-top: 1rem; }
.wizard { display: grid; gap: 1.15rem; }
.field-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
label span, legend { display: block; font-weight: 850; margin-bottom: .45rem; }
select { width: 100%; min-height: 44px; border: 1px solid var(--line); background: white; border-radius: 12px; padding: .66rem .75rem; color: var(--ink); }
.county-picker-field { display: grid; gap: .65rem; }
.county-helper-text { margin: -.2rem 0 0; color: var(--muted); font-size: .9rem; line-height: 1.4; }
.county-shortcuts { display: flex; flex-wrap: wrap; gap: .45rem; }
.county-shortcut { min-height: 38px; border: 1px solid rgba(4,119,201,.28); background: var(--teal-100); color: var(--teal-900); border-radius: 999px; padding: .45rem .7rem; font-size: .82rem; font-weight: 850; cursor: pointer; }
.county-shortcut:hover { transform: translateY(-1px); }
.county-shortcut.statewide { background: rgba(255,255,255,.82); }
fieldset { border: 0; padding: 0; margin: 0; }
.choice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
.choice-grid.compact { grid-template-columns: repeat(4, 1fr); }
.choice { display: flex; flex-direction: column; gap: .35rem; min-height: 106px; border: 1px solid var(--line); border-radius: 16px; background: white; padding: .9rem; cursor: pointer; }
.choice input { align-self: flex-start; accent-color: var(--teal-700); }
.choice small { color: var(--muted); line-height: 1.35; }
.check-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
.check-grid label { display: flex; gap: .5rem; align-items: flex-start; border: 1px solid var(--line); border-radius: 14px; background: white; padding: .9rem; }
.check-grid input { margin-top: .25rem; accent-color: var(--teal-700); }
.output { display: grid; gap: 1rem; margin-top: 1.25rem; }
.hidden { display: none !important; }
.progress-card { display: grid; grid-template-columns: minmax(0, 1fr) 260px; align-items: center; gap: 1rem; }
.progress-shell { height: 12px; background: rgba(7,63,53,.09); border-radius: 999px; overflow: hidden; }
.progress-shell span { display: block; height: 100%; width: 0%; background: linear-gradient(90deg, var(--teal-900), var(--teal-500)); border-radius: inherit; transition: width .25s ease; }
.scenario-card { border-left: 6px solid var(--teal-700); background: linear-gradient(90deg, rgba(221,241,250,.58), rgba(255,255,255,.84)); }
.scenario-card.critical { border-left-color: #d96432; background: linear-gradient(90deg, var(--rose), rgba(255,255,255,.86)); }
.panic-action-list { margin: .8rem 0 0 1.25rem; color: var(--ink); }
.panic-action-list li { margin-bottom: .45rem; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.warning-card { background: linear-gradient(180deg, #fff, var(--rose)); }
.wait-card { background: linear-gradient(180deg, #fff, var(--blue)); }
.warning-item { padding: .75rem 0; border-bottom: 1px solid rgba(112,48,24,.14); }
.warning-item:last-child { border-bottom: 0; }
.warning-item strong { display: block; color: var(--rose-ink); margin-bottom: .25rem; }
.warning-item p { margin: 0; color: #563126; }
.phase { margin-top: 1rem; }
.phase-header { border-bottom: 1px solid var(--line); margin-bottom: .35rem; padding-bottom: .25rem; position: relative; }
.phase-header::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 92px; height: 1px; background: linear-gradient(90deg, var(--teal-500), var(--teal-700), transparent); }
.task-list { display: grid; gap: .25rem; }
.task { display: grid; grid-template-columns: 44px 1fr; gap: .7rem; padding: .95rem .75rem; border-bottom: 1px solid var(--line); border-radius: 14px; }
.task:last-child { border-bottom: 0; }
.task.critical { border-left: 5px solid #d96432; background: linear-gradient(90deg, var(--rose), rgba(255,255,255,.78)); }
.task.critical h4 { color: var(--rose-ink); }
.task.done h4, .task.done p { color: var(--muted); text-decoration: line-through; }
.task-check-wrap { position: relative; width: 44px; height: 44px; display: grid; place-items: center; cursor: pointer; border-radius: 999px; }
.task-check-wrap:hover { background: rgba(14,124,107,.08); }
.task-check { position: absolute; inset: 0; width: 44px; height: 44px; margin: 0; opacity: 0; cursor: pointer; }
.task-box { width: 21px; height: 21px; border: 2px solid rgba(7,26,36,.32); border-radius: 6px; background: white; box-shadow: inset 0 0 0 2px rgba(255,255,255,.65); }
.task-check:focus-visible + .task-box { outline: 3px solid rgba(4,119,201,.34); outline-offset: 3px; }
.task-check:checked + .task-box { background: var(--teal-700); border-color: var(--teal-700); position: relative; }
.task-check:checked + .task-box::after { content: ""; position: absolute; left: 6px; top: 2px; width: 5px; height: 10px; border: solid white; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.task-title-row { display: flex; align-items: flex-start; gap: .75rem; justify-content: space-between; }
.task p { margin-bottom: 0; color: var(--muted); }
.chip { border: 1px solid rgba(4,119,201,.28); background: var(--teal-100); color: var(--teal-900); border-radius: 999px; padding: .28rem .62rem; font-size: .8rem; font-weight: 850; cursor: pointer; white-space: nowrap; }
.resource-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; margin-top: 1rem; }
.resource-card { border: 1px solid var(--line); background: white; border-radius: 16px; padding: 1rem; }
.resource-card .category { display: inline-block; background: var(--teal-100); color: var(--teal-900); border-radius: 999px; padding: .2rem .55rem; font-size: .72rem; font-weight: 850; text-transform: uppercase; letter-spacing: .05em; margin-bottom: .65rem; }
.resource-card a { color: var(--teal-700); font-weight: 800; }
.document-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .65rem; margin-top: 1rem; }
.doc-item { display: flex; align-items: center; gap: .55rem; border: 1px solid var(--line); border-radius: 14px; background: white; padding: .8rem; cursor: pointer; }
.doc-item.found { background: var(--teal-100); border-color: rgba(4,119,201,.42); }
.doc-check { accent-color: var(--teal-700); }
.script-list { display: grid; gap: .65rem; margin-top: 1rem; }
.script-card { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: white; }
.script-toggle { width: 100%; border: 0; background: white; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem; cursor: pointer; text-align: left; }
.script-toggle span span { display: block; color: var(--muted); font-size: .85rem; margin-top: .15rem; }
.script-body { display: none; padding: 1rem; border-top: 1px solid var(--line); }
.script-card.open .script-body { display: block; }
.script-text { white-space: pre-wrap; background: var(--soft); border-radius: 12px; padding: 1rem; color: var(--ink); }
.copy-btn { margin-top: .75rem; border: 1px solid var(--line); border-radius: 10px; background: white; padding: .55rem .8rem; cursor: pointer; font-weight: 800; }
.copy-btn.copied { color: var(--teal-700); border-color: rgba(4,119,201,.42); }
.roadmap-preview { background: linear-gradient(135deg, #ffffff, var(--wave-50)); }
.roadmap-preview ul, .wait-card ul { padding-left: 1.2rem; margin-bottom: 0; }
.site-footer { margin-top: 4rem; padding: 2.5rem 1rem; text-align: center; border-top: 1px solid var(--line); color: var(--muted); }
.footer-brand { justify-content: center; margin: 0 auto .45rem; }
.footer-brand .pa-brand-mark { width: 3rem; height: 3rem; }
@media (max-width: 850px) {
  .facts-grid, .choice-grid, .choice-grid.compact, .check-grid, .document-grid, .resource-grid, .two-col, .field-row, .source-columns, .progress-card, .hero-split { grid-template-columns: 1fr; }
  .hero-copy-block { text-align: center; }
  .hero-actions { justify-content: center; }
  .hero-copy { margin-left: auto; margin-right: auto; }
  h1 { letter-spacing: -.055em; }
  .trust-strip { grid-template-columns: 1fr; }
  .header-pill { display: none; }
  .pa-brand-mark { width: 2.4rem; height: 2.4rem; }
}
@media (max-width: 850px) {
  body::before,
  .hero::after { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
@media print {
  .site-header, .hero, .trust-strip, #data-core, #intake-form, .action-row, .plus-preview, .script-toggle span[aria-hidden="true"], .header-pill { display: none !important; }
  body { background: white; }
  .container { width: 100%; }
  .section { padding: 0; }
  .card { box-shadow: none; break-inside: avoid; }
  .script-body { display: block !important; }
  a::after { content: ""; }
}

@media (max-width: 480px) {
  .header-cta { display: none; }
  .site-header { min-height: 62px; }
  .pa-brand-mark { width: 2.25rem; height: 2.25rem; }
  .hero-logo-card { padding: .8rem; border-radius: 22px; }
}


/* V0.9 — borrowed clean triage-card behavior from the functional test harness */
.wizard {
  position: relative;
}
.choice,
.check-grid label {
  position: relative;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease, background .18s ease;
}
.choice:hover,
.check-grid label:hover {
  border-color: rgba(4, 119, 201, .35);
  box-shadow: 0 10px 26px rgba(7, 26, 36, .06);
  transform: translateY(-1px);
}
.choice:has(input:checked),
.check-grid label:has(input:checked) {
  border-color: rgba(4, 119, 201, .56);
  background: linear-gradient(180deg, #ffffff, var(--wave-50));
  box-shadow: inset 0 0 0 1px rgba(4, 119, 201, .18), 0 14px 34px rgba(7, 26, 36, .07);
}
.choice:has(input:checked)::after,
.check-grid label:has(input:checked)::after {
  content: "On route";
  position: absolute;
  top: .65rem;
  right: .7rem;
  font-size: .66rem;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--blue-ink);
  background: var(--teal-100);
  border: 1px solid rgba(4, 119, 201, .22);
  border-radius: 999px;
  padding: .16rem .45rem;
}
.check-grid label:has(input:checked)::after { content: "Flagged"; }
.choice input,
.check-grid input {
  width: 1.05rem;
  height: 1.05rem;
}
.choice b,
.check-grid label {
  line-height: 1.32;
}
.wizard .btn.primary.wide {
  min-height: 52px;
  border-radius: 16px;
  box-shadow: 0 12px 26px rgba(11, 79, 70, .18);
}
.output {
  animation: chartIn .28s ease both;
}
@keyframes chartIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 480px) {
  .choice:has(input:checked)::after,
  .check-grid label:has(input:checked)::after {
    position: static;
    align-self: flex-start;
    width: max-content;
    margin-top: .25rem;
  }
}


/* V1.0 — prelaunch first-load cleanup */
.prestart-card {
  border-style: dashed;
  background: linear-gradient(180deg, rgba(255,255,255,.72), rgba(248,245,238,.88));
}
.prestart-card h3 { margin-bottom: .35rem; }
body:not(.route-active) #output { display: none !important; }
body.route-active #prestart-card { display: none !important; }


/* V1.3 — subtle nautical icon system */
.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.icon-line {
  display: inline-flex;
  align-items: center;
  gap: .42rem;
}
.nav-icon,
.btn-icon,
.trust-icon,
.choice-icon .nav-icon,
.fact-icon .nav-icon,
.mini-icon,
.task-title-icon,
.chip-icon,
.doc-icon,
.script-icon {
  display: inline-block;
  flex: 0 0 auto;
  width: 1.05rem;
  height: 1.05rem;
  color: var(--teal-700);
  vertical-align: -.18em;
}
.btn-icon,
.chip-icon,
.mini-icon {
  width: .95rem;
  height: .95rem;
}
.primary .btn-icon { color: currentColor; opacity: .95; }
.btn { gap: .45rem; }
.trust-strip > div {
  padding-left: 3.15rem;
}
.trust-icon {
  position: absolute;
  left: 1rem;
  top: 1rem;
  width: 1.55rem;
  height: 1.55rem;
  color: var(--ocean-500);
  opacity: .88;
}
.fact-card {
  position: relative;
  overflow: hidden;
}
.fact-card::after {
  content: "";
  position: absolute;
  right: -18px;
  top: -18px;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(4,119,201,.09), transparent 65%);
}
.fact-icon {
  width: 2.15rem;
  height: 2.15rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--wave-50);
  color: var(--teal-900);
  margin-bottom: .65rem;
  border: 1px solid rgba(4,119,201,.16);
}
.fact-icon .nav-icon {
  width: 1.2rem;
  height: 1.2rem;
}
.choice-icon {
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(221,241,250,.62);
  border: 1px solid rgba(4,119,201,.18);
  color: var(--teal-900);
  margin-top: .1rem;
}
.choice:has(input:checked) .choice-icon {
  background: #fff;
  color: var(--ocean-500);
  border-color: rgba(4,119,201,.32);
}
.task-title-icon {
  margin-right: .38rem;
  color: #d96432;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: .32rem;
}
.chip-icon { color: var(--ocean-500); }
.doc-item {
  align-items: flex-start;
}
.doc-icon {
  color: var(--teal-700);
  margin-top: .12rem;
  opacity: .85;
}
.script-title-lockup {
  display: inline-flex;
  align-items: flex-start;
  gap: .62rem;
}
.script-icon {
  width: 1.25rem;
  height: 1.25rem;
  margin-top: .08rem;
  color: var(--ocean-500);
}
.category {
  display: inline-flex !important;
  align-items: center;
  gap: .28rem;
}
.mini-icon { color: currentColor; opacity: .82; }
@media (max-width: 480px) {
  .trust-strip > div { padding-left: 2.85rem; }
  .trust-icon { width: 1.35rem; height: 1.35rem; }
}


/* V1.5 — footer/legal polish */
.tm-mark { font-size: .48em; vertical-align: super; margin-left: .08em; letter-spacing: 0; }
.footer-links { margin-top: .85rem; display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }
.footer-links a { color: var(--ink); font-weight: 800; text-decoration: none; border-bottom: 1px solid rgba(4,119,201,.35); }
.footer-links a:hover { color: var(--ocean-500); }
.legal-main { max-width: 880px; margin: 0 auto; padding: clamp(2rem, 5vw, 4rem) 1rem; }
.legal-card { background: rgba(255,253,247,.9); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(1.25rem, 3vw, 2rem); }
.legal-card h1 { font-size: clamp(2rem, 5vw, 3rem); line-height: 1; letter-spacing: -.06em; margin: 0 0 1rem; }
.legal-card h2 { margin-top: 2rem; font-size: 1.08rem; }
.legal-card p, .legal-card li { color: var(--muted); }
.legal-card ul { padding-left: 1.25rem; }
.legal-updated { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: .3rem .65rem; font-size: .78rem; color: var(--muted); font-weight: 800; }
.legal-note { background: var(--wave-50); border: 1px solid rgba(4,119,201,.16); border-radius: 14px; padding: 1rem; color: var(--ink) !important; }


/* V1.5 — borrowed the clean footer/legal-callout structure, kept PathAfter's human tone */
.plain-legal-callout {
  margin-top: 1rem;
  background: rgba(255,255,255,.72);
  border: 1px solid var(--line);
  border-left: 4px solid var(--ocean-500);
  border-radius: 14px;
  padding: 1rem 1.1rem;
  color: var(--muted);
  font-size: .9rem;
  box-shadow: 0 8px 22px rgba(7, 26, 36, .04);
}
.plain-legal-callout strong { color: var(--ink); }
.structured-footer {
  text-align: left;
  padding: 1.6rem 1rem;
  background: rgba(255,253,247,.78);
}
.footer-container {
  width: min(1060px, calc(100% - 2rem));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.footer-brand-block,
.footer-legal-block { min-width: 0; }
.footer-brand-block p,
.footer-legal-block p { margin: .25rem 0; }
.footer-legal-block { text-align: right; }
.structured-footer .footer-brand {
  justify-content: flex-start;
  margin: 0 0 .35rem;
}
.structured-footer .footer-brand .pa-brand-mark { width: 2.35rem; height: 2.35rem; }
.structured-footer .footer-links {
  margin-top: .55rem;
  justify-content: flex-end;
}
@media (max-width: 760px) {
  .footer-container { flex-direction: column; align-items: flex-start; }
  .footer-legal-block { text-align: left; }
  .structured-footer .footer-links { justify-content: flex-start; }
}


/* Paperwork pack */
.paperwork-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}
.paperwork-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--foam);
  padding: 1rem;
  box-shadow: var(--shadow-soft);
}
.paperwork-topline {
  display: flex;
  align-items: center;
  gap: .45rem;
  color: var(--harbor);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: .65rem;
}
.paperwork-icon { width: 1rem; height: 1rem; }
.paperwork-item h4 {
  font-size: 1rem;
  margin: 0 0 .4rem;
  letter-spacing: -.02em;
}
.paperwork-item p {
  color: var(--muted);
  font-size: .92rem;
  margin: 0 0 .75rem;
}
.paperwork-item details {
  border-top: 1px solid var(--line-soft);
  padding-top: .65rem;
}
.paperwork-item summary {
  cursor: pointer;
  font-weight: 800;
  color: var(--ink);
  font-size: .85rem;
}
.paperwork-item ul {
  margin: .6rem 0 0 1rem;
  color: var(--muted);
  font-size: .88rem;
}
@media (max-width: 850px) {
  .paperwork-grid { grid-template-columns: 1fr; }
}

/* V1.9 — next chapter pass: less theme friction, more user help */
.empathy-card {
  background: linear-gradient(135deg, #ffffff, rgba(221,241,250,.56));
  border-left: 5px solid var(--teal-700);
  margin-bottom: 1rem;
}
.empathy-card strong { display: block; font-size: 1.05rem; margin-bottom: .25rem; }
.empathy-card p { margin: 0; color: var(--muted); }
.hero-timeline-card { align-self: stretch; display: grid; place-items: stretch; }
.hero-guide-card { width: 100%; min-height: 100%; display: grid; align-content: start; gap: 1rem; }
.hero-illustration-shell { display: grid; place-items: center; min-height: clamp(172px, 24vw, 236px); overflow: hidden; border: 1px solid rgba(4,119,201,.16); border-radius: 22px; background: linear-gradient(180deg, rgba(255,253,247,.92), rgba(221,241,250,.66)); }
.hero-lighthouse-illustration { display: block; width: min(100%, 380px); height: auto; }
.hero-guide-copy { display: grid; gap: .7rem; }
.hero-guide-eyebrow { margin: 0; color: var(--teal-700); }
.hero-guide-copy strong { display: block; font-size: clamp(1.05rem, 2vw, 1.28rem); color: var(--ink); letter-spacing: -.02em; }
.hero-guide-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.hero-guide-steps li { display: grid; grid-template-columns: 34px 1fr; gap: .75rem; align-items: start; padding: .72rem; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.84); color: var(--muted); }
.hero-guide-steps li > span { width: 34px; height: 34px; display: inline-grid; place-items: center; border-radius: 999px; background: rgba(14,124,107,.1); color: var(--teal-900); font-weight: 950; }
.hero-guide-steps b { display: block; color: var(--ink); font-size: .94rem; margin-bottom: .16rem; }
.hero-guide-steps small { display: block; color: var(--muted); line-height: 1.38; font-size: .86rem; }
.hero-guide-note { margin: 0; padding: .72rem .85rem; border-radius: 14px; background: rgba(255,253,247,.86); color: var(--muted); font-size: .9rem; border: 1px solid rgba(7,63,53,.1); }
.hero-timeline { width: 100%; }
.hero-timeline strong { display: block; font-size: 1rem; margin-bottom: .85rem; color: var(--ink); }
.hero-timeline ol { list-style: none; padding: 0; margin: 0; display: grid; gap: .75rem; }
.hero-timeline li { display: grid; grid-template-columns: 64px 1fr; gap: .75rem; align-items: start; padding: .85rem; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.82); color: var(--muted); }
.hero-timeline li span { color: var(--teal-900); font-weight: 900; }
.howto-panel { margin-top: .8rem; border: 1px solid rgba(4,119,201,.18); background: rgba(221,241,250,.42); border-radius: 12px; padding: .75rem .85rem; }
.howto-panel summary { cursor: pointer; font-weight: 900; color: var(--teal-900); }
.howto-panel ul { margin: .65rem 0 0; padding-left: 1.2rem; color: var(--ink); }
.howto-panel li { margin-bottom: .45rem; }
.discovery-list { display: grid; gap: .65rem; margin-top: 1rem; }
.discovery-item { border: 1px solid var(--line); border-radius: 14px; background: white; padding: .85rem 1rem; }
.discovery-item summary { cursor: pointer; font-weight: 900; color: var(--ink); }
.discovery-item p { margin: .55rem 0 0; color: var(--muted); }
.handoff-card { background: linear-gradient(135deg, #fff, var(--sand)); }
.next-chapter-card ul { margin-bottom: 0; padding-left: 1.2rem; color: var(--muted); }
.next-chapter-card li { margin-bottom: .55rem; }
.doc-item { align-items: flex-start; }
.doc-item span { font-weight: 800; }
.doc-item small { display: block; margin-top: .3rem; color: var(--muted); line-height: 1.35; }
.plus-preview h3::after { content: " — preview only"; color: var(--muted); font-size: .85rem; font-weight: 700; }
/* Reduce nautical copy visually; keep icons as quiet wayfinding */
.eyebrow.icon-line { letter-spacing: .06em; }
@media (max-width: 850px) {
  .hero-timeline li { grid-template-columns: 1fr; text-align: left; }
  .hero-illustration-shell { min-height: 168px; }
  .hero-lighthouse-illustration { width: min(100%, 330px); }
  .hero-guide-steps li { text-align: left; }
}


.resource-meta {
  display: inline-flex;
  align-items: center;
  margin-top: .35rem;
  padding: .18rem .55rem;
  border-radius: 999px;
  background: var(--foam, #fff);
  border: 1px solid var(--line, #ddd8ce);
  color: var(--muted, #62706d);
  font-size: .78rem;
  font-weight: 700;
}


/* V2.6 — Panic Questions Bank */
.panic-card summary { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.panic-card summary small { color: var(--muted); font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; }
.panic-card-body { margin-top: .75rem; display: grid; gap: .65rem; color: var(--muted); }
.panic-card-body p { margin: 0; }
.panic-card-body strong { color: var(--ink); }
.panic-card-body ol { margin: .45rem 0 0 1.2rem; }
.panic-card-body li { margin-bottom: .45rem; }
.source-caution { padding: .65rem .75rem; border-radius: 12px; background: var(--sand); border: 1px solid var(--line); font-size: .9rem; }
.quick-question-bank { margin-top: 1rem; display: grid; gap: .6rem; }
.compact-question { background: var(--sand); }
.next-section { margin-bottom: .9rem; }
.next-section > strong { color: var(--ink); }
.next-section ul { margin-top: .45rem; }


/* V2.22/V2.23 — privacy-first and post-loss fraud reminder */
.identity-card {
  border-color: rgba(113,50,25,.22);
  background: linear-gradient(180deg, rgba(250,236,231,.92), rgba(255,253,247,.95));
}
.identity-card strong { display: block; margin-bottom: .25rem; color: var(--rose-ink); }
.identity-card p { margin: 0; color: var(--muted); }


/* V2.23 — no-login family handoff MVP */
.family-handoff-body {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}
.share-setup-box {
  display: grid;
  gap: .75rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,.76);
}
.share-setup-box strong { display: block; color: var(--ink); margin-bottom: .25rem; }
.share-setup-box p { margin: 0; color: var(--muted); }
.share-url-field {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: .75rem .85rem;
  font: inherit;
  color: var(--muted);
  background: var(--foam);
}
.family-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
}
.btn.small {
  padding: .65rem .9rem;
  font-size: .88rem;
  min-height: auto;
}
.family-lane-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .85rem;
}
.family-lane-card {
  display: grid;
  gap: .65rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}
.family-lane-card h4 { margin: 0; font-size: 1rem; color: var(--ink); }
.family-lane-card p { margin: 0; color: var(--muted); font-size: .9rem; }
.family-lane-card label { display: grid; gap: .35rem; }
.family-lane-card label span { color: var(--muted); font-size: .75rem; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
.family-lane-card input,
.family-lane-card textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: .72rem .78rem;
  font: inherit;
  background: var(--foam);
  color: var(--ink);
}
.family-lane-card textarea { resize: vertical; }
.family-privacy-note {
  margin: 0;
  color: var(--muted);
  font-size: .88rem;
}
@media (max-width: 850px) {
  .family-lane-grid { grid-template-columns: 1fr; }
}


/* V2.24 — hostile stress-audit pass: mobile, backup, hierarchy, and a11y */
:root {
  --muted: #46565A;
  --line: rgba(7, 26, 36, .18);
  --shadow: 0 16px 42px rgba(7, 26, 36, .095);
  --radius-md: 14px;
  --shadow-soft: 0 8px 24px rgba(7,26,36,.055);
  --harbor: var(--teal-900);
  --line-soft: rgba(7,26,36,.10);
}
html { font-size: 17px; }
body { line-height: 1.62; }
button, .btn, select, input, textarea, summary, .choice, .check-grid label, .doc-item, .script-toggle { touch-action: manipulation; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid rgba(4,119,201,.42);
  outline-offset: 3px;
}
.card, .resource-card, .script-card, .discovery-item, .paperwork-item, .family-lane-card {
  background-color: rgba(255,255,255,.94);
}
.card { border-width: 1.5px; }
.section-heading p, .muted, .privacy-note, .task p, .resource-card p, .doc-item small, .panic-card-body { color: var(--muted); }
.btn, .header-cta, .header-privacy-btn, .copy-btn, .chip, select, .family-lane-card input, .family-lane-card textarea, .share-url-field {
  min-height: 48px;
}
.choice, .check-grid label, .doc-item { min-height: 56px; }
.task { gap: 1rem; padding: 1rem; border-radius: 16px; margin-bottom: .65rem; background: rgba(255,255,255,.78); border: 1px solid var(--line-soft); }
.task-title-row { gap: .9rem; }
.task h4 { font-size: 1.06rem; margin-bottom: .3rem; }
.task-check-wrap, .task-check { width: 48px; height: 48px; }
.task-box { width: 24px; height: 24px; }
.mobile-output-nav {
  position: sticky;
  top: 72px;
  z-index: 15;
  display: flex;
  gap: .45rem;
  overflow-x: auto;
  padding: .45rem;
  margin: -.15rem 0 .1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,253,247,.94);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 20px rgba(7,26,36,.055);
  scrollbar-width: none;
}
.mobile-output-nav::-webkit-scrollbar { display: none; }
.mobile-output-nav a {
  flex: 0 0 auto;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .5rem .75rem;
  border-radius: 999px;
  border: 1px solid var(--line-soft);
  background: #fff;
  color: var(--teal-900);
  text-decoration: none;
  font-weight: 900;
  font-size: .86rem;
}
.next-three-card {
  border-left: 6px solid var(--teal-700);
  background: linear-gradient(135deg, #fff, rgba(221,241,250,.58));
}
.next-three-list { display: grid; gap: .75rem; margin: 1rem 0 0; padding-left: 1.2rem; }
.next-three-list li { padding: .75rem .85rem; background: rgba(255,255,255,.84); border: 1px solid var(--line-soft); border-radius: 14px; }
.next-three-list strong { display: block; color: var(--ink); }
.next-three-list span { display: block; color: var(--muted); margin-top: .2rem; }
.backup-card {
  border-color: rgba(12,68,124,.24);
  background: linear-gradient(135deg, #fff, rgba(232,243,250,.72));
}
.backup-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .8rem; }
.backup-status { margin: .65rem 0 0; color: var(--blue-ink); font-weight: 800; }
.help-boundary-card {
  border-left: 6px solid var(--amber-ink);
  background: linear-gradient(135deg, #fff, var(--amber));
}
.help-flag-list { margin: .75rem 0 0; padding-left: 1.2rem; color: var(--muted); }
.help-flag-list li { margin-bottom: .45rem; }
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
@media (max-width: 850px) {
  html { font-size: 18px; }
  .site-header { align-items: flex-start; flex-wrap: wrap; padding-bottom: .75rem; }
  .header-actions { width: 100%; justify-content: space-between; gap: .5rem; }
  .header-privacy-btn, .header-cta { flex: 1 1 auto; min-height: 46px; }
  .hero { padding-top: 1.55rem; }
  .hero-copy-block { text-align: left; }
  .hero-actions { justify-content: stretch; }
  .hero-actions .btn { width: 100%; }
  .mobile-output-nav { top: 104px; border-radius: 18px; }
  .progress-card { gap: .85rem; }
  .backup-actions .btn { flex: 1 1 100%; }
  .script-toggle { padding: 1rem .9rem; }
  .task-title-row { flex-direction: column; align-items: flex-start; }
  .chip { min-height: 44px; padding: .5rem .75rem; }
}
@media (max-width: 480px) {
  .pa-brand-word { font-size: 1.2rem; }
  h1 { font-size: clamp(2.05rem, 12vw, 3rem); }
  .card { padding: 1rem; }
  .choice, .check-grid label { padding: 1rem; }
  .mobile-output-nav { top: 108px; }
}


/* V2.25 — human entry + slow-phone fallback */
.optional-label { color: var(--muted); font-style: normal; font-weight: 750; font-size: .88em; }
.quick-fallback-card { margin-bottom: 1rem; background: linear-gradient(180deg, #fff, rgba(221,241,250,.45)); border-left: 6px solid var(--teal-700); }
.quick-fallback-list { margin: .85rem 0 0; padding-left: 1.25rem; display: grid; gap: .65rem; }
.quick-fallback-list li { padding-left: .15rem; }
.noscript-card { margin: 1rem 0; border-left: 6px solid #d96432; }
body.route-active .quick-fallback-card, body.route-active .noscript-card { display: none; }
.source-section { padding-top: 2rem; }
.source-drawer { background: rgba(255,255,255,.72); }
.source-drawer > summary { min-height: 48px; display: flex; align-items: center; }
@media (max-width: 850px) {
  .quick-fallback-card { text-align: left; }
  .quick-fallback-list { font-size: 1rem; }
}

/* V2.26 — sympathy layer cleanup */
.hero-copy { max-width: 62ch; }
.empathy-card {
  background: linear-gradient(135deg, #fff, rgba(255,243,221,.62));
  border-left-color: var(--amber-ink);
}
.empathy-card strong {
  font-size: clamp(1.08rem, 2vw, 1.22rem);
}
.support-card {
  margin: 0 0 1rem;
  background: linear-gradient(135deg, #fff, rgba(221,241,250,.50));
  border-left: 5px solid var(--teal-700);
}
.support-card h3 {
  margin: 0 0 .55rem;
  font-size: clamp(1.1rem, 2.4vw, 1.35rem);
}
.support-card ul {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
  display: grid;
  gap: .45rem;
}
#identity-protection.identity-card {
  margin-top: 0;
}
#identity-protection h3 {
  margin-bottom: .4rem;
}
.help-boundary-card h3,
.handoff-card h3,
.next-three-card h3 {
  letter-spacing: -.025em;
}
@media (max-width: 720px) {
  .support-card,
  .empathy-card {
    border-left-width: 4px;
  }
  .hero-copy {
    font-size: 1.04rem;
  }
}


/* V2.27 — ordering + completion polish */
.hero-empathy-card {
  margin: 1rem 0 1.1rem;
  max-width: 680px;
}
.hero-empathy-card p { color: var(--muted); }
.inline-trust-strip {
  margin: 1rem 0;
  border-radius: 22px;
}
#navigator .wizard { margin-top: 0; }
.completion-card {
  margin-top: 1rem;
  background: linear-gradient(135deg, #fff, rgba(255,243,221,.62));
  border-left: 6px solid var(--amber-ink);
}
.completion-card h3 { letter-spacing: -.025em; }
body.route-active .support-card { display: none; }
@media (max-width: 850px) {
  .hero-empathy-card { text-align: left; }
  .inline-trust-strip { grid-template-columns: 1fr; }
}


/* V2.28 — visual hierarchy + saved-state polish */
:root {
  --sage: #EAF4ED;
  --sage-ink: #24533C;
  --sky-soft: #EAF3F8;
  --sky-ink: #164A68;
  --lavender-soft: #F1EEF8;
  --lavender-ink: #473B73;
  --cream-soft: #FFF8EA;
}
body { line-height: 1.68; }
p, li { text-wrap: pretty; }
.card { scroll-margin-top: 142px; }
.section-heading { margin-bottom: 1.4rem; }
.output { gap: 1.1rem; }

.stepper-form { counter-reset: pa-step; }
.stepper-form fieldset[data-step] {
  position: relative;
  padding-top: .15rem;
}
.stepper-form fieldset[data-step] legend {
  display: flex;
  align-items: center;
  gap: .55rem;
}
.stepper-form fieldset[data-step] legend::before {
  counter-increment: pa-step;
  content: counter(pa-step);
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: var(--sage);
  color: var(--sage-ink);
  border: 1px solid rgba(36,83,60,.18);
  font-size: .82rem;
  font-weight: 900;
}

.phase {
  overflow: hidden;
  border-left: 6px solid var(--teal-700);
  background: linear-gradient(135deg, #fff, rgba(234,244,237,.55));
}
.phase-first_24, .phase-first-24 { border-left-color: var(--teal-700); }
.phase-next_72, .phase-next-72 { border-left-color: var(--blue-ink); background: linear-gradient(135deg, #fff, rgba(232,243,250,.68)); }
.phase-days_3_7, .phase-days-3-7 { border-left-color: var(--lavender-ink); background: linear-gradient(135deg, #fff, rgba(241,238,248,.72)); }
.warning-card { border-left: 6px solid var(--rose-ink); background: linear-gradient(135deg, #fff, rgba(250,236,231,.68)); }
.wait-card { border-left: 6px solid var(--sage-ink); background: linear-gradient(135deg, #fff, rgba(234,244,237,.68)); }
#documents { border-left: 6px solid var(--blue-ink); background: linear-gradient(135deg, #fff, rgba(232,243,250,.58)); }
#scripts { border-left: 6px solid var(--lavender-ink); background: linear-gradient(135deg, #fff, rgba(241,238,248,.58)); }
#family-handoff { border-left: 6px solid var(--teal-700); background: linear-gradient(135deg, #fff, rgba(234,244,237,.58)); }
#unknowns { border-left: 6px solid var(--amber-ink); background: linear-gradient(135deg, #fff, rgba(255,243,221,.52)); }
.paperwork-card { border-left: 6px solid var(--sky-ink); }
.next-chapter-card, .roadmap-preview { border-left: 6px solid var(--teal-900); }

.task.done {
  background: rgba(234,244,237,.72);
  border-color: rgba(36,83,60,.18);
}
.task.done h4,
.task.done p {
  text-decoration-thickness: .08em;
  text-decoration-color: rgba(36,83,60,.5);
}
.task.done .task-box { box-shadow: 0 0 0 5px rgba(14,124,107,.12); }
.doc-item.found span { text-decoration: line-through; text-decoration-color: rgba(36,83,60,.45); }
.doc-item.found::after {
  content: "✓";
  margin-left: auto;
  color: var(--sage-ink);
  font-weight: 900;
}

.save-toast {
  position: fixed;
  left: 50%;
  bottom: calc(1rem + env(safe-area-inset-bottom));
  transform: translate(-50%, 1.2rem);
  opacity: 0;
  pointer-events: none;
  z-index: 80;
  min-width: min(92vw, 260px);
  text-align: center;
  padding: .8rem 1rem;
  border-radius: 999px;
  color: #ecfff8;
  background: rgba(11,79,70,.96);
  box-shadow: 0 14px 34px rgba(7,26,36,.22);
  font-weight: 900;
  transition: opacity .18s ease, transform .18s ease;
}
.save-toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.mobile-output-nav a[href="#next-three-card"]::before { content: "✓ "; }
.mobile-output-nav a[href="#documents"]::before { content: "□ "; }
.mobile-output-nav a[href="#family-handoff"]::before { content: "↔ "; }
.mobile-output-nav a[href="#next-chapter"]::before { content: "→ "; }

@media (max-width: 850px) {
  body { line-height: 1.72; }
  p, li { font-size: 1rem; }
  .card { scroll-margin-top: 156px; }
  .phase-header h3 { font-size: 1.2rem; }
  .mobile-output-nav a { min-height: 44px; padding-inline: .8rem; }
}
@media (max-width: 480px) {
  .site-header .header-cta { display: inline-flex; }
  .header-actions { align-items: stretch; }
  .header-privacy-btn, .header-cta { font-size: .78rem; padding-inline: .62rem; }
  .save-toast { bottom: calc(.8rem + env(safe-area-inset-bottom)); }
}

@media print {
  .mobile-output-nav, .backup-card, .source-section, .header-actions, .share-setup-box, .family-action-row, .save-toast, .source-mini-link, .quick-fallback-card, .noscript-card, .support-card, #prestart-card { display: none !important; }
  html { font-size: 12pt; }
  body { color: #111; background: white !important; line-height: 1.45; }
  .output { display: block !important; }
  .card, .phase, .resource-card, .script-card, .discovery-item, .paperwork-item, .family-lane-card {
    box-shadow: none !important;
    background: white !important;
    border: 1px solid #bbb !important;
    border-radius: 8px !important;
    page-break-inside: avoid;
    break-inside: avoid;
    margin-bottom: .6rem;
  }
  .progress-shell { border: 1px solid #777; background: white; }
  .progress-shell span { background: #777 !important; }
  .task { page-break-inside: avoid; break-inside: avoid; }
  .script-body { display: block !important; }
}


.app-error-card {
  border-left: 5px solid var(--warning, #b7791f);
  background: #fffaf0;
  margin-top: 1rem;
}

.output[data-failsafe-active="true"] .backup-card,
.output[data-failsafe-active="true"] .identity-card {
  display: none;
}

.output[data-failsafe-active="true"] .next-three-card {
  border-left: 5px solid var(--accent, #6b9e78);
}


.protection-section { border-left: 6px solid var(--gold); background: linear-gradient(90deg, rgba(255,248,232,.92), rgba(255,255,255,.9)); }
.protection-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; margin-top: 1rem; }
.protection-card { border: 1px solid rgba(121,82,26,.18); border-radius: 18px; background: rgba(255,255,255,.88); padding: 1rem; display: grid; gap: .65rem; box-shadow: 0 16px 40px rgba(16,24,40,.05); }
.protection-card h4, .quote-worksheet h4 { margin: 0; font-size: 1.08rem; }
.protection-card p, .quote-worksheet p { margin: 0; color: var(--muted); }
.protection-steps { margin-top: .25rem; }
.quote-worksheet { grid-column: 1 / -1; border: 1px dashed rgba(10,43,54,.25); border-radius: 18px; background: rgba(255,253,247,.72); padding: 1rem; display: grid; gap: .85rem; }
.quote-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: white; }
.quote-table { width: 100%; border-collapse: collapse; min-width: 720px; font-size: .92rem; }
.quote-table th, .quote-table td { border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); padding: .72rem; text-align: left; vertical-align: top; }
.quote-table th { color: var(--ink); background: rgba(221,241,250,.34); }
.quote-table td { height: 2.4rem; background: white; }
.quote-table tr:last-child th, .quote-table tr:last-child td { border-bottom: 0; }
.source-caution { border-left: 3px solid var(--gold); padding-left: .7rem; font-size: .92rem; }
@media (max-width: 820px) { .protection-grid { grid-template-columns: 1fr; } .quote-table { min-width: 620px; } }
@media print { .quote-table-wrap { overflow: visible; } .quote-table { min-width: 0; font-size: 9pt; } .protection-section { break-inside: avoid; } }

