/* ================================================
   PolicyLector — Stylesheet (Option A: bold brand yellow)
   One bold sans, one saturated color, the product as the hero.
   Type:  Bricolage Grotesque (display) / Figtree (body)
   ================================================ */

/* ---------- 1. Tokens ---------- */
:root {
  --ink: #111111;
  --ink-2: #2A2A2A;
  --white: #ffffff;
  --g-50: #F6F6F6;
  --g-100: #EBEBEB;
  --g-200: #D9D9D9;
  --g-600: #5A5A5A;
  --g-700: #3B3B3B;

  --yellow: #FFE94D;
  --yellow-deep: #F2D600;
  --yellow-soft: #FFF6B8;

  --ok: #0B5A2A;   --ok-bg: #D7F5DF;
  --warn: #7A3E00; --warn-bg: #FFE2C2;
  --bad: #8A1C1C;  --bad-bg: #FFD9D9;
  --info: #0B3C8A; --info-bg: #DCE8FF;

  --r-pill: 999px;
  --r-lg: 20px;
  --r-md: 12px;
  --r-sm: 8px;

  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.18);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.08);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.06);

  --font-display: 'Bricolage Grotesque', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Figtree', system-ui, 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  --step--2: clamp(0.78rem, 0.76rem + 0.1vw, 0.82rem);
  --step--1: clamp(0.9rem, 0.88rem + 0.1vw, 0.95rem);
  --step-0:  clamp(1.0625rem, 1.03rem + 0.15vw, 1.125rem);
  --step-1:  clamp(1.2rem, 1.12rem + 0.4vw, 1.4rem);
  --step-2:  clamp(1.45rem, 1.3rem + 0.7vw, 1.8rem);
  --step-3:  clamp(1.8rem, 1.5rem + 1.3vw, 2.5rem);
  --step-4:  clamp(2.1rem, 1.5rem + 2.6vw, 3.4rem);
  --step-5:  clamp(2.5rem, 1.6rem + 3.6vw, 4.5rem);
  --step-hero: clamp(2.8rem, 1.2rem + 4.6vw, 4.75rem);

  --space-xs: clamp(0.75rem, 0.7rem + 0.2vw, 0.9rem);
  --space-s:  clamp(1rem, 0.95rem + 0.3vw, 1.25rem);
  --space-m:  clamp(1.5rem, 1.4rem + 0.5vw, 2rem);
  --space-l:  clamp(2rem, 1.8rem + 0.8vw, 2.75rem);
  --space-xl: clamp(3rem, 2.6rem + 1.6vw, 4.5rem);
  --space-2xl: clamp(4rem, 3.2rem + 3vw, 6.5rem);

  --container: 1240px;
  --gutter: clamp(16px, 3.4vw, 48px);
  --nav-height: 72px;

  /* Legacy aliases — subpage markup and analyzer.js still reference these */
  --bg-cream: var(--white); --bg-warm: var(--g-50); --bg-card: var(--white);
  --bg-dark: var(--ink); --bg-darker: var(--ink);
  --paper: var(--white); --paper-2: var(--g-50); --sheet: var(--white); --ink-2-legacy: var(--ink-2);
  --text: var(--ink); --text-2: var(--g-700); --text-3: var(--g-600);
  --text-primary: var(--ink); --text-secondary: var(--g-700); --text-muted: var(--g-600);
  --text-light: var(--white); --text-on-dark: #D4D4D4; --text-on-ink: var(--white); --text-on-ink-2: #D4D4D4;
  --accent: var(--ink); --accent-hover: var(--ink-2); --accent-light: var(--g-50); --accent-glow: rgba(17, 17, 17, 0.12);
  --pen: var(--ink); --pen-hover: var(--ink-2); --pen-tint: var(--g-50); --pen-glow: rgba(17, 17, 17, 0.12);
  --mark: var(--yellow); --mark-soft: var(--yellow-soft); --mark-deep: var(--yellow-deep);
  --success: var(--ok); --success-bg: var(--ok-bg); --error: var(--bad); --error-bg: var(--bad-bg);
  --border: var(--g-100); --border-light: var(--g-100); --rule: var(--g-100); --rule-light: var(--g-100);
  --primary: var(--ink); --font-heading: var(--font-display);
  --radius-sm: var(--r-sm); --radius-md: var(--r-md); --radius-lg: var(--r-lg);
}

/* ---------- 2. Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: none; text-size-adjust: none; scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { min-height: 100vh; font-family: var(--font-body); font-size: var(--step-0); line-height: 1.55; color: var(--ink); background: var(--white); }
img, picture, svg { max-width: 100%; display: block; }
input, button, textarea, select { font: inherit; color: inherit; }
textarea:not([rows]) { min-height: 10em; }
a { color: inherit; text-decoration: none; }
ul[role='list'], ol[role='list'] { list-style: none; }
:target { scroll-margin-block: calc(var(--nav-height) + 1.5rem); }
::selection { background: var(--yellow); color: var(--ink); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: var(--gutter); top: -100px; z-index: 2000; padding: 10px 16px; background: var(--ink); color: var(--white); border-radius: var(--r-pill); font-weight: 600; font-size: var(--step--1); }
.skip-link:focus { top: 12px; }
.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- 3. Typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 800; line-height: 1; letter-spacing: -0.03em; color: var(--ink); text-wrap: balance; font-optical-sizing: auto; }
h1 { font-size: var(--step-5); }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
h4 { font-size: var(--step-1); font-weight: 700; letter-spacing: -0.01em; line-height: 1.15; }
p { color: var(--g-700); }
p + p { margin-top: 1em; }
strong, b { color: var(--ink); font-weight: 700; }
.lead { font-size: var(--step-1); line-height: 1.45; color: var(--g-700); text-wrap: pretty; }
.section-label, .eyebrow { display: block; font-size: var(--step--1); font-weight: 700; color: var(--g-600); margin-bottom: var(--space-xs); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--space-m); flex-wrap: wrap; margin-bottom: var(--space-l); }
.section-title { max-width: 18ch; }
.section-desc { max-width: 42ch; font-size: var(--step-0); color: var(--g-700); }
.mark-sweep { background: var(--yellow); padding: 0 0.1em; border-radius: 4px; }

/* Chips: the one status component */
.stamp, .chip { display: inline-flex; align-items: center; min-height: 28px; padding: 0 10px; border-radius: var(--r-pill); background: var(--g-100); color: var(--ink); font-size: 0.78rem; font-weight: 700; line-height: 1; white-space: nowrap; }
.stamp.ok, .chip.ok { background: var(--ok-bg); color: var(--ok); }
.stamp.warn, .chip.warn { background: var(--warn-bg); color: var(--warn); }
.stamp.bad, .chip.bad { background: var(--bad-bg); color: var(--bad); }
.stamp.pen, .chip.info { background: var(--info-bg); color: var(--info); }
.stamp.yellow, .chip.yellow { background: var(--yellow); color: var(--ink); }
.stamp.outline, .chip.outline { background: transparent; border: 1.5px solid var(--ink); }

