/* =============================================================
   SHSAT SCORE CALCULATOR — DESIGN SYSTEM
   ============================================================= */

/* ---------- TYPEFACES ---------- */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700;9..144,900&family=Public+Sans:wght@300;400;500;600;700&family=JetBrains+Mono:wght@500;700&display=swap');

/* =============================================================
   DESIGN TOKENS
   ============================================================= */
:root {
  /* COLORS — Civic editorial palette */
  --ink-900: #0d1730;       /* near-black navy */
  --ink-800: #1a2e5c;       /* primary brand navy */
  --ink-700: #2d4585;       /* hover navy */
  --ink-600: #4a5d99;       /* secondary navy */
  --ink-500: #5b6478;       /* secondary text */
  --ink-400: #8b94a8;       /* tertiary text */
  --ink-300: #c5cbd6;       /* borders strong */
  --ink-200: #e3e6ed;       /* borders */
  --ink-100: #f1f3f7;       /* hover surfaces */
  --ink-50:  #f8f9fb;       /* alt surfaces */

  --cream-100: #faf7f2;     /* primary background */
  --cream-200: #f5f0e6;     /* alt warm surface */
  --paper:     #ffffff;     /* card surface */

  --coral-700: #c94535;     /* CTA pressed */
  --coral-600: #e8543f;     /* CTA hover */
  --coral-500: #ff6b5b;     /* CTA primary */
  --coral-100: #ffe9e5;     /* CTA tint */

  --teal-700: #0a7d6a;      /* success pressed */
  --teal-500: #14a890;      /* success */
  --teal-100: #d8f3ec;      /* success tint */

  --gold-500: #d4a93a;      /* warning */
  --gold-100: #faf2d8;      /* warning tint */

  --rose-500: #c8456e;      /* error */
  --rose-100: #fbe3eb;      /* error tint */

  /* GRADIENTS & ATMOSPHERE */
  --grad-hero: radial-gradient(ellipse at top left, #243a73 0%, #1a2e5c 45%, #0d1730 100%);
  --grad-paper: linear-gradient(180deg, #ffffff 0%, #faf7f2 100%);
  --grad-coral: linear-gradient(135deg, #ff6b5b 0%, #e8543f 100%);

  /* TYPOGRAPHY */
  --font-display: 'Fraunces', 'Source Serif Pro', Georgia, serif;
  --font-body: 'Public Sans', 'Helvetica Neue', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Consolas, monospace;

  /* Type scale — fluid sizing */
  --fs-xs:   clamp(0.75rem, 0.72rem + 0.15vw, 0.8125rem);
  --fs-sm:   clamp(0.875rem, 0.85rem + 0.15vw, 0.9375rem);
  --fs-base: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --fs-md:   clamp(1.125rem, 1.08rem + 0.25vw, 1.1875rem);
  --fs-lg:   clamp(1.25rem, 1.18rem + 0.35vw, 1.375rem);
  --fs-xl:   clamp(1.5rem, 1.4rem + 0.5vw, 1.75rem);
  --fs-2xl:  clamp(1.875rem, 1.7rem + 0.9vw, 2.375rem);
  --fs-3xl:  clamp(2.25rem, 1.95rem + 1.5vw, 3.125rem);
  --fs-4xl:  clamp(2.75rem, 2.3rem + 2.25vw, 4rem);
  --fs-5xl:  clamp(3.25rem, 2.6rem + 3.25vw, 5rem);

  /* Line heights */
  --lh-tight: 1.1;
  --lh-snug: 1.25;
  --lh-normal: 1.5;
  --lh-relaxed: 1.65;
  --lh-loose: 1.8;

  /* SPACING — 4px base scale */
  --sp-1:  0.25rem;
  --sp-2:  0.5rem;
  --sp-3:  0.75rem;
  --sp-4:  1rem;
  --sp-5:  1.25rem;
  --sp-6:  1.5rem;
  --sp-8:  2rem;
  --sp-10: 2.5rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --sp-20: 5rem;
  --sp-24: 6rem;
  --sp-32: 8rem;

  /* RADII */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 22px;
  --r-2xl: 32px;
  --r-pill: 999px;

  /* SHADOWS — layered for depth */
  --sh-sm: 0 1px 2px rgba(13, 23, 48, 0.06), 0 1px 1px rgba(13, 23, 48, 0.04);
  --sh-md: 0 4px 12px rgba(13, 23, 48, 0.08), 0 2px 4px rgba(13, 23, 48, 0.04);
  --sh-lg: 0 12px 32px rgba(13, 23, 48, 0.12), 0 4px 12px rgba(13, 23, 48, 0.06);
  --sh-xl: 0 24px 64px rgba(13, 23, 48, 0.18), 0 8px 24px rgba(13, 23, 48, 0.08);
  --sh-coral: 0 8px 24px rgba(232, 84, 63, 0.25), 0 2px 8px rgba(232, 84, 63, 0.15);

  /* MOTION */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-fast: 150ms;
  --dur-base: 250ms;
  --dur-slow: 400ms;
  --dur-slower: 600ms;

  /* LAYOUT */
  --container: 1200px;
  --container-narrow: 760px;
  --container-wide: 1400px;
  --header-h: 76px;
}

/* =============================================================
   RESET & BASE
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
  color: var(--ink-900);
  background: var(--cream-100);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }
ul, ol { list-style: none; }
:focus-visible {
  outline: 2px solid var(--coral-500);
  outline-offset: 3px;
  border-radius: 4px;
}

/* =============================================================
   TYPOGRAPHY HELPERS
   ============================================================= */
.display { font-family: var(--font-display); font-weight: 600; line-height: var(--lh-tight); letter-spacing: -0.02em; }
.display-strong { font-weight: 700; letter-spacing: -0.025em; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.eyebrow {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--coral-600);
}
.lead { font-size: var(--fs-lg); line-height: var(--lh-relaxed); color: var(--ink-500); }

/* =============================================================
   LAYOUT
   ============================================================= */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2rem); }
.container-narrow { max-width: var(--container-narrow); margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2rem); }
.container-wide { max-width: var(--container-wide); margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2rem); }
.section { padding-block: clamp(3rem, 8vw, 6rem); }
.section-tight { padding-block: clamp(2rem, 5vw, 3.5rem); }

