/* Variant A (v2) — Editorial Layout
   Vanilla rebuild of the Lovable design. Colours come from tokens.css only. */

/* ---- Shared primitives ---- */

.section__inner {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
}

.section__inner--narrow { max-width: 940px; }
.section__inner--form   { max-width: 760px; }

.section { background-color: var(--color-bg-page); }
.section--sand { background-color: var(--color-bg-section); }

.section,
section[id] { scroll-margin-top: 90px; }

/* Section headings sit in ink; only accents use clay */
.section__title {
  color: var(--color-text-body);
  font-size: clamp(1.75rem, 1.1rem + 2vw, 2.5rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  max-width: 22ch;
}

.section__title--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  max-width: 24ch;
}

/* Waitlist headline uses explicit <br> breaks — don't re-wrap via max-width */
.waitlist__headline { max-width: none; }

/* One-line title that runs the full width of the section.
   Only forced to a single line once there is room (desktop); wraps below. */
.section__title--wide { max-width: none; }

@media (min-width: 1180px) {
  .section__title--wide { white-space: nowrap; }
}

.kicker {
  display: block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-primary);
  margin-bottom: 1.25rem;
}

.kicker--center { text-align: center; }

.text-clay { color: var(--color-primary); }

/* ---- Buttons & links ---- */

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 999px;
  background-color: var(--color-primary);
  color: var(--color-bg-page);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  padding: 0.425rem 1.6rem;
  transition: opacity 0.2s ease;
}

.cta:hover { opacity: 0.9; }

.cta__icon {
  width: 0.96em;
  height: 2.4em;
  flex-shrink: 0;
  background-color: currentColor;
  -webkit-mask: url("../../assets/icons/logo-icon-white.svg") no-repeat center / contain;
  mask: url("../../assets/icons/logo-icon-white.svg") no-repeat center / contain;
}

.cta--sm { padding: 0.3rem 1.25rem; font-size: 0.875rem; }

.textlink {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9375rem;
  color: var(--color-text-body);
  transition: color 0.2s ease;
}

.textlink:hover { color: var(--color-primary); }

/* ---- Masthead ---- */

.masthead {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: color-mix(in srgb, var(--color-bg-page) 80%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}

.masthead__inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.425rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.masthead__logo {
  display: block;
  height: 39px;
  width: auto;
}

.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 0.45rem;
}

.wordmark__name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1;
  color: var(--color-primary);
  letter-spacing: -0.01em;
}

.wordmark__sub {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-muted);
}

.mainnav {
  display: none;
  align-items: center;
  gap: 2rem;
  font-size: 0.9375rem;
  color: var(--color-muted);
}

.mainnav a { transition: color 0.2s ease; }
.mainnav a:hover { color: var(--color-primary); }
.mainnav a[aria-current="page"] { color: var(--color-primary); }

/* ---- Mobile nav toggle (hamburger). Hidden on desktop; on phones it reveals
   the .mainnav dropdown by toggling .masthead--nav-open (see mobile block +
   shared/js/nav.js). ---- */
.navtoggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  background: none;
  cursor: pointer;
  padding: 0;
  order: -1;
}

.navtoggle__bar,
.navtoggle__bar::before,
.navtoggle__bar::after {
  display: block;
  width: 1.35rem;
  height: 2px;
  background-color: var(--color-text-body);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.navtoggle__bar { position: relative; }

.navtoggle__bar::before,
.navtoggle__bar::after {
  content: "";
  position: absolute;
  left: 0;
}

.navtoggle__bar::before { top: -6px; }
.navtoggle__bar::after { top: 6px; }

.masthead--nav-open .navtoggle__bar { background-color: transparent; }
.masthead--nav-open .navtoggle__bar::before { top: 0; transform: rotate(45deg); }
.masthead--nav-open .navtoggle__bar::after { top: 0; transform: rotate(-45deg); }

/* ---- Hero ---- */

.hero {
  background-color: var(--color-bg-page);
  overflow-x: clip;
  padding-top: 3.5rem;
  padding-bottom: 4rem;
}

.hero__inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 999px;
  background-color: color-mix(in srgb, var(--color-secondary) 20%, transparent);
  color: var(--color-primary);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 0.4rem 0.85rem;
}

