/* Bulletin Rescue site styles. Tokens come from /tokens.css (a copy of design/tokens.css). */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 1rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: var(--leading-body);
  caret-color: var(--ink-blue);
  accent-color: var(--ink-blue);
  overflow-x: hidden;
}
::selection { background: var(--ink-sun); color: var(--text); }
img, svg, video { display: block; max-width: 100%; }
p, ul, ol, dl, figure { margin: 0; }
p + p { margin-top: var(--space-4); }

/* ---------- Type ---------- */
h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: var(--display-wght);
  font-variation-settings: "wdth" var(--display-wdth);
  line-height: var(--leading-tight);
  letter-spacing: -0.01em;
  color: var(--ink-blue);
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); line-height: 1.12; }
.lede { font-size: var(--step-1); line-height: 1.5; color: var(--text-soft); max-width: 34em; text-wrap: pretty; }
strong { font-weight: 700; }
.data { font-family: var(--font-data); font-variant-numeric: tabular-nums; }

a { color: var(--ink-blue); text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
a:hover { color: var(--ink-blue-deep); background: var(--ink-sun-soft); }
:focus-visible {
  outline: 3px solid var(--ink-sun);
  outline-offset: 3px;
  box-shadow: 0 0 0 1px var(--text);
  border-radius: 2px;
}

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: var(--space-4); top: var(--space-4); z-index: 10; background: var(--paper-bright); padding: var(--space-3) var(--space-4); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-3);
  min-height: var(--tap);
  padding: 0.7rem 1.6rem;
  background: var(--ink-blue);
  color: var(--text-on-blue);
  font: 700 var(--step-0)/1.2 var(--font-body);
  text-decoration: none;
  border: 2px solid var(--ink-blue);
  border-radius: var(--radius-1);
  cursor: pointer;
  transition: background var(--dur-1) var(--ease-out), border-color var(--dur-1) var(--ease-out);
}
.btn:hover { background: var(--ink-blue-deep); border-color: var(--ink-blue-deep); color: var(--text-on-blue); }
.btn svg { width: 1.1em; height: 1.1em; flex: none; }
.btn-quiet { background: transparent; color: var(--ink-blue); }
.btn-quiet:hover { background: var(--stock-blue); color: var(--ink-blue-deep); }
.btn-sun { background: var(--ink-sun); border-color: var(--ink-sun); color: var(--text); }
.btn-sun:hover { background: #ffc740; border-color: #ffc740; color: var(--text); }

/* ---------- Header ---------- */
.site-head { border-bottom: var(--rule-w) solid var(--rule); background: var(--paper); }
.site-head .wrap { display: flex; align-items: center; gap: var(--space-5); min-height: 5rem; }
.brand {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-display); font-weight: 800; font-variation-settings: "wdth" 112;
  font-size: 1.45rem; letter-spacing: -0.01em; color: var(--ink-blue); text-decoration: none;
  padding-block: var(--space-2);
  white-space: nowrap;
}
.brand:hover { background: none; }
.brand svg { width: 2.25rem; height: 2.25rem; }
.site-nav { display: flex; gap: var(--space-1); margin-left: auto; }
.site-nav a {
  font-weight: 700; text-decoration: none; color: var(--text);
  padding: 0.6rem 0.8rem; min-height: 3rem; display: inline-flex; align-items: center;
}
.site-nav a:hover { background: var(--stock-blue); color: var(--ink-blue); }
.head-phone { font-weight: 700; white-space: nowrap; }
.site-head .btn { margin-left: var(--space-2); white-space: nowrap; }
@media (max-width: 1060px) { .site-nav .opt { display: none; } }
@media (max-width: 820px) {
  .site-nav { display: none; }
  .site-head .btn { margin-left: auto; padding-inline: 1rem; }
}
@media (max-width: 420px) {
  .site-head .wrap { gap: var(--space-3); }
  .brand { font-size: 1.15rem; gap: 0.4rem; }
  .brand svg { width: 1.75rem; height: 1.75rem; }
  .site-head .btn { font-size: 1rem; padding-inline: 0.75rem; min-height: 3rem; }
}

