/* Balance Health — site styles. Tokens live in /tokens; this file uses variables only. */

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: var(--leading-body);
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--color-link); }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: var(--weight-display); letter-spacing: -0.01em; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 3px; border-radius: 4px; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--bh-white); color: var(--color-text); padding: 8px 14px; border-radius: var(--radius-sm); }
.skip-link:focus { left: 8px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

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

/* Label: always sits BELOW its heading (house rule: no text above a title) */
.label {
  display: inline-block;
  margin-top: var(--space-3);
  font-family: var(--font-body);
  font-size: 12px;
  line-height: var(--leading-caption);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.on-navy .label { color: var(--color-accent); }
.on-navy .form-card .label { color: var(--color-text-muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px;
  border: 0; border-radius: var(--radius-pill);
  font-family: var(--font-display); font-weight: var(--weight-display); font-size: 14px; letter-spacing: 0.04em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.btn svg { width: 18px; height: 18px; transition: transform .2s ease; }
.btn:hover svg { transform: translateX(3px); }
.btn--primary { background: var(--btn-primary-bg); color: var(--btn-primary-text); box-shadow: 0 8px 24px rgba(254, 207, 1, .28); }
.btn--primary:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(254, 207, 1, .38); }
.btn--secondary { background: var(--btn-secondary-bg); color: var(--btn-secondary-text); }
.btn--secondary:hover { background: var(--bh-royal-blue); }
.btn--sm { min-height: 42px; padding: 0 20px; font-size: 12px; }

/* ---------- Top bar + header ---------- */
.topbar { background: var(--bh-midnight); color: var(--color-text-inverse-muted); font-size: 12px; line-height: 16px; letter-spacing: .08em; text-transform: uppercase; text-align: center; padding: 9px var(--gutter); }
.topbar strong { color: var(--bh-white); font-weight: 700; }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); backdrop-filter: saturate(160%) blur(10px); -webkit-backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s ease, box-shadow .2s ease; }
.site-header.is-scrolled { border-bottom-color: var(--color-border); box-shadow: 0 6px 24px rgba(0, 25, 72, .06); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-5); min-height: 72px; }
/* Wordmark: 120px digital minimum (Brand Book §03) */
.site-header__logo { display: block; padding: 6px 0; }
.site-header__logo img { width: 150px; height: auto; }
.site-nav { display: none; gap: var(--space-6); }
.site-nav a { color: var(--color-text); text-decoration: none; font-weight: 700; font-size: 15px; }
.site-nav a:hover { color: var(--color-link); }
@media (min-width: 960px) {
  .site-nav { display: flex; }
  .site-header__logo img { width: 170px; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--color-bg-strong); color: var(--color-text-inverse); }
.hero::before { /* soft royal-blue glow, echoes the campaign art */
  content: ""; position: absolute; inset: auto -20% -40% auto; width: 80vw; height: 80vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(closest-side, rgba(8, 73, 160, .55), rgba(8, 73, 160, 0)); pointer-events: none;
}
.hero__grid { position: relative; display: grid; gap: var(--space-7); padding-top: var(--space-8); padding-bottom: var(--space-8); } /* block only: keeps .container's side gutter */
.hero__title { font-size: var(--text-display); line-height: var(--leading-display); text-transform: uppercase; letter-spacing: -0.005em; }
.hero__title .accent { color: var(--color-accent); display: block; }
.hero__statement { margin-top: var(--space-6); font-family: var(--font-display); font-weight: var(--weight-display); font-size: 18px; line-height: 26px; }
.hero__statement span { display: block; color: var(--color-text-inverse-muted); }
.hero__lead { margin-top: var(--space-4); max-width: 540px; color: var(--color-text-inverse-muted); font-size: 17px; line-height: 27px; }
.hero__cta { margin-top: var(--space-6); display: flex; flex-wrap: wrap; gap: var(--space-4); align-items: center; }
.hero__cta .btn { width: 100%; }
.trust { list-style: none; margin: var(--space-6) 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3) var(--space-4); }
.trust li { display: flex; align-items: center; gap: 10px; font-size: 14px; line-height: 18px; font-weight: 700; }
.trust svg { flex: none; width: 22px; height: 22px; color: var(--color-accent); }