.badge__dot {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background-color: var(--color-primary);
}

.hero__title {
  color: var(--color-text-body);
  font-size: clamp(2rem, 1rem + 3vw, 3.2rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin-top: 1.5rem;
}

.hero__title-row { white-space: nowrap; }

.hero__title em {
  color: var(--color-primary);
  font-style: italic;
}

.hero__lead {
  color: var(--color-muted);
  font-size: 1.125rem;
  line-height: 1.7;
  max-width: 34rem;
  margin-top: 1.5rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  margin-top: 2.25rem;
}

.hero__fineprint {
  color: var(--color-muted);
  font-size: 0.8125rem;
  line-height: 1.6;
  max-width: 28rem;
  margin-top: 2rem;
}

.hero__media { position: relative; }

.hero__media-frame {
  position: relative;
  border-radius: 1.75rem;
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: 0 30px 80px -30px rgba(80, 20, 30, 0.35);
}

.hero__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---- Problem ---- */

.problem__grid {
  margin-top: 3rem;
  display: grid;
  gap: 2.5rem;
}

.problem__list {
  display: grid;
  gap: 0.9rem;
  align-content: start;
}

.problem__list li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 1.0625rem;
  line-height: 1.5;
  color: var(--color-text-body);
}

.problem__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background-color: var(--color-primary);
}

.problem__body p {
  color: var(--color-muted);
  font-size: 1.0625rem;
  line-height: 1.75;
  margin-bottom: 1.25rem;
}

.problem__body .text-clay { color: var(--color-primary); }

/* ---- Approach ---- */

.approach__grid {
  display: grid;
  gap: 3rem;
}

.approach__lead {
  color: var(--color-text-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  margin-top: 1.5rem;
}

.approach__text {
  color: var(--color-muted);
  font-size: 1rem;
  line-height: 1.7;
  margin-top: 1rem;
}

.approach__callout {
  font-family: var(--font-display);
  color: var(--color-primary);
  font-size: 1.25rem;
  line-height: 1.5;
  margin-top: 1.5rem;
}

.approach__list { display: grid; gap: 2.25rem; }

.approach__item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
}

.approach__num {
  font-family: var(--font-display);
  color: var(--color-primary);
  font-size: 1.5rem;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.approach__item-title {
  color: var(--color-primary);
  font-size: 1.25rem;
}

.approach__item-body {
  color: var(--color-muted);
  font-size: 1rem;
  line-height: 1.7;
  margin-top: 0.5rem;
}

/* Approach + its detail grid read as one section: tighten the seam */
#approach { padding-bottom: 1.5rem; }
#approach-detail { padding-top: 1.5rem; }

/* ---- Reusable image frame / placeholder ---- */

.media-frame {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 1.25rem;
  border: 1px solid var(--color-border);
  background-color: var(--color-bg-section);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Wider frame for landscape images (e.g. the approach photo) to limit cropping */
.media-frame--wide { aspect-ratio: 3 / 2; }

/* Approach photo: mirror horizontally + zoom in ~15% (frame clips the overflow) */
.approach__grid .media-frame img {
  transform: scale(-1.15, 1.15);
}

.media-frame__label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-muted);
}

/* ---- Program & Kit ---- */

.program__head { max-width: none; }

.program__lead {
  color: var(--color-muted);
  font-size: 1.0625rem;
  line-height: 1.75;
  margin-top: 1.5rem;
}

.program__grid {
  margin-top: 3.5rem;
  display: grid;
  gap: 2.5rem;
}

.program__media {
  border-radius: 1.25rem;
  overflow: hidden;
  border: 1px solid var(--color-border);
  background-color: var(--color-bg-section);
}

.program__photo {
  width: 100%;
  height: 100%;
  aspect-ratio: 9 / 10;
  object-fit: cover;
  display: block;
}

.kit-list { align-self: start; }

.kit-list__item {
  padding: 1.25rem 0;
  border-top: 1px solid var(--color-border);
}