/* ---------- Sections ---------- */
.section { padding-block: var(--space-9); }
.section-head { max-width: 44rem; margin-bottom: var(--space-7); }
.section-head > * + * { margin-top: var(--space-4); }
.stock-blue { background: var(--stock-blue); }
.field-blue { background: var(--ink-blue); color: var(--text-on-blue); position: relative; isolation: isolate; }
.field-blue::before, .grain::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: var(--grain); background-size: 240px 240px; opacity: 0.35; mix-blend-mode: multiply;
}
.field-blue h2, .field-blue h3 { color: var(--text-on-blue); }
.field-blue a { color: var(--text-on-blue); }
.field-blue a:hover { background: var(--ink-blue-deep); color: var(--text-on-blue); }
@media (max-width: 700px) { .section { padding-block: var(--space-8); } }

/* ---------- Hero ---------- */
.hero { padding-block: var(--space-8) var(--space-9); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: var(--space-8); align-items: center; }
.hero h1 { max-width: 15ch; font-size: clamp(2.4rem, 1.6rem + 3vw, 4rem); }
.hero .lede { margin-top: var(--space-5); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-4); margin-top: var(--space-6); align-items: center; }
.assure { list-style: none; padding: 0; margin-top: var(--space-6); display: grid; gap: var(--space-2); }
.assure li { display: flex; gap: var(--space-3); align-items: flex-start; font-weight: 700; }
.assure svg { width: 1.5rem; height: 1.5rem; flex: none; margin-top: 0.1em; }
.hero-date {
  display: inline-flex; align-items: baseline; gap: var(--space-3); flex-wrap: wrap;
  margin-bottom: var(--space-5); padding: 0.35rem 0.75rem;
  background: var(--ink-sun); color: var(--text); font-weight: 700;
}
.hero-date .data { font-weight: 600; }
@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); gap: var(--space-7); }
  .hero h1 { max-width: 16ch; }
}

/* ---------- Clip (video slot) ---------- */
.clip { position: relative; }
.clip-frame {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden;
  background: var(--paper-bright);
  border: var(--rule-w) solid var(--rule);
  border-radius: var(--radius-2);
  box-shadow: var(--shadow-sheet);
}
.clip-frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: transparent; z-index: 1; }
.clip-fallback { position: absolute; inset: 0; display: grid; place-items: center; background: var(--paper-bright); }
.clip-fallback svg { width: 100%; height: 100%; }
.clip[data-state="missing"] video { display: none; }
.clip[data-state="missing"] .clip-toggle { display: none; }
.clip figcaption { display: flex; gap: var(--space-3); align-items: flex-start; margin-top: var(--space-4); color: var(--text-soft); font-size: var(--step-0); }
.clip figcaption p { margin: 0; padding-top: 0.55rem; }
.clip-toggle {
  flex: none; width: 3rem; height: 3rem; display: grid; place-items: center;
  border: 2px solid var(--ink-blue); border-radius: var(--radius-1);
  background: var(--paper-bright); color: var(--ink-blue); cursor: pointer; padding: 0;
}
.clip-toggle:hover { background: var(--stock-blue); }
.clip-toggle svg { width: 1.25rem; height: 1.25rem; }
.clip-toggle .i-play { display: none; }
.clip-toggle[data-playing="false"] .i-play { display: block; }
.clip-toggle[data-playing="false"] .i-pause { display: none; }
.field-blue .clip figcaption { color: var(--text-on-blue-soft); }

/* ---------- Dates ---------- */
.dates .wrap { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: var(--space-8); align-items: start; }
.dates h2 { max-width: 14ch; }
.dates-intro p { margin-top: var(--space-5); color: var(--text-on-blue-soft); font-size: var(--step-1); line-height: 1.5; max-width: 30em; }
.leaves { display: grid; gap: var(--space-5); }
.leaf {
  display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: var(--space-5); align-items: stretch;
  background: var(--paper-bright); color: var(--text); padding: var(--space-4);
  box-shadow: 0 14px 30px -14px rgba(0, 0, 0, 0.45);
}
.leaf-date { display: grid; grid-template-rows: auto 1fr; text-align: center; border: 2px solid var(--rule); }
.leaf-month { background: var(--ink-sun); font-weight: 700; font-size: 1rem; padding: 0.25rem; border-bottom: 2px solid var(--rule); }
.leaf-day { font-family: var(--font-display); font-weight: 800; font-variation-settings: "wdth" 100; font-size: 4.25rem; line-height: 1; color: var(--ink-blue); display: grid; place-items: center; padding: var(--space-2) 0; }
.leaf-body { align-self: center; padding-right: var(--space-2); }
.leaf h3 { color: var(--ink-blue); font-size: var(--step-1); }
.leaf p { margin-top: var(--space-2); }
.dates-art { grid-column: 1 / -1; margin-top: var(--space-4); border: var(--rule-w) solid var(--paper-bright); border-radius: var(--radius-2); overflow: hidden; box-shadow: var(--shadow-sheet); background: var(--paper); }
.dates-art img { width: 100%; height: auto; }
.dates-note { margin-top: var(--space-6); font-size: var(--step-0); color: var(--text-on-blue); }
@media (max-width: 960px) { .dates .wrap { grid-template-columns: minmax(0, 1fr); gap: var(--space-7); } }
@media (max-width: 520px) {
  .leaf { grid-template-columns: 5.5rem minmax(0, 1fr); gap: var(--space-4); padding: var(--space-3); }
  .leaf-day { font-size: 3rem; }
  .leaf-month { font-size: 0.9rem; }
}

