/* =============================================
   STEDIMIND — styles.css (responsive overhaul)
   Tokens-first fluid scale, single set of breakpoints,
   container max-width = 1200, viewport-aware decorations.
   ============================================= */

/* ---- RESET & BASE ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  color: #1e293b;
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;             /* belt-and-suspenders: never horizontal scroll */
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; }

/* =============================================
   DESIGN TOKENS — colors + fluid scale
   --fs-* use linear clamp() so type tracks viewport
   smoothly between 360px and ~1600px (then plateaus).
   ============================================= */
:root {
  /* Brand colors (existing palette preserved) */
  --purple:    #8A5CF6;
  --blue:      #3A86FF;
  --grad:      linear-gradient(135deg, #8A5CF6 0%, #3A86FF 100%);
  --grad-h:    linear-gradient(135deg, #7B4EE8 0%, #2575F0 100%);
  --grad-card: linear-gradient(159.898deg, #8A5CF6 8.23%, #3A86FF 82.73%);
  --grad-cta:  linear-gradient(175.301deg, #8A5CF6 8.23%, #3A86FF 82.73%);
  --grad-nav:  linear-gradient(173.742deg, #8A5CF6 8.23%, #3A86FF 82.73%);
  --dark-text: #0B1F3A;
  --mid-text:  #64748b;
  --light-text:#94a3b8;
  --hero-bg:   #F4F6FF;
  --neuro-bg:  #F4F6FB;
  --footer-bg: #0F172A;
  --quote-bg:  #1E293B;
  --radius:    16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --pill:      999px;

  /* ---- FLUID TYPE SCALE ----
     Linear ramp from ~360px viewport to ~1600px.
     Above 1600 the size is capped (intentional — no runaway). */
  --fs-display: clamp(40px, 2.8vw + 18px, 72px);   /* hero h1 */
  --fs-h2:      clamp(28px, 1.45vw + 18px, 44px);  /* every section heading */
  --fs-h3:      clamp(19px, 0.35vw + 17px, 22px);  /* card/step titles */
  --fs-subtitle:clamp(18px, 0.8vw + 14px, 26px);   /* hero subtitle */
  --fs-lead:    clamp(16px, 0.35vw + 14px, 18px);  /* section lead, about body */
  --fs-body:    clamp(15px, 0.15vw + 14px, 16px);  /* card body, paragraphs */
  --fs-small:   clamp(13px, 0.10vw + 12px, 14px);
  --fs-xsmall:  clamp(11px, 0.05vw + 10px, 12px);
  --fs-quote:   clamp(18px, 0.6vw + 14px, 22px);   /* dark quote blocks */
  --fs-banner:  clamp(22px, 0.95vw + 18px, 28px);  /* neuro banner */
  --fs-cta-h:   clamp(34px, 2.4vw + 18px, 56px);   /* CTA title */

  /* ---- FLUID SPACING ---- */
  --nav-h:        clamp(64px, 6vh, 80px);
  --section-py:   clamp(64px, 4vw + 32px, 112px);  /* vertical padding for sections */
  --container-px: clamp(20px, 3vw + 8px, 64px);    /* horizontal padding inside container */
  --gap-grid:     clamp(20px, 1.5vw + 12px, 32px);
}

/* ---- CONTAINER ---- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--container-px);
}

/* ---- TYPOGRAPHY: shared section heading / lead ---- */
.section-h2 {
  font-family: 'Inter', sans-serif;
  font-size: var(--fs-h2);
  font-weight: 700;
  line-height: 1.1;
  color: #0b1f3a;
  text-align: center;
  margin: 0 0 24px;
  letter-spacing: -0.01em;
}
.section-h2-light { color: #fff; }

.section-lead {
  font-family: 'Inter', sans-serif;
  font-size: var(--fs-lead);
  font-weight: 400;
  line-height: 1.65;
  color: #0b1f3a;
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}
.section-lead-light { color: rgba(255,255,255,0.88); }

/* Legacy helpers kept (used by deco shapes / older sections) */
.section-heading {
  font-size: var(--fs-h2);
  font-weight: 700;
  line-height: 1.15;
  color: var(--dark-text);
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}
.section-heading.center { text-align: center; }
.section-heading.light  { color: #fff; }
.section-sub {
  font-size: var(--fs-lead);
  color: var(--mid-text);
  line-height: 1.65;
  max-width: 640px;
  margin-bottom: 48px;
}
.section-sub.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-sub.light  { color: rgba(255,255,255,0.82); }

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: var(--fs-body);
  font-weight: 600;
  border: none;
  border-radius: var(--pill);
  cursor: pointer;
  padding: 12px 28px;
  min-height: 44px;                  /* touch target floor */
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
  white-space: nowrap;
  text-decoration: none;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 4px 18px rgba(138,92,246,0.38);
}
.btn-primary:hover { box-shadow: 0 8px 28px rgba(138,92,246,0.5); }

.btn-white {
  background: #fff;
  color: var(--purple);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.btn-white:hover { background: rgba(255,255,255,0.94); box-shadow: 0 8px 32px rgba(0,0,0,0.22); }

.btn-lg { padding: 14px 36px; font-size: 16px; }
.btn-sm { padding: 10px 22px; font-size: 14px; }

/* =============================================
   DECORATIVE SHAPES (reused across sections)
   ============================================= */
.deco { position: absolute; pointer-events: none; user-select: none; }

.deco-blob { border-radius: 50%; filter: blur(40px); opacity: 0.55; }
.deco-blob-left  {
  width: 320px; height: 320px;
  background: radial-gradient(circle at 50% 50%, rgba(138,92,246,0.45), transparent 70%);
  top: 8%; left: -80px;
}
.deco-blob-right {
  width: 280px; height: 280px;
  background: radial-gradient(circle at 50% 50%, rgba(58,134,255,0.40), transparent 70%);
  bottom: 0; right: -60px;
}

.deco-dots {
  background-image: radial-gradient(circle, rgba(138,92,246,0.32) 1.4px, transparent 1.6px);
  background-size: 14px 14px;
}

/* CTA decorative shapes — fluid sizes */
.cta-deco {
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.35;
}
.cta-deco-1 {
  width: clamp(280px, 28vw, 480px);
  aspect-ratio: 1;
  top: -10vw; left: -8vw;
  background: radial-gradient(circle, rgba(255,255,255,0.55), transparent 70%);
}
.cta-deco-2 {
  width: clamp(240px, 25vw, 420px);
  aspect-ratio: 1;
  bottom: -10vw; right: -6vw;
  background: radial-gradient(circle, rgba(255,255,255,0.50), transparent 70%);
}

/* =============================================
   PREVIEW TOGGLE
   ============================================= */
#preview-toggle {
  position: fixed;
  bottom: 18px;
  right: 18px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(255,255,255,0.96);
  border: 1px solid rgba(138,92,246,0.18);
  border-radius: var(--pill);
  padding: 5px 8px 5px 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.10);
  backdrop-filter: blur(10px);
}
.preview-label { font-size: 11px; font-weight: 600; color: var(--mid-text); margin-right: 2px; }
.preview-btn {
  display: flex; align-items: center; gap: 5px;
  padding: 5px 11px;
  border-radius: var(--pill);
  border: none; background: transparent;
  font-size: 12px; font-weight: 600; color: var(--mid-text);
  cursor: pointer; transition: all 0.2s;
}
.preview-btn.active { background: var(--grad); color: #fff; }
.preview-btn:not(.active):hover { background: var(--hero-bg); color: var(--purple); }

#mobile-frame { width: 100%; }

/* MOBILE PREVIEW (iframe-based) — the page renders inside a 390px-wide iframe,
   which has its OWN viewport. Every @media (max-width:…) rule fires exactly as
   on a real phone — a faithful preview, no token hacks. */
body.mobile-preview #mobile-frame {
  display: flex; justify-content: center; align-items: flex-start;
  background: #ccc;
  padding: 56px 20px 40px;
  min-height: 100vh;
}
#mobile-preview-iframe {
  width: 390px;
  height: 844px;            /* iPhone 12/13/14-ish portrait */
  max-width: 100%;
  border: 8px solid #111;
  border-radius: 40px;
  box-shadow: 0 32px 80px rgba(0,0,0,0.45);
  background: #fff;
  display: block;
}

/* =============================================
   NAVIGATION
   ============================================= */
.navbar {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.1);
  transition: box-shadow 0.25s;
}
.navbar.scrolled { box-shadow: 0 4px 24px rgba(0,0,0,0.08); }

.nav-inner {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 var(--container-px);
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  height: clamp(32px, 3vw, 41px);
  width: clamp(112px, 10vw, 142px);
}
.nav-logo img { width: 100%; height: 100%; display: block; }

.nav-right { display: flex; align-items: center; gap: clamp(16px, 2vw, 32px); }
.nav-links { display: flex; gap: clamp(16px, 2vw, 32px); align-items: center; }
.nav-links a {
  font-family: 'Inter', sans-serif;
  font-size: 16px; font-weight: 400; line-height: 24px;
  color: #0b1f3a; transition: color 0.2s;
}
.nav-links a:hover { color: var(--purple); }

.nav-cta-btn {
  display: inline-flex;
  align-items: center; justify-content: center;
  height: 40px; padding: 8px 22px;
  border-radius: 10px;
  background: var(--grad-nav);
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 14px; font-weight: 500; line-height: 20px;
  text-decoration: none; white-space: nowrap;
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
  min-height: 44px;
}
.nav-cta-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(138,92,246,0.35); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none; border: none; cursor: pointer;
  padding: 10px;
  margin-left: auto;
  min-height: 44px; min-width: 44px;
  align-items: center; justify-content: center;
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--dark-text); border-radius: 2px;
  transition: all 0.25s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 2px;
  padding: 12px 24px 20px;
  border-top: 1px solid rgba(0,0,0,0.05);
  background: #fff;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-size: 16px; font-weight: 500;
  color: var(--dark-text);
  padding: 14px 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  min-height: 44px;
  display: flex; align-items: center;
}
.mobile-menu .nav-cta-btn { margin-top: 14px; justify-content: center; width: 100%; height: 48px; }

/* =============================================
   1. HERO — peek-through at every viewport
   Strategy: min-height = viewport height minus nav minus a
   guaranteed peek band of clamp(120px, 14vh, 180px).
   No aspect-ratio (would force runaway height at ultrawide).
   ============================================= */
.hero {
  position: relative;
  width: 100%;
  /* Shorter hero — trim the leftover white space below the content while
     still letting the next section peek through. Larger peek subtraction
     pulls the bottom edge up closer to the centered content. */
  min-height: max(
    calc(100svh - var(--nav-h) - clamp(200px, 26vh, 360px)),
    400px
  );
  /* Cap height too — prevent tall ultrawide viewports from making hero huge */
  max-height: calc(100svh - var(--nav-h));
  background: linear-gradient(153.616deg, rgb(248,250,252) 0%, rgba(239,246,255,0.3) 50%, rgba(250,245,255,0.2) 100%);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(40px, 6vh, 64px) var(--container-px);
}

/* Decorative bgs anchored to section corners with viewport-relative sizes */
.hero-bg { position: absolute; pointer-events: none; user-select: none; }

/* Big organic blob — desktop: original position; mobile override below */
.hero-blob {
  left: clamp(-160px, -8vw, -60px);
  top: 8%;
  width: clamp(420px, 45vw, 920px);
  height: auto;
  aspect-ratio: 946 / 940;
  opacity: 0.05;
}

/* Diamond / concentric squares — top-right */
.hero-diamond {
  right: clamp(20px, 5vw, 90px);
  top: clamp(20px, 5vh, 64px);
  width: clamp(140px, 22vw, 360px);
  aspect-ratio: 1;
  opacity: 0.20;
}
.hero-diamond img { position: absolute; display: block; }
.hero-diamond img:nth-child(1) { inset: 10%; width: 80%; height: 80%; }
.hero-diamond img:nth-child(2) { inset: 20%; width: 60%; height: 60%; }

/* Three wave lines behind subtitle */
.hero-waves {
  left: 22%;
  top: 38%;
  width: clamp(140px, 14vw, 260px);
  aspect-ratio: 1;
  opacity: 0.10;
  display: none;          /* visually subtle — hide on tight viewports */
}
@media (min-width: 900px) { .hero-waves { display: block; } }
.hero-waves img { position: absolute; display: block; left: 25%; width: 50%; }
.hero-waves img:nth-child(1) { top: 42.5%; height: 15%; }
.hero-waves img:nth-child(2) { top: 52.5%; height: 15%; }
.hero-waves img:nth-child(3) { top: 62.5%; height: 15%; }

/* Dot grid — bottom-right corner, nudged up so its top-left corner just
   meets the centered cred subtext under the hero content */
.hero-dotgrid {
  right: clamp(24px, 6vw, 110px);
  bottom: clamp(40px, 9vh, 120px);
  left: auto;
  top: auto;
  width: clamp(100px, 10vw, 160px);
  aspect-ratio: 159.84 / 93.91;
  opacity: 0.30;
}

/* ---- HERO DECORATIONS ON MOBILE ----
   On narrow screens the top-right diamond collides with the heading, so hide it.
   KEEP the three-stacked-blob graphic (it's a faint bottom-left background
   element the user wants visible on mobile) and the dot grid. */
@media (max-width: 600px) {
  .hero-diamond { display: none; }
  /* Three-tiered blob: place it high on the left (mirrors desktop's top:8%
     upper-left placement) instead of pinned to the bottom. */
  .hero-blob {
    display: block;
    left: -34%;
    top: 9%;
    bottom: auto;
    width: clamp(360px, 92vw, 520px);
    opacity: 0.07;
  }
  .hero-dotgrid { opacity: 0.22; }
}
body.mobile-preview .hero-diamond { display: none; }
body.mobile-preview .hero-blob {
  display: block;
  left: -34%;
  top: 9%;
  bottom: auto;
  width: clamp(360px, 92vw, 520px);
  opacity: 0.07;
}
body.mobile-preview .hero-dotgrid { opacity: 0.22; }

/* ---- HERO CONTENT (centered) ---- */
.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: clamp(12px, 1.5vh, 20px);
  max-width: 880px;
}

