/* ═══════════════════════════════════════════════════════
   INVESTOR HEALTH — Shared Stylesheet
   Source of truth: Paper frames v4 (light) + v5 (dark)
   ═══════════════════════════════════════════════════════ */

/* ━━━ DESIGN TOKENS ━━━ */
:root {
  --font-serif: "DM Serif Display", Georgia, serif;
  --font-sans: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;

  --page-max: 1440px;
  --nav-max: 1240px;
  --content-max: 1200px;
  --section-px: 140px;

  --c-cream: #F0E8D4;
  --c-cream-page: #F5EDD8;
  --c-gold: #C9A96E;
  --c-maroon: #1A0006;
  --c-maroon-deep: #120004;
  --c-near-black: #1A1815;
  --c-cool-gray: #D7DDE4;
  --c-muted-warm: #5C5448;

  --r-pill: 100px;
  --r-card-outer: 28px;
  --r-card-inner: 24px;
  --r-step: 20px;
  --r-md: 16px;
  --r-sm: 12px;

  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --dur: 500ms;
}

/* ━━━ LIGHT THEME ━━━ */
:root,
[data-theme="light"] {
  --bg-page: var(--c-cream-page);
  --bg-hero: var(--c-cream-page);
  --bg-nav: rgba(245, 237, 216, 0.55);
  --border-nav: rgba(26, 24, 21, 0.08);

  --text-primary: var(--c-near-black);
  --text-secondary: var(--c-muted-warm);
  --text-logo: var(--c-near-black);

  --accent: var(--c-maroon);
  --accent-soft: rgba(26, 0, 6, 0.12);

  --eyebrow-bg: rgba(26, 24, 21, 0.05);
  --eyebrow-border: rgba(26, 24, 21, 0.06);
  --eyebrow-text: var(--c-near-black);
  --eyebrow-dot: var(--c-maroon);

  --card-outer-bg: rgba(26, 24, 21, 0.03);
  --card-outer-border: rgba(26, 24, 21, 0.06);
  --card-inner-bg: var(--c-cream);
  --card-inner-border: transparent;
  --card-inset: inset 0 1px 1px rgba(255, 255, 255, 0.4);

  --cta-bg: var(--c-maroon);
  --cta-text: #FFFFFF;
  --cta-arrow-circle: rgba(255, 255, 255, 0.2);
  --cta-arrow-stroke: #FFFFFF;

  --cta-ghost-bg: transparent;
  --cta-ghost-border: rgba(26, 24, 21, 0.18);
  --cta-ghost-text: var(--c-near-black);

  --section-alt-bg: transparent;
  --divider: rgba(26, 24, 21, 0.1);

  --footer-bg: var(--c-near-black);
  --sculpture-blend: multiply;

  --step-number: rgba(26, 24, 21, 0.1);
  --support-card-bg: rgba(201, 169, 110, 0.08);
  --support-card-border: rgba(201, 169, 110, 0.15);
  --support-num-bg: rgba(26, 0, 6, 0.08);
  --support-num-color: var(--c-maroon);
}

/* ━━━ DARK THEME ━━━ */
[data-theme="dark"] {
  --bg-page: var(--c-maroon);
  --bg-hero: var(--c-maroon);
  --bg-nav: rgba(26, 0, 6, 0.4);
  --border-nav: rgba(240, 232, 212, 0.12);

  --text-primary: var(--c-cream);
  --text-secondary: rgba(240, 232, 212, 0.75);
  --text-logo: var(--c-cream);

  --accent: var(--c-gold);
  --accent-soft: rgba(201, 169, 110, 0.12);

  --eyebrow-bg: rgba(201, 169, 110, 0.12);
  --eyebrow-border: rgba(201, 169, 110, 0.2);
  --eyebrow-text: var(--c-gold);
  --eyebrow-dot: var(--c-gold);

  --card-outer-bg: rgba(240, 232, 212, 0.02);
  --card-outer-border: rgba(240, 232, 212, 0.05);
  --card-inner-bg: rgba(240, 232, 212, 0.04);
  --card-inner-border: rgba(240, 232, 212, 0.09);
  --card-inset: none;

  --cta-bg: var(--c-cool-gray);
  --cta-text: var(--c-maroon);
  --cta-arrow-circle: rgba(26, 0, 6, 0.15);
  --cta-arrow-stroke: var(--c-maroon);

  --cta-ghost-bg: transparent;
  --cta-ghost-border: rgba(240, 232, 212, 0.2);
  --cta-ghost-text: rgba(240, 232, 212, 0.7);

  --section-alt-bg: rgba(240, 232, 212, 0.02);
  --divider: rgba(240, 232, 212, 0.1);

  --footer-bg: var(--c-maroon-deep);
  --sculpture-blend: screen;

  --step-number: var(--c-gold);
  --support-card-bg: rgba(240, 232, 212, 0.05);
  --support-card-border: rgba(240, 232, 212, 0.12);
  --support-num-bg: rgba(215, 221, 228, 0.1);
  --support-num-color: var(--c-cool-gray);
}

/* ━━━ RESET / BASE ━━━ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  color: var(--text-primary);
  background: var(--bg-page);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; border: 0; background: none; cursor: pointer; color: inherit; }
img, svg { display: block; max-width: 100%; }
summary { cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }

/* ━━━ UTILITIES ━━━ */
.serif { font-family: var(--font-serif); font-weight: 400; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  border-radius: var(--r-pill);
  background: var(--eyebrow-bg);
  border: 1px solid var(--eyebrow-border);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--eyebrow-text);
  width: fit-content;
}

/* ━━━ BUTTONS ━━━ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px 14px 28px;
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
  transition: transform var(--dur) var(--ease), filter var(--dur) var(--ease);
}
.btn:hover { filter: brightness(1.05); transform: translateY(-1px); }
.btn:active { transform: scale(0.98); }

.btn-primary { background: var(--cta-bg); color: var(--cta-text); }
.btn-primary .arrow {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--cta-arrow-circle);
  display: grid; place-items: center;
  flex-shrink: 0;
  transition: transform var(--dur) var(--ease);
}
.btn-primary:hover .arrow { transform: translate(2px, -1px) scale(1.05); }
.btn-primary .arrow svg { stroke: var(--cta-arrow-stroke); }

.btn-ghost {
  background: var(--cta-ghost-bg);
  color: var(--cta-ghost-text);
  border: 1px solid var(--cta-ghost-border);
  font-weight: 500;
  padding: 14px 24px;
}

/* ━━━ NAV — fixed overlay, frosted glass over hero ━━━ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex; justify-content: center;
  padding: 32px 80px 0;
  pointer-events: none; /* let clicks pass through empty space around the pill */
}
.nav-pill {
  pointer-events: auto;
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; max-width: var(--nav-max);
  padding: 14px 14px 14px 28px;
  border-radius: var(--r-pill);
  background: var(--bg-nav);
  border: 1px solid var(--border-nav);
  backdrop-filter: blur(24px) saturate(1.3);
  -webkit-backdrop-filter: blur(24px) saturate(1.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}
.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
  color: inherit;
  transition: opacity var(--dur) var(--ease);
}
.nav-logo:hover { opacity: 0.7; }
.nav-logo-dot { display: none; } /* gold dot retired */
.nav-logo-text { font-family: var(--font-serif); font-size: 18px; color: var(--text-logo); }
.nav-links { display: flex; align-items: center; gap: 32px; flex-shrink: 0; }
.nav-link { font-size: 13px; color: var(--text-secondary); white-space: nowrap; transition: color var(--dur) var(--ease); }
.nav-link:hover { color: var(--text-primary); }

/* Hamburger button — hidden on desktop, visible on tablet/mobile */
.nav-hamburger {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--eyebrow-bg);
  border: 1px solid var(--eyebrow-border);
  color: var(--text-primary);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.nav-hamburger:hover { opacity: 0.7; }
.nav-hamburger:active { transform: scale(0.95); }
.nav-hamburger svg { width: 20px; height: 20px; }

