/* ================================================================
   style.css — Système de design "La Caisse"
   Site: calculcan.ca
   Mise à jour: 2026-02-28
   ================================================================ */

/* ─── 1. Design Tokens ──────────────────────────────────────────── */
:root {
  /* Couleurs */
  --color-forest:     #1B4332;
  --color-moss:       #2D6A4F;
  --color-fern:       #40916C;
  --color-gold:       #C9903B;
  --color-gold-light: #E8C17A;
  --color-amber:      #7A5500; /* gold accessible — ratio 6.6:1 sur blanc */
  --color-cream:      #FDFAF4;
  --color-parchment:  #F4EDD8;
  --color-ink:        #1C1917;
  --color-stone:      #57534E;
  --color-mist:       #A8A29E;
  --color-border:     #E2D9C5;
  --color-success:    #15803D;
  --color-white:      #FFFFFF;

  /* Polices */
  --font-display: "Fraunces", Georgia, serif;
  --font-body:    "DM Sans", system-ui, -apple-system, sans-serif;
  --font-mono:    "JetBrains Mono", "Courier New", monospace;

  /* Layout */
  --max-w: 64rem;
  --px: clamp(1.25rem, 4vw, 2rem);
  --py-section: clamp(4rem, 8vw, 5rem);

  /* Rayons */
  --r-md:  0.75rem;
  --r-lg:  1rem;
  --r-xl:  1.25rem;
  --r-2xl: 1.5rem;
}

/* ─── 2. Reset ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
img, svg { display: block; max-width: 100%; }
a { text-decoration: none; }
button { cursor: pointer; font-family: inherit; }
body {
  background-color: var(--color-cream);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }

/* ─── 3. Typographie ─────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  color: var(--color-forest);
}

/* ─── 4. Layout ──────────────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--px);
}
.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
.grid-4 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 640px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
}
.section { padding-block: var(--py-section); }
.section + .section { padding-top: 0; }

/* ─── 5. Navigation ──────────────────────────────────────────────── */
.site-nav {
  background-color: var(--color-cream);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 50;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}
.nav-logo-icon {
  width: 28px; height: 28px;
  background-color: var(--color-forest);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.nav-logo-text {
  font-family: var(--font-display);
  font-size: 1.05rem; font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-forest);
}
.nav-logo-text em { color: var(--color-forest); font-style: normal; }
.nav-links {
  display: none;
  list-style: none;
  gap: 1.75rem;
}
.nav-links a {
  font-size: 0.875rem; font-weight: 500;
  color: var(--color-stone);
  transition: color 0.15s;
}
.nav-links a:hover, .nav-links a.active { color: var(--color-forest); }
.nav-cta {
  font-size: 0.875rem; font-weight: 600;
  color: white;
  background-color: var(--color-forest);
  padding: 0.5rem 1rem;
  border-radius: var(--r-md);
  transition: opacity 0.15s;
}
.nav-cta:hover { opacity: 0.9; }
.nav-hamburger {
  display: flex; flex-direction: column; gap: 5px;
  background: none; border: none; padding: 0.25rem;
}
.nav-hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--color-ink); border-radius: 2px;
}
.nav-mobile-menu {
  display: none;
  position: fixed; inset: 60px 0 0 0;
  background: var(--color-cream);
  border-top: 1px solid var(--color-border);
  z-index: 49;
  padding: 1.5rem var(--px);
  flex-direction: column;
}
.nav-mobile-menu.open { display: flex; }
.nav-mobile-menu a {
  display: block; padding: 0.875rem 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 1rem; font-weight: 500;
  color: var(--color-ink);
}
.nav-mobile-menu a:hover { color: var(--color-forest); }
.nav-mobile-menu a:last-child { border-bottom: none; }
@media (min-width: 768px) {
  .nav-links { display: flex; }
  .nav-hamburger { display: none; }
}