.hero-heading {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: var(--fs-display);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #0b1f3a;
  margin: 0;
}

.hero-subtitle {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: var(--fs-subtitle);
  line-height: 1.2;
  color: #0b1f3a;
  margin: 0;
}

.hero-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 12px 32px;
  border-radius: 16px;
  background: var(--grad-cta);
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 17px; font-weight: 500; line-height: 28px;
  text-decoration: none;
  white-space: nowrap;
  margin-top: 8px;
  min-height: 48px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.hero-cta-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(138,92,246,0.35); }

.hero-cred {
  font-family: 'Inter', sans-serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(13px, 0.15vw + 12px, 14px);
  line-height: 20px;
  color: #62748e;
  margin: 8px 0 0;
  max-width: 720px;
}

/* =============================================
   2. COACHING — heading + 3 cards
   Grid is auto-fit so it collapses cleanly on tablet/mobile
   ============================================= */
.coaching-section {
  position: relative;
  padding: var(--section-py) 0;
  background: #fff;
}
.coaching-header {
  text-align: center;
  margin-bottom: clamp(32px, 4vw, 56px);
  max-width: 880px;
  margin-left: auto; margin-right: auto;
  padding: 0 var(--container-px);
}
.coaching-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap-grid);
  justify-content: center;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--container-px);
}
.coaching-cards-grid .figma-card { max-width: 384px; justify-self: center; }
@media (min-width: 720px) {
  .coaching-cards-grid { grid-template-columns: repeat(2, 1fr); max-width: 820px; }
}
@media (min-width: 980px) {
  .coaching-cards-grid { grid-template-columns: repeat(3, 1fr); max-width: 1216px; }
}

