/* Fonts (Zilla Slab + Public Sans + IBM Plex Mono) load via a <link> in each
   page's <head> — NOT @import. @import font loads render-block and proved
   unreliable on production (headings fell back to serif). Keep them in <head>. */

/* ============================================
   POSTAL / COUNTY-RECORDS REBRAND (Jun 26 2026)
   The whole site re-skins from these tokens. Two-color logic:
   GREEN (--stamp/--accent) = what you click; RED (--postmark) =
   the freshness mark only. Everything else is kraft + ink.
   Display = Zilla Slab · Body = Public Sans · Data = IBM Plex Mono.
   ============================================ */

/* ============================================
   CSS RESET
   ============================================ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { line-height: 1.6; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden; }
img, svg, video { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; }
h1, h2, h3, h4, h5, h6 { line-height: 1.1; overflow-wrap: break-word; }
p { overflow-wrap: break-word; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* ============================================
   DESIGN TOKENS
   ============================================ */
:root {
  /* Legacy token names re-pointed to Ledger values (Prompt 6 sweep).
     The old palette (neon #00D26A, navy #1a1a2e) and the old fonts
     (Space Grotesk, Manrope) no longer exist anywhere in the system —
     these names are aliases kept so unrebuilt markup keeps working. */
  --surface: #E4D5B7;
  --surface-container-low: #EFE6CF;
  --surface-container: #EFE6CF;
  --surface-container-lowest: #E4D5B7;
  --surface-container-high: #EFE6CF;
  --on-surface: #211C15;
  --on-surface-variant: #6B5E47;
  --on-surface-muted: rgba(33, 28, 21, 0.5);
  --dark: #211C15;
  --accent: #1F4A39;
  --accent-dark: #1F4A39;
  --on-accent: #EFE6CF;
  --outline-variant: rgba(194, 175, 134, 0.5);

  --font-headline: 'Zilla Slab', Georgia, serif;
  --font-body: 'Public Sans', system-ui, -apple-system, sans-serif;

  --tracking-tight: -0.04em;
  --tracking-tighter: -0.05em;

  --shadow-ambient: 0 20px 40px rgba(27, 28, 27, 0.05);
  --shadow-card: 0 40px 80px -15px rgba(0, 0, 0, 0.03);
  --shadow-nav: 0 40px 60px -5px rgba(27, 28, 27, 0.04);

  --radius: 3px;
  --radius-sm: 2px;

  --max-width: 1440px;
  --px: clamp(1.5rem, 4vw, 3rem);

  --text-hero: clamp(3rem, 8vw, 6rem);
  --text-display: clamp(2.25rem, 6.5vw, 5rem);
  --text-heading: clamp(1.625rem, 3.5vw, 2.75rem);
  --text-subheading: clamp(1.25rem, 2.5vw, 1.625rem);
  --text-body-lg: clamp(1.0625rem, 1.8vw, 1.3125rem);
  --text-body: clamp(0.9375rem, 1.4vw, 1.0625rem);
  --text-small: clamp(0.6875rem, 1vw, 0.8125rem);

  --ease-smooth: cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-button: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ============================================
   BASE STYLES
   ============================================ */
body {
  font-family: var(--font-body);
  background: var(--surface);
  color: var(--on-surface);
}

::selection {
  background: var(--accent);
  color: var(--on-accent);
}

.headline {
  font-family: var(--font-headline);
  letter-spacing: var(--tracking-tight);
  font-weight: 700;
}

/* ============================================
   LAYOUT
   ============================================ */
.container {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--px);
}

.section-light {
  background: var(--surface);
  padding-block: clamp(3.5rem, 7vw, 5.5rem);
}

.section-dark {
  background: var(--dark);
  color: var(--surface);
  padding-block: clamp(5rem, 12vw, 12rem);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: var(--on-accent);
  padding: 1.125rem 2.25rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: var(--tracking-tight);
  border: none;
  cursor: pointer;
  transition: all 450ms var(--ease-smooth);
  white-space: nowrap;
}
.btn-primary:hover {
  background: var(--dark);
}
.btn-primary:active {
  transform: scale(0.97);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--dark);
  color: var(--surface);
  padding: 1.125rem 2.25rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: var(--tracking-tight);
  border: none;
  cursor: pointer;
  transition: all 450ms var(--ease-smooth);
  white-space: nowrap;
}

