/* ==========================================================================
   VoyaMed — Homepage (built from Figma "voyamed / home page", 1920 frame)
   Sizes are written as design pixels × --s, so the page matches the Figma
   frame exactly at 1920px wide and scales down proportionally below that.
   Text sizes have a floor so they stay readable on smaller screens.
   ========================================================================== */

@font-face { font-family: "Lato"; font-weight: 300; font-style: normal; font-display: swap; src: url("/public/home/fonts/lato-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Lato"; font-weight: 400; font-style: normal; font-display: swap; src: url("/public/home/fonts/lato-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Lato"; font-weight: 700; font-style: normal; font-display: swap; src: url("/public/home/fonts/lato-latin-700-normal.woff2") format("woff2"); }
/* The design uses "Loede" for the hero title. If it is installed it is used;
   otherwise Montserrat SemiBold, which matches its width and shape closely. */
@font-face { font-family: "VM Display Fallback"; font-weight: 600; font-style: normal; font-display: swap; src: url("/public/home/fonts/montserrat-latin-600-normal.woff2") format("woff2"); }

:root {
  /* palette (from Figma) */
  --green-900: #294E46;
  --green-800: #294e46;
  --green-nav: #294E46;
  --green-600: #4a7468;
  --green-300: #94afa6;
  --green-200: #c3d3cd;
  --green-100: #e1eae6;
  --rust: #a45a33;
  --rust-700: #7e4426;
  --rust-200: #dfa98a;
  --rust-100: #f6e7dc;
  --cream: #f7f4ea;
  --page: #f2eee7;
  --card: #fcfbf6;
  --line: #e2dbc8;
  --line-dash: #cfc6af;
  --input-line: #d6d8d2;
  --ink: #18211e;
  --text: #3e4744;
  --muted: #6c7470;

  --font: "Lato", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Loede", "VM Display Fallback", "Montserrat", var(--font);

  /* 1 design px; shrinks below a 1920px viewport */
  --s: min(1px, calc(100vw / 1920));
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
section[id] { scroll-margin-top: 16px; }
body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
p, h1, h2, h3 { margin: 0; }
a { color: inherit; text-decoration: none; }
button, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--rust); outline-offset: 3px; }

/* ── Shared bits ───────────────────────────────────────────────────────── */

.accent { color: var(--rust); }

.dot { display: inline-block; flex: none; width: 6px; height: 6px; background: var(--green-800); }
.dot--rounded { border-radius: 3px; }
.dot--light { background: var(--cream); }

.h2 {
  font-weight: 700;
  font-size: max(32px, calc(56 * var(--s)));
  line-height: 1.08;            /* 60.48 / 56 */
  letter-spacing: -0.02em;      /* -1.12px @ 56 */
  color: var(--green-900);
}
.h2--center { text-align: center; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 22px;
  padding: 0 10px 0 9px;
  border-radius: 999px;
  background: var(--green-100);
  color: var(--green-800);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.pill--warm { background: var(--rust-100); color: var(--rust-700); }
.pill--warm .dot { background: var(--rust-700); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 700;
  white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px -8px rgba(28, 56, 50, .45); }
.btn--light {
  height: max(30px, calc(34 * var(--s)));
  padding: 0 max(14px, calc(16 * var(--s)));
  background: var(--cream);
  color: var(--green-800);
  font-size: max(15px, calc(20 * var(--s)));
  letter-spacing: 0.0065em;
}
.btn--dark {
  height: 42px;
  padding: 0 21px;
  background: var(--green-800);
  color: var(--cream);
  font-size: 15px;
  letter-spacing: 0.01em;
}
.btn--dark:hover { background: var(--green-900); }

.container {
  width: min(1200px, 100% - 48px);
  margin-inline: auto;
}

/* ── Header / nav ──────────────────────────────────────────────────────── */

.nav {
  position: relative;
  z-index: 20;
  background: var(--cream);
  color: var(--green-900);
}
.nav .btn--light { background: var(--green-800); color: var(--cream); }
.nav .btn--light:hover { background: var(--green-900); }
.nav__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: max(76px, calc(143 * var(--s)));
  padding: 0 calc(47 * var(--s)) 0 calc(54 * var(--s));
  max-width: 1920px;
  margin: 0 auto;
}
.nav__links, .nav__actions {
  display: flex;
  align-items: center;
  font-size: max(15px, calc(20 * var(--s)));
}
.nav__links { gap: calc(17 * var(--s)); }
/* link boxes are fixed-width in the design, which sets the visible spacing */
.nav__links a:nth-child(1) { min-width: calc(112 * var(--s)); }
.nav__links a:nth-child(2) { min-width: calc(140 * var(--s)); }
.nav__links a:nth-child(3) { min-width: calc(141 * var(--s)); }
.nav__links a:nth-child(4) { min-width: calc(74 * var(--s)); }
.nav__links a { opacity: .86; transition: opacity .15s; }
.nav__links a:hover { opacity: 1; }
.nav__actions { gap: calc(54 * var(--s)); }
.nav__plain { transition: opacity .15s; }
button.nav__plain { padding: 0; border: 0; background: none; font: inherit; color: inherit; cursor: pointer; }
.nav__plain:hover { opacity: .8; }
.nav__actions .btn { margin-left: 0; }

/* The logo is two Figma layers (wordmark + monogram) stacked as in the design */
.logo { position: relative; display: block; aspect-ratio: 174 / 83; }
.logo__wordmark { position: absolute; left: 0; right: 0; bottom: 0; top: 44.48%; width: 100%; height: 55.52%; }
.logo__mark { position: absolute; left: 34.15%; right: 34.15%; top: 0; width: 31.7%; height: 37.03%; }
.logo--header {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: max(110px, calc(174 * var(--s)));
}
.logo--footer { width: max(140px, calc(190 * var(--s))); }

.nav__toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 11px 9px;
  border: 0;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
}
.nav__toggle span { display: block; height: 2px; border-radius: 2px; background: var(--green-900); transition: transform .2s, opacity .2s; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

.mobile-menu {
  display: flex;
  flex-direction: column;
  padding: 8px 24px 24px;
  background: var(--cream);
  border-top: 1px solid var(--line);
  font-size: 18px;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); }
