/* ==========================================================================
   Longevity Beyond layer (loaded last)
   Restrained on purpose: near-black type on off-white, white buttons, dark
   slate / petrol panels, pastel minis. The brand green only appears as the
   italic last word of a heading (deep green on light, pale green on dark)
   and in the logo. No glows or shadows on headings.
   ========================================================================== */

:root {
  --ink: #15191C;
  --charcoal: #15191C;
  --ink-70: rgba(21, 25, 28, .7);
  --ink-55: rgba(21, 25, 28, .55);
  --line: rgba(21, 25, 28, .1);
  --bg: #F6F6F3;
  --ivory: #F6F6F3;
  --pale: #EEF1EE;
  --accent: #3F9440;      /* italic word on light surfaces (brand green, deep enough to read) */
  --accent-soft: #BFE8BC; /* italic word on dark surfaces and photos */
  --lime: var(--accent-soft);
  --lime-ink: var(--accent);
  --forest: #1B2326;
}
body { background: var(--bg); color: var(--ink); }

/* ---------- Headings ---------- */
.h-display, .h-section, .h-card, .mini__title, .cat__title, .sk__name, .tx__name, .wm__label, .sc__label, .more__label {
  font-weight: 400;
}
.h-display { letter-spacing: -.045em; color: var(--ink); }
.h-section, .h-card { letter-spacing: -.04em; }
.h-section:not(.h-section--light), .h-card--dark, .mini__title, .more__label { color: var(--ink); }
.h-display em, .h-section:not(.h-section--light) em, .h-card--dark em, .faq .h-section em, .docs .h-section em { color: var(--accent); }
.h-section--light em, .h-card em, .hiw--trt .h-card em, .goals__title em { color: var(--accent-soft); }
.h-section, .h-card, .h-display, .scn .h-section, .wm .h-section, .wm__label, .wm__lede { text-shadow: none !important; }

