/*
 * The Credentialist v2.0 — Landing Page Styles
 * Aesthetic: Refined warmth meets editorial luxury
 * Typography: Playfair Display (display) + Inter (body)
 * Target: Women healthcare providers — premium, trustworthy, alive
 */

/* ============================================
   DESIGN TOKENS
   ============================================ */

:root {
  /* Brand Palette */
  --sage: #B8D4B8;
  --sage-light: #D4E8D4;
  --sage-dark: #8FB88F;
  --sage-deep: #6A9B6A;

  --peach: #E8B9A0;
  --peach-light: #F5D9C8;
  --peach-dark: #D49B7A;

  --cream: #FAF7F2;
  --cream-dark: #F0EBE3;
  --brown: #A67C52;
  --brown-light: #C4A882;
  --brown-dark: #7A5A3A;

  /* Neutrals (warm-shifted) */
  --n-50: #FDFCFB;
  --n-100: #F8F6F3;
  --n-200: #E8E5E0;
  --n-300: #D4D0C8;
  --n-400: #B0A99E;
  --n-500: #918C80;
  --n-600: #6B665C;
  --n-700: #4A4640;
  --n-800: #2D2A28;
  --n-900: #1A1816;

  /* Semantic */
  --bg: var(--cream);
  --surface: #FFFFFF;
  --text: var(--n-900);
  --text-secondary: var(--n-600);
  --text-muted: var(--n-500);
  --text-inverse: #FFFFFF;
  --border: var(--n-200);
  --success: #6A9B6A;
  --error: #C75050;

  /* Typography */
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-lg: 1.125rem;
  --fs-xl: 1.25rem;
  --fs-2xl: 1.5rem;
  --fs-3xl: 2rem;
  --fs-4xl: 2.75rem;
  --fs-5xl: 3.5rem;
  --lh-tight: 1.15;
  --lh-snug: 1.3;
  --lh-normal: 1.5;
  --lh-relaxed: 1.7;
  --ls-tight: -0.03em;
  --ls-normal: 0;
  --ls-wide: 0.05em;

  /* Spacing (8px base) */
  --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;

  /* Shadows (warm-tinted, layered) */
  --shadow-xs: 0 1px 2px rgba(166, 124, 82, 0.06);
  --shadow-sm: 0 1px 3px rgba(166, 124, 82, 0.08), 0 1px 2px rgba(166, 124, 82, 0.04);
  --shadow-md: 0 4px 8px rgba(166, 124, 82, 0.08), 0 2px 4px rgba(166, 124, 82, 0.04);
  --shadow-lg: 0 12px 24px rgba(166, 124, 82, 0.10), 0 4px 8px rgba(166, 124, 82, 0.06);
  --shadow-xl: 0 20px 40px rgba(166, 124, 82, 0.12), 0 8px 16px rgba(166, 124, 82, 0.06);
  --shadow-glow: 0 0 30px rgba(184, 212, 184, 0.3), 0 0 60px rgba(184, 212, 184, 0.15);

  /* Radius */
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-xl: 16px;
  --r-2xl: 24px;
  --r-full: 100rem;

  /* Easing */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);

  /* Layout */
  --container: 1200px;
  --container-narrow: 800px;
}

/* ============================================
   RESET + BASE
   ============================================ */

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: var(--lh-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul, ol { list-style: none; }

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
  background: none;
}

/* Accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
  white-space: nowrap;
}

*:focus-visible {
  outline: 2px solid var(--sage-deep);
  outline-offset: 2px;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: var(--lh-tight);
  color: var(--text);
  letter-spacing: var(--ls-tight);
}

h1 { font-size: var(--fs-4xl); }
h2 { font-size: var(--fs-3xl); }
h3 { font-size: var(--fs-2xl); }
h4 { font-size: var(--fs-xl); }

p {
  line-height: var(--lh-relaxed);
  color: var(--text-secondary);
}

strong {
  font-weight: 600;
  color: var(--brown);
}

/* ============================================
   GRAIN TEXTURE OVERLAY
   ============================================ */

.grain::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.035;
  pointer-events: none;
  z-index: 1;
  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)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* ============================================
   LAYOUT
   ============================================ */

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--sp-4);
  padding-right: var(--sp-4);
}

.container--narrow {
  max-width: var(--container-narrow);
}