.mobile-menu .btn { margin-top: 20px; height: 46px; font-size: 16px; }

/* ── Hero ──────────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  height: max(560px, calc(973 * var(--s)));
  overflow: hidden;
  color: var(--cream);
  background: #294E46;
}
.hero__media {
  position: absolute;
  inset: 0;
  container-type: size;
}
/* green gradient + soft circle texture that sits under the 47% photo */
.hero__tint {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -4.53cqw;               /* -87 / 1920 */
  width: 104.53cqw;
  overflow: hidden;
  background: linear-gradient(160deg, #294E46 0%, #294E46 45%, #294E46 100%);
}
.hero__tint img {
  opacity: .14;              /* faint, so the band reads as the one brand green */
  position: absolute;
  top: 0;
  left: -6.75%;
  width: 113.51%;
  height: 100%;
  max-width: none;
}
/* Photo + cut-out people share one box so they always stay aligned.
   Box = Figma "d 1" (1932 × 1087), anchored 114px above the hero top. */
.hero__stage {
  --w: max(100.625cqw, 198.57cqh);
  position: absolute;
  width: var(--w);
  aspect-ratio: 1932 / 1087;
  top: -11.72cqh;
  /* desktop: -12px like Figma; narrow screens: keep the two men in view */
  left: clamp(calc(100cqw - var(--w)), calc(var(--focus, 52cqw) - var(--w) * 0.637), -0.625cqw);
}
.hero__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .47;
}
.hero__people {
  position: absolute;
  left: 51.55%;                 /* (984 + 12) / 1932 */
  top: 31.09%;                  /* (367 - 29) / 1087 */
  width: 25.62%;                /* 495 / 1932 */
  height: 62.1%;                /* 675 / 1087 */
  object-fit: cover;
}

.hero__copy {
  position: relative;
  z-index: 1;
  padding: calc(272 * var(--s)) 24px 0 max(24px, calc(76 * var(--s)));
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: max(46px, calc(100 * var(--s)));
  line-height: 1;
  letter-spacing: -0.0288em;
  text-transform: uppercase;
  white-space: nowrap;
}
.hero__sub {
  margin-top: calc(1 * var(--s));
  font-weight: 300;
  font-size: max(28px, calc(64 * var(--s)));
  line-height: .953;            /* 61 / 64 */
  letter-spacing: -0.045em;
}
.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: max(8px, calc(9 * var(--s)));
  margin-top: max(20px, calc(33 * var(--s)));
  font-weight: 700;
  font-size: max(12px, calc(20 * var(--s)));
  letter-spacing: 0.044em;
  text-transform: uppercase;
}

/* ── Who we are ────────────────────────────────────────────────────────── */

