/* =========================================================
   Brain Coach — marketing site
   Calm, warm, encouraging. Large text, high contrast.
   ========================================================= */

:root {
  /* Clinic-Warm palette (matches the app): warm sand + deep teal + terracotta.
     Variable NAMES kept (--blue/--coral) to avoid a global rename; they now map to
     the app's primary (teal), accent (terracotta) and success (leaf green). */
  --blue: #1f6b78;        /* primary → deep teal */
  --blue-dark: #155059;   /* primary hover */
  --blue-tint: #d6e7ea;   /* soft teal wash */
  --teal: #4a8a3c;        /* success / checks → leaf green */
  --teal-tint: #e2efd4;   /* soft green wash */
  --coral: #c2683f;       /* accent → terracotta */
  --coral-tint: #f5e0d4;  /* soft terracotta wash */
  --ink: #222a33;         /* deep charcoal-navy text */
  --ink-soft: #4b5560;    /* secondary text */
  --bg: #f6f1e9;          /* warm sand background */
  --surface: #fffdf9;     /* warm cream card */
  --surface-2: #ece4d7;   /* subtle inset surface */
  --navy-1: #12414a;      /* deep teal for dark sections */
  --navy-2: #1f6b78;

  --radius: 20px;
  --radius-sm: 14px;
  --radius-lg: 32px;
  --shadow-sm: 0 2px 8px rgba(34, 42, 51, 0.07);
  --shadow: 0 14px 40px rgba(34, 42, 51, 0.10);
  --shadow-lg: 0 30px 70px rgba(34, 42, 51, 0.16);
  --maxw: 1140px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  margin: 0;
  font-family: "Lexend", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -0.02em; margin: 0; font-weight: 800; }
h1 { font-size: clamp(2.6rem, 6vw, 4.1rem); }
h2 { font-size: clamp(2rem, 4vw, 2.9rem); }
h3 { font-size: 1.3rem; font-weight: 700; }
p { margin: 0; }

a { color: var(--blue); text-decoration: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 820px; }
.center { text-align: center; }

/* ---------- Accessibility ---------- */
.skip-link {
  position: absolute; left: 16px; top: -60px;
  background: var(--ink); color: #fff; padding: 10px 16px;
  border-radius: 10px; z-index: 1000; transition: top .2s var(--ease);
}
.skip-link:focus { top: 16px; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: inherit; font-weight: 700; font-size: 1.05rem;
  padding: 14px 26px; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .15s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease), color .2s var(--ease);
  white-space: nowrap; line-height: 1;
}
.btn-lg { padding: 18px 34px; font-size: 1.15rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 10px 22px rgba(31, 107, 120, 0.28); }
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-2px); box-shadow: 0 16px 30px rgba(31, 107, 120, 0.34); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--surface-2); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-2px); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  /* Transparent at the top so the hero glow flows continuously under it (no seam);
     it gains a frosted background + shadow only once you scroll. */
  background: transparent;
  transition: box-shadow .25s var(--ease), background .25s var(--ease), backdrop-filter .25s var(--ease);
}
.site-header.scrolled {
  box-shadow: var(--shadow-sm);
  background: rgba(246, 241, 233, 0.92);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
}
/* Header bar runs a touch wider than the 1140 body column so the (longer) ES
   nav labels + two CTAs fit on one line without crowding. */
.site-header > .container, .legal-head > .container { max-width: 1240px; }
.header-inner { display: flex; align-items: center; gap: 16px; height: 78px; }
/* Brand lockup: leaf+brain mark + Fredoka green-gradient wordmark (matches the app). */
.brand { display: inline-flex; align-items: center; gap: 8px; }
.brand-mark { width: 42px; height: 42px; display: block; flex: 0 0 auto; }
.brand-tile { width: 40px; height: 40px; border-radius: 11px; display: block; flex: 0 0 auto; }
.brand-word {
  font-family: 'Fredoka', 'Lexend', sans-serif;
  font-size: 1.55rem; font-weight: 600; letter-spacing: -0.2px; line-height: 1; white-space: nowrap;
  background: linear-gradient(180deg, #13634d 0%, #063630 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  color: #0d4d3e; /* fallback */
}
.nav { display: flex; gap: 22px; margin-left: 8px; }
.nav a { color: var(--ink-soft); font-weight: 600; font-size: 0.95rem; position: relative; white-space: nowrap; }
.nav a:hover { color: var(--ink); }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
  background: var(--blue); border-radius: 2px; transform: scaleX(0); transform-origin: left; transition: transform .2s var(--ease);
}
.nav a:hover::after { transform: scaleX(1); }
.header-cta { display: flex; gap: 10px; margin-left: auto; align-items: center; }
.header-cta .btn { padding: 11px 20px; }