.section {
  padding: var(--sp-16) 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: var(--sp-12);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--sage-deep);
  margin-bottom: var(--sp-3);
  padding: var(--sp-1) var(--sp-4);
  background: var(--sage-light);
  border-radius: var(--r-full);
}

.section-title {
  margin-bottom: var(--sp-4);
}

.section-subtitle {
  font-size: var(--fs-lg);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  min-height: 48px;
  padding: var(--sp-3) var(--sp-8);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--fs-base);
  border-radius: var(--r-full);
  cursor: pointer;
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s var(--ease-out), background-color 0.2s var(--ease-smooth);
  position: relative;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.97) !important;
}

.btn--primary {
  background: var(--sage-deep);
  color: var(--text-inverse);
  box-shadow: var(--shadow-sm), 0 0 0 0 rgba(106, 155, 106, 0);
}

.btn--primary:hover {
  background: #5A8A5A;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md), 0 4px 14px rgba(106, 155, 106, 0.3);
}

.btn--primary:focus-visible {
  box-shadow: var(--shadow-md), 0 0 0 3px rgba(106, 155, 106, 0.4);
}

.btn--secondary {
  background: transparent;
  color: var(--sage-deep);
  border: 2px solid var(--sage);
}

.btn--secondary:hover {
  background: var(--sage-light);
  transform: translateY(-2px);
}

.btn--secondary:focus-visible {
  box-shadow: 0 0 0 3px rgba(106, 155, 106, 0.3);
}

.btn--large {
  min-height: 56px;
  padding: var(--sp-4) var(--sp-10);
  font-size: var(--fs-lg);
}

.btn--full { width: 100%; }

.btn--white {
  background: var(--surface);
  color: var(--sage-deep);
  box-shadow: var(--shadow-sm);
}

.btn--white:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* ============================================
   NAVIGATION
   ============================================ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: var(--sp-3) 0;
  transition: background-color 0.3s var(--ease-smooth), box-shadow 0.3s var(--ease-smooth), padding 0.3s var(--ease-smooth);
  background: transparent;
}

.nav.scrolled {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06), var(--shadow-sm);
  padding: var(--sp-2) 0;
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  z-index: 1001;
}

.nav__logo img {
  height: 52px;
  width: auto;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.nav__link {
  font-weight: 500;
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--r-full);
  transition: color 0.2s var(--ease-smooth), background-color 0.2s var(--ease-smooth);
}

.nav__link:hover {
  color: var(--sage-deep);
  background: rgba(184, 212, 184, 0.15);
}

.nav__link:focus-visible {
  color: var(--sage-deep);
}

.nav__cta {
  margin-left: var(--sp-4);
}

/* Mobile menu button */
.nav__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  cursor: pointer;
  z-index: 1001;
  border-radius: var(--r-md);
  transition: background-color 0.2s;
}

.nav__burger:hover {
  background: rgba(0, 0, 0, 0.05);
}

.nav__burger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s var(--ease-out), opacity 0.2s;
}

.nav__burger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav__burger.open span:nth-child(2) {
  opacity: 0;
}

.nav__burger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile overlay */
.nav__overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(250, 247, 242, 0.97);
  backdrop-filter: blur(10px);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-6);
  opacity: 0;
  transition: opacity 0.3s var(--ease-out);
}

.nav__overlay.visible {
  display: flex;
  opacity: 1;
}

.nav__overlay .nav__link {
  font-size: var(--fs-2xl);
  font-family: var(--font-display);
  color: var(--text);
  padding: var(--sp-3) var(--sp-6);
}

.nav__overlay .nav__link:hover {
  color: var(--sage-deep);
}

/* ============================================
   HERO
   ============================================ */

.hero {
  position: relative;
  padding: calc(var(--sp-32) + 20px) 0 var(--sp-16);
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(250, 247, 242, 0.92) 0%, rgba(250, 247, 242, 0.75) 50%, rgba(250, 247, 242, 0.6) 100%),
    linear-gradient(to bottom, rgba(184, 212, 184, 0.1) 0%, transparent 50%);
  mix-blend-mode: normal;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--sp-12);
  align-items: center;
}

.hero__text h1 {
  font-size: var(--fs-5xl);
  line-height: 1.08;
  letter-spacing: -0.035em;
  margin-bottom: var(--sp-6);
  color: var(--text);
}