.who {
  display: grid;
  grid-template-columns: calc(802 * var(--s)) 1fr;
  column-gap: calc(48 * var(--s));
  align-items: start;
  max-width: 1920px;
  margin: 0 auto;
  padding: calc(97 * var(--s)) 24px calc(132 * var(--s)) calc(91 * var(--s));
}
.who__photo img {
  width: 100%;
  aspect-ratio: 802 / 875;
  object-fit: cover;
}
.who__copy { padding-top: calc(13 * var(--s)); }
.who__eyebrow {
  display: flex;
  align-items: center;
  gap: 0;
  margin-left: calc(6 * var(--s));
  font-weight: 700;
  font-size: max(14px, calc(24 * var(--s)));
  line-height: max(24px, calc(32 * var(--s)));
  letter-spacing: 0.0275em;
  text-transform: uppercase;
  color: var(--green-800);
}
.who__eyebrow .dot { margin-right: max(6px, calc(6 * var(--s))); margin-left: calc(-6 * var(--s)); }
.who__copy .h2 { margin-top: calc(23 * var(--s)); margin-bottom: max(28px, calc(84 * var(--s))); }
.who__text {
  max-width: 29em;
  font-size: max(16px, calc(20 * var(--s)));
  line-height: 1.36;            /* 27.2 / 20 */
  color: var(--text);
}
.who__text + .who__text { margin-top: max(20px, calc(72 * var(--s))); }
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: max(24px, calc(42 * var(--s)));
  font-weight: 700;
  font-size: 15px;
  color: var(--green-800);
}
.text-link img { transition: transform .15s; }
.text-link:hover img { transform: translateX(3px); }

/* ── Full-bleed photo bands ────────────────────────────────────────────── */

.band img { width: 100%; object-fit: cover; }
.band--team img { aspect-ratio: 1920 / 920; }
.band--doctor { overflow: hidden; }
.band--doctor img { aspect-ratio: 1920 / 724; object-position: 49% 50%; }

/* ── What we change ────────────────────────────────────────────────────── */

.change {
  position: relative;
  overflow: hidden;
  padding: calc(128 * var(--s)) 24px;
}
.change__circles {
  position: absolute;
  top: calc(128 * var(--s));
  left: 50%;
  width: calc(1520 * var(--s));
  height: calc(640 * var(--s));
  transform: translateX(-50%);
  pointer-events: none;
}
.circle {
  position: absolute;
  top: 0;
  width: calc(640 * var(--s));
  height: calc(640 * var(--s));
  border-radius: 50%;
  border: 1px solid var(--green-200);
  background: radial-gradient(closest-side, rgba(225, 234, 230, .6), rgba(225, 234, 230, 0));
}
.circle--1 { left: 0; }
.circle--2 {
  left: calc(440 * var(--s));
  border-width: 3px;
  background: radial-gradient(closest-side, rgba(252, 251, 246, .9), rgba(252, 251, 246, 0));
}
.circle--3 { left: calc(880 * var(--s)); }

.change__content {
  position: relative;
  min-height: calc(640 * var(--s));
  padding-top: calc(65 * var(--s));
  text-align: center;
}
.change__content .h2 { margin-top: calc(18 * var(--s)); }
.change__lede {
  max-width: 560px;
  margin: max(18px, calc(22 * var(--s))) auto 0;
  font-size: 17px;
  line-height: 1.65;            /* 28.05 / 17 */
  color: var(--text);
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  width: min(1080px, 100%);
  margin: max(40px, calc(84 * var(--s))) auto 0;
  text-align: left;
}
.stat {
  padding-top: 20px;
  border-top: 1px solid var(--green-300);
}
.stat__num {
  font-weight: 700;
  font-size: max(44px, calc(60 * var(--s)));
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--green-900);
}
.stat__lbl {
  max-width: 245px;
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
}
.stat--accent { border-top-color: var(--rust-200); }
.stat--accent .stat__num { color: var(--rust); }

/* ── Specialties ───────────────────────────────────────────────────────── */