/* =============================================================
   HEADER & NAVIGATION
   ============================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 247, 242, 0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(13, 23, 48, 0.06);
  transition: background var(--dur-base) var(--ease-out);
}
.site-header[data-scrolled="true"] {
  background: rgba(250, 247, 242, 0.95);
  border-bottom-color: rgba(13, 23, 48, 0.1);
}
.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-6);
}
.logo-link { display: flex; align-items: center; transition: opacity var(--dur-fast); }
.logo-link:hover { opacity: 0.85; }
.logo-link img { height: 44px; width: auto; }

.nav-primary { display: none; }
@media (min-width: 960px) {
  .nav-primary {
    display: flex;
    align-items: center;
    gap: var(--sp-6);
  }
}
.nav-link {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--ink-700);
  padding: var(--sp-2) var(--sp-1);
  position: relative;
  transition: color var(--dur-fast);
}
.nav-link::after {
  content: '';
  position: absolute;
  left: var(--sp-1); right: var(--sp-1);
  bottom: -2px;
  height: 2px;
  background: var(--coral-500);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--dur-base) var(--ease-out);
}
.nav-link:hover { color: var(--ink-900); }
.nav-link:hover::after,
.nav-link[aria-current="page"]::after { transform: scaleX(1); }

.nav-link.has-menu { display: inline-flex; align-items: center; gap: var(--sp-1); }
.nav-link.has-menu::before {
  content: '';
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform var(--dur-fast);
  order: 2;
  margin-left: 4px;
}

.nav-menu-wrap { position: relative; }
.mega-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: var(--paper);
  border: 1px solid var(--ink-200);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-xl);
  padding: var(--sp-6);
  min-width: 560px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--dur-base) var(--ease-out);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-6);
}
.nav-menu-wrap:hover .mega-menu,
.nav-menu-wrap:focus-within .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.mega-section h4 {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-400);
  margin-bottom: var(--sp-3);
}
.mega-section ul { display: flex; flex-direction: column; gap: var(--sp-1); }
.mega-section a {
  display: block;
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--r-sm);
  font-size: var(--fs-sm);
  color: var(--ink-700);
  transition: all var(--dur-fast);
}
.mega-section a:hover {
  background: var(--ink-100);
  color: var(--ink-900);
  transform: translateX(2px);
}

.header-actions { display: flex; align-items: center; gap: var(--sp-3); }

.menu-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--r-sm);
  position: relative;
}
@media (min-width: 960px) { .menu-toggle { display: none; } }
.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink-800);
  margin: 0 auto;
  border-radius: 2px;
  transition: all var(--dur-base) var(--ease-out);
}
.menu-toggle span + span { margin-top: 6px; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

/* Mobile drawer */
.mobile-nav {
  position: fixed;
  top: var(--header-h);
  left: 0; right: 0;
  bottom: 0;
  background: var(--cream-100);
  z-index: 99;
  padding: var(--sp-6);
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform var(--dur-slow) var(--ease-out);
}
.mobile-nav[data-open="true"] { transform: translateX(0); }
@media (min-width: 960px) { .mobile-nav { display: none; } }
.mobile-nav-section { margin-bottom: var(--sp-6); }
.mobile-nav-section h4 {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-400);
  margin-bottom: var(--sp-3);
}
.mobile-nav-section a {
  display: block;
  padding: var(--sp-3) 0;
  font-size: var(--fs-md);
  font-weight: 500;
  color: var(--ink-800);
  border-bottom: 1px solid var(--ink-200);
}