/* ─── 6. Footer ──────────────────────────────────────────────────── */
.site-footer {
  background-color: var(--color-forest);
  color: rgba(253,250,244,0.7);
  margin-top: 5rem;
}
.footer-inner { padding-block: 3rem; }
.footer-top {
  display: flex; flex-direction: column; gap: 2rem;
  margin-bottom: 2.5rem;
}
.footer-brand {
  font-family: var(--font-display);
  font-size: 1.125rem; font-weight: 700;
  color: var(--color-cream); margin-bottom: 0.5rem;
}
.footer-brand em { color: var(--color-gold-light); font-style: normal; }
.footer-desc { font-size: 0.875rem; line-height: 1.6; max-width: 18rem; }
.footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem 4rem; }
.footer-links-title {
  font-size: 0.875rem; font-weight: 600;
  color: var(--color-cream); margin-bottom: 0.75rem;
}
.footer-links ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links a {
  font-size: 0.875rem; color: rgba(253,250,244,0.7); transition: color 0.15s;
}
.footer-links a:hover { color: var(--color-gold-light); }
.footer-bottom {
  border-top: 1px solid rgba(253,250,244,0.12);
  padding-top: 1.5rem; font-size: 0.75rem;
  display: flex; flex-direction: column; gap: 0.375rem;
}
.footer-bottom a { color: var(--color-gold-light); text-decoration: underline; }
@media (min-width: 640px) {
  .footer-top { flex-direction: row; justify-content: space-between; }
}

/* ─── 7. Card ────────────────────────────────────────────────────── */
.card {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--r-2xl);
  padding: 1.75rem;
}
.card-parchment {
  background-color: var(--color-parchment);
  border: 1px solid var(--color-border);
  border-radius: var(--r-2xl);
  padding: 1.5rem;
}
.card-title {
  font-size: 1rem; font-weight: 700;
  margin-bottom: 1.25rem;
}

/* ─── 8. Boutons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 0.875rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--r-md); border: none;
  transition: opacity 0.15s, background 0.15s;
  white-space: nowrap; text-decoration: none;
}
.btn-primary { background-color: var(--color-gold); color: var(--color-ink); }
.btn-primary:hover { opacity: 0.9; }
.btn-ghost {
  background-color: rgba(253,250,244,0.1); color: var(--color-cream);
  border: 1px solid rgba(253,250,244,0.2);
}
.btn-ghost:hover { background-color: rgba(253,250,244,0.16); }

/* ─── 9. Badge ───────────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.3rem 0.75rem; border-radius: 9999px;
}
.badge-gold {
  background-color: rgba(201,144,59,0.18);
  color: var(--color-gold-light);
}

/* ─── 10. Hero Section ───────────────────────────────────────────── */
.hero-section {
  background-color: var(--color-forest);
  position: relative; overflow: hidden;
}
.bg-dot-grid {
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(253,250,244,0.15) 1.5px, transparent 1.5px);
  background-size: 22px 22px;
  pointer-events: none;
}
.grain::after {
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 1;
}
.hero-inner {
  position: relative; z-index: 2;
  padding-block: clamp(5rem, 10vw, 7rem);
}

/* ─── 11. Page Header (bande blanche) ───────────────────────────── */
.page-header {
  background-color: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  padding-block: 2rem 2.25rem;
}
.page-header-eyebrow {
  font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--color-fern); margin-bottom: 0.5rem;
}
.page-header h1 { font-size: clamp(1.5rem, 4vw, 1.875rem); margin-bottom: 0.375rem; }
.page-header p { font-size: 0.875rem; color: var(--color-stone); }