.specialties {
  background: #fff;
  padding: 140px 0;
}
.specialties__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  margin-top: 16px;
}
.specialties__lede {
  width: 380px;
  margin-top: 51px;
  margin-right: 4px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
}
.spec-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 54px;
}
.spec {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 340px;
  padding: 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.spec:hover {
  transform: translateY(-3px);
  border-color: var(--green-300);
  box-shadow: 0 16px 32px -20px rgba(28, 56, 50, .35);
}
.spec__num {
  height: 30px;
  display: flex;
  align-items: center;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.spec__go {
  position: absolute;
  top: 24px;
  right: 24px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--green-300);
  border-radius: 15px;
  transition: background-color .2s;
}
.spec:hover .spec__go { background: var(--green-100); }
.spec__title {
  margin-top: 42px;
  font-weight: 700;
  font-size: 28px;
  line-height: 34px;
  letter-spacing: -0.015em;
  color: var(--green-900);
}
.spec__desc {
  margin-top: 16px;
  margin-bottom: 13px;
  font-size: 15px;
  line-height: 1.55;            /* 23.25 / 15 */
  color: var(--text);
}
.spec__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.spec__price {
  font-weight: 700;
  font-size: 18px;
  line-height: 22px;
  color: var(--rust);
}
.spec__foot img { transition: transform .2s; }
.spec:hover .spec__foot img { transform: translateX(3px); }

/* ── Partners ──────────────────────────────────────────────────────────── */

.partners {
  max-width: 1920px;
  margin: 0 auto;
  padding: calc(68 * var(--s)) calc(56 * var(--s)) calc(88 * var(--s)) calc(44 * var(--s));
}
.partners__head { padding-left: calc(58 * var(--s)); }
.partners__eyebrow {
  font-weight: 700;
  font-size: max(28px, calc(48 * var(--s)));
  line-height: 1.2;
  letter-spacing: 0.014em;
  text-transform: uppercase;
  color: var(--rust);
}
.partners__title {
  margin-top: calc(9 * var(--s));
  font-weight: 700;
  font-size: max(34px, calc(64 * var(--s)));
  line-height: 1.05;
  letter-spacing: -0.0175em;
  color: var(--green-900);
}
.partners__lede {
  max-width: 31.4em;
  margin-top: max(16px, calc(34 * var(--s)));
  font-size: max(18px, calc(36 * var(--s)));
  line-height: 1.055;           /* 38 / 36 */
  color: var(--text);
}
.clinic-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: calc(18 * var(--s));
  margin-top: max(36px, calc(72 * var(--s)));
}
.clinic {
  display: flex;
  flex-direction: column;
  padding: 22px 22px 34px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.clinic:hover { transform: translateY(-3px); box-shadow: 0 16px 32px -20px rgba(28, 56, 50, .35); }
.clinic__tag {
  display: block;
  height: 28px;
  border-bottom: 1px dashed var(--line-dash);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.clinic__name {
  min-height: 75px;
  padding-top: 17px;
  font-weight: 700;
  font-size: 22px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--green-900);
}
.clinic__img {
  width: 100%;
  aspect-ratio: 396 / 190;
  object-fit: cover;
}
.clinic__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;           /* bottom rows line up whether or not a card has a highlight */
  padding-top: 31px;
}
.clinic__spec { font-size: 14px; color: var(--text); }
.clinic__note { margin-top: 16px; font-size: 14px; line-height: 1.5; color: var(--text); }
.clinic__badge {
  display: grid;
  place-items: center;
  width: 49.2%;
  height: 44px;
  border-radius: 22px;
  background: var(--rust);
  color: var(--cream);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
}
.see-all {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: max(10px, calc(13 * var(--s)));
  width: fit-content;
  margin: max(24px, calc(16 * var(--s))) 0 0 auto;
  font-weight: 700;
  font-size: max(18px, calc(24 * var(--s)));
  color: var(--green-800);
}
.see-all img { width: max(34px, calc(50 * var(--s))); height: auto; transition: transform .2s; }
.see-all:hover img { transform: translateX(4px); }

/* ── How it works ──────────────────────────────────────────────────────── */