/* ============================================
   ANIMATIONS
   ============================================ */
.js-enabled .fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.45s var(--ease-smooth), transform 0.45s var(--ease-smooth);
  will-change: opacity, transform;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .js-enabled .fade-in { opacity: 1; transform: none; transition: none; }
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(252, 249, 248, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: padding 300ms var(--ease-smooth), box-shadow 300ms var(--ease-smooth);
}
.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--max-width);
  margin-inline: auto;
  padding: 1.5rem var(--px);
  transition: padding 300ms var(--ease-smooth);
}
.nav.scrolled .nav-inner {
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.nav.scrolled {
  box-shadow: var(--shadow-nav);
}
.nav-logo {
  font-family: var(--font-headline);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark);
  letter-spacing: -0.03em;
}
.nav-links {
  display: none;
  align-items: center;
  gap: 2.5rem;
}
.nav-links a {
  font-family: var(--font-headline);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--dark);
  opacity: 0.6;
  transition: opacity 300ms;
}
.nav-links a:hover { opacity: 1; }
.nav-links a.active { opacity: 1; }
.nav-cta { display: none; }
.menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: all 300ms var(--ease-smooth);
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--surface);
  z-index: 99;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 3rem var(--px);
  transform: translateX(100%);
  transition: transform 400ms var(--ease-smooth);
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu a {
  font-family: var(--font-headline);
  font-size: 2rem;
  font-weight: 700;
  color: var(--dark);
  padding: 0.75rem 0;
  letter-spacing: var(--tracking-tight);
}
.mobile-menu .btn-primary {
  margin-top: 2rem;
}
body.no-scroll { overflow: hidden; }

@media (min-width: 768px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .menu-toggle { display: none; }
}

/* ============================================
   PAGE HERO (shared across inner pages)
   ============================================ */
.page-hero {
  min-height: 48vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 7rem;
  padding-bottom: 3rem;
}
/* Ledger-ified shared hero: mono kicker (no pill) + serif display.
   Restyles every legacy page still on .page-hero-* in one place. */
.page-hero-tag {
  display: block;
  padding: 0;
  background: none;
  border-radius: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 500;
  color: var(--ink);
  opacity: 0.78;
  margin-bottom: 18px;
}
.page-hero-headline {
  font-family: var(--font-headline);
  font-weight: 400;
  font-size: clamp(2.4rem, 6.5vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
  max-width: 980px;
  margin-bottom: 1.5rem;
  color: var(--ink);
}
.page-hero-headline em { font-style: italic; color: var(--stamp); }
.page-hero-sub {
  font-family: var(--font-headline);
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  color: var(--ink);
  opacity: 0.86;
  max-width: 680px;
  line-height: 1.55;
}

/* ============================================
   COMMON TEXT UTILITIES
   ============================================ */
.text-link {
  font-family: var(--font-headline);
  font-weight: 700;
  color: var(--accent-dark);
  font-size: 1rem;
  transition: color 350ms;
}
.text-link:hover { color: var(--accent); }
.text-link .arrow {
  display: inline-block;
  transition: transform 350ms;
  margin-left: 0.25rem;
}
.text-link:hover .arrow { transform: translateX(4px); }

.section-label {
  font-size: var(--text-small);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--on-surface-muted);
  font-weight: 700;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

/* ============================================
   FINAL CTA (shared across all pages)
   ============================================ */
.final-cta {
  text-align: center;
  padding-block: clamp(6rem, 12vw, 10rem);
}
.final-cta h2 {
  font-size: var(--text-display);
  max-width: 720px;
  margin-inline: auto;
  margin-bottom: 2rem;
  line-height: 1.1;
  color: var(--surface);
}
.final-cta .btn-primary {
  margin-bottom: 1.5rem;
}
.cta-sub {
  font-size: var(--text-body);
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.02em;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--dark);
  color: var(--surface);
  padding-block: clamp(4rem, 8vw, 6rem);
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.footer-logo {
  font-family: var(--font-headline);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.footer-copy {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 0.03em;
}
.footer-groups {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem 4rem;
}
.footer-group h4,
.footer-group .footer-heading {
  font-family: var(--font-headline);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 1rem;
}
.footer-group a {
  display: block;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.4);
  padding: 0.25rem 0;
  transition: color 300ms;
  letter-spacing: 0.02em;
}
.footer-group a:hover {
  color: var(--accent);
}

@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
}

