/* ============================================
   TrimMD.me — Design System Tokens
   ============================================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  /* Primary */
  --deep-teal: #0D6B6E;
  --deep-teal-dark: #095456;
  --deep-teal-light: #0D6B6E1A;
  --white: #FFFFFF;

  /* Secondary */
  --warm-sand: #F5F0E8;
  --sage-green: #7BA886;
  --soft-gold: #C9A84C;

  /* Accent */
  --coral: #E8735A;
  --coral-dark: #D4613F;
  --coral-light: #E8735A15;
  --slate: #3D4F5F;
  --slate-light: #5A6E7F;
  --light-gray: #F7F8FA;

  /* Typography */
  --font-heading: 'Instrument Sans', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-accent: 'Lora', serif;

  /* Spacing (8px base) */
  --xs: 8px;
  --sm: 16px;
  --md: 24px;
  --lg: 48px;
  --xl: 80px;
  --2xl: 120px;

  /* Layout */
  --max-width: 1200px;
  --content-width: 680px;
  --radius: 8px;
  --radius-lg: 16px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(61, 79, 95, 0.06), 0 1px 2px rgba(61, 79, 95, 0.04);
  --shadow-md: 0 4px 12px rgba(61, 79, 95, 0.08), 0 2px 4px rgba(61, 79, 95, 0.04);
  --shadow-lg: 0 12px 32px rgba(61, 79, 95, 0.1), 0 4px 8px rgba(61, 79, 95, 0.04);
  --shadow-hover: 0 16px 40px rgba(61, 79, 95, 0.14), 0 6px 12px rgba(61, 79, 95, 0.06);

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --transition: 0.25s var(--ease-out);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.56;
  color: var(--slate);
  background: var(--white);
  overflow-x: hidden;
}

/* ============================================
   Typography
   ============================================ */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--slate);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 { font-size: 48px; font-weight: 700; }
h2 { font-size: 36px; font-weight: 600; }
h3 { font-size: 24px; font-weight: 600; }
h4 { font-size: 20px; font-weight: 600; }

p { max-width: var(--content-width); }

.text-small { font-size: 14px; line-height: 1.5; }
.text-teal { color: var(--deep-teal); }
.text-center { text-align: center; }

/* ============================================
   Container & Layout
   ============================================ */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--md);
}

section {
  padding: var(--2xl) 0;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 var(--md);
  border: none;
  border-radius: var(--radius);
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn-coral {
  background: var(--coral);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(232, 115, 90, 0.3);
}

.btn-coral:hover {
  background: var(--coral-dark);
  box-shadow: 0 8px 24px rgba(232, 115, 90, 0.4);
}

.btn-teal {
  background: var(--deep-teal);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(13, 107, 110, 0.25);
}

.btn-teal:hover {
  background: var(--deep-teal-dark);
  box-shadow: 0 8px 24px rgba(13, 107, 110, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--deep-teal);
  border: 2px solid var(--deep-teal);
  box-shadow: none;
}

.btn-outline:hover {
  background: var(--deep-teal);
  color: var(--white);
}

.btn-lg {
  height: 56px;
  padding: 0 36px;
  font-size: 17px;
  border-radius: 12px;
}

/* ============================================
   Header / Navigation
   ============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(61, 79, 95, 0.06);
  transition: padding var(--transition), box-shadow var(--transition);
  padding: var(--sm) 0;
}

.site-header.scrolled {
  padding: var(--xs) 0;
  box-shadow: var(--shadow-sm);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-mark {
  width: 40px;
  height: 40px;
  background: var(--deep-teal);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition);
}

.logo:hover .logo-mark { transform: scale(1.05); }

.logo-mark svg { width: 22px; height: 22px; }

.logo-text {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--slate);
  letter-spacing: -0.02em;
}

.logo-text span { color: var(--deep-teal); }

nav { display: flex; align-items: center; gap: var(--md); }

nav a {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 500;
  color: var(--slate-light);
  text-decoration: none;
  transition: color var(--transition);
  padding: var(--xs) 0;
}

nav a:hover { color: var(--deep-teal); }

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
}

.mobile-menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--slate);
  position: relative;
  transition: background var(--transition);
}

.mobile-menu-btn span::before,
.mobile-menu-btn span::after {
  content: '';
  position: absolute;
  width: 22px;
  height: 2px;
  background: var(--slate);
  left: 0;
  transition: transform var(--transition);
}

.mobile-menu-btn span::before { top: -7px; }
.mobile-menu-btn span::after { top: 7px; }

/* ============================================
   Section 1: Hero
   ============================================ */
.hero {
  padding: calc(var(--2xl) + 60px) 0 var(--2xl);
  background: linear-gradient(175deg, var(--white) 0%, var(--warm-sand) 50%, var(--light-gray) 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -100px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(13, 107, 110, 0.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -150px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(123, 168, 134, 0.07) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--xs);
  background: var(--deep-teal-light);
  color: var(--deep-teal);
  padding: 6px 16px;
  border-radius: 100px;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: var(--md);
}

.hero-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sage-green);
  flex-shrink: 0;
}