.how {
  max-width: 1920px;
  margin: 0 auto;
  padding: calc(88 * var(--s)) calc(56 * var(--s)) calc(47 * var(--s)) calc(69 * var(--s));
}
.how__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}
.how__head .h2 { margin-top: 16px; }
.how__lede { max-width: 560px; margin-top: 16px !important; font-size: max(16px, calc(19 * var(--s))); line-height: 1.55; color: var(--text); }
.how__head .btn { margin-bottom: calc(-31 * var(--s)); }
.how__body {
  display: grid;
  grid-template-columns: 888fr 889fr;
  gap: calc(17 * var(--s));
  margin-top: max(32px, calc(53 * var(--s)));
  padding-left: calc(1 * var(--s));
}
.how__photo {
  position: relative;
  min-height: 100%;
  border-radius: 21px;
  overflow: hidden;
}
.how__photo img {
  width: 100%;
  height: 100%;
  min-height: 100%;
  aspect-ratio: 888 / 607;
  object-fit: cover;
}
.how__badge {
  position: absolute;
  right: 16px;
  bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(480px, calc(100% - 32px));
  height: 38px;
  padding-left: 12px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 6px 18px -6px rgba(28, 56, 50, .16), 0 2px 4px rgba(28, 56, 50, .05);
  font-size: 13px;
  color: var(--ink);
}
.how__badge-dot {
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 5px;
  background: var(--green-600);
  box-shadow: 0 0 0 4px var(--green-100);
}
.how__panel {
  padding: 20px 28px 32px;
  border-radius: 14px;
  background: var(--green-100);
}
.how__num {
  font-weight: 700;
  font-size: 80px;
  line-height: 96px;
  letter-spacing: -0.03em;
  color: var(--green-800);
}
.how__title {
  margin-top: 8px;
  font-weight: 700;
  font-size: max(24px, calc(30 * var(--s)));
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--green-900);
}
.how__desc {
  max-width: 540px;
  min-height: calc(26.4px * 4);
  margin-top: 19px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
}
.how__num, .how__title, .how__desc { transition: opacity .2s ease; }
.how__panel.is-swapping .how__num,
.how__panel.is-swapping .how__title,
.how__panel.is-swapping .how__desc { opacity: 0; }
.how__tabs { margin-top: max(28px, calc(56 * var(--s))); }
.how__tab {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  height: 46px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--green-200);
  background: transparent;
  text-align: left;
  font-size: 14px;
  color: var(--text);
  cursor: pointer;
}
.how__tab-dot { width: 0; height: 6px; background: var(--green-800); transition: width .2s, margin .2s; }
.how__tab-label { flex: 1; }
.how__tab-num { position: absolute; left: 62.9%; font-size: 12px; color: var(--muted); }
.how__tab:hover .how__tab-label { color: var(--green-900); }
.how__tab.is-active { border-bottom-color: var(--green-800); font-weight: 700; color: var(--green-900); }
.how__tab.is-active .how__tab-dot { width: 6px; margin-right: 10px; }
.how__tab.is-active .how__tab-num { color: var(--green-900); }

/* ── Savings calculator ────────────────────────────────────────────────── */

.savings {
  background: #fff;
  padding: 140px 0;
}
.savings__grid {
  display: grid;
  grid-template-columns: 1fr 552px;
  gap: 48px;
  align-items: start;
}
.savings__copy { padding-top: 50px; }
.savings__copy .h2 { max-width: 440px; margin-top: 16px; }
.savings__lede {
  max-width: 470px;
  margin-top: 20px;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
}
.calc {
  padding: 32px 32px 33px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
}
.calc__selects {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 28px;
}
.calc__field { display: block; }
/* Procedure names run long ("PRP (Platelet Rich Plasma) — $403"), so the
   procedure picker takes the full row under Specialty and Currency. */
.calc__field--wide { grid-column: 1 / -1; }
.calc__label {
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
  font-size: 13px;
  line-height: 16px;
  color: var(--ink);
}
.calc__select { position: relative; display: block; }
.calc__select select {
  width: 100%;
  height: 44px;
  padding: 0 36px 0 14px;
  border: 1px solid var(--input-line);
  border-radius: 10px;
  background: #fff;
  font-size: 15px;
  color: var(--ink);
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  text-overflow: ellipsis;
}
.calc__select select:hover { border-color: var(--green-300); }
.calc__select select:focus-visible { outline: 2px solid var(--green-600); outline-offset: 1px; }
.calc__select select:disabled {
  background: var(--cream);
  border-color: var(--input-line);
  color: var(--muted);
  cursor: not-allowed;
}
.calc__select img {
  position: absolute;
  right: 16px;
  top: 50%;
  width: 12px;
  height: auto;
  transform: translateY(-50%);
  pointer-events: none;
}
.calc__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
}
.calc__row-label { font-size: 14px; color: var(--text); }
.calc__row-val { font-weight: 700; font-variant-numeric: tabular-nums; }
.calc__row--home { height: 57px; }
.calc__row--home .calc__row-val { font-size: 20px; color: var(--muted); }
.calc__row--voya { height: 77px; }
.calc__row--voya .calc__row-val { font-size: 36px; letter-spacing: -0.02em; color: var(--green-900); }
.calc__row--save { height: 66px; border-bottom: 0; }
.calc__row--save .calc__row-val { font-size: 24px; color: var(--rust); }
.calc__note {
  display: flex;
  align-items: center;
  min-height: 45px;
  margin-top: 23px;
  padding: 12px 18px;
  border-radius: 10px;
  background: var(--rust-100);
  font-size: 14px;
  line-height: 1.4;
  color: var(--rust-700);
}

