/* GreywaterHub — styles.css */
/* Design: Editorial Field Guide — Forest Green + Warm Sand + Moss Accent */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,900;1,400;1,600&family=Source+Serif+4:ital,opsz,wght@0,8..60,300;0,8..60,400;0,8..60,600;1,8..60,300;1,8..60,400&family=JetBrains+Mono:wght@400;500&display=swap');

/* ===== TOKENS ===== */
:root {
  --forest:   #1a3a2a;
  --forest-d: #0f2418;
  --forest-m: #2a5040;
  --moss:     #7cb87a;
  --moss-l:   #a8d4a6;
  --sand:     #f5f0e8;
  --sand-d:   #e8e0d0;
  --sand-dk:  #cfc5b0;
  --amber:    #d4843a;
  --amber-l:  #f0a855;
  --white:    #fefefe;
  --ink:      #1a1a18;
  --ink-m:    #3a3a36;
  --ink-l:    #6a6a62;

  --ff-head:  'Playfair Display', Georgia, serif;
  --ff-body:  'Source Serif 4', Georgia, serif;
  --ff-mono:  'JetBrains Mono', 'Courier New', monospace;

  --radius:   4px;
  --radius-l: 8px;
  --shadow:   0 2px 12px rgba(26,58,42,0.12);
  --shadow-l: 0 8px 40px rgba(26,58,42,0.18);
  --trans:    0.22s ease;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--ff-body);
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--ink);
  background: var(--sand);
}
img { max-width: 100%; display: block; }
a { color: var(--forest-m); text-decoration: underline; text-underline-offset: 3px; transition: color var(--trans); }
a:hover { color: var(--moss); }
ul, ol { padding-left: 1.4em; }
li { margin-bottom: 0.35em; }

/* ===== SITE HEADER ===== */
.site-header {
  background: var(--forest-d);
  color: var(--sand);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 3px solid var(--moss);
}
.site-header .inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.site-logo {
  font-family: var(--ff-head);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: -0.02em;
}
.site-logo .drop { color: var(--moss); font-size: 1.6rem; line-height: 1; }
.site-logo span { color: var(--moss-l); font-weight: 400; font-style: italic; font-size: 0.9rem; }
.site-nav { display: flex; gap: 0; }
.site-nav a {
  color: var(--sand-dk);
  text-decoration: none;
  font-family: var(--ff-body);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0 0.9rem;
  height: 64px;
  display: flex;
  align-items: center;
  border-bottom: 3px solid transparent;
  margin-bottom: -3px;
  transition: all var(--trans);
}
.site-nav a:hover, .site-nav a.active {
  color: var(--white);
  border-bottom-color: var(--moss);
}
.nav-toggle { display: none; background: none; border: none; color: var(--sand); cursor: pointer; padding: 0.5rem; }

/* ===== HERO ===== */
.hero {
  background: var(--forest);
  color: var(--white);
  padding: 5rem 1.5rem 4.5rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse 60% 80% at 80% 50%, rgba(124,184,122,0.12) 0%, transparent 70%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%237cb87a' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.hero .inner {
  max-width: 860px;
  margin: 0 auto;
  position: relative;
}
.hero-eyebrow {
  font-family: var(--ff-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--moss);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.hero-eyebrow::before {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  background: var(--moss);
}
.hero h1 {
  font-family: var(--ff-head);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin-bottom: 1.25rem;
}
.hero h1 em { color: var(--moss-l); font-style: italic; }
.hero-sub {
  font-size: 1.15rem;
  color: var(--sand-dk);
  max-width: 600px;
  margin-bottom: 2.25rem;
  line-height: 1.65;
  font-weight: 300;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius);
  font-family: var(--ff-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--trans);
}
.btn-primary { background: var(--moss); color: var(--forest-d); }
.btn-primary:hover { background: var(--moss-l); color: var(--forest-d); }
.btn-outline { background: transparent; border-color: var(--moss); color: var(--moss-l); }
.btn-outline:hover { background: var(--moss); color: var(--forest-d); }
.btn-amber { background: var(--amber); color: var(--white); }
.btn-amber:hover { background: var(--amber-l); color: var(--forest-d); }