/* =============================================================
   BUTTONS
   ============================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 0.875rem 1.5rem;
  border-radius: var(--r-pill);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: all var(--dur-base) var(--ease-out);
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary {
  background: var(--grad-coral);
  color: white;
  box-shadow: var(--sh-coral);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(232, 84, 63, 0.35);
}
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  background: var(--ink-800);
  color: white;
}
.btn-secondary:hover { background: var(--ink-700); transform: translateY(-2px); }

.btn-ghost {
  background: transparent;
  color: var(--ink-800);
  border: 1.5px solid var(--ink-300);
}
.btn-ghost:hover { background: var(--paper); border-color: var(--ink-800); }

.btn-sm { padding: 0.625rem 1.125rem; font-size: var(--fs-xs); }
.btn-lg { padding: 1.125rem 2rem; font-size: var(--fs-base); }

.btn-arrow::after {
  content: '→';
  font-family: var(--font-body);
  font-weight: 400;
  transition: transform var(--dur-base) var(--ease-out);
}
.btn-arrow:hover::after { transform: translateX(4px); }

/* =============================================================
   HERO
   ============================================================= */
.hero {
  background: var(--grad-hero);
  color: var(--cream-100);
  padding-block: clamp(4rem, 10vw, 7rem);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20% 30%, rgba(255, 107, 91, 0.1) 0%, transparent 40%),
                    radial-gradient(circle at 85% 70%, rgba(20, 168, 144, 0.08) 0%, transparent 35%);
  pointer-events: none;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-12);
  align-items: center;
  position: relative;
  z-index: 1;
}
@media (min-width: 960px) {
  .hero-inner { grid-template-columns: 1.1fr 1fr; gap: var(--sp-16); }
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-4);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--r-pill);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--cream-100);
  margin-bottom: var(--sp-6);
}
.hero-eyebrow .dot {
  width: 6px; height: 6px;
  background: var(--coral-500);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(255, 107, 91, 0.2);
  animation: pulse 2.5s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(255, 107, 91, 0.2); }
  50% { box-shadow: 0 0 0 8px rgba(255, 107, 91, 0); }
}
.hero h1 {
  font-family: var(--font-display);
  font-size: var(--fs-5xl);
  font-weight: 600;
  line-height: var(--lh-tight);
  letter-spacing: -0.03em;
  margin-bottom: var(--sp-6);
}
.hero h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--coral-500);
  font-variation-settings: "SOFT" 100, "WONK" 1;
}
.hero p {
  font-size: var(--fs-lg);
  line-height: var(--lh-relaxed);
  color: rgba(250, 247, 242, 0.78);
  margin-bottom: var(--sp-8);
  max-width: 540px;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.hero-stats {
  display: flex;
  gap: var(--sp-6);
  margin-top: var(--sp-10);
  padding-top: var(--sp-6);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  flex-wrap: wrap;
}
.hero-stat { display: flex; flex-direction: column; }
.hero-stat-num {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: 600;
  color: var(--cream-100);
  line-height: 1;
}
.hero-stat-label {
  font-size: var(--fs-xs);
  color: rgba(250, 247, 242, 0.6);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-top: var(--sp-1);
}

/* =============================================================
   CALCULATOR — the centerpiece component
   ============================================================= */
.calculator {
  background: var(--paper);
  border-radius: var(--r-2xl);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: var(--sh-xl);
  position: relative;
  color: var(--ink-900);
}
.calc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--sp-8);
  flex-wrap: wrap;
  gap: var(--sp-3);
}
.calc-title {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.calc-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  padding: 4px 10px;
  background: var(--teal-100);
  color: var(--teal-700);
  border-radius: var(--r-pill);
  font-size: var(--fs-xs);
  font-weight: 600;
}
.calc-badge::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--teal-500);
  border-radius: 50%;
}