.kit-list__item:first-child { border-top: none; padding-top: 0; }

.kit-list__title {
  color: var(--color-text-body);
  font-size: 1.1875rem;
}

.kit-list__desc {
  color: var(--color-muted);
  font-size: 0.9375rem;
  line-height: 1.6;
  margin-top: 0.35rem;
}

/* ---- Waitlist ---- */

.waitlist__intro {
  color: var(--color-muted);
  font-size: 1.0625rem;
  line-height: 1.7;
  text-align: center;
  max-width: 38rem;
  margin: 1.25rem auto 0;
}

.waitlist__note {
  color: var(--color-muted);
  font-size: 1.0625rem;
  line-height: 1.7;
  text-align: center;
  max-width: 42rem;
  margin: 1rem auto 0;
}

.section__inner--form .waitlist-form-wrapper {
  max-width: none;
  margin-top: 3rem;
}

.waitlist-form {
  display: grid;
  gap: 1.25rem;
  background-color: var(--color-bg-page);
  border: 1px solid var(--color-border);
  border-radius: 1.25rem;
  padding: 1.75rem;
}

.field { display: block; }
.field--full { grid-column: 1 / -1; }

.field__label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

/* Override the shared single-column input styling for this carded form */
.waitlist-form .field input,
.waitlist-form .field select,
.waitlist-form .field textarea {
  display: block;
  width: 100%;
  margin-bottom: 0;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--color-text-body);
  background-color: var(--color-bg-page);
  border: 1px solid var(--color-border);
  border-radius: 0.6rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.waitlist-form .field textarea {
  resize: vertical;
  min-height: 5rem;
}

.waitlist-form .field input:focus,
.waitlist-form .field select:focus,
.waitlist-form .field textarea:focus {
  outline: none;
  border-color: color-mix(in srgb, var(--color-primary) 50%, transparent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 18%, transparent);
}

/* FAQ question field — sentence-case prompt instead of an uppercase label */
.field--question .field__label {
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.875rem;
}

.waitlist-form__foot {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
}

.waitlist-form__consent {
  color: var(--color-muted);
  font-size: 0.8125rem;
  line-height: 1.6;
  max-width: none;
}

.waitlist-form__consent a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Restore pill styling on the submit button (beats shared full-width rule) */
.waitlist-form .waitlist-form__foot button[type="submit"] {
  display: inline-flex;
  width: auto;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background-color: var(--color-primary);
  color: var(--color-bg-page);
  font-weight: 500;
  font-size: 0.9375rem;
  padding: 0.425rem 1.6rem;
}

.waitlist-confirmation h3 { color: var(--color-primary); }
.waitlist-confirmation p { color: var(--color-muted); }

/* ---- Footer ---- */

.footer {
  background-color: color-mix(in srgb, var(--color-bg-section) 60%, var(--color-bg-page));
  border-top: 1px solid var(--color-border);
  padding: 3.5rem 1.5rem;
}

.footer__inner { max-width: 1120px; margin: 0 auto; }

.footer__cols {
  display: grid;
  gap: 2.5rem;
}

.footer__brand .wordmark { margin-bottom: 0.75rem; }

.footer__logo {
  display: block;
  height: 28px;
  width: auto;
  margin-bottom: 0.9rem;
}

.footer__blurb {
  color: var(--color-muted);
  font-size: 0.875rem;
  line-height: 1.6;
  max-width: 22rem;
}

.footer__heading {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-muted);
  margin-bottom: 0.85rem;
}

.footer__links { display: grid; gap: 0.6rem; font-size: 0.9375rem; }
.footer__links a { color: var(--color-text-body); transition: color 0.2s ease; }
.footer__links a:hover { color: var(--color-primary); }

.footer__inline-link {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer__inline-link:hover { text-decoration: none; }

.footer__base {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--color-muted);
}

/* ---- Modal readability override ---- */

.modal__subtitle { color: var(--color-muted); }

/* Clinician modal form — visible bordered fields; required vs optional text colour
   (shared components.css styles it with the removed --color-soft token) */