/* Background video + the "Λ" from the wordmark. Phones: the tall cut sits on top at its own 3:4 and the copy
   rises over its navy fade. Desktop (≥900px): the wide cut fills the whole hero, copy on a navy scrim at left. */
.hero--bg { isolation: isolate; }
.hero--bg::before { display: none; }
.hero__bg {
  position: absolute; top: 0; left: 0; right: 0; z-index: -1; aspect-ratio: 4 / 5; overflow: hidden;
  background: var(--color-bg-strong) url("../images/hero-member-poster.webp?v=1001") center / cover no-repeat;
}
.hero__bg::after { /* fade into the navy section so the copy reads over the lower part of the shot */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0, 25, 72, 0) 38%, rgba(0, 25, 72, .72) 66%, var(--bh-signature-navy) 92%);
}
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s ease; }
.hero__video.is-playing { opacity: 1; }
.hero__art { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.hero__art--wide { display: none; }
.hero--bg .hero__grid { padding-top: calc(100vw * 5 / 4 - 150px); }

/* The "Λ" window: navy shade outside the letter's outline, a yellow edge that fades out before the copy */
.hero__shade { fill: var(--bh-signature-navy); opacity: .8; }
.hero__lambda { fill: none; stroke: url(#bh-lambda-fade); stroke-width: 7px; }
.hero__fade-stop { stop-color: var(--bh-optimistic-yellow); }

@media (min-width: 768px) {
  .hero__cta .btn { width: auto; }
  .trust { grid-template-columns: repeat(4, auto); justify-content: start; gap: var(--space-5); }
  .hero__statement { font-size: 20px; line-height: 28px; }
}
@media (min-width: 1024px) {
  .hero__title { font-size: 56px; line-height: 60px; }
  .trust { grid-template-columns: 1fr 1fr; max-width: 520px; }
}
/* Tablets / small laptops (600–1279px): wide cut centred on top, copy below — like phones */
.hero__art--mid { display: none; }
@media (min-width: 600px) and (max-width: 1279.98px) {
  .hero__bg { aspect-ratio: auto; height: clamp(380px, 52vw, 600px); background-image: url("../images/hero-member-wide-poster.webp?v=1003"); }
  .hero__art--tall { display: none; }
  .hero__art--mid { display: block; }
  .hero--bg .hero__grid { padding-top: calc(clamp(380px, 52vw, 600px) - 130px); }
  .hero--bg .hero__copy { max-width: 720px; }
}
/* Desktop (≥1280px): wide cut fills the hero, copy on a navy scrim at left */
@media (min-width: 1280px) {
  .hero--bg { display: flex; align-items: center; min-height: clamp(640px, calc(100svh - 110px), 860px); }
  /* past 1280px the shot slides right so the "Λ" stays clear of the copy; the gap on the left is plain navy */
  .hero__bg { left: max(0px, calc(50% - 640px)); bottom: 0; aspect-ratio: auto; background-image: url("../images/hero-member-wide-poster.webp?v=1003"); background-position: left center; }
  .hero__bg::after { background: linear-gradient(90deg, rgba(0, 25, 72, .94) 0%, rgba(0, 25, 72, .86) 34%, rgba(0, 25, 72, .35) 52%, rgba(0, 25, 72, 0) 66%); }
  .hero__video { object-position: left center; }
  .hero__art--tall { display: none; }
  .hero__art--wide { display: block; }
  .hero--bg .hero__grid { width: 100%; padding-top: var(--space-9); padding-bottom: var(--space-9); }
  .hero--bg .hero__copy { max-width: 600px; }
  .hero__lambda { stroke-width: 10px; }
}
@media (min-width: 1280px) {
  .hero__title { font-size: 64px; line-height: 68px; }
}

/* ---------- Sections ---------- */
.section { padding: var(--space-8) 0; }
.section--soft { background: var(--color-bg-soft); }
.section--navy { background: var(--color-bg-strong); color: var(--color-text-inverse); }
@media (min-width: 1024px) { .section { padding: var(--space-9) 0; } }

.section-head { max-width: 760px; }
.section-head--center { margin: 0 auto; text-align: center; }
.section-head h2 { font-size: var(--text-h1); line-height: var(--leading-h1); }
.section-head p { margin-top: var(--space-4); color: var(--color-text-muted); font-size: 17px; line-height: 27px; }
.on-navy .section-head p { color: var(--color-text-inverse-muted); }
.section-head .btn { margin-top: var(--space-6); }
@media (min-width: 1024px) { .section-head h2 { font-size: 44px; line-height: 50px; } }

/* ---------- Service cards ---------- */
.services { display: grid; gap: var(--space-5); margin-top: var(--space-7); }
.services--flush { margin-top: 0; }
@media (min-width: 900px) { .services { grid-template-columns: repeat(3, 1fr); } }
.service-card { display: flex; flex-direction: column; background: var(--bh-white); border: 1px solid var(--color-border); border-radius: var(--radius-lg); overflow: hidden; transition: transform .25s ease, box-shadow .25s ease; }
.service-card:hover { transform: translateY(-4px); box-shadow: 0 24px 60px rgba(0, 25, 72, .10); }
.service-card__media { position: relative; aspect-ratio: 16 / 11; overflow: hidden; }
.service-card__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; }
.service-card__body { display: flex; flex-direction: column; flex: 1; padding: var(--space-5); }
.service-card h3 { font-size: var(--text-h2); line-height: var(--leading-h2); }
.service-card .label { margin-top: var(--space-2); }
.service-card__lead { margin-top: var(--space-3); font-weight: 700; }
.service-card__more { margin-top: var(--space-4); padding-top: var(--space-4); border-top: 1px solid var(--color-border); color: var(--color-text-muted); }
.service-card__more strong { display: block; color: var(--color-text); margin-bottom: 4px; }
.service-card__cta { margin-top: auto; padding-top: var(--space-5); }
.service-card__cta .btn { width: 100%; text-transform: none; letter-spacing: 0; font-size: 15px; justify-content: space-between; }

/* NAD+ art */
.art-nad { height: 100%; display: grid; place-items: center; background: radial-gradient(120% 90% at 30% 20%, var(--bh-active-blue), var(--bh-signature-navy) 70%); color: var(--bh-white); overflow: hidden; position: relative; }
.art-nad__word { position: relative; z-index: 1; font-family: var(--font-display); font-weight: 700; font-size: 64px; line-height: 1; letter-spacing: -0.02em; }
.art-nad__word sup { color: var(--color-accent); font-size: .6em; vertical-align: .55em; }
.art-nad__ring { position: absolute; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .18); }
.art-nad__ring:nth-child(1) { width: 46%; aspect-ratio: 1; }
.art-nad__ring:nth-child(2) { width: 70%; aspect-ratio: 1; border-color: rgba(255, 255, 255, .10); }
.art-nad__ring:nth-child(3) { width: 96%; aspect-ratio: 1; border-color: rgba(254, 207, 1, .30); border-style: dashed; }

/* Labs panel art (no values shown: illustrative only) */
.art-labs { height: 100%; display: grid; place-items: center; background: linear-gradient(160deg, var(--bh-cloud), #E6E8F1); padding: var(--space-5); }
.panel { width: min(100%, 300px); background: var(--bh-white); border-radius: var(--radius-md); padding: 16px 18px; box-shadow: 0 18px 40px rgba(0, 25, 72, .12); }
.panel__title { font-family: var(--font-display); font-weight: 600; font-size: 13px; line-height: 18px; }
.panel__status { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--bh-active-blue); }
.panel__status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--color-accent); }
.panel__row { display: grid; grid-template-columns: 10px 1fr 46px; align-items: center; gap: 10px; margin-top: 12px; }
.panel__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--bh-active-blue); }
.panel__row:nth-child(4) .panel__dot { background: var(--color-accent); }
.panel__bar { height: 8px; border-radius: 99px; background: var(--bh-cloud); position: relative; overflow: hidden; }
.panel__bar::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w, 60%); border-radius: inherit; background: linear-gradient(90deg, var(--bh-royal-blue), var(--bh-active-blue)); }
.panel__val { height: 8px; border-radius: 99px; background: #E2E3EA; }

/* ---------- Why it's different: GSK "card-slides" — calm intro, staggered photo cards ---------- */
.why .section-head p { max-width: 880px; margin-left: auto; margin-right: auto; text-align: left; } /* GSK: centred title, body left-aligned in a narrow column */
@media (min-width: 768px) { .why .section-head p { text-align: center; } }
.rail__track.why-track { margin-top: var(--space-7); align-items: flex-start; } /* beats .rail__track { margin: 0 } later in the file */
.why-card { width: min(80vw, 340px); }
.why-card:nth-child(odd) { margin-top: var(--space-7); } /* middle card sits higher, as on gsk.com */
.why-card__link { display: flex; flex-direction: column; border-radius: var(--radius-lg); overflow: hidden; background: rgba(255, 255, 255, .06); color: inherit; text-decoration: none; transition: background-color .25s ease; }
.why-card__link:hover { background: rgba(255, 255, 255, .11); }
.why-card__media { display: block; aspect-ratio: 5 / 4; overflow: hidden; background: var(--bh-royal-blue); }
.why-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.why-card__link:hover .why-card__media img { transform: scale(1.04); }
.why-card__body { display: flex; flex-direction: column; min-height: 250px; padding: var(--space-5); }
.why-card h3 { font-size: 20px; line-height: 26px; }
.why-card p { margin-top: var(--space-3); color: var(--color-text-inverse-muted); }
/* the gsk.com corner control: outline circle that fills on hover */
.why-card__go { display: grid; place-items: center; align-self: flex-end; width: 46px; height: 46px; margin-top: auto; border: 1.5px solid rgba(255, 255, 255, .45); border-radius: 50%; color: var(--bh-white); transition: background-color .2s ease, border-color .2s ease, color .2s ease; }
.why-card__go svg { width: 18px; height: 18px; }
.why-card__link:hover .why-card__go, .why-card__link:focus-visible .why-card__go { background: var(--color-accent); border-color: var(--color-accent); color: var(--bh-signature-navy); }
@media (min-width: 1024px) {
  .why-card { width: calc((min(100cqi, var(--container)) - 2 * var(--gutter) - 2 * var(--space-5)) / 3); }
  .why-card:nth-child(odd) { margin-top: var(--space-8); }
  .why-card__body { min-height: 300px; }
}

/* ---------- Wellness coaches ---------- */
.coach { display: grid; gap: var(--space-7); align-items: center; }
.coach__title { font-size: var(--text-h1); line-height: var(--leading-h1); }
@media (min-width: 1024px) { .coach__title { font-size: 44px; line-height: 50px; } }
.coach__copy p { color: var(--color-text-muted); }
.coach__copy p + p { margin-top: var(--space-4); }
.coach__copy .intro { margin-top: var(--space-5); color: var(--color-text-muted); font-size: 17px; line-height: 27px; }
.checks { list-style: none; padding: 0; margin: var(--space-6) 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }
.checks li { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; line-height: 20px; }
.checks svg { flex: none; width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: var(--color-accent); color: var(--bh-signature-navy); }
.note { margin-top: var(--space-6); padding: var(--space-4); border-left: 3px solid var(--color-accent); background: var(--bh-cloud); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--color-text-muted); font-size: 14px; line-height: 21px; }
@media (min-width: 1024px) { .coach { grid-template-columns: 1fr 1fr; gap: var(--space-8); } .coach__art { order: -1; } }