/* ---------- Steps ---------- */
.steps { list-style: none; padding: 0; display: grid; gap: var(--space-9); counter-reset: step; }
.step { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: var(--space-8); align-items: center; }
.step:nth-child(even) .step-text { order: 2; }
.step-num {
  display: inline-grid; place-items: center; width: 3.5rem; height: 3.5rem; margin-bottom: var(--space-5);
  font-family: var(--font-display); font-weight: 800; font-size: 1.9rem; color: var(--text);
  background: var(--ink-sun); border-radius: 50%;
}
.step-text p { margin-top: var(--space-4); max-width: 30em; }
.ticks { list-style: none; padding: 0; margin-top: var(--space-5); display: grid; gap: var(--space-3); }
.ticks li { display: grid; grid-template-columns: 1.5rem minmax(0, 1fr); gap: var(--space-3); }
.ticks svg { width: 1.5rem; height: 1.5rem; margin-top: 0.15em; }
.tag { display: inline-block; margin-top: var(--space-4); padding: 0.1rem 0.6rem; border: 2px solid var(--ink-blue); color: var(--ink-blue); font-weight: 700; font-size: 1rem; }
@media (max-width: 900px) {
  .steps { gap: var(--space-8); }
  .step { grid-template-columns: minmax(0, 1fr); gap: var(--space-6); }
  .step:nth-child(even) .step-text { order: 0; }
}

/* ---------- What you get (archive mock) ---------- */
.get-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: var(--space-8); align-items: start; }
.archive {
  background: var(--paper-bright); border: var(--rule-w) solid var(--rule); border-radius: var(--radius-2);
  box-shadow: var(--shadow-sheet); overflow: hidden;
}
.archive-bar { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3) var(--space-4); border-bottom: 2px solid var(--rule); background: var(--stock-blue); font-weight: 700; }
.archive-bar svg { width: 1.6rem; height: 1.6rem; flex: none; }
.archive-body { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.25fr); }
.tree { padding: var(--space-4); border-right: 2px solid var(--rule-soft); font-size: 1.05rem; }
.tree ul { list-style: none; padding: 0; margin: 0; }
.tree ul ul { padding-left: 1.4rem; border-left: 2px dotted var(--rule-soft); margin-left: 0.7rem; }
.tree li { padding: 0.18rem 0; }
.tree .row { display: flex; gap: 0.5rem; align-items: center; }
.tree svg { width: 1.25rem; height: 1.25rem; flex: none; }
.tree .count { margin-left: auto; color: var(--text-soft); font-family: var(--font-data); font-size: 0.95rem; }
.tree .open > .row { font-weight: 700; }
.tree .guide-file { margin-top: var(--space-3); padding-top: var(--space-3); border-top: 2px dotted var(--rule-soft); font-weight: 700; }
.finder { padding: var(--space-4); display: grid; gap: var(--space-4); align-content: start; }
.searchbox {
  display: flex; align-items: center; gap: var(--space-3);
  border: 2px solid var(--rule); border-radius: var(--radius-1); padding: 0.55rem 0.8rem; background: var(--paper-bright);
  font-family: var(--font-data); font-size: 1.05rem;
}
.searchbox svg { width: 1.3rem; height: 1.3rem; flex: none; color: var(--ink-blue); }
.searchbox .caret { display: inline-block; width: 2px; height: 1.2em; background: var(--ink-blue); margin-left: 1px; vertical-align: -0.2em; }
.results { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-2); }
.results li { padding: var(--space-2) var(--space-3); border: 2px solid var(--rule-soft); }
.results li.hit { border-color: var(--rule); }
.results .file { font-family: var(--font-data); font-size: 0.98rem; overflow-wrap: anywhere; }
.results .snip { display: block; color: var(--text-soft); font-size: 0.98rem; margin-top: 0.15rem; }
mark { background: var(--ink-sun); color: var(--text); padding: 0 0.12em; }
.results-note { font-size: 1rem; color: var(--text-soft); }
.archive-foot { padding: var(--space-3) var(--space-4); border-top: 2px solid var(--rule-soft); font-size: 1rem; color: var(--text-soft); }
.templates { margin-top: var(--space-7); }
.templates h3 { font-size: var(--step-1); }
.template-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-5); margin-top: var(--space-5); }
.template-row figure { background: var(--paper-bright); border: 2px solid var(--rule); padding: var(--space-3); }
.template-row svg { width: 100%; height: auto; }
.template-row figcaption { margin-top: var(--space-3); font-weight: 700; font-size: 1.05rem; }
.get-list { list-style: none; padding: 0; display: grid; gap: var(--space-5); }
.get-list li { display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); gap: var(--space-4); }
.get-list svg { width: 2.5rem; height: 2.5rem; }
.get-list strong { display: block; font-size: var(--step-1); line-height: 1.3; color: var(--text); }
.get-list span { display: block; margin-top: 0.2rem; color: var(--text-soft); }
.illus-note { margin-top: var(--space-4); font-size: 1rem; color: var(--text-soft); }
@media (max-width: 1000px) { .get-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) {
  .archive-body { grid-template-columns: minmax(0, 1fr); }
  .tree { border-right: 0; border-bottom: 2px solid var(--rule-soft); }
  .template-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .template-row figure:last-child { display: none; }
}