#clinician-form input,
#clinician-form select,
#clinician-form textarea {
  color: var(--color-text-body);
  background-color: var(--color-bg-page);
  border: 1px solid color-mix(in srgb, var(--color-text-body) 30%, transparent);
  border-radius: 0.6rem;
}

#clinician-form input:focus,
#clinician-form select:focus,
#clinician-form textarea:focus {
  outline: none;
  border-color: color-mix(in srgb, var(--color-primary) 60%, transparent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 18%, transparent);
}

/* Required fields read in dark ink; optional fields in the secondary colour */
#clinician-form input:required::placeholder,
#clinician-form textarea:required::placeholder {
  color: var(--color-text-body);
  opacity: 1;
}

#clinician-form input:optional::placeholder,
#clinician-form textarea:optional::placeholder {
  color: var(--color-secondary);
  opacity: 1;
}

#clinician-form select:required { color: var(--color-text-body); }
#clinician-form select:optional { color: var(--color-secondary); }

.form-field-note { color: var(--color-muted); }

/* Clinician modal — 50% wider than the default 440px */
.modal { max-width: 660px; }

/* ---- Legal document modals (Privacy Policy / Terms of Use) ---- */

.modal.modal--doc {
  max-width: 720px;
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  padding: 2rem 1.75rem 2rem 2rem;
  text-align: left;
}

.modal--doc .modal__close {
  z-index: 2;
  width: 1.9rem;
  height: 1.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-bg-page);
  border-radius: 50%;
}

.modal--doc .doc {
  overflow-y: auto;
  min-height: 0;
  padding-right: 0.75rem;
}

.doc__title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--color-text-body);
  margin-bottom: 0.2rem;
}

.doc__entity { font-weight: 700; color: var(--color-text-body); margin-bottom: 0.1rem; }
.doc__date { color: var(--color-text-body); font-size: 0.875rem; margin-bottom: 1.5rem; }

/* Section subtitles (e.g. "Who we are") in the primary colour */
.doc h3 {
  font-family: var(--font-display);
  font-size: 1.1875rem;
  color: var(--color-primary);
  margin-top: 1.6rem;
  margin-bottom: 0.4rem;
}

.doc h4 {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--color-text-body);
  margin-top: 0.9rem;
  margin-bottom: 0.2rem;
}

.doc p {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--color-text-body);
  margin-bottom: 0.75rem;
}

.doc a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Submit button: flame icon + centred label (padding trimmed for the tall icon) */
#clinician-form button[type="submit"] {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

/* Collection notice above the submit button */
.clinician-consent {
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--color-muted);
  margin-bottom: 1rem;
}

.clinician-consent a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ---- Responsive ---- */

@media (min-width: 768px) {
  .mainnav { display: flex; }
  .navtoggle { display: none; }

  .problem__grid { grid-template-columns: 0.86fr 1.14fr; gap: 3rem; }

  .approach__list--grid { grid-template-columns: 1fr 1fr; gap: 2.75rem 4rem; }

  .footer__cols { grid-template-columns: 1.4fr 0.8fr 1.6fr; }
  .footer__group--end { justify-self: end; text-align: right; }
  .footer__group--end .footer__blurb { margin-left: auto; max-width: 28rem; }
  .footer__base { flex-direction: row; justify-content: space-between; align-items: center; }
}

@media (min-width: 1024px) {
  .hero {
    padding-top: 5rem;
    padding-bottom: 6rem;
  }

  .hero__inner {
    flex-direction: row;
    align-items: center;
    gap: 4rem;
  }

  .hero__copy { flex: 1; }
  .hero__media { flex: 1; }

  .approach__grid { grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }

  .program__grid {
    grid-template-columns: 0.8fr 1.2fr;
    gap: 3.5rem;
    align-items: center;
  }
}