/* Slider rows */
.score-row { margin-bottom: var(--sp-6); }
.score-row-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: var(--sp-3);
}
.score-row-label {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--ink-700);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}
.score-row-label .pill {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.pill-ela { background: #e8eef5; color: var(--ink-700); }
.pill-math { background: var(--coral-100); color: var(--coral-700); }

.score-row-value {
  font-family: var(--font-mono);
  font-size: var(--fs-2xl);
  font-weight: 700;
  color: var(--ink-900);
  letter-spacing: -0.02em;
  transition: color var(--dur-fast);
}
.score-row-value .of {
  font-size: var(--fs-sm);
  color: var(--ink-400);
  font-weight: 500;
}

/* Custom slider */
.score-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: var(--r-pill);
  background: var(--ink-100);
  outline: none;
  position: relative;
}
.score-slider::-webkit-slider-runnable-track {
  height: 8px;
  border-radius: var(--r-pill);
  background: linear-gradient(to right, var(--coral-500) var(--progress, 0%), var(--ink-100) var(--progress, 0%));
}
.score-slider::-moz-range-track {
  height: 8px;
  border-radius: var(--r-pill);
  background: var(--ink-100);
}
.score-slider::-moz-range-progress {
  height: 8px;
  border-radius: var(--r-pill);
  background: var(--coral-500);
}
.score-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: white;
  border: 3px solid var(--ink-800);
  margin-top: -10px;
  cursor: grab;
  box-shadow: 0 4px 12px rgba(13, 23, 48, 0.2);
  transition: transform var(--dur-fast), border-color var(--dur-fast);
}
.score-slider::-webkit-slider-thumb:hover { transform: scale(1.12); border-color: var(--coral-500); }
.score-slider:active::-webkit-slider-thumb { cursor: grabbing; transform: scale(1.05); }
.score-slider::-moz-range-thumb {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: white;
  border: 3px solid var(--ink-800);
  cursor: grab;
  box-shadow: 0 4px 12px rgba(13, 23, 48, 0.2);
}

/* Result section */
.calc-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--ink-200), transparent);
  margin: var(--sp-8) 0;
}
.composite-display {
  text-align: center;
  margin-bottom: var(--sp-6);
}
.composite-label {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-400);
  margin-bottom: var(--sp-2);
}
.composite-number {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 10vw, 5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, var(--ink-800) 0%, var(--coral-600) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-variant-numeric: tabular-nums;
}
.composite-out-of {
  font-size: var(--fs-base);
  color: var(--ink-400);
  font-weight: 500;
  margin-top: var(--sp-2);
}

/* School chips */
.schools-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-2);
}
@media (min-width: 480px) {
  .schools-grid { grid-template-columns: repeat(2, 1fr); }
}
.school-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-3) var(--sp-4);
  background: var(--ink-50);
  border: 1px solid var(--ink-200);
  border-radius: var(--r-md);
  font-size: var(--fs-sm);
  transition: all var(--dur-base) var(--ease-out);
}
.school-chip-name { font-weight: 600; color: var(--ink-800); }
.school-chip-cutoff { font-family: var(--font-mono); color: var(--ink-500); font-size: var(--fs-xs); }
.school-chip[data-qualified="true"] {
  background: var(--teal-100);
  border-color: var(--teal-500);
}
.school-chip[data-qualified="true"] .school-chip-name { color: var(--teal-700); }
.school-chip[data-qualified="true"] .school-chip-cutoff { color: var(--teal-700); }
.school-chip[data-qualified="true"]::after {
  content: '✓';
  margin-left: var(--sp-2);
  color: var(--teal-500);
  font-weight: 700;
}

/* =============================================================
   CARDS
   ============================================================= */