/* chat illustration (skeleton text: no invented copy) */
.chat { position: relative; background: linear-gradient(160deg, var(--bh-signature-navy), var(--bh-royal-blue)); border-radius: var(--radius-lg); padding: var(--space-6) var(--space-5); overflow: hidden; }
.chat::after { content: ""; position: absolute; right: -80px; top: -80px; width: 240px; height: 240px; border-radius: 50%; background: radial-gradient(closest-side, rgba(254, 207, 1, .35), rgba(254, 207, 1, 0)); }
.chat__card { position: relative; z-index: 1; background: var(--bh-white); border-radius: var(--radius-md); padding: var(--space-4); box-shadow: 0 24px 60px rgba(0, 0, 0, .25); max-width: 420px; margin: 0 auto; }
.chat__head { display: flex; align-items: center; gap: 12px; padding-bottom: var(--space-3); border-bottom: 1px solid var(--color-border); }
.chat__avatar { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--bh-signature-navy); }
.chat__avatar img { width: 20px; height: auto; filter: brightness(0) invert(1); }
.chat__who { font-weight: 700; font-size: 15px; line-height: 18px; }
.chat__online { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--color-text-muted); }
.chat__online::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #2FB36B; }
.bubble { margin-top: var(--space-3); padding: 12px 14px; border-radius: 16px 16px 16px 4px; background: var(--bh-cloud); width: 78%; }
.bubble--me { margin-left: auto; border-radius: 16px 16px 4px 16px; background: var(--bh-active-blue); width: 64%; }
.bubble span { display: block; height: 8px; border-radius: 99px; background: rgba(0, 25, 72, .14); }
.bubble span + span { margin-top: 7px; width: 70%; }
.bubble--me span { background: rgba(255, 255, 255, .45); }
.chat__review { display: flex; align-items: center; gap: 10px; margin-top: var(--space-4); padding: 10px 12px; border-radius: var(--radius-sm); background: rgba(254, 207, 1, .18); font-weight: 700; font-size: 14px; }
.chat__review svg { width: 20px; height: 20px; color: var(--bh-signature-navy); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: var(--space-7); }
.faq__intro h3 { margin-top: var(--space-6); font-size: var(--text-h2); line-height: var(--leading-h2); }
.faq__intro p { margin-top: var(--space-3); color: var(--color-text-muted); }
.faq__list { border-top: 1px solid var(--color-border); }
.faq-item { border-bottom: 1px solid var(--color-border); }
.faq-item summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: var(--space-4);
  padding: var(--space-5) 0; font-family: var(--font-display); font-weight: var(--weight-display); font-size: 17px; line-height: 24px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: ""; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--bh-cloud) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23001948' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / 16px no-repeat; transition: transform .25s ease, background-color .25s ease; }