/* ━━━ MOBILE MENU OVERLAY ━━━ */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--bg-page);
  display: flex;
  flex-direction: column;
  padding: 28px 24px 32px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.35s var(--ease), visibility 0.35s var(--ease), transform 0.45s var(--ease);
  overflow-y: auto;
}
.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mobile-menu-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 8px 0;
  margin-bottom: 56px;
  flex-shrink: 0;
}
.mobile-menu-top .nav-logo-text { font-size: 16px; }
.mobile-menu-close {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--eyebrow-bg);
  border: 1px solid var(--eyebrow-border);
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.mobile-menu-close:hover { opacity: 0.7; }
.mobile-menu-close:active { transform: scale(0.95); }
.mobile-menu-close svg { width: 20px; height: 20px; }

.mobile-menu-links {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 0 16px;
  flex: 1;
}
.mobile-menu-link {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(32px, 8vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  text-decoration: none;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.mobile-menu-link:hover { opacity: 0.6; }
.mobile-menu-link:active { transform: translateX(4px); }

.mobile-menu-cta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 32px 16px 0;
  margin-top: auto;
  border-top: 0.5px solid var(--divider);
  margin-top: 48px;
}
.mobile-menu-cta .btn {
  justify-content: center;
  width: 100%;
  padding: 16px 24px;
  font-size: 12px;
}

body.menu-open { overflow: hidden; }

.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--eyebrow-bg); border: 1px solid var(--eyebrow-border);
  color: var(--text-primary); cursor: pointer; flex-shrink: 0;
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease);
}
.theme-toggle:hover { transform: rotate(15deg); }
.theme-toggle svg { width: 18px; height: 18px; }
[data-theme="dark"] .theme-toggle svg.sun { display: block; }
[data-theme="dark"] .theme-toggle svg.moon { display: none; }
[data-theme="light"] .theme-toggle svg.sun,
:root:not([data-theme="dark"]) .theme-toggle svg.sun { display: none; }
[data-theme="light"] .theme-toggle svg.moon,
:root:not([data-theme="dark"]) .theme-toggle svg.moon { display: block; }

/* ━━━ HERO ━━━ full-bleed sculpture, nav floats over top */
.hero {
  position: relative;
  width: 100%;
  height: 740px;
  overflow: clip;
  padding: 0;
  background: var(--bg-hero);
  flex-shrink: 0;
  z-index: 0;
}

/* Soft bottom feather — dissolves sculpture edge into the section below.
   Extended height + extra opacity ramp-up to fully hide any parallax
   bottom edge on the dark sculpture as it scrolls up. */
.hero::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 240px;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    var(--bg-page) 65%,
    var(--bg-page) 100%
  );
  pointer-events: none;
  z-index: 1;
}

/* SCULPTURE — same .hero-sculpture element in BOTH themes, so the parallax JS
   targets one selector. Theme-specific layering is handled by the variants below. */
.hero-sculpture {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 740px;
  background-image: url('assets/disc-thrower.png');
  /* Scale to ~85% of the hero height so the full figure shows (more of his
     body visible, slightly smaller silhouette overall). Width auto preserves
     aspect ratio. */
  background-size: auto 90%;
  background-repeat: no-repeat;
  background-position: center top;
  background-color: var(--bg-hero);
  pointer-events: none;
  will-change: transform; /* GPU layer for smooth parallax */
  transform-style: preserve-3d;
}

/* LIGHT: clean image on cream — the cream-bg of the source image blends naturally
   with the page bg, so no mask or blend mode is needed. */
[data-theme="light"] .hero-sculpture,
:root:not([data-theme="dark"]) .hero-sculpture {
  /* Soft bottom feather on the sculpture itself helps blend the parallax-translated
     edge into the page bg (cream-on-cream, but adds extra polish at the seam). */
  mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
}

/* DARK: separate absolute overlay with screen blend + radial mask + drop-shadow */
[data-theme="dark"] .hero-sculpture {
  background-blend-mode: screen;
  /* Vertical extent tightened to 58% so the gradient reaches transparent
     exactly at the sculpture's bottom edge — prevents parallax from
     revealing a partially-opaque "edge" as it scrolls upward. */
  mask-image: radial-gradient(
    ellipse 75% 58% at 62% 42%,
    black 25%,
    rgba(0, 0, 0, 0.8) 45%,
    rgba(0, 0, 0, 0.4) 65%,
    transparent 100%
  );
  -webkit-mask-image: radial-gradient(
    ellipse 75% 58% at 62% 42%,
    black 25%,
    rgba(0, 0, 0, 0.8) 45%,
    rgba(0, 0, 0, 0.4) 65%,
    transparent 100%
  );
  filter:
    drop-shadow(0px 40px 80px rgba(26, 0, 6, 0.8))
    drop-shadow(-10px 0px 40px rgba(26, 0, 6, 0.4));
  transform-style: preserve-3d;
  will-change: transform;
  pointer-events: none;
}

/* Inner wrapper: 1280×660 absolute-positioning context for text + trust card.
   Extra top padding preserves Paper's layout now that .hero has no padding. */
.hero-inner {
  position: relative;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  height: 740px; /* fills full hero; content stays anchored 40px from bottom */
  padding-top: 80px;
  box-sizing: border-box;
  z-index: 2;
}
/* Buffer the hero content from viewport edges when viewport is narrower
   than the 1280px max-width. Above 1280, margin auto provides the breathing room.
   Note: .hero-text is position:absolute and its containing block is the padding-box
   edge of .hero-inner, so padding-left alone does NOT inset it — we also need to
   match the inset via `left: 40px` here. Compound selector `.hero-inner .hero-text`
   bumps specificity above the base `.hero-text` rule (which is declared later in
   source order) so the cascade resolves in our favor. */
@media (max-width: 1280px) {
  .hero-inner {
    padding-left: 40px;
    padding-right: 40px;
  }
  .hero-inner .hero-text { left: 40px; }
}

/* Text column — absolute at bottom-left */
.hero-text {
  position: absolute;
  left: 0;
  bottom: 40px;
  width: 460px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.hero-text h1 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 116px;
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  white-space: pre-line;
}
/* In-flow hero CTA — replaces the old trust-card button. Self-sized pill
   that sits below the body copy with breathing room. */
.hero-cta {
  align-self: flex-start;
  margin-top: 24px;
}
@media (max-width: 768px) {
  .hero-cta { margin-top: 20px; width: auto; }
}

/* Buffett quote CTA — centered pill below the body copy */
.buffett-cta {
  display: inline-flex;
  margin: 28px auto 0;
}
.buffett-inner { display: flex; flex-direction: column; align-items: center; }

/* Subhead — secondary italic line, sits below the bold body copy */
.hero-subhead {
  font-size: 15px;
  font-style: italic;
  font-weight: 500;
  line-height: 1.5;
  color: var(--text-primary);
  opacity: 0.6;
  margin-top: 4px;
}
[data-theme="dark"] .hero-subhead { opacity: 0.7; }
/* Body — now the primary subhead: bold + larger */
.hero-body {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.45;
  max-width: 460px;
  color: var(--text-primary);
  opacity: 1;
}
[data-theme="dark"] .hero-body { color: var(--c-cream); opacity: 0.95; }

/* Trust card — absolute at bottom-right, double-bezel structure */
.trust-card-wrap {
  position: absolute;
  right: 0;
  bottom: 40px;
  width: 340px;
}
.trust-card-outer {
  padding: 6px;
  border-radius: 20px;
  background: rgba(26, 24, 21, 0.02);
  border: 1px solid rgba(26, 24, 21, 0.06);
}
[data-theme="dark"] .trust-card-outer {
  background: rgba(26, 24, 21, 0.02);
  border-color: rgba(26, 24, 21, 0.06);
}
.trust-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 28px;
  border-radius: 16px;
  background: var(--c-cream);
  opacity: 0.9;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.4);
}
[data-theme="dark"] .trust-card {
  background: rgba(240, 232, 212, 0.2);
  border: 0.5px solid rgba(240, 232, 212, 0.12);
  opacity: 0.95;
  box-shadow: none;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.trust-bullets {
  display: flex;
  flex-direction: column;
  gap: 14px;
  list-style: none;
}
.trust-bullet {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.23;
  color: var(--c-near-black);
}
[data-theme="dark"] .trust-bullet { color: rgba(240, 232, 212, 0.75); }
.trust-bullet::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}
.trust-card .btn-primary {
  width: 100%;
  justify-content: center;
  padding: 14px 24px;
}