.hero h1 {
  font-size: 56px;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: var(--md);
}

.hero h1 em {
  font-style: normal;
  color: var(--deep-teal);
  position: relative;
}

.hero h1 em::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--coral);
  border-radius: 2px;
  opacity: 0.6;
}

.hero-subtitle {
  font-size: 20px;
  line-height: 1.6;
  color: var(--slate-light);
  margin-bottom: 36px;
  max-width: 560px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: var(--sm);
  flex-wrap: wrap;
}

.hero-note {
  display: flex;
  align-items: center;
  gap: var(--xs);
  margin-top: var(--md);
  font-size: 14px;
  color: var(--slate-light);
}

.hero-note svg { flex-shrink: 0; color: var(--sage-green); }

/* ============================================
   Patient Mosaic Strip
   ============================================ */
.patient-mosaic {
  padding: var(--lg) 0 0;
  background: var(--white);
  overflow: hidden;
}

.mosaic-strip {
  display: flex;
  justify-content: center;
  gap: var(--sm);
  flex-wrap: nowrap;
  overflow: hidden;
}

.mosaic-item {
  flex: 0 0 auto;
  width: 160px;
  height: 160px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}

.mosaic-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease-out);
}

.mosaic-item:hover img {
  transform: scale(1.08);
}

.mosaic-caption {
  text-align: center;
  font-size: 15px;
  color: var(--slate-light);
  margin-top: var(--md);
  max-width: 100%;
}

/* ============================================
   Section 2: Social Proof Bar
   ============================================ */
.social-proof {
  padding: var(--lg) 0;
  background: var(--white);
  border-top: 1px solid rgba(61, 79, 95, 0.06);
  border-bottom: 1px solid rgba(61, 79, 95, 0.06);
}

.stats-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--xl);
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 700;
  color: var(--deep-teal);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 15px;
  color: var(--slate-light);
  margin-top: 4px;
}

.stat-divider {
  width: 1px;
  height: 48px;
  background: rgba(61, 79, 95, 0.1);
}

/* ============================================
   Section 3: How It Works
   ============================================ */
.how-it-works {
  background: var(--white);
}

.section-eyebrow {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--deep-teal);
  margin-bottom: var(--sm);
}

.section-heading {
  margin-bottom: var(--sm);
}

.section-subtitle {
  color: var(--slate-light);
  margin-bottom: var(--xl);
  font-size: 18px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--md);
  position: relative;
}

.steps-grid::before {
  content: '';
  position: absolute;
  top: 44px;
  left: calc(16.66% + 24px);
  right: calc(16.66% + 24px);
  height: 2px;
  background: linear-gradient(90deg, var(--deep-teal), var(--sage-green));
  opacity: 0.1;
  z-index: 0;
}

.step-card {
  background: var(--light-gray);
  border-radius: var(--radius-lg);
  padding: 36px var(--md);
  text-align: center;
  position: relative;
  z-index: 1;
  transition: transform var(--transition), box-shadow var(--transition);
}

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

.step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--deep-teal);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: var(--md);
  position: relative;
}

.step-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto var(--sm);
  color: var(--deep-teal);
}

.step-card h3 {
  margin-bottom: var(--xs);
}

.step-card p {
  color: var(--slate-light);
  font-size: 16px;
  margin: 0 auto;
}

.step-time {
  display: inline-block;
  margin-top: 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--sage-green);
  background: rgba(123, 168, 134, 0.12);
  padding: 4px 12px;
  border-radius: 100px;
}

/* ============================================
   Section 4: Medication Info
   ============================================ */
.medication {
  background: var(--warm-sand);
}

.med-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--md);
}

.med-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

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

.med-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.med-card:first-child::before { background: var(--deep-teal); }
.med-card:last-child::before { background: var(--sage-green); }

.med-tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: var(--sm);
}

.med-card:first-child .med-tag {
  background: var(--deep-teal-light);
  color: var(--deep-teal);
}

.med-card:last-child .med-tag {
  background: rgba(123, 168, 134, 0.15);
  color: var(--sage-green);
}