.faq-item[open] summary::after { transform: rotate(45deg); background-color: var(--color-accent); }
.faq-item__body { padding: 0 0 var(--space-5); color: var(--color-text-muted); max-width: 720px; }
.faq-item__body p + p { margin-top: var(--space-3); }
.faq-item__body h4 { font-family: var(--font-body); font-weight: 700; font-size: 16px; color: var(--color-text); margin-bottom: var(--space-2); }
@media (min-width: 1024px) { .faq { grid-template-columns: .8fr 1.2fr; gap: var(--space-8); } .faq__intro { position: sticky; top: 110px; align-self: start; } }

/* ---------- Join / early access ---------- */
.join { display: grid; gap: var(--space-7); align-items: start; }
.join__copy h2 { font-size: var(--text-h1); line-height: var(--leading-h1); }
.join__copy p { margin-top: var(--space-4); color: var(--color-text-inverse-muted); font-size: 17px; line-height: 27px; }
.join__copy .hipaa { display: flex; gap: 12px; align-items: flex-start; margin-top: var(--space-6); color: var(--bh-white); font-size: 15px; line-height: 22px; }
.join__copy .hipaa svg { flex: none; width: 24px; height: 24px; color: var(--color-accent); }
@media (min-width: 1024px) { .join { grid-template-columns: .9fr 1.1fr; gap: var(--space-8); } .join__copy h2 { font-size: 44px; line-height: 50px; } }