/* ============================================
   STICKY BOTTOM CTA BAR (mobile-only)
   ============================================ */
.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--dark);
  padding: 0.85rem var(--px);
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  box-shadow: 0 -12px 32px rgba(0, 0, 0, 0.18);
  z-index: 90;
  transform: translateY(100%);
  transition: transform 350ms var(--ease-smooth);
}
.sticky-cta.visible {
  transform: translateY(0);
}
.sticky-cta-text {
  font-family: var(--font-headline);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--surface);
  letter-spacing: var(--tracking-tight);
  flex: 1;
  min-width: 0;
}
.sticky-cta-text span {
  display: block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 0.125rem;
}
.sticky-cta .btn-primary {
  padding: 0.75rem 1.5rem;
  font-size: 0.9375rem;
  flex-shrink: 0;
}
.sticky-cta-secondary {
  display: block;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 0.25rem;
  letter-spacing: 0.02em;
}
.sticky-cta-secondary:hover {
  color: var(--accent);
}
@media (max-width: 767px) {
  .sticky-cta {
    display: flex;
  }
}
@media (max-width: 480px) {
  .sticky-cta {
    padding: 0.75rem 1rem;
  }
  .sticky-cta-text span {
    display: none;
  }
  .sticky-cta-text {
    font-size: 0.875rem;
  }
  .sticky-cta .btn-primary {
    padding: 0.625rem 1rem;
    font-size: 0.8125rem;
  }
}

/* ════════════════════════════════════════════════════════════
   THE LEDGER DESIGN SYSTEM
   Courthouse-ledger language for the site rebuild (see CLAUDE.md).
   ADDITIVE: tokens + components below are scoped so unmigrated
   pages keep working. Old tokens above are removed in Prompt 6.

   Pages on this system load fonts with:
   <link rel="preconnect" href="https://fonts.googleapis.com">
   <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
   <link href="https://fonts.googleapis.com/css2?family=Source+Serif+4:ital,opsz,wght@0,8..60,400;0,8..60,600;1,8..60,400;1,8..60,600&family=IBM+Plex+Mono:wght@400;500;600&display=swap" rel="stylesheet">
   ════════════════════════════════════════════════════════════ */
:root {
  --paper:       #E4D5B7;   /* kraft — page surface */
  --paper-shade: #EFE6CF;   /* manila — raised cards/panels */
  --ink:         #211C15;
  --rule:        #C2AF86;
  --stamp:       #1F4A39;   /* GREEN — links / actions / accent (was the green accent) */
  --stamp-tint:  rgba(31, 74, 57, 0.10);
  --flag:        #A2402E;   /* red, aligned to the postmark red */
  --postmark:    #A2402E;   /* the dated postmark + focus rings + rare emphasis ONLY */
  --green:       #1F4A39;   /* explicit alias */
  --muted:       #6B5E47;   /* secondary text */
  --on-dark:     #EFE6CF;   /* text on ink/green */

  /* Global safety-net aliases — so any page referencing legacy var names
     (privacy/terms used an undefined --text; older pages use --bg/--emerald)
     resolves to postal values instead of a browser default. Pages that define
     these inline (e.g. how-it-works) override locally, so no conflict. */
  --text: #211C15; --bg: #E4D5B7; --bg-card: #EFE6CF; --bg-elevated: #EFE6CF; --bg-tint: #EFE6CF;
  --border: #C2AF86; --border-strong: #C2AF86; --text-muted: #6B5E47; --text-subtle: rgba(33,28,21,0.5);
  --emerald: #1F4A39; --emerald-deep: #1F4A39; --emerald-tint: rgba(31,74,57,0.08); --emerald-tint-strong: rgba(31,74,57,0.16);

  --font-display: 'Zilla Slab', Georgia, serif;
  --font-serif:   'Zilla Slab', Georgia, serif;  /* display alias — slab, not editorial serif */
  --font-body:    'Public Sans', system-ui, -apple-system, sans-serif;
  --font-mono:    'IBM Plex Mono', ui-monospace, monospace;

  --ledger-gutter: clamp(20px, 4vw, 32px);
}