.med-card h3 {
  font-size: 28px;
  margin-bottom: 12px;
}

.med-card > p {
  color: var(--slate-light);
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: var(--md);
}

.med-highlights {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.med-highlights li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  color: var(--slate);
}

.med-highlights li svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--sage-green);
}

/* ============================================
   Section 5: Pricing
   ============================================ */
.pricing {
  background: var(--white);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--md);
  max-width: 820px;
  margin: 0 auto;
}

.price-card {
  background: var(--light-gray);
  border: 1px solid rgba(61, 79, 95, 0.06);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  text-align: center;
  position: relative;
  transition: transform var(--transition), box-shadow var(--transition);
}

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

.price-card.popular {
  background: var(--white);
  border: 2px solid var(--deep-teal);
  box-shadow: var(--shadow-md);
}

.popular-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--deep-teal);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 16px;
  border-radius: 100px;
  white-space: nowrap;
}

.price-card h3 {
  font-size: 22px;
  margin-bottom: var(--xs);
}

.price-amount {
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 700;
  color: var(--deep-teal);
  line-height: 1;
  margin-bottom: 4px;
}

.price-amount span {
  font-size: 18px;
  font-weight: 500;
  color: var(--slate-light);
}

.price-note {
  font-size: 14px;
  color: var(--slate-light);
  margin-bottom: var(--md);
}

.price-features {
  list-style: none;
  text-align: left;
  margin-bottom: var(--md);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.price-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
}

.price-features li svg {
  flex-shrink: 0;
  color: var(--deep-teal);
}

.pricing-footer {
  text-align: center;
  margin-top: var(--lg);
  font-size: 15px;
  color: var(--slate-light);
}

.pricing-footer strong { color: var(--slate); }

/* ============================================
   Section 6: Trust / Physician
   ============================================ */
.trust {
  background: var(--deep-teal);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.trust::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.04) 0%, transparent 70%);
  border-radius: 50%;
}

.trust-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--xl);
  align-items: center;
}

.trust h2 { color: var(--white); }

.trust-text p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 18px;
  line-height: 1.7;
  margin-top: var(--sm);
}

.trust-credentials {
  display: flex;
  flex-direction: column;
  gap: var(--sm);
  margin-top: var(--md);
}

.credential {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.9);
}

.credential svg { color: var(--sage-green); flex-shrink: 0; }

.trust-visual {
  display: flex;
  flex-direction: column;
  gap: var(--sm);
}

.trust-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: var(--md);
  display: flex;
  align-items: center;
  gap: var(--sm);
}

.trust-card-icon {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.trust-card-icon svg { color: var(--sage-green); }

.trust-card h4 {
  color: var(--white);
  font-size: 16px;
  margin-bottom: 2px;
}

.trust-card p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.4;
}

/* ============================================
   Section 7: Testimonials
   ============================================ */
.testimonials {
  background: var(--warm-sand);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--md);
}

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
}

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

.testimonial-stars {
  display: flex;
  gap: 2px;
  margin-bottom: var(--sm);
  color: var(--soft-gold);
}

.testimonial-quote {
  font-family: var(--font-accent);
  font-size: 17px;
  font-style: italic;
  line-height: 1.65;
  color: var(--slate);
  flex: 1;
  margin-bottom: var(--md);
}

.testimonial-result {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(123, 168, 134, 0.12);
  color: var(--sage-green);
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: var(--sm);
  width: fit-content;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: var(--sm);
  border-top: 1px solid rgba(61, 79, 95, 0.06);
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--deep-teal-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 16px;
  color: var(--deep-teal);
  flex-shrink: 0;
}

.testimonial-name {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 15px;
  color: var(--slate);
}

.testimonial-detail {
  font-size: 13px;
  color: var(--slate-light);
}

/* ============================================
   Section 8: FAQ
   ============================================ */
.faq {
  background: var(--white);
}

.faq-container {
  max-width: 720px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid rgba(61, 79, 95, 0.08);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: var(--md) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sm);
  cursor: pointer;
  text-align: left;
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  color: var(--slate);
  transition: color var(--transition);
}

.faq-question:hover { color: var(--deep-teal); }

.faq-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--light-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background var(--transition), transform var(--transition);
}

.faq-item.open .faq-icon {
  background: var(--deep-teal-light);
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease-out), opacity 0.3s ease;
  opacity: 0;
}

.faq-item.open .faq-answer {
  opacity: 1;
}

.faq-answer-inner {
  padding: 0 0 var(--md);
  font-size: 16px;
  line-height: 1.7;
  color: var(--slate-light);
}