/* ---------- 4. Buttons & nav ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: var(--r-pill); font-family: var(--font-body); font-size: var(--step--1); font-weight: 600; line-height: 1.1; border: 2px solid transparent; cursor: pointer; white-space: nowrap; transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); color: var(--white); border-color: var(--ink); }
.btn-primary:hover { background: var(--ink-2); border-color: var(--ink-2); }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-secondary:hover { background: var(--ink); color: var(--white); }
.btn-outline { background: var(--white); color: var(--ink); border-color: var(--g-200); }
.btn-outline:hover { border-color: var(--ink); }
.btn-mark, .btn-yellow { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
.btn-mark:hover, .btn-yellow:hover { background: var(--yellow-deep); border-color: var(--yellow-deep); }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: var(--step-0); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: var(--step--2); }
.text-link { font-weight: 700; color: var(--ink); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; text-decoration-color: var(--yellow); }
.text-link:hover { text-decoration-color: var(--ink); }

.nav { position: fixed; inset: 0 0 auto 0; height: var(--nav-height); background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--g-100); z-index: 1000; }
.nav-inner { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); height: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--space-m); }
.nav-logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; letter-spacing: -0.03em; color: var(--ink); flex-shrink: 0; }
.nav-logo-icon { display: inline-flex; font-size: 0; line-height: 0; }
.nav-logo-icon svg { display: block; }
.nav-logo-accent { color: var(--ink); }
.nav-links { display: flex; align-items: center; gap: clamp(16px, 2vw, 28px); }
.nav-link { font-size: 0.95rem; font-weight: 600; color: var(--g-700); padding: 6px 0; border-bottom: 2px solid transparent; transition: color 0.18s, border-color 0.18s; }
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--ink); border-bottom-color: var(--yellow); }
.nav-cta { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; background: var(--ink); color: var(--yellow) !important; border-radius: var(--r-pill); font-size: 0.95rem; font-weight: 700; transition: background 0.18s ease; }
.nav-cta:hover { background: var(--ink-2); }
.nav-toggle { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; background: none; border: none; cursor: pointer; padding: 10px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); transition: transform 0.3s, opacity 0.3s; }
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 5. Homepage ---------- */
.hero { padding: calc(var(--nav-height) + var(--space-2xl)) 0 var(--space-xl); background: var(--yellow); }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: var(--space-2xl); align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: var(--space-m); min-width: 0; }
.hero-title { font-size: var(--step-hero); line-height: 0.95; letter-spacing: -0.035em; }
.hero-subtitle { font-size: var(--step-1); line-height: 1.4; color: var(--ink); max-width: 36ch; text-wrap: pretty; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hero-note { font-size: var(--step--1); font-weight: 600; color: var(--ink); }
.hero-note svg { display: inline-block; vertical-align: -2px; margin-right: 6px; }

/* The product as the hero: a static report card */
.report-card { display: flex; flex-direction: column; background: var(--white); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); overflow: hidden; min-width: 0; }
.report-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--g-100); font-size: 0.92rem; font-weight: 700; }
.report-head span:last-child { color: var(--g-600); font-weight: 500; }
.report-row { display: grid; grid-template-columns: 1fr auto auto; gap: 16px; align-items: center; padding: 15px 20px; border-bottom: 1px solid var(--g-100); }
.report-row:last-of-type { border-bottom: none; }
.report-name { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.report-name b { font-size: 0.95rem; font-weight: 700; }
.report-name span { font-size: 0.82rem; color: var(--g-600); }
.report-val { font-size: 0.95rem; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.report-val.muted { color: var(--g-600); font-weight: 600; }
.report-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; background: var(--g-50); font-size: 0.9rem; font-weight: 700; }

.hero-proof { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-m); border-top: 2px solid var(--ink); padding-top: var(--space-m); margin-top: var(--space-xl); }
.hero-proof-item { display: flex; flex-direction: column; gap: 6px; }
.hero-proof-number { font-family: var(--font-display); font-size: var(--step-3); font-weight: 800; line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.hero-proof-label { font-size: var(--step--1); font-weight: 600; color: var(--ink); }

/* Steps */
.how-it-works { padding: var(--space-2xl) 0; background: var(--white); }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-s); }
.step-card { display: flex; flex-direction: column; gap: 14px; padding: var(--space-l); border-radius: var(--r-lg); background: var(--g-50); }
.step-number { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: var(--r-pill); background: var(--ink); color: var(--yellow); font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; }
.step-card h3 { font-size: var(--step-1); }
.step-card p { font-size: var(--step--1); line-height: 1.5; }
.step-card .text-link { font-size: var(--step--1); margin-top: auto; align-self: flex-start; }