/* ━━━ SECTION PATTERN ━━━ */
.section { padding: 140px var(--section-px); }
/* Trim the gap between the treatments grid and the Buffett quote */
#treatments { padding-bottom: 80px; }
.section-narrow { padding: 80px var(--section-px); }
.section-header {
  display: flex; flex-direction: column; gap: 20px;
  max-width: 1160px; margin: 0 auto 48px;
}
.section-header h2 {
  font-family: var(--font-serif); font-weight: 400;
  font-size: clamp(48px, 6vw, 72px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}
.section-sub {
  font-size: 17px; line-height: 1.6; max-width: 560px;
  color: var(--text-primary);
  opacity: 0.75;
  font-weight: 500;
}
[data-theme="dark"] .section-sub { color: var(--c-cream); opacity: 0.75; }

/* ━━━ TREATMENT CARDS (3-column equal grid) ━━━ */
.bento {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 1fr; /* all rows share the same (tallest) row height */
  align-items: stretch;
  gap: 12px;
  max-width: 1160px; margin: 0 auto;
}

/* Image-backed card variant — image is full bleed (edge-to-edge), title overlays the image */
.card-inner--image {
  padding: 0 !important; /* remove default 32px so image-area can go edge-to-edge */
  overflow: hidden;
  background: var(--card-inner-bg);
  border: none !important; /* outer card is the only visible frame */
  border-radius: inherit !important; /* match outer card's radius exactly */
}
/* Pull the inner card flush to ALL edges of the outer card — no double-bezel for image cards */
.card-outer--image,
.card-outer:has(.card-inner--image) {
  padding: 0 !important;
}

/* Upper image area — takes the top half of the card */
.card-image-area {
  position: relative;
  flex-shrink: 0;
  height: 240px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: var(--c-maroon);
}
/* Dark → transparent gradient from bottom up, so title at the bottom of image is legible */
.card-image-area::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10, 0, 2, 0.88) 0%,
    rgba(10, 0, 2, 0.30) 40%,
    transparent 100%
  );
  pointer-events: none;
}
/* Title anchored to bottom-left of image, above the gradient */
.card-image-area .card-title {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 24px;
  margin: 0;
  z-index: 1;
  color: #F0E8D4;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
}

/* Lower content area — tags, description, price/arrow on solid card bg */
.card-content-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px 28px 28px;
  gap: 16px;
}

/* Per-card image assignments (applied to the image area, not the whole inner) */
.card-inner--running   .card-image-area { background-image: url('assets/Man Buttoning Shirt.jpg'); }
.card-inner--swimming  .card-image-area { background-image: url('assets/Woman Walking Up Stairs.jpg'); }
.card-inner--longevity .card-image-area { background-image: url('assets/man-running.png'); }

/* Prominent tag styling for image cards — slightly larger, more contrast */
.card-inner--image .card-tags {
  gap: 6px;
  margin-bottom: 14px;
}
.card-inner--image .card-tag {
  font-size: 10px;
  padding: 6px 12px;
  margin-right: 0;
  margin-bottom: 0;
  background: rgba(240, 232, 212, 0.04);
  color: rgba(240, 232, 212, 0.9);
  border-color: rgba(240, 232, 212, 0.2);
}
[data-theme="light"] .card-inner--image .card-tag {
  background: rgba(26, 24, 21, 0.04);
  color: rgba(26, 24, 21, 0.72);
  border-color: rgba(26, 24, 21, 0.14);
}

.card-inner--image .card-desc {
  color: var(--text-secondary);
}
[data-theme="dark"] .card-inner--image .card-desc {
  color: rgba(240, 232, 212, 0.7);
}
.card-inner--image .card-price { color: var(--accent); }
.card-inner--image .card-arrow svg { stroke: var(--c-cool-gray); }

/* Delivery-method tags shown above card description */
.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-bottom: 8px;
}
.card-tag {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  margin-right: 4px;
  margin-bottom: 12px;
  background: rgba(26, 24, 21, 0.06);
  color: rgba(26, 24, 21, 0.5);
  border: 0.5px solid rgba(26, 24, 21, 0.10);
  white-space: nowrap;
}
[data-theme="dark"] .card-tag {
  background: rgba(240, 232, 212, 0.06);
  color: rgba(240, 232, 212, 0.45);
  border-color: rgba(240, 232, 212, 0.10);
}

.card-outer {
  width: 100%;
  min-width: 0;
  height: 100%; /* fill the stretched grid cell */
  padding: 6px;
  border-radius: var(--r-card-outer);
  background: var(--card-outer-bg);
  border: 1px solid var(--card-outer-border);
  transition: transform var(--dur) var(--ease);
  display: flex; /* so child can grow to fill */
  /* Cards on the homepage are now anchors linking to intake funnels —
     inherit text color and drop the default underline. */
  color: inherit;
  text-decoration: none;
}
.card-outer:hover { transform: translateY(-2px); }
.card-inner {
  width: 100%;
  min-width: 0;
  min-height: 280px;
  flex: 1; /* fill outer's height */
  padding: 32px 32px 28px;
  border-radius: var(--r-card-inner);
  background: var(--card-inner-bg);
  border: 1px solid var(--card-inner-border);
  display: flex; flex-direction: column; justify-content: space-between;
  box-shadow: var(--card-inset);
}
.card-title {
  font-family: var(--font-serif); font-weight: 400;
  font-size: 28px; line-height: 1.2; letter-spacing: -0.01em;
  color: var(--text-primary);
  margin-bottom: 10px;
}
.card-desc { font-size: 14px; line-height: 1.6; max-width: 480px; color: var(--text-secondary); }
.card-footer { display: flex; align-items: center; justify-content: space-between; }
.card-price { font-size: 15px; font-weight: 700; color: var(--accent); }
.card-arrow {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(215, 221, 228, 0.1);
  border: 0.5px solid rgba(215, 221, 228, 0.25);
  display: grid; place-items: center;
  transition: transform var(--dur) var(--ease);
}
.card-outer:hover .card-arrow { transform: translate(2px, -1px) scale(1.05); }
.card-arrow svg { stroke: var(--c-cool-gray); }
[data-theme="light"] .card-arrow { background: rgba(26, 0, 6, 0.06); border-color: rgba(26, 0, 6, 0.12); }
[data-theme="light"] .card-arrow svg { stroke: var(--c-maroon); }

.treatments-footer {
  grid-column: 2 / 3;
  display: flex; align-items: center; justify-content: center; flex-direction: column;
  gap: 20px; padding: 24px;
}
.treatments-footer-label {
  font-family: var(--font-serif); font-style: italic;
  color: var(--accent); font-size: 22px; text-align: center;
}

/* ━━━ HOW IT WORKS ━━━ */
.how-it-works { background: var(--section-alt-bg); }
.photo-strip {
  display: grid;
  grid-template-columns: 389px 1fr 389px;
  gap: 10px;
  padding: 80px 24px;
  max-width: 1440px; margin: 0 auto;
}
.photo-strip img {
  width: 100%; height: 280px;
  object-fit: cover;
  border-radius: 8px;
  background: rgba(240, 232, 212, 0.05);
}
.how-section { padding: 0 var(--section-px) 120px; }
.steps-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 16px; max-width: 1160px; margin: 0 auto;
}
.step-outer {
  padding: 6px; border-radius: var(--r-card-outer);
  background: var(--card-outer-bg); border: 1px solid var(--card-outer-border);
  height: 100%;
  display: flex;
  transition: transform 500ms cubic-bezier(0.22, 1, 0.36, 1),
              border-color 500ms cubic-bezier(0.22, 1, 0.36, 1),
              background 500ms cubic-bezier(0.22, 1, 0.36, 1);
}
.step-inner {
  padding: 28px 24px; border-radius: var(--r-step);
  background: var(--card-inner-bg); border: 1px solid var(--card-inner-border);
  display: flex; flex-direction: column; gap: 12px;
  min-height: 220px;
  width: 100%;
  box-shadow: var(--card-inset);
  transition: box-shadow 500ms cubic-bezier(0.22, 1, 0.36, 1);
}
/* Hover: subtle lift + lighter outer border. Step number animates upward
   slightly with a soft scale for a kinetic touch. */