/* ───────── Page scaffold ─────────
   Add class="ledger-page" to <body> on migrated pages. */
body.ledger-page {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  font-size: 1.0625rem;
  line-height: 1.6;
}
.ledger-page ::selection { background: var(--stamp); color: var(--paper); }
.ledger-page a { color: var(--stamp); }

.lwrap { max-width: 1100px; margin: 0 auto; padding: 0 var(--ledger-gutter); }

.lsection { padding: clamp(56px, 9vw, 96px) 0; }
.lsection--paper { background: var(--paper); }
.lsection--shade { background: var(--paper-shade); }
.lsection--ink   { background: var(--ink); color: var(--paper); }
.lsection--rule-top { border-top: 1px solid var(--rule); }

/* ───────── Type ───────── */
.kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink);
  display: block;
  margin-bottom: 18px;
}
.lsection--ink .kicker { color: var(--paper); opacity: 0.75; }

.ledger-display {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.4rem, 6.5vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin-bottom: 24px;
}
.ledger-h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.012em;
  margin-bottom: 20px;
}
.ledger-display em, .ledger-h2 em { font-style: italic; color: var(--stamp); }
.lsection--ink .ledger-display em, .lsection--ink .ledger-h2 em { color: var(--stamp-tint); }

.ledger-lead {
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  line-height: 1.55;
  max-width: 680px;
}
.lsection--ink .ledger-lead { color: var(--paper); }

/* Timestamp microcopy — provenance lines under data */
.ledger-caption {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--ink);
  opacity: 0.66;
  margin-top: 14px;
}
.ledger-caption a { text-decoration: underline; text-underline-offset: 2px; }

/* Numbers are the brand: every number on the site sits in mono */
.mono, .num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

/* ───────── STAMP ───────── */
.stamp {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--stamp);
  border: 1.5px solid var(--stamp);
  border-radius: 3px;
  padding: 7px 13px;
  transform: rotate(-2deg);
  /* slight ink-bleed feel — soft edge, no drop shadow */
  box-shadow: inset 0 0 0 0.6px rgba(30, 107, 69, 0.45);
  white-space: nowrap;
}

/* ───────── LEDGER TABLE ───────── */
.ledger-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.ledger-table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}
.ledger-table th {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  text-align: left;
  color: var(--ink);
  opacity: 0.62;
  padding: 12px 16px 10px 0;
  border-bottom: 1px solid var(--rule);
  white-space: nowrap;
}
.ledger-table td {
  font-family: var(--font-mono);
  font-size: 0.92rem;
  padding: 16px 16px 16px 0;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}
.ledger-table td.rowlabel {
  font-family: var(--font-serif);
  font-size: 1.05rem;
}
.ledger-table tfoot td {
  border-bottom: none;
  border-top: 1px solid var(--rule);
  font-size: 0.85rem;
  padding-top: 14px;
}
.ledger-table .ta-r { text-align: right; padding-right: 0; padding-left: 16px; }

/* lift chip — stamp-tint pill on a lift cell */
.lift-chip {
  display: inline-block;
  font-family: var(--font-mono);
  background: var(--stamp-tint);
  border-radius: 3px;
  padding: 3px 9px;
  font-weight: 500;
}
.lift-chip--hi { color: var(--stamp); font-weight: 600; }