/* =============================================
   CARDS — MOBILE SWIPE CAROUSEL
   Below 720px the 3 coaching/support cards become a horizontal
   snap-scroll carousel (one full card at a time) with a dots
   indicator. Full card design is preserved. Desktop = grid (above).
   The .cards-dots element is injected by JS only when the carousel
   layout is active; it is hidden by default on larger screens.
   ============================================= */
.cards-dots { display: none; }

/* =============================================
   CARDS — MOBILE: OPTION B (COMPACT STACKED)
   Below 720px the coaching/support cards become full-width cards
   stacked vertically, each laid out HORIZONTALLY: icon at left,
   title + description beside it, features as small rounded pills,
   and a footer row (session label left + compact button right).
   Replaces the old Option A swipe carousel. Desktop (>=720px) keeps
   the static 3-up grid (rules above). The carousel JS is disabled on
   mobile via a matchMedia guard in main.js.
   ============================================= */
@media (max-width: 719px) {
  /* Single-column normal flow (no carousel / no transforms) */
  .coaching-cards-grid,
  .support-grid {
    display: flex;
    flex-direction: column;
    grid-template-columns: none;
    gap: 16px;
    overflow: visible;
    max-width: 100%;
    margin: 0;
    padding: 4px var(--container-px);
  }

  /* The carousel dots are not used in the stacked layout */
  .cards-dots { display: none !important; }

  /* Compact horizontal card: icon column + content column via grid */
  .coaching-cards-grid .figma-card,
  .support-grid .figma-card {
    width: 100%;
    max-width: 100%;
    min-height: 0;                  /* content defines height */
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    column-gap: 14px;
    row-gap: 0;
    align-items: start;
    padding: 20px;
    border-radius: 18px;
  }

  /* Icon: top-left, spans the title+desc rows */
  .coaching-cards-grid .figma-card .figma-card-icon-box,
  .support-grid .figma-card .figma-card-icon-box {
    grid-column: 1;
    grid-row: 1 / span 2;
    width: 48px; height: 48px;
    border-radius: 12px;
    margin: 0;
  }
  .coaching-cards-grid .figma-card .figma-card-icon-box svg,
  .support-grid .figma-card .figma-card-icon-box svg { width: 24px; height: 24px; }

  /* Title + description in the content column, beside the icon */
  .coaching-cards-grid .figma-card .figma-card-title,
  .support-grid .figma-card .figma-card-title {
    grid-column: 2; grid-row: 1;
    font-size: 17px;
    line-height: 1.25;
    margin: 0 0 4px;
  }
  .coaching-cards-grid .figma-card .figma-card-desc,
  .support-grid .figma-card .figma-card-desc {
    grid-column: 2; grid-row: 2;
    font-size: 13px;
    line-height: 1.45;
    margin: 0;
  }

  /* Features as rounded pills, full width below the icon+text row */
  .coaching-cards-grid .figma-card .figma-card-features,
  .support-grid .figma-card .figma-card-features {
    grid-column: 1 / -1; grid-row: 3;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
    margin: 14px 0 0;
  }
  .coaching-cards-grid .figma-card .figma-card-features li,
  .support-grid .figma-card .figma-card-features li {
    display: inline-flex;
    align-items: center;
    font-size: 12px;
    line-height: 1.2;
    color: #6d54c4;
    background: #f4f2fd;
    padding: 5px 10px;
    border-radius: 999px;
    gap: 0;
  }
  /* Pills don't use checkmarks */
  .coaching-cards-grid .figma-card .figma-card-features li .figma-card-check,
  .support-grid .figma-card .figma-card-features li .figma-card-check { display: none; }

  /* Footer: session label left + compact gradient button right */
  .coaching-cards-grid .figma-card .figma-card-footer,
  .support-grid .figma-card .figma-card-footer {
    grid-column: 1 / -1;
    margin-top: 16px;
    padding-top: 14px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }
  .coaching-cards-grid .figma-card .figma-card-btn,
  .support-grid .figma-card .figma-card-btn {
    flex: 0 0 auto;
    height: 42px;
    min-height: 42px;
    padding: 0 22px;
    font-size: 14px;
    border-radius: 12px;
  }

  /* ---- COMING SOON RIBBON — compact-card variant ----
     The full-size ribbon is conceptually a ~140px square anchored to the
     card's top-left corner. The compact card is much shorter, so the ribbon
     overlaps the icon/text. Shrink the whole ribbon to ~70% via transform
     (keeps the exact desktop artwork + gradient + lettering, just smaller)
     and nudge the card's icon + content down/right so they clear it. */
  .coaching-cards-grid .figma-card.is-coming-soon,
  .support-grid .figma-card.is-coming-soon,
  .coaching-cards-grid .figma-card:has(.coming-soon-ribbon),
  .support-grid .figma-card:has(.coming-soon-ribbon) {
    padding-top: 40px;
    padding-left: 40px;
  }
  .coaching-cards-grid .figma-card .coming-soon-ribbon,
  .support-grid .figma-card .coming-soon-ribbon {
    transform: scale(0.62);
    transform-origin: top left;
  }
}

/* =============================================
   FIGMA CARD COMPONENT — Coaching + Support
   ============================================= */