.hero__text h1 span {
  color: var(--sage-deep);
}

.hero__subtitle {
  font-size: var(--fs-lg);
  color: var(--text-secondary);
  line-height: var(--lh-relaxed);
  margin-bottom: var(--sp-8);
  max-width: 520px;
}

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--sage-deep);
  background: rgba(184, 212, 184, 0.2);
  border: 1px solid rgba(184, 212, 184, 0.4);
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--r-full);
  backdrop-filter: blur(4px);
}

.badge__icon {
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--sage-deep);
  color: white;
  border-radius: 50%;
  font-size: 10px;
  line-height: 1;
}

/* ============================================
   LEAD FORM
   ============================================ */

.lead-form {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(184, 212, 184, 0.25);
  border-radius: var(--r-2xl);
  padding: var(--sp-8);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.lead-form::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--sage), var(--peach));
  opacity: 0.6;
}

.lead-form__title {
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  color: var(--text);
  margin-bottom: var(--sp-2);
}

.lead-form__subtitle {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  margin-bottom: var(--sp-6);
}

.form-group {
  margin-bottom: var(--sp-4);
}

.form-input {
  width: 100%;
  min-height: 48px;
  padding: var(--sp-3) var(--sp-4);
  background: var(--n-50);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  font-size: var(--fs-base);
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input::placeholder {
  color: var(--n-400);
}

.form-input:focus {
  border-color: var(--sage);
  box-shadow: 0 0 0 3px rgba(184, 212, 184, 0.2);
  background: var(--surface);
}

.form-input.has-error,
.form-input.has-error:focus {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(199, 80, 80, 0.15);
}

.form-input--select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1.41 0L6 4.58 10.59 0 12 1.41l-6 6-6-6z' fill='%23918C80'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}

/* Multi-select (state picker) */
.multi-select {
  position: relative;
}

.multi-select__control {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  min-height: 48px;
  height: auto;
  padding: 6px 40px 6px var(--sp-3);
  cursor: pointer;
  position: relative;
}

.multi-select__control.has-error,
.multi-select__control.has-error:focus-within {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(199, 80, 80, 0.15);
}

.multi-select__control:focus-within {
  border-color: var(--sage);
  box-shadow: 0 0 0 3px rgba(184, 212, 184, 0.2);
  background: var(--surface);
}

.multi-select__values {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  flex: 1;
  min-width: 0;
  align-items: center;
}

.multi-select__tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  background: var(--sage-light);
  border: 1px solid var(--sage);
  border-radius: var(--r-full);
  font-size: var(--fs-xs);
  color: var(--n-700);
  white-space: nowrap;
  line-height: 1.6;
}

.multi-select__tag-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
  color: var(--n-500);
  font-size: 14px;
  line-height: 1;
  border-radius: 50%;
  transition: background 0.15s, color 0.15s;
}

.multi-select__tag-remove:hover {
  background: rgba(0, 0, 0, 0.08);
  color: var(--n-700);
}

.multi-select__search {
  border: none;
  background: transparent;
  outline: none;
  font-size: var(--fs-base);
  color: var(--text);
  padding: 4px 0;
  min-width: 80px;
  flex: 1;
  font-family: inherit;
}

.multi-select__search::placeholder {
  color: var(--n-400);
}

.multi-select__arrow {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  transition: transform 0.2s;
}

.multi-select[data-open="true"] .multi-select__arrow {
  transform: translateY(-50%) rotate(180deg);
}

.multi-select__dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  max-height: 200px;
  overflow-y: auto;
  z-index: 50;
  padding: var(--sp-1) 0;
}

.multi-select[data-open="true"] .multi-select__dropdown {
  display: block;
}

.multi-select__option {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-3);
  cursor: pointer;
  font-size: var(--fs-sm);
  color: var(--text);
  transition: background 0.1s;
  user-select: none;
}

.multi-select__option:hover {
  background: var(--cream-dark);
}

.multi-select__option[aria-selected="true"] {
  background: rgba(184, 212, 184, 0.15);
}

.multi-select__option[data-hidden="true"] {
  display: none;
}

.multi-select__checkbox {
  width: 16px;
  height: 16px;
  border: 1.5px solid var(--n-300);
  border-radius: 3px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, border-color 0.15s;
}