.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-s); margin-top: var(--space-l); }
.stat-card { display: flex; flex-direction: column; gap: 8px; padding: var(--space-m); border: 1px solid var(--g-100); border-radius: var(--r-lg); }
.stat-number { font-family: var(--font-display); font-size: var(--step-3); font-weight: 800; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat-desc { font-size: var(--step--1); color: var(--g-700); line-height: 1.45; }
.stat-source { font-size: var(--step--2); font-weight: 600; color: var(--g-600); }

/* Analyzer: the working tool */
.analyzer { padding: var(--space-2xl) 0; background: var(--g-50); }
.analyzer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2xl); align-items: center; }
.analyzer-text { display: flex; flex-direction: column; gap: var(--space-m); }
.analyzer-text > p { font-size: var(--step-0); color: var(--g-700); max-width: 48ch; }
.analyzer-features { display: grid; gap: var(--space-s); }
.analyzer-features li { display: flex; gap: 14px; align-items: flex-start; }
.feature-check { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: var(--r-pill); background: var(--ink); color: var(--yellow); font-size: 0.85rem; font-weight: 800; flex-shrink: 0; }
.analyzer-features li strong { display: block; font-size: var(--step-0); margin-bottom: 2px; }
.analyzer-features li p { font-size: var(--step--1); color: var(--g-700); }
.analyzer-trust { display: flex; flex-wrap: wrap; gap: 8px; }
.analyzer-trust span { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 12px; border-radius: var(--r-pill); background: var(--white); border: 1px solid var(--g-200); font-size: 0.82rem; font-weight: 600; }
.partner-strip { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--g-100); font-size: 0.85rem; color: var(--g-700); }
.partner-strip a { text-decoration: underline; text-underline-offset: 3px; }
.partner-banner { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; padding: 12px 14px; border-radius: var(--r-md); background: var(--yellow); color: var(--ink); font-size: 0.88rem; line-height: 1.45; }
.partner-banner strong { display: block; font-family: var(--font-display); font-size: 0.95rem; margin-bottom: 2px; }
.partner-banner svg { flex: none; margin-top: 2px; }
.analyzer-partner { font-size: var(--step--1); color: var(--g-600); margin-top: var(--space-xs); }
.analyzer-demo { display: flex; flex-direction: column; gap: var(--space-s); align-items: center; }
.analyzer-note { font-size: var(--step--1); font-weight: 600; color: var(--g-600); text-align: center; }

.analyzer-card { width: 100%; max-width: 500px; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-md); background: var(--white); color: var(--ink); }
.analyzer-card p { color: var(--g-700); }
.analyzer-card-header { display: flex; align-items: center; gap: 10px; padding: 14px 18px; background: var(--ink); color: var(--white); }
.analyzer-card-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, 0.25); }
.analyzer-card-dot:first-child { background: var(--yellow); }
.analyzer-card-title { font-size: 0.9rem; font-weight: 700; margin-left: 6px; }
.analyzer-card-close { margin-left: auto; width: 30px; height: 30px; border-radius: var(--r-pill); border: none; background: rgba(255, 255, 255, 0.14); color: var(--white); font-size: 20px; line-height: 1; display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.analyzer-card-close:hover { background: rgba(255, 255, 255, 0.28); }
.analyzer-card-body { padding: 22px; }
.analyzer-upload-zone { border: 2px dashed var(--g-200); background: var(--g-50); border-radius: var(--r-md); padding: 30px 20px; text-align: center; margin-bottom: 14px; cursor: pointer; transition: border-color 0.18s, background 0.18s; }
.analyzer-upload-zone:hover { border-color: var(--ink); background: var(--yellow-soft); }
.upload-icon { color: var(--ink); margin-bottom: 10px; }
.upload-icon svg { margin: 0 auto; }
.upload-text { color: var(--ink); font-size: 1rem; margin-bottom: 4px; }
.upload-subtext { font-size: 0.82rem; color: var(--g-600); margin: 0 0 4px; }
.upload-privacy { font-size: 0.8rem; color: var(--g-600); display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 8px; }
.analyzer-preview-results { display: flex; flex-direction: column; }
.result-line { display: flex; align-items: center; gap: 12px; padding: 10px 2px; border-top: 1px solid var(--g-100); font-size: 0.9rem; }
.result-label { font-weight: 600; flex: 1; }
.result-value { color: var(--g-600); font-variant-numeric: tabular-nums; }
.result-badge { display: inline-flex; align-items: center; min-height: 26px; padding: 0 10px; border-radius: var(--r-pill); font-size: 0.75rem; font-weight: 700; }
.result-badge-good { background: var(--ok-bg); color: var(--ok); }
.result-badge-warn { background: var(--warn-bg); color: var(--warn); }
.result-badge-bad { background: var(--bad-bg); color: var(--bad); }
.sample-dec-link { display: inline-flex; align-items: center; gap: 8px; margin: 8px auto 0; min-height: 40px; padding: 0 14px; background: transparent; border: 1.5px solid var(--g-200); border-radius: var(--r-pill); color: var(--ink); font-size: 0.85rem; font-weight: 600; cursor: pointer; transition: border-color 0.15s, background 0.15s; }
.sample-dec-link:hover { border-color: var(--ink); background: var(--white); }

/* Guides */
.books { padding: var(--space-2xl) 0; background: var(--white); }
.book-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--space-s); }
.book-tile { display: flex; flex-direction: column; gap: 12px; padding: var(--space-m); border-radius: var(--r-lg); background: var(--g-50); color: var(--ink); min-height: 320px; transition: transform 0.18s, box-shadow 0.18s; }
a.book-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.book-tile .chip, .hero-copy > .chip { align-self: flex-start; }
.book-tile.featured { background: var(--ink); color: var(--white); }
.book-tile.featured .book-tile-desc { color: #D4D4D4; }
.book-tile-title { font-family: var(--font-display); font-weight: 800; font-size: var(--step-3); letter-spacing: -0.03em; line-height: 1; margin-top: auto; }
.book-tile-desc { font-size: var(--step--1); line-height: 1.45; color: var(--g-700); }
.book-tile-price { font-size: var(--step-0); font-weight: 800; }
.book-featured-row { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: var(--space-xl); align-items: center; margin-bottom: var(--space-l); padding: var(--space-l); border-radius: var(--r-lg); border: 1px solid var(--g-100); }
.book-chapters { display: flex; flex-wrap: wrap; gap: 8px; }
.book-chapters span { display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px; border-radius: var(--r-pill); background: var(--g-50); font-size: 0.82rem; font-weight: 600; }
.book-card-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.books-specialty { display: flex; align-items: center; gap: var(--space-m); flex-wrap: wrap; margin-top: var(--space-l); padding-top: var(--space-m); border-top: 1px solid var(--g-100); font-size: var(--step--1); }
.books-specialty h3 { font-family: var(--font-body); font-size: var(--step--1); font-weight: 700; color: var(--g-600); letter-spacing: 0; }
.books-specialty ul { display: flex; flex-wrap: wrap; gap: 8px; }
.books-specialty li { display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px; border-radius: var(--r-pill); border: 1px solid var(--g-200); font-weight: 600; }
.books-specialty li a { display: inline-flex; align-items: center; min-height: 30px; margin: 0 -12px; padding: 0 12px; border-radius: var(--r-pill); transition: background 0.15s; }
.books-specialty li a:hover, .books-specialty li a:focus-visible { background: var(--yellow); }

/* State minimums band */
.resources { padding: var(--space-2xl) 0; background: var(--ink); color: var(--white); }
.resources h2 { color: var(--white); }
.resources p { color: #D4D4D4; }
.resources-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2xl); align-items: center; }
.resources-copy { display: flex; flex-direction: column; gap: var(--space-m); }
.resources-copy p { font-size: var(--step-0); max-width: 44ch; }
.resources-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.resources .btn-secondary { color: var(--white); border-color: var(--white); }
.resources .btn-secondary:hover { background: var(--white); color: var(--ink); }
.mini-ledger { display: flex; flex-direction: column; background: var(--white); color: var(--ink); border-radius: var(--r-lg); overflow: hidden; min-width: 0; }
.mini-ledger-row { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 12px; padding: 14px 20px; border-top: 1px solid var(--g-100); font-size: 0.95rem; align-items: center; font-variant-numeric: tabular-nums; }
.mini-ledger-row:first-child { border-top: none; background: var(--g-50); font-size: 0.82rem; font-weight: 700; }
.mini-ledger-row b { font-weight: 700; }
.mini-ledger-foot { padding: 14px 20px; background: var(--yellow); font-size: 0.9rem; font-weight: 700; }