.figma-card {
  width: 100%;
  max-width: 100%;
  min-height: 460px;
  background: #fff;
  border: 1.111px solid rgba(0,0,0,0.05);
  border-radius: var(--radius-lg);
  filter: drop-shadow(0 20px 12.5px rgba(0,0,0,0.10)) drop-shadow(0 8px 5px rgba(0,0,0,0.10));
  padding: clamp(40px, 4vw, 60px) clamp(20px, 2vw, 32px) 32px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.figma-card-icon-box {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: var(--grad-card);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  margin-bottom: 14px;
}
.figma-card-icon-box svg { width: 28px; height: 28px; }

.figma-card-title {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: clamp(20px, 0.4vw + 18px, 24px);
  font-weight: 700;
  line-height: 1.3;
  color: #1e293b;
  margin: 0 0 12px;
}

.figma-card-desc {
  font-family: 'Inter', sans-serif;
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.6;
  color: #64748b;
  margin: 0 0 28px;
}

.figma-card-features {
  display: flex; flex-direction: column;
  gap: 12px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}
.figma-card-features li {
  display: flex; align-items: center; gap: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 14px; font-weight: 400; line-height: 20px;
  color: #64748b;
}
.figma-card-check { flex-shrink: 0; }

.figma-card-footer {
  margin-top: auto;
  padding-top: 25px;
  border-top: 1.111px solid rgba(0,0,0,0.05);
  display: flex; flex-direction: column;
  gap: 16px;
}
.figma-card-session {
  font-family: 'Inter', sans-serif;
  font-size: 12px; font-weight: 500; line-height: 16px;
  letter-spacing: 0.3px; text-transform: uppercase;
  color: #94a3b8;
  margin: 0;
}
.figma-card-btn {
  display: flex; align-items: center; justify-content: center;
  height: 48px;
  padding: 0 32px;
  border-radius: 16px;
  background: linear-gradient(176.836deg, #8A5CF6 8.23%, #3A86FF 82.73%);
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 16px; font-weight: 500; line-height: 24px;
  text-align: center;
  text-decoration: none;
  min-height: 48px;
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
}
.figma-card-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(138,92,246,0.32); }

/* =============================================
   COMING SOON RIBBON — pixel-exact preserved
   ============================================= */
.coming-soon-ribbon {
  position: absolute; inset: 0;
  pointer-events: none; z-index: 3;
  overflow: visible;
}
.cs-r-img { position: absolute; display: block; max-width: none; }
.cs-r-v0  { left: -14.016px;  top:  66.021px;  width:  15.014px;  height:  46.961px; }
.cs-r-v1  { left:  62.515px;  top: -10.016px;  width:  48.499px;  height:  11.038px; }
.cs-r-v2  { left: -14.016px;  top: -10.016px;  width: 112.512px;  height: 112.522px; }
.cs-r-v3  { left: -14.016px;  top: -10.016px;  width: 112.512px;  height: 112.522px; }
.cs-r-v4  { left: -14.016px;  top:  26.419px;  width:  76.109px;  height:  76.088px; }
.cs-r-g   { mix-blend-mode: overlay; left: -3.149px; top: 2.759px; width: 68.621px; height: 65.101px; }
.cs-r-v5  { left:  -3.763px;  top:  54.319px;  width:  13.248px;  height:  13.235px; }
.cs-r-v6  { left:   5.299px;  top:  51.713px;  width:   9.754px;  height:   9.760px; }
.cs-r-v7  { left:   9.907px;  top:  42.413px;  width:  14.938px;  height:  14.461px; }
.cs-r-v8  { left:  16.128px;  top:  36.434px;  width:  11.635px;  height:  11.600px; }
.cs-r-v9  { left:  21.696px;  top:  33.624px;  width:  11.942px;  height:  11.446px; }
.cs-r-v10 { left:  28.570px;  top:  26.828px;  width:  12.403px;  height:  14.563px; }
.cs-r-v11 { left:  33.408px;  top:  17.067px;  width:  13.555px;  height:  13.030px; }
.cs-r-v12 { left:  42.739px;  top:  14.359px;  width:   9.715px;  height:   9.709px; }
.cs-r-v13 { left:  48.307px;  top:   8.738px;  width:   9.715px;  height:   9.760px; }
.cs-r-v14 { left:  52.915px;  top:   2.453px;  width:  11.942px;  height:  11.446px; }
.cs-r-v15 { left: -14.016px;  top: -10.016px;  width: 112.512px;  height: 112.522px; }

/* =============================================
   3. TRANSFORMATION
   ============================================= */
.transformation-section {
  padding: var(--section-py) 0;
  background: #fff;
}
.transformation-section .section-h2 { margin-bottom: 16px; }
.transformation-section .section-lead { margin-bottom: clamp(32px, 4vw, 48px); }

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: var(--gap-grid);
  max-width: 1088px;
  margin: 0 auto clamp(40px, 5vw, 56px);
  padding: 0 var(--container-px);
}

.feature-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: clamp(18px, 1.5vw + 12px, 25px);
  background: linear-gradient(163.571deg, #F8F7FA 0%, #FAF9FB 25%, #FBFBFC 50%, #FDFDFE 75%, #FFFFFF 100%);
  border: 1.111px solid rgba(0,0,0,0.05);
  border-radius: 16px;
}
.feature-icon-box {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--grad-card);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  flex-shrink: 0;
}
.feature-icon-box svg { width: 20px; height: 20px; }
.feature-card span {
  font-family: 'Inter', sans-serif;
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.55;
  color: #1e293b;
}

/* Dark quote block */
.transform-quote {
  max-width: 896px;
  margin: 0 auto;
  margin-left: var(--container-px);
  margin-right: var(--container-px);
  border-radius: var(--radius-lg);
  background: linear-gradient(90deg, #1E293B 0%, #202C3E 11.11%, #232E41 22.22%, #253144 33.33%, #273346 44.44%, #293649 55.56%, #2C394C 66.67%, #2E3C4F 77.78%, #313E52 88.89%, #334155 100%);
  filter: drop-shadow(0 25px 25px rgba(0,0,0,0.25));
  padding: clamp(28px, 3vw + 16px, 56px);
  text-align: center;
}
@media (min-width: 1024px) {
  .transform-quote { margin-left: auto; margin-right: auto; }
}
.transform-quote p {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-style: italic;
  font-size: var(--fs-quote);
  line-height: 1.65;
  color: rgba(255,255,255,0.95);
  max-width: 785px;
  margin: 0 auto;
}

/* =============================================
   4. ABOUT — fluid layout (no canvas scaling)
   Wavy gradient SVG stretches to fill the section;
   decorations are absolutely positioned with viewport-aware sizes.
   ============================================= */
.about-frame {
  position: relative;
  width: 100%;
  /* ONE continuous diagonal gradient (purple corners -> blue middle ->
     purple corners), matching section-shape.svg's about_grad_45.
     The wavy top/bottom edges are created by absolutely-positioned white
     <img> overlays (.about-wave-top / .about-wave-bottom) using object-fit:cover
     so the wave amplitude scales proportionally at any viewport width — the
     same technique used by .dark-wave-bg / wave3.svg in the How It Works
     section. This avoids the mask-size:100% NNpx approach which kept the
     SVG height fixed while stretching it horizontally, making curves appear
     flat at wide viewports (≥1920px). */
  background: linear-gradient(
    45deg,
    #7B4AED 0%,
    #7B4AED 15%,
    #3A86FF 50%,
    #7B4AED 85%,
    #7B4AED 100%
  );
  overflow: hidden;
  padding: clamp(156px, 17vw, 252px) 0;
}

/* White wave overlays — object-fit:cover scales the SVG proportionally so
   wave amplitude stays consistent from 375px to 3840px wide. */
.about-wave-top,
.about-wave-bottom {
  position: absolute;
  left: 0;
  width: 100%;
  /* Height controls the visible wave amplitude band. 150px matches the
     previous mask layer size; adjust if you want a taller/shorter wave. */
  height: 150px;
  line-height: 0;
  z-index: 1;
  pointer-events: none;
}
.about-wave-top    { top: 0; }
.about-wave-bottom { bottom: 0; }
.about-wave-top img,
.about-wave-bottom img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Align each wave image to the edge it guards so the wave curve
   stays at the correct position when the SVG is cropped by cover. */
.about-wave-top    img { object-position: top center; }
.about-wave-bottom img { object-position: bottom center; }

/* Decorative pseudo-elements: blob (left), circles (top-right) */
.about-frame::before,
.about-frame::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 0;
  background-repeat: no-repeat;
  background-size: contain;
}
.about-frame::before {
  /* Concentric circles upper-right */
  background-image: url('../assets/about/circles.svg');
  width: clamp(280px, 32vw, 560px);
  aspect-ratio: 1;
  top: 0;
  right: clamp(-80px, -3vw, -40px);
  opacity: 0.30;
}
.about-frame::after {
  /* Big organic dark blob middle-left */
  background-image: url('../assets/about/blob.svg');
  width: clamp(340px, 45vw, 800px);
  aspect-ratio: 868 / 892;
  left: clamp(-160px, -10vw, -100px);
  top: 18%;
  opacity: 0.10;
}

