/* =========================================================
   Longiva — Metabolic Health page
   Layout, type scale and layer styles measured 1:1 from
   skinnyrx.com/metabolic-health (19 Oct 2026, 1440 and 375 wide).
   Sofia Pro (commercial) stands in as Figtree.
   ========================================================= */
.mh main {
  --mh-font: "Figtree", "Sofia Pro", "Helvetica Neue", Arial, sans-serif;
  --mh-p1: #40336E;   /* hero card */
  --mh-p2: #271F44;   /* sensor card, CTA card */
  --mh-p3: #1C173F;   /* score card */
  --mh-ink: #2E2941;  /* headings */
  --mh-text: rgba(31, 31, 31, .64);
  --mh-text-2: rgba(31, 31, 31, .84);
  --mh-step: #7267B8;
  --mh-line: #DCDBFD;
  --mh-line-2: #DAD4F4;
  --mh-peach: #F9E8DD;
  --mh-green: #09F60A;
  --mh-grey: #777391;
  font-family: var(--mh-font);
  color: #212529;
  background: #fff;
}
.mh main * { box-sizing: border-box; }
:where(.mh main) :where(h1, h2, h3, p, ul) { margin: 0; }
:where(.mh main) ul { padding: 0; list-style: none; }
.mh main img { display: block; max-width: 100%; }