/* ---- Mobile refinements (phone only — desktop layout unchanged) ---- */
@media (max-width: 767px) {
  /* Smaller logo leaves more room for the waitlist CTA (kept compact so the
     CTA stays on one line down to the smallest phones, e.g. iPhone XR 414px) */
  .masthead__logo { height: 21.8px; }

  /* Keep the header CTA on a single line; don't let flex squeeze it to wrap */
  .masthead .cta { white-space: nowrap; flex-shrink: 0; }

  /* Nav collapses into a dropdown revealed by the hamburger (.masthead--nav-open).
     Anchored to the sticky .masthead, it drops full-width below the header bar. */
  .mainnav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background-color: var(--color-bg-page);
    border-bottom: 1px solid var(--color-border);
    padding: 0.5rem 1.5rem 1rem;
  }

  .mainnav a {
    display: block;
    width: 100%;
    padding: 0.75rem 0;
  }

  .masthead--nav-open .mainnav { display: flex; }

  /* Hero image sits directly below the headline; the rest of the copy
     continues beneath it. display:contents flattens .hero__copy so its
     children can be ordered alongside .hero__media in the column flex. */
  .hero__inner { gap: 0; }
  .hero__copy { display: contents; }
  .hero .badge { order: 1; }
  .hero__title { order: 2; }
  .hero__media { order: 3; margin-top: 2rem; }
  .hero__lead { order: 4; }
  .hero__actions { order: 5; }
  .hero__fineprint { order: 6; }

  /* Let the lead wrap naturally instead of honouring the manual break */
  .hero__lead br { display: none; }

  /* Scale the lead with the text width so its line breaks stay consistent
     across phone widths (calibrated to iPhone 14 Pro Max at 430px = 18px). */
  .hero__lead { font-size: clamp(0.85rem, calc((100vw - 48px) / 21.2), 1.125rem); }

  /* Approach section: image sits below the "Stimulate, then exercise" heading,
     mirroring the hero. display:contents flattens .approach__intro so its
     children order alongside the image within the grid. */
  .approach__grid { gap: 0; }
  .approach__intro { display: contents; }
  .approach__intro .kicker { order: 1; }
  .approach__intro .section__title { order: 2; }
  .approach__grid .media-frame--wide { order: 3; margin-top: 2rem; }
  .approach__lead { order: 4; }
  .approach__text { order: 5; }
}

/* ==========================================================================
   v04 landing revamp — additive layout for the two-product structure.
   Reuses existing tokens/classes; introduces a generic media+text row and the
   two-product grid so the new sections don't overload the approach/program
   grids (which carry section-specific mirror/order rules).
   ========================================================================== */

/* Screen-reader-only utility (used by the interest modal legend) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Prose body block — mission / product intros / grip-strength copy */
.section__body { max-width: 44rem; margin-top: 1.5rem; }
.section__body p {
  color: var(--color-muted);
  font-size: 1.0625rem;
  line-height: 1.75;
  margin-top: 1.25rem;
}
.section__body p:first-child { margin-top: 0; }
.section__body .text-clay { color: var(--color-primary); }

/* Two products, one goal — summary cards + jump-link row */
.products__grid { display: grid; gap: 2rem; margin-top: 2.5rem; }

.product-card {
  padding: 1.75rem;
  border: 1px solid var(--color-border);
  border-radius: 1.25rem;
  background-color: var(--color-bg-section);
}

.product-card__title {
  font-family: var(--font-display);
  color: var(--color-primary);
  font-size: 1.375rem;
  margin-bottom: 0.6rem;
}

.product-card__body {
  color: var(--color-muted);
  font-size: 1rem;
  line-height: 1.7;
}

.products__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.5rem;
}

/* Detailed product columns (image + heading + descriptor + bullets) shown
   side by side within .products__grid (stacks to one column on small screens) */
.products__grid--detailed { gap: 3rem; align-items: start; }
.product .product-heading { margin-bottom: 0.75rem; }
.product > .media-frame { margin-bottom: 1.25rem; }
.product .section__body { margin-top: 0; max-width: none; }
.product .kit-list { margin-top: 1.5rem; }

/* Generic media + text row (HMES One, Exercise Kit, grip strength, how-it-fits) */
.media-row { display: grid; gap: 2.5rem; margin-top: 2.5rem; }
.media-row__media { align-self: start; }
.media-row__body .kit-list { margin-top: 1.75rem; }
.media-row__body .textlink { margin-top: 1.75rem; }
.media-row__body .cta { margin-top: 2rem; }