@media (hover: hover) and (min-width: 769px) {
  .step-outer:hover {
    transform: translateY(-3px);
    border-color: var(--card-outer-border-hover, rgba(201, 169, 110, 0.35));
  }
  .step-outer:hover .step-inner {
    box-shadow: 0 12px 32px -16px rgba(0, 0, 0, 0.18), var(--card-inset);
  }
}
/* Equal-height grid items: stretch outers to match tallest in row */
.steps-grid > * { align-self: stretch; }
.step-number {
  font-family: var(--font-serif); font-size: 40px; line-height: 1;
  color: var(--step-number); opacity: 0.6;
}
.step-title { font-size: 16px; font-weight: 600; color: var(--text-primary); }
.step-body { font-size: 13px; line-height: 1.6; color: var(--text-secondary); }
[data-theme="dark"] .step-body { color: rgba(240, 232, 212, 0.75); }

/* ━━━ BUFFETT QUOTE SECTION ━━━ */
.buffett-section {
  padding: 64px 80px;
  text-align: center;
  position: relative;
}
.buffett-section::before,
.buffett-section::after {
  content: '';
  display: block;
  width: 100%;
  height: 0.5px;
  background: var(--divider);
}
.buffett-section::before { margin-bottom: 48px; }
.buffett-section::after  { margin-top: 48px; }

.buffett-inner {
  max-width: 640px;
  margin: 0 auto;
}

.buffett-eyebrow {
  display: block;
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 28px;
}

.buffett-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 38px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin: 0 0 32px;
}
.buffett-mark {
  color: var(--accent);
  font-style: normal;
  font-family: var(--font-serif);
  margin: 0 2px;
}

.buffett-body {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-secondary);
  margin: 0 0 28px;
}
[data-theme="dark"] .buffett-body { color: rgba(240, 232, 212, 0.85); }
.buffett-body strong {
  color: var(--text-primary);
  font-weight: 600;
}

.buffett-attr {
  display: block;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  opacity: 0.6;
}

@media (max-width: 768px) {
  .buffett-section { padding: 60px 24px; }
  /* Suppress the desktop top/bottom pseudo-divider lines on mobile —
     mobile uses border-top dividers on each section instead. */
  .buffett-section::before,
  .buffett-section::after { display: none; }
  .buffett-quote { font-size: 24px; }
  .buffett-body  { font-size: 14px; }
}

/* ━━━ WHY INVESTOR HEALTH ━━━ */
.why { padding: 80px var(--section-px); display: flex; flex-direction: column; gap: 40px; }
.why-header { max-width: 1200px; margin: 0 auto; width: 100%; }
.why-grid {
  display: grid; grid-template-columns: 540px 1fr;
  gap: 60px; max-width: 1200px; margin: 0 auto;
  align-items: center;
}
.why-image { width: 540px; height: 480px; border-radius: var(--r-md); object-fit: cover; background: rgba(240, 232, 212, 0.05); }
.why-content { display: flex; flex-direction: column; gap: 28px; }
.why-content h2 {
  font-family: var(--font-serif); font-weight: 400;
  font-size: 42px; line-height: 1.1; letter-spacing: -0.01em;
  color: var(--text-primary);
}
.why-bullets { display: flex; flex-direction: column; gap: 16px; list-style: none; }
.why-bullet { display: flex; align-items: center; gap: 14px; font-size: 15px; color: var(--text-primary); }
[data-theme="dark"] .why-bullet { color: rgba(240, 232, 212, 0.7); }
.why-check {
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(215, 221, 228, 0.1);
  border: 0.5px solid rgba(215, 221, 228, 0.25);
  display: grid; place-items: center; flex-shrink: 0;
}
.why-check svg { stroke: var(--c-cool-gray); }

/* Light theme: cool-gray-on-cream is too low contrast — use a warm
   espresso tone with a tinted gold fill so the circles read clearly. */
[data-theme="light"] .why-check,
:root:not([data-theme="dark"]) .why-check {
  background: rgba(201, 169, 110, 0.18);
  border: 1px solid rgba(26, 24, 21, 0.18);
}
[data-theme="light"] .why-check svg,
:root:not([data-theme="dark"]) .why-check svg {
  stroke: #1A1815;
  stroke-width: 2.5;
}

/* ━━━ SUPPORT ━━━ */
.support { padding: 80px var(--section-px); display: flex; flex-direction: column; gap: 40px; }
.support-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; max-width: 1200px; margin: 0 auto; }
.support-card {
  padding: 28px; border-radius: var(--r-md);
  background: var(--support-card-bg);
  border: 1px solid var(--support-card-border);
  display: flex; flex-direction: column; gap: 16px;
  transition: transform 500ms cubic-bezier(0.22, 1, 0.36, 1),
              border-color 500ms cubic-bezier(0.22, 1, 0.36, 1),
              background 500ms cubic-bezier(0.22, 1, 0.36, 1);
}
@media (hover: hover) and (min-width: 769px) {
  .support-card:hover {
    transform: translateY(-3px);
    border-color: rgba(201, 169, 110, 0.4);
  }
  .support-card .support-num {
    transition: transform 500ms cubic-bezier(0.22, 1, 0.36, 1);
  }
  .support-card:hover .support-num {
    transform: scale(1.08) rotate(-3deg);
  }
}
.support-num {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--support-num-bg);
  display: grid; place-items: center;
  font-size: 15px; font-weight: 700;
  color: var(--support-num-color);
}
.support-card h3 { font-size: 16px; font-weight: 600; color: var(--text-primary); }
.support-card p { font-size: 14px; line-height: 1.6; color: var(--text-secondary); }
[data-theme="dark"] .support-card p { color: rgba(240, 232, 212, 0.6); }

/* ━━━ FAQ ━━━ */
.faq { padding: 80px var(--section-px); max-width: var(--content-max); margin: 0 auto; }
.faq-intro { margin-bottom: 48px; display: flex; flex-direction: column; gap: 16px; }
.faq-intro h2 {
  font-family: var(--font-serif); font-weight: 400;
  font-size: clamp(40px, 5vw, 56px);
  line-height: 1; letter-spacing: -0.02em;
  color: var(--text-primary);
}
.faq-category { margin-bottom: 0; }
.faq-category-title {
  font-size: 14px; font-weight: 600; color: var(--accent);
  text-transform: uppercase; letter-spacing: 0.08em;
  padding-bottom: 12px; margin-bottom: 4px;
}
details.faq-item {
  border-top: 1px solid var(--divider);
  padding: 20px 0;
}
/* Only the very last item across all categories carries a closing border */
.faq-category:last-child details.faq-item:last-child { border-bottom: 1px solid var(--divider); }
details.faq-item summary {
  display: flex; justify-content: space-between; align-items: center;
  gap: 20px;
}
.faq-question { font-size: 16px; font-weight: 500; color: var(--text-primary); }
.faq-toggle {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--eyebrow-bg);
  display: grid; place-items: center;
  flex-shrink: 0; font-size: 18px;
  color: var(--text-secondary);
  transition: transform var(--dur) var(--ease);
}
details[open] .faq-toggle { transform: rotate(45deg); }
.faq-answer {
  padding-top: 16px; font-size: 14px; line-height: 1.7;
  color: var(--text-secondary); max-width: 900px;
}
[data-theme="dark"] .faq-answer { color: rgba(240, 232, 212, 0.7); }
.faq-answer a { color: var(--accent); text-decoration: underline; }

/* ━━━ CLOSING CTA ━━━ */
.closing-cta {
  padding: 120px var(--section-px) 80px;
  display: flex; flex-direction: column; align-items: center; gap: 32px;
  text-align: center;
}
.closing-cta h2 {
  font-family: var(--font-serif); font-weight: 400;
  font-size: clamp(48px, 7vw, 88px); line-height: 1;
  letter-spacing: -0.02em;
  color: var(--text-primary); max-width: 900px;
}
.closing-cta p { font-size: 16px; line-height: 1.6; max-width: 620px; color: var(--text-secondary); }
.closing-cta-actions { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }

/* ━━━ INNER PAGE LAYOUT (legal docs, contact form) ━━━ */
.page-shell {
  background: var(--bg-page);
  min-height: 100vh;
}

