/* ==========================================================================
   TexasWildlifeExemption.com — Design System
   Premium, calm, Texas. Fraunces (display) + Inter (text).
   ========================================================================== */

/* ---------- Fonts (self-hosted) ---------- */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/fraunces-latin-full-normal.woff2') format('woff2-variations');
}
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/fraunces-latin-full-italic.woff2') format('woff2-variations');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/inter-latin-opsz-normal.woff2') format('woff2-variations');
}

/* ---------- Tokens ---------- */
:root {
  --ink: #17251d;
  --ink-soft: #3d4f45;
  --muted: #5c6d62;
  --faint: #8a9a8e;

  --pine: #1d3a2a;
  --pine-deep: #142a1e;
  --green: #2e5c41;
  --green-hover: #264d36;
  --sage: #7f957f;

  --cream: #faf7f1;
  --sand: #f3ede0;
  --paper: #ffffff;
  --line: #e6dfcf;
  --line-soft: #eee8da;

  --gold: #c2903e;
  --gold-deep: #a67729;
  --gold-soft: #f0e3c6;
  --gold-faint: #f8f1e0;

  --on-dark: #f5f1e6;
  --on-dark-muted: #b9c6ba;

  --font-display: 'Fraunces', 'Iowan Old Style', Georgia, 'Times New Roman', serif;
  --font-text: 'Inter', -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;

  --shadow-sm: 0 1px 2px rgba(23, 37, 29, 0.05), 0 1px 6px rgba(23, 37, 29, 0.04);
  --shadow-md: 0 2px 6px rgba(23, 37, 29, 0.05), 0 12px 32px -8px rgba(23, 37, 29, 0.12);
  --shadow-lg: 0 4px 10px rgba(23, 37, 29, 0.06), 0 28px 60px -16px rgba(23, 37, 29, 0.22);
  --shadow-gold: 0 8px 24px -8px rgba(194, 144, 62, 0.5);

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;

  --container: 1180px;
  --container-wide: 1320px;
  --container-narrow: 780px;

  --nav-h: 76px;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body { overflow-x: clip; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body {
  margin: 0;
  font-family: var(--font-text);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-optical-sizing: auto;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-hover); }
button { font: inherit; cursor: pointer; }
::selection { background: var(--gold-soft); color: var(--pine-deep); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 560;
  line-height: 1.12;
  color: var(--ink);
  margin: 0 0 0.5em;
  letter-spacing: -0.012em;
  font-variation-settings: 'SOFT' 40, 'WONK' 0;
}
h1 { font-size: clamp(2.3rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.85rem, 3.2vw, 2.7rem); }
h3 { font-size: clamp(1.25rem, 1.8vw, 1.5rem); line-height: 1.25; }
h4 { font-size: 1.1rem; font-family: var(--font-text); font-weight: 650; letter-spacing: 0; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
strong { color: var(--ink); font-weight: 640; }
.section--dark strong, .price-card--featured strong, .cta-band strong,
.calc strong, .aside-card--cta strong, .county-hero strong { color: #f6f2e7; }

.lead {
  font-size: clamp(1.1rem, 1.6vw, 1.28rem);
  line-height: 1.6;
  color: var(--muted);
  font-weight: 420;
}
.small { font-size: 0.9rem; }
.fine { font-size: 0.8125rem; color: var(--faint); line-height: 1.55; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(20px, 4vw, 40px); }
.container--wide { max-width: var(--container-wide); }
.container--narrow { max-width: var(--container-narrow); }

.section { padding-block: clamp(72px, 9vw, 128px); }
.section--tight { padding-block: clamp(56px, 7vw, 96px); }
.section--flush-top { padding-top: 0; }
.section--white { background: var(--paper); }
.section--sand { background: var(--sand); }
.section--dark { background: var(--pine-deep); color: var(--on-dark-muted); }
.section--dark h2, .section--dark h3 { color: var(--on-dark); }
.section--gold { background: var(--gold-faint); }
.section-line { border-top: 1px solid var(--line-soft); }

.section-head { max-width: 720px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head .lead { margin-top: 14px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 680;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: '';
  width: 22px; height: 1.5px;
  background: var(--gold);
  border-radius: 2px;
}
.section-head--center .eyebrow::after {
  content: '';
  width: 22px; height: 1.5px;
  background: var(--gold);
  border-radius: 2px;
}
.section--dark .eyebrow { color: var(--gold); }

.grid { display: grid; gap: clamp(20px, 2.6vw, 32px); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.split > *, .grid > *, .county-layout > * { min-width: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 620;
  font-size: 0.98rem;
  letter-spacing: 0.005em;
  border: 1px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn .arrow { transition: transform 0.18s ease; }
.btn:hover .arrow { transform: translateX(3px); }

.btn--primary {
  background: linear-gradient(180deg, #35684a, var(--green) 55%, #29523a);
  color: #fdfcf8;
  box-shadow: 0 1px 2px rgba(20, 42, 30, 0.35), 0 10px 24px -10px rgba(29, 58, 42, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}
.btn--primary:hover { color: #fff; box-shadow: 0 1px 2px rgba(20, 42, 30, 0.4), 0 14px 30px -10px rgba(29, 58, 42, 0.65), inset 0 1px 0 rgba(255,255,255,0.14); transform: translateY(-1px); }

.btn--gold {
  background: linear-gradient(180deg, #d5a44f, var(--gold) 55%, #b07f2e);
  color: #241a08;
  box-shadow: 0 1px 2px rgba(120, 85, 20, 0.35), var(--shadow-gold), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.btn--gold:hover { color: #1a1204; transform: translateY(-1px); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: rgba(23, 37, 29, 0.22);
}
.btn--ghost:hover { border-color: rgba(23, 37, 29, 0.45); color: var(--ink); background: rgba(255,255,255,0.5); }

.btn--ghost-light {
  background: rgba(255, 255, 255, 0.08);
  color: var(--on-dark);
  border-color: rgba(245, 241, 230, 0.35);
  backdrop-filter: blur(6px);
}
.btn--ghost-light:hover { border-color: rgba(245, 241, 230, 0.7); color: #fff; background: rgba(255,255,255,0.14); }

.btn--lg { padding: 17px 34px; font-size: 1.05rem; }
.btn--sm { padding: 10px 18px; font-size: 0.9rem; }

.text-link {
  display: inline-flex; align-items: center; gap: 7px;
  font-weight: 620; color: var(--green);
}
.text-link .arrow { transition: transform 0.18s ease; }
.text-link:hover .arrow { transform: translateX(3px); }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  border-bottom: 1px solid transparent;
}
.site-header .container--wide {
  display: flex; align-items: center; gap: 30px;
}
.site-header.is-solid,
.site-header.is-scrolled {
  background: rgba(250, 247, 241, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line-soft);
}
.site-header.is-scrolled { box-shadow: 0 1px 0 rgba(23,37,29,0.02), 0 8px 24px -16px rgba(23, 37, 29, 0.18); }

.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-mark { width: 38px; height: 38px; flex: none; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.16rem;
  letter-spacing: -0.01em;
  line-height: 1.05;
  font-variation-settings: 'SOFT' 40;
}
.brand-name .tld { color: var(--gold-deep); }

.nav-links { display: flex; align-items: center; gap: 4px; margin-inline: auto; }
.nav-links a {
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--ink-soft);
  font-weight: 540;
  font-size: 0.96rem;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}
.nav-links .nav-cta-mobile { display: none; }
.nav-links a:hover { color: var(--ink); background: rgba(23, 37, 29, 0.055); }
.nav-links a.is-active { color: var(--ink); background: rgba(23, 37, 29, 0.07); }

.nav-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; flex: none; }
.nav-actions .signin { padding: 9px 14px; color: var(--ink-soft); font-weight: 560; font-size: 0.96rem; white-space: nowrap; }
.nav-actions .signin:hover { color: var(--ink); }
.nav-actions .btn { padding: 11px 22px; font-size: 0.93rem; }

/* Overlay nav (transparent over hero) */
.site-header.is-overlay:not(.is-scrolled):not(.is-open) { background: transparent; border-bottom-color: transparent; }
.site-header.is-overlay:not(.is-scrolled):not(.is-open) .brand,
.site-header.is-overlay:not(.is-scrolled):not(.is-open) .nav-links a,
.site-header.is-overlay:not(.is-scrolled):not(.is-open) .nav-actions .signin { color: var(--on-dark); }
.site-header.is-overlay:not(.is-scrolled):not(.is-open) .nav-links a:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
.site-header.is-overlay:not(.is-scrolled):not(.is-open) .brand-name .tld { color: var(--gold); }
.site-header.is-overlay:not(.is-scrolled):not(.is-open) .nav-toggle { color: var(--on-dark); }

.nav-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 0;
  padding: 8px;
  color: var(--ink);
  border-radius: 8px;
}
.nav-toggle svg { display: block; }
.nav-toggle .icon-close { display: none; }

@media (max-width: 920px) {
  .nav-toggle { display: block; }
  .nav-actions { display: none; }
  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    padding: 14px 20px 22px;
    box-shadow: 0 30px 50px -20px rgba(23, 37, 29, 0.25);
    display: none;
  }
  .site-header.is-open .nav-links { display: flex; }
  .site-header.is-open { background: var(--cream); border-bottom-color: var(--line-soft); }
  .site-header.is-open .icon-menu { display: none; }
  .site-header.is-open .icon-close { display: block; }
  .site-header.is-open .brand, .site-header.is-open .nav-toggle { color: var(--ink); }
  .nav-links a { padding: 13px 14px; font-size: 1.05rem; border-radius: 10px; white-space: normal; }
  .nav-links .nav-cta-mobile {
    display: block;
    margin-top: 12px;
    background: var(--green);
    color: #fff !important;
    text-align: center;
    font-weight: 640;
  }
}

/* ---------- Cinematic hero (homepage) ---------- */
.hero-cinema {
  position: relative;
  min-height: max(680px, 94vh);
  display: flex;
  align-items: flex-end;
  color: var(--on-dark);
  overflow: hidden;
  background: #0d1911;
}
.hero-cinema .hero-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-cinema .hero-art svg { width: 100%; height: 100%; }
.hero-cinema::after {
  /* bottom fade into the page for a seamless cinematic transition */
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 140px;
  background: linear-gradient(180deg, rgba(250, 247, 241, 0) 0%, rgba(250, 247, 241, 0.9) 82%, var(--cream) 100%);
  pointer-events: none;
}
.hero-cinema .container--wide {
  position: relative;
  z-index: 2;
  padding-top: calc(var(--nav-h) + 40px);
  padding-bottom: clamp(120px, 15vh, 180px);
}
.hero-inner { max-width: 800px; }
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  font-weight: 640;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #ecd9ac;
  background: rgba(20, 30, 22, 0.35);
  border: 1px solid rgba(236, 217, 172, 0.35);
  padding: 9px 16px;
  border-radius: 999px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  margin-bottom: 26px;
}
.hero-kicker .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px 2px rgba(194, 144, 62, 0.8); }
.hero-title {
  font-size: clamp(2.6rem, 5.2vw, 4.3rem);
  color: #fdfbf4;
  line-height: 1.04;
  letter-spacing: -0.018em;
  margin-bottom: 22px;
  text-shadow: 0 2px 30px rgba(10, 18, 12, 0.45);
  text-wrap: balance;
}
.hero-title em {
  font-style: italic;
  font-variation-settings: 'SOFT' 70, 'WONK' 1;
  color: #f2d492;
}
.hero-sub {
  font-size: clamp(1.08rem, 1.7vw, 1.3rem);
  line-height: 1.6;
  color: rgba(245, 241, 230, 0.92);
  max-width: 600px;
  margin-bottom: 34px;
  text-shadow: 0 1px 18px rgba(10, 18, 12, 0.5);
}
.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-top: 30px;
  font-size: 0.92rem;
  color: rgba(245, 241, 230, 0.85);
}
.hero-proof span { display: inline-flex; align-items: center; gap: 8px; }
.hero-proof svg { color: var(--gold); flex: none; }

.hero-scroll {
  position: absolute;
  z-index: 3;
  right: clamp(20px, 4vw, 44px);
  bottom: 26px;
  color: rgba(245, 241, 230, 0.66);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-scroll::after {
  content: '';
  width: 1px; height: 44px;
  background: linear-gradient(180deg, rgba(245,241,230,0.65), rgba(245,241,230,0));
}
@media (max-width: 700px) { .hero-scroll { display: none; } }

/* ---------- Interior page hero ---------- */
.page-hero {
  padding-top: calc(var(--nav-h) + clamp(48px, 7vw, 88px));
  padding-bottom: clamp(48px, 6vw, 80px);
  position: relative;
  overflow: hidden;
}
.page-hero--art { background: var(--sand); }
.page-hero .container { position: relative; z-index: 2; }
.page-hero .lead { max-width: 680px; }
.page-hero-band {
  position: absolute;
  inset: auto 0 0 0;
  height: 100%;
  pointer-events: none;
  opacity: 0.38;
  -webkit-mask-image: linear-gradient(180deg, transparent 4%, rgba(0,0,0,0.55) 55%, #000 100%);
  mask-image: linear-gradient(180deg, transparent 4%, rgba(0,0,0,0.55) 55%, #000 100%);
}
.page-hero-band svg { width: 100%; height: 100%; }

.breadcrumbs {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  font-size: 0.85rem;
  color: var(--faint);
  margin-bottom: 22px;
}
.breadcrumbs a { color: var(--muted); font-weight: 540; }
.breadcrumbs a:hover { color: var(--green); }
.breadcrumbs .sep { opacity: 0.6; }

/* ---------- Trust bar / logo stats ---------- */
.trustbar { background: var(--cream); position: relative; z-index: 3; margin-top: 0; }
.trustbar-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: clamp(28px, 4vw, 44px) 0 clamp(20px, 3vw, 36px);
}
@media (max-width: 900px) { .trustbar-inner { grid-template-columns: repeat(2, 1fr); } }
.trust-stat { text-align: left; padding-left: 22px; border-left: 2px solid var(--gold-soft); }
.trust-stat .num {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 2.6vw, 2.3rem);
  font-weight: 580;
  color: var(--ink);
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.trust-stat .num sup { font-size: 0.55em; color: var(--gold-deep); }
.trust-stat .label { font-size: 0.88rem; color: var(--muted); margin-top: 6px; line-height: 1.45; }

/* ---------- Cards ---------- */
.card {
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  padding: clamp(24px, 3vw, 34px);
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
a.card { color: inherit; display: block; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--line); }
.card h3 { margin-top: 18px; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 0.98rem; }

.card-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: grid; place-items: center;
  background: linear-gradient(150deg, var(--gold-faint), var(--gold-soft));
  border: 1px solid #ead9b3;
  color: var(--gold-deep);
}
.card--dark {
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(245, 241, 230, 0.12);
  box-shadow: none;
}
.card--dark h3 { color: var(--on-dark); }
.card--dark p { color: var(--on-dark-muted); }
.card--dark:hover { border-color: rgba(245, 241, 230, 0.28); box-shadow: none; }

.card-link-row { margin-top: 16px; }

/* ---------- Feature split art panel ---------- */
.art-panel {
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  background: var(--pine-deep);
}
.art-panel svg { width: 100%; height: auto; display: block; }

/* Product mock (dashboard illustration) */
.mock-window {
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  background: #fff;
}
.mock-window svg { width: 100%; height: auto; display: block; }

/* ---------- Checklist ---------- */
.checklist { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 13px; }
.checklist li { display: flex; gap: 13px; align-items: flex-start; color: var(--ink-soft); }
.checklist li strong { display: block; }
.checklist .check {
  flex: none;
  width: 24px; height: 24px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: #e7efe4;
  color: var(--green);
  margin-top: 2px;
}
.section--dark .checklist li { color: var(--on-dark-muted); }
.section--dark .checklist .check { background: rgba(242, 212, 146, 0.15); color: var(--gold); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.6vw, 32px); counter-reset: step; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding: clamp(24px, 3vw, 34px); background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); }
.step-num {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 640;
  color: var(--gold-deep);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  letter-spacing: 0.04em;
}
.step-num::after { content: ''; height: 1px; width: 34px; background: var(--gold); opacity: 0.6; }
.step h3 { margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 0.98rem; }

/* Vertical timeline (how-it-works) */
.timeline { position: relative; display: grid; gap: clamp(36px, 5vw, 56px); margin-top: 8px; }
.timeline::before {
  content: '';
  position: absolute;
  left: 27px; top: 10px; bottom: 10px;
  width: 1.5px;
  background: linear-gradient(180deg, var(--gold) 0%, var(--line) 100%);
}
.tl-item { position: relative; display: grid; grid-template-columns: 56px 1fr; gap: clamp(20px, 3vw, 36px); }
.tl-marker {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 620;
  font-size: 1.2rem;
  color: var(--gold-deep);
  position: relative; z-index: 1;
}
.tl-body { padding-top: 6px; }
.tl-body .tl-tag { font-size: 0.8rem; font-weight: 660; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 6px; }
.tl-body h3 { margin-bottom: 10px; }
.tl-body p { color: var(--muted); max-width: 640px; }
.tl-aside {
  margin-top: 18px;
  background: var(--gold-faint);
  border: 1px solid var(--gold-soft);
  border-radius: var(--r-md);
  padding: 16px 20px;
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.tl-aside strong { color: var(--gold-deep); }

/* ---------- Practices grid ---------- */
.practices { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.2vw, 26px); }
@media (max-width: 980px) { .practices { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .practices { grid-template-columns: 1fr; } }
.practice {
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}
.practice-idx {
  position: absolute;
  top: 14px; right: 20px;
  font-family: var(--font-display);
  font-size: 3.2rem;
  font-weight: 500;
  color: var(--sand);
  line-height: 1;
  z-index: 0;
  font-variation-settings: 'SOFT' 60;
}
/* dark section variant: translucent cards, light text */
.practice.card--dark {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(245, 241, 230, 0.13);
  box-shadow: none;
}
.practice.card--dark:hover { border-color: rgba(245, 241, 230, 0.3); }
.practice.card--dark h3 { color: var(--on-dark); }
.practice.card--dark p { color: var(--on-dark-muted); }
.practice.card--dark .practice-idx { color: rgba(245, 241, 230, 0.09); }
.practice.card--dark .card-icon {
  background: rgba(242, 212, 146, 0.12);
  border-color: rgba(242, 212, 146, 0.28);
  color: #ecd08e;
}
.practice .card-icon { width: 46px; height: 46px; border-radius: 12px; position: relative; z-index: 1; }
.practice h3 { font-size: 1.18rem; margin: 16px 0 8px; position: relative; z-index: 1; }
.practice p { font-size: 0.94rem; color: var(--muted); position: relative; z-index: 1; }

/* ---------- Big number stats (dark) ---------- */
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 48px); }
@media (max-width: 800px) { .stat-row { grid-template-columns: 1fr; } }
.big-stat { border-left: 2px solid rgba(242, 212, 146, 0.4); padding-left: 26px; }
.big-stat .num {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 4.4vw, 3.8rem);
  font-weight: 560;
  color: #f2d492;
  line-height: 1.05;
  letter-spacing: -0.015em;
}
.big-stat .label { color: var(--on-dark-muted); margin-top: 10px; max-width: 300px; }

/* ---------- Comparison table ---------- */
.compare-wrap { overflow-x: auto; border-radius: var(--r-lg); border: 1px solid var(--line); box-shadow: var(--shadow-md); background: var(--paper); }
.compare { width: 100%; border-collapse: collapse; min-width: 720px; font-size: 0.96rem; }
.compare th, .compare td { padding: 18px 22px; text-align: left; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.compare thead th { background: var(--sand); font-family: var(--font-text); font-size: 0.92rem; font-weight: 660; color: var(--ink); border-bottom: 1px solid var(--line); }
.compare thead th.hl { background: var(--pine); color: #fff; }
.compare tbody tr:last-child td { border-bottom: 0; }
.compare td.hl { background: #f4f8f2; font-weight: 560; color: var(--ink); box-shadow: inset 2px 0 0 var(--green), inset -2px 0 0 var(--green); }
.compare tbody tr:last-child td.hl { box-shadow: inset 2px 0 0 var(--green), inset -2px 0 0 var(--green), inset 0 -2px 0 var(--green); }
.compare td .no { color: #b3543e; }
.compare td .yes { color: var(--green); font-weight: 600; }
.compare td:first-child { font-weight: 560; color: var(--ink); }

/* ---------- Pricing ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.6vw, 30px); align-items: stretch; }
@media (max-width: 980px) { .pricing-grid { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; } }
.price-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: clamp(28px, 3.4vw, 40px);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  position: relative;
}
.price-card--featured {
  background: linear-gradient(175deg, #21422f, var(--pine-deep) 70%);
  border-color: #2c5038;
  color: var(--on-dark-muted);
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
}
@media (max-width: 980px) { .price-card--featured { transform: none; } }
.price-card--featured h3, .price-card--featured .price { color: var(--on-dark); }
.price-flag {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(180deg, #d5a44f, var(--gold));
  color: #241a08;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 7px 16px;
  border-radius: 999px;
  box-shadow: var(--shadow-gold);
  white-space: nowrap;
}
.price-card .plan-name { font-size: 1.24rem; margin-bottom: 4px; }
.price-card .plan-for { font-size: 0.92rem; color: var(--muted); min-height: 42px; }
.price-card--featured .plan-for { color: var(--on-dark-muted); }
.price { font-family: var(--font-display); font-size: clamp(2.6rem, 3.4vw, 3.2rem); font-weight: 560; color: var(--ink); line-height: 1; margin: 18px 0 4px; letter-spacing: -0.02em; }
.price .cur { font-size: 0.5em; vertical-align: 0.7em; margin-right: 2px; font-weight: 500; }
.price .per { font-family: var(--font-text); font-size: 0.34em; font-weight: 480; color: var(--muted); letter-spacing: 0; margin-left: 6px; }
.price-card--featured .price .per { color: var(--on-dark-muted); }
.price-note { font-size: 0.85rem; color: var(--faint); margin-bottom: 20px; }
.price-card--featured .price-note { color: var(--on-dark-muted); opacity: 0.8; }
.price-card .checklist { margin: 4px 0 28px; gap: 11px; font-size: 0.95rem; flex: 1; }
.price-card--featured .checklist li { color: #d9e2d6; }
.price-card--featured .checklist .check { background: rgba(242, 212, 146, 0.16); color: var(--gold); }
.price-card .btn { width: 100%; }

/* ---------- Calculator ---------- */
.calc {
  background: linear-gradient(170deg, #21422f, var(--pine-deep) 78%);
  border-radius: var(--r-xl);
  border: 1px solid #2c5038;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  color: var(--on-dark-muted);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
}
@media (max-width: 900px) { .calc { grid-template-columns: 1fr; } }
.calc-controls { padding: clamp(28px, 4vw, 48px); }
.calc-controls h3 { color: var(--on-dark); font-size: clamp(1.5rem, 2.2vw, 1.9rem); margin-bottom: 8px; }
.calc-controls .sub { font-size: 0.95rem; margin-bottom: 30px; }
.calc-field { margin-bottom: 26px; }
.calc-field label { display: flex; justify-content: space-between; align-items: baseline; font-size: 0.9rem; font-weight: 600; color: var(--on-dark); margin-bottom: 12px; }
.calc-field label output { font-family: var(--font-display); font-size: 1.15rem; color: #f2d492; font-weight: 560; }
input[type='range'] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 5px; border-radius: 4px;
  background: linear-gradient(90deg, var(--gold) var(--fill, 50%), rgba(245, 241, 230, 0.18) var(--fill, 50%));
  outline: none;
}
input[type='range']::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 22px; height: 22px; border-radius: 50%;
  background: #f6e8c8;
  border: 2px solid var(--gold);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
  cursor: grab;
}
input[type='range']::-moz-range-thumb {
  width: 20px; height: 20px; border-radius: 50%;
  background: #f6e8c8; border: 2px solid var(--gold);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4); cursor: grab;
}
.calc-result {
  background: rgba(9, 18, 12, 0.35);
  border-left: 1px solid rgba(245, 241, 230, 0.1);
  padding: clamp(28px, 4vw, 48px);
  display: flex; flex-direction: column; justify-content: center;
}
@media (max-width: 900px) { .calc-result { border-left: 0; border-top: 1px solid rgba(245,241,230,0.1); } }
.calc-result .res-label { font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 640; color: var(--on-dark-muted); }
.calc-result .res-big {
  font-family: var(--font-display);
  font-size: clamp(3rem, 5.4vw, 4.4rem);
  color: #f2d492;
  font-weight: 570;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 10px 0 4px;
}
.calc-result .res-sub { font-size: 0.95rem; margin-bottom: 26px; }
.calc-rows { display: grid; gap: 12px; margin-bottom: 30px; }
.calc-rowline { display: flex; justify-content: space-between; gap: 20px; font-size: 0.95rem; padding-bottom: 12px; border-bottom: 1px dashed rgba(245, 241, 230, 0.15); }
.calc-rowline .v { font-weight: 640; color: var(--on-dark); font-variant-numeric: tabular-nums; }
.calc-result .fine { color: rgba(185, 198, 186, 0.75); margin-top: 18px; }

/* ---------- Quote / testimonial ---------- */
.quote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.6vw, 30px); }
@media (max-width: 980px) { .quote-grid { grid-template-columns: 1fr; } }
.quote {
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  padding: clamp(26px, 3vw, 34px);
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
}
.quote .stars { color: var(--gold); display: flex; gap: 3px; margin-bottom: 18px; }
.quote blockquote {
  margin: 0 0 22px;
  font-family: var(--font-display);
  font-size: 1.12rem;
  line-height: 1.5;
  color: var(--ink);
  font-weight: 480;
  font-variation-settings: 'SOFT' 50;
  flex: 1;
}
.quote .who { display: flex; align-items: center; gap: 13px; }
.quote .who > span:last-child { display: flex; flex-direction: column; gap: 2px; }
.quote .ava {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 660; font-size: 0.95rem;
  color: #fff;
  background: linear-gradient(140deg, var(--green), var(--pine));
}
.quote .who .nm { font-weight: 640; color: var(--ink); font-size: 0.95rem; line-height: 1.3; }
.quote .who .loc { font-size: 0.84rem; color: var(--faint); }

/* ---------- FAQ accordion ---------- */
.faq-list { display: grid; gap: 12px; }
.faq-item {
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: border-color 0.2s ease;
}
.faq-item[open] { border-color: var(--line); }
.faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 20px 24px;
  font-weight: 610;
  color: var(--ink);
  cursor: pointer;
  font-size: 1.02rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .ind {
  flex: none;
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid; place-items: center;
  color: var(--gold-deep);
  transition: transform 0.25s ease, background 0.2s ease;
}
.faq-item[open] summary .ind { transform: rotate(45deg); background: var(--gold-faint); }
.faq-item .faq-body { padding: 0 24px 24px; color: var(--muted); font-size: 0.98rem; max-width: 760px; }
.faq-cat { margin-top: 44px; margin-bottom: 18px; font-size: 1.3rem; }
.faq-cat:first-of-type { margin-top: 0; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; background: var(--pine-deep); color: var(--on-dark-muted); }
.cta-band .cta-art { position: absolute; inset: 0; opacity: 0.9; pointer-events: none; }
.cta-band .cta-art svg { width: 100%; height: 100%; }
.cta-band .container { position: relative; z-index: 2; text-align: center; padding-block: clamp(80px, 10vw, 130px); }
.cta-band h2 { font-size: clamp(2rem, 4vw, 3.1rem); color: #fdfbf4; max-width: 700px; margin-inline: auto; text-wrap: balance; }
.cta-band .lead { color: rgba(230, 235, 224, 0.85); max-width: 560px; margin: 16px auto 34px; }
.cta-band .btn-row { justify-content: center; }
.cta-band .fine { margin-top: 22px; color: rgba(185, 198, 186, 0.7); }

/* ---------- County index ---------- */
.county-search {
  display: flex; align-items: center; gap: 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px 8px 22px;
  box-shadow: var(--shadow-md);
  max-width: 560px;
}
.county-search svg { color: var(--faint); flex: none; }
.county-search input {
  border: 0; outline: none; flex: 1;
  font: inherit; font-size: 1.05rem;
  background: transparent; color: var(--ink);
  padding: 8px 0;
  min-width: 0;
}
.county-search input::placeholder { color: var(--faint); }

.region-chips { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 26px; }
.chip {
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink-soft);
  font-size: 0.88rem;
  font-weight: 570;
  padding: 8px 16px;
  border-radius: 999px;
  transition: all 0.15s ease;
}
.chip:hover { border-color: var(--sage); color: var(--ink); }
.chip.is-active { background: var(--pine); border-color: var(--pine); color: #fff; }

.region-block { margin-bottom: clamp(40px, 5vw, 60px); }
.region-block-head {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 18px;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-soft);
}
.region-block-head h2 { font-size: 1.5rem; margin: 0; }
.region-block-head .count { font-size: 0.85rem; color: var(--faint); font-weight: 560; }
.region-block-head .rtag { font-size: 0.9rem; color: var(--muted); }
.county-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
@media (max-width: 1000px) { .county-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px) { .county-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .county-grid { grid-template-columns: 1fr; } }
.county-link {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 12px 16px;
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: 11px;
  color: var(--ink-soft);
  font-size: 0.94rem;
  font-weight: 550;
  transition: all 0.15s ease;
}
.county-link .arrow { color: var(--faint); opacity: 0; transform: translateX(-4px); transition: all 0.15s ease; }
.county-link:hover { border-color: var(--green); color: var(--green); background: #fbfdf9; }
.county-link:hover .arrow { opacity: 1; transform: none; color: var(--green); }

/* ---------- County page ---------- */
.county-hero { background: var(--pine-deep); color: var(--on-dark-muted); position: relative; overflow: hidden; }
.county-hero .hero-strip { position: absolute; inset: 0; pointer-events: none; }
.county-hero .hero-strip svg { width: 100%; height: 100%; }
.county-hero .hero-strip::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(11, 20, 13, 0.68) 0%, rgba(11, 20, 13, 0.35) 55%, rgba(11, 20, 13, 0.15) 100%),
    linear-gradient(180deg, rgba(11, 20, 13, 0.55) 0%, rgba(11, 20, 13, 0.1) 45%, rgba(11, 20, 13, 0.35) 100%);
}
.county-hero .container { position: relative; z-index: 2; padding-top: calc(var(--nav-h) + clamp(44px, 6vw, 72px)); padding-bottom: clamp(44px, 6vw, 72px); }
.county-hero .breadcrumbs { color: rgba(245, 241, 230, 0.6); }
.county-hero .breadcrumbs a { color: rgba(245, 241, 230, 0.85); }
.county-hero .breadcrumbs a:hover { color: #fff; }
.county-hero h1 { color: #fdfbf4; margin-bottom: 14px; max-width: 800px; text-wrap: balance; }
.county-hero .lead { color: rgba(230, 235, 224, 0.88); max-width: 720px; }
.region-pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.82rem; font-weight: 640;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: #ecd9ac;
  border: 1px solid rgba(236, 217, 172, 0.4);
  background: rgba(20, 30, 22, 0.4);
  padding: 8px 15px; border-radius: 999px;
  margin-bottom: 20px;
}

.facts-band { background: var(--cream); border-bottom: 1px solid var(--line-soft); }
.facts-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transform: translateY(-46px);
  margin-bottom: -18px;
}
@media (max-width: 900px) { .facts-grid { grid-template-columns: repeat(2, 1fr); } }
.fact { background: var(--paper); padding: 22px 24px; }
.fact .k { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 660; color: var(--faint); margin-bottom: 7px; }
.fact .v { font-weight: 620; color: var(--ink); font-size: 1.02rem; line-height: 1.4; }
.fact .v a { border-bottom: 1px dashed var(--sage); }

.county-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(40px, 5vw, 72px); align-items: start; }
@media (max-width: 980px) { .county-layout { grid-template-columns: 1fr; } }
.county-aside { position: sticky; top: calc(var(--nav-h) + 24px); display: grid; gap: 20px; }
@media (max-width: 980px) { .county-aside { position: static; } }
.aside-card {
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}
.aside-card h3 { font-size: 1.12rem; margin-bottom: 12px; }
.aside-card p { font-size: 0.92rem; color: var(--muted); }
.aside-card--cta { background: linear-gradient(170deg, #21422f, var(--pine-deep)); border-color: #2c5038; }
.aside-card--cta h3 { color: var(--on-dark); }
.aside-card--cta p { color: var(--on-dark-muted); }
.aside-card--cta .btn { width: 100%; margin-top: 16px; }
.aside-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.aside-links a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 12px; margin: 0 -12px;
  border-radius: 9px;
  color: var(--ink-soft); font-size: 0.93rem; font-weight: 550;
}
.aside-links a:hover { background: var(--sand); color: var(--ink); }

/* ---------- Article / prose ---------- */
.prose { max-width: 720px; }
.prose > h2 {
  font-size: clamp(1.55rem, 2.4vw, 1.95rem);
  margin: 2em 0 0.6em;
  scroll-margin-top: calc(var(--nav-h) + 24px);
}
.prose > h2:first-child { margin-top: 0; }
.prose > h3 { font-size: 1.25rem; margin: 1.8em 0 0.5em; }
.prose p { color: var(--ink-soft); }
.prose ul, .prose ol { padding-left: 24px; color: var(--ink-soft); margin: 0 0 1.2em; }
.prose li { margin-bottom: 9px; }
.prose li::marker { color: var(--gold-deep); font-weight: 600; }
.callout {
  border-radius: var(--r-md);
  padding: 22px 26px;
  margin: 1.6em 0;
  font-size: 0.97rem;
  border: 1px solid var(--gold-soft);
  background: var(--gold-faint);
}
.callout.is-green { border-color: #d6e2cf; background: #f2f7ee; }
.callout.is-red { border-color: #ecd5c8; background: #faf1ea; }
.callout .co-title { display: flex; align-items: center; gap: 9px; font-weight: 680; color: var(--ink); margin-bottom: 8px; font-size: 0.95rem; }
.callout.is-red .co-title { color: #8c4630; }
.callout.is-green .co-title { color: var(--green); }
.callout p:last-child { margin-bottom: 0; }
.prose .figure { margin: 2em 0; }
.prose .figure figcaption { font-size: 0.85rem; color: var(--faint); margin-top: 10px; }

.deadline-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; margin: 1.4em 0 1.8em; }
.deadline-table th, .deadline-table td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.deadline-table th { font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); font-weight: 660; }
.deadline-table td:first-child { font-weight: 620; color: var(--ink); white-space: nowrap; }

/* ---------- Resource cards ---------- */
.resource-card { display: flex; flex-direction: column; }
.resource-card .rc-tag { font-size: 0.76rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 680; color: var(--gold-deep); margin-bottom: 14px; }
.resource-card h3 { margin: 0 0 10px; font-size: 1.3rem; }
.resource-card p { flex: 1; }
.resource-card .text-link { margin-top: 18px; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: grid; gap: 8px; }
.field.wide { grid-column: 1 / -1; }
.field label { font-size: 0.88rem; font-weight: 640; color: var(--ink); }
.field input, .field select, .field textarea {
  font: inherit;
  padding: 13px 16px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(46, 92, 65, 0.14);
}
.field textarea { resize: vertical; min-height: 130px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--pine-deep); color: var(--on-dark-muted); }
.footer-cta-strip { border-bottom: 1px solid rgba(245, 241, 230, 0.1); }
.footer-main { padding-block: clamp(56px, 7vw, 88px) clamp(36px, 4vw, 52px); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr; gap: clamp(28px, 4vw, 48px); }
@media (max-width: 1000px) { .footer-grid { grid-template-columns: 1fr 1fr 1fr; } .footer-brand-col { grid-column: 1 / -1; max-width: 420px; } }
@media (max-width: 620px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-brand-col .brand { color: var(--on-dark); margin-bottom: 16px; }
.footer-brand-col .brand-name .tld { color: var(--gold); }
.footer-brand-col p { font-size: 0.93rem; line-height: 1.6; color: rgba(185, 198, 186, 0.9); }
.footer-col h4 { color: var(--on-dark); font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 680; margin: 0 0 18px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.footer-col a { color: rgba(200, 210, 198, 0.85); font-size: 0.93rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(245, 241, 230, 0.1);
  padding-block: 26px;
  display: flex; flex-wrap: wrap; gap: 14px 28px;
  align-items: center; justify-content: space-between;
  font-size: 0.82rem;
  color: rgba(185, 198, 186, 0.6);
}
.footer-bottom a { color: rgba(185, 198, 186, 0.75); }
.footer-bottom a:hover { color: #fff; }
.footer-bottom .legal-links { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-disclaimer { font-size: 0.8rem; line-height: 1.6; color: rgba(185, 198, 186, 0.55); max-width: 880px; margin-top: 20px; }

/* ---------- Reveal animations ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.65s cubic-bezier(0.2, 0.6, 0.2, 1), transform 0.65s cubic-bezier(0.2, 0.6, 0.2, 1); }
  .reveal.is-in { opacity: 1; transform: none; }
  .reveal-d1 { transition-delay: 0.08s; }
  .reveal-d2 { transition-delay: 0.16s; }
  .reveal-d3 { transition-delay: 0.24s; }
  .hero-inner > * { opacity: 0; transform: translateY(18px); animation: heroIn 0.9s cubic-bezier(0.2, 0.6, 0.2, 1) forwards; }
  .hero-inner > *:nth-child(1) { animation-delay: 0.15s; }
  .hero-inner > *:nth-child(2) { animation-delay: 0.28s; }
  .hero-inner > *:nth-child(3) { animation-delay: 0.41s; }
  .hero-inner > *:nth-child(4) { animation-delay: 0.54s; }
  .hero-inner > *:nth-child(5) { animation-delay: 0.67s; }
  @keyframes heroIn { to { opacity: 1; transform: none; } }
}

/* ---------- Utilities ---------- */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }
.mt-56 { margin-top: 56px; }
.mb-24 { margin-bottom: 24px; }
.maxw-640 { max-width: 640px; }
.maxw-720 { max-width: 720px; }
.mx-auto { margin-inline: auto; }
.nowrap { white-space: nowrap; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: -60px; left: 20px; z-index: 300;
  background: var(--pine); color: #fff;
  padding: 12px 20px; border-radius: 0 0 10px 10px;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 0; color: #fff; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.btn:focus-visible { outline-offset: 2px; }

/* ---------- Content figures (raster diagrams) ---------- */
.figure { margin: 2.2em 0; }
.figure img {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--cream);
}
.figure figcaption { font-size: 0.85rem; color: var(--faint); margin-top: 12px; line-height: 1.5; }

/* ---------- Sources & further reading ---------- */
.sources-list { margin: 1.1em 0 0.4em; padding-left: 1.25em; font-size: 0.93rem; color: var(--muted); }
.sources-list li { margin-bottom: 0.55em; line-height: 1.55; }
.sources-list a { font-weight: 620; }

/* ---------- Downloads (resources hub) ---------- */
.dl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 2.6vw, 32px); }
@media (max-width: 900px) { .dl-grid { grid-template-columns: 1fr; } }
.dl-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.dl-thumb { display: block; border-bottom: 1px solid var(--line-soft); }
.dl-thumb img { display: block; width: 100%; height: auto; }
.dl-meta { padding: clamp(22px, 2.6vw, 30px); display: flex; flex-direction: column; gap: 14px; }
.dl-meta h3 { margin: 0; font-size: 1.25rem; }
.dl-meta > p { margin: 0; font-size: 0.95rem; }
.dl-embed { border-top: 1px solid var(--line-soft); padding-top: 14px; }
.dl-embed summary {
  cursor: pointer; list-style: none; font-size: 0.87rem; font-weight: 650; color: var(--gold-deep);
}
.dl-embed summary::-webkit-details-marker { display: none; }
.dl-embed summary::after { content: ' +'; }
.dl-embed[open] summary::after { content: ' \2212'; }
.dl-embed pre {
  margin-top: 12px; padding: 14px 16px;
  background: var(--pine-deep); color: #c9d6c6;
  border-radius: 10px; font-size: 0.74rem; line-height: 1.55;
  overflow-x: auto; white-space: pre-wrap; word-break: break-all;
}