/* Content grid */
.about-canvas {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--container-px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(260px, 32vw, 420px);
  gap: clamp(40px, 5vw, 80px);
  align-items: center;
  z-index: 2;
}

.about-text-block {
  position: relative;
  width: 100%;
  z-index: 3;
  color: #fff;
}
.about-text-block h2 {
  font-family: 'Inter', sans-serif;
  font-size: var(--fs-h2);
  font-weight: 700;
  line-height: 1.1;
  color: #fff;
  margin: 0 0 clamp(24px, 2.5vw, 36px);
  letter-spacing: -0.01em;
}
.about-text-block p {
  font-family: 'Inter', sans-serif;
  font-size: var(--fs-lead);
  font-weight: 400;
  line-height: 1.65;
  color: rgba(255,255,255,0.92);
  margin: 0 0 clamp(16px, 1.5vw, 22px);
}
.about-text-block p.about-emphasis {
  font-size: clamp(17px, 0.4vw + 16px, 20px);
  font-weight: 600;
  color: #fff;
  line-height: 1.4;
  margin: clamp(6px, 1vw, 14px) 0 clamp(12px, 1.5vw, 18px);
}

/* Photo pill */
.about-photo-pill {
  width: 100%;
  max-width: 420px;
  aspect-ratio: 465 / 618;
  /* Brand blue→purple gradient behind the transparent cut-out headshot */
  background: linear-gradient(159.898deg, #3A86FF 8.23%, #8A5CF6 82.73%);
  border-radius: clamp(80px, 18vw, 232px);
  box-shadow: 0 24px 64px rgba(0,0,0,0.18);
  overflow: hidden;
  justify-self: end;
  position: relative;
  z-index: 2;
}

/* Headshot inside the pill — fill, center on face, black & white */
.about-headshot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  /* Scale up so the figure fills the frame top-to-bottom and the transparent
     padding at the top of the PNG is pushed out of view. transform-origin
     anchored toward the head so the zoom pushes the empty space above the
     head out the top of the frame. */
  /* translateY nudges the figure up so the empty space above the head is
     pushed out the top of the frame. */
  transform: scale(1.42) translateY(-5%);
  transform-origin: center 26%;
  display: block;
}

/* Decorative dot grid — sits BEHIND the photo (z-index 1 < photo's z-index 2).
   Pushed up so most of it is covered by the photo; only the top-left ~3 dots
   peek out below the pill's bottom-right corner. */
.about-dotgrid {
  position: absolute;
  bottom: clamp(140px, 19vw, 280px);
  right: clamp(40px, 6vw, 120px);
  width: clamp(80px, 8vw, 146px);
  height: clamp(80px, 8vw, 146px);
  opacity: 0.85;
  pointer-events: none;
  z-index: 1;
}

/* Responsive: stack on tablet/mobile */
@media (max-width: 900px) {
  .about-frame { padding: clamp(110px, 22vw, 150px) 0; }
  /* On mobile, use mobile-specific wave SVGs and reduce the overlay height.
     object-fit:cover still scales proportionally, so amplitude stays correct. */
  .about-wave-top img  { content: url('../assets/about/wave-top.svg'); }
  .about-wave-bottom img { content: url('../assets/about/wave-bottom.svg'); }
  .about-wave-top,
  .about-wave-bottom { height: 90px; }
  .about-canvas {
    grid-template-columns: 1fr;
    gap: clamp(32px, 5vw, 56px);
  }
  .about-photo-pill {
    max-width: min(280px, 70%);
    justify-self: center;
    order: -1;
  }
  .about-frame::before { width: clamp(220px, 50vw, 320px); opacity: 0.22; right: -60px; }
  .about-frame::after  { display: none; }
  .about-dotgrid { display: none; }
}

/* =============================================
   5. NOW I HELP
   ============================================= */
.now-help-section {
  padding: var(--section-py) 0;
  background: #fff;
}
.now-help-section .container { max-width: 896px; }
.now-help-title {
  font-family: 'Inter', sans-serif;
  font-size: var(--fs-h2);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: #0b1f3a;
  text-align: center;
  margin: 0 0 clamp(20px, 2.5vw, 32px);
}
.now-help-body {
  font-family: 'Inter', sans-serif;
  font-size: var(--fs-lead);
  font-weight: 400;
  line-height: 1.65;
  color: #64748b;
  text-align: center;
  margin: 0 0 16px;
}
.now-help-body strong { color: #0b1f3a; font-weight: 600; }
.now-help-italic {
  font-family: 'Inter', sans-serif;
  font-size: var(--fs-lead);
  font-style: italic;
  font-weight: 400;
  line-height: 1.65;
  color: #0b1f3a;
  text-align: center;
  margin: clamp(24px, 3vw, 32px) auto clamp(32px, 4vw, 48px);
  max-width: 720px;
}
.credentials-block { text-align: center; margin-top: clamp(28px, 3.5vw, 40px); }
.credentials-label {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: #94a3b8;
  margin: 0 0 24px;
}
.credentials {
  display: flex;
  gap: clamp(24px, 4vw, 48px);
  align-items: center; justify-content: center;
  flex-wrap: wrap;
}
.credentials img {
  height: clamp(32px, 3.5vw, 44px);
  width: auto;
  opacity: 0.55;
  filter: grayscale(1);
  transition: opacity 0.2s, filter 0.2s;
}
.credentials img:hover { opacity: 1; filter: grayscale(0); }

/* =============================================
   6. NEURODIVERGENT
   ============================================= */
.neuro-section {
  padding: var(--section-py) 0;
  background: #F4F6FB;
}
.neuro-section .section-h2 { margin-bottom: 16px; }
.neuro-section .section-lead { margin-bottom: clamp(32px, 4vw, 48px); }

.neuro-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: var(--gap-grid);
  max-width: 1088px;
  margin: 0 auto clamp(32px, 4vw, 40px);
  padding: 0 var(--container-px);
}
.neuro-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(22px, 2vw + 16px, 32px) clamp(20px, 2vw + 14px, 28px);
  border: 1.111px solid rgba(0,0,0,0.05);
  filter: drop-shadow(0 8px 16px rgba(0,0,0,0.06));
}
.neuro-icon-box {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--grad-card);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.neuro-card h3 {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: var(--fs-h3);
  font-weight: 700;
  line-height: 1.3;
  color: #1e293b;
  margin: 0 0 10px;
}
.neuro-card p {
  font-family: 'Inter', sans-serif;
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.6;
  color: #64748b;
  margin: 0;
}