/* ===== QUICK STATE FINDER (hero widget) ===== */
.state-finder {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(124,184,122,0.3);
  border-radius: var(--radius-l);
  padding: 1.25rem 1.5rem;
  margin-top: 2.5rem;
  max-width: 560px;
}
.state-finder label {
  display: block;
  font-family: var(--ff-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--moss-l);
  margin-bottom: 0.6rem;
}
.state-finder-row { display: flex; gap: 0.6rem; }
.state-finder select {
  flex: 1;
  padding: 0.65rem 0.9rem;
  border: 1px solid rgba(124,184,122,0.4);
  border-radius: var(--radius);
  background: rgba(26,58,42,0.6);
  color: var(--white);
  font-family: var(--ff-body);
  font-size: 0.95rem;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%237cb87a' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2.5rem;
}
.state-finder select:focus { outline: 2px solid var(--moss); outline-offset: 2px; }
.state-finder select option { background: var(--forest-d); }
.state-finder .btn { white-space: nowrap; }

/* ===== LAYOUT ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.container-narrow { max-width: 820px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 4rem 0; }
.section-alt { background: var(--white); }
.section-dark { background: var(--forest); color: var(--white); }
.section-dark a { color: var(--moss-l); }
.section-dark a:hover { color: var(--moss); }
.section-forest { background: var(--forest-m); color: var(--white); }

.section-title {
  font-family: var(--ff-head);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}
.section-sub {
  font-size: 1rem;
  color: var(--ink-l);
  margin-bottom: 2.5rem;
  max-width: 560px;
}
.section-dark .section-sub { color: var(--sand-dk); }

/* ===== CARD GRIDS ===== */
.card-grid { display: grid; gap: 1.5rem; }
.card-grid-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border-radius: var(--radius-l);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  transition: all var(--trans);
  border: 1px solid var(--sand-d);
  position: relative;
}
.card:hover { box-shadow: var(--shadow-l); transform: translateY(-2px); }
.card-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  display: block;
}
.card h3 {
  font-family: var(--ff-head);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--forest);
}
.card p { font-size: 0.9rem; color: var(--ink-m); line-height: 1.6; }
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--forest-m);
  text-decoration: none;
  letter-spacing: 0.02em;
}
.card-link:hover { color: var(--moss); }
.card-link::after { content: '→'; transition: transform var(--trans); }
.card-link:hover::after { transform: translateX(4px); }

.card-accent { border-top: 3px solid var(--moss); }
.card-amber { border-top: 3px solid var(--amber); }