.form-card { background: var(--bh-white); color: var(--color-text); border-radius: var(--radius-lg); padding: var(--space-6) var(--space-5); box-shadow: 0 30px 80px rgba(0, 0, 0, .25); }
.form-card h3 { font-size: var(--text-h2); line-height: var(--leading-h2); }
.form-grid { display: grid; gap: var(--space-4); margin-top: var(--space-5); }
.field label { display: block; margin-bottom: 6px; font-weight: 700; font-size: 14px; }
.field input, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border: 1.5px solid var(--color-border); border-radius: var(--radius-sm);
  font: inherit; color: var(--color-text); background: var(--bh-white); transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--bh-active-blue); box-shadow: 0 0 0 4px rgba(8, 73, 160, .14); }
.field--error input { border-color: #C2362B; }
.field__error { display: none; margin-top: 6px; color: #C2362B; font-size: 13px; }
.field--error .field__error { display: block; }
.consent { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-size: 12.5px; line-height: 18px; color: var(--color-text-muted); }
.consent input { width: 20px; height: 20px; margin: 0; accent-color: var(--bh-signature-navy); }
.form-legal { font-size: 13px; line-height: 19px; color: var(--color-text-muted); }
.form-error { color: #C2362B; font-size: 14px; line-height: 20px; font-weight: 700; }
.form-card .btn:disabled { opacity: .6; cursor: progress; transform: none; }
.form-card .btn { width: 100%; }
.form-success { text-align: center; padding: var(--space-6) 0; }
.form-success__icon { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto var(--space-4); border-radius: 50%; background: var(--color-accent); color: var(--bh-signature-navy); }
.form-success__icon svg { width: 30px; height: 30px; }
.form-success p { margin-top: var(--space-3); color: var(--color-text-muted); }
@media (min-width: 768px) { .form-grid--2 { grid-template-columns: 1fr 1fr; } .form-card { padding: var(--space-7); } }

.seal-placeholder { display: inline-flex; align-items: center; justify-content: center; min-width: 120px; min-height: 60px; padding: 8px 12px; border: 1.5px dashed currentColor; border-radius: var(--radius-sm); font-size: 11px; line-height: 14px; text-align: center; letter-spacing: .06em; text-transform: uppercase; opacity: .7; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bh-midnight); color: var(--color-text-inverse-muted); padding: var(--space-8) 0 var(--space-6); font-size: 14px; line-height: 21px; }
.footer-top { display: grid; gap: var(--space-6); padding-bottom: var(--space-7); border-bottom: 1px solid var(--color-border-inverse); }
.footer-brand img { width: 170px; height: auto; }
.footer-brand h2 { margin-top: var(--space-5); color: var(--bh-white); font-size: 20px; line-height: 26px; }
.footer-brand p { margin-top: 4px; }
.footer-col h3 { font-family: var(--font-body); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--color-accent); }
.footer-col p, .footer-col ul { margin-top: var(--space-3); }
.footer-col__next { margin-top: var(--space-5); }
.footer-col ul { list-style: none; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--bh-white); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer-legal { padding-top: var(--space-6); display: grid; gap: var(--space-3); font-size: 12.5px; line-height: 19px; color: rgba(255, 255, 255, .6); }
.footer-legal a { text-decoration: underline; }
.footer-copy { margin-top: var(--space-4); color: rgba(255, 255, 255, .8); }
@media (min-width: 900px) { .footer-top { grid-template-columns: 1.3fr 1fr 1fr 1.2fr; } }

/* ---------- Rail: horizontal scroll-snap track + arrows + progress (after gsk.com's carousels) ---------- */
/* The track bleeds to the viewport edge but its first card lines up with the container */
.rail { container-type: inline-size; --rail-inset: max(var(--gutter), calc((100cqi - var(--container)) / 2 + var(--gutter))); }
.rail__track {
  list-style: none; margin: 0; padding: var(--space-2) var(--rail-inset) var(--space-5);
  display: flex; gap: var(--space-5); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--rail-inset);
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.rail__track::-webkit-scrollbar { display: none; }
.rail__track > li { flex: none; scroll-snap-align: start; }
.rail__controls { display: flex; align-items: center; justify-content: center; gap: var(--space-4); margin-top: var(--space-3); }
.rail--static .rail__controls { display: none; }
.rail__btn { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1.5px solid var(--color-border); border-radius: 50%; background: var(--bh-white); color: var(--bh-signature-navy); cursor: pointer; transition: background-color .2s ease, opacity .2s ease; }
.rail__btn svg { width: 18px; height: 18px; }
.rail__btn[data-rail-prev] svg { transform: rotate(180deg); }
.rail__btn:hover:not(:disabled) { background: var(--color-accent); border-color: var(--color-accent); }
.rail__btn:disabled { opacity: .35; cursor: default; }
.rail__progress { position: relative; width: min(320px, 50vw); height: 4px; border-radius: 99px; background: var(--color-border); overflow: hidden; }
.rail__bar { position: absolute; inset: 0 auto 0 0; width: var(--rail-size, 30%); border-radius: inherit; background: var(--bh-active-blue); transform: translateX(var(--rail-pos, 0%)); }
.on-navy .rail__btn { background: transparent; border-color: var(--color-border-inverse); color: var(--bh-white); }
.on-navy .rail__btn:hover:not(:disabled) { color: var(--bh-signature-navy); }
.on-navy .rail__progress { background: var(--color-border-inverse); }
.on-navy .rail__bar { background: var(--color-accent); }

/* ---------- Personalized care: staggered photo cards (gsk.com story strip) ---------- */
.story-track { margin-top: var(--space-7); align-items: flex-start; }
.story { width: min(78vw, 320px); }
.story:nth-child(odd) { margin-top: var(--space-7); } /* the gsk.com stagger */
.story__media { display: block; aspect-ratio: 3 / 4; border-radius: var(--radius-lg); overflow: hidden; background: var(--bh-royal-blue); }
.story__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.story:hover .story__media img { transform: scale(1.04); }
.story__title { margin-top: var(--space-4); font-size: 20px; line-height: 26px; }
.story__text { margin-top: var(--space-2); color: var(--color-text-muted); }
@media (min-width: 1024px) {
  .story { width: calc((min(100cqi, var(--container)) - 2 * var(--gutter) - 2 * var(--space-5)) / 3); }
  .story:nth-child(odd) { margin-top: var(--space-8); }
  .story__media { aspect-ratio: 4 / 5; }
}

/* ---------- How it works: big-number cards over the cell render (gsk.com stat cards) ---------- */
.how { position: relative; isolation: isolate; overflow: hidden; }
.how::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(60% 45% at 50% 18%, var(--bh-cloud) 30%, rgba(243, 243, 247, 0)), url("../images/impact-cells.webp?v=1009") right bottom / cover no-repeat; opacity: .9;
}
.step-track { margin-top: var(--space-7); }
.step-card {
  display: flex; flex-direction: column; width: min(82vw, 360px); min-height: 300px; padding: var(--space-6) var(--space-5);
  background: rgba(255, 255, 255, .92); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  border-radius: var(--radius-lg); box-shadow: 0 18px 50px rgba(0, 25, 72, .08);
}
.step-card h3 { font-size: var(--text-h2); line-height: var(--leading-h2); }
.step-card p { margin-top: var(--space-3); color: var(--color-text-muted); font-size: 17px; line-height: 27px; }
/* the step number sits at the foot of the card: no text above the title */
.step-card__num { margin-top: auto; padding-top: var(--space-5); font-family: var(--font-display); font-weight: var(--weight-display); font-size: 96px; line-height: .8; letter-spacing: -0.04em; color: var(--bh-active-blue); }
@media (min-width: 1024px) {
  .step-card { width: calc((min(100cqi, var(--container)) - 2 * var(--gutter) - 2 * var(--space-5)) / 3); min-height: 340px; }
  .step-card__num { font-size: 128px; }
}

