/* =====================================================================
   Metabolic Health Audit landing pages (.mha-*)
   Loaded after site.css on the audit pages only (via $pageStyles).
   Uses the site tokens: Raleway, --brand-primary orange, --brand-accent
   beige, square corners, the tinted section backgrounds.
   ===================================================================== */
.mha-page { --mha-ink: #1f1f1f; --mha-muted: #5c5c5c; --mha-line: #e4ddd5; --mha-tint: #F5F0EC; --mha-green: #1d6b3a; --mha-green-50: #e7f4ec; }

/* ---------- heroes ---------- */
.mha-hero { position: relative; padding: 2.25rem 0 3rem; }
@media (min-width: 992px) { .mha-hero { padding: 3.35rem 0 4.5rem; } }
/* split hero: top-align the columns so the taller card doesn't push the copy down */
.mha-hero--split .row { align-items: flex-start !important; }
.mha-hero--center,
.mha-hero--hook { background: linear-gradient(180deg, #F5F0EC 0%, #F8F6F3 55%, #fff 100%); }
.mha-hero__title { font-size: clamp(32px, 4.4vw, 52px); line-height: 1.12; color: var(--mha-ink); }
.mha-hero__title--xl { font-size: clamp(38px, 5.4vw, 64px); line-height: 1.05; }
.mha-hero__lead { max-width: 720px; font-size: clamp(17px, 1.5vw, 19px); line-height: 1.65; color: var(--mha-muted); }
.mha-hero__note { max-width: 300px; font-size: 14px; line-height: 1.45; color: var(--mha-muted); }
.mha-accent { color: var(--brand-primary); }
.mha-details-link { font-weight: 700; color: var(--mha-ink); text-decoration: underline; text-decoration-color: var(--brand-primary);
  text-decoration-thickness: 2px; text-underline-offset: 5px; }
.mha-details-link:hover { color: var(--brand-primary); }
.mha-cta { box-shadow: 0 10px 24px -12px rgba(244, 128, 52, .7); }

/* ---------- offer card ---------- */
.mha-offer { background: #fff; border: 1px solid var(--mha-line); border-top: 4px solid var(--brand-primary);
  padding: clamp(22px, 3vw, 34px); text-align: left; box-shadow: 0 24px 48px -32px rgba(0, 0, 0, .35); }
.mha-offer__title { font-size: 20px; font-weight: 700; margin: 0 0 6px; color: var(--mha-ink); }
.mha-offer__price { margin: 0 0 16px; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brand-primary); }
.mha-offer__line { margin: 0 0 10px; color: var(--mha-muted); }
.mha-offer__line--strong { color: var(--mha-ink); font-weight: 600; }
.mha-offer__bonus { margin: 16px 0; padding: 12px 16px; background: var(--mha-green-50); color: var(--mha-green); font-weight: 600; line-height: 1.45; }
.mha-offer__fine { margin: 0 0 10px; padding-top: 14px; border-top: 1px solid var(--mha-line); font-size: 14px; color: var(--mha-muted); }
.mha-offer__scarcity { margin: 0; font-size: 14px; font-weight: 700; color: #a4521b; }
.mha-offer--compact .mha-offer__title { font-size: 19px; }
.mha-offer__price s { margin-right: 6px; color: #a8a29b; font-weight: 500; letter-spacing: .04em; }
.mha-offer__line strong { color: var(--mha-ink); font-weight: 700; }
.mha-offer .mha-doctor--offer { margin: 18px calc(-1 * clamp(22px, 3vw, 34px)) calc(-1 * clamp(22px, 3vw, 34px)); padding-inline: clamp(22px, 3vw, 34px); }

/* ---------- Is This You? / Why Now ---------- */
.mha-fit__list { columns: 1 !important; column-count: 1 !important; max-width: 760px; margin-inline: auto; }
.mha-fit__list li { align-items: center; }

/* ---------- comparison ---------- */
.mha-compare { background: #fff; border: 1px solid var(--mha-line); }
.mha-compare__row { display: grid; grid-template-columns: 1fr 1fr; }
.mha-compare__row + .mha-compare__row { border-top: 1px solid var(--mha-line); }
.mha-compare__row > span { display: flex; gap: 12px; align-items: flex-start; padding: 16px 20px; line-height: 1.5; }
.mha-compare__row--head > span { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--mha-muted); background: #F8F6F3; }
.mha-compare__row--head > span + span { background: var(--brand-primary); color: #fff; }
.mha-compare__std { color: var(--mha-muted); }
.mha-compare__std i { color: #b3aca4; margin-top: 2px; }
.mha-compare__ours { background: #fdf6f1; color: var(--mha-ink); font-weight: 600; border-left: 1px solid var(--mha-line); }
.mha-compare__ours i { color: var(--brand-primary); margin-top: 2px; }

/* ---------- process / plan / results / guarantee ---------- */
.mha-noqualify { background: #fff; border-left: 4px solid var(--brand-accent); padding: 20px 24px; color: var(--mha-muted); }
.mha-noqualify h3 { color: var(--mha-ink); }
.mha-simple__lead { font-size: 20px; font-weight: 600; color: var(--mha-ink); }
.mha-results__card { background: #fff; border: 1px solid var(--mha-line); padding: 28px; }
.mha-results__label { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brand-primary); margin-bottom: 20px; }
.mha-guarantee__closing { font-weight: 700; color: #a4521b; }

/* ---------- split hero (v2) ---------- */
.mha-ratingbar { display: flex; justify-content: center; align-items: center; gap: 10px; padding: 10px 16px;
  background: #F8F6F3; border-bottom: 1px solid var(--mha-line); font-size: 14px; font-weight: 600; color: #7a3f13; }
.mha-stars { color: var(--brand-primary); letter-spacing: 1px; }
.mha-hero--split { background: radial-gradient(60% 70% at 0% 100%, #F5E6D8 0%, rgba(245, 230, 216, 0) 70%), #fff; }
.mha-chips { display: inline-flex; flex-wrap: wrap; gap: 6px 14px; padding: 8px 16px; border: 1px solid var(--mha-line); font-size: 14px; color: var(--mha-muted); }
.mha-chips span + span::before { content: "·"; margin-right: 14px; color: #c4bbb1; }
.mha-howcard { background: #fff; border: 1px solid var(--mha-line); box-shadow: 0 30px 60px -36px rgba(0, 0, 0, .35); }
.mha-howcard__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 24px; border-bottom: 1px solid var(--mha-line); }
.mha-howcard__title { margin: 0; font-size: 17px; font-weight: 700; }
.mha-howcard__title::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 10px; vertical-align: middle; background: var(--brand-primary); }
.mha-howcard__head--offer { display: block; padding: 20px 24px 16px; }
.mha-howcard__head--offer .mha-howcard__title { font-size: 19px; line-height: 1.3; }
.mha-howcard__head--offer .mha-howcard__title::before { margin-top: -3px; }
.mha-howcard__deal { margin: 8px 0 0 18px; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brand-primary); }
.mha-howcard__deal s { margin-left: 6px; color: #a8a29b; font-weight: 500; letter-spacing: .04em; }
.mha-howcard__price { font-weight: 600; color: var(--mha-ink); }
.mha-howcard__price s { color: #a8a29b; font-weight: 400; margin-right: 4px; }
.mha-howcard__list { list-style: none; margin: 0; padding: 4px 24px; }
.mha-howcard__list li { display: grid; grid-template-columns: 32px 1fr auto; gap: 12px; align-items: start; padding: 18px 0; }
.mha-howcard__list li + li { border-top: 1px dashed var(--mha-line); }
.mha-howcard__num { font-size: 13px; font-weight: 700; color: var(--brand-primary); padding-top: 2px; }
.mha-howcard__list h3 { margin: 0 0 4px; font-size: 16px; font-weight: 700; }
.mha-howcard__list p { margin: 0; font-size: 14px; color: var(--mha-muted); line-height: 1.5; }
.mha-tag { padding: 4px 10px; font-size: 12px; font-weight: 700; white-space: nowrap; background: #fbeee3; color: #a4521b; }
.mha-howcard__list li:nth-child(3) .mha-tag { background: var(--mha-green-50); color: var(--mha-green); }
.mha-howcard__note { margin: 0; padding: 14px 24px; background: #fbf3ec; font-size: 14px; font-weight: 700; color: #a4521b; text-align: center; }

/* guarantee callout in the hero (links to #guarantee) */
.mha-hero-guarantee { display: flex; gap: 14px; align-items: flex-start; max-width: 560px; margin-top: 22px; padding: 16px 18px;
  background: #fff; border: 1px solid var(--mha-line); border-left: 4px solid var(--mha-green); color: var(--mha-muted);
  font-size: 15px; line-height: 1.5; text-decoration: none; transition: border-color .2s, box-shadow .2s; }
.mha-hero-guarantee:hover { border-color: var(--mha-green); box-shadow: 0 10px 24px -16px rgba(0,0,0,.35); color: var(--mha-muted); }
.mha-hero-guarantee strong { display: block; margin-bottom: 2px; color: var(--mha-ink); }
.mha-hero-guarantee__icon { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--mha-green-50); color: var(--mha-green); font-size: 20px; }
.mha-hero-guarantee__link { display: inline-block; margin-top: 6px; font-weight: 700; color: var(--mha-green); }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---------- v2 hero impact: cream band, brand mosaic, Dr. Trey on the card ---------- */
.mha-hero--impact { overflow: hidden; background: linear-gradient(100deg, #F5F0EC 0%, #F5F0EC 55%, #FBF8F5 100%); }
.mha-hero--impact .container { position: relative; z-index: 1; }
.mha-mosaic { position: absolute; z-index: 0; left: -170px; bottom: -230px; width: 560px; height: 560px; transform: rotate(-12deg);
  opacity: .14; pointer-events: none; }
.mha-hero--impact .mha-howcard { position: relative; box-shadow: 0 40px 80px -40px rgba(60, 35, 15, .45); }
@media (min-width: 576px) { .mha-hero--impact .mha-chips { background: #fff; } }
.mha-doctor { display: flex; align-items: center; gap: 14px; padding: 14px 24px; background: #fbf3ec; border-top: 1px solid var(--mha-line);
  font-size: 14px; line-height: 1.45; color: #6b4a33; }
.mha-doctor img { flex: none; width: 72px; height: 72px; border-radius: 50% !important; object-fit: cover; object-position: center;
  border: 3px solid #fff; box-shadow: 0 4px 12px rgba(0,0,0,.18); }
.mha-doctor strong { display: block; color: var(--mha-ink); }
@media (max-width: 991.98px) { .mha-mosaic { width: 380px; height: 380px; left: auto; right: -170px; bottom: -150px; } }

/* card list without numbers (v2) */
.mha-howcard__list.mha-howcard__list--plain li { grid-template-columns: 1fr auto; }
.mha-howcard__deal s { margin: 0 8px 0 0; }

/* tooltip on a tag (hover, keyboard focus, or tap on phones) */
.mha-tip { position: relative; border: 0; font-family: inherit; cursor: help; display: inline-flex; align-items: center; gap: 5px; }
.mha-tip i { font-size: 12px; }
.mha-tip__bubble { position: absolute; z-index: 5; right: 0; bottom: calc(100% + 10px); width: 240px; padding: 10px 12px;
  background: #262422; color: #fff; font-size: 13.5px; font-weight: 500; line-height: 1.45; text-align: left; white-space: normal;
  box-shadow: 0 10px 24px -8px rgba(0,0,0,.4); opacity: 0; visibility: hidden; transform: translateY(4px);
  transition: opacity .15s, transform .15s, visibility .15s; pointer-events: none; }
.mha-tip__bubble::after { content: ""; position: absolute; right: 18px; top: 100%; border: 6px solid transparent; border-top-color: #262422; }
.mha-tip:hover .mha-tip__bubble, .mha-tip:focus .mha-tip__bubble { opacity: 1; visibility: visible; transform: none; }
.mha-tip:focus-visible { outline: 2px solid var(--brand-primary); outline-offset: 2px; }
@media (max-width: 575.98px) {
  .mha-howcard__list.mha-howcard__list--plain li { grid-template-columns: 1fr; }
  .mha-howcard__list.mha-howcard__list--plain .mha-tag { grid-column: 1; justify-self: start; }
  .mha-tip__bubble { right: auto; left: 0; }
  .mha-tip__bubble::after { right: auto; left: 18px; }
}

/* ---------- patient videos + reviews ---------- */
.mha-videos { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.mha-video, .mha-mainvideo { position: relative; display: grid; place-items: center; background: #26252a; color: #fff; overflow: hidden; }
.mha-video { aspect-ratio: 9 / 16; }
.mha-mainvideo { aspect-ratio: 16 / 9; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .5); }
.mha-video video { width: 100%; height: 100%; object-fit: cover; }
.mha-video__play { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--brand-primary); font-size: 26px; }
.mha-video__play--lg { width: 72px; height: 72px; font-size: 40px; }
.mha-video__label { position: absolute; left: 10px; right: 10px; bottom: 14px; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; text-align: center; color: rgba(255, 255, 255, .75); }
.mha-reviews__label { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; font-weight: 700; }
.mha-reviews__label .google-g { display: inline-grid; place-items: center; width: 22px; height: 22px; font-weight: 700; color: #4285F4; }

/* ---------- dark hero (v3) ---------- */
.mha-hero--dark { background: #262422; color: #fff; }
.mha-hero--dark .mha-hero__title { color: #fff; font-family: inherit; }
.mha-hero--dark .mha-hero__lead { color: rgba(255, 255, 255, .78); }
.mha-dark__top { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.mha-dark__trust { font-weight: 600; color: rgba(255, 255, 255, .9); }
.mha-dark__trust .mha-stars { margin-right: 8px; }
.mha-dark__stats { display: flex; align-items: center; gap: 18px; }
.mha-dark__stat { display: grid; text-align: center; font-size: 12px; color: rgba(255, 255, 255, .7); }
.mha-dark__stat strong { font-size: 20px; color: #fff; }
.mha-dark__seal { display: grid; place-items: center; width: 64px; height: 64px; padding: 6px; border: 1px solid var(--brand-primary); border-radius: 50%;
  font-size: 8.5px; font-weight: 700; line-height: 1.15; letter-spacing: .06em; text-transform: uppercase; text-align: center; color: var(--brand-primary); }
.mha-dark__chips { display: flex; flex-wrap: wrap; gap: 8px 28px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: 14px; font-weight: 700; }
.mha-hero--dark .mha-offer { color: var(--mha-ink); }
.mha-badges { background: #F8F6F3; border-bottom: 1px solid var(--mha-line); }
.mha-badges__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 40px; margin: 0; padding: 18px 0; list-style: none; font-weight: 700; }
.mha-badges__list i { margin-right: 8px; color: var(--brand-primary); }

/* ---------- question hook (v4) ---------- */
.mha-pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; background: #26252a; color: #fff;
  font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.mha-pill__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand-primary); }
.mha-hero--hook .mha-hero__lead strong { color: var(--mha-ink); }
.mha-pillar { border-top: 3px solid var(--brand-primary); padding-top: 18px; font-size: 17px; line-height: 1.6; color: var(--mha-muted); }
.mha-pillar strong { color: var(--mha-ink); }
.mha-pillar__label { font-size: 14px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--brand-primary); margin-bottom: 10px; }
.mha-faq .accordion-button { font-weight: 700; }
.mha-faq .accordion-button:not(.collapsed) { color: var(--mha-ink); background: #fbf3ec; box-shadow: none; }
.mha-faq .accordion-button:focus { box-shadow: 0 0 0 3px rgba(244, 128, 52, .3); }

/* ---------- qualification results ---------- */
.mha-result__icon { display: inline-grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; font-size: 34px;
  background: var(--mha-green-50); color: var(--mha-green); }
.mha-result--review .mha-result__icon { background: #fbeee3; color: #a4521b; }
.mha-result--rule_out .mha-result__icon { background: #eef1f6; color: #2f4a73; }

/* ---------- responsive ---------- */
@media (max-width: 991.98px) {
  .mha-videos { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
  .mha-video { flex: 0 0 42%; scroll-snap-align: start; }
}
@media (max-width: 575.98px) {
  /* chips: separate pills instead of one box with "·" separators, so wrapping stays tidy */
  .mha-chips { display: flex; gap: 8px; padding: 0; border: 0; }
  .mha-chips span { padding: 6px 12px; border: 1px solid var(--mha-line); background: #fff; font-size: 13.5px; white-space: nowrap; }
  .mha-chips span + span::before { content: none; }
  .mha-dark__chips { gap: 8px; }
  .mha-dark__chips span { padding: 6px 12px; border: 1px solid rgba(255,255,255,.22); font-size: 13.5px; }
  .mha-compare__row { grid-template-columns: 1fr; }
  .mha-compare__row--head { display: none; }
  .mha-compare__ours { border-left: 0; border-top: 1px dashed var(--mha-line); }
  .mha-howcard__list li { grid-template-columns: 28px 1fr; }
  .mha-howcard__list .mha-tag { grid-column: 2; justify-self: start; }
  .mha-video { flex-basis: 64%; }
  .mha-dark__stats { display: none; }
}