/* ===== STATE GRID ===== */
.state-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 0.75rem; }
.state-tile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1rem;
  background: var(--white);
  border: 1px solid var(--sand-d);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 600;
  transition: all var(--trans);
  gap: 0.5rem;
}
.state-tile:hover { background: var(--forest); color: var(--white); border-color: var(--forest); }
.state-badge {
  font-size: 0.68rem;
  padding: 0.15rem 0.4rem;
  border-radius: 2px;
  font-family: var(--ff-mono);
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.badge-ok { background: rgba(124,184,122,0.2); color: #2a6b28; }
.badge-permit { background: rgba(212,132,58,0.2); color: #8a4a12; }
.badge-strict { background: rgba(180,60,60,0.2); color: #7a2020; }
.badge-varies { background: rgba(100,100,180,0.2); color: #2a2a6b; }

/* ===== PERMIT STATUS BADGE (page-level) ===== */
.permit-banner {
  border-radius: var(--radius-l);
  padding: 1.25rem 1.5rem;
  margin: 1.75rem 0;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.permit-banner.green { background: rgba(124,184,122,0.15); border-left: 4px solid var(--moss); }
.permit-banner.amber { background: rgba(212,132,58,0.12); border-left: 4px solid var(--amber); }
.permit-banner.red   { background: rgba(180,60,60,0.1);   border-left: 4px solid #b43c3c; }
.permit-banner .pbi { font-size: 1.5rem; flex-shrink: 0; line-height: 1; }
.permit-banner strong { font-family: var(--ff-head); font-size: 1.05rem; display: block; margin-bottom: 0.2rem; }
.permit-banner p { font-size: 0.9rem; margin: 0; }

/* ===== ARTICLE LAYOUT ===== */
.article-header {
  background: var(--forest);
  color: var(--white);
  padding: 3.5rem 1.5rem 3rem;
}
.article-header .inner { max-width: 820px; margin: 0 auto; }
.article-eyebrow {
  font-family: var(--ff-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--moss);
  margin-bottom: 0.75rem;
}
.article-header h1 {
  font-family: var(--ff-head);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
.article-meta {
  font-size: 0.82rem;
  color: var(--sand-dk);
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  font-family: var(--ff-mono);
  letter-spacing: 0.04em;
}
.article-body { padding: 3rem 1.5rem; }
.article-body .inner { max-width: 820px; margin: 0 auto; display: grid; grid-template-columns: 1fr 280px; gap: 3.5rem; align-items: start; }
.article-content h2 {
  font-family: var(--ff-head);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--forest);
  margin: 2.25rem 0 0.8rem;
  padding-top: 1rem;
  border-top: 1px solid var(--sand-d);
  letter-spacing: -0.015em;
}
.article-content h2:first-child { margin-top: 0; border-top: none; padding-top: 0; }
.article-content h3 {
  font-family: var(--ff-head);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--forest-m);
  margin: 1.75rem 0 0.6rem;
}
.article-content p { margin-bottom: 1.1rem; }
.article-content ul, .article-content ol { margin-bottom: 1.1rem; }
.article-content li { margin-bottom: 0.4em; }
.article-content a { color: var(--forest-m); font-weight: 600; }
.article-content strong { color: var(--forest); }
.article-content em { color: var(--forest-m); }

/* ===== SIDEBAR ===== */
.sidebar { position: sticky; top: 84px; }
.sidebar-box {
  background: var(--white);
  border-radius: var(--radius-l);
  border: 1px solid var(--sand-d);
  padding: 1.4rem;
  margin-bottom: 1.25rem;
}
.sidebar-box h4 {
  font-family: var(--ff-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--moss);
  margin-bottom: 0.9rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--sand-d);
}
.sidebar-box ul { list-style: none; padding: 0; }
.sidebar-box li { padding: 0.3rem 0; border-bottom: 1px solid var(--sand-d); font-size: 0.875rem; }
.sidebar-box li:last-child { border-bottom: none; }
.toc-list { list-style: none; padding: 0; }
.toc-list a { font-size: 0.85rem; color: var(--ink-m); text-decoration: none; display: flex; gap: 0.5rem; padding: 0.25rem 0; }
.toc-list a:hover { color: var(--forest); }
.toc-list a::before { content: '§'; color: var(--moss); font-family: var(--ff-mono); flex-shrink: 0; }

/* ===== DATA TABLE ===== */
.data-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; margin: 1.5rem 0; }
.data-table th {
  background: var(--forest);
  color: var(--white);
  padding: 0.75rem 1rem;
  text-align: left;
  font-family: var(--ff-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.data-table td {
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--sand-d);
  vertical-align: top;
}
.data-table tr:nth-child(even) td { background: var(--white); }
.data-table tr:hover td { background: rgba(124,184,122,0.08); }

/* ===== FAQ ===== */
.faq-list { list-style: none; padding: 0; }
.faq-item { border-bottom: 1px solid var(--sand-d); }
.faq-item:first-child { border-top: 1px solid var(--sand-d); }
.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 1.1rem 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  cursor: pointer;
  font-family: var(--ff-head);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--forest);
  line-height: 1.3;
}
.faq-q .faq-arrow {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--moss);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  transition: transform var(--trans);
  margin-top: 2px;
}
.faq-item.open .faq-arrow { transform: rotate(45deg); }
.faq-a {
  display: none;
  padding: 0 0 1.1rem;
  font-size: 0.95rem;
  color: var(--ink-m);
  line-height: 1.7;
}
.faq-item.open .faq-a { display: block; }

/* ===== CALLOUT BOXES ===== */
.callout {
  border-radius: var(--radius-l);
  padding: 1.4rem 1.6rem;
  margin: 2rem 0;
  position: relative;
}
.callout-tip { background: rgba(124,184,122,0.12); border-left: 4px solid var(--moss); }
.callout-warn { background: rgba(212,132,58,0.12); border-left: 4px solid var(--amber); }
.callout-info { background: rgba(26,58,42,0.07); border-left: 4px solid var(--forest-m); }
.callout strong { font-family: var(--ff-head); font-size: 0.95rem; display: block; margin-bottom: 0.4rem; color: var(--forest); }
.callout p { margin: 0; font-size: 0.9rem; color: var(--ink-m); }
.callout-tip strong { color: #2a6b28; }
.callout-warn strong { color: #7a4012; }

/* ===== CHECKLIST WIDGET ===== */
.checklist {
  list-style: none;
  padding: 0;
  background: var(--white);
  border-radius: var(--radius-l);
  border: 1px solid var(--sand-d);
  overflow: hidden;
}
.checklist li {
  padding: 0.75rem 1.1rem;
  border-bottom: 1px solid var(--sand-d);
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  font-size: 0.9rem;
  margin: 0;
  cursor: pointer;
  transition: background var(--trans);
}
.checklist li:last-child { border-bottom: none; }
.checklist li:hover { background: rgba(124,184,122,0.06); }
.checklist li .cb {
  width: 18px;
  height: 18px;
  border: 2px solid var(--sand-dk);
  border-radius: 3px;
  flex-shrink: 0;
  margin-top: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--trans);
}
.checklist li.checked .cb { background: var(--moss); border-color: var(--moss); color: white; }
.checklist li.checked .cb::after { content: '✓'; font-size: 0.75rem; line-height: 1; }
.checklist li.checked span { text-decoration: line-through; color: var(--ink-l); }
.checklist-title {
  background: var(--forest);
  color: var(--white);
  padding: 0.8rem 1.1rem;
  font-family: var(--ff-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.checklist-progress {
  font-size: 0.7rem;
  background: var(--moss);
  color: var(--forest-d);
  padding: 0.15rem 0.5rem;
  border-radius: 10px;
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
  padding: 0.75rem 0;
  font-size: 0.8rem;
  color: var(--ink-l);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-family: var(--ff-mono);
  letter-spacing: 0.04em;
}
.breadcrumb a { color: var(--ink-l); text-decoration: none; }
.breadcrumb a:hover { color: var(--forest); }
.breadcrumb span { color: var(--sand-dk); }

/* ===== CALCULATOR ===== */
.calc-wrap {
  background: var(--white);
  border-radius: var(--radius-l);
  border: 1px solid var(--sand-d);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.calc-header {
  background: var(--forest);
  color: var(--white);
  padding: 1.2rem 1.5rem;
  font-family: var(--ff-head);
  font-size: 1.1rem;
  font-weight: 700;
}
.calc-body { padding: 1.5rem; }
.calc-field { margin-bottom: 1.25rem; }
.calc-field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--forest);
  margin-bottom: 0.4rem;
  font-family: var(--ff-mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.calc-field select,
.calc-field input[type="number"] {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--sand-dk);
  border-radius: var(--radius);
  font-family: var(--ff-body);
  font-size: 0.95rem;
  background: var(--sand);
  color: var(--ink);
  transition: border-color var(--trans);
}
.calc-field select:focus,
.calc-field input:focus { outline: none; border-color: var(--moss); background: var(--white); }
.calc-results {
  background: var(--forest);
  color: var(--white);
  border-radius: var(--radius);
  padding: 1.4rem;
  margin-top: 1.5rem;
  display: none;
}
.calc-results.show { display: block; }
.calc-results h4 {
  font-family: var(--ff-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--moss);
  margin-bottom: 1rem;
}
.calc-result-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  font-size: 0.9rem;
}
.calc-result-row:last-child { border-bottom: none; }
.calc-result-row .val {
  font-family: var(--ff-head);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--moss-l);
}
.permit-status-result {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 600;
}
.permit-ok { background: rgba(124,184,122,0.2); color: var(--moss-l); }
.permit-req { background: rgba(212,132,58,0.2); color: var(--amber-l); }
.permit-varies { background: rgba(200,200,100,0.15); color: #e0d060; }

/* ===== FOOTER ===== */
.site-footer {
  background: var(--forest-d);
  color: var(--sand-dk);
  padding: 3.5rem 1.5rem 2rem;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand .site-logo { font-size: 1.25rem; margin-bottom: 0.75rem; }
.footer-brand p { font-size: 0.85rem; line-height: 1.65; color: rgba(245,240,232,0.55); }
.footer-col h5 {
  font-family: var(--ff-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--moss);
  margin-bottom: 0.9rem;
}
.footer-col ul { list-style: none; padding: 0; }
.footer-col li { margin-bottom: 0.4rem; }
.footer-col a { color: rgba(245,240,232,0.6); text-decoration: none; font-size: 0.875rem; transition: color var(--trans); }
.footer-col a:hover { color: var(--moss-l); }
.footer-bottom {
  max-width: 1200px;
  margin: 2rem auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.78rem;
  color: rgba(245,240,232,0.35);
  font-family: var(--ff-mono);
}
.footer-bottom a { color: rgba(245,240,232,0.45); text-decoration: none; }
.footer-bottom a:hover { color: var(--moss); }

/* ===== DISCLAIMER ===== */
.disclaimer {
  background: var(--sand-d);
  border: 1px solid var(--sand-dk);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  font-size: 0.8rem;
  color: var(--ink-l);
  margin: 2.5rem 0 0;
  font-style: italic;
}

/* ===== PAGE: HOME SPECIFICS ===== */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--sand-d);
  border: 1px solid var(--sand-d);
  border-radius: var(--radius-l);
  overflow: hidden;
  margin: 2.5rem 0;
}
.stat-box {
  background: var(--white);
  padding: 1.6rem 1.4rem;
  text-align: center;
}
.stat-box .num {
  font-family: var(--ff-head);
  font-size: 2.25rem;
  font-weight: 900;
  color: var(--forest);
  line-height: 1;
  display: block;
}
.stat-box .lbl {
  font-size: 0.8rem;
  color: var(--ink-l);
  margin-top: 0.3rem;
  font-family: var(--ff-mono);
  letter-spacing: 0.04em;
}
.stat-box .sub {
  font-size: 0.72rem;
  color: var(--moss);
  margin-top: 0.15rem;
}

/* ===== TOOL PROMO ===== */
.tool-promo {
  background: linear-gradient(135deg, var(--forest-d) 0%, var(--forest-m) 100%);
  border-radius: var(--radius-l);
  padding: 2.5rem;
  color: var(--white);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
}
.tool-promo h3 {
  font-family: var(--ff-head);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.tool-promo p { font-size: 0.9rem; color: var(--sand-dk); margin: 0; }
.tool-promo-icon { font-size: 3rem; opacity: 0.7; }

/* ===== PDF PROMO ===== */
.pdf-promo {
  background: var(--amber);
  border-radius: var(--radius-l);
  padding: 1.75rem 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  color: var(--white);
}
.pdf-promo-icon { font-size: 2.5rem; flex-shrink: 0; }
.pdf-promo h4 { font-family: var(--ff-head); font-size: 1.1rem; font-weight: 700; margin-bottom: 0.25rem; }
.pdf-promo p { font-size: 0.85rem; opacity: 0.9; margin: 0; }
.pdf-promo .btn { margin-top: 0.75rem; background: var(--white); color: var(--amber); }
.pdf-promo .btn:hover { background: var(--sand); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .card-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .card-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .article-body .inner { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .tool-promo { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .site-nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--forest-d); flex-direction: column; padding: 0.5rem 0; border-bottom: 2px solid var(--moss); }
  .site-nav.open { display: flex; }
  .site-nav a { height: auto; padding: 0.75rem 1.5rem; border-bottom: none; margin: 0; }
  .nav-toggle { display: flex; }
  .card-grid-3, .card-grid-4, .card-grid-2 { grid-template-columns: 1fr; }
  .hero { padding: 3rem 1.5rem 2.5rem; }
  .state-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .footer-inner { grid-template-columns: 1fr; }
  .pdf-promo { flex-direction: column; text-align: center; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .faq-q { font-size: 0.95rem; }
}
@media (max-width: 480px) {
  .hero h1 { font-size: 1.9rem; }
  .hero-actions { flex-direction: column; }
  .state-finder-row { flex-direction: column; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .data-table { font-size: 0.8rem; }
  .data-table th, .data-table td { padding: 0.5rem 0.6rem; }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero .inner > * { animation: fadeUp 0.55s ease both; }
.hero .inner > *:nth-child(1) { animation-delay: 0.05s; }
.hero .inner > *:nth-child(2) { animation-delay: 0.15s; }
.hero .inner > *:nth-child(3) { animation-delay: 0.25s; }
.hero .inner > *:nth-child(4) { animation-delay: 0.35s; }
.hero .inner > *:nth-child(5) { animation-delay: 0.45s; }

/* ===== ADS PLACEHOLDER ===== */
.ad-slot {
  background: var(--sand-d);
  border: 1px dashed var(--sand-dk);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  font-size: 0.75rem;
  color: var(--ink-l);
  font-family: var(--ff-mono);
  letter-spacing: 0.04em;
  margin: 1.5rem 0;
}