/* ---------- The hero's "Λ" window, reused on card photos: navy shade outside the letter, yellow edge fading out ---------- */
.story__media { position: relative; } /* only the Personalized Care cards carry it, besides the hero */
.lambda { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.lambda__shade { fill: var(--bh-signature-navy); opacity: .8; }
.lambda__edge { fill: none; stroke: url(#bh-lambda-fade); stroke-width: 4px; }

/* ---------- Back to top: circle on the footer's top edge (gsk.com) ---------- */
.site-footer { position: relative; }
.to-top {
  position: absolute; top: -32px; right: var(--gutter); display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%;
  background: var(--color-accent); color: var(--bh-signature-navy); box-shadow: 0 0 0 6px rgba(254, 207, 1, .25), 0 12px 30px rgba(0, 0, 0, .25);
  transition: transform .2s ease;
}
.to-top svg { width: 24px; height: 24px; transform: rotate(-90deg); }
.to-top:hover { transform: translateY(-3px); }
.site-footer a.to-top { color: var(--bh-signature-navy); text-decoration: none; }
.to-top { right: max(var(--gutter), calc(50% - var(--container) / 2 + var(--gutter))); }

/* ---------- Reveal (JS adds .js; reduced motion shows everything) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- Small phones ---------- */
@media (max-width: 479px) {
  .topbar { font-size: 10px; letter-spacing: .04em; padding: 8px 12px; }
  .site-header__logo img { width: 124px; } /* stays above the 120px digital minimum */
  .site-header .btn--sm { padding: 0 16px; font-size: 11px; letter-spacing: .02em; }
}
.btn { white-space: nowrap; }
.service-card__cta .btn, .hero__cta .btn { white-space: normal; }