/* ───────── RECEIPT ───────── */
.receipt {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: clamp(24px, 4vw, 36px) clamp(20px, 3.5vw, 32px);
  max-width: 520px;
  font-size: 0.95rem;
}
.receipt-title {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 18px;
}
.receipt-line {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 5px 0;
}
.receipt-line .receipt-label { flex-shrink: 0; }
.receipt-line .receipt-dots {
  flex: 1;
  border-bottom: 2px dotted var(--rule);
  transform: translateY(-4px);
  min-width: 24px;
}
.receipt-line .receipt-amt { flex-shrink: 0; }
.receipt-rule { border: none; border-top: 1px dashed var(--rule); margin: 10px 0; }
.receipt-total { font-weight: 600; }

/* ───────── BUTTONS ───────── */
.btn-ink {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  background: var(--green);
  color: var(--on-dark);
  border: 1px solid var(--green);
  border-radius: 4px;
  box-shadow: inset 0 0 0 1px rgba(239, 230, 207, 0.14);
  padding: 13px 26px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.btn-ink:hover { background: var(--ink); border-color: var(--ink); color: var(--on-dark); }
/* on ink sections the fill inverts to kraft */
.lsection--ink .btn-ink { background: var(--on-dark); color: var(--ink); border-color: var(--on-dark); box-shadow: none; }
.lsection--ink .btn-ink:hover { background: var(--green); border-color: var(--green); color: var(--on-dark); }

.link-mono {
  font-family: var(--font-mono);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--stamp);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.link-mono:hover { color: var(--ink); }
.lsection--ink .link-mono { color: var(--stamp-tint); }
.lsection--ink .link-mono:hover { color: var(--paper); }

/* ───────── ACCORDION (the "Open: ..." rows from /how-it-works) ───────── */
.collapse-section {
  margin-top: clamp(28px, 4vw, 36px);
  border: 1px solid var(--rule);
  border-radius: 3px;
  background: var(--paper);
  overflow: hidden;
}
.collapse-toggle {
  width: 100%;
  background: transparent;
  border: none;
  padding: 18px 22px;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  color: var(--ink);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 18px;
  transition: background 0.15s;
}
.collapse-toggle:hover { background: var(--paper-shade); }
.collapse-toggle-text { display: flex; flex-direction: column; gap: 4px; }
.collapse-toggle-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.1rem, 2.4vw, 1.35rem);
  line-height: 1.25;
}
.collapse-toggle-title em { font-style: italic; color: var(--stamp); }
.collapse-toggle-hint {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.45;
  opacity: 0.66;
}
.collapse-toggle-icon {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 1.4rem;
  line-height: 1;
  flex-shrink: 0;
  transition: transform 0.2s;
}
.collapse-toggle[aria-expanded="true"] .collapse-toggle-icon { transform: rotate(45deg); }
.collapse-content {
  padding: 22px 22px 26px;
  border-top: 1px solid var(--rule);
  font-size: 1rem;
  line-height: 1.65;
}
.collapse-content[hidden] { display: none; }
.collapse-content p + p { margin-top: 12px; }

/* ───────── LEDGER NAV ───────── */
/* masthead scrolls away like letterhead — not a sticky SaaS bar */
.lnav {
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}
.lnav-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  padding-top: 16px;
  padding-bottom: 16px;
}
.lnav-brand {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  flex-shrink: 0;
}
.lnav-links {
  list-style: none;
  display: flex;
  gap: 28px;
  flex: 1;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.lnav-links a { color: var(--ink); opacity: 0.62; transition: opacity 0.15s, color 0.15s; }
.lnav-links a:hover { opacity: 1; }
.lnav-links a.active { opacity: 1; color: var(--stamp); }
.lnav-cta {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  background: var(--green);
  color: var(--on-dark);
  border-radius: 4px;
  box-shadow: inset 0 0 0 1px rgba(239, 230, 207, 0.14);
  padding: 10px 20px;
  flex-shrink: 0;
  transition: background 0.15s;
}
.lnav-cta:hover { background: var(--ink); color: var(--on-dark); }
@media (max-width: 880px) {
  /* Mobile nav: brand + CTA on the top row, the links wrap to a centered
     second row (no hamburger/JS needed, works on every Ledger page). */
  .lnav-inner { flex-wrap: wrap; gap: 10px 16px; justify-content: space-between; align-items: center; }
  .lnav-links {
    display: flex;
    order: 3;
    flex-basis: 100%;
    flex: 1 1 100%;
    justify-content: center;
    gap: 14px 18px;
    flex-wrap: wrap;
    font-size: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--rule);
  }
}