/* ── Footer ────────────────────────────────────────────────────────────── */

.footer {
  background: var(--green-nav);
  color: var(--cream);
}
.footer__inner {
  display: grid;
  grid-template-columns: calc(541 * var(--s)) calc(316 * var(--s)) calc(344 * var(--s)) 1fr;
  max-width: 1920px;
  margin: 0 auto;
  padding: calc(54 * var(--s)) calc(145 * var(--s)) calc(46 * var(--s)) calc(210 * var(--s));
}
.footer__tagline {
  max-width: 340px;
  margin-top: 23px;
  font-size: 14px;
  line-height: 1.6;
}
.footer__col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: max(6px, calc(12 * var(--s)));
  padding-top: calc(29 * var(--s));
  font-size: max(16px, calc(20 * var(--s)));
  line-height: 17px;
}
.footer__heading {
  margin-bottom: max(2px, calc(-4 * var(--s)));
  font-weight: 700;
  letter-spacing: 0.044em;
  text-transform: uppercase;
  color: #fff;
}
.footer__col a { transition: opacity .15s; }
.footer__col a:hover { opacity: .75; }
.footer__bottom {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-top: max(36px, calc(48 * var(--s)));
  font-size: 13px;
}
.footer__bottom p { position: relative; top: 11px; }
.footer__mini { display: flex; gap: 20px; }
.footer__mini a:hover { text-decoration: underline; }

/* ── Contact dialog ────────────────────────────────────────────────────── */

