/* =========================================================
   Ameya Health — landing page (from Figma "AmeyaHealth landing page revised 22 sep")
   Design canvas: 1440px wide. Content column: 1196px (1236 incl. 20px gutters).
   ========================================================= */

/* ---------- fonts (self-hosted, SIL Open Font License) ---------- */
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/montserrat-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/montserrat-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/montserrat-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Montserrat'; font-style: italic; font-weight: 600; font-display: swap; src: url('../fonts/montserrat-latin-600-italic.woff2') format('woff2'); }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/montserrat-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 800; font-display: swap; src: url('../fonts/montserrat-latin-800-normal.woff2') format('woff2'); }
@font-face { font-family: 'Cousine'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/cousine-latin-700-normal.woff2') format('woff2'); }

:root {
  --navy: #102f60;          /* headings */
  --ink: #23302c;           /* dark text in cards */
  --muted: #7884ad;         /* body copy */
  --muted-2: #6785aa;       /* hero/CTA lead */
  --teal: #24839a;          /* kickers, pills */
  --teal-bg: #e1f7fb;
  --blue: #1555b6;          /* buttons, footer */
  --indigo: #070c7e;
  --coral: #f2846b;
  --green: #2fbf9a;
  --lilac: #b9a6d9;
  --gold: #e8c86a;
  --cream: #fffdf9;
  --card-border: rgba(35, 48, 44, .08);
  --gutter: 20px;
  --font: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--navy);
  background: #fff;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: none; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, figure, blockquote { margin: 0; }
ul { padding: 0; list-style: none; }

.wrap {
  width: 100%;
  max-width: 1236px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- shared type ---------- */
.kicker {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 14px; line-height: 19.5px;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--teal);
}
.kicker::before { content: ""; width: 28px; height: 1px; background: currentColor; flex: none; }
.kicker--coral { color: var(--coral); }
.kicker--center { justify-content: center; }

.h2 {
  padding-top: 16px;
  font-weight: 700; font-size: 40px; line-height: 1.22; letter-spacing: -.7px;
  color: var(--navy);
}
.h2--xb { font-weight: 800; }
.h2--36 { font-size: 36px; padding-top: 0; }
.lead {
  padding-top: 20px;
  font-weight: 600; font-size: 18px; line-height: 1.22;
  color: var(--muted);
}
.center-head { max-width: 720px; margin: 0 auto; text-align: center; }
.h2c {
  padding-top: 16px;
  font-weight: 800; font-size: 36px; line-height: 44.8px; letter-spacing: -.8px;
  color: var(--ink);
}
.leadc {
  padding-top: 20px;
  font-weight: 400; font-size: 18px; line-height: 27.2px;
  color: #4d574f;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  border-radius: 999px; background: var(--blue); color: #fff;
  font-weight: 700; font-size: 18px; line-height: 24px; white-space: nowrap;
  transition: background .2s, transform .2s;
}
.btn img { width: 20px; height: 20px; }
.btn:hover { background: #0f479c; }
.btn:focus-visible { outline: 3px solid #9ec2ff; outline-offset: 3px; }
.btn--primary {
  padding: 16px 28px;
  filter: drop-shadow(0 14px 17px rgba(18, 86, 75, .28));
}
.btn--nav {
  height: 56px; width: 148px; justify-content: center;
  padding: 12px 22px; border: 1.6px solid var(--blue);
  font-weight: 600;
}

/* ---------- scaled "stage" for pixel-positioned collages ---------- */
.stage-wrap { position: relative; width: 100%; aspect-ratio: var(--w) / var(--h); }
.stage {
  position: absolute; left: 0; top: 0;
  width: calc(var(--w) * 1px); height: calc(var(--h) * 1px);
  transform-origin: 0 0; transform: scale(var(--scale, 1));
}

/* =========================================================
   NAVIGATION
   ========================================================= */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: box-shadow .3s, background .3s;
}
.nav.scrolled { background: rgba(255, 255, 255, .94); box-shadow: 0 8px 30px -12px rgba(16, 47, 96, .22); }
.nav__inner { transition: height .3s; }
.nav.scrolled .nav__inner { height: 76px; }
section[id] { scroll-margin-top: 76px; }
.nav__inner {
  max-width: 1440px; height: 100px; margin: 0 auto;
  padding: 0 102px;
  display: flex; align-items: center; gap: 39px;
}
.nav__logo { flex: 1 0 0; height: 33px; position: relative; }
.nav__logo img { position: absolute; left: 0; top: -4px; width: 196.8px; height: 37.5px; }
.nav__menu { display: flex; align-items: center; gap: 39px; }
.nav__menu > a:not(.btn) {
  font-weight: 500; font-size: 18px; line-height: 24.75px; color: #1d2725; white-space: nowrap;
}
.nav__menu > a:not(.btn):hover { color: var(--blue); }
.nav__toggle { display: none; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative; overflow: hidden;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 1440 705' xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='none'><rect x='0' y='0' height='100%' width='100%' fill='url(%23grad)' opacity='1'/><defs><radialGradient id='grad' gradientUnits='userSpaceOnUse' cx='0' cy='0' r='10' gradientTransform='matrix(4.4057 69.466 -141.89 8.2568 887.5 172.42)'><stop stop-color='rgba(219,242,255,1)' offset='0'/><stop stop-color='rgba(225,244,255,0.5)' offset='0.53962'/><stop stop-color='rgba(255,255,255,0.3)' offset='1'/></radialGradient></defs></svg>");
  background-size: 100% 100%;
}
.hero__inner { position: relative; max-width: 1440px; height: 705px; margin: 0 auto; }
.hero__text { position: relative; z-index: 2; width: 582px; padding: 124px 0 0 120px; box-sizing: content-box; }

.badge {
  display: inline-flex; align-items: center; gap: 8px;
  height: 31.48px; padding: 6px 16px; border-radius: 999px;
  background: #e1f7fb; color: var(--teal);
  font-weight: 700; font-size: 14px; line-height: 19.5px; white-space: nowrap;
}
.badge__icon { position: relative; width: 20px; height: 20px; flex: none; }
.badge__icon { display: flex; align-items: center; }
.badge__icon img { width: 20px; height: auto; }

.hero__title {
  padding-top: 12px; min-height: 176px;
  font-weight: 700; font-size: 62px; line-height: 1.22; color: var(--navy);
}
.hero__lead {
  padding-top: 12px;
  font-weight: 600; font-size: 18px; line-height: 28px; color: var(--muted-2);
}
.hero__sub {
  padding-top: 28px; max-width: 393px;
  font-weight: 600; font-size: 18px; line-height: 28px; color: var(--navy);
}
.hero__cta { display: flex; align-items: center; height: 95px; padding-top: 36px; }

.hero__visual { position: absolute !important; right: 0; top: 40px; width: min(850px, 59%); }
.hero__visual .stage > * { position: absolute; left: var(--x); top: var(--y); }

.h-blob { --x: 669px; --y: 467px; width: 113.86px; height: 113.86px; display: flex; align-items: center; justify-content: center; }
.h-blob span { width: 96px; height: 96px; border-radius: 50%; background: #d3d4f2; opacity: .7; transform: rotate(12deg); }
.h-backdrop { --x: 145px; --y: 38px; width: 828px; height: 473px; border-radius: 236.5px; overflow: hidden; }
.h-backdrop img { width: 100%; height: 100%; object-fit: cover; }

.glow { width: var(--s); height: var(--s); pointer-events: none; }
.glow img { position: absolute; inset: var(--i); width: calc(100% - 2 * var(--i)); height: calc(100% - 2 * var(--i)); }
.glow--oval { width: 269px; height: 193px; }
.glow--oval img { inset: -23.32% -16.73%; width: 133.46%; height: 146.64%; }

.device > div, .device { overflow: visible; }
.h-phone-sm { --x: 637.32px; --y: 208.05px; width: 154.33px; height: 268.09px; display: flex; align-items: center; justify-content: center; }
.h-phone-sm > div { position: relative; width: 145.77px; height: 263.45px; transform: rotate(1.88deg); filter: drop-shadow(0 4px 4px rgba(0,0,0,.25)); flex: none; }
/* image is pre-cropped to the front of the phone (the source mockup also showed its back) */
.h-phone-sm img { position: absolute; left: 0; top: 0; width: 100%; height: 100%; }
.h-laptop { --x: 26px; --y: 129px; width: 572px; height: 383px; overflow: hidden; }
.h-laptop img { position: absolute; left: -14.14%; top: -28.47%; width: 126.86%; height: 142.17%; }
/* updated 23 Sep: Figma now uses a ready-made phone group (153 x 315.7) instead of a cropped mockup */
.h-phone-lg { --x: 475px; --y: 177px; width: 153px; height: 315.67px; }
.h-phone-lg > div { position: relative; width: 100%; height: 100%; }
.h-phone-lg img { position: absolute; left: 0; top: 0; width: 100%; height: 100%; }

/* metric cards */
.mcard {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 16px; background: var(--cream);
  filter: drop-shadow(0 18px 19px rgba(35, 48, 44, .3));
}
.mcard--nutrition { padding: 10px 12px; }
.mcard__ico { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex: none; }
.mcard__ico--sleep { background: #e7e0f2; }
.mcard__thumb { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex: none; }
.mcard__txt { display: flex; flex-direction: column; white-space: nowrap; }
.mcard__label { font-weight: 600; font-size: 9px; line-height: 13.5px; color: #8a938c; }
.mcard__label--strong { font-weight: 800; font-size: 10px; line-height: 15px; color: var(--ink); }
.mcard__value { font-weight: 800; font-size: 13px; line-height: 19.5px; color: var(--ink); }
.mcard__note { font-weight: 400; font-size: 8.5px; line-height: 12.75px; color: #8a938c; }
.mcard__note--sm { font-size: 8px; line-height: 12px; }
.mcard__note--up { font-weight: 700; font-size: 8px; line-height: 12px; color: var(--green); }
.mcard__pct { font-weight: 800; font-size: 12px; line-height: 18px; color: var(--indigo); }

.bars { display: flex; align-items: flex-end; gap: 2px; }
.bars i { display: block; border-radius: 999px; }
.bars--sleep { height: 24px; width: 43.9px; padding-left: 4px; }
.bars--sleep i { width: 4px; background: #d8d0ea; }
.bars--sleep i.on { background: #b9a6d9; }
.bars--activity { height: 28px; }
.bars--activity i { width: 6px; background: #bfe8dc; }
.bars--activity i.on { background: var(--green); }
.bars--frag { height: 24px; }
.bars--frag i { width: 4px; background: #bcc6f0; }
.bars--frag i.on { background: var(--indigo); }

/* =========================================================
   JOURNEY TIMELINE
   ========================================================= */
.journey { padding: 56px 0 56px; }
.journey .wrap { max-width: 1232px; }
.journey__title { max-width: 970px; margin: 0 auto; text-align: center; }
.journey__row {
  position: relative; margin: 46px auto 0; max-width: 1192px; height: 312px;
  display: grid; grid-template-columns: 238fr 239fr 238fr 239fr 238fr;
}
.journey__line { position: absolute; left: 9.522%; top: 78.5px; width: 80.453%; height: 3px; }
.jdot { position: absolute; left: var(--x); top: 68px; width: 24.91px; height: 24.91px; }
.jdot > img { width: 100%; height: 100%; }
.jdot i { position: absolute; left: 6.23px; top: 6.23px; width: 12.45px; height: 12.45px; }
.jdot i img { position: absolute; inset: -7.69%; width: 115.38%; height: 115.38%; }

.jstep { position: relative; padding: 8px 12px 0; display: flex; flex-direction: column; align-items: center; text-align: center; }
.jstep__photo {
  position: relative; width: 140px; height: 140px; border-radius: 50%; overflow: hidden; flex: none;
  box-shadow: 0 0 0 5px var(--cream), 0 0 0 8px rgba(7, 12, 126, .33), 0 20px 40px -18px rgba(35, 48, 44, .4);
}
.jstep__photo img { position: absolute; object-fit: cover; }
.jstep h3 { padding-top: 24px; font-weight: 700; font-size: 20px; line-height: 22.5px; color: var(--navy); white-space: nowrap; }
.jstep p { padding-top: 18px; font-weight: 600; font-size: 16px; line-height: 22px; color: var(--muted); }

/* =========================================================
   STATS
   ========================================================= */
.stats { position: relative; max-width: 1440px; margin: 56px auto 0; overflow-x: clip; padding: 0 124px 0 102px; }
.stats__card {
  position: relative; z-index: 1;
  max-width: 1216px; min-height: 210px; border-radius: 32px; background: #f2f9ff;
  display: grid; grid-template-columns: repeat(4, 246px); column-gap: 32px; justify-content: start;
  padding: 28px 24px 25px 56px;
}
.stat { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.stat__ico {
  width: 64px; height: 64px; border-radius: 24px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(133.92deg, #def2fb 36.65%, #e9ecfe 78.08%);
}
.stat strong { font-weight: 700; font-size: 46px; line-height: 46px; letter-spacing: -1px; color: var(--navy); white-space: nowrap; }
.stat > span:last-child { padding-top: 8px; font-weight: 600; font-size: 18px; line-height: 22.5px; color: var(--muted); white-space: nowrap; }

.deco-butterfly-1 { position: absolute; left: 1303px; top: 144.9px; width: 214.87px; height: 208.51px; pointer-events: none; }
.deco-butterfly-1 img { position: absolute; top: 0; right: 0; left: -42.13%; bottom: -108.52%; width: auto; height: auto; }

/* =========================================================
   THE PROBLEM
   ========================================================= */
.problem { padding: 112px 0 0; overflow-x: clip; }
.problem__box {
  margin-top: 46px; background: #fff; padding: 20px 0;
  display: flex; flex-direction: column; align-items: center; gap: 20px;
}
.settings { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: center; }
.setting {
  padding: 7.79px 18.17px; border-radius: 12.98px; background: var(--bg); color: var(--c);
  font-weight: 700; font-size: 18px; line-height: 25.31px; white-space: nowrap;
}
.settings > i { font-style: normal; font-weight: 800; font-size: 20px; line-height: 31.15px; letter-spacing: 2.6px; color: #c3ccc4; }

.collage { max-width: 1144px; margin: 32px auto 18px; }
@media (min-width: 1200px) { .collage { left: 12px; } }
.collage .stage > * { position: absolute; left: var(--x); top: var(--y); }
.cline { width: var(--cw); height: var(--ch); }

.frag {
  width: var(--w);
  display: flex; flex-direction: column; align-items: flex-start;
  padding: 10px 12px; border-radius: 16px; background: var(--cream);
  border: 1.263px solid rgba(35, 48, 44, .05);
  filter: drop-shadow(0 16px 17px rgba(35, 48, 44, .35));
}
.frag__head { display: flex; align-items: center; gap: 6px; }
.frag__head b { font-weight: 800; font-size: 14px; line-height: 18.75px; letter-spacing: -.2px; color: var(--ink); white-space: nowrap; }
.frag__ico { width: 24px; height: 24px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex: none; }
.frag__ico img { width: 14px; height: 14px; }
.frag__video { position: relative; margin-top: 8px; width: 100%; height: 62px; border-radius: 10px; overflow: hidden; }
.frag__video img { width: 100%; height: 100%; object-fit: cover; }
.frag__video--wide { width: 187px; }
.play {
  position: absolute; left: 50%; top: 50%; width: 28px; height: 28px; margin: -14px 0 0 -14px;
  border-radius: 50%; background: rgba(255, 253, 249, .9);
}
.play::after {
  content: ""; position: absolute; left: 10.21px; top: 10.21px; width: 7.58px; height: 7.58px;
  border-left: 7.58px solid var(--navy); border-top: 3.79px solid transparent; border-bottom: 3.79px solid transparent;
  box-sizing: border-box;
}
.checks { padding-top: 8px; }
.checks li {
  display: flex; align-items: center; gap: 6px; padding-top: 4px;
  font-weight: 600; font-size: 10.5px; line-height: 15.75px; color: #5c655e; white-space: nowrap;
}
.checks li:first-child { padding-top: 0; }
.checks li::before {
  content: ""; width: 14px; height: 14px; border-radius: 4px; flex: none;
  background: var(--cc) url("../assets/img/frag-icon-check.svg") center / 10px 10px no-repeat;
}
.frag__wear { display: flex; align-items: center; gap: 8px; padding-top: 8px; }
.hr {
  display: flex; align-items: center; gap: 4px; padding: 6px 8px; border-radius: 10px; background: #ffece7;
  font-weight: 800; font-size: 12px; line-height: 18px; color: var(--ink);
}
.bars--frag { width: 86px; }
.frag__msg { display: flex; align-items: center; gap: 8px; padding: 8px 0 0 11.5px; }
.frag__msg > img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex: none; }
.lines { display: flex; flex-direction: column; gap: 4px; }
.lines i { display: block; height: 6px; border-radius: 999px; background: #e2e6ec; }
.frag__edu { display: flex; align-items: center; gap: 8px; padding: 8px 0 0 5.5px; }
.frag__edu .thumb { position: relative; width: 64px; height: 62px; border-radius: 10px; overflow: hidden; flex: none; }
.frag__edu .thumb img { position: absolute; left: -9.99%; top: 0; width: 145.26%; height: 100%; }
.frag__mon { display: flex; align-items: center; gap: 8px; padding: 12px 0 4px 17px; }
.reading {
  width: 108px; padding: 6px 8px; border-radius: 8px; background: var(--cream);
  border: 1.263px solid rgba(35, 48, 44, .1);
  font-family: 'Cousine', ui-monospace, monospace; font-weight: 700; font-size: 15px; line-height: 22.5px; letter-spacing: 1px; color: var(--ink);
}
.frag__mon .bars--frag { width: auto; }

.problem__woman { --x: 428px; --y: 179.57px; width: 241px; height: 237px; overflow: hidden; box-shadow: 0 20px 44px -14px rgba(7, 12, 126, .08); }
.problem__woman img { position: absolute; left: -10.92%; top: -.03%; width: 130.88%; height: 100.05%; }
.collage__caption {
  --x: 0px; --y: 445.15px; width: 1172px; text-align: center;
  font-weight: 600; font-style: italic; font-size: 16px; line-height: 24px; color: var(--muted);
}

/* =========================================================
   ONE ADAPTABLE PLATFORM
   ========================================================= */
.platform { margin-top: 71px; background: #f6f8ff; padding: 112px 0 99px; }
.platform__title { width: min(1225px, calc(100vw - 40px)); max-width: none; }
.platform .h2 + .lead, .continuum .h2 + .lead { margin-top: -5px; }
.steps { display: grid; grid-template-columns: 385fr 386fr 385fr; column-gap: 20px; margin-top: 75px; }
.step__text { min-height: 255px; }
.step__num { display: block; padding-top: 1.59px; font-weight: 800; font-size: 16px; line-height: 22.5px; letter-spacing: 2px; color: var(--teal); }
.step h3 { margin-top: 13px; max-width: 343px; font-weight: 700; font-size: 30px; line-height: 34.5px; letter-spacing: -.5px; color: var(--navy); }
.step p { position: relative; margin-top: 20px; max-width: 382px; font-weight: 600; font-size: 18px; line-height: 1.22; color: var(--muted); }
.step:nth-child(1) p { margin-top: 20px; }
.step__text { display: flex; flex-direction: column; }
.step__text h3 { min-height: 69px; }

.step__visual { position: relative; height: 504px; margin-top: 30px; }
.step__visual--clip { overflow: hidden; }
.phone { position: absolute; left: 50%; top: 13px; width: 231.62px; height: 477.88px; margin-left: -115.81px; }
.phone__frame { position: absolute; inset: 0; width: 100%; height: 100%; }
.phone__screen { position: absolute; left: 8.22px; top: 7.96px; width: 212.87px; height: 462.21px; object-fit: cover; }
.phone__screen--rounded { border-radius: 34px; }
.phone__screen--top { left: 8.43px; top: 8.1px; width: 212.05px; height: 461.93px; border-radius: 34px; }
.phone__watch { position: absolute; left: 7.81px; top: 386px; width: 174px; height: 164px; overflow: hidden; }
.phone__watch img { position: absolute; left: -22.81%; top: -.03%; width: 141.44%; height: 100.05%; }
.float-card {
  position: absolute; left: calc(50% + 0.5px); top: 478px; width: 145px;
  display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 16px; background: var(--cream);
  filter: drop-shadow(0 18px 19px rgba(35, 48, 44, .3));
  font-weight: 600; font-size: 12px; line-height: 14.25px; color: var(--muted);
}
.float-card__ico { width: 32px; height: 32px; border-radius: 50%; background: rgba(154, 243, 197, .25); display: flex; align-items: center; justify-content: center; flex: none; }

/* =========================================================
   CARE CONTINUUM
   ========================================================= */
.continuum { background: #fff; padding: 112px 0 101px; }
.cond-grid { margin-top: 75px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cond {
  position: relative; overflow: hidden;
  background: var(--cream); border: 2px solid var(--card-border); border-radius: 26px;
}
.cond__img { position: relative; aspect-ratio: 382 / 237; overflow: hidden; border-radius: 24px 24px 0 0; }
.cond__img img { position: absolute; }
.cond__media { position: relative; }
.cond__ico {
  position: absolute; left: 16px; top: calc(100% - 47px);
  width: 64px; height: 64px; border-radius: 21.5px; background: rgba(255, 253, 249, .92);
  display: flex; align-items: center; justify-content: center;
}
.cond__body { padding: 24px; min-height: 152.43px; }
.cond__body h3 { font-weight: 700; font-size: 20px; line-height: 28.5px; letter-spacing: -.3px; color: var(--navy); }
.path { display: flex; flex-wrap: nowrap; align-items: center; gap: 8px; min-height: 27px; }
.cond__body h3 + .path { margin-top: 14px; }
.path + .path { margin-top: 7.7px; }
.path span {
  padding: 4px 12px; border-radius: 999px; background: var(--teal-bg); color: var(--teal);
  font-weight: 600; font-size: 14px; line-height: 18.75px; white-space: nowrap;
}
.path i { width: 14px; height: 14px; background: url("../assets/img/icon-chevron.svg") center / contain no-repeat; flex: none; }

/* =========================================================
   FOR CLINICIANS
   ========================================================= */
.clinicians { padding: 112px 0 92px; }
.clinicians .h2 { min-height: 127px; }
.benefits {
  margin-top: 56px;
  display: grid; grid-template-columns: repeat(5, 213px); column-gap: 32px; justify-content: space-between;
  max-width: 1192px;
}
.benefit { position: relative; min-height: 345px; }
.benefit + .benefit::before { content: ""; position: absolute; left: -16px; top: 8px; width: 1px; height: 337px; background: rgba(35, 48, 44, .1); }
.benefit__num {
  width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--t); box-shadow: 0 0 0 4px var(--r);
  font-weight: 800; font-size: 20px; line-height: 30px; color: var(--c);
}
.benefit h3 { padding-top: 16px; font-weight: 700; font-size: 18px; line-height: 1.22; letter-spacing: -.3px; color: var(--navy); }
.benefit ul { padding-top: 16px; }
.benefit li {
  position: relative; padding-left: 14px; max-width: 213px;
  font-weight: 600; font-size: 16px; line-height: 1.22; color: var(--muted);
}
.benefit li + li { margin-top: 10px; }
.benefit li::before { content: ""; position: absolute; left: 0; top: 6px; width: 6px; height: 6px; border-radius: 50%; background: var(--c); }

.wave { position: relative; margin-top: 41px; max-width: 1192px; height: 150px; }
.wave__line { position: absolute; inset: 0; width: 100%; height: 100%; }
.wave__people { position: relative; height: 100%; display: grid; grid-template-columns: repeat(5, 1fr); }
.wave__people span {
  position: relative; place-self: center; width: 96px; height: 96px; border-radius: 50%; overflow: hidden;
  box-shadow: 0 14px 30px -12px rgba(35, 48, 44, .45), 0 0 0 4px var(--cream), 0 0 0 6px var(--ring);
}
.wave__people img { position: absolute; }

/* =========================================================
   ASSESSMENTS
   ========================================================= */
.assess { padding: 112px 0 123px; }
.assess .h2 { white-space: nowrap; }
.assess-grid { margin-top: 56px; display: grid; grid-template-columns: 385fr 386fr 385fr; gap: 20px; }
.acard {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--cream); border: 2px solid var(--card-border); border-radius: 26px;
}
.acard__head { padding: 24px; min-height: 160.42px; }
.acard__head--short { min-height: 161px; }
.acard__head h3 { font-weight: 700; font-size: 20px; line-height: 28.5px; letter-spacing: -.3px; color: var(--navy); white-space: nowrap; }
.tags { display: flex; flex-wrap: wrap; gap: 4px; }
.acard__head h3 + .tags { margin-top: 14px; }
.tags + .tags { margin-top: 8px; }
.tags span {
  height: 30.72px; padding: 6px 12px; border-radius: 999px; background: var(--teal-bg); color: var(--teal);
  font-weight: 600; font-size: 14px; line-height: 18.75px; white-space: nowrap;
}
.acard__img { position: relative; aspect-ratio: 382 / 381; overflow: hidden; margin-top: auto; }
.acard__img > img { position: absolute; object-fit: cover; }
.acard__ico {
  position: absolute; left: 12px; top: 12.58px; width: 64px; height: 64px; border-radius: 16px;
  background: rgba(255, 253, 249, .92); box-shadow: 0 8px 20px rgba(35, 48, 44, .4);
  display: flex; align-items: center; justify-content: center;
}

/* =========================================================
   PROGRAMMING & SUPPORT
   ========================================================= */
.programs { background: #edf7ff; padding: 101px 0 101px; }
.programs__body { display: flex; gap: 4px; margin-top: 0; min-height: 405px; }
.programs__text { flex: 0 0 483px; padding: 46px 56px 0 1px; }
.programs__text .h2 { max-width: 427px; }
.programs__text .lead { max-width: 427px; }
.programs__media { flex: 1 1 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding-top: 25px; max-width: 708px; }
.pcard__img {
  position: relative; aspect-ratio: 345 / 322; overflow: hidden; border-radius: 24px; background: #e3ded4;
  box-shadow: 0 26px 50px -28px rgba(35, 48, 44, .4);
}
.pcard__img img { position: absolute; }
.pcard figcaption {
  display: flex; align-items: center; justify-content: center; gap: 8px; padding-top: 16px; width: 92.6%;
  font-weight: 700; font-size: 18px; line-height: 23.25px; color: var(--ink);
}
.pcard figcaption i { width: 8px; height: 8px; border-radius: 50%; flex: none; }

/* =========================================================
   PARTNERSHIPS
   ========================================================= */
.partners { padding: 112px 0; }
.partner-grid { margin: 56px auto 0; max-width: 1196px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.partner {
  min-height: 255px; padding: 28px; border-radius: 24px; background: var(--cream); border: 2px solid var(--b);
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.partner__ico {
  width: 60px; height: 60px; border-radius: 16px; background: var(--t); flex: none;
  box-shadow: 0 0 0 1px var(--r), 0 18px 34px -16px var(--g);
  display: flex; align-items: center; justify-content: center;
}
.partner h3 { padding-top: 20px; width: 235px; margin: 0 -8px; min-height: 70px; font-weight: 700; font-size: 20px; line-height: 24.75px; color: var(--navy); }
.partner p { padding-top: 8px; max-width: 253px; margin: 0 -16px; font-weight: 600; font-size: 16px; line-height: 20.25px; color: var(--muted); }

/* =========================================================
   TESTIMONIALS
   ========================================================= */
.voices { position: relative; z-index: 2; background: var(--cream); padding: 112px 0 112px; }
/* carousel: horizontal scroll with snap; the track bleeds to the right edge of the window */
.carousel { margin-top: 58px; }
.quotes {
  display: flex; align-items: flex-start; gap: 28px;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  margin-right: calc((100% - 100vw) / 2); padding: 0 max(var(--gutter), calc((100vw - 100%) / 2)) 64px 0;
  margin-bottom: -40px; scrollbar-width: none;
}
.quotes::-webkit-scrollbar { display: none; }
.quotes:focus-visible { outline: 3px solid #9ec2ff; outline-offset: 6px; border-radius: 24px; }
.quote {
  flex: 0 0 min(691px, 86vw); scroll-snap-align: start;
  padding: 28px; border-radius: 24px; background: var(--cream); border: 2px solid var(--card-border);
  opacity: .7; transform: scale(.97); transform-origin: left top;
  transition: opacity .45s, transform .45s, box-shadow .45s;
}
.quote.is-active { opacity: 1; transform: none; box-shadow: 0 30px 30px -12px rgba(35, 48, 44, .21); }
.quote p { padding-top: 24px; max-width: 620px; font-weight: 500; font-size: 26px; line-height: 1.55; color: var(--ink); }
.quote cite { display: block; padding-top: 32px; font-style: normal; font-weight: 800; font-size: 18px; line-height: 25.5px; color: var(--ink); }
.carousel__nav { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 8px; }
.dots { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }
.dots button { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 999px; background: #d7d0c4; cursor: pointer; transition: width .3s, background .3s; }
.dots button.on { width: 28px; background: var(--blue); }
.carousel__arrow {
  width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--card-border); background: #fff; color: var(--blue);
  display: flex; align-items: center; justify-content: center; cursor: pointer; flex: none;
  transition: background .2s, color .2s, transform .2s;
}
.carousel__arrow:hover { background: var(--blue); color: #fff; transform: translateY(-2px); }
.carousel__arrow:disabled { opacity: .35; pointer-events: none; }
.deco-butterfly-2 {
  position: absolute; pointer-events: none;
  left: 85.42%; right: -6.73%; top: 79.83%; bottom: -16.9%;
}
.deco-butterfly-2 img { position: absolute; top: 0; right: 0; left: -29.5%; bottom: -69.45%; width: 129.5%; height: 169.45%; }
.voices { overflow-x: clip; overflow-y: visible; }

/* =========================================================
   CTA
   ========================================================= */
.cta { background: #edf7ff; padding: 86px 0 86px; overflow-x: clip; }
.cta__inner { max-width: 1104px; margin: 0 auto; display: flex; gap: 9px; align-items: flex-start; }
.cta__text { flex: 0 0 582px; min-height: 370px; display: flex; flex-direction: column; justify-content: center; }
.cta__title { padding-top: 24px; min-height: 122px; }
.cta__lead { padding-top: 24px; min-height: 80px; font-weight: 600; font-size: 18px; line-height: 28px; color: var(--muted-2); }
.cta__photo { flex: 0 1 513px; aspect-ratio: 513 / 381; border-radius: 32px; overflow: hidden; }
.cta__photo img { width: 100%; height: 100%; object-fit: cover; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { background: var(--blue); color: #b9bce6; }
.footer__inner { max-width: 1240px; margin: 0 auto; padding: 64px 24px; }
.footer__grid { display: grid; grid-template-columns: 341.1fr 243.63fr 243.65fr 243.63fr; column-gap: 40px; }
.footer__brand { grid-column: 1 / span 2; min-height: 197.66px; }
.footer__logo img { width: 191.6px; height: 36.5px; }
.footer__brand p { padding-top: 20px; font-size: 15px; line-height: 24px; }
.footer__mail { display: inline-block; margin-top: 24px; font-weight: 600; font-size: 14px; line-height: 21px; color: #8f93cf; }
.footer__mail:hover, .footer__links a:hover, .footer__bar a:hover { color: #fff; }
.footer__links { grid-column: 4; }
.footer__h { font-weight: 800; font-size: 14px; line-height: 21px; letter-spacing: .5px; color: #fff; }
.footer__links ul { padding-top: 16px; display: flex; flex-direction: column; gap: 7px; }
.footer__links a { font-size: 14.5px; line-height: 21.75px; }
.footer__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding-top: 24px; border-top: 1.2px solid rgba(255, 255, 255, .12);
}
.footer__bar p { font-size: 13.5px; line-height: 20.25px; color: #8f93cf; }
.footer__bar nav { display: flex; gap: 24px; }
.footer__bar a { font-weight: 600; font-size: 13.5px; line-height: 20.25px; }

/* =========================================================
   RESPONSIVE
   ========================================================= */

/* ---- below the 1440 design width ---- */
@media (max-width: 1439px) {
  .nav__inner { padding: 0 clamp(20px, 7vw, 102px); gap: clamp(20px, 2.7vw, 39px); }
  .nav__menu { gap: clamp(20px, 2.7vw, 39px); }
  .hero__text { padding-left: clamp(20px, 8.3vw, 120px); }
  .stats { padding: 0 var(--gutter); }
  .stats__card { margin: 0 auto; grid-template-columns: repeat(4, 1fr); column-gap: 24px; padding: 28px 32px 25px; }
  .deco-butterfly-1 { left: auto; right: -80px; }
}

@media (max-width: 1260px) {
  .partner-grid { grid-template-columns: repeat(2, 1fr); }
  .nav__menu > a:not(.btn) { font-size: 16px; }
  .hero__text { width: 46vw; }
  .hero__title { font-size: clamp(44px, 4.9vw, 62px); min-height: 0; }
  .journey__row { transform-origin: top center; }
  .benefits { grid-template-columns: repeat(5, 1fr); column-gap: 28px; }
  .benefit li { max-width: none !important; }
  .stat strong { font-size: 40px; }
  .stat > span:last-child { font-size: 16px; white-space: normal; }
  .quote p { font-size: 24px; }
  .cta__inner { padding: 0 var(--gutter); gap: 40px; }
  .cta__text { flex: 1 1 50%; }
}

/* ---- tablet ---- */
@media (max-width: 1023px) {
  .nav__toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; padding: 10px; border: 0; background: transparent; cursor: pointer;
  }
  .nav__toggle span { display: block; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .2s, opacity .2s; }
  .nav.open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.open .nav__toggle span:nth-child(2) { opacity: 0; }
  .nav.open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav__inner { height: 80px; }
  .nav__menu {
    display: none; position: absolute; left: 0; right: 0; top: 80px;
    flex-direction: column; align-items: flex-start; gap: 18px;
    padding: 20px var(--gutter) 28px; background: rgba(255, 255, 255, .97);
    box-shadow: 0 20px 30px -20px rgba(16, 47, 96, .25);
  }
  .nav.open .nav__menu { display: flex; }

  .hero__inner { height: auto; padding-bottom: 40px; }
  .hero__text { width: auto; max-width: 640px; padding: 48px var(--gutter) 0; }
  .hero__visual { position: relative !important; right: auto; top: auto; width: 100%; max-width: 850px; margin: 8px auto 0; }

  .journey__row { display: grid; grid-template-columns: repeat(3, 1fr); row-gap: 40px; height: auto; }
  .journey__line, .jdot { display: none; }

  .stats__card { grid-template-columns: repeat(2, 1fr); row-gap: 32px; }

  .platform__title { width: auto; }
  .steps { grid-template-columns: 1fr; row-gap: 64px; max-width: 520px; margin-left: auto; margin-right: auto; }
  .step__text { min-height: 0; }
  .step__text h3 { min-height: 0; }
  .step:first-child .step__visual { margin-bottom: 60px; }

  .cond-grid { grid-template-columns: repeat(2, 1fr); }
  .benefits { grid-template-columns: repeat(2, 1fr); row-gap: 40px; column-gap: 40px; }
  .benefit { min-height: 0; }
  .benefit + .benefit::before { display: none; }
  .wave { margin-top: 48px; }

  .assess .h2 { white-space: normal; }
  .assess-grid { grid-template-columns: repeat(2, 1fr); }

  .programs__body { flex-direction: column; gap: 32px; }
  .programs__text { flex: none; padding: 32px 0 0; }
  .programs__text .h2, .programs__text .lead { max-width: 640px; }
  .programs__media { max-width: none; padding-top: 0; }

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

  .cta__inner { flex-direction: column; align-items: stretch; }
  .cta__text { min-height: 0; }
  .cta__title, .cta__lead { min-height: 0; }
  .cta__photo { flex: none; width: 100%; }

  .footer__grid { grid-template-columns: 1fr auto; }
  .footer__brand { grid-column: 1; min-height: 0; padding-bottom: 40px; }
  .footer__links { grid-column: 2; }
}

/* ---- the fragmented-tools collage becomes a card grid ---- */
@media (max-width: 899px) {
  .collage.stage-wrap { aspect-ratio: auto; margin: 12px 0 0; }
  .collage .stage {
    position: static; width: auto; height: auto; transform: none;
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px;
  }
  .collage .stage > * { position: static; left: auto; top: auto; }
  .collage .cline { display: none; }
  .collage .frag { width: auto; height: auto !important; filter: drop-shadow(0 10px 12px rgba(35, 48, 44, .18)); }
  .collage .frag__head b { white-space: normal; width: auto !important; }
  .collage .frag__video--wide { width: 100%; }
  .problem__woman { grid-column: 1 / -1; order: -1; justify-self: center; position: relative !important; left: auto !important; top: auto !important; }
  .collage__caption { grid-column: 1 / -1; width: auto; padding-top: 8px; }
}

/* ---- phone ---- */
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .h2 { font-size: 30px; }
  .h2--36 { font-size: 28px; }
  .h2c { font-size: 28px; line-height: 36px; }
  .lead, .leadc { font-size: 16px; line-height: 1.5; }
  .br-lg { display: none; }

  .nav__logo img { width: 160px; height: 30.5px; top: 1px; }
  .hero__text { padding-top: 32px; }
  .badge { font-size: 12px; white-space: normal; height: auto; }
  .hero__title { font-size: 40px; }
  .hero__lead, .hero__sub { font-size: 16px; line-height: 26px; }

  .journey__title { font-size: 28px; }
  .journey__row { grid-template-columns: repeat(2, 1fr); column-gap: 8px; }
  .jstep { padding: 8px 0 0; }
  .jstep__photo { width: 120px; height: 120px; }
  .jstep h3 { font-size: 17px; white-space: normal; }
  .jstep p { font-size: 14px; line-height: 20px; }

  .stats__card { padding: 28px 16px; column-gap: 12px; }
  .stat strong { font-size: 34px; line-height: 38px; }
  .stat > span:last-child { font-size: 14px; }

  .problem { padding-top: 72px; }
  .settings { gap: 8px; }
  .setting { font-size: 14px; padding: 6px 12px; }
  .settings > i { font-size: 14px; letter-spacing: 1px; }
  .collage .stage { grid-template-columns: 1fr; }
  .problem__woman { width: 200px !important; height: 197px !important; }

  .platform { padding: 72px 0; }
  .step h3 { font-size: 26px; line-height: 30px; }
  .step p { font-size: 16px; }

  .continuum, .clinicians, .assess, .partners, .voices { padding-top: 72px; padding-bottom: 72px; }
  .cond-grid, .assess-grid, .partner-grid { grid-template-columns: 1fr; }
  .benefits { grid-template-columns: 1fr; }
  .clinicians .h2 { min-height: 0; }
  .wave { height: auto; }
  .wave__line { display: none; }
  .wave__people { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
  .wave__people span { width: 72px; height: 72px; }

  .programs { padding: 72px 0; }
  .programs__media { grid-template-columns: 1fr; }

  .quote { padding: 22px; }
  .quote p { font-size: 19px; }
  .quote cite { font-size: 15px; line-height: 20px; }
  .dots { display: none; }
  .deco-butterfly-2 { display: none; }

  .cta { padding: 64px 0; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__links { grid-column: 1; }
  .footer__bar { flex-direction: column; align-items: flex-start; }
}

/* =========================================================
   MOTION — scroll reveals, count-up, hero entrance, hover lifts
   (all switched off for people who prefer reduced motion)
   ========================================================= */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .8s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0s); }
  .js .reveal--pop { transform: scale(.82); }
  .js .reveal--left { transform: translateX(-36px); }
  .js .reveal--right { transform: translateX(36px); }
  .js .reveal.in { opacity: 1; transform: none; }

  /* hero entrance on load */
  .js .hero__text > * { animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; }
  .js .hero__text > :nth-child(2) { animation-delay: .08s; }
  .js .hero__text > :nth-child(3) { animation-delay: .16s; }
  .js .hero__text > :nth-child(4) { animation-delay: .24s; }
  .js .hero__text > :nth-child(5) { animation-delay: .32s; }
  .js .hero__visual .device, .js .hero__visual .h-backdrop { animation: rise 1.1s .25s cubic-bezier(.2, .7, .2, 1) both; }
  .js .hero__visual .h-phone-lg { animation-delay: .4s; }
  .js .hero__visual .h-phone-sm { animation-delay: .55s; }
  .js .hero__visual .mcard { animation: pop .7s cubic-bezier(.3, 1.4, .5, 1) both, bob 5s ease-in-out infinite alternate; }
  .js .hero__visual .mcard { animation-delay: var(--a1, .8s), var(--a2, 1.5s); }
  .js .h-blob span { animation: drift 9s ease-in-out infinite alternate; }

  /* timeline line draws itself, dots pop in */
  .js .journey__line { transform: scaleX(0); transform-origin: left center; transition: transform 1.6s cubic-bezier(.6, .1, .2, 1) .2s; }
  .js .journey__row.in .journey__line { transform: scaleX(1); }
  .js .jdot { opacity: 0; transform: scale(.3); transition: opacity .4s, transform .5s cubic-bezier(.3, 1.6, .5, 1); }
  .js .journey__row.in .jdot { opacity: 1; transform: none; }
  .js .journey__row.in .jdot:nth-of-type(1) { transition-delay: .55s; }
  .js .journey__row.in .jdot:nth-of-type(2) { transition-delay: .9s; }
  .js .journey__row.in .jdot:nth-of-type(3) { transition-delay: 1.25s; }
  .js .journey__row.in .jdot:nth-of-type(4) { transition-delay: 1.6s; }
  .jdot i { animation: pulse 2.4s ease-in-out infinite; }

  /* clinicians wave flows in */
  .js .wave__line { clip-path: inset(0 100% 0 0); transition: clip-path 1.8s cubic-bezier(.6, .1, .2, 1); }
  .js .wave.in .wave__line { clip-path: inset(0 0 0 0); }

  /* hover lifts */
  .cond, .acard, .partner, .pcard__img, .stat__ico, .jstep__photo { transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s; }
  .cond:hover, .acard:hover, .partner:hover { transform: translateY(-6px); box-shadow: 0 24px 40px -24px rgba(16, 47, 96, .35); }
  .pcard:hover .pcard__img { transform: translateY(-6px) scale(1.01); }
  .stat:hover .stat__ico { transform: translateY(-4px) rotate(-6deg); }
  .jstep:hover .jstep__photo { transform: scale(1.06); }
  .btn:hover { transform: translateY(-2px); }
  .acard__img > img, .cond__img img { transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
  .acard:hover .acard__img > img, .cond:hover .cond__img img { transform: scale(1.04); }
}
@keyframes rise { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: scale(.6) translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes bob { from { translate: 0 0; } to { translate: 0 -10px; } }
@keyframes drift { from { transform: rotate(12deg) translate(0, 0); } to { transform: rotate(40deg) translate(-14px, -10px); } }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.35); } }