/* ============================================
   Section 9: Final CTA
   ============================================ */
.final-cta {
  background: linear-gradient(175deg, var(--warm-sand) 0%, var(--white) 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.final-cta::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(13, 107, 110, 0.04) 0%, transparent 60%);
  border-radius: 50%;
  pointer-events: none;
}

.final-cta .container { position: relative; z-index: 1; }

.final-cta h2 {
  font-size: 44px;
  margin-bottom: var(--sm);
}

.final-cta h2 em {
  font-style: normal;
  color: var(--deep-teal);
}

.final-cta > .container > p {
  font-size: 20px;
  color: var(--slate-light);
  margin: 0 auto var(--lg);
  max-width: 520px;
}

.final-cta-note {
  margin-top: var(--md);
  font-size: 14px;
  color: var(--slate-light);
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
  background: var(--slate);
  color: rgba(255, 255, 255, 0.6);
  padding: var(--xl) 0 var(--lg);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--lg);
  margin-bottom: var(--lg);
}

.footer-brand p {
  font-size: 15px;
  line-height: 1.6;
  margin-top: 12px;
  max-width: 300px;
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--sm);
}

.footer-col a {
  display: block;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  padding: 4px 0;
  transition: color var(--transition);
}

.footer-col a:hover { color: var(--white); }

.footer-bottom {
  padding-top: var(--md);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  flex-wrap: wrap;
  gap: var(--sm);
}

.footer-badges {
  display: flex;
  align-items: center;
  gap: var(--sm);
  font-size: 13px;
}

.footer-badges span {
  display: flex;
  align-items: center;
  gap: 6px;
  opacity: 0.6;
}

/* ============================================
   Mobile Sticky CTA
   ============================================ */
.mobile-cta-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(61, 79, 95, 0.08);
  padding: 12px var(--sm);
  transform: translateY(100%);
  transition: transform 0.4s var(--ease-out);
}

.mobile-cta-bar.visible { transform: translateY(0); }

.mobile-cta-bar .btn { width: 100%; }

/* ============================================
   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; }

/* ============================================
   Scrollytelling — Directional Reveals
   ============================================ */
[data-scroll-reveal] {
  opacity: 0;
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

[data-scroll-reveal="left"] { transform: translateX(-60px); }
[data-scroll-reveal="right"] { transform: translateX(60px); }
[data-scroll-reveal="up"] { transform: translateY(40px); }
[data-scroll-reveal="scale"] { transform: scale(0.92); }

[data-scroll-reveal].in-view {
  opacity: 1;
  transform: none;
}

[data-scroll-delay="1"] { transition-delay: 0.1s; }
[data-scroll-delay="2"] { transition-delay: 0.2s; }
[data-scroll-delay="3"] { transition-delay: 0.3s; }
[data-scroll-delay="4"] { transition-delay: 0.4s; }

/* ============================================
   Scrollytelling — Hero Parallax & Fade
   ============================================ */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--lg);
  align-items: center;
}

.hero-media {
  position: relative;
  z-index: 1;
}

.hero-img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  object-fit: cover;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, var(--warm-sand) 0%, #E8DFD2 100%);
}

.step-card-img {
  background: linear-gradient(135deg, var(--light-gray) 0%, var(--warm-sand) 100%);
}

.mosaic-item img {
  background: linear-gradient(135deg, var(--warm-sand) 0%, var(--light-gray) 100%);
}

.physician-img {
  background: rgba(255, 255, 255, 0.15);
}