.multi-select__option[aria-selected="true"] .multi-select__checkbox {
  background: var(--sage-deep);
  border-color: var(--sage-deep);
}

.multi-select__checkbox-icon {
  display: none;
  width: 10px;
  height: 10px;
}

.multi-select__option[aria-selected="true"] .multi-select__checkbox-icon {
  display: block;
}

.multi-select__no-results {
  padding: var(--sp-3);
  text-align: center;
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

.form-textarea {
  resize: vertical;
  min-height: 80px;
}

.form-error {
  display: none;
  font-size: var(--fs-xs);
  color: var(--error);
  margin-top: var(--sp-1);
  padding-left: var(--sp-1);
}

.form-error.visible {
  display: block;
}

.form-privacy {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  text-align: center;
  margin-top: var(--sp-4);
}

.form-success {
  display: none;
  text-align: center;
  padding: var(--sp-8) var(--sp-4);
}

.form-success.visible {
  display: block;
}

.form-success__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--sp-4);
  background: var(--sage-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--sage-deep);
}

.form-success h3 {
  color: var(--text);
  margin-bottom: var(--sp-2);
}

.form-success p {
  color: var(--text-secondary);
}

/* ============================================
   PAIN POINTS
   ============================================ */

.pain {
  background: var(--surface);
  overflow: hidden;
}

.pain__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-6);
}

.pain__card {
  background: var(--bg);
  border-radius: var(--r-xl);
  padding: var(--sp-8);
  border-left: 4px solid var(--sage);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
  position: relative;
}

.pain__card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.pain__icon {
  width: 100%;
  height: 140px;
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: var(--sp-5);
  background: var(--sage-light);
}

.pain__icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.pain__card h3 {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  margin-bottom: var(--sp-3);
}

.pain__card p {
  font-size: var(--fs-base);
  line-height: var(--lh-relaxed);
}

.pain__stat {
  display: inline-block;
  font-family: var(--font-display);
  font-size: var(--fs-3xl);
  font-weight: 700;
  color: var(--brown);
  margin-bottom: var(--sp-2);
  line-height: 1;
}

/* ============================================
   WHY DIFFERENT — ZIGZAG
   ============================================ */

.why {
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

.why::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: radial-gradient(ellipse at 80% 20%, rgba(184, 212, 184, 0.12) 0%, transparent 60%);
  pointer-events: none;
}

.why__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-12);
  align-items: center;
  margin-bottom: var(--sp-16);
}

.why__row:last-child {
  margin-bottom: 0;
}

.why__row--reverse {
  direction: rtl;
}

.why__row--reverse > * {
  direction: ltr;
}

.why__image {
  border-radius: var(--r-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
  aspect-ratio: 4/3;
  background: var(--sage-light);
}

.why__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.why__image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26, 24, 22, 0.08) 0%, transparent 40%);
  mix-blend-mode: multiply;
}

.why__content {
  padding: var(--sp-4) 0;
}

.why__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--sage-light);
  color: var(--sage-deep);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-lg);
  margin-bottom: var(--sp-4);
}

.why__content h3 {
  font-size: var(--fs-2xl);
  margin-bottom: var(--sp-4);
}

.why__content p {
  font-size: var(--fs-lg);
  margin-bottom: var(--sp-4);
}

.why__highlight {
  display: inline-block;
  padding: var(--sp-2) var(--sp-4);
  background: rgba(184, 212, 184, 0.15);
  border-radius: var(--r-md);
  font-weight: 600;
  color: var(--sage-deep);
  font-size: var(--fs-sm);
}

/* ============================================
   ENROLLPILOT SHOWCASE — STAR SECTION
   ============================================ */