/* ---------- Pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-6); max-width: 64rem; }
.plan { background: var(--paper-bright); border: var(--rule-w) solid var(--rule); padding: var(--space-6); display: flex; flex-direction: column; }
.plan-top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--space-2) var(--space-5); padding-bottom: var(--space-5); border-bottom: 2px solid var(--rule); }
.plan h3 { font-size: var(--step-2); }
.price { font-family: var(--font-display); font-weight: 800; font-variation-settings: "wdth" 100; font-size: clamp(2.75rem, 2rem + 2.5vw, 4rem); line-height: 1; color: var(--ink-blue); }
.plan-sub { margin-top: var(--space-4); font-weight: 700; }
.plan .ticks { margin-top: var(--space-4); margin-bottom: var(--space-6); }
.plan .btn { margin-top: auto; align-self: flex-start; }
.plan-complete { background: var(--stock-sun); border-color: var(--ink-blue); box-shadow: inset 0 0 0 2px var(--ink-blue); }
.fees { margin-top: var(--space-7); max-width: 64rem; }
.fees h3 { font-size: var(--step-1); margin-bottom: var(--space-3); }
.fee { display: flex; align-items: baseline; gap: var(--space-3); padding: var(--space-3) 0; border-bottom: 2px dotted var(--rule-soft); }
.fee .what { flex: 0 1 auto; }
.fee .what span { display: block; color: var(--text-soft); font-size: 1rem; }
.fee .leader { flex: 1 1 2rem; border-bottom: 2px dotted var(--text-soft); transform: translateY(-0.35em); min-width: 1.5rem; }
.fee .amt { flex: none; font-weight: 700; font-variant-numeric: tabular-nums; }
.pay-note { margin-top: var(--space-6); max-width: 44rem; }
@media (max-width: 800px) { .plans { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) {
  .plan { padding: var(--space-5); }
    .fee { flex-wrap: wrap; }
  .fee .leader { display: none; }
  .fee .amt { width: 100%; }
}

/* ---------- Trust ---------- */
.trust-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: var(--space-8); align-items: start; }
.person { background: var(--paper-bright); border: var(--rule-w) solid var(--rule); padding: var(--space-5); }
.person-photo {
  aspect-ratio: 4 / 5; border: 2px dashed var(--ink-blue); display: grid; place-items: center; text-align: center;
  background: var(--stock-blue); color: var(--ink-blue); font-weight: 700; position: relative; overflow: hidden;
}
.person-photo::before { content: ""; position: absolute; inset: 0; background: var(--halftone); background-size: 9px 9px; opacity: 0.18; }
.person-mark { aspect-ratio: 5 / 3; border-style: solid; }
.person-mark svg { position: relative; width: 38%; height: auto; aspect-ratio: 1; }
.person-photo span { position: relative; background: var(--paper-bright); padding: 0.3rem 0.7rem; border: 2px solid var(--ink-blue); }
.person-name { margin-top: var(--space-4); font-family: var(--font-display); font-weight: 800; font-variation-settings: "wdth" 112; font-size: var(--step-2); color: var(--ink-blue); line-height: 1.1; }
.placeholder { background: repeating-linear-gradient(-45deg, var(--ink-sun-soft) 0 6px, transparent 6px 12px); padding: 0 0.2em; }
.person-role { color: var(--text-soft); }
.person .phone { margin-top: var(--space-5); padding-top: var(--space-4); border-top: 2px solid var(--rule); }
.phone-label { display: block; color: var(--text-soft); font-size: 1rem; }
.phone-num { font-family: var(--font-display); font-weight: 800; font-variation-settings: "wdth" 100; font-size: var(--step-2); text-decoration: none; display: inline-block; padding-block: 0.2rem; }
.promises { list-style: none; padding: 0; display: grid; gap: var(--space-6); }
.promises li { display: grid; grid-template-columns: 3rem minmax(0, 1fr); gap: var(--space-5); padding-bottom: var(--space-6); border-bottom: 2px solid var(--rule-soft); }
.promises li:last-child { border-bottom: 0; padding-bottom: 0; }
.promises svg { width: 3rem; height: 3rem; }
.promises h3 { font-size: var(--step-1); }
.promises p { margin-top: var(--space-2); max-width: 34em; }
@media (max-width: 900px) { .trust-grid { grid-template-columns: minmax(0, 1fr); } .person { max-width: 26rem; } }