/* ---- type scale (desktop values from the source; mobile at the bottom) ---- */
.mh-h2 { font-size: 48px; line-height: .9; font-weight: 400; letter-spacing: -.06em; color: var(--mh-ink); }
.mh-h2--faq { line-height: 1.1; letter-spacing: -.045em; }
.mh-sub { margin: 16px auto 0; max-width: 913px; font-size: 16px; line-height: 1.2; letter-spacing: -.04em; color: var(--mh-text); }
.mh-center { text-align: center; }
.mh-wrap { width: min(900px, 100% - 32px); margin-inline: auto; }
.mh-wrap-xl { width: min(1344px, 100% - 96px); margin-inline: auto; }
.mh-sec { padding: 60px 0 0; }
.mh-white { background: #fff; }
.mh main .ph { background: #FFF4CC; color: #6B5300; padding: 0 4px; border-radius: 3px; font-weight: 500; }

/* ---- buttons / chips ---- */
.mh-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 52px; padding: 0 24px; min-width: 320px;
  border: 0; border-radius: 48px; background: #fff; color: #000; font: inherit; font-size: 18px; font-weight: 500; letter-spacing: -.04em; cursor: pointer;
  transition: transform .2s, filter .2s;
}
.mh-btn:hover { filter: brightness(.96); transform: translateY(-1px); }
.mh-btn--block { width: 100%; min-width: 0; }
.mh-btn .ic { width: 18px; height: 18px; stroke-width: 2; }
.mh-chips { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12px; letter-spacing: -.04em; color: #fff; }
.mh-chips li { display: inline-flex; align-items: center; gap: 6px; }
.mh-chips .ic { width: 14px; height: 14px; }
.mh-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 24px; margin-top: 32px; font-size: 12px; font-weight: 600; letter-spacing: -.04em; color: #090D14; }
.mh-badges li { display: inline-flex; align-items: center; gap: 6px; }
.mh-badges .ic { width: 15px; height: 15px; color: var(--mh-step); }

/* =========================================================
   1 HERO
   ========================================================= */
.mh-hero { padding: 8px 8px 0; }
.mh-hero__card { position: relative; min-height: 640px; border-radius: 40px; overflow: hidden; background: var(--mh-p1); display: flex; align-items: center; }
.mh-hero__art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.mh-hero__copy { position: relative; z-index: 1; width: 697px; padding: 56px 40px 40px; color: #fff; }
.mh-rating { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 26px; font-size: 13px; letter-spacing: -.02em; color: #fff; }
.mh-rating b { font-weight: 600; }
.mh-rating u { text-decoration: underline; text-underline-offset: 3px; }
.mh-rating small { font-size: 11px; opacity: .6; }
.mh-stars { display: inline-flex; gap: 1px; padding: 2px 4px; border-radius: 3px; background: #00B67A; font-size: 11px; line-height: 1; letter-spacing: 1px; }
.mh-hero h1 { font-size: 72px; line-height: .9; font-weight: 500; letter-spacing: -.06em; color: #fff; }
.mh-hero h1 em { font-style: italic; text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 8px; }
.mh-hero__copy > p { margin-top: 16px; font-size: 18px; line-height: 1; font-weight: 300; letter-spacing: -.04em; }
.mh-hero__copy > p b { font-weight: 700; }
.mh-wait { width: 471px; margin-top: 24px; padding: 16px 16px 8px; border-radius: 32px; background: rgba(255, 255, 255, .08); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.mh-wait__title { font-size: 18px; line-height: 1; font-weight: 600; letter-spacing: -.04em; margin-bottom: 12px; }
.mh-field { position: relative; display: block; margin-bottom: 8px; }
.mh-field input { width: 100%; height: 52px; padding: 27px 20px 10px; border-radius: 36px; border: 1.5px solid rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .12); color: #fff; font: inherit; font-size: 14px; letter-spacing: -.04em; outline: 0; }
.mh-field input:focus { border-color: rgba(255, 255, 255, .7); }
.mh-field span { position: absolute; left: 21px; top: 17px; font-size: 14px; letter-spacing: -.04em; color: rgba(255, 255, 255, .8); pointer-events: none; transition: top .15s, font-size .15s; }
.mh-field input:focus + span, .mh-field input:not(:placeholder-shown) + span { top: 9px; font-size: 11px; }
.mh-wait__ok { margin-top: 8px; font-size: 13px; }
.mh-wait .mh-chips { padding: 8px 16px 8px; }

/* =========================================================
   2 MEMBERSHIP TILES
   ========================================================= */
.mh-tiles { margin-top: 32px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.mh-tile { position: relative; display: grid; grid-template-columns: minmax(0, 236px) 204px; align-items: center; min-height: 160px; border-radius: 24px; border: 1px solid var(--mh-line); background: #fff; overflow: hidden; }
.mh-tile__txt { padding: 16px; }
.mh-tile h3 { font-size: 20px; line-height: .9; font-weight: 500; letter-spacing: -.06em; color: var(--mh-ink); }
.mh-tile p { margin-top: 10px; font-size: 16px; line-height: 1.2; letter-spacing: -.04em; color: var(--mh-text); }
.mh-tile > img { width: 204px; height: 158px; object-fit: contain; justify-self: end; }
.mh-tile--score { color: #fff; background: radial-gradient(circle at 55% 82%, rgba(244, 166, 136, .9), rgba(244, 166, 136, 0) 52%), linear-gradient(145deg, #1E1843, #645B99 68%, #8D98EA); }
.mh-tile--score .mh-tile__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.mh-tile--score .mh-tile__txt { position: relative; }
.mh-tile--score h3 { color: #fff; }
.mh-tile--score p { color: rgba(255, 255, 255, .82); }

/* score dial (shared by tile and score card) */
.mh-dial { position: relative; width: 160px; height: 160px; display: grid; place-items: center; }
.mh-dial--sm { width: 128px; height: 128px; justify-self: center; }
.mh-dial__ring { position: absolute; inset: 0; width: 100%; height: 100%; }
.mh-dial__in { position: relative; width: 91%; height: 91%; border-radius: 9999px; background: linear-gradient(#282250, #413C71); display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff; }
.mh-dial__in small { font-size: 23px; line-height: 1; color: var(--mh-green); }
.mh-dial__in strong { font-size: 58px; line-height: 1.1; font-weight: 300; letter-spacing: -.04em; }
.mh-dial__in span { font-size: 14px; line-height: 1; font-weight: 500; letter-spacing: -.04em; }
.mh-dial--sm .mh-dial__in small { font-size: 16px; }
.mh-dial--sm .mh-dial__in strong { font-size: 40px; }
.mh-dial--sm .mh-dial__in span { font-size: 11px; }

/* =========================================================
   3 SENSOR CARD
   ========================================================= */
.mh-sensor-sec { padding: 60px 16px 0; }
.mh-sensor { position: relative; isolation: isolate; display: grid; grid-template-columns: 612px minmax(0, 1fr); align-items: center; gap: 48px; min-height: 458px; padding: 32px 48px; border-radius: 40px; overflow: hidden; background: var(--mh-p2); color: #fff; }
.mh-sensor__glow { position: absolute; z-index: -1; left: -32%; top: -140%; width: 207%; max-width: none; pointer-events: none; }
.mh-sensor__media { position: relative; }
.mh-sensor__media > img { width: 612px; height: 394px; object-fit: cover; border-radius: 28px; }
.mh-glass { position: absolute; z-index: 2; display: flex; align-items: center; gap: 12px; padding: 18px 24px; border-radius: 36px; border: 1px solid rgba(255, 255, 255, .24); background: rgba(255, 255, 255, .24); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); color: #fff; }
.mh-glass .ic { width: 24px; height: 24px; }
.mh-glass .mh-flash { fill: #fff; stroke: none; }
.mh-glass b { display: block; font-size: 24px; line-height: .9; font-weight: 500; letter-spacing: -.06em; }
.mh-glass span { display: block; margin-top: 4px; font-size: 21px; line-height: 1.2; letter-spacing: -.04em; }
.mh-glass--a { left: 34%; top: 14%; }
.mh-glass--b { left: 4%; top: 68%; }
.mh-arrow { position: absolute; z-index: 1; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; }
.mh-arrow circle { fill: #fff; stroke: none; }
.mh-arrow--a { left: 76%; top: 30%; width: 48px; height: 44px; }
.mh-arrow--b { left: 11.6%; top: 72%; width: 75px; height: 72px; transform: scaleX(-1); }
.mh-sensor__copy h2 { color: #fff; }
.mh-sensor__copy p { margin: 18px 0 32px; max-width: 585px; font-size: 18px; line-height: 1.2; letter-spacing: -.06em; color: rgba(255, 255, 255, .82); }

/* =========================================================
   4 CHARTS + CONTEXT
   ========================================================= */
.mh-charts { margin-top: 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mh-chart svg { display: block; width: 100%; height: auto; }
.mh-context { margin-top: 8px; padding: 40px 16px 16px; border-radius: 24px; border: 1px solid rgba(31, 31, 31, .04); background: radial-gradient(100% 39.75% at 0% 0%, rgba(249, 208, 171, .18), rgba(249, 208, 171, 0)), radial-gradient(100% 39.57% at 100% 0%, rgba(178, 170, 230, .22), rgba(178, 170, 230, 0)), #fff; }
.mh-context__title { font-size: 20px; line-height: 1.2; font-weight: 500; letter-spacing: -.04em; color: var(--mh-ink); }
.mh-context__title em { font-style: italic; text-decoration: underline; text-underline-offset: 4px; }
.mh-ctx { margin-top: 24px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mh-ctx__card { position: relative; height: 172px; border-radius: 16px; overflow: hidden; background: var(--mh-ink); color: #fff; }
.mh-ctx__card > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mh-ctx__card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(46, 41, 65, 0) 30%, rgba(46, 41, 65, .9)); }
.mh-ctx__card--phone .mh-ctx__bg { object-fit: cover; }
.mh-ctx__card--phone .mh-ctx__phone { object-fit: contain; object-position: 85% 20%; transform: scale(1.25) translate(10%, 18%); }
.mh-ctx__n { position: absolute; z-index: 2; left: 16px; top: 16px; width: 26px; height: 26px; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--mh-ink); display: grid; place-items: center; font-size: 13px; font-weight: 600; }
.mh-ctx__card > div { position: absolute; z-index: 2; left: 12px; right: 12px; bottom: 12px; }
.mh-ctx__card > div b { display: block; font-size: 20px; line-height: 1; font-weight: 600; letter-spacing: -.04em; }
.mh-ctx__card > div span { display: block; margin-top: 4px; font-size: 16px; line-height: 1.2; letter-spacing: -.04em; color: rgba(255, 255, 255, .82); }

/* =========================================================
   5 METABOLIC SCORE
   ========================================================= */
.mh-score-sec { padding: 60px 16px 0; }
.mh-score { position: relative; isolation: isolate; display: grid; grid-template-columns: 497px minmax(0, 622px); justify-content: space-between; align-items: center; gap: 48px; min-height: 417px; padding: 32px 48px; border-radius: 40px; overflow: hidden; background: var(--mh-p3); color: #fff; }
.mh-score__bg { position: absolute; z-index: -1; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mh-score__copy h2 { color: #fff; }
.mh-score__copy p { margin: 18px 0 32px; font-size: 18px; line-height: 1.2; letter-spacing: -.06em; color: rgba(255, 255, 255, .82); }
.mh-panel { border-radius: 24px; background: rgba(255, 255, 255, .08); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.mh-panel__grid { display: grid; grid-template-columns: 79px 128px 160px 128px 79px; justify-content: space-between; align-items: center; padding: 24px 24px 0; }
.mh-conn { width: 128px; height: 180px; fill: none; }
.mh-sig { display: grid; gap: 28px; }
.mh-sig li { position: relative; width: 79px; text-align: center; font-size: 14px; letter-spacing: -.04em; }
.mh-sig i { display: grid; place-items: center; width: 40px; height: 40px; margin: 0 auto 6px; border-radius: 50%; background: rgba(255, 255, 255, .1); }
.mh-sig .ic { width: 18px; height: 18px; }
.mh-sig em { position: absolute; top: -6px; right: 6px; font-style: normal; font-size: 12px; font-weight: 600; color: var(--mh-green); }
.mh-sig span { display: block; }
.mh-panel__note { padding: 16px 24px 24px; font-size: 14px; line-height: 1.35; letter-spacing: -.04em; color: rgba(255, 255, 255, .82); }
.mh-panel__note b { color: #fff; font-weight: 600; }

/* =========================================================
   6 CARE TEAM
   ========================================================= */
.mh-care { padding: 32px 0 0; overflow: hidden; background: #fff; }
.mh-care__head { width: min(900px, 100% - 32px); margin-inline: auto; }
.mh-care__head .mh-sub { max-width: 712px; }
.mh-care__stage { position: relative; margin-top: 24px; }
.mh-care__stage > img { width: 100%; height: 681px; object-fit: cover; }
.mh-alert { position: absolute; left: 46%; top: 36%; display: flex; align-items: center; gap: 14px; width: 493px; padding: 20px 24px; border-radius: 36px; border: 1.5px solid rgba(255, 255, 255, .64); background: rgba(255, 255, 255, .48); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); color: #1F1F1F; }
.mh-alert__ic { width: 31px; height: 28px; }
.mh-alert b { display: block; font-size: 18px; line-height: 1; font-weight: 400; letter-spacing: -.04em; }
.mh-alert span { display: block; margin-top: 8px; font-size: 16px; line-height: 1.2; letter-spacing: -.04em; color: var(--mh-grey); }
.mh-alert time { margin-left: auto; align-self: flex-start; font-size: 16px; letter-spacing: -.04em; color: var(--mh-grey); }
.mh-arrow--c { left: calc(46% + 400px); top: calc(36% + 95px); width: 57px; height: 57px; transform: scaleY(-1); }
.mh-reply { position: absolute; left: 0; right: 0; bottom: 40px; margin-inline: auto; display: flex; gap: 14px; width: 900px; padding: 16px; border-radius: 24px; background: #fff; color: #1F1F1F; }
.mh-reply > img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none; }
.mh-reply b { display: block; font-size: 16px; font-weight: 600; letter-spacing: -.04em; }
.mh-reply small { display: block; font-size: 13px; letter-spacing: -.04em; color: var(--mh-grey); }
.mh-reply p { margin-top: 8px; font-size: 16px; line-height: 1.25; letter-spacing: -.04em; }
.mh-reply__t { margin-top: 8px; color: var(--mh-step) !important; font-weight: 500; }
.mh-badges--care { margin: 24px 0 0; padding: 0 16px 32px; font-weight: 400; font-size: 14px; color: var(--mh-ink); }
.mh-badges--care .ic { color: var(--mh-ink); }

/* =========================================================
   7 HABITS
   ========================================================= */
.mh-habits-sec { padding: 32px 0 0; }
.mh-habits { position: relative; border-radius: 40px; overflow: hidden; background: #fff; padding-bottom: 32px; }
.mh-habits__bg { width: 100%; height: 888px; object-fit: cover; }
.mh-habits__head { position: absolute; left: 50%; top: 420px; transform: translateX(-50%); width: 550px; text-align: center; color: #fff; }
.mh-habits__head h2 { color: #fff; }
.mh-habits__head p { margin-top: 12px; font-size: 18px; line-height: 1.2; letter-spacing: -.06em; }
.mh-habit-cards { position: relative; width: 900px; margin: -320px auto 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mh-habit { height: 269px; padding: 24px; border-radius: 40px; border: 1px solid var(--mh-peach); background: #fff; }
.mh-habit h3 { height: 36px; font-size: 20px; line-height: .9; font-weight: 500; letter-spacing: -.06em; color: var(--mh-ink); }
.mh-habit img { width: 245px; height: 177px; object-fit: cover; margin-top: 8px; border-radius: 16px; }
.mh-habits__note { margin: 32px auto 0; max-width: 712px; text-align: center; font-size: 18px; line-height: 1.2; letter-spacing: -.06em; color: var(--mh-text); }

/* =========================================================
   8 STORIES
   ========================================================= */
.mh-stories { margin-top: 32px; display: grid; grid-template-columns: repeat(3, 295px); justify-content: space-between; gap: 8px; }
.mh-col { display: grid; gap: 8px; align-content: start; }
.mh-photo { position: relative; height: 400px; border-radius: 24px; overflow: hidden; background: #222; }
.mh-photo > img { width: 100%; height: 100%; object-fit: cover; }
.mh-kept { position: absolute; left: 16px; top: 16px; display: inline-flex; align-items: center; gap: 6px; height: 33px; padding: 0 16px; border-radius: 24px; border: 1px solid rgba(31, 31, 31, .08); background: rgba(255, 255, 255, .82); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); font-size: 14px; letter-spacing: -.04em; color: #212529; }
.mh-kept small { font-size: 11px; color: var(--mh-grey); }
.mh-photo__txt { position: absolute; inset: auto 0 0; padding: 24px 16px; background: linear-gradient(rgba(25, 25, 25, 0), #191919); color: #fff; }
.mh-photo__txt b { display: block; font-size: 18px; line-height: 1; font-weight: 500; letter-spacing: -.04em; }
.mh-photo__txt p { margin-top: 10px; font-size: 16px; line-height: 1.2; font-weight: 700; letter-spacing: -.04em; }
.mh-photo__txt small { display: block; margin-top: 10px; font-size: 12px; letter-spacing: -.04em; color: rgba(255, 255, 255, .72); }
.mh-quote { padding: 24px; border-radius: 24px; border: 1px solid var(--mh-peach); background: #fff; }
.mh-quote p { font-size: 16px; line-height: 1.2; font-weight: 700; letter-spacing: -.04em; color: var(--mh-ink); }
.mh-quote small { display: block; margin-top: 14px; font-size: 14px; letter-spacing: -.04em; color: var(--mh-text); }
.mh-quote small b { font-weight: 500; color: var(--mh-ink); }
.mh-fine { margin-top: 32px; text-align: center; font-size: 12px; letter-spacing: -.04em; color: var(--mh-text); }

/* =========================================================
   9 STEPS
   ========================================================= */
.mh-steps { margin-top: 32px; display: grid; grid-template-columns: repeat(3, 284px); justify-content: space-between; gap: 24px; }
.mh-step { display: flex; flex-direction: column; height: 390px; padding: 24px 24px 0; border-radius: 32px; border: 1px solid var(--mh-line-2); overflow: hidden; }
.mh-step small { font-size: 14px; line-height: 1.4; font-weight: 500; letter-spacing: -.04em; color: var(--mh-step); }
.mh-step h3 { margin-top: 6px; font-size: 20px; line-height: 1.1; font-weight: 500; letter-spacing: -.04em; color: var(--mh-ink); }
.mh-step p { margin-top: 8px; font-size: 16px; line-height: 1.2; letter-spacing: -.04em; color: var(--mh-text); }
.mh-step__img { margin: auto -24px 0; height: 252px; display: flex; align-items: flex-end; justify-content: center; }
.mh-step__img img { height: 100%; width: auto; object-fit: contain; }
.mh-step__img--app img { height: 249px; }

/* =========================================================
   10 CTA
   ========================================================= */
.mh-cta-sec { padding-top: 60px; }
.mh-cta { position: relative; min-height: 460px; border-radius: 40px; overflow: hidden; background: var(--mh-p2); color: #fff; display: flex; align-items: center; }
.mh-cta img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mh-cta__copy { position: relative; z-index: 1; width: 608px; padding: 48px; }
.mh-cta__copy h2 { color: #fff; }
.mh-cta__copy p { margin: 16px 0 32px; font-size: 18px; line-height: 1.2; letter-spacing: -.06em; color: rgba(255, 255, 255, .82); }
.mh-cta .mh-chips { margin-top: 20px; }

/* =========================================================
   11 FAQ
   ========================================================= */
.mh-faq-sec { padding: 60px 0; }
.mh-faq { margin-top: 32px; }
.mh-faq details { border-bottom: 1px solid rgba(31, 31, 31, .08); }
.mh-faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 18px 0; font-size: 24px; line-height: 1.2; font-weight: 500; color: #1F1F1F; }
.mh-faq summary::-webkit-details-marker { display: none; }
.mh-faq summary i { position: relative; flex: none; width: 16px; height: 16px; color: var(--mh-step); }
.mh-faq summary i::before, .mh-faq summary i::after { content: ""; position: absolute; left: 50%; top: 50%; background: currentColor; transform: translate(-50%, -50%); }
.mh-faq summary i::before { width: 14px; height: 1.6px; }
.mh-faq summary i::after { width: 1.6px; height: 14px; transition: transform .2s; }
.mh-faq details[open] summary i::after { transform: translate(-50%, -50%) rotate(90deg); }
.mh-faq details p { padding: 0 48px 22px 0; font-size: 20px; line-height: 1.4; letter-spacing: -.04em; color: var(--mh-text-2); }

/* =========================================================
   RESPONSIVE (source: single column at 375; h1 38, h2 36, 32/16 padding)
   ========================================================= */
@media (max-width: 1100px) {
  .mh-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mh-sensor { grid-template-columns: minmax(0, 1fr); }
  .mh-sensor__media > img { width: 100%; height: auto; aspect-ratio: 612 / 394; }
  .mh-score { grid-template-columns: minmax(0, 1fr); }
  .mh-panel__grid { grid-template-columns: 79px 50px 160px 50px 79px; }
  .mh-conn { width: 50px; }
  .mh-stories { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mh-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mh-habit-cards { width: min(900px, 100% - 32px); }
  .mh-reply { width: min(900px, 100% - 32px); }
  .mh-alert { left: 8%; width: min(493px, 84%); }
  .mh-arrow--c { display: none; }
}
@media (max-width: 639px) {
  .mh-h2 { font-size: 36px; }
  .mh-sec { padding: 32px 0 0; }
  .mh-wrap-xl { width: 100%; padding: 0 16px; }
  .mh-hero { padding: 0; }
  .mh-hero__card { min-height: 884px; border-radius: 0 0 32px 32px; align-items: flex-end; }
  .mh-hero__art { object-position: top; }
  .mh-hero__copy { width: 100%; padding: 24px 16px 16px; background: linear-gradient(180deg, rgba(64, 51, 110, 0), rgba(64, 51, 110, .95) 30%); }
  .mh-hero h1 { font-size: 38px; }
  .mh-hero h1 em { text-decoration-thickness: 2px; text-underline-offset: 5px; }
  .mh-hero__copy > p { line-height: 1.2; }
  .mh-wait { width: 100%; }
  .mh-tiles { grid-template-columns: minmax(0, 1fr); }
  .mh-tile { grid-template-columns: minmax(0, 1fr) 140px; }
  .mh-tile > img { width: 140px; height: 120px; }
  .mh-dial--sm { width: 110px; height: 110px; }
  .mh-sensor-sec, .mh-score-sec { padding: 32px 16px 0; }
  .mh-sensor, .mh-score { padding: 24px 16px; gap: 24px; }
  .mh-glass { padding: 12px 16px; }
  .mh-glass b { font-size: 18px; }
  .mh-glass span { font-size: 15px; }
  .mh-arrow { display: none; }
  .mh-btn { min-width: 0; width: 100%; }
  .mh-charts { grid-template-columns: minmax(0, 1fr); }
  .mh-ctx { grid-template-columns: minmax(0, 1fr); }
  .mh-panel__grid { grid-template-columns: 1fr; justify-items: center; gap: 16px; }
  .mh-conn { display: none; }
  .mh-sig { grid-template-columns: repeat(3, 79px); gap: 12px; }
  .mh-care__stage > img { height: 420px; }
  .mh-alert { left: 16px; right: 16px; top: 20px; width: auto; padding: 14px 16px; }
  .mh-alert b { font-size: 16px; }
  .mh-alert span, .mh-alert time { font-size: 13px; }
  .mh-reply { position: relative; bottom: 0; width: auto; margin: -80px 16px 0; }
  .mh-habits { border-radius: 24px; }
  .mh-habits__bg { height: 560px; }
  .mh-habits__head { top: 270px; width: min(343px, 100% - 32px); }
  .mh-habit-cards { grid-template-columns: minmax(0, 1fr); margin-top: -90px; }
  .mh-habit { height: auto; }
  .mh-habit img { width: 100%; height: auto; aspect-ratio: 245 / 177; }
  .mh-stories { grid-template-columns: minmax(0, 1fr); }
  .mh-steps { grid-template-columns: minmax(0, 1fr); }
  .mh-cta { min-height: 0; border-radius: 24px; flex-direction: column; align-items: stretch; }
  .mh-cta img { position: relative; height: 320px; object-position: center top; }
  .mh-cta__copy { width: 100%; padding: 24px 16px; margin-top: -40px; background: linear-gradient(180deg, rgba(39, 31, 68, 0), var(--mh-p2) 25%); }
  .mh-faq summary { font-size: 18px; }
  .mh-faq details p { font-size: 16px; padding-right: 24px; }
}

/* =========================================================
   Home page sections cloned from skinnyrx.com (19 Oct 2026):
   .hw "How Longiva works" step cards, .cp "Your care plan, in one app".
   Source markup: scripts/metabolic/home_sections.html (injected into
   index.html by scripts/metabolic/build.py between @skinny-home markers).
   ========================================================= */
.hw, .cp { --mh-font: "Figtree", "Sofia Pro", "Helvetica Neue", Arial, sans-serif; font-family: var(--mh-font); }
.hw *, .cp * { box-sizing: border-box; }
:where(.hw, .cp) :where(h2, h3, p, ol, ul) { margin: 0; }
:where(.hw, .cp) :where(ol, ul) { padding: 0; list-style: none; }
.hw img, .cp img { display: block; max-width: 100%; height: auto; }
.js .rv.rv--scale { transform: scale(.92); }
.js .rv.rv--scale.is-in { transform: none; }

/* shared 180x62 gradient button; the gradient slides and the label swaps on hover */
.sx-btn { position: relative; display: flex; align-items: center; justify-content: center; gap: 8px; width: 180px; max-width: 100%; height: 62px; margin: 0 auto; padding: 0 12px; border-radius: 48px; border: 1px solid #40336E; background: linear-gradient(91.03deg, #1E1843 0%, #645B99 50%, #1E1843 100%) left / 200% 100%; color: #fff; font-family: var(--mh-font); font-size: 22px; font-weight: 500; line-height: 24px; letter-spacing: -.04em; text-decoration: none; overflow: hidden; transition: background-position .3s; }
.sx-btn:hover { background-position: right; color: #fff; }
.sx-btn__t { position: relative; display: block; text-align: center; transition: transform .3s; }
.sx-btn__t::after { content: attr(data-t); position: absolute; left: 0; right: 0; top: 60px; }
.sx-btn:hover .sx-btn__t { transform: translateY(-60px); }

/* ---- How Longiva works ---- */
.hw { position: relative; margin-top: 40px; padding: 60px 16px; border-radius: 40px; overflow: hidden; color: #212529; background: radial-gradient(100% 39.75% at 0% 0%, rgba(249, 208, 171, .18), rgba(249, 208, 171, 0)), radial-gradient(100% 39.57% at 100% 0%, rgba(178, 177, 255, .2), rgba(178, 177, 255, 0)); }
.hw__title { text-align: center; font-size: clamp(36px, 5vw, 48px); line-height: 1; font-weight: 400; letter-spacing: -.04em; color: #2E2941; }
.hw__title b { font-weight: 400; background: linear-gradient(to top right, #1E1843, #645B99); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hw__rail { margin: 32px -16px 0; padding-bottom: 40px; overflow-x: auto; scrollbar-width: none; }
.hw__rail::-webkit-scrollbar { display: none; }
.hw__cards { display: flex; gap: 20px; width: max-content; margin: 0 auto; padding: 0 44px; }
.hw-card { position: relative; isolation: isolate; display: flex; flex-direction: column; width: 318px; height: 390px; padding: 24px 24px 0; border-radius: 32px; border: 1px solid #DAD4F4; overflow: hidden; transition: border-color .3s, box-shadow .3s, transform .3s; }
.hw-card::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .3s; background: radial-gradient(170% 150% at -30% 50%, #F9E8DD 0%, rgba(249, 232, 221, 0) 72%), radial-gradient(170% 150% at 130% -20%, #DCDBFD 40%, rgba(220, 219, 253, 0) 92%); }
@media (hover: hover) and (pointer: fine) {
  .hw-card:hover { border-color: #fff; box-shadow: 0 8px 12px rgba(0, 0, 0, .08); }
  .hw-card:hover::before { opacity: 1; }
  .hw-card:hover .hw-card__step::before { opacity: 0; }
}
.hw-card__step { position: relative; isolation: isolate; width: fit-content; font-size: 14px; font-weight: 500; line-height: 1.4; letter-spacing: -.04em; color: #7267B8; }
.hw-card__step::before { content: ""; position: absolute; inset: -4px -8px; z-index: -1; border-radius: 999px; background: rgba(114, 103, 184, .08); transition: opacity .3s; }
.hw-card h3 { margin-top: 20px; font-size: 20px; font-weight: 500; line-height: 1.1; letter-spacing: -.04em; color: #2E2941; }
.hw-card p { margin-top: 8px; font-size: 16px; line-height: 1.2; letter-spacing: -.04em; color: rgba(31, 31, 31, .64); }
.hw-card__img { position: relative; margin-top: auto; min-height: 190px; display: flex; align-items: flex-end; justify-content: center; }
.hw-card__img--1 img { max-height: 220px; width: auto; }
.hw-card__img--2 img { height: 250px; min-width: 300px; width: auto; }
.hw-card__img--3 img { height: 200px; width: auto; max-width: 100%; object-fit: contain; object-position: center bottom; margin-top: 16px; }
.hw-card__img--4 img { height: 236px; width: auto; }

/* ---- Your care plan, in one app ---- */
.cp { padding: 48px 0; }
.cp__card { position: relative; border-radius: 32px; overflow: hidden; padding: 32px 40px 40px; color: #fff; background: #fff url("../img/mh/care-plan-bg.webp") center 0 no-repeat; }
.cp__head { text-align: center; }
.cp__title { font-size: clamp(36px, 4vw, 48px); line-height: 1; font-weight: 400; letter-spacing: -.04em; color: #fff; }
.cp__title em { position: relative; font-style: italic; }
.cp__title em::after { content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 3px; background: currentColor; transform-origin: left; transform: scaleX(0); transition: transform .6s .35s; }
html:not(.js) .cp__title em::after, .cp__head.is-in .cp__title em::after { transform: scaleX(1); }
.cp__head p { margin: 16px auto 0; max-width: max-content; font-size: 18px; line-height: 1.2; letter-spacing: -.04em; color: #fff; }
.cp__grid { display: grid; gap: 16px; width: 100%; max-width: 900px; margin: 370px auto 0; }
.cp-tile { border-radius: 40px; overflow: hidden; color: #fff; }
.cp-tile h3 { font-size: 32px; font-weight: 500; line-height: 1.1; letter-spacing: -.06em; color: #fff; }
.cp-tile h3 span { font-weight: 400; }
.cp-tile--wide { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 40px; background: radial-gradient(62% 92% at 12% 50%, rgba(62, 55, 187, .38) 15%, rgba(62, 55, 107, .28) 55.76%, rgba(62, 55, 107, 0) 100%), radial-gradient(66% 104% at 2% 50%, rgba(34, 23, 103, .52) 0%, rgba(34, 23, 103, .32) 49.04%, rgba(34, 23, 103, .16) 68.81%, rgba(34, 23, 103, .05) 84.73%, rgba(34, 23, 103, 0) 100%), radial-gradient(72% 112% at 66% 52%, rgba(244, 166, 136, .5) 0%, rgba(244, 166, 136, .45) 8.89%, rgba(244, 166, 136, .36) 29.81%, rgba(244, 166, 136, .2) 62.5%, rgba(244, 166, 136, 0) 100%), linear-gradient(90deg, #888ACC 0%, #AFAAE1 100%); }
.cp-tile--wide h3 { max-width: 392px; }
.cp-tile--wide img { max-height: 247px; width: auto; }
.cp__pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
.cp-tile--tall { display: flex; flex-direction: column; gap: 8px; padding: 40px 40px 0; background: radial-gradient(92% 62% at 50% 12%, rgba(62, 55, 187, .18) 15%, rgba(62, 55, 107, .13) 55.76%, rgba(62, 55, 107, 0) 100%), radial-gradient(104% 66% at 50% 2%, rgba(34, 23, 103, .24) 0%, rgba(34, 23, 103, .14) 49.04%, rgba(34, 23, 103, .07) 68.81%, rgba(34, 23, 103, .02) 84.73%, rgba(34, 23, 103, 0) 100%), radial-gradient(112% 72% at 82% 86%, rgba(244, 166, 136, .42) 0%, rgba(244, 166, 136, .36) 8.89%, rgba(244, 166, 136, .48) 29.81%, rgba(244, 166, 136, .18) 62.5%, rgba(244, 166, 136, .1) 100%), linear-gradient(#9695D0 0%, #B9B2DF 100%); }
.cp-tile--tall h3 { max-width: 320px; flex-shrink: 0; }
.cp-tile--tall img { margin: 0 auto; width: 100%; max-width: 320px; min-height: 0; flex: 1; object-fit: contain; object-position: bottom; }
.cp-tile--team { background: radial-gradient(92% 62% at 50% 12%, rgba(62, 55, 187, .18) 15%, rgba(62, 55, 107, .13) 55.76%, rgba(62, 55, 107, 0) 100%), radial-gradient(104% 66% at 50% 2%, rgba(34, 23, 103, .24) 0%, rgba(34, 23, 103, .14) 49.04%, rgba(34, 23, 103, .07) 68.81%, rgba(34, 23, 103, .02) 84.73%, rgba(34, 23, 103, 0) 100%), radial-gradient(112% 72% at 52% 78%, rgba(244, 166, 136, .42) 0%, rgba(244, 166, 136, .36) 8.89%, rgba(244, 166, 136, .4) 29.81%, rgba(244, 166, 136, .18) 62.5%, rgba(244, 166, 136, 0) 100%), linear-gradient(#9695D0 0%, #B9B2DF 100%); }
.cp-tile--team h3 { max-width: 350px; }
.cp-tile--team img { max-width: 340px; padding-bottom: 48px; }
.cp-tile--weight { display: flex; align-items: center; gap: 48px; min-height: 320px; padding: 40px; background: radial-gradient(62% 92% at 12% 50%, rgba(244, 166, 136, .42) 0%, rgba(244, 166, 136, .3) 29.81%, rgba(244, 166, 136, .18) 62.5%, rgba(244, 166, 136, 0) 100%), radial-gradient(72% 112% at 68% 42%, rgba(62, 55, 187, .26) 15%, rgba(62, 55, 107, .18) 55.76%, rgba(62, 55, 107, 0) 100%), radial-gradient(96% 130% at 100% 50%, rgba(34, 23, 103, .55) 0%, rgba(34, 23, 103, .34) 49.04%, rgba(34, 23, 103, .16) 68.81%, rgba(34, 23, 103, .05) 84.73%, rgba(34, 23, 103, 0) 100%), linear-gradient(90deg, #F7DACE 0%, #9695D0 100%); }
.cp-tile--weight img { width: 100%; max-width: 380px; min-height: 0; flex: 1; object-fit: contain; }
.cp-tile--weight h3 { max-width: 400px; text-align: left; }
.cp .sx-btn { margin-top: 32px; }

@media (max-width: 767px) { .hw__title { text-align: left; } }
@media (max-width: 639px) {
  .hw { margin-top: 32px; padding: 32px 0; }
  .hw__title { padding: 0 16px; }
  .hw__rail { margin: 32px 0 0; padding-bottom: 26px; }
  .hw__cards { padding: 0 16px; }
  .hw-card { width: 260px; }
  .hw-card__img--2 img { height: 220px; min-width: 260px; }
  .hw-card__img--4 img { height: 260px; min-width: 280px; }
  .sx-btn { font-size: 18px; }
  .hw .sx-btn { width: calc(100% - 32px); }
  .cp { padding: 0 0 32px; }
  .cp__card { border-radius: 28px; padding: 32px 16px; }
  .cp__head p { max-width: 280px; }
  .cp__grid { margin-top: 270px; }
  .cp-tile--wide { flex-direction: column; padding: 30px; }
  .cp-tile--wide h3 { max-width: 334px; }
  .cp-tile--wide img { max-height: none; width: 100%; }
  .cp__pair { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .cp-tile--tall { aspect-ratio: 199 / 240; padding: clamp(20px, 6.98vw, 30px); padding-bottom: 0; }
  .cp-tile--team img { padding-bottom: clamp(24px, 11.16vw, 48px); }
  .cp-tile--weight { flex-direction: column-reverse; align-items: flex-start; gap: 16px; min-height: 0; aspect-ratio: 199 / 240; padding: clamp(20px, 6.98vw, 30px); }
  .cp-tile--weight h3 { max-width: 280px; }
}