/* Blog cards (home + index) */
.blog-section { padding: var(--space-2xl) 0; background: var(--white); }
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: var(--space-m); padding: var(--space-xl) 0 var(--space-2xl); }
.blog-section .blog-grid { padding: 0; }
.blog-post { position: relative; display: flex; flex-direction: column; gap: 12px; color: var(--ink); }
.blog-post-img { aspect-ratio: 16 / 9; border-radius: var(--r-md); background: var(--g-50); display: flex; align-items: flex-end; padding: 18px; transition: background 0.18s; }
.blog-post:nth-child(3n+2) .blog-post-img { background: var(--g-100); }
/* Hover comes after the nth-child tint so it wins the specificity tie on the middle column. */
.blog-post:hover .blog-post-img, .blog-post:focus-visible .blog-post-img { background: var(--yellow); }
.bp-no { font-family: var(--font-display); font-weight: 800; font-size: var(--step-3); letter-spacing: -0.03em; line-height: 1; color: var(--ink); }
.blog-post-body { display: flex; flex-direction: column; gap: 8px; }
.blog-post-tag { font-size: 0.82rem; font-weight: 700; color: var(--g-600); }
.blog-post-title { font-family: var(--font-body); font-size: var(--step-1); font-weight: 700; line-height: 1.2; letter-spacing: -0.015em; }
.blog-post-excerpt { font-size: var(--step--1); color: var(--g-700); }
.blog-post-date { font-size: var(--step--2); font-weight: 600; color: var(--g-600); }
.coming-banner { text-align: center; padding: 48px 24px; color: var(--g-600); font-size: 1.1rem; }

/* Closing CTA / newsletter */
.newsletter { padding: 0 0 var(--space-2xl); background: var(--white); }
.newsletter-card { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: var(--space-xl); align-items: center; background: var(--yellow); border-radius: 24px; padding: var(--space-xl); }
.newsletter-title { font-size: var(--step-4); max-width: 18ch; }
.newsletter-content { display: flex; flex-direction: column; gap: var(--space-s); }
.newsletter-content > p { color: var(--ink); font-size: var(--step-0); max-width: 44ch; }
.newsletter-form { width: 100%; }
.form-row { display: flex; gap: 10px; }
.form-input { flex: 1; min-width: 0; min-height: 52px; padding: 0 18px; border: 2px solid var(--ink); border-radius: var(--r-pill); font-size: 1rem; background: var(--white); color: var(--ink); }
.form-input:focus { outline: none; box-shadow: 0 0 0 4px rgba(17, 17, 17, 0.15); }
.form-input::placeholder { color: var(--g-600); }
.form-message { margin-top: 10px; font-size: 0.9rem; font-weight: 600; min-height: 22px; }
.form-message.success { color: var(--ok); }
.form-message.error { color: var(--bad); }
.form-hint { font-size: 0.85rem; font-weight: 600; color: var(--ink); margin-top: 8px; }