.neuro-banner {
  max-width: 896px;
  margin: 0 var(--container-px) clamp(28px, 3vw, 32px);
  border-radius: var(--radius-lg);
  background: linear-gradient(90deg, #1E293B 0%, #202C3E 11.11%, #232E41 22.22%, #253144 33.33%, #273346 44.44%, #293649 55.56%, #2C394C 66.67%, #2E3C4F 77.78%, #313E52 88.89%, #334155 100%);
  filter: drop-shadow(0 25px 25px rgba(0,0,0,0.18));
  padding: clamp(28px, 3vw + 12px, 48px) clamp(24px, 3vw + 8px, 56px);
  text-align: center;
}
@media (min-width: 1024px) { .neuro-banner { margin-left: auto; margin-right: auto; } }
.neuro-banner-quote {
  font-family: 'Inter', sans-serif;
  font-size: var(--fs-banner);
  font-weight: 600;
  line-height: 1.3;
  color: #fff;
  margin: 0 0 8px;
}
.neuro-banner-sub {
  font-family: 'Inter', sans-serif;
  font-size: var(--fs-lead);
  font-weight: 300;
  font-style: italic;
  line-height: 1.5;
  color: rgba(255,255,255,0.85);
  margin: 0;
}

.neuro-footer-text {
  font-family: 'Inter', sans-serif;
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.65;
  color: #64748b;
  text-align: center;
  max-width: 896px;
  margin: 0 auto;
  padding: 0 var(--container-px);
}

/* =============================================
   7+8. DARK SECTION
   ============================================= */
.dark-section {
  position: relative;
  overflow: hidden;
  /* Uses the SAME gradient as .how-section (not a flat fill) so the band
     above the purple wave crest is a seamless continuation of How It Works —
     the slate gradient flows uninterrupted down behind the purple wave with
     no flat-navy block showing. */
  background: linear-gradient(90deg, #253141 0%, #2D3C51 100%);
}
.dark-wave-bg { position: absolute; inset: 0; z-index: 0; line-height: 0; }
.dark-wave-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top;
}

.how-section {
  position: relative;
  /* Subtle slate gradient — compressed range so it reads as near-flat */
  background: linear-gradient(90deg, #253141 0%, #2D3C51 100%);
  padding: clamp(72px, 8vw, 120px) 0 clamp(80px, 9vw, 130px);
}

.how-section .section-h2 { margin-bottom: 24px; color: #fff; }
.how-section .section-lead { margin-bottom: clamp(32px, 4vw, 48px); color: rgba(255,255,255,0.80); }

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: var(--gap-grid);
  /* No max-width — use the full container so each card is wide enough
     for the longest heading ("Start Your Weekly Sessions") to sit on one line. */
}

/* White card — same look as .neuro-card */
.step-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1.111px solid rgba(0,0,0,0.05);
  filter: drop-shadow(0 8px 16px rgba(0,0,0,0.06));
  /* Reduced horizontal padding (20px max) so card titles fit on one line
     at typical desktop widths. Vertical padding stays generous. */
  padding: clamp(28px, 2.5vw + 12px, 36px) clamp(16px, 1.5vw + 8px, 20px);
}
/* Step number badge — large gradient circle */
.step-num-badge {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--grad-card);
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: 22px; font-weight: 800;
  color: #fff;
  margin-bottom: 20px;
  flex-shrink: 0;
}
.step-card h3 {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: var(--fs-h3);
  font-weight: 700;
  line-height: 1.3;
  color: #1e293b;
  margin: 0 0 10px;
}
.step-card p {
  font-family: 'Inter', sans-serif;
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.6;
  color: #64748b;
  max-width: 260px;
  margin: 0;
}

/* ── OPTION C (retired) ───────────────────────────────────────────────────────
   Replaced by the white .how-card container which visually separates the two
   sections without needing an explicit divider line.
   Kept here commented out in case it's needed for reference or rollback.

.section-glow-divider {
  position: relative; z-index: 2; height: 2px;
  margin: 0 clamp(32px, 8vw, 120px);
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.45) 18%,
    rgba(255,255,255,0.90) 50%, rgba(255,255,255,0.45) 82%, transparent 100%);
  box-shadow: 0 0 18px 4px rgba(200,180,255,0.30);
}
.reviews-section::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(138,92,246,0.13) 0%, rgba(58,134,255,0.10) 100%);
  z-index: 0; pointer-events: none;
}
   ─────────────────────────────────────────────────────────────────────────── */

/* REVIEWS marquee */
.reviews-section {
  position: relative;
  z-index: 1;
  /* Extra top padding pushes title lower beneath the wave crest.
     Bottom padding extended to give the dark gradient more visual mass. */
  padding: clamp(120px, 15vw, 200px) 0 clamp(100px, 14vw, 180px);
}
.reviews-section .section-h2 { margin-bottom: clamp(36px, 4vw, 56px); }

.reviews-heading-wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--container-px);
}