.card {
  background: var(--paper);
  border-radius: var(--r-xl);
  padding: var(--sp-6);
  box-shadow: var(--sh-md);
  transition: all var(--dur-base) var(--ease-out);
}
.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-lg);
}
.card-feature {
  background: var(--paper);
  border-radius: var(--r-xl);
  padding: var(--sp-8);
  border: 1px solid var(--ink-200);
  position: relative;
  overflow: hidden;
  transition: all var(--dur-base) var(--ease-out);
}
.card-feature::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 4px;
  background: var(--grad-coral);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-slow) var(--ease-out);
}
.card-feature:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); }
.card-feature:hover::before { transform: scaleX(1); }

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--r-md);
  background: var(--coral-100);
  color: var(--coral-600);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: var(--sp-5);
}
.card-icon.alt-1 { background: var(--ink-100); color: var(--ink-800); }
.card-icon.alt-2 { background: var(--teal-100); color: var(--teal-700); }
.card-icon.alt-3 { background: var(--gold-100); color: var(--gold-500); }

.card h3 {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 600;
  margin-bottom: var(--sp-2);
  letter-spacing: -0.01em;
}
.card p { color: var(--ink-500); font-size: var(--fs-sm); line-height: var(--lh-relaxed); }

/* Stat card */
.stat-card {
  background: var(--paper);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  text-align: center;
  border: 1px solid var(--ink-200);
}
.stat-num {
  font-family: var(--font-display);
  font-size: var(--fs-3xl);
  font-weight: 700;
  color: var(--ink-800);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: var(--sp-2);
}
.stat-label { font-size: var(--fs-sm); color: var(--ink-500); }

/* =============================================================
   GRIDS
   ============================================================= */
.grid-2 { display: grid; grid-template-columns: 1fr; gap: var(--sp-6); }
.grid-3 { display: grid; grid-template-columns: 1fr; gap: var(--sp-6); }
.grid-4 { display: grid; grid-template-columns: 1fr; gap: var(--sp-4); }
@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* =============================================================
   SECTION HEADERS
   ============================================================= */
.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto var(--sp-12);
}
.section-header.left { text-align: left; margin-left: 0; }
.section-header h2 {
  font-family: var(--font-display);
  font-size: var(--fs-3xl);
  font-weight: 600;
  line-height: var(--lh-tight);
  letter-spacing: -0.025em;
  margin-block: var(--sp-3) var(--sp-4);
}
.section-header h2 em { font-style: italic; font-weight: 400; color: var(--coral-600); }
.section-header p { font-size: var(--fs-md); color: var(--ink-500); line-height: var(--lh-relaxed); }

/* =============================================================
   ARTICLE PROSE STYLES
   ============================================================= */
.prose {
  max-width: 70ch;
  margin-inline: auto;
  font-size: var(--fs-md);
  line-height: var(--lh-loose);
  color: var(--ink-800);
}
.prose > * + * { margin-top: var(--sp-5); }
.prose h2 {
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: var(--lh-tight);
  margin-top: var(--sp-12);
  margin-bottom: var(--sp-4);
  color: var(--ink-900);
}
.prose h3 {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-top: var(--sp-8);
  margin-bottom: var(--sp-3);
  color: var(--ink-900);
}
.prose p { line-height: var(--lh-loose); }
.prose a {
  color: var(--ink-800);
  text-decoration: underline;
  text-decoration-color: var(--coral-500);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  transition: all var(--dur-fast);
}
.prose a:hover { color: var(--coral-600); }
.prose ul, .prose ol {
  padding-left: var(--sp-6);
}
.prose ul li { list-style: disc; margin-bottom: var(--sp-2); }
.prose ol li { list-style: decimal; margin-bottom: var(--sp-2); }
.prose blockquote {
  border-left: 3px solid var(--coral-500);
  padding-left: var(--sp-5);
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--fs-lg);
  color: var(--ink-700);
}
.prose code {
  background: var(--ink-100);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.92em;
}

/* Quick answers block — for AIO/LLM pull */
.quick-answers {
  background: var(--cream-200);
  border-left: 4px solid var(--ink-800);
  border-radius: var(--r-md);
  padding: var(--sp-5) var(--sp-6);
  margin-block: var(--sp-8);
}
.quick-answers .label {
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-700);
  margin-bottom: var(--sp-3);
}
.quick-answers dl { display: flex; flex-direction: column; gap: var(--sp-3); }
.quick-answers dt { font-weight: 600; color: var(--ink-900); }
.quick-answers dd { color: var(--ink-700); font-size: var(--fs-sm); margin-top: 2px; }