.enrollpilot {
  background: linear-gradient(180deg, var(--n-900) 0%, #1E2A1E 50%, var(--n-900) 100%);
  color: var(--text-inverse);
  padding: var(--sp-24) 0;
  position: relative;
  overflow: hidden;
}

.enrollpilot .grain::before {
  opacity: 0.06;
}

.enrollpilot::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(184, 212, 184, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 80%, rgba(232, 185, 160, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.enrollpilot .section-label {
  background: rgba(184, 212, 184, 0.15);
  color: var(--sage);
  border: 1px solid rgba(184, 212, 184, 0.2);
}

.enrollpilot .section-title {
  color: var(--text-inverse);
  font-size: var(--fs-4xl);
}

.enrollpilot .section-subtitle {
  color: rgba(255, 255, 255, 0.7);
}

.enrollpilot__mockup {
  position: relative;
  margin: var(--sp-12) auto;
  max-width: 900px;
  border-radius: var(--r-2xl);
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(184, 212, 184, 0.15),
    0 25px 60px rgba(0, 0, 0, 0.4),
    var(--shadow-glow);
  background: var(--n-800);
}

.enrollpilot__mockup img {
  width: 100%;
  height: 600px;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.enrollpilot__mockup.panning img {
  animation: portalPan 16s ease-in-out infinite;
}

@keyframes portalPan {
  0%   { object-position: center 0%; }
  40%  { object-position: center 100%; }
  50%  { object-position: center 100%; }
  90%  { object-position: center 0%; }
  100% { object-position: center 0%; }
}

.enrollpilot__mockup::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--r-2xl);
  padding: 1px;
  background: linear-gradient(135deg, rgba(184, 212, 184, 0.3), rgba(232, 185, 160, 0.2), rgba(184, 212, 184, 0.1));
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  -webkit-mask-composite: xor;
  pointer-events: none;
  z-index: 1;
}

.enrollpilot__features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-6);
  margin-top: var(--sp-12);
}

.ep-feature {
  padding: var(--sp-6);
  border-radius: var(--r-xl);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform 0.4s var(--ease-out), background 0.3s, border-color 0.3s;
}

.ep-feature:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(184, 212, 184, 0.2);
}

.ep-feature__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--r-lg);
  background: rgba(184, 212, 184, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--sp-4);
  color: var(--sage);
  font-size: 22px;
}

.ep-feature h4 {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  font-weight: 600;
  color: var(--text-inverse);
  margin-bottom: var(--sp-2);
  letter-spacing: 0;
}

.ep-feature p {
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.6);
  line-height: var(--lh-relaxed);
}

.enrollpilot__callout {
  text-align: center;
  margin-top: var(--sp-12);
  padding: var(--sp-8);
  border-radius: var(--r-xl);
  background: rgba(184, 212, 184, 0.08);
  border: 1px solid rgba(184, 212, 184, 0.15);
}

.enrollpilot__callout p {
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  color: var(--text-inverse);
  font-style: italic;
  line-height: var(--lh-snug);
}

.enrollpilot__badges {
  display: flex;
  justify-content: center;
  gap: var(--sp-6);
  margin-top: var(--sp-8);
  flex-wrap: wrap;
}

.ep-badge {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.6);
}

.ep-badge__icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sage);
}

/* ============================================
   WHO WE SERVE
   ============================================ */

.serve {
  background: var(--bg);
}

.serve__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-8);
  max-width: 960px;
  margin: 0 auto;
}

.serve__card {
  background: var(--surface);
  border-radius: var(--r-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
  display: flex;
  flex-direction: column;
}

.serve__card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

.serve__image {
  height: 220px;
  overflow: hidden;
  position: relative;
}

.serve__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out);
}

.serve__card:hover .serve__image img {
  transform: scale(1.05);
}

.serve__image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26, 24, 22, 0.15) 0%, transparent 50%);
  mix-blend-mode: multiply;
}

.serve__body {
  padding: var(--sp-8);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.serve__card h3 {
  font-size: var(--fs-2xl);
  margin-bottom: var(--sp-2);
}

.serve__card .serve__audience {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  margin-bottom: var(--sp-6);
}

.serve__list {
  margin-bottom: var(--sp-6);
  flex: 1;
}

.serve__list li {
  padding: var(--sp-2) 0;
  padding-left: var(--sp-6);
  position: relative;
  color: var(--text-secondary);
  font-size: var(--fs-base);
  line-height: var(--lh-relaxed);
}

.serve__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sage);
}

.serve__card:nth-child(2) .serve__list li::before {
  background: var(--peach);
}

/* ============================================
   TESTIMONIALS
   ============================================ */

.testimonials {
  background: var(--surface);
  position: relative;
  overflow: hidden;
}

.testimonials::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 0% 50%, rgba(184, 212, 184, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 100% 50%, rgba(232, 185, 160, 0.06) 0%, transparent 50%);
  pointer-events: none;
}

.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-6);
  position: relative;
  z-index: 1;
}