.reviews-marquee-viewport {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 16px 0;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 6%, #000 94%, transparent 100%);
          mask-image: linear-gradient(to right, transparent 0, #000 6%, #000 94%, transparent 100%);
}

.reviews-marquee-track {
  display: flex;
  align-items: stretch;
  /* Fixed gap (not clamp) — a variable gap would trigger layout recalculations
     during the animation, which is a common source of scroll jitter. */
  gap: 24px;
  width: max-content;
  /* No padding — JS calibration (initReviews) measures exact card boundaries
     and sets --marquee-shift so the loop point lands pixel-perfectly on the
     start of the second copy, eliminating the ½-gap seam offset. */
  animation: reviews-marquee var(--marquee-duration, 38s) linear infinite;
  will-change: transform;
  /* backface-visibility: hidden promotes the element to its own GPU layer and
     prevents sub-pixel jitter on some browsers / compositors. */
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
/* Hover no longer pauses — marquee scrolls continuously regardless of mouse position. */

/* ── REVIEWS mobile slider (one-at-a-time, swipeable) ──────────────────────────
   When JS detects a mobile viewport it adds .is-mobile and injects a single set
   of slides. We turn off the marquee animation and turn the track into a native
   horizontal scroll-snap slider. */
.reviews-marquee-viewport.is-mobile {
  overflow: visible;
  padding: 0;
  -webkit-mask-image: none;
          mask-image: none;
}
.reviews-marquee-viewport.is-mobile .reviews-marquee-track {
  animation: none !important;
  width: 100%;
  gap: 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.reviews-marquee-viewport.is-mobile .reviews-marquee-track::-webkit-scrollbar { display: none; }
.reviews-marquee-viewport.is-mobile .review-col {
  flex: 0 0 100%;
  width: 100%;
  min-height: 0;
  scroll-snap-align: center;
  /* Force the scroll to stop on every review — a quick flick can no longer
     skip past several at once; it advances one at a time. A big, deliberate
     full-screen drag still physically moves further. */
  scroll-snap-stop: always;
  padding: 0 6px;
}
.reviews-mdots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 22px;
}
.reviews-mdot {
  width: 8px; height: 8px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}
.reviews-mdot.active {
  width: 22px;
  border-radius: 4px;
  background: #fff;
}

.review-col {
  flex: 0 0 auto;
  width: clamp(340px, 40vw, 520px);
  /* Column height sets the stagger offset between top/bottom aligned cards.
     The cards themselves get taller from their content — don't inflate this
     value or bottom-aligned cards get pushed too far down. */
  min-height: 560px;
  display: flex;
}
.review-col[data-align="top"]    { align-items: flex-start; }
.review-col[data-align="bottom"] { align-items: flex-end; }

@keyframes reviews-marquee {
  from { transform: translate3d(0, 0, 0); }
  /* --marquee-shift is set by JS to exactly -oneSetPx so the loop point lands
     on the start of copy 2, which is visually identical to copy 1 → seamless.
     Default -25% works with 4 copies (4 × 25% = 100%, one set = 25%). */
  to   { transform: translate3d(var(--marquee-shift, -25%), 0, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .reviews-marquee-track { animation: none; }
}

.review-card {
  width: 100%;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(32px, 3vw + 16px, 48px);
  display: flex; flex-direction: column;
  gap: 18px;
  border: 1.111px solid rgba(0,0,0,0.05);
  filter: drop-shadow(0 12px 24px rgba(0,0,0,0.10));
}
.review-quote {
  font-family: 'Inter', sans-serif;
  font-size: clamp(15px, 0.5vw + 13px, 18px);
  font-weight: 400;
  font-style: italic;
  line-height: 1.75;
  color: #1e293b;
  margin: 0;
  flex: 1;
}
.review-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tag {
  display: inline-flex; align-items: center;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--grad-card);
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 12px; font-weight: 500; line-height: 16px;
}
.review-author {
  font-family: 'Inter', sans-serif;
  font-size: 14px; font-weight: 600; line-height: 20px;
  color: #64748b;
  margin: 0;
}

/* =============================================
   9. SUPPORT
   ============================================= */
.support-section { padding: var(--section-py) 0; background: #fff; }
.support-section .section-h2 { margin-bottom: 16px; }
.support-section .section-lead { margin-bottom: clamp(40px, 5vw, 56px); }
.support-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap-grid);
  justify-content: center;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--container-px);
}
.support-grid .figma-card { max-width: 384px; justify-self: center; }
@media (min-width: 720px) {
  .support-grid { grid-template-columns: repeat(2, 1fr); max-width: 820px; }
}
@media (min-width: 980px) {
  .support-grid { grid-template-columns: repeat(3, 1fr); max-width: 1216px; }
}

/* =============================================
   10. FAQ
   ============================================= */
.faq-section { padding: var(--section-py) 0; background: #fff; }
.faq-section .section-h2 { margin-bottom: clamp(32px, 4vw, 48px); }
.faq-list {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 var(--container-px);
  display: flex; flex-direction: column;
  gap: 12px;
}
.faq-item {
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.25s;
}
.faq-item.active { border-color: var(--purple); }
.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: clamp(20px, 2vw, 28px) clamp(24px, 3vw, 36px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  font-family: inherit;
  font-size: clamp(16px, 0.5vw + 14px, 19px);
  font-weight: 600;
  color: var(--dark-text);
  text-align: left;
  min-height: 64px;
  transition: background 0.2s, color 0.2s;
}
.faq-item.active .faq-question {
  background: var(--grad);
  color: #fff;
}
.faq-icon {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(138,92,246,0.1);
  display: flex; align-items: center; justify-content: center;
  color: var(--purple);
  transition: transform 0.3s, background 0.2s;
}
.faq-item.active .faq-icon {
  transform: rotate(180deg);
  background: rgba(255,255,255,0.25);
  color: #fff;
}
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
/* Generous cap so even the longest answer is never clipped (real content
   tops out ~360px mobile / ~860px in the narrow preview frame). */
.faq-item.active .faq-answer { max-height: 1000px; }
.faq-inner {
  padding: clamp(20px, 2vw, 28px) clamp(24px, 3vw, 36px) clamp(24px, 2.5vw, 32px);
  font-size: clamp(15px, 0.3vw + 13px, 17px);
  color: var(--mid-text);
  line-height: 1.7;
  border-top: 1px solid rgba(0,0,0,0.06);
}
/* Space between paragraphs inside multi-paragraph FAQ answers */
.faq-inner p + p { margin-top: 1em; }

/* =============================================
   11. CTA
   ============================================= */
.cta-section {
  background: linear-gradient(135deg, #8A5CF6 0%, #3A86FF 100%);
  padding: clamp(72px, 8vw, 120px) var(--container-px);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
}
.cta-inner h2 {
  font-family: 'Inter', sans-serif;
  font-size: var(--fs-cta-h);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: #fff;
  margin: 0 0 20px;
}
.cta-sub {
  font-family: 'Inter', sans-serif;
  font-size: var(--fs-lead);
  font-weight: 400;
  line-height: 1.55;
  color: rgba(255,255,255,0.88);
  margin: 0 0 clamp(28px, 4vw, 40px);
}
.cta-cred {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 20px;
  color: rgba(255,255,255,0.7);
  margin: 28px 0 0;
}
.cta-section .btn-white {
  display: inline-flex;
  align-items: center; justify-content: center;
  height: 56px;
  padding: 0 40px;
  border-radius: 16px;
  background: #fff;
  color: #8A5CF6;
  font-family: 'Inter', sans-serif;
  font-size: 17px; font-weight: 600; line-height: 24px;
  text-decoration: none;
  min-height: 56px;
  box-shadow: 0 12px 28px rgba(0,0,0,0.18);
  transition: transform 0.2s, box-shadow 0.2s;
}
.cta-section .btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(0,0,0,0.24);
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: var(--footer-bg);
  padding-top: clamp(48px, 6vw, 64px);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  padding-bottom: clamp(40px, 5vw, 56px);
  align-items: start;
}
.footer-logo { margin-bottom: 18px; }
.footer-logo-img { width: 153.3px; height: 44px; display: block; filter: brightness(0) invert(1); }
.footer-desc {
  font-size: 14px;
  color: rgba(255,255,255,0.48);
  line-height: 1.7;
  max-width: 400px;
}
.footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(28px, 3vw, 48px);
}
.footer-col h4 { font-size: 14px; font-weight: 600; color: #fff; margin-bottom: 16px; }
.footer-col a {
  display: block;
  font-size: 14px;
  color: rgba(255,255,255,0.50);
  margin-bottom: 10px;
  transition: color 0.2s;
  padding: 4px 0;
  min-height: 28px;
}
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.07); padding: 22px 0; }
.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-bottom p { font-size: 12px; color: rgba(255,255,255,0.30); }

/* =============================================
   RESPONSIVE BREAKPOINTS — final stack-ups
   ============================================= */