/* ---------- Trust bar + header (logo + one button) ---------- */
.announce { background: var(--ink); color: #fff; font-weight: 400; }
.announce__msg .dot { background: var(--accent-soft); box-shadow: none; }
.announce__nav { color: #fff; }
.announce__nav:hover { background: rgba(255, 255, 255, .1); }
.header { background: var(--bg); }
.header__inner { justify-content: space-between; }

.logo { gap: 8px; color: var(--ink); }
.logo__mark { width: 46px; height: 29px; }
.logo:hover .logo__mark { transform: none; }
.logo__word { font-family: var(--f-head); font-size: 21px; font-weight: 700; letter-spacing: -.03em; line-height: 1; white-space: nowrap; }
.logo__word b { font-weight: 700; color: var(--ink); }
.logo__word i { font-style: normal; color: var(--accent); }
.logo--light .logo__word b { color: #fff; }
.logo--light .logo__word i { color: var(--accent-soft); }
@media (max-width: 640px) { .logo__word { font-size: 18px; } .logo__mark { width: 40px; height: 25px; } }

/* ---------- Buttons: white pill, ink text, ink slide-fill on hover. No icon circle. ---------- */
.btn { gap: 8px; }
.btn--primary, .btn--light {
  padding: 0 28px;
  background: #fff;
  color: var(--ink);
  border: 1px solid rgba(21, 25, 28, .12);
  box-shadow: 0 8px 20px -14px rgba(21, 25, 28, .35);
}
.btn--primary::before, .btn--light::before { background: var(--ink); }
.btn--primary:hover, .btn--light:hover { color: #fff; background: #fff; border-color: var(--ink); box-shadow: 0 10px 22px -14px rgba(21, 25, 28, .45); }
/* on dark panels the fill is a soft off-white instead */
.wm .btn--primary, .cta .btn--primary, .footer .btn--primary, .goals .btn--primary { border-color: #fff; }
.wm .btn--primary::before, .cta .btn--primary::before, .footer .btn--primary::before, .goals .btn--primary::before { background: #E7EBE8; }
.wm .btn--primary:hover, .cta .btn--primary:hover, .footer .btn--primary:hover, .goals .btn--primary:hover { color: var(--ink); border-color: #E7EBE8; }
.scn--light .btn--primary { border-color: rgba(21, 25, 28, .12); }
.scn--light .btn--primary::before { background: var(--ink); }
.scn--light .btn--primary:hover { color: #fff; border-color: var(--ink); }
.btn__icon { display: none; }
.btn--sm { height: 42px; padding: 0 20px; font-size: 15px; }

.btn--ghost { color: var(--ink); border: 1px solid rgba(21, 25, 28, .18); background: transparent; }
.btn--ghost:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #2A3033; color: #fff; }
.link-arrow { color: var(--ink); }
.link-arrow:hover { text-decoration-color: var(--ink); }
.pulse { background: var(--accent); }
.pulse::after { border-color: var(--accent); }
:focus-visible { outline-color: var(--ink); }
.wm :focus-visible, .cta :focus-visible, .footer :focus-visible, .goals :focus-visible { outline-color: #fff; }

/* ==========================================================================
   Hero (the template's section 2, promoted)
   ========================================================================== */
.hero--lb { padding: 72px 0 104px; }
.hero--lb .hero__head { align-items: end; margin-bottom: 52px; }
.hero--lb .h-display { font-size: clamp(40px, 6vw, 92px); line-height: 1; }
.hero--lb .eyebrow { color: var(--ink); }
.hero--lb .hero__lede { max-width: 600px; font-size: 18px; color: var(--ink-70); }
.hero--lb .hero__cta { align-items: flex-end; gap: 22px; }
.hero--lb .hero__trust { flex-wrap: wrap; justify-content: flex-end; gap: 18px; }
.hero--lb .hero__trust li { font-size: 15px; color: var(--ink-70); }
.hero--lb .hero__trust svg { stroke: var(--ink); }

.cat:hover .arrow-btn { background: #fff; border-color: #fff; color: var(--ink); }

/* Four soft tints, as on the Karpa example */
.minis { grid-template-columns: repeat(4, 1fr); }
.mini--mint  { background: #DCEFE8; }
.mini--sand  { background: #EFE7D8; }
.mini--blush { background: #F5E0D8; }
.mini--sage  { background: #E2E8DC; }
.mini__vial--art { height: 150px; right: 10px; bottom: -6px; }

@media (max-width: 1024px) {
  .hero--lb .hero__head { grid-template-columns: 1fr; gap: 28px; }
  .hero--lb .hero__cta { align-items: flex-start; }
  .hero--lb .hero__trust { justify-content: flex-start; }
}
@media (max-width: 640px) {
  .hero--lb { padding: 40px 0 72px; }
  .hero--lb .h-display .line > span { white-space: normal; }
  .hero--lb .hero__btns { width: 100%; flex-direction: column; }
  .hero--lb .hero__btns .btn { width: 100%; }
  .hero--lb .hero__trust { gap: 8px 16px; }
  .minis { grid-template-columns: 1fr 1fr; }
  .mini__vial--art { height: 108px; right: 4px; bottom: -4px; }
}

/* ---------- Card tags: one quiet white pill everywhere ---------- */
.tx__tag, .sk__tag, .dk__tag {
  background: #fff !important;
  border-color: #fff !important;
  color: var(--ink) !important;
}

/* ---------- Tabs ---------- */
.tabs__bar { position: relative; display: inline-flex; padding: 4px; border-radius: 999px; background: rgba(21, 25, 28, .06); isolation: isolate; }
.tabs__btn { position: relative; z-index: 1; height: 40px; padding: 0 20px; border-radius: 999px; font-size: 15px; font-weight: 500; color: var(--ink-70); transition: color .3s; }
.tabs__btn.is-active { color: #fff; }
.tabs__thumb { position: absolute; z-index: 0; top: 4px; left: 0; height: 40px; border-radius: 999px; background: var(--ink); transition: transform .5s var(--ease-out), width .5s var(--ease-out); }
.tabs__bar--dark { background: rgba(255, 255, 255, .1); }
.tabs__bar--dark .tabs__btn { color: rgba(255, 255, 255, .7); }
.tabs__bar--dark .tabs__btn.is-active { color: var(--ink); }
.tabs__bar--dark .tabs__thumb { background: #fff; }
.scn--light .tabs__bar--dark { background: rgba(21, 25, 28, .06); }
.scn--light .tabs__bar--dark .tabs__btn { color: var(--ink-70); }
.scn--light .tabs__bar--dark .tabs__btn.is-active { color: #fff; }
.scn--light .tabs__bar--dark .tabs__thumb { background: var(--ink); }
.wm__lineup-head--slider { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }

/* Four across on desktop; below 960px the template turns card rows into a swipe carousel */
@media (min-width: 961px) { .wm__cards--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ==========================================================================
   Peptides: dark petrol panel, warm light from the top right, the vials
   floating inside the moving text orbit
   ========================================================================== */
.wm--pep .wm__panel { background: linear-gradient(180deg, #0F3D46 0%, #0C323A 45%, #08242A 100%); }
.wm--pep .wm__panel::before {
  background:
    radial-gradient(38% 30% at 82% 0%, rgba(255, 242, 222, .34) 0%, rgba(255, 242, 222, 0) 100%),
    radial-gradient(60% 50% at 50% 34%, rgba(191, 232, 188, .12) 0%, rgba(191, 232, 188, 0) 100%);
}
.wm--pep .wm__panel::after { background: radial-gradient(120% 90% at 50% 30%, rgba(4, 18, 21, 0) 55%, rgba(4, 18, 21, .5) 100%); }
.wm--pep .wm__beam { opacity: .7; }
.wm--pep .wm__eyebrow { color: var(--accent-soft); }

.pep-stage { margin: 8px auto 0; }
.pep-stage__rays {
  position: absolute;
  inset: -30% -20%;
  background: repeating-conic-gradient(from 0deg at 50% 50%, rgba(255, 255, 255, .06) 0deg .6deg, rgba(255, 255, 255, 0) .6deg 5deg);
  -webkit-mask-image: radial-gradient(closest-side, #000 20%, transparent 75%);
          mask-image: radial-gradient(closest-side, #000 20%, transparent 75%);
  animation: rays-turn 120s linear infinite;
}
@keyframes rays-turn { to { transform: rotate(360deg); } }
.wm--pep .wm__glow { background: radial-gradient(circle, rgba(191, 232, 188, .28) 0%, rgba(191, 232, 188, .08) 45%, rgba(191, 232, 188, 0) 70%); }
.wm--pep .orbit__ch { color: var(--accent-soft); text-shadow: none; }
.wm--pep .wm__lineup { margin-top: 48px; }
@media (max-width: 640px) {
  .pep-stage { --R: 150px; --ch: 18px; --vial-h: 200px; height: 380px; }
}

/* Body map on the dark panel */
.xcard--night { background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); color: #fff; }
.xcard--night .h-card { color: #fff; }
.xcard--night .xcard__copy > p, .xcard--night .xcard__caption, .xcard--night .body-map__label { color: rgba(255, 255, 255, .66); }
.xcard--night .body-map__glow { background: radial-gradient(circle, rgba(191, 232, 188, .16) 0%, rgba(191, 232, 188, 0) 65%); }
.xcard--night .hotspot__dot { background: #fff; }

/* "Dissolves under the tongue": copy + steps beside an animated troche */
.dissolve {
  position: relative;
  margin-top: 16px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
  padding: 48px;
  border-radius: 28px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .1);
  color: #fff;
  overflow: hidden;
}
.dissolve__kicker { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .55); margin-bottom: 18px; }
.dissolve .h-card { color: #fff; }
.dissolve__lede { margin-top: 16px; max-width: 380px; font-size: var(--fs-body-sm); color: rgba(255, 255, 255, .7); }
.dissolve__steps { margin-top: 32px; display: grid; }
.dissolve__steps li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 16px;
  align-items: start;
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, .1);
  opacity: .45;
  animation: dissolve-step 9s infinite;
}
.dissolve__steps li:nth-child(2) { animation-delay: 3s; }
.dissolve__steps li:nth-child(3) { animation-delay: 6s; }
@keyframes dissolve-step { 0%, 30% { opacity: 1; } 36%, 100% { opacity: .45; } }
.dissolve__steps span { font-size: 13px; padding-top: 3px; color: var(--accent-soft); }
.dissolve__steps b { display: block; font-weight: 500; }
.dissolve__steps small { display: block; margin-top: 2px; font-size: 14px; color: rgba(255, 255, 255, .6); }

.dissolve__visual { position: relative; justify-self: center; width: min(100%, 380px); aspect-ratio: 1; }
.dissolve__visual::before { content: ""; position: absolute; inset: 8%; border-radius: 50%; background: radial-gradient(circle at 50% 40%, rgba(255, 255, 255, .1), rgba(255, 255, 255, .02) 70%); }
.dissolve__progress { position: absolute; inset: 0; width: 100%; height: 100%; rotate: -90deg; }
.dissolve__progress circle { fill: none; stroke: rgba(255, 255, 255, .08); stroke-width: 1.5; }
.dissolve__progress .dissolve__arc { stroke: var(--accent-soft); stroke-linecap: round; stroke-dasharray: 0 100; animation: dissolve-arc 9s linear infinite; }
@keyframes dissolve-arc { 0% { stroke-dasharray: 0 100; opacity: 1; } 90% { stroke-dasharray: 100 0; opacity: 1; } 100% { stroke-dasharray: 100 0; opacity: 0; } }
.dissolve__troche {
  position: absolute;
  left: 50%; top: 50%;
  width: 34%; aspect-ratio: 1;
  margin: -17% 0 0 -17%;
  border-radius: 34%;
  background: radial-gradient(circle at 38% 32%, #fff 0%, #F1F2EE 45%, #D9DCD6 100%);
  box-shadow: inset 0 -8px 16px rgba(0, 0, 0, .12), 0 24px 40px -18px rgba(0, 0, 0, .6);
  animation: dissolve-troche 9s ease-in-out infinite;
}
@keyframes dissolve-troche {
  0%   { transform: scale(1); opacity: 1; filter: blur(0); border-radius: 34%; }
  70%  { transform: scale(.45); opacity: .7; filter: blur(1px); border-radius: 50%; }
  90%  { transform: scale(.1); opacity: 0; filter: blur(4px); }
  100% { transform: scale(1); opacity: 0; }
}
.dissolve__rings i { position: absolute; left: 33%; top: 33%; width: 34%; aspect-ratio: 1; border-radius: 50%; border: 1px solid rgba(191, 232, 188, .35); opacity: 0; animation: dissolve-ring 3s ease-out infinite; }
.dissolve__rings i:nth-child(2) { animation-delay: 1s; }
.dissolve__rings i:nth-child(3) { animation-delay: 2s; }
@keyframes dissolve-ring { 0% { transform: scale(.9); opacity: .8; } 100% { transform: scale(2.4); opacity: 0; } }
.dissolve__dots i { position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; margin: -3px; border-radius: 50%; background: rgba(255, 255, 255, .7); opacity: 0; transform: rotate(var(--a)) translateY(0); animation: dissolve-dot 9s ease-out infinite; }
@keyframes dissolve-dot { 0%, 20% { opacity: 0; transform: rotate(var(--a)) translateY(0); } 40% { opacity: .8; } 85% { opacity: 0; transform: rotate(var(--a)) translateY(-120px); } 100% { opacity: 0; } }
@media (max-width: 960px) { .dissolve { grid-template-columns: 1fr; padding: 32px 24px; gap: 24px; } .dissolve__visual { width: min(100%, 300px); } }
@media (prefers-reduced-motion: reduce) {
  .dissolve__steps li, .dissolve__troche, .dissolve__rings i, .dissolve__dots i, .dissolve__arc, .pep-stage__rays { animation: none; }
  .dissolve__steps li { opacity: 1; }
}

/* ==========================================================================
   Layered scenes (.scn): background plate + drifting cards + cut-out person.
   Same trick as the MORYU weight section: the panel above the photo is the
   photo's own sky colour (sampled: #2B8BD8), and the whole scene fades out on
   an eased curve into a flat base that sits with the photo's lower tones.
   Light and dark bases alternate down the page.
   When new images arrive, re-sample --sky from the background's top edge.
   ========================================================================== */
.scn { --sky: #2B8BD8; --base: #1E2A2C; --base-2: #162022; }
.scn--light { --base: #E8ECE8; --base-2: #F0F2EF; }

.scn .wm__panel { padding-top: 0; background: linear-gradient(180deg, var(--sky) 0, var(--sky) 80px, var(--base) 560px, var(--base) 70%, var(--base-2) 100%); }
.scn .wm__panel::before, .scn .wm__panel::after { display: none; }
.scn .trt-scene::after { display: none; }
.scn .trt-scene {
  -webkit-mask-image: linear-gradient(180deg,
    rgba(0, 0, 0, 0) 0%, #000 5%, #000 56%,
    rgba(0, 0, 0, .9) 62%, rgba(0, 0, 0, .72) 68%, rgba(0, 0, 0, .5) 74%,
    rgba(0, 0, 0, .3) 80%, rgba(0, 0, 0, .13) 86%, rgba(0, 0, 0, .04) 92%, rgba(0, 0, 0, 0) 98%);
          mask-image: linear-gradient(180deg,
    rgba(0, 0, 0, 0) 0%, #000 5%, #000 56%,
    rgba(0, 0, 0, .9) 62%, rgba(0, 0, 0, .72) 68%, rgba(0, 0, 0, .5) 74%,
    rgba(0, 0, 0, .3) 80%, rgba(0, 0, 0, .13) 86%, rgba(0, 0, 0, .04) 92%, rgba(0, 0, 0, 0) 98%);
}
.scn .wm__eyebrow { color: #fff; }
.scn .trt-scene__note { color: rgba(255, 255, 255, .75); }
.scn .tx:hover { border-color: rgba(255, 255, 255, .4); }
.scn--dark .tx::before { background: radial-gradient(circle, rgba(255, 255, 255, .14) 0%, rgba(255, 255, 255, 0) 68%); }

/* light base: frosted white cards, ink text */
.scn--light .tx { background: rgba(255, 255, 255, .62); border-color: rgba(255, 255, 255, .95); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.scn--light .tx::before { background: radial-gradient(circle, rgba(255, 255, 255, .9) 0%, rgba(255, 255, 255, 0) 68%); }
.scn--light .tx:hover { border-color: rgba(21, 25, 28, .2); }
.scn--light .tx__name, .scn--light .tx__link, .scn--light .wm__label { color: var(--ink); }
.scn--light .tx__meta, .scn--light .wm__disclaimer { color: var(--ink-70); }
.scn--light .tx__link { border-top-color: var(--line); }
.scn--light .tx__media img { filter: drop-shadow(0 22px 20px rgba(21, 25, 28, .18)); }

/* BMI card on the light weight-loss base */
.scn--light .bmi-card { background: rgba(255, 255, 255, .62); border: 1px solid rgba(255, 255, 255, .95); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.scn--light .bmi-card::before { display: none; }
.scn--light .bmi-card .h-card { color: var(--ink); }
.scn--light .bmi-card .h-card em { color: var(--accent); }
.scn--light .bmi-card__copy p, .scn--light .bmi-card__caption { color: var(--ink-70); }
.scn--light .bmi-card__range { color: var(--ink); }
.scn--light .bmi-card__range span { color: rgba(21, 25, 28, .35); }
.scn--light .gauge__track { stroke: rgba(21, 25, 28, .07); }
.scn--light .gauge__needle line { stroke: var(--ink); }
.scn--light .gauge__needle circle { fill: var(--ink); }
.scn--light .gauge--card { filter: none; }
.scn .bmi-card { margin-top: 56px; }

/* drifting deck cards sit on the photo: keep them a calm dark glass */
.dk { background: rgba(21, 28, 31, .6); border-color: rgba(255, 255, 255, .14); }
.dk__line li::before { background: #2C3739; }

/* How it works inside the sexual health panel */
.hiw--trt { margin-top: 72px; }
.hiw--trt .wm__eyebrow--left { margin-bottom: 16px; color: rgba(255, 255, 255, .6); }
.hiw--trt .wm__eyebrow--left::before { display: none; }
.hiw .s1-days { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.hiw .s1-days span { width: auto; font-size: 13px; }

/* ---------- Why Longevity Beyond ---------- */
.docs { padding-top: 112px; }
.docs__list li { background: #fff; }
.docs__list--4 { grid-template-columns: 1fr 1fr; }
.docs__list a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.docs__ic { background: var(--pale) !important; }
.docs__ic svg { stroke: var(--ink) !important; }
.trust__tag { color: var(--ink); }
.trust__tag::before { background: var(--accent); }
@media (max-width: 760px) { .docs__list--4 { grid-template-columns: 1fr; } }

/* ---------- CTA, footer ---------- */
.cta__panel { background: linear-gradient(180deg, #0F3D46 0%, #08242A 100%); position: relative; }
.cta__panel::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(38% 40% at 82% 0%, rgba(255, 242, 222, .26) 0%, rgba(255, 242, 222, 0) 100%); }
.cta .wm__eyebrow { color: rgba(255, 255, 255, .6); }
.cta__chips a:hover { background: #fff; border-color: #fff; color: var(--ink); }
.footer { background: var(--ink); }
.footer__tagline em { color: var(--accent-soft); }
.footer__label { color: rgba(255, 255, 255, .5); }
.footer__col a:hover, .footer__notice a:hover { color: #fff; }
.footer__todo { color: rgba(255, 255, 255, .5); }
.footer__notice a { text-decoration-color: rgba(255, 255, 255, .35); }
@media (max-width: 640px) { .more__head { flex-wrap: wrap; gap: 6px 16px; } .more__head .link-arrow { font-size: 14px; } }

/* ==========================================================================
   Brand pass: exactly two client colours from the logo.
   Navy #083068 (primary: trust bar, light-surface buttons, peptides, CTA,
   footer, logo wordmark) and green #4CA844 (accent: italic words, icons).
   ========================================================================== */
:root { --navy: #083068; --navy-hover: #0B3F86; --navy-deep: #051F45; --green: #4CA844; }

.announce { background: var(--navy); }
.logo__word b { color: var(--navy); }

/* Buttons on light surfaces: navy pill, white text */
.btn--primary, .btn--dark, .scn--light .btn--primary {
  background: var(--navy); color: #fff; border-color: var(--navy);
  box-shadow: 0 10px 22px -14px rgba(8, 48, 104, .6);
}
.btn--primary::before, .btn--dark::before, .scn--light .btn--primary::before { background: var(--navy-hover); }
.btn--primary:hover, .btn--dark:hover, .scn--light .btn--primary:hover { color: #fff; background: var(--navy); border-color: var(--navy-hover); }
.btn--ghost:hover { background: var(--navy); border-color: var(--navy); }
/* On navy / dark panels the button stays white so it reads */
.wm:not(.scn--light) .btn--primary, .cta .btn--primary, .footer .btn--primary, .goals .btn--primary {
  background: #fff; color: var(--navy); border-color: #fff; box-shadow: 0 10px 22px -14px rgba(0, 0, 0, .5);
}
.wm:not(.scn--light) .btn--primary::before, .cta .btn--primary::before, .footer .btn--primary::before, .goals .btn--primary::before { background: #E6ECF4; }
.wm:not(.scn--light) .btn--primary:hover, .cta .btn--primary:hover, .footer .btn--primary:hover, .goals .btn--primary:hover { color: var(--navy); border-color: #E6ECF4; }
.btn--light, .bmi-card__btn { background: var(--navy) !important; color: #fff !important; border-color: var(--navy) !important; }

/* Hero: trust icons in brand green */
.hero--lb .hero__trust svg, .docs__ic svg { stroke: var(--green) !important; }
.hero--lb .hero__trust li { color: var(--ink); }

/* Tabs on light surfaces: navy thumb */
.tabs__thumb, .scn--light .tabs__bar--dark .tabs__thumb { background: var(--navy); }
.tabs__bar--dark .tabs__thumb { background: #fff; }
.tabs__bar--dark .tabs__btn.is-active { color: var(--navy); }

/* More ways we can help: two soft brand tints mixed with the two warm neutrals */
.mini--mint  { background: #E2F0DF; }   /* green tint */
.mini--sand  { background: #EFE7D8; }
.mini--blush { background: #F5E0D8; }
.mini--sage  { background: #E0E8F2; }   /* navy tint */

/* Peptides: brand navy, warm light still coming from the top right */
.wm--pep .wm__panel { background: linear-gradient(180deg, #0A3672 0%, var(--navy) 45%, var(--navy-deep) 100%); }
.wm--pep .wm__panel::after { background: radial-gradient(120% 90% at 50% 30%, rgba(3, 18, 42, 0) 55%, rgba(3, 18, 42, .5) 100%); }

/* Closing CTA and footer in navy as well (brief: navy footer) */
.cta__panel { background: linear-gradient(180deg, #0A3672 0%, var(--navy-deep) 100%); }
.footer { background: var(--navy-deep); }
.goals { background: var(--navy-deep); }
.faq__item[open] > summary i { background: var(--navy) !important; border-color: var(--navy) !important; }

/* Slide-fill colour for outline / dark buttons: navy, never black */
.btn--ghost, .btn--dark, .btn--light { --btn-fill: var(--navy); }
.btn--ghost:hover { color: #fff; }

/* More ways we can help: four soft shades between the two brand colours,
   green (Hair) -> green-blue -> light navy -> navy (Men's TRT) */
.mini--mint  { background: #E1EFDE; }
.mini--sand  { background: #DFECE9; }
.mini--blush { background: #E3EAF3; }
.mini--sage  { background: #D8E2EF; }

/* ==========================================================================
   Scene bases in brand colours: dark sections fade into navy, light sections
   into a pale wash of the brand green (the same family as the phone UI tint).
   ========================================================================== */
.scn { --base: #0A2C5E; --base-2: #061D42; }
.scn--light { --base: #E3F1E0; --base-2: #EEF7EC; }
.scn--dark .tx { background: linear-gradient(165deg, rgba(255, 255, 255, .12) 0%, rgba(255, 255, 255, .04) 100%); }
.dk { background: rgba(6, 29, 66, .62); }
.dk__line li::before { background: #123F78; }

/* How it works phone: navy-led screens, green only for picks and small accents */
.hiw .m-s1 { background: #EEF3FA; }
.hiw .s1-lab__ic { background: var(--navy); }
.hiw .s1-lab__ic svg { stroke: var(--accent-soft); }
.hiw .s1-days span, .hiw .s1-times span { background: #fff; color: var(--navy); }
@keyframes m-pick-lb { to { background: var(--navy); color: #fff; } }
.hiw .scene.is-active .s1-days .m-pick { animation-name: m-pick-lb; }
.hiw .scene.is-active .s1-times .m-pick { animation-name: m-pick-lb; }
.hiw .m-cta { background: var(--navy); }
.hiw .m-cta i { background: var(--accent-soft); }
.hiw .m-cta svg { stroke: var(--navy); }
.hiw .m-title { color: var(--navy); }
.hiw .m-s2 .m-title, .hiw .m-s4 .m-title { color: #fff; }

.hiw .m-s2 { background: var(--navy); }
.hiw .s2-hero, .hiw .s2-list li { background: #0E3A74; }
.hiw .s2-bars i { background: #1A4A86; }
.hiw .s2-toast { background: #fff; color: var(--navy); }
.hiw .s2-toast i { background: var(--navy); }

.hiw .m-s3 { background: #fff; }
.hiw .s3-plan { background: var(--navy); }

.hiw .m-s4 { background: var(--navy-deep); }
.hiw .s4-pack { background: #E3F1E0; }
.hiw .s4-pack path { stroke: var(--navy); }
.hiw .s4-steps { background: #0E3A74; }
.hiw .mp__home { background: var(--navy); }
.hiw .mp__screen[data-active="1"] .mp__home, .hiw .mp__screen[data-active="3"] .mp__home { background: #fff; }

/* How-it-works step list: active step in white, not green */
.hiw--trt .hiw__steps li.is-active span { background: #fff; color: var(--navy); }
.hiw--trt .hiw__steps li span { background: rgba(255, 255, 255, .1); color: #fff; }
.hiw--trt .hiw__steps li i { background: var(--accent-soft); }

/* ---------- Product rows: exactly three cards, arrows for the rest ---------- */
@media (min-width: 961px) {
  .wm__cards--slider[data-track] { grid-auto-columns: calc((100% - 32px) / 3); gap: 16px; -webkit-mask-image: none; mask-image: none; border-radius: 24px; }
}
.slider-nav[hidden] { display: none; }
.lineup-tools { display: flex; align-items: center; gap: 12px; }
.scn--dark .slider-btn, .wm--pep .slider-btn { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .18); color: #fff; }
.slider-btn:hover:not(:disabled) { background: var(--navy); border-color: var(--navy); color: #fff; }
.scn--dark .slider-btn:hover:not(:disabled) { background: #fff; color: var(--navy); }

/* Labelled product shots are full 1254px frames: let them fill the card media area */
.tx__media img[src*="products/lb/"] { height: 230px; width: auto; }
.mini__vial[src*="products/lb/"] { height: 180px; right: 6px; bottom: -22px; transform: rotate(4deg); }

/* More ways we can help: an A-B-A-B rhythm. Cards 1 and 3 are greens, 2 and 4 are navies,
   each a different shade so all four stay distinct. */
.mini--mint  { background: #E2F0DE; }  /* 1 soft green */
.mini--sand  { background: #E3EAF4; }  /* 2 soft navy */
.mini--blush { background: #D8ECE0; }  /* 3 deeper mint green */
.mini--sage  { background: #D8E2F0; }  /* 4 deeper steel navy */
.wm--pep .wm__vial--a[src*="products/lb/"] { height: 300px; } .wm--pep .wm__vial--b[src*="products/lb/"] { height: 380px; }

/* ---------- Peptides orbit: one big injectable pen, loose tablets resting in front ---------- */
.wm--pep .pep-pen[src*="products/lb/"] { height: 480px; animation: pep-float 7s ease-in-out infinite; }
@keyframes pep-float {
  0%, 100% { transform: translate(-50%, calc(-50% - 8px)) rotateZ(-9deg); }
  50%      { transform: translate(-50%, calc(-50% + 8px)) rotateZ(-6deg); }
}
.pep-tabs { position: absolute; z-index: 3; left: 57%; bottom: 6px; height: 120px; width: auto; filter: drop-shadow(0 18px 16px rgba(0, 0, 0, .35)); animation: trt-float 8s ease-in-out -3s infinite; }
@media (max-width: 640px) {
  .wm--pep .pep-pen[src*="products/lb/"] { height: 300px; }
  .pep-tabs { height: 76px; left: 56%; bottom: 0; }
}

/* ---------- Skin care: the dark base in deep brand green instead of navy ---------- */
.scn--forest { --base: #0F3A2B; --base-2: #0A291F; }
.scn--forest .dk { background: rgba(9, 38, 28, .62); }
.scn--forest .dk__line li::before { background: #1D4A3A; }

/* ==========================================================================
   How it works: four app screens, built for Longevity Beyond.
   1 intake (light) / 2 provider review (navy) / 3 plan (white) / 4 delivery (deep navy).
   Every animation starts when the scene becomes .is-active (main.js cycles them).
   ========================================================================== */
.ls { color: var(--navy); }
.ls-1 { background: #F2F5FA; }
.ls-2 { background: var(--navy); color: #fff; }
.ls-3 { background: #fff; }
.ls-4 { background: var(--navy-deep); color: #fff; }
.ls-kicker { margin-top: 10px; font-size: 10px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; opacity: .55; }
.ls-title { margin: 6px 0 14px; font-family: var(--f-head); font-weight: 600; font-size: 25px; line-height: 1.04; letter-spacing: -.04em; }
@keyframes ls-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.ls.is-active .ls-title { animation: ls-in .5s var(--ease-out) both; }

/* 1 / intake */
.ls-progress { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 4px; }
.ls-progress i { position: relative; height: 4px; border-radius: 4px; background: rgba(8, 48, 104, .12); overflow: hidden; }
.ls-progress i:first-child::after { content: ""; position: absolute; inset: 0; width: 0; border-radius: inherit; background: var(--navy); }
.ls-1.is-active .ls-progress i:first-child::after { animation: ls-grow .9s var(--ease-out) .2s forwards; }
@keyframes ls-grow { to { width: 100%; } }
.ls-goals { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ls-goal { position: relative; display: flex; flex-direction: column; gap: 16px; padding: 11px 11px 12px; border-radius: 16px; background: #fff; font-size: 11.5px; font-weight: 600; line-height: 1.2; box-shadow: 0 6px 14px -10px rgba(8, 48, 104, .3); }
.ls-goal i { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 10px; background: #EAF0F8; }
.ls-goal svg { width: 16px; height: 16px; fill: none; stroke: var(--navy); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ls-goal b { position: absolute; top: 9px; right: 9px; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--accent-soft); transform: scale(0); }
.ls-goal b svg { width: 12px; height: 12px; stroke: var(--navy); stroke-width: 2.6; }
.ls-1.is-active .ls-goal { animation: ls-in .45s var(--ease-out) both; }
.ls-1.is-active .ls-goal:nth-child(2) { animation-delay: .08s; }
.ls-1.is-active .ls-goal:nth-child(3) { animation-delay: .16s; }
.ls-1.is-active .ls-goal:nth-child(4) { animation-delay: .24s; }
.ls-1.is-active .ls-goal--pick { animation: ls-in .45s var(--ease-out) both, ls-pick .35s ease 1.15s forwards; }
@keyframes ls-pick { 40% { transform: scale(.94); } 100% { transform: scale(1); background: var(--navy); color: #fff; } }
.ls-1.is-active .ls-goal--pick i { animation: ls-pick-ic .3s ease 1.2s forwards; }
@keyframes ls-pick-ic { to { background: rgba(255, 255, 255, .14); } }
.ls-1.is-active .ls-goal--pick i svg { animation: ls-pick-svg .3s ease 1.2s forwards; }
@keyframes ls-pick-svg { to { stroke: #fff; } }
.ls-1.is-active .ls-goal--pick b { animation: ls-pop .4s cubic-bezier(.3, 1.6, .5, 1) 1.35s forwards; }
@keyframes ls-pop { to { transform: scale(1); } }

.ls-switch { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; padding: 11px 12px; border-radius: 16px; background: #fff; box-shadow: 0 6px 14px -10px rgba(8, 48, 104, .3); }
.ls-switch b { display: block; font-size: 11.5px; font-weight: 600; }
.ls-switch small { display: block; margin-top: 2px; font-size: 10px; opacity: .55; }
.ls-switch__track { position: relative; flex: none; width: 40px; height: 24px; border-radius: 99px; background: rgba(8, 48, 104, .15); }
.ls-switch__track i { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, .2); }
.ls-1.is-active .ls-switch { animation: ls-in .45s var(--ease-out) .32s both; }
.ls-1.is-active .ls-switch__track { animation: ls-on .3s ease 2.3s forwards; }
.ls-1.is-active .ls-switch__track i { animation: ls-knob .3s var(--ease-out) 2.3s forwards; }
@keyframes ls-on { to { background: var(--green); } }
@keyframes ls-knob { to { transform: translateX(16px); } }

.ls-btn { position: relative; display: grid; place-items: center; height: 46px; margin-top: auto; border-radius: 99px; background: var(--navy); color: #fff; font-size: 13px; font-weight: 600; overflow: hidden; }
.ls-btn i { position: absolute; inset: 0 auto 0 0; width: 0; background: rgba(255, 255, 255, .16); }
.ls-btn em { position: relative; font-style: normal; }
.ls-1.is-active .ls-btn i { animation: ls-grow .7s ease 3.3s forwards; }

/* the "finger": taps the goal, the switch, then the button */
.ls-tap { position: absolute; z-index: 3; left: 0; top: 0; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; background: rgba(8, 48, 104, .14); border: 2px solid rgba(8, 48, 104, .35); opacity: 0; pointer-events: none; }
.ls-1.is-active .ls-tap { animation: ls-tap 4s ease .5s both; }
@keyframes ls-tap {
  0%   { opacity: 0; left: 70%; top: 85%; transform: scale(1); }
  12%  { opacity: 1; }
  15%  { left: 27%; top: 42%; transform: scale(1); }
  19%  { transform: scale(.75); }
  23%  { transform: scale(1); left: 27%; top: 42%; }
  38%  { left: 84%; top: 68%; transform: scale(1); }
  44%  { transform: scale(.75); }
  48%  { transform: scale(1); left: 84%; top: 68%; }
  64%  { left: 50%; top: 89%; transform: scale(1); }
  70%  { transform: scale(.75); }
  76%  { transform: scale(1); opacity: 1; }
  90%, 100% { left: 50%; top: 89%; opacity: 0; }
}

/* 2 / provider review */
.ls-radar { position: relative; width: 168px; height: 168px; margin: 4px auto 16px; border-radius: 50%; }
.ls-radar__ring { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .14); }
.ls-radar__ring--2 { inset: 26px; border-style: dashed; border-color: rgba(255, 255, 255, .18); animation: ls-spin 18s linear infinite reverse; }
.ls-radar__sweep { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, rgba(191, 232, 188, 0) 0deg, rgba(191, 232, 188, 0) 280deg, rgba(191, 232, 188, .38) 359deg, rgba(191, 232, 188, 0) 360deg); animation: ls-spin 2.4s linear infinite; }
@keyframes ls-spin { to { transform: rotate(360deg); } }
.ls-radar img { position: absolute; left: 50%; top: 50%; width: 62px; height: 62px; margin: -31px 0 0 -31px; border-radius: 50%; object-fit: cover; border: 3px solid #fff; box-shadow: 0 0 0 6px rgba(255, 255, 255, .08); }
.ls-radar__dot { position: absolute; left: 50%; top: 50%; width: 7px; height: 7px; margin: -3.5px; border-radius: 50%; background: var(--accent-soft); transform: rotate(var(--a)) translateY(-70px); opacity: .25; }
.ls-2.is-active .ls-radar__dot { animation: ls-blip 2.4s ease infinite; animation-delay: calc(var(--a) / 360deg * 2.4s); }
@keyframes ls-blip { 0%, 100% { opacity: .25; } 8% { opacity: 1; box-shadow: 0 0 0 4px rgba(191, 232, 188, .25); } 30% { opacity: .35; } }
.ls-2.is-active .ls-radar { animation: ls-in .5s var(--ease-out) .1s both; }

.ls-checks li { display: flex; align-items: center; gap: 10px; margin-top: 6px; padding: 10px 12px; border-radius: 14px; background: rgba(255, 255, 255, .07); font-size: 12px; font-weight: 500; opacity: .45; }
.ls-checks svg { flex: none; width: 20px; height: 20px; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ls-checks circle { stroke: rgba(255, 255, 255, .25); }
.ls-checks path { stroke: var(--accent-soft); stroke-dasharray: 20; stroke-dashoffset: 20; }
.ls-2.is-active .ls-checks li { animation: ls-row .3s ease forwards; }
.ls-2.is-active .ls-checks li path { animation: ls-draw .45s ease forwards; }
.ls-2.is-active .ls-checks li circle { animation: ls-ring .3s ease forwards; }
.ls-2.is-active .ls-checks li:nth-child(1), .ls-2.is-active .ls-checks li:nth-child(1) path, .ls-2.is-active .ls-checks li:nth-child(1) circle { animation-delay: 1s; }
.ls-2.is-active .ls-checks li:nth-child(2), .ls-2.is-active .ls-checks li:nth-child(2) path, .ls-2.is-active .ls-checks li:nth-child(2) circle { animation-delay: 1.8s; }
.ls-2.is-active .ls-checks li:nth-child(3), .ls-2.is-active .ls-checks li:nth-child(3) path, .ls-2.is-active .ls-checks li:nth-child(3) circle { animation-delay: 2.6s; }
@keyframes ls-row { to { opacity: 1; background: rgba(255, 255, 255, .11); } }
@keyframes ls-draw { to { stroke-dashoffset: 0; } }
@keyframes ls-ring { to { stroke: var(--accent-soft); } }
.ls-live { display: inline-flex; align-items: center; justify-content: center; gap: 8px; margin-top: auto; padding: 10px; border-radius: 99px; background: rgba(255, 255, 255, .1); font-size: 11px; font-weight: 500; }
.ls-live i { position: relative; width: 7px; height: 7px; border-radius: 50%; background: var(--accent-soft); }
.ls-live i::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1.5px solid var(--accent-soft); animation: pulse-ring 2s var(--ease-out) infinite; }

/* 3 / plan */
.ls-plan { position: relative; overflow: hidden; padding: 6px 14px 16px; border-radius: 22px; background: linear-gradient(180deg, #F2F5FA 0%, #fff 100%); border: 1px solid rgba(8, 48, 104, .08); text-align: center; }
.ls-plan__halo { position: absolute; left: 50%; top: 16px; width: 170px; height: 170px; margin-left: -85px; border-radius: 50%; background: radial-gradient(circle, rgba(191, 232, 188, .8) 0%, rgba(191, 232, 188, 0) 68%); }
.ls-plan img { position: relative; display: block; height: 150px; width: auto; margin: -6px auto -8px; }
.ls-plan b { position: relative; display: block; font-family: var(--f-head); font-size: 18px; letter-spacing: -.03em; }
.ls-plan small { position: relative; display: block; margin-top: 3px; font-size: 10px; opacity: .6; }
.ls-plan__chips { position: relative; display: flex; justify-content: center; gap: 5px; margin-top: 10px; }
.ls-plan__chips em { padding: 4px 9px; border-radius: 99px; background: rgba(8, 48, 104, .07); font-style: normal; font-size: 10px; font-weight: 600; }
.ls-3.is-active .ls-plan { animation: ls-in .5s var(--ease-out) .1s both; }
.ls-3.is-active .ls-plan img { animation: ls-rise .9s cubic-bezier(.2, 1.3, .4, 1) .35s both; }
@keyframes ls-rise { from { opacity: 0; transform: translateY(36px) scale(.85) rotate(-6deg); } to { opacity: 1; transform: none; } }
.ls-3.is-active .ls-plan__halo { animation: glow-breathe 3s ease-in-out infinite; }
.ls-3.is-active .ls-plan__chips em { animation: ls-in .4s var(--ease-out) both; }
.ls-3.is-active .ls-plan__chips em:nth-child(1) { animation-delay: 1s; }
.ls-3.is-active .ls-plan__chips em:nth-child(2) { animation-delay: 1.15s; }

.ls-slide { position: relative; display: grid; place-items: center; height: 52px; margin-top: auto; border-radius: 99px; background: rgba(8, 48, 104, .07); overflow: hidden; font-size: 12.5px; font-weight: 600; }
.ls-slide::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 52px; border-radius: inherit; background: var(--navy); }
.ls-slide i { position: absolute; z-index: 2; left: 4px; top: 4px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #fff; }
.ls-slide i svg { width: 18px; height: 18px; fill: none; stroke: var(--navy); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ls-slide em { position: relative; z-index: 1; font-style: normal; opacity: .55; }
.ls-slide b { position: absolute; z-index: 1; inset: 0; display: grid; place-items: center; color: #fff; opacity: 0; }
.ls-3.is-active .ls-slide::before { animation: ls-fill .9s cubic-bezier(.6, 0, .3, 1) 2.2s forwards; }
.ls-3.is-active .ls-slide i { animation: ls-knob-run .9s cubic-bezier(.6, 0, .3, 1) 2.2s forwards; }
.ls-3.is-active .ls-slide em { animation: ls-fade .3s ease 2.3s forwards; }
.ls-3.is-active .ls-slide b { animation: ls-show .3s ease 3.1s forwards; }
@keyframes ls-fill { to { width: 100%; } }
@keyframes ls-knob-run { to { left: calc(100% - 48px); } }
@keyframes ls-fade { to { opacity: 0; } }
@keyframes ls-show { to { opacity: 1; } }

/* 4 / delivery */
.ls-map { position: relative; border-radius: 20px; background: #0B2C5C; overflow: hidden; aspect-ratio: 240 / 170; }
.ls-map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ls-map__roads { fill: none; stroke: rgba(255, 255, 255, .07); stroke-width: 7; }
.ls-map__route { fill: none; stroke: var(--accent-soft); stroke-width: 3.5; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; }
.ls-4.is-active .ls-map__route { animation: ls-draw 2.4s ease-in-out .3s forwards; }
.ls-map__pin { position: absolute; display: grid; place-items: center; border-radius: 50%; }
.ls-map__pin--a { left: 12.5%; top: 82.4%; width: 12px; height: 12px; margin: -6px; background: #fff; box-shadow: 0 0 0 4px rgba(255, 255, 255, .18); }
.ls-map__pin--b { left: 83.3%; top: 18.8%; width: 28px; height: 28px; margin: -14px; background: #fff; box-shadow: 0 0 0 6px rgba(191, 232, 188, .22); }
.ls-map__pin--b svg { width: 14px; height: 14px; fill: var(--navy); }
.ls-map__van { fill: var(--accent-soft); stroke: rgba(191, 232, 188, .3); stroke-width: 10; paint-order: stroke; offset-path: path("M30 140 C30 95 80 95 120 95 S190 70 200 32"); offset-rotate: 0deg; offset-distance: 0%; }
.ls-4.is-active .ls-map__van { animation: ls-drive 2.4s ease-in-out .3s forwards; }
@keyframes ls-drive { to { offset-distance: 100%; } }
.ls-eta { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; padding: 12px 14px; border-radius: 16px; background: rgba(255, 255, 255, .08); }
.ls-eta small { display: block; font-size: 10px; opacity: .6; }
.ls-eta b { font-family: var(--f-head); font-size: 20px; letter-spacing: -.03em; }
.ls-eta em { padding: 4px 9px; border-radius: 99px; background: rgba(191, 232, 188, .16); color: var(--accent-soft); font-style: normal; font-size: 10px; font-weight: 600; }
.ls-track { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 14px; }
.ls-track::before { content: ""; position: absolute; left: 6px; right: 6px; top: 5px; height: 2px; background: rgba(255, 255, 255, .14); }
.ls-track li { position: relative; padding-top: 16px; font-size: 9.5px; opacity: .45; }
.ls-track li::before { content: ""; position: absolute; left: 0; top: 0; width: 12px; height: 12px; border-radius: 50%; background: #123F78; border: 2px solid rgba(255, 255, 255, .25); box-sizing: border-box; }
.ls-4.is-active .ls-track li:nth-child(-n+3) { animation: ls-step .3s ease forwards; }
.ls-4.is-active .ls-track li:nth-child(-n+3)::before { animation: ls-step-dot .3s ease forwards; }
.ls-4.is-active .ls-track li:nth-child(1), .ls-4.is-active .ls-track li:nth-child(1)::before { animation-delay: .2s; }
.ls-4.is-active .ls-track li:nth-child(2), .ls-4.is-active .ls-track li:nth-child(2)::before { animation-delay: 1.1s; }
.ls-4.is-active .ls-track li:nth-child(3), .ls-4.is-active .ls-track li:nth-child(3)::before { animation-delay: 2.1s; }
@keyframes ls-step { to { opacity: 1; } }
@keyframes ls-step-dot { to { background: var(--accent-soft); border-color: var(--accent-soft); } }
.ls-note { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: auto; font-size: 10.5px; opacity: .7; }
.ls-note svg { width: 13px; height: 13px; fill: none; stroke: var(--accent-soft); stroke-width: 1.8; stroke-linejoin: round; }
.pep-tabs { left: 24%; bottom: 34px; height: 110px; transform: rotate(-8deg); } @media (max-width: 640px) { .pep-tabs { left: 14%; bottom: 20px; height: 70px; } }

/* ---------- Weight loss: wildflower field + cut-out (no drifting cards; those are HRT only) ---------- */
.scn--weight { --sky: #0183DC; --base: #E6F0DA; --base-2: #EEF5E8; }
.scn--weight .trt-scene__bg { object-position: 50% 100%; }
.scn--weight .trt-scene__man { height: 66%; transform: translateX(-52%); }
@media (max-width: 640px) { .scn--weight .trt-scene__man { height: 56%; transform: translateX(-52%); } }

/* Template shade over the top of each scene photo: it sat under the fade-in mask and left a dark band
   where the panel colour meets the photo. The panel colour now matches the photo directly. */
.scn .trt-scene::before { display: none; }

/* Weight loss: the field fades into a deep brand green (the dark version) */
.scn--weight { --base: #17321B; --base-2: #10261A; }

/* ---------- Sexual health: bright bedroom + couple cut-out (no drifting cards) ----------
   The room's top edge is not one colour (wall on the left, window sky on the right), so the
   band above the photo repeats the photo's own top row, left to right. Navy fade below. */
.scn--sexual .wm__panel {
  background:
    linear-gradient(180deg, rgba(10, 44, 94, 0) 0, rgba(10, 44, 94, 0) 80px, var(--base) 560px, var(--base) 70%, var(--base-2) 100%),
    linear-gradient(90deg, #9E9D94 0%, #B8B4A5 25%, #C0BBAF 50%, #A59E8E 75%, #A2CDF5 100%);
}
.scn--sexual .trt-scene__man { height: 76%; transform: translateX(-52%); }
.scn--sexual .wm__eyebrow { color: var(--navy); }
.scn--sexual .wm__intro .h-section { color: var(--navy); }
.scn--sexual .wm__intro .h-section em { color: var(--accent); }
@media (max-width: 640px) { .scn--sexual .trt-scene__man { height: 56%; } }
.scn--sexual .trt-scene__man { height: 64%; }
@media (max-width: 640px) { .scn--sexual .trt-scene__man { height: 50%; } }
.scn--dark .bmi-card__btn { background: #fff !important; color: var(--navy) !important; border-color: #fff !important; }
.scn--dark .bmi-card__btn:hover { background: #E6ECF4 !important; }
/* Sexual health: white eyebrow and title over the room, couple slightly larger */
.scn--sexual .wm__eyebrow { color: #fff; }
.scn--sexual .wm__intro .h-section { color: #fff; }
.scn--sexual .wm__intro .h-section em { color: var(--accent-soft); }
.scn--sexual .trt-scene__man { height: 70%; }
@media (max-width: 640px) { .scn--sexual .trt-scene__man { height: 55%; } }
/* Soft navy wash behind the title only (the window behind it is too bright for white type) */
.scn--sexual .wm__intro { isolation: isolate; }
.scn--sexual .wm__intro::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  top: -40px;
  width: min(980px, 100%);
  height: calc(100% + 110px);
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(5, 31, 69, .5) 0%, rgba(5, 31, 69, .28) 55%, rgba(5, 31, 69, 0) 100%);
  pointer-events: none;
}

/* ---------- Sexual health v2: dusk bedroom. Its top edge is dark enough for white type
   on its own, so the navy wash behind the title is switched off. ---------- */
.scn--sexual .wm__panel {
  background:
    linear-gradient(180deg, rgba(10, 44, 94, 0) 0, rgba(10, 44, 94, 0) 80px, var(--base) 560px, var(--base) 70%, var(--base-2) 100%),
    linear-gradient(90deg, #5C5653 0%, #857672 25%, #6D6B7A 50%, #434F64 75%, #499DE4 100%);
}
.scn--sexual .wm__intro::before { display: none; }

/* ---------- Hair loss: soft sky + cut-out. Light sky, so the title is navy and the
   photo fades into the sky's own pale blue (no drifting cards). ---------- */
.scn--hair { --base: #E8F1FA; --base-2: #F0F5FB; }
.scn--hair .wm__panel {
  background:
    linear-gradient(180deg, rgba(232, 241, 250, 0) 0, rgba(232, 241, 250, 0) 80px, var(--base) 560px, var(--base) 70%, var(--base-2) 100%),
    linear-gradient(90deg, #F0F5FF 0%, #E3EEFC 25%, #CAE2F7 50%, #CAE4F9 75%, #ADD5F5 100%);
}
.scn--hair .wm__eyebrow { color: var(--navy); }
.scn--hair .wm__intro .h-section { color: var(--navy); }
.scn--hair .wm__intro .h-section em { color: var(--accent); }
.scn--hair .trt-scene__note { color: rgba(8, 48, 104, .55); }
.scn--hair .trt-scene__man { height: 68%; transform: translateX(-46%); }
@media (max-width: 640px) { .scn--hair .trt-scene__man { height: 54%; } }

/* ---------- Real logo mark (cropped from the client's file) beside the horizontal wordmark ---------- */
img.logo__mark { width: auto; height: 32px; }
@media (max-width: 640px) { img.logo__mark { height: 27px; } }

/* ---------- Hormone therapy: glass building + cut-out; the drifting lab cards stay here.
   Top band repeats the photo's top row (sky, building, sky); navy fade below. ---------- */
.scn--hrt .wm__panel {
  background:
    linear-gradient(180deg, rgba(10, 44, 94, 0) 0, rgba(10, 44, 94, 0) 80px, var(--base) 560px, var(--base) 70%, var(--base-2) 100%),
    linear-gradient(90deg, #7EBBF8 0%, #8AC3FB 25%, #1D7AC1 50%, #196FB6 75%, #ACD3F1 100%);
}
.scn--hrt .trt-scene__man { height: 68%; transform: translateX(-50%); }
@media (max-width: 640px) { .scn--hrt .trt-scene__man { height: 54%; } }

/* ---------- Skin care: cut-out on a lit studio backdrop in deep brand green
   (no background photo supplied; drop one in as .trt-scene__bg to replace it). ---------- */
.scn--skin { --sky: #1D4C3A; }
.scn--skin .trt-scene {
  background:
    radial-gradient(42% 46% at 62% 30%, rgba(255, 232, 205, .30) 0%, rgba(255, 232, 205, 0) 100%),
    radial-gradient(40% 40% at 28% 62%, rgba(191, 232, 188, .14) 0%, rgba(191, 232, 188, 0) 100%),
    linear-gradient(180deg, #1D4C3A 0%, #164233 55%, #0F3A2B 100%);
}
.scn--skin .trt-scene__man { height: 74%; transform: translateX(-56%); }
@media (max-width: 640px) { .scn--skin .trt-scene__man { height: 56%; } }
.scn--skin .trt-scene__man { height: 66%; }

/* Skin care v2: sunlit leaves background. The studio backdrop is off; the band above the photo
   repeats its top row and the scene fades into a deep leaf green sampled from its lower edge. */
.scn--skin { --base: #15270D; --base-2: #0E1B08; }
.scn--skin .trt-scene { background: none; }
.scn--skin .wm__panel {
  background:
    linear-gradient(180deg, rgba(21, 39, 13, 0) 0, rgba(21, 39, 13, 0) 80px, var(--base) 560px, var(--base) 70%, var(--base-2) 100%),
    linear-gradient(90deg, #304102 0%, #A0A42D 25%, #686720 50%, #51661B 75%, #212902 100%);
}
.scn--skin .dk { background: rgba(14, 27, 8, .62); }
.scn--skin .wm__intro { isolation: isolate; }
.scn--skin .wm__intro::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  top: -40px;
  width: min(980px, 100%);
  height: calc(100% + 110px);
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(14, 27, 8, .55) 0%, rgba(14, 27, 8, .3) 55%, rgba(14, 27, 8, 0) 100%);
  pointer-events: none;
}

/* ---------- Top overlay: a soft wash from the top of the panel so the eyebrow and title
   read over busy photos (skin care leaves, hormone therapy glass). It sits above the photo
   and below the text; no shadow on the type itself. ---------- */
.scn--skin .wm__intro::before { display: none; }
.scn--skin .wm__panel::after,
.scn--hrt .wm__panel::after {
  content: "";
  display: block;
  position: absolute;
  z-index: 3;
  inset: 0 0 auto;
  height: 380px;
  border-radius: inherit;
  pointer-events: none;
}
.scn--skin .wm__panel::after { background: linear-gradient(180deg, rgba(14, 27, 8, .62) 0%, rgba(14, 27, 8, .34) 45%, rgba(14, 27, 8, 0) 100%); }
.scn--hrt .wm__panel::after  { background: linear-gradient(180deg, rgba(5, 31, 69, .58) 0%, rgba(5, 31, 69, .3) 45%, rgba(5, 31, 69, 0) 100%); }
.scn--skin .trt-scene__man { height: 74%; }
@media (max-width: 640px) {
  .scn--skin .trt-scene__man { height: 60%; }
  .scn--skin .wm__panel::after, .scn--hrt .wm__panel::after { height: 260px; }
}

/* ==========================================================================
   Category pages (weight-loss.html etc., built from content/categories.json)
   Hero: the section's background photo only (no cut-out), big centred title,
   short description. Then products, how it works, FAQs, closing CTA.
   ========================================================================== */
.catp-hero { padding: 12px 0 0; }
.catp-hero__panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  overflow: clip;
  min-height: clamp(520px, calc(100svh - var(--top-h) - 24px), 760px);
  padding: 96px 56px 80px;
  border-radius: 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  background-color: var(--navy);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
/* Legibility: a calm wash from the top and bottom, no shadow on the type */
.catp-hero__panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(4, 20, 46, .55) 0%, rgba(4, 20, 46, .28) 45%, rgba(4, 20, 46, .5) 100%);
}
.catp-crumbs { position: absolute; top: 28px; left: 32px; margin: 0; color: rgba(255, 255, 255, .78); }
.catp-crumbs a { color: inherit; }
.catp-hero .wm__eyebrow { color: #fff; }
.catp-hero__title { font-size: clamp(44px, 6.6vw, 100px); line-height: 1; letter-spacing: -.045em; color: #fff; }
.catp-hero__title em { color: var(--accent-soft); }
.catp-hero__lede { max-width: 620px; margin: 24px auto 0; font-size: 18px; color: rgba(255, 255, 255, .86); }
.catp-hero__btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 34px; }
.btn--ghost-light { color: #fff; border: 1px solid rgba(255, 255, 255, .55); background: rgba(255, 255, 255, .06); --btn-fill: #fff; }
.btn--ghost-light:hover { color: var(--navy); border-color: #fff; }

/* navy tone (peptides: no photo) keeps the section's warm top-right light */
.catp-hero--navy .catp-hero__panel { background: linear-gradient(180deg, #0A3672 0%, var(--navy) 45%, var(--navy-deep) 100%); }
.catp-hero--navy .catp-hero__panel::before {
  background:
    radial-gradient(38% 34% at 82% 0%, rgba(255, 242, 222, .34) 0%, rgba(255, 242, 222, 0) 100%),
    radial-gradient(60% 50% at 50% 40%, rgba(191, 232, 188, .12) 0%, rgba(191, 232, 188, 0) 100%);
}
/* light tone (hair: pale sky) uses navy type and a pale wash */
.catp-hero--light .catp-hero__panel { color: var(--navy); }
.catp-hero--light .catp-hero__panel::before { background: linear-gradient(180deg, rgba(240, 245, 251, .35) 0%, rgba(240, 245, 251, 0) 50%, rgba(240, 245, 251, .3) 100%); }
.catp-hero--light .catp-crumbs, .catp-hero--light .wm__eyebrow, .catp-hero--light .catp-hero__title { color: var(--navy); }
.catp-hero--light .catp-hero__title em { color: var(--accent); }
.catp-hero--light .catp-hero__lede { color: rgba(8, 48, 104, .78); }
.catp-hero--light .btn--ghost-light { color: var(--navy); border-color: rgba(8, 48, 104, .3); --btn-fill: var(--navy); }
.catp-hero--light .btn--ghost-light:hover { color: #fff; border-color: var(--navy); }
.catp-hero--light .btn--primary { background: var(--navy); color: #fff; border-color: var(--navy); }
.catp-hero--light .btn--primary::before { background: var(--navy-hover); }
.catp-hero--light .btn--primary:hover { color: #fff; }
/* the hero sits outside a .wm panel, so on dark tones the primary button is white */
.catp-hero:not(.catp-hero--light) .btn--primary { background: #fff; color: var(--navy); border-color: #fff; }
.catp-hero:not(.catp-hero--light) .btn--primary::before { background: #E6ECF4; }
.catp-hero:not(.catp-hero--light) .btn--primary:hover { color: var(--navy); }

/* Products */
.catp-products { padding: 110px 0 80px; }
.catp-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px); align-items: end; gap: 32px; }
.catp-head__intro { color: var(--ink-70); }
.catp-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 44px; }
.catp-grid .tx { background: #fff; border-color: rgba(21, 25, 28, .08); color: var(--ink); }
.catp-grid .tx::before { background: radial-gradient(circle, rgba(191, 232, 188, .45) 0%, rgba(191, 232, 188, 0) 68%); }
.catp-grid .tx:hover { border-color: rgba(8, 48, 104, .25); box-shadow: 0 24px 50px -32px rgba(8, 48, 104, .35); }
.catp-grid .tx__tag { background: var(--pale) !important; border-color: var(--pale) !important; }
.catp-grid .tx__name, .catp-grid .tx__link { color: var(--ink); }
.catp-grid .tx__meta { color: var(--ink-70); }
.catp-grid .tx__link { border-top-color: var(--line); }
.catp-grid .tx__media img { filter: drop-shadow(0 22px 20px rgba(21, 25, 28, .16)); }
.catp-disclaimer { max-width: 900px; margin: 28px auto 0; text-align: center; font-size: 14px; line-height: 1.6; color: var(--ink-70); }


/* Keep the weight program row aligned when MIC-B12 has a state restriction. */
body[data-page="weight-loss"] .catp-grid { grid-auto-rows: 1fr; }
body[data-page="weight-loss"] .catp-grid .tx__media { flex: 0 0 auto; }
body[data-page="weight-loss"] .catp-grid .tx__info { flex: 1; }
body[data-page="weight-loss"] .catp-grid .tx__name { min-height: 2lh; }
body[data-page="weight-loss"] .catp-grid .tx__restriction {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-70);
}
@media (min-width: 641px) and (max-width: 1100px) {
  body[data-page="weight-loss"] .catp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* How it works */
.catp-how { padding: 0 0 110px; }
.catp-how__panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 2fr);
  gap: 48px;
  align-items: start;
  padding: 56px;
  border-radius: 36px;
  color: #fff;
  background:
    radial-gradient(38% 50% at 88% 0%, rgba(255, 242, 222, .22) 0%, rgba(255, 242, 222, 0) 100%),
    linear-gradient(180deg, #0A3672 0%, var(--navy) 50%, var(--navy-deep) 100%);
}
.catp-how__head .wm__eyebrow { color: rgba(255, 255, 255, .6); margin-bottom: 16px; }
.catp-how__head .wm__eyebrow::before { display: none; }
.catp-how .h-card { color: #fff; }
.catp-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.catp-steps li { padding: 22px 20px; border-radius: 20px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .1); }
.catp-steps span { font-size: 13px; color: var(--accent-soft); }
.catp-steps b { display: block; margin-top: 28px; font-weight: 500; }
.catp-steps p { margin-top: 6px; font-size: 14.5px; line-height: 1.5; color: rgba(255, 255, 255, .7); }
.catp-how__btn { grid-column: 2; justify-self: start; background: #fff; color: var(--navy); border-color: #fff; }
.catp-how__btn::before { background: #E6ECF4; }
.catp-how__btn:hover { color: var(--navy); }

@media (max-width: 1100px) {
  .catp-how__panel { grid-template-columns: 1fr; }
  .catp-how__btn { grid-column: 1; }
  .catp-steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .catp-head { grid-template-columns: 1fr; }
  .catp-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .catp-hero__panel { padding: 88px 20px 48px; border-radius: 28px; min-height: 520px; }
  .catp-crumbs { left: 20px; top: 22px; }
  .catp-hero__lede { font-size: 16px; }
  .catp-hero__btns { width: 100%; flex-direction: column; }
  .catp-hero__btns .btn { width: 100%; }
  .catp-products { padding: 72px 0 56px; }
  .catp-grid { grid-template-columns: 1fr; }
  .catp-how__panel { padding: 32px 20px; border-radius: 28px; }
  .catp-steps { grid-template-columns: 1fr; }
}

/* Home sections: link through to the category page */
.catp-more { display: flex; justify-content: center; width: max-content; margin: 18px auto 0; color: #fff; }
.scn--light .catp-more, .scn--hair .catp-more { color: var(--navy); }
/* beat the generic .h-section:not(.h-section--light) colour rules */
.catp-hero .catp-hero__title { color: #fff; }
.catp-hero .catp-hero__title em { color: var(--accent-soft); }
.catp-hero--light .catp-hero__title { color: var(--navy); }
.catp-hero--light .catp-hero__title em { color: var(--accent); }
/* 4 or 7 products (e.g. men's row + women's row) sit four across; otherwise three */
@media (min-width: 1101px) {
  .catp-grid:has(> :nth-child(4):last-child),
  .catp-grid:has(> :nth-child(7):last-child),
  .catp-grid:has(> :nth-child(8):last-child) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---------- Category pages: hero is title + description only; how it works reuses the home card ---------- */
.catp-hero__title { margin-top: 0; }
.catp-hiw { padding: 0 0 110px; }
.catp-hiw .wm__panel {
  padding: 24px;
  background:
    radial-gradient(40% 50% at 88% 0%, rgba(255, 242, 222, .22) 0%, rgba(255, 242, 222, 0) 100%),
    linear-gradient(180deg, #0A3672 0%, var(--navy) 50%, var(--navy-deep) 100%);
}
.catp-hiw .wm__panel::before, .catp-hiw .wm__panel::after { display: none; }
.catp-hiw .hiw--trt { margin-top: 0; }
@media (max-width: 640px) { .catp-hiw .wm__panel { padding: 12px; } }

/* ==========================================================================
   Header menu button + right-side drawer
   ========================================================================== */
.header__actions { gap: 10px; }
.menu-btn {
  position: relative;
  display: grid;
  place-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid rgba(21, 25, 28, .12);
  box-shadow: 0 8px 20px -14px rgba(21, 25, 28, .35);
  transition: background-color .3s, border-color .3s;
}
.menu-btn span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--navy); transition: transform .4s var(--ease-out), width .4s var(--ease-out); }
.menu-btn span:last-child { width: 12px; justify-self: end; }
.menu-btn:hover { border-color: var(--navy); }
.menu-btn:hover span:last-child { width: 18px; }
.menu-btn.is-open span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-btn.is-open span:last-child { width: 18px; transform: translateY(-3.5px) rotate(-45deg); }
@media (max-width: 760px) { .header__visit { display: none; } }

.drawer-scrim { position: fixed; inset: 0; z-index: 90; background: rgba(5, 31, 69, .38); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); opacity: 0; transition: opacity .4s ease; }
.drawer-scrim.is-on { opacity: 1; }
.drawer {
  position: fixed;
  z-index: 91;
  top: 10px;
  right: 10px;
  bottom: 10px;
  width: min(420px, calc(100vw - 20px));
  display: flex;
  flex-direction: column;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 40px 80px -30px rgba(5, 31, 69, .55);
  transform: translateX(calc(100% + 24px));
  visibility: hidden;
  transition: transform .55s var(--ease-out), visibility 0s .55s;
  overflow: hidden;
}
.drawer.is-open { transform: none; visibility: visible; transition: transform .55s var(--ease-out), visibility 0s; }
html.drawer-open { overflow: hidden; }
.drawer__top { display: flex; align-items: center; justify-content: space-between; padding: 18px 18px 14px 22px; border-bottom: 1px solid var(--line); }
.drawer__close { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--pale); transition: background-color .3s; }
.drawer__close:hover { background: #E3EAF4; }
.drawer__close svg { width: 18px; height: 18px; fill: none; stroke: var(--navy); stroke-width: 2; stroke-linecap: round; }
.drawer__body { flex: 1; overflow-y: auto; padding: 18px 14px 8px; }
.drawer__label { margin: 6px 10px 10px; font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-55); }
.drawer__tx { display: grid; gap: 4px; margin-bottom: 18px; }
.drawer__tx a { display: flex; align-items: center; gap: 14px; padding: 8px 10px; border-radius: 16px; transition: background-color .3s; }
.drawer__tx a:hover { background: var(--pale); }
.drawer__thumb { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; overflow: hidden; }
.drawer__thumb--a { background: #E2F0DE; }
.drawer__thumb--b { background: #E3EAF4; }
.drawer__thumb img { width: 100%; height: 100%; object-fit: contain; transform: scale(1.25); }
.drawer__tx b { display: block; font-family: var(--f-head); font-weight: 500; font-size: 16.5px; letter-spacing: -.02em; color: var(--ink); }
.drawer__tx small { display: block; margin-top: 1px; font-size: 13px; color: var(--ink-55); }
.drawer__links { display: grid; margin: 0 10px; border-top: 1px solid var(--line); }
.drawer__links a { display: flex; justify-content: space-between; padding: 14px 2px; border-bottom: 1px solid var(--line); font-size: 15.5px; color: var(--ink); }
.drawer__links a::after { content: "→"; color: var(--ink-55); transition: transform .3s var(--ease-out); }
.drawer__links a:hover::after { transform: translateX(4px); color: var(--navy); }
.drawer__foot { padding: 16px 18px 20px; border-top: 1px solid var(--line); }
.drawer__foot p { margin-top: 10px; text-align: center; font-size: 12px; color: var(--ink-55); }
.drawer .drawer__foot .btn { height: 50px; }
.drawer.is-open .drawer__tx li { animation: ls-in .45s var(--ease-out) both; }
.drawer.is-open .drawer__tx li:nth-child(2) { animation-delay: .04s; }
.drawer.is-open .drawer__tx li:nth-child(3) { animation-delay: .08s; }
.drawer.is-open .drawer__tx li:nth-child(4) { animation-delay: .12s; }
.drawer.is-open .drawer__tx li:nth-child(5) { animation-delay: .16s; }
.drawer.is-open .drawer__tx li:nth-child(6) { animation-delay: .2s; }
@media (prefers-reduced-motion: reduce) { .drawer, .drawer-scrim { transition: none; } .drawer.is-open .drawer__tx li { animation: none; } }

/* Category hero: the category name as one big line */
.catp-hero .catp-hero__title { font-size: clamp(56px, 9vw, 140px); line-height: .95; letter-spacing: -.055em; }
.catp-hero__lede { font-size: 19px; }

/* Drawer: flush to the right edge, only the left corners rounded */
.drawer { top: 0; right: 0; bottom: 0; width: min(440px, 100vw); border-radius: 28px 0 0 28px; }
/* Mobile: full screen, navy */
@media (max-width: 640px) {
  .drawer { width: 100vw; border-radius: 0; background: var(--navy); color: #fff; }
  .drawer .logo__word b { color: #fff; }
  .drawer .logo__word i { color: var(--accent-soft); }
  .drawer__top, .drawer__foot, .drawer__links, .drawer__links a { border-color: rgba(255, 255, 255, .12); }
  .drawer__close { background: rgba(255, 255, 255, .1); }
  .drawer__close svg { stroke: #fff; }
  .drawer__label { color: rgba(255, 255, 255, .5); }
  .drawer__tx a:hover { background: rgba(255, 255, 255, .06); }
  .drawer__thumb--a { background: rgba(191, 232, 188, .16); }
  .drawer__thumb--b { background: rgba(255, 255, 255, .1); }
  .drawer__tx b, .drawer__links a { color: #fff; }
  .drawer__tx small, .drawer__foot p, .drawer__links a::after { color: rgba(255, 255, 255, .55); }
  .drawer__links a:hover::after { color: var(--accent-soft); }
  .drawer .drawer__foot .btn--primary { background: #fff; color: var(--navy); border-color: #fff; }
  .drawer .drawer__foot .btn--primary::before { background: #E6ECF4; }
  .drawer .drawer__foot .btn--primary:hover { color: var(--navy); }
}
/* No blur behind the drawer: a backdrop-filter on the scrim stopped the drawer above it from painting in Chrome */
.drawer-scrim { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(5, 31, 69, .5); }

/* ==========================================================================
   Treatment detail pages (nad-troche.html etc., built from content/products.json)
   ========================================================================== */
.pd { padding: 28px 0 100px; }
.pd__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 64px; align-items: start; }
.pd__gallery { position: sticky; top: calc(var(--top-h) + 16px); }
.pd__stage {
  position: relative;
  overflow: hidden;
  aspect-ratio: 6 / 6.6;
  border-radius: 28px;
  background:
    radial-gradient(60% 50% at 50% 45%, rgba(255, 255, 255, .9) 0%, rgba(255, 255, 255, 0) 100%),
    linear-gradient(180deg, #EEF2F7 0%, #E2E9F1 100%);
}
.pd__tag { position: absolute; z-index: 3; top: 22px; left: 22px; padding: 7px 13px; border-radius: 999px; background: #fff; font-size: 13px; font-weight: 500; color: var(--navy); box-shadow: 0 8px 20px -14px rgba(8, 48, 104, .4); }
.pd__view { position: absolute; inset: 0; margin: 0; display: grid; place-items: center; opacity: 0; transition: opacity .55s ease; background-size: cover; background-position: center; }
.pd__view.is-active { opacity: 1; }
.pd__view img { position: relative; width: 80%; max-height: 84%; object-fit: contain; filter: drop-shadow(0 34px 34px rgba(8, 28, 58, .2)); }
.pd__view.is-active img { animation: pd-in .8s var(--ease-out) both; }
@keyframes pd-in { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
.pd__halo { position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(191, 232, 188, .55) 0%, rgba(191, 232, 188, 0) 68%); animation: glow-breathe 6s ease-in-out infinite; }
.pd__view--scene img { width: 66%; filter: drop-shadow(0 40px 40px rgba(0, 0, 0, .35)); }
.pd__view--person { place-items: end center; }
.pd__view--person .pd__person { width: auto; height: 90%; max-width: none; max-height: none; filter: none; }
.pd__thumbs { display: flex; justify-content: center; gap: 10px; margin-top: 14px; }
.pd__thumb { width: 78px; height: 78px; padding: 3px; border-radius: 16px; border: 2px solid transparent; background: none; transition: border-color .3s; }
.pd__thumb.is-active { border-color: var(--navy); }
.pd__thumb span { position: relative; display: grid; place-items: center; width: 100%; height: 100%; overflow: hidden; border-radius: 12px; background: #E9EEF4 center / cover; }
.pd__thumb img { width: 80%; height: 80%; object-fit: contain; }
.pd__thumb .pd__halo { display: none; }
.pd__thumb .pd__person { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }

.pd__crumbs { margin: 6px 0 18px; color: var(--ink-55); }
.pd__crumbs a { color: inherit; }
.pd__name { font-family: var(--f-head); font-weight: 500; font-size: clamp(40px, 4.6vw, 64px); line-height: 1.02; letter-spacing: -.045em; color: var(--ink); }
.pd__badges { display: inline-flex; gap: 6px; margin-left: 14px; vertical-align: .55em; }
.pd__rx, .pd__pill { padding: 4px 9px; border-radius: 8px; font-family: var(--f-body); font-size: 12px; font-weight: 600; letter-spacing: .02em; }
.pd__rx { background: #E2F0DE; color: #2E7A31; }
.pd__pill { background: #E3EAF4; color: var(--navy); }
.pd__desc { margin-top: 18px; max-width: 580px; font-size: 17.5px; line-height: 1.6; color: var(--ink-70); }
.pd__facts { margin-top: 22px; border-top: 1px solid var(--line); }
.pd__facts li { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; color: var(--ink-70); }
.pd__facts svg { flex: none; width: 22px; height: 22px; fill: none; stroke: var(--navy); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.pd__plan { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 22px; padding: 20px 22px; border-radius: 20px; background: #F1F4F8; border: 1px solid rgba(8, 48, 104, .06); }
.pd__plan li { position: relative; padding-left: 14px; font-size: 14.5px; line-height: 1.75; color: var(--ink); }
.pd__plan li::before { content: ""; position: absolute; left: 0; top: .72em; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.pd__price { text-align: right; }
.pd__price small { display: block; font-size: 12.5px; color: var(--ink-55); }
.pd__price b { display: block; margin-top: 2px; font-family: var(--f-head); font-weight: 500; font-size: 28px; letter-spacing: -.03em; color: var(--navy); }
.pd__price span { display: block; font-size: 12.5px; color: var(--ink-55); }
.pd .pd__cta { width: 100%; height: 58px; margin-top: 18px; font-size: 17px; }
.pd__fda { margin-top: 12px; font-size: 12.5px; line-height: 1.55; color: var(--ink-55); }
.pd__checks { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 18px; margin-top: 20px; }
.pd__checks li { display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: var(--ink); }
.pd__checks svg, .pd-ui__chip svg { flex: none; width: 18px; height: 18px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pd__acc { margin-top: 24px; border-top: 1px solid var(--line); }
.pd__acc details { border-bottom: 1px solid var(--line); }
.pd__acc summary { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; list-style: none; cursor: pointer; font-family: var(--f-head); font-weight: 500; font-size: 17px; letter-spacing: -.02em; color: var(--ink); }
.pd__acc summary::-webkit-details-marker { display: none; }
.pd__acc summary i { position: relative; flex: none; width: 16px; height: 16px; }
.pd__acc summary i::before, .pd__acc summary i::after { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 2px; border-radius: 2px; background: var(--navy); transition: transform .35s var(--ease-out); }
.pd__acc summary i::after { transform: rotate(90deg); }
.pd__acc details[open] summary i::after { transform: rotate(0deg); }
.pd__acc-body { padding: 0 0 18px; }
.pd__acc-body p { margin-bottom: 14px; font-size: 15px; line-height: 1.6; color: var(--ink-70); }
.pd__acc-body b { display: block; margin-bottom: 3px; color: var(--ink); font-weight: 500; }

/* What is ...? : blurred category photo behind a glass card */
.pd-what { position: relative; isolation: isolate; overflow: hidden; overflow: clip; margin: 0 12px 110px; padding: 120px 0; border-radius: 36px; color: #fff; }
.pd-what__bg { position: absolute; inset: -60px; z-index: -2; width: calc(100% + 120px); height: calc(100% + 120px); object-fit: cover; filter: blur(36px) saturate(1.15); }
.pd-what__bg--navy { background: radial-gradient(40% 50% at 85% 0%, rgba(255, 242, 222, .3) 0%, rgba(255, 242, 222, 0) 100%), linear-gradient(180deg, #0A3672 0%, var(--navy) 50%, var(--navy-deep) 100%); filter: none; }
.pd-what::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(135deg, rgba(4, 20, 40, .5) 0%, rgba(4, 20, 40, .22) 60%, rgba(4, 20, 40, .55) 100%); }
.pd-what__card { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 64px; align-items: center; padding: 64px; border-radius: 28px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); box-shadow: 0 40px 80px -50px rgba(0, 0, 0, .6); }
.pd-what__title { font-family: var(--f-head); font-weight: 500; font-size: clamp(36px, 4vw, 56px); line-height: 1.04; letter-spacing: -.04em; }
.pd-what__sub { margin-top: 10px; font-size: 14px; color: rgba(255, 255, 255, .7); }
.pd-what__text { margin: 22px 0 30px; max-width: 520px; font-size: 17px; line-height: 1.65; color: rgba(255, 255, 255, .88); }
.pd-what .btn--primary { background: #fff; color: var(--navy); border-color: #fff; }
.pd-what .btn--primary::before { background: #E6ECF4; }
.pd-what .btn--primary:hover { color: var(--navy); }
.pd-what__note { margin-top: 16px; font-size: 12px; color: rgba(255, 255, 255, .55); }
.pd-what__label { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }
.pd-what__glance dl { margin: 14px 0 0; }
.pd-what__glance dl div { display: flex; justify-content: space-between; gap: 18px; padding: 15px 0; border-bottom: 1px solid rgba(255, 255, 255, .14); }
.pd-what__glance dt { color: rgba(255, 255, 255, .65); }
.pd-what__glance dd { margin: 0; font-weight: 500; text-align: right; }

/* Why Longevity Beyond: three cards with small app vignettes */
.pd-why { padding: 0 0 110px; }
.pd-why__title { text-align: center; }
.pd-why__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 44px; }
.pd-why__card { display: flex; flex-direction: column; min-height: 470px; padding: 28px; border-radius: 26px; background: #fff; border: 1px solid rgba(21, 25, 28, .06); }
.pd-why__card header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.pd-why__card h3 { font-family: var(--f-head); font-weight: 500; font-size: 21px; letter-spacing: -.025em; color: var(--ink); }
.pd-why__card header svg { flex: none; width: 22px; height: 22px; fill: none; stroke: rgba(21, 25, 28, .35); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.pd-why__card > p { font-size: 15px; line-height: 1.6; color: var(--ink-70); }
.pd-why__ui { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 28px 0; }
.pd-ui { display: flex; align-items: center; gap: 16px; padding: 16px 20px; border-radius: 18px; background: #fff; box-shadow: 0 26px 50px -28px rgba(8, 48, 104, .38), 0 0 0 1px rgba(8, 48, 104, .05); transition: transform .6s var(--ease-out); }
.pd-why__card:hover .pd-ui { transform: translateY(-4px); }
.pd-ui--plan img { width: 64px; height: 76px; object-fit: contain; }
.pd-ui--plan small { display: block; padding-bottom: 6px; margin-bottom: 6px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--ink-55); }
.pd-ui--plan b { display: block; font-family: var(--f-head); font-weight: 500; font-size: 19px; letter-spacing: -.02em; color: var(--navy); }
.pd-ui__chip { display: inline-flex; align-items: center; gap: 7px; margin-top: 14px; padding: 7px 13px; border-radius: 999px; background: #fff; box-shadow: 0 10px 24px -16px rgba(8, 48, 104, .4); font-size: 13.5px; color: var(--ink); }
.pd-ui--doc img { width: 68px; height: 68px; border-radius: 14px; object-fit: cover; object-position: 50% 20%; }
.pd-ui--doc span { display: grid; gap: 9px; width: 150px; }
.pd-ui--doc i { display: block; height: 10px; border-radius: 6px; background: #EEF1F4; }
.pd-ui--doc i:nth-child(1) { width: 70%; background: #E3EAF4; }
.pd-ui--doc i:nth-child(3) { width: 85%; }
.pd-ui--chat { flex-direction: column; align-items: stretch; gap: 0; width: min(100%, 300px); }
.pd-ui__who { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.pd-ui__who img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; }
.pd-ui__who b { font-weight: 500; font-size: 14.5px; color: var(--ink); }
.pd-ui__who i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.pd-ui--chat p { padding-top: 12px; font-size: 15px; color: var(--ink); }

.pd-related { padding-top: 0; }
.pd-related .catp-head { align-items: end; }
.pd-related .link-arrow { justify-self: end; }

.pd-disclaimer { padding: 0 0 110px; }
.pd-disclaimer__box { padding: 26px 30px; border-radius: 20px; background: #fff; border: 1px solid var(--line); }
.pd-disclaimer__label { margin-bottom: 10px; font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-55); }
.pd-disclaimer__box p:last-child { font-size: 13.5px; line-height: 1.65; color: var(--ink-70); }

@media (max-width: 1024px) {
  .pd__grid { grid-template-columns: 1fr; gap: 40px; }
  .pd__gallery { position: static; }
  .pd-what__card { grid-template-columns: 1fr; gap: 36px; padding: 40px; }
  .pd-why__grid { grid-template-columns: 1fr; }
  .pd-why__card { min-height: 0; }
}
@media (max-width: 640px) {
  .pd { padding: 16px 0 72px; }
  .pd__badges { display: flex; margin: 10px 0 0; }
  .pd__plan { flex-direction: column; align-items: flex-start; }
  .pd__price { text-align: left; }
  .pd__checks { grid-template-columns: 1fr; }
  .pd-what { margin: 0 8px 72px; padding: 56px 0; border-radius: 28px; }
  .pd-what__card { padding: 28px 22px; }
  .pd-why, .pd-disclaimer { padding-bottom: 72px; }
}
/* lifestyle view: centre the wide cut-out on its own width */
.pd__view--person .pd__person { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); height: 88%; }
.pd__view--person.is-active .pd__person { animation: pd-person .8s var(--ease-out) both; }
@keyframes pd-person { from { opacity: 0; transform: translate(-50%, 14px); } to { opacity: 1; transform: translateX(-50%); } }

/* ==========================================================================
   Detail gallery art: live layouts over a photo (icon grid, fact card, word stack).
   Thin white lines, sparkles at the crossings, one italic word. Animates in
   each time its view becomes active.
   ========================================================================== */
.pd-art { place-items: stretch; background-size: cover; background-position: center; color: #fff; }
.pd-art::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6, 12, 10, .5) 0%, rgba(6, 12, 10, .28) 42%, rgba(6, 12, 10, .55) 100%); }
.pd-art__inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; padding: 64px 36px 40px; text-align: center; }
.pd-art em { font-family: "Instrument Serif", Georgia, serif; font-style: italic; font-weight: 400; color: var(--accent-soft); }

.pd-art__title { margin-bottom: 30px; font-family: var(--f-head); font-weight: 500; font-size: clamp(28px, 3vw, 40px); line-height: 1.08; letter-spacing: -.035em; }
.pd-art__title em { font-size: 1.12em; }
.pd-art__grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; width: min(100%, 440px); }
.pd-art__item { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 22px 14px; }
.pd-art__item svg { width: 40px; height: 40px; fill: none; stroke: #fff; stroke-width: 1.15; stroke-linecap: round; stroke-linejoin: round; }
.pd-art__item span { max-width: 170px; font-size: 14.5px; line-height: 1.3; }
.pd-art__v { position: absolute; left: 50%; top: 4%; bottom: 4%; width: 1px; background: rgba(255, 255, 255, .55); transform-origin: 50% 0; }
.pd-art__h { position: absolute; left: 3%; right: 3%; height: 1px; background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .6) 20%, rgba(255, 255, 255, .6) 80%, rgba(255, 255, 255, 0)); }
.pd-art__h--1 { top: 33.33%; }
.pd-art__h--2 { top: 66.66%; }
.pd-art__star { position: absolute; left: 50%; width: 26px; height: 26px; margin: -13px 0 0 -13px; }
.pd-art__star--1 { top: 33.33%; }
.pd-art__star--2 { top: 66.66%; }
.pd-art__star svg { width: 100%; height: 100%; fill: #fff; filter: drop-shadow(0 0 8px rgba(255, 255, 255, .9)); }
.pd-art__pill { margin-top: 28px; padding: 9px 22px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .7); font-size: 13px; letter-spacing: .01em; }

.pd-art__inner--fact { justify-content: center; }
.pd-art__big { max-width: 460px; margin: 28px 0 0; font-family: var(--f-head); font-weight: 600; font-size: clamp(32px, 3.6vw, 48px); line-height: 1.1; letter-spacing: -.035em; }
.pd-art__big em { display: inline-block; font-size: 1.12em; }
.pd-art__sub { max-width: 330px; margin-top: 90px; font-size: 16px; font-weight: 500; line-height: 1.45; color: rgba(255, 255, 255, .92); }

.pd-art__inner--stack { justify-content: center; gap: 0; }
.pd-art__word { font-family: var(--f-head); font-weight: 600; font-size: 24px; letter-spacing: -.02em; }
.pd-art__inner--stack > i { display: block; width: 1px; height: 46px; margin: 10px 0; background: rgba(255, 255, 255, .8); transform-origin: 50% 0; }
.pd-art__sign { margin-top: 2px; font-family: var(--f-head); font-weight: 500; font-size: 22px; letter-spacing: -.02em; }
.pd-art__sign em { font-size: 1.15em; }
.pd-art__corner { position: absolute; bottom: 22px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .85); }
.pd-art__corner--l { left: 26px; }
.pd-art__corner--r { right: 26px; }

/* entrance, every time the view is shown */
.pd-art.is-active .pd-art__title, .pd-art.is-active .pd-art__pill, .pd-art.is-active .pd-art__big, .pd-art.is-active .pd-art__sub,
.pd-art.is-active .pd-art__sign { animation: ls-in .7s var(--ease-out) both; }
.pd-art.is-active .pd-art__big { animation-delay: .15s; }
.pd-art.is-active .pd-art__sub { animation-delay: .45s; }
.pd-art.is-active .pd-art__pill { animation-delay: .9s; }
.pd-art--fact.is-active .pd-art__pill { animation-delay: 0s; }
.pd-art.is-active .pd-art__item { animation: ls-in .55s var(--ease-out) both; animation-delay: calc(.35s + var(--i) * .08s); }
.pd-art.is-active .pd-art__v { animation: art-y .9s var(--ease-out) .15s both; }
.pd-art.is-active .pd-art__h { animation: art-x .9s var(--ease-out) .25s both; }
.pd-art.is-active .pd-art__star { animation: art-star .6s cubic-bezier(.3, 1.6, .5, 1) .9s both; }
.pd-art.is-active .pd-art__word { animation: ls-in .5s var(--ease-out) both; animation-delay: calc(var(--i) * .35s); }
.pd-art.is-active .pd-art__inner--stack > i { animation: art-y .45s var(--ease-out) both; animation-delay: calc(.2s + var(--i) * .35s); }
.pd-art.is-active .pd-art__sign { animation-delay: 1.5s; }
@keyframes art-y { from { transform: scaleY(0); } to { transform: none; } }
@keyframes art-x { from { transform: scaleX(0); } to { transform: none; } }
@keyframes art-star { from { opacity: 0; transform: scale(0) rotate(-45deg); } to { opacity: 1; transform: none; } }
.pd-art__star svg { animation: art-twinkle 3s ease-in-out 1.5s infinite; }
@keyframes art-twinkle { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }

.pd__thumb span:has(.pd__thumb-mark)::before { content: ""; position: absolute; inset: 0; background: rgba(6, 12, 10, .3); }
.pd__thumb-mark { position: relative; width: 20px; height: 20px; }
.pd__thumb-mark svg { width: 100%; height: 100%; fill: #fff; filter: drop-shadow(0 0 6px rgba(255, 255, 255, .8)); }

@media (max-width: 640px) {
  .pd-art__inner { padding: 48px 18px 28px; }
  .pd-art__title { margin-bottom: 14px; font-size: 24px; }
  .pd-art__item { padding: 12px 8px; gap: 8px; }
  .pd-art__item svg { width: 30px; height: 30px; }
  .pd-art__item span { font-size: 12px; }
  .pd-art__pill { margin-top: 16px; font-size: 11.5px; padding: 7px 16px; }
  .pd-art__big { font-size: 28px; }
  .pd-art__sub { margin-top: 48px; font-size: 14px; }
  .pd-art__word { font-size: 19px; }
  .pd-art__inner--stack > i { height: 30px; margin: 7px 0; }
  .pd-art__corner { bottom: 14px; font-size: 9.5px; }
  .pd-art__corner--l { left: 14px; } .pd-art__corner--r { right: 14px; }
}

/* ==========================================================================
   "What is ...?" right column: a line-drawn molecule that draws itself,
   slowly turning, with the key facts pinned around it
   ========================================================================== */
.pd-what__bg { filter: blur(30px) saturate(1.1); }
.pd-mol { position: relative; justify-self: center; width: min(100%, 460px); aspect-ratio: 1; }
.pd-mol__svg { position: absolute; inset: 6%; width: 88%; height: 88%; overflow: visible; }
.pd-mol__orbit { fill: none; stroke: rgba(255, 255, 255, .2); stroke-width: 1; stroke-dasharray: 2 7; transform-box: view-box; transform-origin: 200px 200px; animation: mol-spin 80s linear infinite reverse; }
.pd-mol__spin { transform-box: view-box; transform-origin: 200px 200px; animation: mol-spin 60s linear infinite; }
@keyframes mol-spin { to { transform: rotate(360deg); } }
.pd-mol__bond { fill: none; stroke: rgba(255, 255, 255, .85); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.pd-what__card.is-in .pd-mol__bond { animation: mol-draw 1.6s var(--ease-out) var(--d, 0s) forwards; }
@keyframes mol-draw { to { stroke-dashoffset: 0; } }
.pd-mol__node { fill: var(--accent-soft); opacity: 0; transform-box: fill-box; transform-origin: center; }
.pd-mol__node--soft { fill: rgba(255, 255, 255, .14); stroke: rgba(255, 255, 255, .7); stroke-width: 1.2; }
.pd-what__card.is-in .pd-mol__node { animation: mol-node .5s cubic-bezier(.3, 1.6, .5, 1) forwards, mol-pulse 3.2s ease-in-out infinite; animation-delay: calc(.6s + var(--i) * .1s), calc(2.2s + var(--i) * .22s); }
@keyframes mol-node { from { opacity: 0; transform: scale(0); } to { opacity: 1; transform: scale(1); } }
@keyframes mol-pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .55; transform: scale(1.35); } }
.pd-mol__tag {
  position: absolute;
  z-index: 1;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .22);
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.3;
  white-space: nowrap;
  opacity: 0;
}
.pd-mol__tag small { display: block; margin-bottom: 2px; font-size: 10.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }
.pd-mol__tag--0 { top: 8%; left: -4%; }
.pd-mol__tag--1 { top: 22%; right: -6%; }
.pd-mol__tag--2 { bottom: 24%; left: -8%; }
.pd-mol__tag--3 { bottom: 6%; right: 2%; }
.pd-what__card.is-in .pd-mol__tag { animation: ls-in .7s var(--ease-out) forwards, mol-float 6s ease-in-out infinite; }
.pd-what__card.is-in .pd-mol__tag--0 { animation-delay: 1.2s, 2s; }
.pd-what__card.is-in .pd-mol__tag--1 { animation-delay: 1.45s, 3s; }
.pd-what__card.is-in .pd-mol__tag--2 { animation-delay: 1.7s, 2.5s; }
.pd-what__card.is-in .pd-mol__tag--3 { animation-delay: 1.95s, 3.5s; }
@keyframes mol-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@media (max-width: 1024px) { .pd-mol { width: min(100%, 400px); } }
@media (max-width: 640px) {
  .pd-mol__tag { padding: 8px 10px; font-size: 12.5px; }
  .pd-mol__tag--0 { left: 0; } .pd-mol__tag--1 { right: 0; } .pd-mol__tag--2 { left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .pd-mol__spin, .pd-mol__orbit { animation: none; }
  .pd-mol__bond { stroke-dashoffset: 0; }
  .pd-mol__node, .pd-mol__tag { opacity: 1; }
}

/* ---------- Hero category cards: product set onto a styled background ----------
   The background photos carry a white rounded frame, so they are cropped 6% on every side.
   Each product is placed with inline vars: --x centre, --b bottom, --h image height (all % of the card). */
.cat .cat__media { overflow: hidden; }
.cat .cat__media img.cat__bg { position: absolute; inset: -6%; width: 112%; height: 112%; max-width: none; object-fit: cover; object-position: center; transform: none; transition: transform 1.4s var(--ease-out); }
.cat:hover .cat__media img.cat__bg { transform: scale(1.04); }
.cat .cat__media img.cat__item {
  position: absolute;
  left: var(--x, 50%);
  bottom: var(--b, 26%);
  width: auto;
  height: var(--h, 48%);
  max-width: none;
  object-fit: contain;
  transform: translateX(-50%);
  filter: drop-shadow(0 14px 14px rgba(20, 24, 10, .28));
  transition: transform 1.2s var(--ease-out);
}
.cat:hover .cat__media img.cat__item { transform: translateX(-50%) translateY(-8px); }
/* soft contact shadow where the product meets the stone or log */
.cat__shadow {
  position: absolute;
  left: var(--x, 50%);
  bottom: var(--b, 26%);
  width: var(--w, 26%);
  height: 5%;
  transform: translate(-50%, 45%);
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(16, 20, 8, .5) 0%, rgba(16, 20, 8, .22) 55%, rgba(16, 20, 8, 0) 100%);
  filter: blur(3px);
  transition: transform 1.2s var(--ease-out), opacity 1.2s var(--ease-out);
}
.cat:hover .cat__shadow { transform: translate(-50%, 45%) scale(.9); opacity: .8; }
/* centre with the translate property: a template rule scales every .cat__media img via transform */
.cat .cat__media img.cat__item, .cat:hover .cat__media img.cat__item { transform: none; translate: -50% 0; transition: translate 1.2s var(--ease-out); }
.cat:hover .cat__media img.cat__item { translate: -50% -8px; }

/* Hero category cards: one finished photo per card (product already in the scene) */
.cat .cat__media img.cat__photo { object-position: center; }

/* =====================================================================
   Mobile fixes (phone widths)
   ===================================================================== */
/* Buttons: label always centred (the template pushed it left for a circle icon we removed) */
.btn, .btn--primary { justify-content: center; text-align: center; }
html, body { overflow-x: clip; }

/* Body map: the tooltip becomes a white card under the figure on phones; keep its text dark */
.xcard--night .body-map__label { color: #4A5560; }

@media (max-width: 767px) {
  .btn--primary { padding-left: 24px; padding-right: 24px; }

  /* More ways we can help: product sits low and centred, clear of the title */
  .mini { height: 184px; }
  .mini__vial[src*="products/lb/"] { height: 150px; left: 50%; right: auto; bottom: -34px; transform: translateX(-50%) rotate(3deg); }
  .mini:hover .mini__vial[src*="products/lb/"] { transform: translateX(-50%) rotate(0deg) translateY(-6px); }

  /* Footer: CTA and long email stay inside the screen */
  .footer__cta { width: 100%; }
  .footer__col a { max-width: 100%; overflow-wrap: anywhere; }
}

@media (max-width: 640px) {
  /* Peptides: pen upright and centred in the text orbit, tablets resting at its foot */
  .wm--pep .pep-pen[src*="products/lb/"] { height: 300px; animation-name: pep-float-m; }
  .pep-tabs { left: 50%; bottom: 4px; margin-left: 30px; height: 64px; }

  /* People cut-outs are wide frames: size them so the whole figure fits the phone panel */
  .scn--weight .trt-scene__man { height: 46%; transform: translateX(-52%); }
  .scn--sexual .trt-scene__man { height: 44%; transform: translateX(-49%); }
  .scn--hrt .trt-scene__man { height: 48%; transform: translateX(-45%); }
  .scn--hair .trt-scene__man { height: 50%; }
}
@keyframes pep-float-m {
  0%, 100% { transform: translate(-50%, calc(-50% - 6px)) rotateZ(12deg); }
  50%      { transform: translate(-50%, calc(-50% + 6px)) rotateZ(14deg); }
}
@media (max-width: 640px) {
  /* Smaller figures leave less empty sky above them */
  .scn--weight .trt-scene, .scn--sexual .trt-scene { height: 600px; }
}
@media (max-width: 640px) {
  /* Category pages: less dead space under the How it works card */
  .catp-hiw { padding-bottom: 56px; }

  /* Treatment pages, "What is": same side margins as every other panel, and the four
     at-a-glance tags in a tidy 2 x 2 grid under the molecule instead of overlapping it */
  .pd-what { margin: 0 16px 72px; }
  .pd-mol { width: 100%; aspect-ratio: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .pd-mol__svg { position: relative; inset: auto; grid-column: 1 / -1; justify-self: center; width: 78%; height: auto; aspect-ratio: 1; }
  .pd-mol__tag { position: static; white-space: normal; }
}
@media (max-width: 640px) { .pd-related .link-arrow { justify-self: start; } }
.pd__crumbs { flex-wrap: wrap; row-gap: 2px; } .pd__crumbs > * { flex: none; } .pd__crumbs > span:last-child { flex: 0 1 auto; }

/* ---------- Mobile scenes: big, centred people sitting right under the heading (desktop vibe) ----------
   Heading block ends ~154px into the scene; the figure fills from just below it to the bottom. */
@media (max-width: 640px) {
  .scn .trt-scene { height: 600px; }
  .scn .trt-scene__man { bottom: 60px; height: 348px; }
  .scn--weight .trt-scene__man { transform: translateX(-52%); }
  .scn--sexual .trt-scene__man { transform: translateX(-50%); }
  .scn--hair .trt-scene__man   { transform: translateX(-46%); }
  .scn--hrt .trt-scene__man    { transform: translateX(-49%); }
  .scn--skin .trt-scene__man   { height: 360px; transform: translateX(-52%); }

  /* Peptides: a bigger pen filling the orbit, tight under the heading */
  .wm--pep .pep-stage { height: 400px; margin-top: 0; }
  .wm--pep .pep-pen[src*="products/lb/"] { height: 400px; }
  .pep-tabs { height: 72px; margin-left: 38px; bottom: 10px; }
}

/* ---------- Hormone therapy, mobile: Women's HRT / Men's TRT switcher sits under the cards,
   and the drifting lab cards ride a little lower ---------- */
@media (max-width: 640px) {
  #hrt .tabs { display: flex; flex-direction: column; }
  #hrt .wm__lineup-head { display: contents; }
  #hrt .wm__label { order: 0; margin-bottom: 18px; }
  #hrt .tabs__panel { order: 1; }
  #hrt .tabs__bar { order: 2; align-self: center; margin-top: 22px; }
  .scn--hrt .deck { top: 39%; }
}