.testimonial {
  background: var(--bg);
  border-radius: var(--r-xl);
  padding: var(--sp-8);
  display: flex;
  flex-direction: column;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
  position: relative;
}

.testimonial:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.testimonial__quote-mark {
  font-family: var(--font-display);
  font-size: 4rem;
  line-height: 1;
  color: var(--sage-light);
  margin-bottom: var(--sp-2);
  user-select: none;
}

.testimonial__stars {
  display: flex;
  gap: 2px;
  margin-bottom: var(--sp-4);
}

.testimonial__star {
  color: var(--peach-dark);
  font-size: 16px;
}

.testimonial__text {
  font-size: var(--fs-base);
  color: var(--text);
  line-height: var(--lh-relaxed);
  margin-bottom: var(--sp-6);
  flex: 1;
}

.testimonial__text strong {
  color: var(--sage-deep);
  font-weight: 600;
}

.testimonial__author {
  border-top: 1px solid var(--border);
  padding-top: var(--sp-4);
}

.testimonial__name {
  font-weight: 600;
  color: var(--text);
  font-size: var(--fs-base);
  margin-bottom: 2px;
}

.testimonial__role {
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

/* ============================================
   FINAL CTA
   ============================================ */

.cta {
  position: relative;
  padding: var(--sp-20) 0;
  overflow: hidden;
  background: linear-gradient(135deg, var(--sage-light) 0%, var(--peach-light) 100%);
}

.cta .grain::before {
  opacity: 0.04;
}

.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(184, 212, 184, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(232, 185, 160, 0.3) 0%, transparent 50%);
  pointer-events: none;
}

.cta__content {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.cta__content h2 {
  font-size: var(--fs-4xl);
  margin-bottom: var(--sp-4);
}

.cta__content > p {
  font-size: var(--fs-lg);
  color: var(--text-secondary);
  margin-bottom: var(--sp-8);
}

.lead-form--cta {
  background: var(--surface);
  backdrop-filter: none;
  border: 1px solid rgba(184, 212, 184, 0.2);
  max-width: 520px;
  margin: 0 auto;
  text-align: left;
}

.cta__trust {
  margin-top: var(--sp-6);
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
  background: var(--n-900);
  color: var(--text-inverse);
  padding: var(--sp-16) 0 var(--sp-8);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--sp-10);
  margin-bottom: var(--sp-10);
}

.footer__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer__brand p {
  color: rgba(255, 255, 255, 0.6);
  font-size: var(--fs-sm);
  line-height: var(--lh-relaxed);
  max-width: 320px;
}

.footer__brand img {
  width: 160px;
  height: 160px;
  margin-bottom: var(--sp-4);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  object-fit: cover;
}

.footer h4 {
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: var(--sp-4);
}

.footer__links li {
  margin-bottom: var(--sp-2);
}

.footer__links a,
.footer__contact li {
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.2s;
}

.footer__links a:hover {
  color: var(--text-inverse);
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: var(--sp-6);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer__bottom p {
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.4);
  margin: 0;
}

.footer__legal {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.footer__legal a {
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.4);
  transition: color 0.2s var(--ease-smooth);
}

.footer__legal a:hover {
  color: var(--text-inverse);
}

.footer__legal a:focus-visible {
  outline: 1px solid rgba(255, 255, 255, 0.6);
  outline-offset: 2px;
  border-radius: 2px;
}

.footer__legal span {
  color: rgba(255, 255, 255, 0.2);
  font-size: var(--fs-xs);
}

/* ============================================
   SCROLL REVEAL ANIMATIONS
   ============================================ */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

.reveal-scale {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* ============================================
   BROWSE BY SPECIALTY
   ============================================ */

.spec-browse {
  background: var(--surface);
  position: relative;
  overflow: hidden;
}

.spec-browse::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(184, 212, 184, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.spec-browse::after {
  content: '';
  position: absolute;
  bottom: -150px;
  left: -150px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(232, 185, 160, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.spec-browse__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-6);
  max-width: 1080px;
  margin: 0 auto;
}

.spec-browse__card {
  background: var(--cream);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.spec-browse__card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.spec-browse__card:focus-visible {
  outline: 2px solid var(--sage-deep);
  outline-offset: 2px;
}

.spec-browse__card:active {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.spec-browse__image {
  height: 160px;
  overflow: hidden;
  position: relative;
}

.spec-browse__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out);
}

.spec-browse__card:hover .spec-browse__image img {
  transform: scale(1.05);
}

.spec-browse__image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26, 24, 22, 0.12) 0%, transparent 40%);
  mix-blend-mode: multiply;
}