/* ───────── LEDGER FOOTER ───────── */
.lfooter {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(48px, 8vw, 72px) 0;
}
.lfooter-inner { display: flex; flex-direction: column; gap: 3rem; }
.lfooter-brand {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
}
.lfooter-copy {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  opacity: 0.5;
  margin-top: 10px;
}
.lfooter-cols { display: flex; flex-wrap: wrap; gap: 3rem 4.5rem; }
.lfooter-col-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  opacity: 0.5;
  margin-bottom: 14px;
}
.lfooter-col a {
  display: block;
  font-family: var(--font-serif);
  font-size: 0.95rem;
  color: var(--paper);
  opacity: 0.72;
  padding: 4px 0;
  transition: opacity 0.15s;
}
.lfooter-col a:hover { opacity: 1; }
@media (min-width: 768px) {
  .lfooter-inner { flex-direction: row; justify-content: space-between; align-items: flex-start; }
}

/* ───────── FUNNEL CHROME (minimal — /scout paid-traffic pages only) ─────────
   Logo-only header + one-line footer for cold-ad landing pages, where every
   nav link is an exit before conversion. New, additive classes: marketing
   pages keep their full .lnav / .lfooter untouched. */
.fnav {
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}
.fnav-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 18px;
  padding-bottom: 18px;
}
.fnav-brand {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.ffoot {
  background: var(--paper);
  border-top: 1px solid var(--rule);
  padding: 22px 0;
  margin-top: clamp(40px, 8vw, 64px);
}
.ffoot-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.03em;
}
.ffoot-copy, .ffoot a { color: var(--ink); opacity: 0.55; }
.ffoot a { transition: opacity 0.15s; }
.ffoot a:hover { opacity: 1; }
.ffoot-sep { color: var(--ink); opacity: 0.3; }

/* ───────── Motion: one quiet rise on scroll, ≤200ms ───────── */
.js-enabled .lreveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.2s ease-out, transform 0.2s ease-out;
}
.lreveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js-enabled .lreveal { opacity: 1; transform: none; transition: none; }
}

/* ───────── MAILED→SOLD TIMELINE STRIPS (signature proof visual) ───────── */
.tlist-wrap { position: relative; padding-top: 18px; }
.tlist-wrap .stamp { position: absolute; top: 0; right: 14px; background: var(--paper); z-index: 1; }
.tlist {
  border: 1px solid var(--rule);
  border-radius: 3px;
  background: var(--paper);
}
.tlist-head {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 12px 16px;
  border-bottom: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  opacity: 0.8;
}
.tl-strip { padding: 14px 16px 12px; border-bottom: 1px solid var(--rule); }
.tl-strip:last-child { border-bottom: none; }
.tl-addr { font-family: var(--font-mono); font-size: 0.78rem; margin-bottom: 14px; }
.tl-track { display: flex; align-items: center; }
.tl-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ink); flex-shrink: 0; }
.tl-dot--sold { background: var(--stamp); }
.tl-line { flex: 1; border-top: 1px solid var(--rule); position: relative; }
.tl-days {
  position: absolute;
  top: -34px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--stamp);
  white-space: nowrap;
}
.tl-labels {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  opacity: 0.65;
  margin-top: 6px;
  gap: 8px;
}
.tl-meta {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  opacity: 0.6;
  margin-top: 10px;
  text-align: center;
}
.tlist-caption {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  opacity: 0.6;
  margin-top: 12px;
}