.contact { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; }
.contact[hidden] { display: none; }
.contact__backdrop { position: absolute; inset: 0; background: rgba(24, 33, 30, .55); }
.contact__panel {
  position: relative;
  width: min(480px, 100%);
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  padding: 28px 28px 24px;
  border-radius: 22px;
  background: var(--card);
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .35);
}
.contact__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 18px;
  background: transparent;
  font-size: 26px;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
}
.contact__close:hover { background: var(--green-100); color: var(--green-900); }
.contact__title { margin-top: 14px; font-size: 28px; font-weight: 700; letter-spacing: -0.015em; color: var(--green-900); }
.contact__lede { margin-top: 6px; font-size: 14px; line-height: 1.5; color: var(--text); }
.contact__form { display: grid; gap: 14px; margin-top: 20px; }
.contact__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.contact__form label > span:first-child { display: block; margin-bottom: 6px; font-weight: 700; font-size: 13px; color: var(--ink); }
.contact__form input, .contact__form textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--input-line);
  border-radius: 10px;
  background: #fff;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
}
.contact__form textarea { resize: vertical; min-height: 96px; }
.contact__form input:focus-visible, .contact__form textarea:focus-visible { outline: 2px solid var(--green-600); outline-offset: 1px; }
.contact__msg { min-height: 0; font-size: 14px; }
.contact__msg:empty { display: none; }
.contact__msg.is-error { color: #a3341f; }
.contact__msg.is-success { color: var(--green-800); }
.contact__send { justify-self: start; border: 0; cursor: pointer; }
.contact__send[disabled] { opacity: .6; cursor: default; }
.contact__foot { margin-top: 18px; font-size: 13px; color: var(--muted); }
.contact__foot a { color: var(--green-800); font-weight: 700; }
body.has-dialog { overflow: hidden; }

/* ── Sub-pages (About, Pricing, Contact) ───────────────────────────────── */

.nav a[aria-current="page"] { opacity: 1; text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.dot--light { background: var(--cream); }
.pill--light { background: rgba(247, 244, 234, .14); color: var(--cream); }

.page-hero {
  position: relative;
  overflow: hidden;
  padding: max(72px, calc(150 * var(--s))) 24px max(64px, calc(120 * var(--s))) max(24px, calc(76 * var(--s)));
  background: linear-gradient(160deg, #294E46 0%, #294E46 45%, #294E46 100%);
  color: var(--cream);
}
.page-hero__texture {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  opacity: .14;              /* faint, so the banner reads as the one brand green */
  pointer-events: none;
}
.page-hero__inner { position: relative; max-width: 1100px; }
.page-hero__title {
  margin-top: 22px;
  font-weight: 700;
  font-size: max(40px, calc(80 * var(--s)));
  line-height: 1.04;
  letter-spacing: -0.025em;
}
.page-hero__lede {
  max-width: 640px;
  margin-top: 22px;
  font-size: max(17px, calc(20 * var(--s)));
  line-height: 1.55;
  opacity: .88;
}

.section { padding: 120px 0; }
.section--white { background: #fff; }
.section--page { background: var(--page); }
.section-head { max-width: 640px; }
.section-head .h2 { margin-top: 16px; }
.section-head__lede { margin-top: 18px; font-size: 17px; line-height: 1.65; color: var(--text); }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 56px;
}
.feature {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
}
.feature__num {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 22px;
  background: var(--green-100);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .06em;
  color: var(--green-800);
}
.feature__big {
  display: block;
  font-weight: 700;
  font-size: 56px;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--green-900);
}
.feature__big--accent { color: var(--rust); }
.feature__title {
  margin-top: 28px;
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.01em;
  color: var(--green-900);
}
.feature--plain { background: #fff; }
.feature--plain .feature__title { margin-top: 20px; }
.feature__text { margin-top: 12px; font-size: 15px; line-height: 1.6; color: var(--text); }

.incl {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 16px;
  margin-top: 56px;
  align-items: start;
}
.incl__card {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--card);
}
.incl__card--muted { background: var(--page); }
.incl__title { font-weight: 700; font-size: 22px; color: var(--green-900); }
.incl__list { margin: 20px 0 0; padding: 0; list-style: none; }
.incl__list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  font-size: 16px;
  line-height: 1.45;
  color: var(--ink);
}
.list-icon { flex: none; margin-top: 1px; }
.incl__note { margin-top: 16px; font-size: 14px; line-height: 1.6; color: var(--text); }

.cta { padding: 0 0 120px; background: inherit; }
.section--white + .cta, .savings + .cta { background: #fff; }
.cta__box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 56px;
  border-radius: 22px;
  background: var(--green-800);
  color: var(--cream);
}
.cta__title { font-weight: 700; font-size: max(30px, calc(44 * var(--s))); line-height: 1.1; letter-spacing: -0.02em; }
.cta__text { max-width: 520px; margin-top: 12px; font-size: 17px; line-height: 1.6; opacity: .85; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 12px; flex: none; }
.btn--lg { height: 48px; padding: 0 24px; font-size: 16px; }
.btn--ghost-light { border: 1px solid rgba(247, 244, 234, .5); color: var(--cream); }
.btn--ghost-light:hover { background: rgba(247, 244, 234, .1); }
.change + .cta { padding-top: 0; }

.contact-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 24px;
  align-items: start;
}
.contact-card {
  padding: 40px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--card);
}
.contact-card__title { font-weight: 700; font-size: 30px; letter-spacing: -0.015em; color: var(--green-900); }
.contact-card__lede { margin-top: 6px; font-size: 15px; color: var(--text); }
.contact-info { display: grid; gap: 12px; }
.info-card {
  padding: 24px 26px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}