.hero-img-glow {
  position: absolute;
  inset: -20px;
  background: radial-gradient(circle at center, rgba(13, 107, 110, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  z-index: -1;
  pointer-events: none;
}

/* Hero text fade on scroll (JS applies inline styles) */
.scroll-fade {
  will-change: opacity, transform;
}

/* CSS scroll-driven parallax (progressive enhancement) */
@supports (animation-timeline: view()) {
  .hero-media {
    animation: hero-parallax linear both;
    animation-timeline: view();
    animation-range: entry 0% exit 60%;
  }
  @keyframes hero-parallax {
    from { transform: translateY(30px) scale(1.03); }
    to { transform: translateY(-30px) scale(1); }
  }
}

/* ============================================
   Scrollytelling — Counter Animation
   ============================================ */
.stat-number {
  font-variant-numeric: tabular-nums;
}

/* ============================================
   Scrollytelling — Steps Progress Line
   ============================================ */
.steps-progress-line {
  position: absolute;
  top: 44px;
  left: calc(16.66% + 24px);
  right: calc(16.66% + 24px);
  height: 2px;
  background: linear-gradient(90deg, var(--deep-teal), var(--sage-green));
  z-index: 0;
  transform-origin: left center;
  transform: scaleX(0);
}

/* ============================================
   Scrollytelling — Step Card Images
   ============================================ */
.step-card-img {
  width: 100%;
  height: 140px;
  border-radius: var(--radius);
  object-fit: cover;
  margin-bottom: var(--sm);
  background: var(--warm-sand);
}

/* ============================================
   Scrollytelling — Trust Card Stacking
   ============================================ */
.trust-card.scroll-stack {
  opacity: 0;
  transform: translateY(30px) rotate(1.5deg);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.trust-card.scroll-stack.in-view {
  opacity: 1;
  transform: translateY(0) rotate(0deg);
}

/* ============================================
   Trust — Physician Portrait
   ============================================ */
.trust-physician {
  text-align: center;
  margin-bottom: var(--md);
}

.physician-img {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--sage-green);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  background: rgba(255, 255, 255, 0.1);
}

.physician-name {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  color: var(--white);
  margin-top: 12px;
}

.physician-title {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 4px;
}

/* ============================================
   Testimonial Avatar Images
   ============================================ */
.testimonial-avatar img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

/* ============================================
   Final CTA — Background Image
   ============================================ */
.final-cta-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.final-cta-bg.in-view {
  opacity: 1;
}

.final-cta-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(30px) saturate(0.7);
  opacity: 0.15;
  transform: scale(1.1);
}

/* ============================================
   Accessibility — 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 { opacity: 1; transform: none; }
  [data-scroll-reveal] { opacity: 1; transform: none; }
  .scroll-fade { opacity: 1 !important; transform: none !important; }
  .trust-card.scroll-stack { opacity: 1; transform: none; }
  .final-cta-bg { opacity: 1; }
  .steps-progress-line { transform: scaleX(1); }
}

/* ============================================
   Responsive — Tablet
   ============================================ */
@media (max-width: 1024px) {
  h1 { font-size: 40px; }
  h2 { font-size: 32px; }
  .hero h1 { font-size: 44px; }

  section { padding: var(--xl) 0; }

  .hero-grid { gap: var(--md); }
  .hero-img { border-radius: var(--radius); }
  .trust-content { gap: var(--lg); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--md); }
}

/* ============================================
   Responsive — Mobile
   ============================================ */
@media (max-width: 768px) {
  h1 { font-size: 32px; }
  h2 { font-size: 28px; }
  h3 { font-size: 20px; }
  body { font-size: 16px; }

  .container { padding: 0 var(--sm); }
  section { padding: var(--xl) 0; }

  /* Header */
  nav a { display: none; }
  nav .btn { display: none; }
  .mobile-menu-btn { display: flex; }

  /* Hero */
  .hero { padding: calc(var(--xl) + 60px) 0 var(--xl); }
  .hero-grid { grid-template-columns: 1fr; gap: var(--md); }
  .hero-media { order: -1; max-width: 320px; margin: 0 auto; }
  .hero-img { aspect-ratio: 1 / 1; max-height: 280px; width: 100%; }
  .hero-img-glow { display: none; }

  /* Patient Mosaic */
  .mosaic-strip { gap: var(--xs); justify-content: flex-start; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: var(--xs); }
  .mosaic-item { width: 120px; height: 120px; flex-shrink: 0; }
  .hero h1 { font-size: 36px; }
  .hero-subtitle { font-size: 17px; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .hero-actions .btn { width: 100%; }

  /* Step card images */
  .step-card-img { height: 120px; }

  /* Stats */
  .stats-row { flex-direction: column; gap: var(--md); }
  .stat-divider { width: 48px; height: 1px; }

  /* Steps */
  .steps-grid { grid-template-columns: 1fr; gap: var(--sm); }
  .steps-grid::before { display: none; }

  /* Medication */
  .med-grid { grid-template-columns: 1fr; }

  /* Pricing */
  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; }

  /* Trust */
  .trust-content { grid-template-columns: 1fr; gap: var(--lg); }

  /* Testimonials */
  .testimonial-grid { grid-template-columns: 1fr; }

  /* Final CTA */
  .final-cta h2 { font-size: 32px; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: var(--md); }
  .footer-bottom { flex-direction: column; text-align: center; }

  /* Mobile CTA Bar */
  .mobile-cta-bar { display: block; }

  /* Extra bottom padding for sticky CTA */
  .site-footer { padding-bottom: calc(var(--lg) + 70px); }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 30px; }
  .price-amount { font-size: 40px; }
  .final-cta h2 { font-size: 28px; }
}