@media (min-width: 1024px) {
  .products__grid { grid-template-columns: 1fr 1fr; }
  .media-row {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
  }
  /* Flip the image to the right on wide screens; stacks image-first on mobile */
  .media-row--reverse .media-row__media { order: 2; }
}

/* ---- Interest modal (waitlist second step) ---- */

/* Keep it compact (the global .modal override widens to 660px for clinician) */
#interest-modal .modal { max-width: 440px; }

.interest-options {
  border: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: grid;
  gap: 0.75rem;
}

.interest-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.1rem;
  border: 1px solid var(--color-border);
  border-radius: 0.75rem;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.interest-option:hover {
  border-color: color-mix(in srgb, var(--color-primary) 45%, transparent);
}

.interest-option input {
  accent-color: var(--color-primary);
  width: 1.05rem;
  height: 1.05rem;
}

.interest-option span { color: var(--color-text-body); font-size: 1rem; }

/* Highlight the chosen option */
.interest-option:has(input:checked) {
  border-color: var(--color-primary);
  background-color: var(--color-bg-section);
}

#interest-form button[type="submit"] {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.7rem 1rem;
  background-color: var(--color-primary);
  color: var(--color-bg-page);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

#interest-form button[type="submit"]:hover { opacity: 0.9; }
#interest-form button[type="submit"]:disabled { opacity: 0.7; cursor: not-allowed; }

/* ==========================================================================
   v04 — statement hero (landing). Mirrors the Our Story page opener: the
   tagline + subtext overlaid on the left of a full-width lifestyle photo.
   ========================================================================== */
.story-hero {
  background-color: var(--color-bg-page);
  padding-top: 2rem;
  padding-bottom: 2.45rem;
}

.story-hero__inner { max-width: 1120px; margin: 0 auto; }

.story-hero__media {
  position: relative;
  border-radius: 1.75rem;
  overflow: hidden;
  border: 1px solid var(--color-border);
  background-color: var(--color-bg-section);
  aspect-ratio: 16 / 9;
}

.story-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% center;
  display: block;
}

/* Left scrim so the dark statement stays legible over the photo */
.story-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--color-bg-page) 82%, transparent) 0%,
    color-mix(in srgb, var(--color-bg-page) 55%, transparent) 34%,
    transparent 62%
  );
  pointer-events: none;
}

.story-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  padding: clamp(1.5rem, 4vw, 3.5rem);
}

.story-hero__overlay-inner { max-width: 56%; }