.spec-browse__body {
  padding: var(--sp-6);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.spec-browse__card h3 {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: 700;
  letter-spacing: var(--ls-tight);
  margin-bottom: var(--sp-2);
  color: var(--text);
}

.spec-browse__teaser {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  line-height: var(--lh-relaxed);
  margin-bottom: var(--sp-4);
}

.spec-browse__badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-bottom: var(--sp-4);
}

.spec-browse__badge {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--sage-deep);
  background: var(--sage-light);
  padding: var(--sp-1) var(--sp-3);
  border-radius: var(--r-full);
  line-height: 1.4;
}

.spec-browse__link {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--sage-deep);
  margin-top: auto;
  transition: gap 0.3s var(--ease-out);
}

.spec-browse__card:hover .spec-browse__link {
  gap: var(--sp-3);
}

.spec-browse__link svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  transition: transform 0.3s var(--ease-out);
}

.spec-browse__card:hover .spec-browse__link svg {
  transform: translateX(2px);
}

/* ============================================
   RESPONSIVE — MOBILE FIRST
   ============================================ */

/* Small mobile: 375px */
@media (max-width: 767px) {
  :root {
    --fs-5xl: 2.25rem;
    --fs-4xl: 2rem;
    --fs-3xl: 1.5rem;
    --fs-2xl: 1.25rem;
  }

  .nav__links { display: none; }
  .nav__cta.desktop-only { display: none; }
  .nav__burger { display: flex; }

  .hero {
    padding: calc(var(--sp-24) + 10px) 0 var(--sp-10);
    min-height: auto;
  }

  .hero__grid {
    grid-template-columns: 1fr;
    gap: var(--sp-8);
  }

  .hero__text {
    text-align: center;
  }

  .hero__text h1 {
    font-size: var(--fs-4xl);
  }

  .hero__subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__badges {
    justify-content: center;
  }

  .lead-form {
    padding: var(--sp-6);
  }

  .pain__grid {
    grid-template-columns: 1fr;
    gap: var(--sp-4);
  }

  .why__row,
  .why__row--reverse {
    grid-template-columns: 1fr;
    gap: var(--sp-6);
    direction: ltr;
  }

  .why__image {
    aspect-ratio: 16/10;
  }

  .enrollpilot {
    padding: var(--sp-16) 0;
  }

  .enrollpilot .section-title {
    font-size: var(--fs-3xl);
  }

  .enrollpilot__features {
    grid-template-columns: 1fr;
    gap: var(--sp-4);
  }

  .enrollpilot__mockup img {
    height: 320px;
  }

  .serve__grid {
    grid-template-columns: 1fr;
  }

  .spec-browse__grid {
    grid-template-columns: 1fr;
  }

  .testimonials__grid {
    grid-template-columns: 1fr;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: var(--sp-8);
  }

  .footer__bottom {
    flex-direction: column;
    gap: var(--sp-2);
    text-align: center;
  }

  .section {
    padding: var(--sp-12) 0;
  }
}

/* Tablet: 768px+ */
@media (min-width: 768px) {
  .container {
    padding-left: var(--sp-8);
    padding-right: var(--sp-8);
  }

  .section {
    padding: var(--sp-20) 0;
  }
}

/* Tablet + small desktop pain grid */
@media (min-width: 768px) and (max-width: 1399px) {
  .pain__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .enrollpilot__features {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero__grid {
    grid-template-columns: 1fr;
    max-width: 600px;
    margin: 0 auto;
  }

  .spec-browse__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .spec-browse__grid .spec-browse__card:last-child {
    grid-column: 1 / -1;
    max-width: 50%;
    margin: 0 auto;
  }
}

/* Desktop: 1024px+ */
@media (min-width: 1024px) {
  .hero__text h1 {
    font-size: var(--fs-5xl);
  }
}

/* Wide desktop: 4-col pain cards with tighter padding */
@media (min-width: 1400px) {
  .pain__card {
    padding: var(--sp-6);
  }
}

/* ============================================
   PREFERS REDUCED MOTION
   ============================================ */

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

  .reveal,
  .reveal-scale {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