/* Header band at the top of every inner page (sits below the floating nav) */
.page-header {
  padding: 180px var(--section-px) 56px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.page-header h1 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(56px, 7vw, 96px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}
.page-header .last-updated {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 4px;
}
.page-divider {
  height: 0.5px;
  background: var(--divider);
  margin: 0 var(--section-px);
}

/* Long-form legal body */
.legal-body {
  padding: 56px var(--section-px) 120px;
  max-width: calc(800px + var(--section-px) * 2);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.legal-body h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin: 0 0 14px;
}
.legal-body h3 {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text-primary);
  margin: 16px 0 8px;
}
.legal-body p {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-primary);
  opacity: 0.85;
  margin: 0 0 14px;
}
.legal-body p:last-child { margin-bottom: 0; }
.legal-body p.caps {
  font-size: 14px;
  line-height: 1.7;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text-primary);
  opacity: 1;
}
.legal-body ul {
  list-style: none;
  margin: 0 0 14px;
  padding-left: 4px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.legal-body ul li {
  position: relative;
  padding-left: 22px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-primary);
  opacity: 0.85;
}
.legal-body ul li::before {
  content: '';
  position: absolute;
  top: 11px;
  left: 4px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}
.legal-body section {
  display: flex;
  flex-direction: column;
}
.legal-body a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 0.5px;
  text-underline-offset: 2px;
}

/* Inline pharmacy listing (Terms of Use only) */
.pharmacy-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 8px;
}
.pharmacy-list .pharmacy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.pharmacy-list .pharmacy-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}
.pharmacy-list .pharmacy-meta {
  font-size: 14px;
  color: var(--text-secondary);
}

/* Callouts: emergency warning, draft notice, legal review */
.callout {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 22px;
  border-radius: 12px;
  background: rgba(26, 0, 6, 0.04);
  border: 1px solid rgba(26, 0, 6, 0.10);
  font-size: 12px;
  line-height: 1.65;
  color: var(--text-primary);
  opacity: 0.85;
}
[data-theme="dark"] .callout {
  background: rgba(240, 232, 212, 0.04);
  border-color: rgba(240, 232, 212, 0.10);
}
.callout::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  margin-top: 8px;
}
.callout--emergency {
  background: var(--c-maroon);
  color: #FFFFFF;
  border: none;
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: 13px;
  line-height: 1.6;
  opacity: 1;
}
.callout--emergency::before {
  background: #FFFFFF;
}

/* ━━━ CONTACT PAGE ━━━ */
.contact-section {
  padding: 80px var(--section-px) 120px;
  max-width: 740px;
  margin: 0 auto;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 48px;
}
.contact-form .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.field label {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.field input,
.field textarea,
.field select {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-primary);
  height: 48px;
  padding: 0 16px;
  border-radius: 10px;
  background: rgba(245, 237, 216, 0.5);
  border: 1px solid rgba(26, 24, 21, 0.12);
  outline: none;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
[data-theme="dark"] .field input,
[data-theme="dark"] .field textarea,
[data-theme="dark"] .field select {
  background: rgba(240, 232, 212, 0.04);
  border-color: rgba(240, 232, 212, 0.12);
  color: var(--text-primary);
}
.field textarea {
  height: 160px;
  padding: 14px 16px;
  resize: vertical;
  min-height: 120px;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--accent);
  background: rgba(245, 237, 216, 0.85);
}
[data-theme="dark"] .field input:focus,
[data-theme="dark"] .field textarea:focus,
[data-theme="dark"] .field select:focus {
  background: rgba(240, 232, 212, 0.07);
}
.field-help {
  font-size: 12px;
  color: var(--text-secondary);
  opacity: 0.8;
}
.contact-form .submit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
}
.contact-form .submit-row p {
  font-size: 12px;
  color: var(--text-secondary);
  flex: 1;
  max-width: 380px;
}
.contact-form .btn-primary {
  align-self: flex-start;
}

@media (max-width: 768px) {
  .page-header { padding-top: 140px; padding-bottom: 32px; }
  .legal-body { padding: 32px var(--section-px) 80px; gap: 28px; }
  .contact-form .row { grid-template-columns: 1fr; }
  .contact-form .submit-row { flex-direction: column; align-items: stretch; }
}