/* ───────── US-VS-RANDOM BARS (the lift translation) ───────── */
.bars { max-width: 560px; margin: 24px 0 14px; }
.bars-row { margin-bottom: 16px; }
.bars-label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  margin-bottom: 6px;
}
.bars-bar {
  height: 22px;
  background: var(--ink);
  opacity: 0.32;
  border-radius: 2px;
}
.bars-bar--ours { background: var(--stamp); opacity: 1; }
.lsection--ink .bars-bar { background: var(--paper); opacity: 0.35; }
.lsection--ink .bars-bar--ours { background: var(--stamp-tint); opacity: 1; }

/* ───────── COVERAGE/LIFT CURVE CARD (shared: /pricing, future) ───────── */
.curve-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: clamp(16px, 2.5vw, 28px);
}
.curve-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  opacity: 0.85;
  margin-bottom: 14px;
}
.curve-legend > span { display: inline-flex; align-items: center; gap: 7px; }
.cl-swatch { display: inline-block; width: 22px; height: 0; border-top: 3px solid var(--stamp); }
.cl-swatch--dash { border-top: 2px dashed rgba(20, 19, 15, 0.45); }
.cl-swatch--fill { height: 12px; border-top: none; background: rgba(31, 74, 57, 0.13); }
.curve-svg { width: 100%; height: auto; display: block; }

/* ════════════════════════════════════════════════════════════
   POSTAL / COUNTY-RECORDS REBRAND — components (Jun 26 2026)
   ════════════════════════════════════════════════════════════ */

/* Zilla Slab reads intentional at 600 (400 looks faux-light at display size) */
.ledger-display, .ledger-h2, .page-hero-headline,
.lnav-brand, .lfooter-brand { font-weight: 600; }

/* one focus system, on-brand: the postmark-red ink */
:focus-visible { outline: 2.5px solid var(--postmark); outline-offset: 3px; border-radius: 1px; }

/* button-style anchors must beat `.ledger-page a { color: var(--stamp) }`
   (equal-class specificity would otherwise paint button text green-on-green) */
.ledger-page a.btn-ink { color: var(--on-dark); }
.ledger-page .lsection--ink a.btn-ink { color: var(--ink); }
.ledger-page .lsection--ink a.btn-ink:hover { color: var(--on-dark); }
.ledger-page a.lnav-brand { color: var(--ink); }
.ledger-page a.lnav-cta { color: var(--on-dark); }
.ledger-page a.btn-primary { color: var(--on-accent); }
.ledger-page a.btn-secondary { color: var(--on-accent); }

/* ── THE DATED POSTMARK ──
   Inline SVG uses currentColor; the wrapper paints it postmark-red.
   Evergreen "PULLED / WEEKLY" until the real pull timestamp is wired
   (see TODO in markup); never a render-time date. */
.postmark { display: inline-block; color: var(--postmark); line-height: 0; }
.postmark svg { display: block; width: 100%; height: auto; }
.postmark--sm { width: 88px; }
.postmark--md { width: 128px; }
.postmark--lg { width: 196px; }

/* ── GOPHER EXHIBIT ──
   Photoreal scenes framed as filed evidence (manila mat, hairline rule,
   mono caption) so they read as catalogued exhibits, never glossy stock.
   Brand character only — NEVER on /scout or /pricing. */
.exhibit { position: relative; background: var(--paper-shade); border: 1px solid var(--rule); border-radius: 3px; padding: 10px; }
.exhibit > img { display: block; width: 100%; height: auto; border-radius: 2px; }
.exhibit-cap { font-family: var(--font-mono); font-size: 0.72rem; line-height: 1.5; color: var(--muted); margin-top: 10px; letter-spacing: 0.01em; }
.exhibit .stamp { position: absolute; top: -12px; right: 14px; background: var(--paper-shade); }

/* the engraved seal — canonical gopher mark (footer / about / watermark) */
.gopher-seal { display: block; }
.gopher-seal img { display: block; width: 100%; height: auto; }