/* Author byline */
.byline {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-4) 0;
  border-block: 1px solid var(--ink-200);
  margin-block: var(--sp-6);
}
.byline img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--cream-100);
  box-shadow: var(--sh-sm);
}
.byline-text { font-size: var(--fs-sm); line-height: var(--lh-snug); }
.byline-name { font-weight: 600; color: var(--ink-900); }
.byline-role { color: var(--ink-500); font-size: var(--fs-xs); }
.byline-date { color: var(--ink-400); font-size: var(--fs-xs); margin-top: 2px; }

/* =============================================================
   FAQ ACCORDION
   ============================================================= */
.faq-list { display: flex; flex-direction: column; gap: var(--sp-3); }
.faq-item {
  background: var(--paper);
  border: 1px solid var(--ink-200);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color var(--dur-base);
}
.faq-item[open] { border-color: var(--coral-500); box-shadow: var(--sh-sm); }
.faq-item summary {
  padding: var(--sp-5) var(--sp-6);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  font-weight: 600;
  color: var(--ink-900);
  list-style: none;
  transition: background var(--dur-fast);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { background: var(--ink-50); }
.faq-item summary::after {
  content: '+';
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 300;
  color: var(--coral-500);
  flex-shrink: 0;
  transition: transform var(--dur-base) var(--ease-out);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item-body {
  padding: 0 var(--sp-6) var(--sp-5);
  color: var(--ink-600);
  line-height: var(--lh-relaxed);
}

/* =============================================================
   FOOTER
   ============================================================= */
.site-footer {
  background: var(--ink-900);
  color: rgba(250, 247, 242, 0.75);
  padding-block: var(--sp-16) var(--sp-8);
  margin-top: var(--sp-16);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-10);
  margin-bottom: var(--sp-12);
}
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.5fr repeat(3, 1fr); } }
.footer-brand img { height: 44px; margin-bottom: var(--sp-4); }
.footer-brand p { font-size: var(--fs-sm); max-width: 320px; line-height: var(--lh-relaxed); }
.footer-col h4 {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--cream-100);
  margin-bottom: var(--sp-4);
}
.footer-col ul { display: flex; flex-direction: column; gap: var(--sp-2); }
.footer-col a {
  font-size: var(--fs-sm);
  color: rgba(250, 247, 242, 0.65);
  transition: color var(--dur-fast);
}
.footer-col a:hover { color: var(--coral-500); }
.footer-bottom {
  padding-top: var(--sp-6);
  border-top: 1px solid rgba(250, 247, 242, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-4);
  font-size: var(--fs-xs);
  color: rgba(250, 247, 242, 0.5);
}
.footer-legal-links { display: flex; gap: var(--sp-4); flex-wrap: wrap; }

/* =============================================================
   ANIMATIONS
   ============================================================= */
@keyframes rise {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.rise { animation: rise var(--dur-slow) var(--ease-out) both; }
.rise-1 { animation-delay: 80ms; }
.rise-2 { animation-delay: 160ms; }
.rise-3 { animation-delay: 240ms; }
.rise-4 { animation-delay: 320ms; }

@keyframes count-up {
  from { opacity: 0; transform: translateY(8px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* =============================================================
   UTILITIES
   ============================================================= */
.text-coral { color: var(--coral-600); }
.text-navy { color: var(--ink-800); }
.text-muted { color: var(--ink-500); }
.bg-cream { background: var(--cream-100); }
.bg-paper { background: var(--paper); }
.bg-navy { background: var(--ink-900); color: white; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.gap-2 { gap: var(--sp-2); }
.gap-4 { gap: var(--sp-4); }
.text-center { text-align: center; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}


/* ============================================================
   SKIP LINK — for keyboard / screen reader users
   ============================================================ */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--ink-900);
  color: var(--paper);
  padding: var(--sp-3) var(--sp-5);
  font-family: var(--font-body);
  font-weight: 600;
  text-decoration: none;
  z-index: 9999;
  border-radius: 0 0 var(--r-md) 0;
}
.skip-link:focus {
  top: 0;
  outline: 2px solid var(--coral-500);
  outline-offset: 2px;
}