/* Language switcher (globe + EN/ES) */
.lang-switch {
  display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto;
  font-family: inherit; font-weight: 700; font-size: 0.92rem; color: var(--ink-soft);
  padding: 8px 12px; border-radius: 999px; border: 2px solid var(--surface-2);
  background: var(--surface); cursor: pointer; white-space: nowrap;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.lang-switch:hover { color: var(--blue); border-color: var(--blue); }
.lang-switch svg { width: 18px; height: 18px; flex: 0 0 auto; }
.mobile-nav .lang-switch { justify-content: center; margin-top: 4px; }

/* Language menu (globe + current code + dropdown of all locales).
   Rendered by /lang-menu.js into every .lang-menu[data-current] placeholder. */
.lang-menu { position: relative; flex: 0 0 auto; }
.lang-trigger {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: inherit; font-weight: 700; font-size: 0.92rem; color: var(--ink-soft);
  padding: 8px 11px; border-radius: 999px; border: 2px solid var(--surface-2);
  background: var(--surface); cursor: pointer; white-space: nowrap;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.lang-trigger:hover { color: var(--blue); border-color: var(--blue); }
.lang-globe { width: 18px; height: 18px; flex: 0 0 auto; }
.lang-chev { width: 14px; height: 14px; flex: 0 0 auto; opacity: .7; transition: transform .2s var(--ease); }
.lang-menu.open .lang-chev { transform: rotate(180deg); }
.lang-cur { letter-spacing: .02em; }
.lang-list {
  position: absolute; top: calc(100% + 8px); right: 0; margin: 0; padding: 6px;
  list-style: none; background: var(--surface); border: 1px solid var(--surface-2);
  border-radius: var(--radius-sm); box-shadow: var(--shadow); z-index: 200;
  min-width: 190px; max-height: min(64vh, 440px); overflow-y: auto; display: none;
}
.lang-menu.open .lang-list { display: block; }
.lang-list li { margin: 0; }
.lang-list a {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 9px 12px; border-radius: 10px; color: var(--ink);
  font-weight: 600; font-size: 0.98rem; white-space: nowrap;
}
.lang-list a:hover { background: var(--surface-2); }
.lang-list .lang-code { color: var(--ink-soft); font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.lang-list a.is-current { color: var(--blue); }
.lang-list a.is-current .lang-code { color: var(--blue); }
/* In the mobile sheet the trigger is centered and the list opens flush-left. */
.mobile-nav .lang-menu { margin-top: 8px; align-self: center; }
.mobile-nav .lang-list { right: auto; left: 50%; transform: translateX(-50%); }
/* RTL (Hebrew): flip the dropdown anchoring. */
html[dir="rtl"] .lang-list { right: auto; left: 0; }
html[dir="rtl"] .mobile-nav .lang-list { left: 50%; }

.nav-toggle {
  display: none; margin-left: auto; width: 46px; height: 46px;
  background: var(--surface); border: 2px solid var(--surface-2); border-radius: 12px;
  flex-direction: column; gap: 5px; align-items: center; justify-content: center; cursor: pointer;
}
.nav-toggle span { width: 22px; height: 2.5px; background: var(--ink); border-radius: 2px; transition: transform .25s var(--ease), opacity .2s var(--ease); }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.mobile-nav { display: none; flex-direction: column; gap: 6px; padding: 12px 24px 24px; border-top: 1px solid var(--surface-2); background: var(--bg); box-shadow: var(--shadow-sm); }
.mobile-nav a:not(.btn) { padding: 14px 8px; font-weight: 600; color: var(--ink); border-bottom: 1px solid var(--surface-2); }
.mobile-nav .btn { margin-top: 10px; }

/* ---------- Eyebrow ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 700; font-size: 0.95rem; color: var(--blue);
  background: var(--blue-tint); padding: 8px 16px; border-radius: 999px; margin: 0 0 22px;
}
.eyebrow .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--coral); }
.eyebrow-light { background: rgba(255,255,255,0.12); color: #fff; }
.center-eyebrow { margin-left: auto; margin-right: auto; }

/* ---------- Hero ---------- */
.hero {
  /* Pulled up under the (transparent) sticky header so the glow is continuous from
     the very top; padding-top adds the header height back so content stays put. */
  margin-top: -78px; padding: 138px 0 70px; position: relative; overflow: hidden;
  /* Two soft glows bleeding in from the screen edges: blue from the top-right,
     teal from the left. Both fade fully to transparent (= the page background)
     well before the bottom edge, so the colour melts into white with no hard
     cut-off line and no banding. */
  background:
    radial-gradient(80% 90% at 100% -10%, var(--blue-tint) 0%, transparent 92%),
    radial-gradient(66% 78% at -4% 58%, var(--teal-tint) 0%, var(--teal-tint) 12%, transparent 60%);
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero h1 { margin-bottom: 22px; }
.hero h1 .accent { color: var(--coral); }
.lede { font-size: 1.28rem; color: var(--ink-soft); max-width: 33ch; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }
.hero-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.hero-points li { position: relative; padding-left: 34px; font-weight: 600; color: var(--ink); }
.hero-points li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--teal-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%234a8a3c' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* Phone mockup */
.hero-visual { position: relative; display: flex; justify-content: center; }
.phone {
  position: relative; width: 290px; background: #1b222b; border-radius: 44px; padding: 11px;
  box-shadow: var(--shadow-lg); border: 1px solid rgba(255,255,255,0.06);
}
.phone-notch { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); width: 110px; height: 22px; background: #1b222b; border-radius: 0 0 16px 16px; z-index: 3; }
.phone-screen { background: #000; border-radius: 34px; overflow: hidden; aspect-ratio: 430 / 930; }
.phone-video { width: 100%; height: 100%; object-fit: cover; display: block; }
.app-top { display: flex; align-items: center; gap: 11px; margin-bottom: 16px; }
.app-badge { border-radius: 11px; }
.app-title { font-weight: 800; font-size: 1.05rem; }
.app-sub { font-size: 0.85rem; color: var(--ink-soft); }
.app-card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 22px 18px 26px; text-align: center; position: relative; }
.app-prompt { font-size: 0.85rem; font-weight: 600; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .08em; }
.app-word { font-size: 2.2rem; font-weight: 800; margin: 6px 0 18px; color: var(--ink); }
.app-wave { display: flex; align-items: center; justify-content: center; gap: 5px; height: 38px; margin-bottom: 22px; }
.app-wave span { width: 5px; border-radius: 3px; background: var(--blue); animation: wave 1.1s var(--ease) infinite; }
.app-wave span:nth-child(1){ height: 14px; animation-delay: 0s; }
.app-wave span:nth-child(2){ height: 26px; animation-delay: .1s; background: var(--teal); }
.app-wave span:nth-child(3){ height: 36px; animation-delay: .2s; }
.app-wave span:nth-child(4){ height: 22px; animation-delay: .3s; background: var(--coral); }
.app-wave span:nth-child(5){ height: 32px; animation-delay: .4s; }
.app-wave span:nth-child(6){ height: 18px; animation-delay: .5s; background: var(--teal); }
.app-wave span:nth-child(7){ height: 12px; animation-delay: .6s; }
@keyframes wave { 0%,100% { transform: scaleY(.5); } 50% { transform: scaleY(1); } }
.app-mic {
  position: absolute; bottom: -24px; left: 50%; transform: translateX(-50%);
  width: 58px; height: 58px; border-radius: 50%; border: 4px solid var(--bg);
  background: var(--coral); color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 18px rgba(255, 107, 74, 0.45);
}
.app-progress { margin-top: 34px; background: var(--surface); border-radius: var(--radius-sm); padding: 14px 16px; box-shadow: var(--shadow-sm); }
.app-progress-row { display: flex; justify-content: space-between; font-size: 0.92rem; margin-bottom: 8px; }
.app-progress-row strong { color: var(--coral); }
.app-bar { height: 9px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.app-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--teal), var(--blue)); border-radius: 999px; }

.float {
  position: absolute; background: var(--surface); border-radius: 14px; padding: 11px 16px;
  font-weight: 700; font-size: 0.95rem; box-shadow: var(--shadow); white-space: nowrap;
  display: inline-flex; align-items: center; gap: 7px;
}
.float-ico { width: 20px; height: 20px; object-fit: contain; flex: none; }
/* The phone is centred in .hero-visual; anchor the badge to that centre so it
   always sits just left of the phone (no overlap) regardless of viewport width. */
/* Both badges anchored to the centre (the phone is centred) so each keeps an equal
   ~20px gap from the phone at any viewport width. Phone is 290px wide → its edges
   sit at 50% ∓ 145px; +20px gap puts the streak's right edge and the good's left
   edge symmetrically. */
.float-streak { top: 168px; left: calc(50% - 330px); color: var(--ink); animation: bob 4s ease-in-out infinite; }
.float-good { bottom: 120px; left: calc(50% + 165px); color: var(--teal); animation: bob 4.6s ease-in-out infinite .6s; }
/* "racha de 12 días" is wider than "12-day streak", so nudge it left on ES to
   keep the same breathing room from the phone. */
html[lang="es"] .float-streak { left: calc(50% - 375px); }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
/* Hide the floating badges on narrower desktops, where the hero column is too tight
   to place them beside the phone without crowding the text. */
@media (max-width: 1100px) { .float { display: none; } }

/* ---------- Strip ---------- */
.strip { padding: 8px 0 18px; }
.strip-inner {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
  background: var(--surface); border: 1px solid var(--surface-2); border-radius: var(--radius);
  padding: 26px 28px; box-shadow: var(--shadow-sm);
}
.strip-item { display: flex; flex-direction: column; gap: 2px; }
.strip-item strong { font-size: 1.1rem; }
.strip-item span { color: var(--ink-soft); font-size: 0.95rem; }
.strip-item + .strip-item { border-left: 1px solid var(--surface-2); padding-left: 28px; }

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section-tint { background: var(--surface); }
.section-lede { font-size: 1.25rem; color: var(--ink-soft); margin-top: 18px; }
.section-head { margin-bottom: 52px; }
.section-head h2 { max-width: 22ch; margin: 0 auto; }

/* ---------- Steps ---------- */
.steps { list-style: none; padding: 0; margin: 0 0 48px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; counter-reset: step; }
.step { background: var(--bg); border: 1px solid var(--surface-2); border-radius: var(--radius); padding: 34px 28px; position: relative; }
.section-tint .step { background: var(--surface); box-shadow: var(--shadow-sm); border-color: transparent; }
.step-num {
  width: 48px; height: 48px; border-radius: 14px; background: var(--blue); color: #fff;
  font-weight: 800; font-size: 1.3rem; display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
}
.step:nth-child(2) .step-num { background: var(--teal); }
.step:nth-child(3) .step-num { background: var(--coral); }
.step h3 { margin-bottom: 10px; }
.step p { color: var(--ink-soft); }

/* ---------- Scroll progress bar ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 200;
  background: linear-gradient(90deg, var(--blue), var(--teal), var(--coral));
  transform: scaleX(0); transform-origin: 0 50%; will-change: transform;
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Therapy areas ---------- */
.section-sub { color: var(--ink-soft); font-size: 1.08rem; margin: 14px auto 0; max-width: 46ch; }
.practice { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.practice-item {
  position: relative; overflow: hidden; cursor: pointer; font-family: inherit;
  background: var(--surface); border: 1px solid var(--surface-2); border-radius: var(--radius);
  padding: 26px 18px; min-height: 218px; text-align: center; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.practice-item:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.practice-face { display: flex; flex-direction: column; align-items: center; gap: 6px; transition: opacity .3s var(--ease), transform .3s var(--ease); }
.practice-ico {
  display: flex; align-items: center; justify-content: center;
  width: 76px; height: 76px; border-radius: 22px; background: var(--blue-tint); margin-bottom: 10px;
}
.practice-ico img { width: 54px; height: 54px; object-fit: contain; }
.practice-item:nth-child(4n+2) .practice-ico { background: var(--teal-tint); }
.practice-item:nth-child(4n+3) .practice-ico { background: var(--coral-tint); }
.practice-item:nth-child(4n) .practice-ico { background: var(--surface-2); }
.practice-name { font-weight: 700; font-size: 1.08rem; color: var(--ink); line-height: 1.25; }
.practice-tag { color: var(--blue); font-weight: 600; font-size: 0.92rem; }

/* Professional description — flips over the card on hover / focus / tap */
.practice-pop {
  position: absolute; inset: 0; padding: 22px 20px; border-radius: inherit;
  background: linear-gradient(150deg, var(--navy-2), var(--navy-1));
  color: #dbe2f4; display: flex; flex-direction: column; justify-content: center; gap: 8px;
  opacity: 0; transform: translateY(10px); pointer-events: none; overflow-y: auto;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.practice-pop-name { font-weight: 800; color: #fff; font-size: 1rem; }
.practice-pop-text { font-size: 0.92rem; line-height: 1.5; }
.practice-item:hover .practice-pop,
.practice-item:focus-visible .practice-pop,
.practice-item.open .practice-pop { opacity: 1; transform: none; pointer-events: auto; }
.practice-item:hover .practice-face,
.practice-item:focus-visible .practice-face,
.practice-item.open .practice-face { opacity: 0; transform: translateY(-8px); }

/* ---------- Features ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature {
  background: var(--surface); border: 1px solid var(--surface-2); border-radius: var(--radius);
  padding: 32px 28px; box-shadow: var(--shadow-sm); transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature-ico { width: 56px; height: 56px; border-radius: 16px; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.feature-ico svg { width: 28px; height: 28px; }
.ico-blue { background: var(--blue-tint); color: var(--blue); }
.ico-teal { background: var(--teal-tint); color: var(--teal); }
.ico-coral { background: var(--coral-tint); color: var(--coral); }
.feature h3 { margin-bottom: 10px; }
.feature p { color: var(--ink-soft); }

/* ---------- Stories / testimonials carousel ---------- */
.stories { position: relative; max-width: 980px; margin: 0 auto; }
.stories-track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  border-radius: var(--radius-lg); box-shadow: var(--shadow); background: var(--surface);
  -ms-overflow-style: none; scrollbar-width: none;
}
.stories-track::-webkit-scrollbar { display: none; }
.story {
  flex: 0 0 100%; scroll-snap-align: center;
  display: grid; grid-template-columns: 1fr 1fr; min-height: 440px;
}
.story-photo { position: relative; overflow: hidden; background: var(--surface-2); }
.story-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.story-body { padding: 46px 52px; display: flex; flex-direction: column; justify-content: center; }
.story-mark { font-size: 4rem; line-height: .4; color: var(--coral); font-weight: 800; height: 34px; }
.story-quote { font-size: 1.45rem; line-height: 1.5; font-weight: 600; color: var(--ink); margin: 12px 0 24px; padding: 0; border: 0; }
.story-by { display: flex; flex-direction: column; gap: 2px; }
.story-by strong { font-size: 1.1rem; color: var(--ink); }
.story-by span { color: var(--ink-soft); font-size: 0.98rem; }

.stories-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 52px; height: 52px; border-radius: 50%; background: var(--surface);
  border: 1px solid var(--surface-2); box-shadow: var(--shadow); color: var(--ink);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  transition: transform .15s var(--ease), color .15s var(--ease);
}
.stories-arrow:hover { color: var(--blue); transform: translateY(-50%) scale(1.07); }
.stories-prev { left: -24px; }
.stories-next { right: -24px; }

.stories-dots { display: flex; justify-content: center; gap: 10px; margin-top: 26px; }
.stories-dots button {
  width: 10px; height: 10px; padding: 0; border: 0; border-radius: 50%;
  background: var(--surface-2); cursor: pointer; transition: background .2s var(--ease), transform .2s var(--ease);
}
.stories-dots button:hover { background: var(--ink-soft); }
.stories-dots button.active { background: var(--blue); transform: scale(1.3); }

/* ---------- Caregivers / navy ---------- */
.section-navy { background: linear-gradient(140deg, var(--navy-1), var(--navy-2)); }
.split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.on-navy { color: #fff; max-width: 18ch; }
.on-navy-soft { color: #cfe0e2; font-size: 1.18rem; margin: 18px 0 26px; }
.check-list { list-style: none; padding: 0; margin: 0 0 32px; display: grid; gap: 14px; }
.check-list li { position: relative; padding-left: 36px; color: #eaf4f0; font-weight: 500; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 1px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 15px no-repeat;
}
.quote-card { background: var(--surface); border-radius: var(--radius-lg); padding: 40px 36px; box-shadow: var(--shadow-lg); position: relative; }
.quote-mark { font-size: 5rem; line-height: .6; color: var(--coral); font-weight: 800; height: 40px; }
.quote-card p { font-size: 1.32rem; font-weight: 600; color: var(--ink); margin: 10px 0 24px; }
.quote-by { display: flex; align-items: center; gap: 12px; color: var(--ink-soft); font-weight: 600; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 14px; }
.faq details {
  background: var(--surface); border: 1px solid var(--surface-2); border-radius: var(--radius-sm);
  padding: 4px 24px; box-shadow: var(--shadow-sm); transition: box-shadow .2s var(--ease);
}
.faq details[open] { box-shadow: var(--shadow); }
.faq summary {
  list-style: none; cursor: pointer; font-weight: 700; font-size: 1.15rem; padding: 20px 36px 20px 0;
  position: relative; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-size: 1.6rem; font-weight: 400; color: var(--blue); transition: transform .2s var(--ease);
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--ink-soft); padding: 0 0 22px; margin-top: -4px; }

/* ---------- CTA band ---------- */
.cta-band {
  margin: 0 24px 64px; border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--blue), #2f8d9c);
  padding: 72px 24px; box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 120%, rgba(255,255,255,.18), transparent 50%);
}
.cta-band .container { position: relative; }
.cta-icon { margin: 0 auto 22px; border-radius: 20px; box-shadow: var(--shadow); }
.cta-band h2 { color: #fff; }
.cta-band p { color: #e7f1f0; font-size: 1.25rem; max-width: 46ch; margin: 16px auto 32px; }
.cta-band .btn-primary { background: #fff; color: var(--blue); box-shadow: 0 12px 26px rgba(0,0,0,.18); }
.cta-band .btn-primary:hover { background: #fff; color: var(--blue-dark); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #c9d2cf; padding: 64px 0 36px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand .brand { margin-bottom: 16px; }
.footer-brand .brand-tile { width: 44px; height: 44px; border-radius: 12px; }
/* Wordmark reads white on the dark footer (the green gradient is for light backgrounds). */
.footer-brand .brand-word { background: none; -webkit-text-fill-color: #fff; color: #fff; }
.footer-brand p { max-width: 28ch; color: #a8b0ac; }
.footer-col h4 { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.footer-col a { display: block; color: #c9d2cf; padding: 6px 0; font-weight: 500; }
.footer-col a:hover { color: #fff; }
.footer-bottom { margin-top: 48px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.1); display: flex; flex-wrap: wrap; gap: 8px 32px; justify-content: space-between; align-items: center; }
.footer-bottom p { color: #9aa39e; font-size: 0.9rem; }
.footer-note { max-width: 52ch; }

/* ---------- Responsive ---------- */
/* Collapse the desktop nav to a hamburger before it gets cramped
   (the ES labels are longer, so this needs headroom above 900px). */
@media (max-width: 1150px) {
  .nav, .header-cta { display: none; }
  .nav-toggle { display: flex; }
  .mobile-nav:not([hidden]) { display: flex; }
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { display: none; } /* phone/video preview hidden on mobile — too large */
  .lede { max-width: none; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .on-navy, .on-navy-soft { max-width: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  body { font-size: 17px; }
  .section { padding: 60px 0; }
  /* Strip → four separate, roomy tiles (2×2) instead of one cramped divided card */
  .strip { padding: 0 0 10px; }
  .strip-inner {
    grid-template-columns: 1fr 1fr; gap: 12px;
    background: transparent; border: none; box-shadow: none; padding: 0;
  }
  .strip-item {
    background: var(--surface); border: 1px solid var(--surface-2);
    border-radius: var(--radius-sm); box-shadow: var(--shadow-sm);
    padding: 18px 16px; gap: 4px;
  }
  .strip-item strong { font-size: 1.02rem; line-height: 1.25; }
  .strip-item span { font-size: 0.92rem; }
  .strip-item + .strip-item { border-left: none; padding-left: 16px; }
  .steps, .features { grid-template-columns: 1fr; }
  .practice { grid-template-columns: 1fr 1fr; gap: 14px; }
  .practice-item { min-height: 236px; padding: 24px 14px; }
  .practice-pop { padding: 18px 15px; }
  .practice-pop-text { font-size: 0.86rem; line-height: 1.45; }
  .section-head { margin-bottom: 38px; }
  .float { display: none; }
  /* Stories → stack photo on top, quote below; swipe + dots (arrows hidden) */
  .story { grid-template-columns: 1fr; min-height: 0; }
  .story-photo { height: 220px; }
  .story-body { padding: 26px 24px 30px; }
  .story-mark { font-size: 3.2rem; }
  .story-quote { font-size: 1.18rem; margin: 8px 0 18px; }
  .stories-arrow { display: none; }
}

@media (max-width: 420px) {
  .container { padding: 0 18px; }
  .cta-band { margin: 0 16px 48px; padding: 56px 20px; }
  .hero-actions .btn { width: 100%; }
}

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* =========================================================
   Legal pages (privacy / terms)
   ========================================================= */
.legal-head {
  position: sticky; top: 0; z-index: 100;
  background: rgba(246, 241, 233, 0.92);
  backdrop-filter: saturate(140%) blur(12px); -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--surface-2);
}
.legal-head-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 72px; }
.legal-head .brand img { height: 40px; width: auto; }

.legal { padding: 48px 0 84px; }
.legal .container { max-width: 820px; }
.legal h1 { font-size: clamp(2rem, 5vw, 2.8rem); margin-bottom: 6px; }
.legal .effective { color: var(--ink-soft); font-weight: 600; margin-bottom: 14px; }
.legal .intro { color: var(--ink-soft); font-size: 1.05rem; margin-bottom: 8px; }
.legal hr { border: none; border-top: 1px solid var(--surface-2); margin: 26px 0 6px; }
.legal h2 { font-size: 1.4rem; margin: 38px 0 12px; letter-spacing: -0.01em; }
.legal h3 { font-size: 1.12rem; margin: 22px 0 8px; color: var(--ink); }
.legal p { color: var(--ink-soft); line-height: 1.75; margin-bottom: 14px; }
.legal ul { color: var(--ink-soft); margin: 0 0 16px; padding-left: 22px; line-height: 1.7; }
.legal li { margin-bottom: 8px; }
.legal strong { color: var(--ink); font-weight: 700; }
.legal a { color: var(--blue); font-weight: 600; }
.legal a:hover { color: var(--blue-dark); }
.legal .contact {
  background: var(--surface); border: 1px solid var(--surface-2); border-radius: var(--radius);
  padding: 22px 26px; box-shadow: var(--shadow-sm); margin-top: 6px;
}
.legal .contact p { margin-bottom: 4px; }
.legal .back-top { display: inline-block; margin-top: 36px; font-weight: 700; }