/* ─── 12. Result Hero ────────────────────────────────────────────── */
.result-hero {
  background: linear-gradient(135deg, var(--color-forest), var(--color-moss));
  border-radius: var(--r-2xl); padding: 1.75rem;
  position: relative; overflow: hidden;
}
.result-hero-inner { position: relative; z-index: 2; }
.result-hero-top {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 0.5rem;
}
.result-hero-label {
  font-family: var(--font-body); font-size: 0.875rem; font-weight: 500;
  color: rgba(253,250,244,0.65);
}
.result-tag {
  background-color: rgba(253,250,244,0.12);
  color: rgba(253,250,244,0.7);
  font-family: var(--font-body); font-size: 0.7rem;
  padding: 2px 8px; border-radius: 9999px;
}
.result-hero-number {
  font-family: var(--font-mono);
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  font-weight: 700; letter-spacing: -0.02em; line-height: 1.1;
  color: var(--color-cream);
}
.result-hero-sub {
  font-family: var(--font-body); font-size: 0.875rem;
  color: rgba(253,250,244,0.55); margin-top: 0.5rem;
}
.result-hero.celi {
  background: linear-gradient(135deg, var(--color-moss), var(--color-fern));
}

/* ─── 13. Ledger Rows ────────────────────────────────────────────── */
.ledger-row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--color-border);
}
.ledger-row:last-child { border-bottom: none; }
.ledger-label { font-family: var(--font-body); font-size: 0.875rem; color: var(--color-ink); }
.ledger-sub { font-size: 0.75rem; color: var(--color-mist); margin-top: 0.125rem; }
.ledger-val { font-family: var(--font-mono); font-weight: 600; color: var(--color-success); }
.ledger-row-total {
  border-bottom: none;
  border-top: 2px solid var(--color-border);
  padding-top: 1rem; margin-top: 0.25rem;
}
.ledger-row-total .ledger-label { font-weight: 700; }
.ledger-row-total .ledger-val { font-size: 1.1rem; color: var(--color-forest); }
.ledger-val-muted { font-family: var(--font-mono); font-weight: 600; color: var(--color-stone); }

/* ─── 14. Stat Pills ─────────────────────────────────────────────── */
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }
.stat-pill { border-radius: var(--r-lg); padding: 0.75rem 1rem; }
.stat-pill-accent { background-color: rgba(27,67,50,0.06); }
.stat-pill-num {
  font-family: var(--font-mono); font-weight: 700;
  font-size: 1.25rem; color: var(--color-ink);
}
.stat-pill-accent .stat-pill-num { font-size: 1.5rem; color: var(--color-forest); }
.stat-pill-label { font-size: 0.75rem; color: var(--color-stone); margin-top: 0.125rem; }

/* ─── 15. Progress Bars ──────────────────────────────────────────── */
.progress-row { display: flex; align-items: center; gap: 0.75rem; }
.progress-year { font-family: var(--font-mono); font-size: 0.75rem; color: var(--color-stone); width: 2.5rem; flex-shrink: 0; }
.progress-bar { height: 6px; background: var(--color-border); border-radius: 3px; overflow: hidden; flex: 1; }
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-fern), var(--color-moss));
  border-radius: 3px;
  transition: width 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.progress-val { font-family: var(--font-mono); font-size: 0.75rem; font-weight: 600; color: var(--color-forest); width: 6rem; text-align: right; flex-shrink: 0; }

/* ─── 16. CTA Block (affiliation sombre) ────────────────────────── */
.cta-block {
  background-color: var(--color-ink);
  border-radius: var(--r-xl); padding: 1.75rem 2rem;
  margin-top: 2.5rem;
}
.cta-block-inner {
  display: flex; flex-direction: column; gap: 1.25rem;
}
.cta-block-title {
  font-family: var(--font-display); font-size: 1.125rem; font-weight: 700;
  color: var(--color-cream); margin-bottom: 0.25rem;
}
.cta-block-desc { font-size: 0.875rem; color: rgba(253,250,244,0.55); }
.cta-block-disclaimer { font-size: 0.75rem; color: rgba(253,250,244,0.3); margin-top: 1rem; }
@media (min-width: 640px) {
  .cta-block-inner { flex-direction: row; align-items: center; justify-content: space-between; }
}