/* ━━━ FOOTER ━━━ */
.footer { padding: 60px 120px 48px; background: var(--footer-bg); color: rgba(255,255,255,0.45); }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 80px; margin-bottom: 48px; }
.footer-brand { display: flex; flex-direction: column; gap: 12px; max-width: 360px; }
.footer-brand h4 { font-family: var(--font-serif); font-weight: 400; font-size: 22px; color: #fff; }
.footer-brand p { font-size: 12px; line-height: 1.6; }
/* LegitScript approval seal. Per LegitScript guidance the image MUST render
   at its native 73×79 dimensions — no width/height/transform overrides. */
.footer-legitscript {
  display: flex;
  align-items: flex-start;
  flex-shrink: 0;
}
.footer-legitscript a { display: inline-block; line-height: 0; }
.footer-legitscript img { display: block; }
@media (max-width: 768px) {
  .footer-legitscript { margin-top: 8px; }
}
.footer-cert {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 18px; border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px; font-weight: 500; color: rgba(255,255,255,0.7);
  flex-shrink: 0;
}
.footer-cert-badge { width: 18px; height: 18px; border-radius: 4px; background: rgba(255,255,255,0.15); display: grid; place-items: center; }
.footer-disclosures {
  padding-top: 32px; margin-bottom: 48px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex; flex-direction: column; gap: 24px;
  max-width: 1200px;
}
.footer-disclosure h5 {
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.18em;
  font-weight: 600; color: rgba(255,255,255,0.55); margin-bottom: 6px;
}
.footer-disclosure p { font-size: 12px; line-height: 1.6; color: rgba(255,255,255,0.5); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 32px; }
.footer-links { display: flex; gap: 32px; flex-wrap: wrap; }
.footer-links a { font-size: 12px; font-weight: 500; color: rgba(255,255,255,0.5); transition: color var(--dur) var(--ease); }
.footer-links a:hover { color: rgba(255,255,255,0.9); }
.footer-copy { font-size: 12px; color: rgba(255,255,255,0.25); }

/* ━━━ RESPONSIVE (md: 960px, sm: 600px) ━━━ */
/* ━━━ Sculpture focal-point shift for narrow viewports ━━━
   At ~600×340 source, the figure's head sits around 65% across / 35% down.
   On wide viewports (cover crops top/bottom), center is fine. On narrow
   viewports (cover crops left/right), the head gets cut off — so we shift
   the background-position-x to keep the head in frame. */
@media (max-width: 1024px) {
  .hero-sculpture { background-position: 60% center; }
}
@media (max-width: 768px) {
  .hero-sculpture { background-position: 68% 30%; }
}
@media (max-width: 480px) {
  .hero-sculpture { background-position: 72% 28%; }
}

/* Mobile-only divider: rendered as the first child of the Treatments section
   so the visual break between the hero and treatments is explicit on phones. */
.section-divider-mobile { display: none; }

/* ━━━ NAV COLLAPSE — hamburger replaces desktop links once they no longer fit comfortably ━━━ */
@media (max-width: 1180px) {
  .nav-links .nav-link,
  .nav-links .btn-ghost { display: none; }
  .nav-hamburger { display: inline-flex; }
  .nav-links { gap: 8px; }
}

/* ━━━ TABLET (1024px and below — most layout adjustments kick in here) ━━━ */
@media (max-width: 1024px) {
  :root { --section-px: 48px; }
  .section { padding-top: 100px; padding-bottom: 100px; }

  /* Treatment cards: 3 cols still work on tablet but with smaller gap */
  .bento { gap: 12px; }

  /* How It Works: 4 → 2x2 grid on tablet */
  .steps-grid { grid-template-columns: repeat(2, 1fr); }

  /* Why grid: keep side-by-side at tablet but tighter image */
  .why-grid { grid-template-columns: 460px 1fr; gap: 40px; }
  .why-image { width: 100%; height: 460px; }

  /* Support: 3 → still 3 cols on tablet but tighter gaps */
  .support-cards { gap: 12px; }
}

/* ━━━ MOBILE (768px and below — full layout collapse) ━━━ */
@media (max-width: 768px) {
  :root { --section-px: 24px; }
  .section, .section-narrow, .why, .support, .faq, .closing-cta, .how-section,
  .buffett-section, .contact-section, .page-header {
    padding-left: var(--section-px);
    padding-right: var(--section-px);
  }
  /* Treatments section (.section) — top padding tightened to 40px so the gap
     to the hero feels intentional; bottom 60px matches the global mobile rhythm. */
  .section { padding-top: 40px; padding-bottom: 60px; margin-top: 0; }

  /* Mobile-only divider between hero and treatments */
  .section-divider-mobile {
    display: block;
    width: 100%;
    height: 0.5px;
    margin-bottom: 32px;
  }
  [data-theme="light"] .section-divider-mobile,
  :root:not([data-theme="dark"]) .section-divider-mobile {
    background: rgba(26, 24, 21, 0.12);
  }
  [data-theme="dark"] .section-divider-mobile {
    background: rgba(240, 232, 212, 0.12);
  }

  /* ━━━ NAV (mobile: minimal — logo + GET STARTED only) ━━━ */
  .nav { padding: 16px 0 0; }
  .nav-pill {
    width: calc(100% - 32px);
    margin: 0 16px;
    max-width: none;
    padding: 10px 16px;
    border-radius: 999px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  /* LIGHT theme nav-pill: explicit spec compliance + transform reset */
  [data-theme="light"] .nav-pill,
  :root:not([data-theme="dark"]) .nav-pill {
    width: calc(100% - 32px);
    left: 16px;
    transform: none;
    border-radius: 999px;
    padding: 10px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  /* DARK theme nav-pill: explicit spec compliance + transform reset */
  [data-theme="dark"] .nav-pill {
    width: calc(100% - 32px);
    left: 16px;
    transform: none;
    border-radius: 999px;
    padding: 10px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .nav-links .btn-primary { padding: 10px 14px 10px 18px; font-size: 11px; letter-spacing: 0.06em; }
  .nav-logo-text { font-size: 16px; }
  /* Hide hamburger AND theme toggle on mobile (only logo + GET STARTED show) */
  .nav-hamburger,
  .theme-toggle { display: none !important; }

  /* LIGHT theme override: restore hamburger + theme toggle on mobile.
     Order on the right: GET STARTED → theme toggle → hamburger */
  [data-theme="light"] .nav-hamburger,
  :root:not([data-theme="dark"]) .nav-hamburger,
  [data-theme="light"] .theme-toggle,
  :root:not([data-theme="dark"]) .theme-toggle {
    display: inline-flex !important;
    width: 36px;
    height: 36px;
  }
  [data-theme="light"] .nav-hamburger svg,
  :root:not([data-theme="dark"]) .nav-hamburger svg,
  [data-theme="light"] .theme-toggle svg,
  :root:not([data-theme="dark"]) .theme-toggle svg {
    width: 18px;
    height: 18px;
  }

  /* DARK theme override: restore hamburger + theme toggle on mobile.
     Order on the right: GET STARTED → theme toggle → hamburger */
  [data-theme="dark"] .nav-hamburger,
  [data-theme="dark"] .theme-toggle {
    display: inline-flex !important;
    width: 36px;
    height: 36px;
  }
  [data-theme="dark"] .nav-hamburger svg,
  [data-theme="dark"] .theme-toggle svg {
    width: 18px;
    height: 18px;
  }

  /* ━━━ HERO: shared mobile resets (theme-specific overrides below) ━━━ */
  .hero {
    position: relative;
    min-height: 100dvh;
    height: auto;
    overflow: hidden;          /* clips the sculpture's right: -10% overflow */
    padding: 0;
    z-index: 0;
  }
  .hero-text {
    position: static;
    width: 100%;
    max-width: 100%;
    gap: 0;
  }
  /* Flatten the double-bezel trust card on mobile (just one inner card) */
  .trust-card-outer {
    padding: 0;
    background: none;
    border: none;
    border-radius: 0;
  }
  /* Trust card: in-flow below text, never overlapping sculpture or headline */
  .trust-card-wrap {
    position: relative;
    bottom: auto;
    right: auto;
    left: auto;
    top: auto;
    width: 100%;
    max-width: 100%;
    margin-top: 16px;
  }
  /* Eyebrow consistent across themes on mobile */
  .hero-text .eyebrow { margin-bottom: 12px; }

  /* ━━━ SCULPTURE on mobile (shared positioning, theme-specific opacity/blend) ━━━
     Cropped to upper portion (disc + arm + head) — overflows right edge by 10%
     so the figure feels dramatic but doesn't dominate the layout. */
  .hero-sculpture {
    position: absolute !important;
    top: 0 !important;
    right: -10%;
    left: auto !important;
    width: 85% !important;
    height: 55% !important;
    background-size: cover;
    background-position: top center;
    mask-image: none;
    -webkit-mask-image: none;
    filter: none;
    transform: none !important; /* neutralize parallax on mobile */
  }

  /* ━━━━━━━━━━━━━━ LIGHT THEME — FILM POSTER ━━━━━━━━━━━━━━
     Mirrors the dark version's mobile structure exactly, with the dark
     palette swapped for cream/maroon-text/gold-CTA equivalents:
       #1A0006 → #F5EDD8                    (page bg)
       #F0E8D4 → #1A1815                    (text primary)
       rgba(240,232,212,0.55) → rgba(26,24,21,0.55)   (text muted)
       rgba(240,232,212,0.07) → rgba(26,24,21,0.05)   (trust card bg)
       rgba(240,232,212,0.15) → rgba(26,24,21,0.12)   (trust card border)
       #d7dde4 → #C9A96E                    (CTA button)
       mix-blend-mode: screen → mix-blend-mode: multiply  (sculpture blend) */

  /* HERO: same flex-column / justify-end / 100dvh as dark */
  [data-theme="light"] .hero,
  :root:not([data-theme="dark"]) .hero {
    position: relative;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    background: #F5EDD8;
  }

  /* GRADIENT OVERLAY: stronger than dark's because multiply blend makes the
     light sculpture much more prominent than dark's screen blend. Solid cream
     reached by 48% (was 62%) so the headline area sits on a clean background. */
  [data-theme="light"] .hero::after,
  :root:not([data-theme="dark"]) .hero::after {
    content: '' !important;
    display: block !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    /* Override desktop's height: 240px which was constraining the gradient
       to a 240px band at the top of the hero on mobile. */
    height: auto !important;
    width: auto !important;
    background: linear-gradient(
      to bottom,
      rgba(245, 237, 216, 0) 0%,
      rgba(245, 237, 216, 0) 55%,
      rgba(245, 237, 216, 0.08) 62%,
      rgba(245, 237, 216, 0.25) 68%,
      rgba(245, 237, 216, 0.50) 73%,
      rgba(245, 237, 216, 0.75) 78%,
      rgba(245, 237, 216, 0.92) 83%,
      rgba(245, 237, 216, 1.0) 88%
    ) !important;
    z-index: 1 !important;
    pointer-events: none !important;
  }

  /* SCULPTURE: top-right anchored. Use fixed vh height (not % of hero) so
     it doesn't scale with hero growth caused by trust card content. */
  [data-theme="light"] .hero-sculpture,
  :root:not([data-theme="dark"]) .hero-sculpture {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    left: auto !important;
    width: 100% !important;
    height: 60% !important;
    z-index: 0;
    background-size: cover;
    background-position: center 18%;
    background-blend-mode: normal;
    mix-blend-mode: multiply;
    opacity: 0.45;
    /* Self-masking gradient: sculpture solid through ~42vh, then fades to
       transparent by ~56vh. The mask must complete *inside* the sculpture
       container (60vh tall) — otherwise the container's bottom edge clips
       the image into a hard horizontal line. The 42→56vh fade band overlaps
       with the overlay gradient's 55%→88% cream fade so the transition
       reads as one continuous blend. */
    -webkit-mask-image: linear-gradient(to bottom,
      black 0,
      black 42vh,
      rgba(0,0,0,0.5) 50vh,
      transparent 56vh);
    mask-image: linear-gradient(to bottom,
      black 0,
      black 42vh,
      rgba(0,0,0,0.5) 50vh,
      transparent 56vh);
    filter: none;
    transform: none !important;
  }

  /* TEXT CONTENT: bottom-anchored, no margin-top, no background — sits on
     the gradient at z-index 3 (sculpture: 0, gradient: 1, text: 3) */
  [data-theme="light"] .hero-inner,
  :root:not([data-theme="dark"]) .hero-inner {
    position: relative;
    z-index: 3;
    margin: 0;
    max-width: 100%;
    height: auto;
    padding: 0 24px 16px;
    background: transparent;
    display: flex;
    flex-direction: column;
  }
  [data-theme="light"] .hero-text h1,
  :root:not([data-theme="dark"]) .hero-text h1 {
    font-size: 52px;
    color: #1A1815;
    line-height: 1.0;
    margin-bottom: 12px;
  }
  [data-theme="light"] .hero-subhead,
  :root:not([data-theme="dark"]) .hero-subhead {
    font-size: 15px;
    color: #1A1815;
    opacity: 0.8;
    margin-bottom: 8px;
  }
  [data-theme="light"] .hero-body,
  :root:not([data-theme="dark"]) .hero-body {
    font-size: 14px;
    color: rgba(26, 24, 21, 0.55);
    opacity: 1;
    max-width: 100%;
    margin-bottom: 20px;
  }

  /* TRUST CARD: in-flow below body, z-index 3, with cream-tone background */
  [data-theme="light"] .trust-card,
  :root:not([data-theme="dark"]) .trust-card {
    position: relative;
    z-index: 3;
    width: 100%;
    margin-top: 16px;
    background: rgba(26, 24, 21, 0.05);
    border: 0.5px solid rgba(26, 24, 21, 0.12);
    border-radius: 12px;
    padding: 16px;
    opacity: 1;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  [data-theme="light"] .trust-card .btn-primary,
  :root:not([data-theme="dark"]) .trust-card .btn-primary {
    width: 100%;
    background: #C9A96E;
    color: #1A1815;
    border-radius: 999px;
    padding: 14px;
    font-size: 13px;
    margin-top: 14px;
    justify-content: center;
  }
  [data-theme="light"] .trust-card .btn-primary .arrow,
  :root:not([data-theme="dark"]) .trust-card .btn-primary .arrow {
    background: rgba(26, 24, 21, 0.18);
  }
  [data-theme="light"] .trust-card .btn-primary svg,
  :root:not([data-theme="dark"]) .trust-card .btn-primary svg {
    stroke: #1A1815;
  }

  /* ━━━━━━━━━━━━━━ DARK THEME — FILM POSTER ━━━━━━━━━━━━━━
     Sculpture floats top-right; a strengthened multi-stop maroon gradient
     fades in early to fully protect text legibility; content absolutely
     positioned at the bottom of the hero on a fully-dark backdrop. */
  [data-theme="dark"] .hero {
    display: block;
    background: #1A0006;
  }
  /* FIX 4 — strengthened gradient: fade in slightly earlier so the headline
     area reads on fully-dark background while the top stays cinematic. */
  [data-theme="dark"] .hero::after {
    content: '';
    position: absolute;
    inset: 0;
    height: 100%;
    background: linear-gradient(
      to bottom,
      rgba(26, 0, 6, 0) 0%,
      rgba(26, 0, 6, 0) 48%,
      rgba(26, 0, 6, 0.05) 55%,
      rgba(26, 0, 6, 0.20) 61%,
      rgba(26, 0, 6, 0.45) 67%,
      rgba(26, 0, 6, 0.70) 72%,
      rgba(26, 0, 6, 0.88) 77%,
      rgba(26, 0, 6, 0.97) 81%,
      rgba(26, 0, 6, 1.0) 85%
    );
    z-index: 1;
    pointer-events: none;
  }
  /* FIX 1 — sculpture overrides for dark mobile.
     Override the shared mobile sculpture rule (right: -10%, width: 85%, height: 55%)
     with the dark-specific spec: full width, top-right anchored, height 60%, with
     the figure shifted up slightly via background-position: center 15%. The
     desktop radial mask cascades through (NOT removed per spec). */
  [data-theme="dark"] .hero-sculpture {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    left: auto !important;
    width: 100% !important;
    height: 60% !important;
    background-size: cover;
    background-position: center 15%;
    background-blend-mode: normal;
    mix-blend-mode: screen;
    opacity: 0.6;
    /* mask-image kept from desktop rule — not overridden here */
  }
  [data-theme="dark"] .hero-inner {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0;
    max-width: 100%;
    height: auto;
    padding: 0 24px 16px;
    z-index: 3;
    display: flex;
    flex-direction: column;
  }
  [data-theme="dark"] .hero-text h1 {
    font-size: 52px;
    color: #F0E8D4;
    line-height: 1.0;
    margin-bottom: 12px;
  }
  [data-theme="dark"] .hero-subhead {
    font-size: 16px;
    color: #F0E8D4;
    opacity: 0.8;
    margin-bottom: 8px;
  }
  [data-theme="dark"] .hero-body {
    font-size: 14px;
    color: rgba(240, 232, 212, 0.55);
    opacity: 1;
    max-width: 100%;
    margin-bottom: 20px;
  }
  [data-theme="dark"] .trust-card {
    background: rgba(240, 232, 212, 0.07);
    border: 0.5px solid rgba(240, 232, 212, 0.15);
    border-radius: 12px;
    padding: 16px;
    opacity: 1;
    box-shadow: none;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }
  [data-theme="dark"] .trust-card .btn-primary {
    width: 100%;
    background: #d7dde4;
    color: #1A0006;
    padding: 14px;
    font-size: 13px;
    justify-content: center;
  }
  [data-theme="dark"] .trust-card .btn-primary .arrow {
    background: rgba(26, 0, 6, 0.15);
  }
  [data-theme="dark"] .trust-card .btn-primary svg {
    stroke: #1A0006;
  }

  /* Treatment cards: 3 → 1 col stack */
  .bento { grid-template-columns: 1fr; gap: 16px; }
  .card-image-area { height: 220px; }

  /* Section headlines drop a size on mobile */
  .section-header h2 { font-size: clamp(40px, 9vw, 56px); }

  /* How It Works wrapper + steps grid: 60px top/bottom; gap 24px between steps */
  .how-section { padding: 60px var(--section-px); }
  .steps-grid { grid-template-columns: 1fr; gap: 24px; }

  /* Buffett quote: smaller padding + smaller quote */
  .buffett-section { padding: 60px var(--section-px); }
  .buffett-quote { font-size: 22px; }

  /* Why Investor Health: stack image above content */
  .why { padding: 64px var(--section-px); gap: 32px; }
  .why-grid { grid-template-columns: 1fr; gap: 32px; }
  .why-image { width: 100%; height: 320px; min-height: 320px !important; }
  .why-content h2 { font-size: 32px; }
  .why-bullet { font-size: 14px; }

  /* Support: 3 → 1 col */
  .support { padding: 60px var(--section-px); gap: 32px; }
  .support-cards { grid-template-columns: 1fr; gap: 16px; }
  .support-card { padding: 24px; }

  /* FAQ */
  .faq { padding: 60px var(--section-px); }
  .faq-intro { margin-bottom: 32px; }
  .faq-intro h2 { font-size: clamp(32px, 8vw, 44px); }
  .faq-category { margin-bottom: 0; }
  .faq-question { font-size: 15px; }

  /* Closing CTA */
  .closing-cta { padding: 60px var(--section-px); gap: 24px; }
  .closing-cta h2 { font-size: clamp(40px, 10vw, 64px); }
  .closing-cta p { font-size: 15px; }
  .closing-cta-actions { flex-direction: column; width: 100%; }
  .closing-cta-actions .btn { justify-content: center; width: 100%; }

  /* Page header (legal/contact pages) */
  .page-header { padding-top: 120px; padding-bottom: 28px; }
  .page-header h1 { font-size: clamp(44px, 10vw, 64px); }

  /* Legal body */
  .legal-body { padding: 32px var(--section-px) 64px; gap: 28px; }
  .legal-body h2 { font-size: 24px; }
  .legal-body p, .legal-body ul li { font-size: 14px; line-height: 1.7; }

  /* Pharmacy list (Terms of Use) */
  .pharmacy-list .pharmacy-name { font-size: 14px; }
  .pharmacy-list .pharmacy-meta { font-size: 13px; word-break: break-word; }

  /* Contact form */
  .contact-section { padding: 32px var(--section-px) 80px; }
  .contact-form .row { grid-template-columns: 1fr; gap: 16px; }
  .contact-form .submit-row { flex-direction: column; align-items: stretch; gap: 16px; }
  .contact-form .submit-row p { max-width: 100%; }
  .contact-form .btn-primary { width: 100%; justify-content: center; }
  .field input, .field textarea, .field select { font-size: 16px; /* prevents iOS zoom on focus */ }

  /* Footer */
  .footer { padding: 40px 24px 32px; }
  .footer-top { flex-direction: column; gap: 24px; }
  .footer-disclosures { padding-top: 24px; gap: 20px; margin-bottom: 32px; }
  .footer-disclosure p { font-size: 11px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 20px; }
  .footer-links { gap: 16px 24px; row-gap: 12px; }
  .footer-links a { font-size: 11px; }
  .footer-copy { font-size: 11px; }

  /* ━━━ MOBILE SECTION DIVIDERS ━━━
     Thin top borders create visual breaks between major sections on phones.
     Theme-aware: cream-tinted on dark, near-black on light. Treatments uses
     the explicit .section-divider-mobile element instead. .why is skipped
     intentionally — its top is anchored by the full-bleed image. */
  [data-theme="light"] .buffett-section,
  [data-theme="light"] .how-section,
  [data-theme="light"] .support,
  [data-theme="light"] .faq,
  [data-theme="light"] .closing-cta,
  :root:not([data-theme="dark"]) .buffett-section,
  :root:not([data-theme="dark"]) .how-section,
  :root:not([data-theme="dark"]) .support,
  :root:not([data-theme="dark"]) .faq,
  :root:not([data-theme="dark"]) .closing-cta {
    border-top: 0.5px solid rgba(26, 24, 21, 0.08);
  }
  [data-theme="dark"] .buffett-section,
  [data-theme="dark"] .how-section,
  [data-theme="dark"] .support,
  [data-theme="dark"] .faq,
  [data-theme="dark"] .closing-cta {
    border-top: 0.5px solid rgba(240, 232, 212, 0.08);
  }
}

/* ━━━ SMALL PHONES (480px and below — extra-tight tweaks) ━━━ */
@media (max-width: 480px) {
  :root { --section-px: 20px; }
  .nav-pill { padding: 8px 10px 8px 16px; }
  .nav-logo-text { font-size: 15px; }
  .nav-links .btn-primary {
    padding: 8px 12px 8px 14px;
    font-size: 10px;
  }
  .nav-links .btn-primary .arrow { width: 18px; height: 18px; }
  .hero-text h1 { font-size: clamp(44px, 12vw, 56px); }
  .card-image-area { height: 200px; }
  .card-image-area .card-title { font-size: 22px; }
  .why-image { height: 280px; min-height: 280px !important; }
  .step-number { font-size: 32px; }
  .buffett-quote { font-size: 19px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}

/* ━━━━━━━━━━━━━━ MOBILE SCROLL ENTRY ANIMATIONS ━━━━━━━━━━━━━━
   Kinetic reveal-on-scroll for elements below the hero. Mobile-only;
   desktop animations untouched. Uses cubic-bezier(0.22, 1, 0.36, 1) —
   strong initial acceleration that decelerates smoothly. */
@media (max-width: 768px) {
  /* Base reveal: fade + rise */
  .reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 700ms cubic-bezier(0.22, 1, 0.36, 1),
                transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform, opacity;
  }
  .reveal.is-in {
    opacity: 1;
    transform: translateY(0);
  }

  /* Treatment + image cards: larger rise */
  .reveal--card {
    transform: translateY(50px);
  }

  /* Section headlines: longer duration, slightly less travel */
  .reveal--headline {
    transform: translateY(32px);
    transition-duration: 800ms;
  }

  /* How It Works step numbers: rise + scale-up */
  .reveal--step-num {
    transform: translateY(24px) scale(0.85);
    transition-duration: 600ms;
  }
  .reveal--step-num.is-in {
    transform: translateY(0) scale(1);
  }

  /* Support cards */
  .reveal--support {
    transform: translateY(40px);
  }

  /* Buffett quote section variants */
  .reveal--quote-eye   { transform: translateY(20px); }
  .reveal--quote-text  { transform: translateY(30px); }
  .reveal--quote-body  { transform: translateY(20px); }
  .reveal--quote-attr  { transform: translateY(16px); }
}

/* ━━━━━━━━━━━━━━ DESKTOP SCROLL ENTRY ANIMATIONS ━━━━━━━━━━━━━━
   Lighter, more refined version of the mobile reveal — shorter travel,
   slightly longer duration. Adds a premium kinetic feel without being
   showy. */
@media (min-width: 769px) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 900ms cubic-bezier(0.22, 1, 0.36, 1),
                transform 900ms cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform, opacity;
  }
  .reveal.is-in {
    opacity: 1;
    transform: translateY(0);
  }
  .reveal--card {
    transform: translateY(32px);
  }
  .reveal--headline {
    transform: translateY(20px);
    transition-duration: 1000ms;
  }
  .reveal--step-num {
    transform: translateY(16px) scale(0.9);
    transition-duration: 800ms;
  }
  .reveal--step-num.is-in {
    transform: translateY(0) scale(1);
  }
  .reveal--support {
    transform: translateY(28px);
  }
  .reveal--quote-eye   { transform: translateY(14px); }
  .reveal--quote-text  { transform: translateY(22px); }
  .reveal--quote-body  { transform: translateY(14px); }
  .reveal--quote-attr  { transform: translateY(10px); }
}

/* Reduced motion: instant reveal, no transform/transition */
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.is-in {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ━━━━━━━━━━━━━━ /start TREATMENT SELECTION ━━━━━━━━━━━━━━
   Selection page at /start offers three treatment cards. Each card links
   out to a hosted OpenLoop funnel on intake.investorhealth.com — the site
   no longer embeds the funnel SDK directly. */
.start-page {
  min-height: 100dvh;
  padding: 140px 24px 120px;
  max-width: 1080px;
  margin: 0 auto;
}
.start-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 64px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
}
.start-header h1 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.0;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin: 0;
}
.start-header p {
  font-size: 17px;
  line-height: 1.55;
  color: var(--text-primary);
  opacity: 0.75;
  margin: 0;
  max-width: 560px;
}
.treatment-select {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.treatment-card {
  display: flex;
  flex-direction: column;
  padding: 6px;
  border-radius: var(--r-card-outer);
  background: var(--card-outer-bg);
  border: 1px solid var(--card-outer-border);
  text-decoration: none;
  color: inherit;
  transition: transform 500ms cubic-bezier(0.22, 1, 0.36, 1),
              border-color 500ms cubic-bezier(0.22, 1, 0.36, 1);
}
.treatment-card-inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 36px 28px 32px;
  border-radius: var(--r-step);
  background: var(--card-inner-bg);
  border: 1px solid var(--card-inner-border);
  box-shadow: var(--card-inset);
  flex: 1;
}
.treatment-card-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin: 0;
}
.treatment-card-desc {
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-primary);
  opacity: 0.7;
  margin: 0;
  flex: 1;
}
/* Treatment-card CTA pill. Fill is a fixed dark maroon on BOTH themes so
   the label reads consistently; text + arrow icon are cream for contrast. */
.treatment-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  padding: 12px 18px;
  background: #1A0006;
  color: #F5EDD8;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: transform 350ms cubic-bezier(0.22, 1, 0.36, 1);
  align-self: flex-start;
}
.treatment-card-cta .arrow {
  width: 20px; height: 20px;
  display: grid; place-items: center;
  background: rgba(245, 237, 216, 0.18);
  border-radius: 999px;
  transition: transform 350ms cubic-bezier(0.22, 1, 0.36, 1);
}
@media (hover: hover) and (min-width: 769px) {
  .treatment-card:hover {
    transform: translateY(-4px);
    border-color: rgba(201, 169, 110, 0.45);
  }
  .treatment-card:hover .treatment-card-cta .arrow {
    transform: translate(2px, -1px) scale(1.05);
  }
}
@media (max-width: 900px) {
  .treatment-select { grid-template-columns: 1fr; gap: 14px; }
  .start-page { padding: 110px 20px 80px; }
  .start-header { margin-bottom: 40px; }
}