@media (max-width: 900px) {
  .nav-links, .nav-cta-btn { display: none; }
  .nav-right .nav-cta-btn { display: none; }
  .hamburger { display: flex; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-links { grid-template-columns: 1fr 1fr; }
  .footer-bottom-inner { flex-direction: column; gap: 8px; text-align: center; }
}

@media (max-width: 600px) {
  /* marquee duration is set by JS calibration — no override needed */
  .review-col { min-height: 320px; }
}

/* =============================================
   MOBILE PREVIEW OVERRIDES (toggled by JS)
   The actual @media queries above handle real viewports;
   these only apply when the preview-toggle forces mobile.
   ============================================= */
body.mobile-preview .nav-links,
body.mobile-preview .nav-right .nav-cta-btn { display: none; }
body.mobile-preview .hamburger { display: flex; }
body.mobile-preview .footer-inner { grid-template-columns: 1fr; gap: 32px; }
body.mobile-preview .footer-links { grid-template-columns: 1fr 1fr; }
body.mobile-preview .footer-bottom-inner { flex-direction: column; gap: 6px; }
/* marquee duration set by JS calibration — no mobile-preview override needed */
/* When the preview frame is 390px wide, force the about layout to stack */
body.mobile-preview .about-frame { padding: clamp(110px, 22vw, 150px) 0; }
body.mobile-preview .about-canvas { grid-template-columns: 1fr; gap: 40px; }
body.mobile-preview .about-photo-pill { max-width: min(280px, 70%); justify-self: center; order: -1; }
body.mobile-preview .about-frame::after { display: none; }
body.mobile-preview .about-frame::before { width: 220px; opacity: 0.22; right: -50px; }
body.mobile-preview .about-dotgrid { display: none; }
/* Cards carousel inside the 390px preview frame */
body.mobile-preview .coaching-cards-grid,
body.mobile-preview .support-grid {
  display: flex; grid-template-columns: none; gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
  max-width: 100%; margin: 0;
  padding: 6px var(--container-px) 4px; scroll-padding: 0 var(--container-px);
}
body.mobile-preview .coaching-cards-grid::-webkit-scrollbar,
body.mobile-preview .support-grid::-webkit-scrollbar { display: none; }
body.mobile-preview .coaching-cards-grid .figma-card,
body.mobile-preview .support-grid .figma-card {
  flex: 0 0 86%; max-width: 86%; scroll-snap-align: center; min-height: 0;
}
body.mobile-preview .cards-dots {
  display: flex; justify-content: center; gap: 8px; margin-top: 18px;
  padding: 0 var(--container-px);
}

/* =============================================
   INTAKE MODAL
   ============================================= */

/* Body lock when modal is open */
.intake-body-lock { overflow: hidden; }

/* Overlay */
.intake-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 31, 58, 0.88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.intake-overlay--open {
  opacity: 1;
  visibility: visible;
}

/* Modal card */
.intake-modal {
  background: #0F2544;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 20px;
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 24px 80px rgba(0,0,0,0.55);
  scrollbar-width: thin;
  scrollbar-color: rgba(138,92,246,0.4) transparent;
}

/* Progress bar at top */
.intake-progress-track {
  height: 3px;
  background: rgba(255,255,255,0.10);
  border-radius: 3px 3px 0 0;
  overflow: hidden;
}
.intake-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #8A5CF6, #3A86FF);
  border-radius: 3px;
  transition: width 0.4s ease;
  width: 50%;
}

/* Close button */
.intake-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.60);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  z-index: 2;
}
.intake-close:hover {
  background: rgba(255,255,255,0.15);
  color: #fff;
}

/* Steps */
.intake-step {
  padding: clamp(28px, 4vw, 40px) clamp(24px, 4vw, 40px) clamp(28px, 4vw, 36px);
}
.intake-step--hidden { display: none; }

.intake-step-label {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.intake-heading {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: clamp(20px, 2vw + 12px, 26px);
  font-weight: 800;
  color: #fff;
  margin: 0 0 10px;
  padding-right: 28px; /* avoid close btn overlap */
}

.intake-sub {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: rgba(255,255,255,0.60);
  line-height: 1.6;
  margin: 0 0 28px;
}

/* Form fields */
.intake-field {
  margin-bottom: 18px;
}
.intake-field label {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.75);
  margin-bottom: 7px;
}
.intake-optional {
  font-weight: 400;
  color: rgba(255,255,255,0.38);
}
.intake-field input {
  width: 100%;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  padding: 12px 14px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: #fff;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}
.intake-field input::placeholder,
.intake-field textarea::placeholder { color: rgba(255,255,255,0.28); }
.intake-field input:focus,
.intake-field textarea:focus {
  border-color: #8A5CF6;
  background: rgba(138,92,246,0.10);
}
.intake-field textarea {
  width: 100%;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  padding: 12px 14px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: #fff;
  outline: none;
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
  transition: border-color 0.2s, background 0.2s;
}
.intake-error {
  display: block;
  font-size: 12px;
  color: #f87171;
  margin-top: 5px;
  min-height: 16px;
}

/* Submit button */
.intake-submit {
  width: 100%;
  margin-top: 8px;
  padding: 14px 24px;
  background: linear-gradient(135deg, #8A5CF6 0%, #3A86FF 100%);
  color: #fff;
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 700;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(138,92,246,0.35);
}
.intake-submit:hover {
  opacity: 0.92;
  transform: translateY(-1px);
  box-shadow: 0 6px 28px rgba(138,92,246,0.50);
}
.intake-submit:active { transform: translateY(0); }
.intake-submit:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

/* Goals grid */
.goals-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 24px;
}
@media (max-width: 420px) {
  .goals-grid { grid-template-columns: 1fr; }
}

/* Goal chip */
.goal-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  user-select: none;
  position: relative;
}
.goal-chip:hover {
  background: rgba(255,255,255,0.09);
  border-color: rgba(255,255,255,0.20);
}
.goal-chip--selected {
  background: rgba(138,92,246,0.18);
  border-color: #8A5CF6;
}
/* Dimmed when max selections reached and this chip is not selected */
.goal-chip--disabled {
  opacity: 0.38;
  cursor: not-allowed;
}
.goal-checkbox { display: none; } /* visually hidden — chip handles the UI */

.goal-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, #8A5CF6 0%, #3A86FF 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.goal-label {
  flex: 1;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.80);
  line-height: 1.35;
}
.goal-chip--selected .goal-label { color: #fff; }

.goal-check {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 1.5px solid rgba(255,255,255,0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.goal-chip--selected .goal-check {
  background: linear-gradient(135deg, #8A5CF6, #3A86FF);
  border-color: transparent;
  color: #fff;
}

/* Success / Error states */
.intake-success,
.intake-error-state {
  text-align: center;
  padding: clamp(40px, 6vw, 64px) clamp(24px, 4vw, 48px);
}
.intake-success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #8A5CF6, #3A86FF);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  margin: 0 auto 20px;
}
.intake-error-icon {
  background: linear-gradient(135deg, #ef4444, #f97316);
}
.intake-success .intake-sub,
.intake-error-state .intake-sub {
  max-width: 340px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 28px;
}
.intake-success .intake-submit { max-width: 200px; margin-left: auto; margin-right: auto; }

/* =============================================
   SCROLL REVEAL  (subtle fade + rise, once only)
   ---------------------------------------------
   Elements get `.reveal` (via HTML for the hero, via JS for everything
   below the fold). The hidden start-state is gated behind `.reveal-js`
   (added to <html> by an inline head script BEFORE first paint) so that:
     • there is no flash of content disappearing on load, and
     • if JS is disabled, `.reveal-js` is never added → all content stays
       fully visible (progressive enhancement / accessibility).
   An IntersectionObserver adds `.reveal--in` once per element and then
   stops observing it, so scrolling back up never re-triggers the motion.
   Per-element transition-delay (set in JS) produces the staggered cascade.
   ============================================= */
.reveal-js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-js .reveal.reveal--in {
  opacity: 1;
  transform: none;
}
/* Respect users who prefer reduced motion — show everything instantly. */
@media (prefers-reduced-motion: reduce) {
  .reveal-js .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