/* Footer */
.footer { padding: var(--space-xl) 0 var(--space-m); background: var(--white); border-top: 1px solid var(--g-100); color: var(--g-600); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: var(--space-xl); margin-bottom: var(--space-l); }
.footer-brand .nav-logo { margin-bottom: 12px; }
.footer-tagline { font-weight: 600; color: var(--ink); margin-bottom: var(--space-s); }
.fine-print-label { font-size: 0.82rem; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.footer-disclaimer { font-size: 0.85rem; line-height: 1.55; color: var(--g-600); max-width: 52ch; }
.footer-col h5 { font-size: 0.85rem; font-weight: 700; color: var(--ink); margin-bottom: 14px; }
.footer-col a { display: block; font-size: 0.95rem; color: var(--g-700); margin-bottom: 10px; }
.footer-col a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom { border-top: 1px solid var(--g-100); padding-top: var(--space-s); display: flex; justify-content: space-between; gap: var(--space-s); flex-wrap: wrap; font-size: 0.85rem; }
.footer-bottom a { color: var(--g-700); }
.footer-bottom a:hover { color: var(--ink); }

/* ---------- 6. Analyzer — live states (markup injected by js/analyzer.js) ---------- */
.analyzer-spinner { width: 40px; height: 40px; border: 3px solid var(--g-100); border-top-color: var(--ink); border-radius: 50%; margin: 0 auto; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.analyzer-result { max-height: 600px; overflow-y: auto; padding: 4px 0; font-size: 0.92rem; line-height: 1.6; color: var(--ink); }
.analyzer-result h3 { font-family: var(--font-body); font-size: 1.1rem; font-weight: 700; margin: 24px 0 10px; padding-bottom: 6px; border-bottom: 3px solid var(--yellow); letter-spacing: 0; }
.analyzer-result h3:first-child { margin-top: 0; }
.analyzer-result table { width: 100%; border-collapse: collapse; margin: 12px 0 16px; font-size: 0.85rem; }
.analyzer-result th, .analyzer-result td { padding: 8px 10px; border: 1px solid var(--g-100); text-align: left; }
.analyzer-result th { background: var(--g-50); font-weight: 700; }
.analyzer-result ol, .analyzer-result ul { padding-left: 20px; margin: 10px 0; }
.analyzer-result li { margin-bottom: 10px; }
.analyzer-result p { margin: 8px 0; }
.analyzer-result hr { border: none; border-top: 1px solid var(--g-100); margin: 20px 0; }
.analyzer-file-list { padding: 8px 0; }
.analyzer--active .analyzer-grid { grid-template-columns: 1fr; gap: 32px; }
.analyzer--active .analyzer-text { display: none; }
.analyzer--active .analyzer-card { max-width: 800px; margin-inline: auto; }
.analyzer--active .analyzer-demo { align-items: stretch; }
.analyzer-card-body input[type="email"] { min-height: 46px; border: 2px solid var(--ink) !important; border-radius: var(--r-pill) !important; padding: 0 16px !important; }
.analyzer-card-body input[type="email"]:focus { box-shadow: 0 0 0 4px rgba(17, 17, 17, 0.15); }
.analyzer-card-body h4 { font-family: var(--font-body); font-size: 1.25rem; font-weight: 700; letter-spacing: -0.01em; }
.analyzer-progress { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 12px; }
.analyzer-dots { display: flex; gap: 8px; justify-content: center; }
.analyzer-dot { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--ink); background: transparent; }
.analyzer-dot.filled { background: var(--ink); }
.analyzer-dot.used { background: var(--g-200); border-color: var(--g-200); }
.analyzer-counter-text { font-size: 0.8rem; font-weight: 600; color: var(--g-600); text-align: center; margin: 0; }
.out-of-credits { padding: 8px 4px; }
.out-of-credits-header { text-align: center; margin-bottom: 16px; }
.out-of-credits-header h4 { margin: 0 0 8px; }
.out-of-credits-header p { font-size: 0.9rem; color: var(--g-600); margin: 0; }
.out-of-credits-progress { display: flex; justify-content: center; gap: 8px; margin: 0 0 22px; }
.next-book-card { background: var(--g-50); border-radius: var(--r-md); padding: 18px; margin-bottom: 16px; text-align: center; }
.next-book-card .next-book-label { font-size: 0.8rem; font-weight: 700; color: var(--g-600); margin: 0 0 4px; }
.next-book-card .next-book-title { font-size: 1.15rem; font-weight: 800; color: var(--ink); margin: 0 0 8px; }
.next-book-card .next-book-blurb { font-size: 0.88rem; color: var(--g-600); margin: 0 0 14px; }
.next-book-card .btn { width: 100%; }
.activation-section { border-top: 1px solid var(--g-100); padding-top: 16px; margin-top: 4px; }
.activation-section-label { font-size: 0.88rem; color: var(--g-600); text-align: center; margin: 0 0 10px; }
.activation-input-row { display: flex; gap: 8px; }
.activation-input-row input { flex: 1; min-width: 0; min-height: 44px; padding: 0 14px; border: 2px solid var(--ink); border-radius: var(--r-pill); font-size: 0.9rem; text-transform: uppercase; outline: none; letter-spacing: 0.06em; font-weight: 600; }
.activation-input-row .btn { white-space: nowrap; }
.email-soft-note { font-size: 0.8rem; color: var(--g-600); text-align: center; margin: 18px 0 0; padding-top: 14px; border-top: 1px solid var(--g-100); }
.email-soft-note a { text-decoration: underline; text-underline-offset: 3px; }

/* Sample Dec page modal */
.sample-modal { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 20px; }
.sample-modal[hidden] { display: none; }
.sample-modal-backdrop { position: absolute; inset: 0; background: rgba(17, 17, 17, 0.7); backdrop-filter: blur(3px); cursor: pointer; }
.sample-modal-panel { position: relative; background: var(--white); border-radius: var(--r-lg); max-width: 760px; width: 100%; max-height: 92vh; overflow-y: auto; padding: 32px 36px 28px; box-shadow: var(--shadow-lg); }
.sample-modal-close { position: absolute; top: 14px; right: 16px; width: 40px; height: 40px; border: none; background: var(--g-50); font-size: 1.6rem; line-height: 1; color: var(--ink); cursor: pointer; border-radius: var(--r-pill); }
.sample-modal-close:hover { background: var(--g-100); }
.sample-modal-title { font-size: var(--step-2); margin: 0 0 12px; padding-right: 48px; }
.sample-modal-caption { font-size: 0.95rem; margin: 0 0 20px; }
.sample-tabs { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.sample-tab { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; background: var(--g-50); border: 2px solid transparent; border-radius: var(--r-pill); font-size: 0.88rem; font-weight: 700; color: var(--g-700); cursor: pointer; }
.sample-tab:hover { color: var(--ink); }
.sample-tab.is-active { background: var(--yellow); color: var(--ink); border-color: var(--ink); }
.sample-tab-icon { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: var(--r-pill); font-size: 0.75rem; font-weight: 800; color: #fff; flex-shrink: 0; }
.sample-tab-icon-yes { background: var(--ok); }
.sample-tab-icon-no { background: var(--bad); }
.sample-tabpanel[hidden] { display: none; }
.sample-tabpanel-hint { font-size: 0.92rem; background: var(--g-50); padding: 12px 16px; margin: 0 0 16px; border-radius: var(--r-md); }
.sample-modal-image-wrap { background: white; border: 1px solid var(--g-100); border-radius: var(--r-md); padding: 8px; margin-bottom: 14px; }
.sample-modal-image { display: block; width: 100%; height: auto; border-radius: 6px; }
.sample-modal-disclaimer { font-size: 0.8rem; color: var(--g-600); text-align: center; margin: 0; }

/* ---------- 7. Subpages ---------- */
.page-header { padding: calc(var(--nav-height) + var(--space-xl)) 0 var(--space-xl); background: var(--white); border-bottom: 1px solid var(--g-100); }
.page-header h1 { max-width: 18ch; margin-bottom: var(--space-s); }
.page-header > .container > p:not(.section-label) { max-width: 58ch; font-size: var(--step-1); line-height: 1.45; color: var(--g-700); text-wrap: pretty; }
.page-header.yellow { background: var(--yellow); border-bottom: none; }
.page-header.yellow p { color: var(--ink); }
.page-content { padding: var(--space-xl) 0 var(--space-2xl); }
.article-meta { display: flex; gap: 12px; align-items: center; margin-top: var(--space-s); font-size: var(--step--1); font-weight: 600; color: var(--g-600); flex-wrap: wrap; }
.article-meta .tag { display: inline-flex; align-items: center; min-height: 28px; padding: 0 10px; border-radius: var(--r-pill); background: var(--yellow); color: var(--ink); font-size: 0.78rem; font-weight: 700; }

.disclaimer-box, .intro-box, .legal-content .callout, .article-disclaimer { background: var(--g-50); padding: var(--space-s) var(--space-m); border-radius: var(--r-md); font-size: var(--step--1); line-height: 1.55; color: var(--g-700); }
.disclaimer-box, .intro-box { margin-bottom: var(--space-l); }
.disclaimer-box strong, .intro-box strong { color: var(--ink); }
.intro-box p { margin: 0; }
.intro-box p + p { margin-top: 10px; }
.article-disclaimer { margin-top: var(--space-m); }

.article-content, .about-content, .legal-content { max-width: 720px; padding: var(--space-xl) 0 var(--space-2xl); }
.article-content h2, .about-content h2, .legal-content h2 { font-size: var(--step-3); margin: var(--space-xl) 0 var(--space-s); }
.article-content h3, .about-content h3, .legal-content h3 { font-family: var(--font-body); font-size: var(--step-1); font-weight: 700; letter-spacing: -0.01em; margin: var(--space-l) 0 var(--space-xs); }
.article-content p, .about-content p, .legal-content p, .legal-content li { font-size: var(--step-0); line-height: 1.65; margin: 0 0 1.2em; }
.article-content ul, .article-content ol, .legal-content ul, .legal-content ol { margin: 0 0 1.4em 1.4em; }
.article-content li { margin-bottom: 0.5em; color: var(--g-700); }
.article-content a, .about-content a, .legal-content a { color: var(--ink); font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: var(--yellow); text-underline-offset: 3px; }
.article-content a:hover, .about-content a:hover, .legal-content a:hover { text-decoration-color: var(--ink); }
.about-content .accent { background: var(--yellow); padding: 0 4px; border-radius: 4px; font-weight: 700; }
.legal-content .updated { font-size: var(--step--1); font-weight: 600; color: var(--g-600); margin-bottom: var(--space-l); }
.article-content table { width: 100%; border-collapse: separate; border-spacing: 0; margin: var(--space-m) 0; border: 1px solid var(--g-100); border-radius: var(--r-md); overflow: hidden; font-size: var(--step--1); }
.article-content th { background: var(--ink); color: var(--white); font-size: 0.8rem; font-weight: 700; padding: 11px 14px; text-align: left; }
.article-content td { padding: 10px 14px; border-top: 1px solid var(--g-100); vertical-align: top; }
.article-content tr:hover td { background: var(--g-50); }

.article-cta, .glossary-cta, .footer-cta { background: var(--yellow); border-radius: var(--r-lg); padding: var(--space-l); margin: var(--space-xl) 0; color: var(--ink); }
.article-cta h3, .glossary-cta h3, .footer-cta h3 { font-family: var(--font-display); font-size: var(--step-2); font-weight: 800; letter-spacing: -0.02em; margin: 0 0 var(--space-xs); color: var(--ink); }
.article-cta p, .glossary-cta p, .footer-cta p { color: var(--ink); font-size: var(--step--1); line-height: 1.55; margin: 0 0 0.8em; }
.article-cta a, .glossary-cta a, .footer-cta a { color: var(--ink); font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.glossary-cta, .footer-cta { margin-top: var(--space-2xl); }
.article-sources { border-top: 1px solid var(--g-100); padding-top: var(--space-m); margin-top: var(--space-xl); font-size: var(--step--1); color: var(--g-600); }
.article-sources p { font-size: var(--step--1); margin: 0 0 8px; }
.article-sources ul { margin: 8px 0 16px 20px; }
.article-sources li { font-size: var(--step--2); margin-bottom: 4px; color: var(--g-600); }
.article-nav { display: flex; gap: var(--space-s); margin-top: var(--space-xl); flex-wrap: wrap; }
.article-nav a { flex: 1; min-width: 200px; padding: var(--space-s) var(--space-m); background: var(--g-50); border-radius: var(--r-md); color: var(--g-700); transition: background 0.18s; }
.article-nav a:hover { background: var(--yellow); }
.article-nav .label { font-size: 0.8rem; font-weight: 700; color: var(--g-600); margin-bottom: 6px; }
.article-nav .title { font-weight: 700; font-size: var(--step-0); line-height: 1.3; color: var(--ink); }

.search-bar { margin-bottom: var(--space-m); }
.search-bar input, .search-input { width: 100%; max-width: 440px; min-height: 50px; padding: 0 18px; border: 2px solid var(--ink); border-radius: var(--r-pill); font-size: 1rem; background: var(--white); color: var(--ink); }
.search-bar input:focus, .search-input:focus { outline: none; box-shadow: 0 0 0 4px rgba(17, 17, 17, 0.15); }

.min-table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--white); border: 1px solid var(--g-100); border-radius: var(--r-md); }
.min-table th { background: var(--ink); color: var(--white); font-size: 0.8rem; font-weight: 700; padding: 13px 16px; text-align: left; position: sticky; top: var(--nav-height); z-index: 10; }
.min-table th:first-child { border-top-left-radius: var(--r-md); }
.min-table th:last-child { border-top-right-radius: var(--r-md); }
.min-table td { padding: 11px 16px; font-size: var(--step--1); border-bottom: 1px solid var(--g-100); background: var(--white); font-variant-numeric: tabular-nums; }
.min-table tr:last-child td { border-bottom: none; }
.min-table tr:hover td { background: var(--g-50); }
.min-table .state-name { font-weight: 700; white-space: nowrap; }
.min-table .no-fault-badge, .min-table .tort-badge { display: inline-flex; align-items: center; min-height: 26px; padding: 0 10px; border-radius: var(--r-pill); font-size: 0.75rem; font-weight: 700; white-space: nowrap; }
.min-table .no-fault-badge { background: var(--info-bg); color: var(--info); }
.min-table .tort-badge { background: var(--g-100); color: var(--ink); }
.table-wrapper { border-radius: var(--r-md); }
.legend { margin-top: var(--space-m); font-size: var(--step--2); color: var(--g-600); }
.legend p { margin-bottom: 6px; }
.legend strong { color: var(--ink); }

.glossary-tools { display: flex; gap: var(--space-s); align-items: center; flex-wrap: wrap; margin-bottom: var(--space-m); }
.glossary-tools .search-input { flex: 1; min-width: 260px; max-width: 480px; }
.term-count { font-size: 0.9rem; font-weight: 700; color: var(--g-600); }
.alphabet-nav { position: sticky; top: var(--nav-height); z-index: 20; background: var(--white); padding: 12px 0; margin-bottom: var(--space-m); border-bottom: 1px solid var(--g-100); display: flex; flex-wrap: wrap; gap: 4px; }
.alphabet-nav a { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: var(--r-pill); font-size: 0.85rem; font-weight: 700; color: var(--g-700); }
.alphabet-nav a:hover { background: var(--yellow); color: var(--ink); }
.alphabet-nav a.disabled { color: var(--g-200); pointer-events: none; }
.letter-section { margin-bottom: var(--space-xl); scroll-margin-top: calc(var(--nav-height) + 72px); }
.letter-heading { font-size: var(--step-4); padding-bottom: 8px; margin-bottom: var(--space-s); border-bottom: 3px solid var(--yellow); }
.term { padding: var(--space-s) 0; border-bottom: 1px solid var(--g-100); }
.term:last-child { border-bottom: none; }
.term-name { font-family: var(--font-body); font-size: var(--step-1); font-weight: 700; letter-spacing: -0.01em; margin-bottom: 6px; }
.term-name .alt { font-size: var(--step--1); color: var(--g-600); font-weight: 500; margin-left: 6px; }
.term-def { font-size: var(--step--1); line-height: 1.6; max-width: 72ch; }
.term-def .ref { font-weight: 700; text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.term.hidden { display: none; }
.letter-section.empty { display: none; }
.no-results { text-align: center; padding: 60px 20px; color: var(--g-600); font-size: 1.05rem; display: none; }
.no-results.show { display: block; }

.content-wrap { max-width: 820px; }
.toolbar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: var(--space-l); }
.print-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 20px; background: var(--ink); color: var(--white); border: none; border-radius: var(--r-pill); font-size: 0.95rem; font-weight: 700; cursor: pointer; }
.print-btn:hover { background: var(--ink-2); }
.toolbar-note { font-size: 0.85rem; font-weight: 600; color: var(--g-600); }
.category { margin-bottom: var(--space-2xl); }
.category-label { display: inline-flex; align-items: center; min-height: 28px; padding: 0 10px; border-radius: var(--r-pill); background: var(--yellow); font-size: 0.78rem; font-weight: 700; margin-bottom: 12px; }
.category-title { font-size: var(--step-3); margin-bottom: var(--space-m); }
.question { padding: var(--space-m) 0; border-bottom: 1px solid var(--g-100); page-break-inside: avoid; break-inside: avoid; }
.question:last-child { border-bottom: none; }
.question-number { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: var(--r-pill); background: var(--ink); color: var(--yellow); font-family: var(--font-display); font-weight: 800; font-size: 0.9rem; margin-right: 12px; vertical-align: middle; }
.question-text { font-size: var(--step-1); font-weight: 700; letter-spacing: -0.01em; line-height: 1.3; display: inline; vertical-align: middle; }
.question-why { font-size: var(--step--1); line-height: 1.6; margin: 12px 0 12px 44px; max-width: 68ch; }
.question-listen { margin-left: 44px; padding: 12px 16px; background: var(--g-50); border-radius: var(--r-md); font-size: var(--step--1); color: var(--g-700); max-width: 68ch; }
.question-listen strong { display: block; margin-bottom: 4px; font-size: 0.8rem; }

.values-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-s); margin: var(--space-l) 0; }
.value-card { background: var(--g-50); border-radius: var(--r-lg); padding: var(--space-m); }
.value-card h4 { margin-bottom: 8px; }
.value-card p { font-size: var(--step--1); margin: 0; }