/* ─── 17. Sliders ────────────────────────────────────────────────── */
input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 3px;
  background: var(--color-border);
  border-radius: 2px; outline: none; cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--color-forest);
  border: 3px solid var(--color-cream);
  box-shadow: 0 0 0 1.5px var(--color-forest), 0 2px 6px rgba(27,67,50,0.25);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  box-shadow: 0 0 0 1.5px var(--color-forest), 0 4px 12px rgba(27,67,50,0.35);
}
input[type="range"]::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--color-forest);
  border: 3px solid var(--color-cream);
  box-shadow: 0 0 0 1.5px var(--color-forest);
  cursor: pointer;
}
.input-group { display: flex; flex-direction: column; gap: 0.5rem; }
.input-group-header { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.input-group-label { font-size: 0.875rem; font-weight: 500; color: var(--color-stone); }
.input-group-value { font-family: var(--font-mono); font-size: 1.125rem; font-weight: 700; color: var(--color-forest); }
.input-group-minmax { display: flex; justify-content: space-between; align-items: center; font-size: 0.75rem; color: var(--color-mist); }
.input-group-hint { color: var(--color-gold); font-weight: 500; }

/* Click-to-edit */
.editable-btn {
  font-family: var(--font-mono); font-size: 1.125rem; font-weight: 700;
  color: var(--color-forest); background: none; border: none;
  cursor: text; padding: 0;
  text-decoration: underline; text-decoration-style: dotted;
  text-decoration-color: var(--color-gold); text-underline-offset: 4px;
  transition: text-decoration-style 0.15s;
}
.editable-btn:hover { text-decoration-style: solid; }
.editable-input {
  font-family: var(--font-mono); font-size: 1.125rem; font-weight: 700;
  color: var(--color-forest);
  border: 1.5px solid var(--color-forest); border-radius: 6px;
  padding: 2px 8px; width: 130px; text-align: right;
  outline: none; background: var(--color-parchment);
}

/* ─── 18. Year Buttons ───────────────────────────────────────────── */
.year-btns { display: flex; gap: 0.5rem; }
.year-btn {
  font-size: 0.875rem; font-weight: 600;
  padding: 0.5rem 1rem; border-radius: var(--r-md);
  border: 1.5px solid var(--color-border);
  background: transparent; color: var(--color-stone);
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.year-btn:hover { border-color: var(--color-forest); }
.year-btn.active { background-color: var(--color-forest); color: white; border-color: var(--color-forest); }

/* ─── 19. Alert & Info Boxes ─────────────────────────────────────── */
.alert-gold {
  background-color: rgba(201,144,59,0.08);
  border: 1px solid rgba(201,144,59,0.25);
  border-radius: var(--r-lg); padding: 0.75rem 1rem; font-size: 0.875rem;
}
.alert-gold-title { font-weight: 600; color: var(--color-gold); margin-bottom: 0.125rem; }
.info-box {
  background-color: var(--color-parchment);
  border: 1px solid var(--color-border);
  border-radius: var(--r-lg); padding: 1rem;
  font-size: 0.875rem; color: var(--color-stone); line-height: 1.6;
}
.info-box a { color: var(--color-forest); text-decoration: underline; text-decoration-color: var(--color-gold); font-weight: 500; }
.droits-box {
  background-color: rgba(64,145,108,0.08);
  border: 1px solid rgba(64,145,108,0.18);
  border-radius: var(--r-lg); padding: 0.75rem 1rem;
}
.droits-box-label { font-size: 0.75rem; color: var(--color-stone); margin-bottom: 0.125rem; }
.droits-box-val { font-family: var(--font-mono); font-size: 1.25rem; font-weight: 700; color: var(--color-forest); }

/* ─── 20. Animation Résultat ─────────────────────────────────────── */
@keyframes countUp {
  from { opacity: 0.4; transform: translateY(5px); }
  to   { opacity: 1;   transform: translateY(0); }
}
.result-number { animation: countUp 0.22s cubic-bezier(0.22, 1, 0.36, 1); display: inline-block; }

/* ─── 21. Homepage Components ────────────────────────────────────── */
.feature-card {
  background-color: var(--color-parchment);
  border: 1px solid var(--color-border);
  border-radius: var(--r-2xl); padding: 1.5rem;
}
.feature-icon { font-size: 1.5rem; color: var(--color-fern); margin-bottom: 0.75rem; }
.feature-title { font-size: 1rem; font-weight: 700; margin-bottom: 0.5rem; }
.feature-desc { font-size: 0.875rem; color: var(--color-stone); line-height: 1.6; }

.tool-card { border-radius: var(--r-2xl); padding: 1.5rem; display: block; transition: box-shadow 0.15s; }
.tool-card:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.tool-card-inner { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.tool-card-title { font-family: var(--font-display); font-weight: 700; font-size: 1rem; margin-bottom: 0.375rem; }
.tool-card-title:hover { text-decoration: underline; }
.tool-card-desc { font-size: 0.875rem; color: var(--color-stone); }
.tool-card-arrow { font-size: 1.125rem; flex-shrink: 0; margin-left: 1rem; }

.faq-item { border-left: 3px solid var(--color-gold); padding-left: 1.25rem; }
.faq-q { font-weight: 700; color: var(--color-forest); margin-bottom: 0.375rem; }
.faq-a { font-size: 0.875rem; color: var(--color-stone); line-height: 1.6; }

.preview-card {
  background-color: var(--color-cream);
  border: 1px solid var(--color-border);
  border-radius: var(--r-2xl); padding: 1.75rem;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}
.preview-row {
  display: flex; justify-content: space-between; align-items: center;
  background-color: var(--color-parchment); border-radius: 8px; padding: 0.75rem 1rem;
}
.preview-eyebrow { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-stone); margin-bottom: 1.25rem; }
.preview-result { border-top: 2px solid var(--color-border); padding-top: 1.25rem; margin-top: 1.5rem; }

/* ─── 22. Guide & Tables ─────────────────────────────────────────── */
.prose { max-width: 65ch; }
.prose h2 { font-size: 1.25rem; font-weight: 700; margin-top: 2.5rem; margin-bottom: 0.75rem; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--color-stone); margin-bottom: 0.9rem; line-height: 1.7; }
.prose strong { color: var(--color-ink); }
.prose a { color: var(--color-forest); text-decoration: underline; text-decoration-color: var(--color-gold); }

.data-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.data-table thead th {
  text-align: left; padding: 0.75rem 1.5rem;
  color: var(--color-stone); font-weight: 500;
  background-color: var(--color-parchment);
}
.data-table thead th:not(:first-child) { text-align: right; }
.data-table tbody tr { border-top: 1px solid var(--color-border); }
.data-table tbody tr.highlight { background-color: rgba(64,145,108,0.06); }
.data-table tbody td { padding: 0.75rem 1.5rem; color: var(--color-ink); }
.data-table tbody td:not(:first-child) { text-align: right; font-family: var(--font-mono); color: var(--color-stone); }

/* ─── 23. Plafond Cards ──────────────────────────────────────────── */
.plafond-card { border-radius: var(--r-2xl); padding: 1.5rem; color: white; }
.plafond-card-label { font-size: 0.875rem; opacity: 0.7; margin-bottom: 0.25rem; }
.plafond-card-val { font-family: var(--font-mono); font-size: 2.5rem; font-weight: 700; line-height: 1.2; }
.plafond-card-sub { font-size: 0.875rem; opacity: 0.7; margin-top: 0.5rem; }
.plafond-card-reer { background: linear-gradient(135deg, var(--color-forest), var(--color-moss)); }
.plafond-card-celi { background: linear-gradient(135deg, var(--color-moss), var(--color-fern)); }

/* ─── 24. Guide Summary ──────────────────────────────────────────── */
.summary-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 640px) { .summary-grid { grid-template-columns: 1fr 1fr; } }
.summary-card { background-color: var(--color-white); border-radius: var(--r-xl); padding: 1rem; }
.summary-card-title { font-weight: 600; margin-bottom: 0.5rem; font-size: 0.9375rem; }
.summary-card-list { list-style: none; font-size: 0.875rem; color: var(--color-stone); display: flex; flex-direction: column; gap: 0.25rem; }