/* ---------- Response card (form) ---------- */
.check-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: var(--space-8); align-items: start; }
.check-intro p { margin-top: var(--space-5); }
.next { list-style: none; padding: 0; margin-top: var(--space-6); display: grid; gap: var(--space-4); counter-reset: next; }
.next li { display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); gap: var(--space-4); counter-increment: next; }
.next li::before {
  content: counter(next); display: grid; place-items: center; width: 2.5rem; height: 2.5rem;
  border: 2px solid var(--ink-blue); border-radius: 50%; font-weight: 700; color: var(--ink-blue);
}
.check-intro .call { margin-top: var(--space-6); padding-top: var(--space-5); border-top: 2px solid var(--rule-soft); }
.card {
  position: relative; background: var(--stock-sun); padding: var(--space-7) var(--space-6) var(--space-6);
  box-shadow: var(--shadow-sheet);
}
.card::before { /* perforation */
  content: ""; position: absolute; left: 0; right: 0; top: 1.1rem; border-top: 2px dashed var(--text);
}
.card .scissors { position: absolute; top: 0.35rem; left: var(--space-5); width: 1.6rem; height: 1.6rem; background: var(--stock-sun); color: var(--text); padding: 0 0.15rem; box-sizing: content-box; }
.card h3 { font-size: var(--step-2); color: var(--text); }
.card .card-sub { margin-top: var(--space-2); color: var(--text-soft); }
.form { display: grid; gap: var(--space-5); margin-top: var(--space-6); }
.field { display: grid; gap: var(--space-2); }
.field label { font-weight: 700; }
.field .hint { font-size: 1rem; color: var(--text-soft); }
input, select, textarea {
  font: inherit; color: var(--text); width: 100%;
  min-height: var(--tap); padding: 0.7rem 0.9rem;
  background: var(--paper-bright); border: 2px solid var(--text); border-radius: var(--radius-1);
}
textarea { min-height: 8rem; resize: vertical; line-height: 1.5; }
select {
  appearance: none; -webkit-appearance: none; padding-right: 3rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f52a0' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.9rem center; background-size: 1.4rem;
}
::placeholder { color: #5a6380; opacity: 1; }
input:hover, select:hover, textarea:hover { border-color: var(--ink-blue); }
input:focus-visible, select:focus-visible, textarea:focus-visible { border-color: var(--ink-blue); }
input:user-invalid { border-color: #a4262c; box-shadow: inset 0 0 0 1px #a4262c; }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5); }
.form .btn { width: 100%; font-size: var(--step-1); min-height: 4rem; }
.form-foot { font-size: 1rem; color: var(--text-soft); }
.hidden { display: none; }
@media (max-width: 960px) { .check-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .two { grid-template-columns: minmax(0, 1fr); } .card { padding-inline: var(--space-4); } }

/* ---------- FAQ ---------- */
.faq { max-width: 50rem; border-top: var(--rule-w) solid var(--rule); }
.faq details { border-bottom: var(--rule-w) solid var(--rule); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: var(--space-5);
  padding: var(--space-5) 0; font-weight: 700; font-size: var(--step-1); line-height: 1.35; min-height: var(--tap);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--ink-blue); }
.faq summary svg { width: 2rem; height: 2rem; flex: none; color: var(--ink-blue); transition: transform var(--dur-2) var(--ease-out); }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq .answer { padding-bottom: var(--space-6); max-width: 40em; }
@media (prefers-reduced-motion: reduce) { .faq summary svg { transition: none; } }

/* ---------- Closing band + footer ---------- */
.close { padding-block: var(--space-8); }
.close .wrap { display: flex; flex-wrap: wrap; gap: var(--space-5) var(--space-7); align-items: center; justify-content: space-between; }
.close h2 { max-width: 18ch; }
.close-actions { display: flex; flex-wrap: wrap; gap: var(--space-4); align-items: center; }
.site-foot { color: var(--text-on-blue-soft); padding-block: var(--space-8) var(--space-7); font-size: 1rem; }
.site-foot .wrap { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.1fr); gap: var(--space-6); }
.site-foot a { color: #ffffff; }
.site-foot a:hover { background: var(--ink-blue-deep); color: #fff; }
.site-foot .brand { color: #ffffff; }
.site-foot h2 { font-size: 1.1rem; color: #ffffff; font-family: var(--font-body); font-variation-settings: normal; font-weight: 700; letter-spacing: 0; }
.site-foot ul { list-style: none; padding: 0; margin-top: var(--space-3); display: grid; gap: var(--space-2); }
.site-foot .legal { grid-column: 1 / -1; padding-top: var(--space-5); border-top: 1px solid rgba(255,255,255,.35); color: var(--text-on-blue-soft); }
.site-foot p + p { margin-top: var(--space-3); }
@media (max-width: 1060px) { .site-foot .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 800px) { .site-foot .wrap { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Guide (article) ---------- */
.article-head { padding-block: var(--space-8) var(--space-7); border-bottom: var(--rule-w) solid var(--rule); }
.article-head h1 { max-width: 20ch; font-size: clamp(2.25rem, 1.7rem + 2.6vw, 4rem); }
.article-head .lede { margin-top: var(--space-5); }
.byline { margin-top: var(--space-5); color: var(--text-soft); font-size: 1rem; }
.article-layout { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 42rem); gap: var(--space-8); padding-block: var(--space-7) var(--space-9); }
.toc { position: sticky; top: var(--space-5); align-self: start; font-size: 1rem; }
.toc h2 { font: 700 1rem/1.3 var(--font-body); color: var(--text-soft); letter-spacing: 0; font-variation-settings: normal; }
.toc ol { padding-left: 1.3rem; margin-top: var(--space-3); display: grid; gap: var(--space-2); }
.toc a { text-decoration: none; font-weight: 700; }
.toc a:hover { text-decoration: underline; }
.prose > * + * { margin-top: var(--space-5); }
.prose h2 { font-size: var(--step-2); margin-top: var(--space-8); scroll-margin-top: var(--space-5); }
.prose ol, .prose ul { padding-left: 1.4rem; display: grid; gap: var(--space-3); }
.prose li::marker { color: var(--ink-blue); font-weight: 700; }
.prose .howto { list-style: none; padding: 0; counter-reset: h; }
.prose .howto li { display: grid; grid-template-columns: 2.75rem minmax(0, 1fr); gap: var(--space-4); counter-increment: h; align-items: start; }
.prose .howto li::before {
  content: counter(h); display: grid; place-items: center; width: 2.75rem; height: 2.75rem;
  background: var(--ink-sun); border-radius: 50%; font-family: var(--font-display); font-weight: 800; font-size: 1.3rem;
}
.prose .howto li > span { padding-top: 0.35rem; }
.notice-blue { padding: var(--space-6); }
.notice-blue p { color: var(--text-on-blue); }
.notice-blue h2 { margin-top: 0 !important; font-size: var(--step-1); }
.notice-blue .when { display: grid; gap: var(--space-4); margin-top: var(--space-4); }
.notice-blue .when div { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: var(--space-4); align-items: start; }
.notice-blue .when b { background: var(--ink-sun); color: var(--text); text-align: center; padding: 0.3rem 0.4rem; font-family: var(--font-display); line-height: 1.15; font-size: 1.05rem; }
.aside-card { background: var(--stock-sun); padding: var(--space-6); position: relative; }
.aside-card h2 { margin-top: 0 !important; color: var(--text); }
.aside-card p { margin-top: var(--space-4); }
.aside-card .btn { margin-top: var(--space-5); }
.caution { background: var(--stock-blue); padding: var(--space-4) var(--space-5); }
@media (max-width: 900px) {
  .article-layout { grid-template-columns: minmax(0, 1fr); gap: var(--space-6); }
  .toc { position: static; background: var(--stock-blue); padding: var(--space-5); }
}

/* ---------- Thanks ---------- */
.thanks { padding-block: var(--space-9); }
.thanks .card { max-width: 44rem; }
.thanks h1 { color: var(--text); }
.thanks .card p { margin-top: var(--space-4); }

/* ---------- File counter (/count-my-files/) ---------- */
.counter-hero .wrap { align-items: start; }
.picker { display: grid; gap: var(--space-4); }
.picker-note { background: var(--stock-sun); padding: var(--space-4) var(--space-5); }
.mobile-note { display: none; }
@media (hover: none) and (pointer: coarse) { .mobile-note { display: block; } }
.drop {
  background: var(--paper-bright); border: var(--rule-w) solid var(--rule); border-radius: var(--radius-2);
  box-shadow: var(--shadow-sheet); padding: var(--space-7) var(--space-6); text-align: center;
  outline: 3px dashed var(--ink-blue); outline-offset: -14px;
  transition: background var(--dur-1) var(--ease-out);
}
.drop.is-over { background: var(--stock-sun); }
.drop-icon { width: 4.5rem; height: 4.5rem; margin: 0 auto var(--space-4); color: var(--ink-blue); }
.drop-title { font-size: var(--step-2); line-height: 1.12; max-width: 16ch; margin-inline: auto; }
.drop-actions { display: flex; flex-direction: column; align-items: center; gap: var(--space-4); margin-top: var(--space-6); }
.btn-big { font-size: var(--step-1); min-height: 4rem; padding-inline: 2.25rem; }
.drop-or { margin-top: var(--space-5); color: var(--text-soft); }
.drop .picker-note { margin-top: var(--space-5); text-align: left; }
.working:not(.hidden) { margin-top: var(--space-6); display: grid; gap: var(--space-3); justify-items: center; }
.working-label { font-weight: 700; font-size: var(--step-1); }
.working progress {
  -webkit-appearance: none; appearance: none; width: 100%; height: 1.75rem;
  border: var(--rule-w) solid var(--rule); border-radius: var(--radius-1); background: var(--paper); overflow: hidden;
}
.working progress::-webkit-progress-bar { background: var(--paper); }
.working progress::-webkit-progress-value { background: var(--ink-blue); }
.working progress::-moz-progress-bar { background: var(--ink-blue); }
.working-count { color: var(--text-soft); min-height: 1.6em; }
.picker-hint { font-size: 1rem; color: var(--text-soft); }
kbd { font-family: var(--font-data); font-size: 0.9em; padding: 0 0.3em; border: 2px solid var(--rule-soft); border-radius: var(--radius-1); background: var(--paper-bright); }
/* Headings get focus from script (so screen readers start at the results), not from the keyboard: no ring. */
.results-section h2:focus, .results-section h2:focus-visible, #empty-title:focus, #empty-title:focus-visible { outline: none; box-shadow: none; }
.tally { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-4); margin-bottom: var(--space-6); }
.tile { background: var(--paper-bright); border: var(--rule-w) solid var(--rule); padding: var(--space-5); display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: var(--space-2); }
.tile dt { font-weight: 700; }
.tile dd {
  margin: 0; font-family: var(--font-display); font-weight: 800; font-variation-settings: "wdth" 100;
  font-size: clamp(2.25rem, 1.8rem + 1.8vw, 3.5rem); line-height: 1; color: var(--ink-blue); font-variant-numeric: tabular-nums;
}
.count-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: var(--space-6); align-items: start; }
.sheet-stack { display: grid; gap: var(--space-6); }
.sheet { background: var(--paper-bright); border: var(--rule-w) solid var(--rule); padding: var(--space-6); }
.sheet h3 { font-size: var(--step-1); }
.sheet h3 + p, .sheet h3 + dl { margin-top: var(--space-3); }
.sheet-note { margin-top: var(--space-3); font-size: 1rem; color: var(--text-soft); }
.years { width: 100%; border-collapse: collapse; margin-top: var(--space-4); }
.years th { width: 4.5rem; text-align: left; font-weight: 600; padding: 0.3rem var(--space-3) 0.3rem 0; font-size: 1.05rem; }
.years td { padding: 0.3rem 0; }
.years tr + tr { border-top: 1px solid var(--rule-soft); }
.years td { display: flex; align-items: center; gap: var(--space-3); }
.bar-track { flex: 1; height: 1.35rem; }
.bar { display: block; height: 100%; min-width: 0; background: var(--ink-blue); }
.years .n { flex: none; min-width: 3.25rem; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.span-list { display: grid; gap: var(--space-4); }
.span-list dt { font-weight: 700; color: var(--text-soft); font-size: 1rem; }
.span-list dd { margin: 0; }
.span-list dd strong { display: block; font-family: var(--font-display); font-variation-settings: "wdth" 100; font-weight: 800; font-size: var(--step-1); color: var(--ink-blue); line-height: 1.2; }
.span-list dd .data, .file-list { font-size: 0.95rem; overflow-wrap: anywhere; color: var(--text-soft); }
.more-details { margin-top: var(--space-4); }
.more-details summary { cursor: pointer; font-weight: 700; color: var(--ink-blue); min-height: 3rem; display: flex; align-items: center; }
.more-details summary:hover { color: var(--ink-blue-deep); text-decoration: underline; }
.group-head { margin-top: var(--space-3); font-weight: 700; font-size: 1rem; }
.file-list { list-style: none; padding: 0 0 0 var(--space-4); margin-top: var(--space-2); border-left: 2px dotted var(--rule-soft); display: grid; gap: var(--space-1); }
.file-list .more { font-family: var(--font-body); }
.empty-sheet { max-width: 50rem; }
.empty-sheet h2 { font-size: var(--step-2); }
.empty-sheet > p { margin-top: var(--space-4); }
.est-fees { margin-top: var(--space-5); border-top: 2px solid var(--rule); }
.est-small { margin-top: var(--space-5); font-weight: 700; }
.btn-block { width: 100%; margin-top: var(--space-6); font-size: var(--step-1); min-height: 4rem; }
.card .form-foot { margin-top: var(--space-3); }
.again-row { margin-top: var(--space-5); }
@media (max-width: 960px) { .count-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 800px) { .tally { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) {
  .drop { padding: var(--space-6) var(--space-4); outline-offset: -10px; }
  .sheet { padding: var(--space-5) var(--space-4); }
  .tile { padding: var(--space-4); }
  .tile dd { font-size: 2rem; white-space: nowrap; }
  .btn-big { width: 100%; }
}

/* ---------- Guides (SEO pages) ---------- */
.prose h3 { font-size: var(--step-1); margin-top: var(--space-6); }
.prose .faq { margin-top: var(--space-5); }
.prose .archive > .tree { border-right: 0; }
.sizes { width: 100%; border-collapse: collapse; background: var(--paper-bright); border: var(--rule-w) solid var(--rule); font-variant-numeric: tabular-nums; }
.sizes th, .sizes td { text-align: left; padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--rule-soft); }
.sizes thead th { background: var(--stock-blue); border-bottom: 2px solid var(--rule); }
.guide-list a { font-weight: 700; }
.faq-more { margin-top: var(--space-6); max-width: 50rem; }
.faq-more ul { list-style: none; padding: 0; margin-top: var(--space-3); display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); }
.faq-more a { font-weight: 700; }

@media print {
  .site-head .btn, .clip, .site-nav { display: none; }
  .field-blue { background: none; color: var(--text); }
}