.info-card__label {
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.info-card__value {
  display: block;
  margin-top: 8px;
  font-weight: 700;
  font-size: 19px;
  line-height: 1.35;
  color: var(--green-900);
  word-break: break-word;
}
a.info-card__value:hover { text-decoration: underline; }
.info-card--green { border: 0; background: var(--green-800); color: var(--cream); }
.info-card--green .info-card__label { color: rgba(247, 244, 234, .7); }
.info-card__text { margin-top: 8px; font-size: 15px; line-height: 1.55; }
.text-link--light { color: var(--cream); margin-top: 16px; }
.text-link--light img { filter: brightness(0) invert(.95); }

/* ==========================================================================
   Responsive
   ========================================================================== */

/* Below ~1240px the centred logo would collide with the nav links */
@media (max-width: 1240px) {
  .nav__links, .nav__actions { display: none; }
  .nav__toggle { display: flex; }
  .nav__inner { padding: 0 16px 0 24px; }
  .logo--header { left: 24px; transform: translateY(-50%); }
  .nav__toggle { margin-left: auto; }
}

@media (max-width: 1100px) {
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .incl, .contact-grid { grid-template-columns: 1fr; }
  .cta__box { flex-direction: column; align-items: flex-start; padding: 40px; }
  .section { padding: 88px 0; }
  .cta { padding-bottom: 88px; }
  .hero { height: 640px; }
  .hero__stage { --focus: 70cqw; }
  .spec { min-height: 0; }
  .spec__title { margin-top: 28px; }
  .spec__desc { margin-bottom: 24px; }
  .who {
    grid-template-columns: 1fr 1fr;
    column-gap: 40px;
    padding: 64px 24px 80px;
  }
  .stats { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
  .change__circles { display: none; }
  .change { padding: 72px 24px 80px; }
  .change__content { min-height: 0; padding-top: 0; }
  .spec-grid { grid-template-columns: repeat(2, 1fr); }
  .specialties, .savings { padding: 88px 0; }
  .partners { padding: 64px 24px 72px; }
  .partners__head { padding-left: 0; }
  .clinic-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .how { padding: 64px 24px 72px; }
  .how__head .btn { margin-bottom: 0; }
  .how__body { grid-template-columns: 1fr; gap: 16px; padding-left: 0; }
  .how__photo img { aspect-ratio: 16 / 9; }
  .savings__grid { grid-template-columns: 1fr; gap: 40px; }
  .savings__copy { padding-top: 0; }
  .savings__copy .h2 { max-width: 560px; }
  .calc { max-width: 620px; }
  .footer__inner {
    grid-template-columns: 1fr 1fr 1fr;
    row-gap: 40px;
    padding: 56px 24px 32px;
  }
  .footer__brand { grid-column: 1 / -1; }
  .footer__col { line-height: 1.3; gap: 10px; }
}

@media (max-width: 760px) {
  .feature-grid { grid-template-columns: 1fr; margin-top: 36px; }
  .incl { margin-top: 36px; }
  .incl__card, .contact-card { padding: 24px 20px; }
  .cta__box { padding: 32px 22px; }
  .cta__actions .btn { flex: 1 1 auto; }
  .section { padding: 64px 0; }
  .cta { padding-bottom: 64px; }
  .page-hero { padding: 56px 20px 48px; }
  .page-hero__title { font-size: 36px; }
  .page-hero__title br { display: none; }
  /* Hero: copy on the green band, photo underneath */
  .hero { height: auto; display: flex; flex-direction: column; }
  .hero__copy { order: 0; padding: 48px 24px 32px; }
  .hero__media { position: relative; order: 1; height: min(118vw, 520px); }
  .hero__stage { --focus: 52cqw; }
  .hero__title { white-space: normal; font-size: clamp(38px, 11vw, 56px); }
  .hero__sub { font-size: clamp(24px, 7vw, 34px); line-height: 1.05; letter-spacing: -0.03em; margin-top: 6px; }
  .hero__eyebrow { font-size: 12px; margin-top: 20px; }

  .who { grid-template-columns: 1fr; row-gap: 36px; padding: 48px 20px 64px; }
  .who__copy { padding-top: 0; }
  .who__photo img { aspect-ratio: 4 / 4.2; }

  .band--team img { aspect-ratio: 4 / 3; }
  .band--doctor img { aspect-ratio: 16 / 9; }

  .change { padding: 64px 20px; }
  .stats { gap: 28px 20px; }
  .stat__num { font-size: 40px; }

  .container { width: calc(100% - 40px); }
  .specialties, .savings { padding: 64px 0; }
  .specialties__head { flex-direction: column; gap: 16px; }
  .specialties__lede { width: auto; margin-top: 0; }
  .spec-grid { grid-template-columns: 1fr; margin-top: 36px; }
  .spec { min-height: 0; }
  .spec__title { margin-top: 28px; }

  .partners { padding: 56px 20px 64px; }
  .clinic-grid { grid-template-columns: 1fr; }
  .clinic__name { min-height: 0; padding-bottom: 16px; }

  .how { padding: 56px 20px 64px; }
  .how__head { flex-direction: column; align-items: flex-start; }
  .how__photo img { aspect-ratio: 4 / 3; }
  .how__badge { left: 12px; right: 12px; bottom: 12px; width: auto; }
  .how__panel { padding: 16px 20px 24px; }
  .how__num { font-size: 64px; line-height: 76px; }
  .how__desc { min-height: 0; }
  .how__tab-num { position: static; margin-left: 12px; }

  .calc { padding: 22px 18px; }
  .calc__selects { grid-template-columns: 1fr; }
  .contact__row { grid-template-columns: 1fr; }
  .contact__panel { padding: 24px 20px 20px; }
  .calc__row--voya .calc__row-val { font-size: 30px; }

  .footer__inner { grid-template-columns: 1fr 1fr; padding: 48px 20px 28px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .footer__bottom p { top: 0; }
  .footer__mini { flex-wrap: wrap; gap: 8px 18px; }
}

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