.story-hero__statement {
  color: var(--color-text-body);
  font-size: clamp(1.9rem, 1rem + 3vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-top: 0.75rem;
  display: flex;
  flex-direction: column;
  text-wrap: balance;
}

.story-hero__statement em { color: var(--color-primary); font-style: italic; }

/* Landing hero, right-positioned variant: statement sits on the right over the
   open background, photo keeps its natural orientation (woman on the left).
   Scoped with --right so the Our Story hero, which shares .story-hero classes,
   is unaffected. */
.story-hero--right .story-hero__overlay { justify-content: flex-end; }
.story-hero--right .story-hero__overlay-inner { text-align: right; }
.story-hero--right .story-hero__statement { align-items: flex-end; }
.story-hero--right .story-hero__sub { margin-left: auto; }
.story-hero--right .hero__actions { justify-content: flex-end; }
.story-hero--right .hero__fineprint { margin-left: auto; }
/* Scrim on the right, behind the statement (more opaque so the text stands out) */
.story-hero--right .story-hero__media::after {
  background: linear-gradient(
    270deg,
    color-mix(in srgb, var(--color-bg-page) 95%, transparent) 0%,
    color-mix(in srgb, var(--color-bg-page) 74%, transparent) 40%,
    transparent 72%
  );
}

.story-hero__sub {
  color: var(--color-text-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  margin-top: 1.25rem;
  max-width: 34rem;
}

.story-hero .hero__actions { margin-top: 1.75rem; }
.story-hero .hero__fineprint { margin-top: 1.25rem; }

/* Mobile-only foot (CTA + fineprint below the image); hidden on desktop */
.story-hero__foot { display: none; }

@media (max-width: 700px) {
  .story-hero__media { aspect-ratio: 3 / 4; }
  .story-hero__img { object-position: 66% center; }
  /* Landing hero: sample further left so the woman's whole head is in frame
     (shifts the visible crop ~20% of the image width leftward vs the 66% default). */
  .story-hero--right .story-hero__img { object-position: 26% center; }
  /* Statement drops to the bottom over a bottom-anchored scrim */
  .story-hero__overlay { align-items: stretch; }
  .story-hero__overlay-inner {
    max-width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
  }
  .story-hero__statement { font-size: clamp(1.72rem, 7.1vw, 2.3rem); }
  .story-hero__media::after {
    background: linear-gradient(
      to top,
      color-mix(in srgb, var(--color-bg-page) 88%, transparent) 0%,
      color-mix(in srgb, var(--color-bg-page) 55%, transparent) 38%,
      transparent 66%
    );
  }

  /* Landing hero (mobile): statement + subtext pinned to the TOP over a
     top-down scrim; the CTA + fineprint drop below the image (.story-hero__foot).
     Scoped to --right so the Our Story hero keeps its bottom-anchored layout. */
  .story-hero--right .story-hero__overlay-inner { justify-content: flex-start; }
  /* Fineprint moves below the image; the CTA stays overlaid, pinned to the
     bottom-right corner of the image. */
  .story-hero--right .story-hero__overlay-inner .hero__fineprint { display: none; }
  .story-hero--right .story-hero__overlay-inner .hero__actions {
    position: absolute;
    right: clamp(1.5rem, 4vw, 3.5rem);
    bottom: clamp(1.5rem, 4vw, 3.5rem);
    margin: 0;
    justify-content: flex-end;
  }
  .story-hero--right .story-hero__media::after {
    background: linear-gradient(
      to bottom,
      color-mix(in srgb, var(--color-bg-page) 92%, transparent) 0%,
      color-mix(in srgb, var(--color-bg-page) 58%, transparent) 30%,
      transparent 55%
    );
  }
  /* Fineprint below the image: right-justified and tucked close under it */
  .story-hero--right .story-hero__foot {
    display: block;
    margin-top: 0.35rem;
    text-align: right;
  }
  .story-hero--right .story-hero__foot .hero__fineprint {
    margin: 0;
    max-width: none;
    font-size: 0.57rem;
    text-align: right;
  }
}

/* Our Approach — two images side by side (device -> exercises) with an arrow
   between them, shown below the section heading/copy. */
#approach .approach__lead,
#approach .approach__text { max-width: 46rem; }

/* Second heading line ("A rhythm of 4 days / week.") — smaller so it always
   stays on one line; lift the 22ch cap so the phrase isn't re-wrapped. */
#approach .section__title { max-width: none; }
.approach__title-note {
  display: block;
  font-size: 0.6em;
  white-space: nowrap;
}

.approach__flow {
  margin-top: 2.75rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.5rem;
}

.approach__flow-arrow {
  font-size: 2.25rem;
  line-height: 1;
  color: var(--color-primary);
  font-family: var(--font-body);
}

/* Paragraph moved below the image flow gets a clear gap from the images */
.approach__flow + .approach__text { margin-top: 2.25rem; }

@media (max-width: 700px) {
  /* Stack the images and turn the arrow to point downward */
  .approach__flow { grid-template-columns: 1fr; gap: 1rem; }
  .approach__flow-arrow { transform: rotate(90deg); justify-self: center; }
}

/* Product headings inside the consolidated "Two products, one goal" section */
.product-heading {
  font-family: var(--font-display);
  color: var(--color-primary);
  font-size: 1.5rem;
  line-height: 1.2;
}

/* Inline "read more" link following a prose block (e.g. the Why section) */
.section__body + .textlink { margin-top: 1.5rem; }