.contact-content { max-width: 640px; padding: var(--space-xl) 0 var(--space-2xl); }
.contact-form { display: grid; gap: var(--space-m); }
.contact-form label { font-weight: 700; font-size: var(--step--1); display: block; margin-bottom: 6px; }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; min-height: 50px; padding: 12px 18px; border: 2px solid var(--ink); border-radius: var(--r-md); font-size: 1rem; background: var(--white); }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; box-shadow: 0 0 0 4px rgba(17, 17, 17, 0.15); }
.contact-form textarea { min-height: 160px; resize: vertical; }
.contact-note { font-size: var(--step--2); color: var(--g-600); }
.contact-form .form-message { font-weight: 700; font-size: 0.95rem; }
.hidden-field { display: none; }

/* ---------- 8. Motion, print, responsive ---------- */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@media screen and (prefers-reduced-motion: no-preference) and (min-width: 769px) {
  @supports (animation-timeline: view()) {
    .reveal { animation: fadeInUp 0.5s ease both; animation-timeline: view(); animation-range: entry 0% entry 25%; }
  }
}

@media print {
  .reveal { animation: none !important; opacity: 1 !important; transform: none !important; }
  .nav, .footer, .toolbar, .footer-cta, .skip-link, .newsletter { display: none !important; }
  body { background: white; color: black; font-size: 11pt; }
  .page-header { padding: 0 0 16px; border: none; }
  .page-content, .container { padding: 0; max-width: 100%; }
  .content-wrap { max-width: 100%; }
  .intro-box { background: white; border: 1px solid #999; padding: 12px; margin-bottom: 20px; }
  .category { margin-bottom: 24px; page-break-inside: auto; }
  .category-title { font-size: 14pt; margin-bottom: 12px; border-bottom: 1px solid #333; padding-bottom: 4px; }
  .category-label { background: white; border: 1px solid #999; }
  .question { padding: 10px 0; border-bottom: 1px dotted #ccc; }
  .question-text { font-size: 11pt; }
  .question-number { background: #333; color: white; width: 24px; height: 24px; font-size: 9pt; }
  .question-why { font-size: 10pt; margin-left: 36px; }
  .question-listen { background: #f4f4f4; font-size: 9pt; margin-left: 36px; padding: 8px 12px; border: 1px solid #ddd; }
  .page-header h1::after { content: " · PolicyLector.com"; font-size: 10pt; font-weight: normal; color: #666; }
  @page { margin: 0.6in; }
}

@media (max-width: 1100px) {
  .book-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: var(--space-xl); }
  .report-card { max-width: 640px; }
  .hero-proof { grid-template-columns: repeat(2, 1fr); }
  .analyzer-grid { grid-template-columns: 1fr; gap: var(--space-xl); }
  .steps-grid, .stat-row { grid-template-columns: 1fr; }
  .book-featured-row { grid-template-columns: 1fr; }
  .resources-grid { grid-template-columns: 1fr; gap: var(--space-xl); }
  .newsletter-card { grid-template-columns: 1fr; gap: var(--space-m); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-l); }
}
@media (max-width: 768px) {
  .nav-links { display: none; position: absolute; top: var(--nav-height); left: 0; right: 0; background: var(--white); flex-direction: column; align-items: stretch; padding: var(--space-s) var(--gutter) var(--space-m); gap: 4px; border-bottom: 1px solid var(--g-100); box-shadow: var(--shadow-md); }
  .nav-links.open { display: flex; }
  .nav-link { padding: 14px 0; font-size: 1.1rem; border-bottom: 1px solid var(--g-100); }
  .nav-link[aria-current="page"] { border-bottom-color: var(--g-100); }
  .nav-cta { margin-top: var(--space-xs); justify-content: center; min-height: 52px; }
  .nav-toggle { display: flex; }
  .hero { padding-top: calc(var(--nav-height) + var(--space-l)); }
  .hero-actions .btn { flex: 1 1 auto; }
  .hero-proof { grid-template-columns: 1fr 1fr; }
  .report-row { grid-template-columns: 1fr auto; }
  .report-row .report-val { grid-column: 1; }
  .report-row .chip { grid-column: 2; grid-row: 1 / span 2; }
  .book-grid { grid-template-columns: 1fr 1fr; }
  .book-tile { min-height: 240px; }
  .mini-ledger-row { grid-template-columns: 1.2fr 1fr 1fr; }
  .mini-ledger-row > :nth-child(4) { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-l); }
  .footer-bottom { flex-direction: column; }
  .newsletter-card { padding: var(--space-l) var(--space-m); border-radius: var(--r-lg); }
  .form-row { flex-direction: column; }
  .values-grid { grid-template-columns: 1fr; }
  .question-why, .question-listen { margin-left: 0; }
  .article-nav a[style*="text-align: right"] { text-align: left !important; }
  .table-wrapper { overflow-x: auto; }
  .min-table th { position: static; }
  .min-table th, .min-table td { padding: 10px 12px; }
  .analyzer-card-body { padding: 18px; }
  .sample-modal-panel { padding: 24px 20px 20px; }
}
@media (max-width: 900px) and (min-width: 769px) { .table-wrapper { overflow-x: auto; } .min-table th { position: static; } }
@media (max-width: 480px) { .book-grid { grid-template-columns: 1fr; } .book-tile { min-height: 0; gap: 8px; } .book-tile-title { margin-top: 4px; } .hero-proof { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; } }