/* ─── 25. Case studies (reer-ou-celi) ───────────────────────────── */
.case-item { padding-left: 1.25rem; }
.case-item-reer { border-left: 4px solid var(--color-forest); }
.case-item-celi { border-left: 4px solid var(--color-fern); }
.case-item-mixte { border-left: 4px solid var(--color-gold); }
.case-title { font-weight: 600; color: var(--color-ink); margin-bottom: 0.375rem; }
.case-desc { font-size: 0.875rem; color: var(--color-stone); line-height: 1.6; }

/* ─── 26. Utilitaires ────────────────────────────────────────────── */
.footnote { font-size: 0.75rem; color: var(--color-mist); line-height: 1.6; margin-top: 1.5rem; }
.footnote a { color: var(--color-forest); text-decoration: underline; text-decoration-color: var(--color-gold); }
.section-eyebrow { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.section-title { font-size: 1.25rem; font-weight: 700; margin-bottom: 2rem; }
.section-title-center { text-align: center; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-y-8 > * + * { margin-top: 2rem; }
.space-y-9 > * + * { margin-top: 2.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-10 { margin-top: 2.5rem; }
.desktop-only { display: none; }
@media (min-width: 1024px) { .desktop-only { display: block; } }
:focus-visible { outline: 2px solid var(--color-gold); outline-offset: 2px; border-radius: 3px; }

/* ─── 27. SEO Content Section ────────────────────────────────── */
.seo-section {
  padding-block: 4rem 5rem;
  background: var(--color-parchment);
}
body:has(.seo-section) .site-footer { margin-top: 0; }

.seo-section h2 {
  color: var(--color-forest);
  font-size: clamp(1.125rem, 2.5vw, 1.375rem);
  margin-bottom: 0.75rem;
}
.seo-subsection { margin-bottom: 3.5rem; }
.seo-subsection:last-child { margin-bottom: 0; }
.seo-subsection + .seo-subsection {
  padding-top: 3.5rem;
  border-top: 1px solid var(--color-border);
}

/* Eyebrow label */
.seo-eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 0.625rem;
}

/* Formula callout */
.formula-callout {
  background: var(--color-forest);
  color: var(--color-cream);
  border-radius: var(--r-xl);
  padding: 1.125rem 1.5rem;
  margin-top: 1.125rem;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  line-height: 1.7;
  letter-spacing: -0.01em;
}
.formula-callout strong { color: var(--color-gold-light); }

/* FAQ numbered cards */
.faq-grid {
  counter-reset: faq-counter;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 44rem;
}
.seo-section .faq-item {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--r-xl);
  padding: 1.25rem 1.5rem 1.25rem 4rem;
  border-left: none;
  position: relative;
  counter-increment: faq-counter;
  transition: box-shadow 0.18s, transform 0.18s;
}
.seo-section .faq-item:hover {
  box-shadow: 0 6px 20px rgba(27,67,50,0.09);
  transform: translateY(-2px);
}
.seo-section .faq-item::before {
  content: counter(faq-counter);
  position: absolute;
  left: 1.25rem;
  top: 1.25rem;
  width: 1.625rem;
  height: 1.625rem;
  background: var(--color-forest);
  color: var(--color-cream);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.seo-section .faq-q {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--color-forest);
  margin-bottom: 0.5rem;
  line-height: 1.4;
}
.seo-section .faq-a {
  font-size: 0.875rem;
  color: var(--color-stone);
  line-height: 1.75;
}
.seo-section .faq-a a {
  color: var(--color-forest);
  text-decoration: underline;
  text-decoration-color: var(--color-gold);
}
.seo-section .faq-a strong { color: var(--color-ink); }

/* Table in seo-section */
.seo-section .data-table tbody tr.highlight td { font-weight: 600; }
.seo-section .data-table tbody tr.highlight td:last-child {
  color: var(--color-forest) !important;
  font-weight: 700;
}
