/* wbm-h: heading selectors made level-neutral by scripts/headingfix.py */
/* The Midlife Pause: SHORT funnel (dist/short/). Loaded after mlp.css (and funnel.css on post-purchase pages).
   Reuses mlp.css tokens, buttons, buy-box cards, modal and footer. Only short-funnel components live here.
   Layout targets: lander h1:where(:not([data-wbm-h])) + CTA above the 1280x720 fold; upsell accept above the fold; popups fit 375x667. */

/* ======================= LANDER HERO ======================= */
.short-hero, modal and footer. Only short-funnel components live here.
   Layout targets: lander :is(h1,h2,h3,h4,h5,h6):where([data-wbm-h="1"]) + CTA above the 1280x720 fold; upsell accept above the fold; popups fit 375x667. */

/* ======================= LANDER HERO ======================= */
.short-hero { padding-bottom: 40px; }
.sh-grid { display: grid; gap: 22px; grid-template-columns: 1fr; align-items: center; }
.sh-grid > * { min-width: 0; }
.short-hero h1:where(:not([data-wbm-h])),.short-hero :is(h1,h2,h3,h4,h5,h6):where([data-wbm-h="1"]) { font-size: clamp(1.9rem, 3.9vw, 3rem); margin-bottom: .35em; }
.sh-sub { font-size: 1.05rem; line-height: 1.6; color: var(--ink-2); max-width: 560px; margin-bottom: 18px; }
.short-hero .reassure { margin: 12px 0 14px; }
.sh-media { position: relative; }
.sh-stage { position: relative; display: flex; align-items: flex-end; justify-content: center; }
.sh-stage img { mix-blend-mode: darken; }
.sh-three { width: 78%; max-width: 460px; }
.sh-free { position: relative; width: 34%; max-width: 200px; margin-left: -8%; transform: rotate(6deg); }
.sh-free b, .fp b {
  position: absolute; top: 6%; right: -4%; background: var(--gold); color: var(--navy);
  font: 800 .82rem/1 var(--font-head); letter-spacing: .06em; padding: 8px 10px; border-radius: 999px;
  box-shadow: 0 4px 12px rgba(13,40,69,.2); white-space: nowrap;
}
.sh-badge { display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 16px; box-shadow: var(--shadow); padding: 10px 14px; max-width: 360px; margin: 6px auto 0; font-size: .82rem; line-height: 1.35; color: var(--muted); }
.sh-badge img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; flex: none; }
.sh-badge strong { display: block; color: var(--navy); font-family: var(--font-head); font-size: .95rem; }

/* gift teaser under the hero CTA */
.gtease { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink-2); background: #fff; border: 2px dashed var(--pink-200); border-radius: 16px; padding: 10px 14px; font-size: .88rem; line-height: 1.4; max-width: 560px; }
.gtease:hover { border-color: var(--pink); color: var(--ink); }
.gtease b { color: var(--pink); }
.gtease u { color: var(--teal); font-weight: 600; text-underline-offset: 3px; }
.gtease .thumbs { display: flex; flex: none; }
.gtease .thumbs img { width: 44px; height: 55px; object-fit: cover; border-radius: 6px; box-shadow: 0 2px 8px rgba(13,40,69,.2); background: var(--product-bg); }
.gtease .thumbs img + img { margin-left: -14px; transform: rotate(6deg); }

@media (max-width: 899px) {
  .sh-media { order: -1; }
  .sh-three { width: 66%; }
  .sh-free { width: 28%; }
  .sh-badge { display: none; }
  .short-hero { padding-top: 12px; }
}
@media (min-width: 900px) {
  .sh-grid { grid-template-columns: 1.1fr .9fr; gap: 40px; }
  .short-hero { padding-top: 22px; padding-bottom: 56px; }
}

/* ======================= GIFTS (gifts-first) ======================= */
.gifts { background: linear-gradient(180deg, var(--pink-50), var(--page)); }
.gift { position: relative; display: grid; grid-template-columns: 1fr; gap: 22px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 24px 22px; margin: 26px auto 0; max-width: 980px; box-shadow: var(--shadow); }
.gift .gart img { width: 100%; max-width: 300px; margin: 0 auto; border-radius: 16px; aspect-ratio: 4 / 5; object-fit: cover; background: var(--product-bg); box-shadow: var(--shadow-lg); }
.gift .free { display: inline-block; font: 700 .78rem/1 var(--font-head); letter-spacing: .1em; text-transform: uppercase; color: #fff; background: var(--pink); padding: 8px 12px; border-radius: 999px; }
.gift h3:where(:not([data-wbm-h])),.gift :is(h1,h2,h3,h4,h5,h6):where([data-wbm-h="3"]) { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin: 12px 0 8px; }
.gift .sub { color: var(--ink-2); font-size: 1.02rem; }
.gift .checklist li { font-size: .98rem; }
.giftcta { text-align: center; margin: 30px auto 0; }
.giftcta p { font-size: 1.1rem; color: var(--navy); }
@media (min-width: 860px) {
  .gift { grid-template-columns: 300px 1fr; gap: 44px; padding: 34px 40px; }
  .gift.alt { grid-template-columns: 1fr 300px; }
  .gift.alt .gart { order: 2; }
}

/* ======================= PROBLEM / MEET / MECHANISM ======================= */
.sp-pillars { display: grid; gap: 14px; grid-template-columns: 1fr; max-width: 980px; margin: 8px auto 26px; }
.sp-pillar { background: #fff; border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.sp-pillar h3:where(:not([data-wbm-h])),.sp-pillar :is(h1,h2,h3,h4,h5,h6):where([data-wbm-h="3"]) { margin: 12px 0 6px; font-size: 1.2rem; }
.sp-pillar p { margin: 0; font-size: .95rem; line-height: 1.6; }
.sp-turn { font-family: var(--font-head); font-weight: 600; color: var(--navy); font-size: 1.18rem !important; line-height: 1.5; border-left: 4px solid var(--pink); padding-left: 18px; }
@media (min-width: 760px) { .sp-pillars { grid-template-columns: repeat(3, 1fr); } }

.sp-meet { display: grid; gap: 28px; grid-template-columns: 1fr; align-items: center; max-width: 1000px; margin: 0 auto; }
.sp-meet img { width: 100%; max-width: 360px; margin: 0 auto; border-radius: 24px; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; box-shadow: var(--shadow-lg); }
@media (min-width: 860px) { .sp-meet { grid-template-columns: 340px 1fr; gap: 48px; } }

.sp-steps { list-style: none; padding: 0; margin: 30px auto 0; max-width: var(--wide); display: grid; gap: 14px; grid-template-columns: 1fr; counter-reset: none; }
.sp-steps li { background: #fff; border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); border-top: 4px solid var(--teal); }
.sp-steps .n { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--navy); color: #fff; font: 700 1rem/1 var(--font-head); }
.sp-steps h3:where(:not([data-wbm-h])),.sp-steps :is(h1,h2,h3,h4,h5,h6):where([data-wbm-h="3"]) { font-size: 1.12rem; margin: 12px 0 6px; }
.sp-steps p { margin: 0; font-size: .93rem; line-height: 1.6; }
@media (min-width: 760px) { .sp-steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .sp-steps { grid-template-columns: repeat(4, 1fr); } }

.sp-research { margin-top: 48px; }
.sp-research h3:where(:not([data-wbm-h])),.sp-research :is(h1,h2,h3,h4,h5,h6):where([data-wbm-h="3"]) { text-align: center; }
.sp-rgrid { display: grid; gap: 14px; grid-template-columns: 1fr; max-width: 980px; margin: 18px auto 0; }
.sp-r { background: #fff; border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow); border-left: 5px solid var(--teal); }
.sp-r.maybe { border-left-color: var(--gold); }
.sp-r h4:where(:not([data-wbm-h])),.sp-r :is(h1,h2,h3,h4,h5,h6):where([data-wbm-h="4"]) { margin: 0 0 6px; }
.sp-r p { margin: 0; font-size: .95rem; line-height: 1.6; }
@media (min-width: 760px) { .sp-rgrid { grid-template-columns: repeat(2, 1fr); } }

/* ======================= FORMULA ======================= */
.sp-formula { display: grid; gap: 34px; grid-template-columns: 1fr; align-items: start; }
.sp-formula > * { min-width: 0; }
.sp-ings { list-style: none; padding: 0; margin: 18px 0 14px; display: grid; gap: 10px; }
.sp-ings li { background: #fff; border-radius: 14px; padding: 14px 16px; font-size: .93rem; line-height: 1.5; color: var(--ink-2); box-shadow: var(--shadow); }
.sp-ings b { display: block; font-family: var(--font-head); color: var(--navy); font-size: 1rem; }
.sp-sticks { background: #fff; border-radius: 24px; padding: 22px; box-shadow: var(--shadow); }
.sp-sticks img { border-radius: 16px; background: var(--product-bg); margin-bottom: 14px; }
.sp-sticks h3:where(:not([data-wbm-h])),.sp-sticks :is(h1,h2,h3,h4,h5,h6):where([data-wbm-h="3"]) { margin-bottom: .3em; }
.sp-sticks p { font-size: .96rem; }
@media (min-width: 860px) { .sp-formula { grid-template-columns: 1.1fr .9fr; gap: 48px; } }

/* ======================= PROOF ======================= */
.sp-pod { display: grid; grid-template-columns: 72px 1fr; gap: 16px; align-items: start; max-width: 820px; margin: 30px auto 0; background: #fff; border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.sp-pod img { width: 72px; height: 72px; border-radius: 12px; }
.sp-pod h3:where(:not([data-wbm-h])),.sp-pod :is(h1,h2,h3,h4,h5,h6):where([data-wbm-h="3"]) { font-size: 1.1rem; margin: 0 0 8px; }
.sp-pod ul { list-style: none; padding: 0; margin: 0 0 8px; font-size: .9rem; line-height: 1.5; }
.sp-pod li { padding: 5px 0; border-bottom: 1px solid var(--line); }
.sp-pod li span { color: var(--muted); font-size: .8rem; margin-left: 4px; }
.sp-pod p { margin: 0; }

/* ======================= OFFER ======================= */
.stack { max-width: 760px; margin: 0 auto 28px; background: #fff; border-radius: 22px; box-shadow: var(--shadow); padding: 20px 22px; border: 2px solid var(--pink-200); }
.stack h3:where(:not([data-wbm-h])),.stack :is(h1,h2,h3,h4,h5,h6):where([data-wbm-h="3"]) { font-size: 1.15rem; margin: 0 0 8px; }
.stack ul { list-style: none; padding: 0; margin: 0; }
.stack li { display: flex; justify-content: space-between; gap: 14px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); font-weight: 600; color: var(--navy); font-size: .95rem; line-height: 1.35; }
.stack li:last-child { border-bottom: 0; }
.stack li small { display: block; font-weight: 400; color: var(--muted); font-size: .82rem; }
.stack li b { flex: none; font: 700 .8rem/1 var(--font-head); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.stack li b.fr { background: var(--gold); color: var(--navy); padding: 7px 10px; border-radius: 999px; }

.sbx .pkg .gifts-line { align-self: flex-start; font: 700 .78rem/1 var(--font-head); color: var(--pink); background: var(--pink-50); border: 1px dashed var(--pink-200); padding: 7px 10px; border-radius: 999px; }
.freetag { background: var(--gold); color: var(--navy); font-weight: 800; padding: 1px 6px; border-radius: 6px; font-size: .78rem; }
.free-card .ribbon.best { background: var(--navy); }
.pkg .art.free-art { display: flex; align-items: flex-end; justify-content: center; gap: 0; padding: 8px 8px 0; }
.free-art img { mix-blend-mode: darken; }
.free-art .paid { width: 68%; max-width: 230px; }
.free-art .plus { font: 800 1.6rem/1 var(--font-head); color: var(--pink); align-self: center; margin: 0 2px; }
.fp { position: relative; display: block; width: 30%; max-width: 100px; border: 2px dashed var(--gold); border-radius: 14px; background: #FFF8E6; padding: 4px; }
.fp b { top: -12px; right: -10px; font-size: .72rem; padding: 6px 8px; }
.fp img { mix-blend-mode: multiply; }

.sum-gifts { display: flex; align-items: center; gap: 10px; margin: 14px 0 0; font-size: .88rem; color: var(--ink-2); background: var(--pink-50); border-radius: 12px; padding: 8px 12px; }
.sum-gifts img { width: 32px; height: 40px; object-fit: cover; border-radius: 4px; background: var(--product-bg); }
.sum-gifts img + img { margin-left: -8px; }
.sum-gifts strong { color: var(--pink); }

@media (max-width: 859px) {
  .sbx .pkg[data-package="s3"] { order: -3; }
  .sbx .pkg[data-package="s2"] { order: -2; }
  .sbx .pkg[data-package="s1"] { order: -1; }
  .pkg .art.free-art { flex-wrap: nowrap; }
}
@media (min-width: 860px) {
  .sbx .pkg.best-card { transform: translateY(-12px); border-color: var(--pink); }
}

/* ======================= FIT / FINAL ======================= */
.sp-fit { display: grid; gap: 16px; grid-template-columns: 1fr; max-width: 980px; margin: 26px auto 0; }
.sp-fit .panel { background: #fff; border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.sp-fit .panel.yes { border-top: 5px solid var(--teal); }
.sp-fit .panel.ask { border-top: 5px solid var(--gold); }
.sp-fit h3:where(:not([data-wbm-h])),.sp-fit :is(h1,h2,h3,h4,h5,h6):where([data-wbm-h="3"]) { font-size: 1.2rem; }
.sp-fit li { font-size: .96rem; }
@media (min-width: 760px) { .sp-fit { grid-template-columns: 1fr 1fr; } }
.sp-final { padding-top: 40px; padding-bottom: 44px; }
.sp-final-art { display: flex; align-items: flex-end; justify-content: center; max-width: 420px; margin: 0 auto 12px; }
.sp-final-art > img { width: 72%; mix-blend-mode: darken; }

/* ======================= POST-PURCHASE (short/upsell-1..3, thank-you) ======================= */
.stage.su1 img, .stage.su2 img, .stage.su3 img { mix-blend-mode: darken; }
.stage.su1 { display: flex; align-items: flex-end; justify-content: center; }
.stage.su1 .p3 { width: 72%; max-width: 330px; position: relative; z-index: 1; }
.stage.su1 .fp { position: relative; width: 28%; max-width: 128px; margin-left: -6%; z-index: 2; border: 2px dashed var(--gold); border-radius: 14px; background: #FFF8E6; padding: 4px; }
.stage.su1 .fp img { mix-blend-mode: multiply; }
.stage.su1 .fp b { top: -12px; right: -10px; }
.stage.su2 { display: flex; align-items: flex-end; justify-content: center; }
.stage.su2 .c1, .stage.su2 .c2 { width: 56%; max-width: 280px; }
.stage.su2 .c2 { margin-left: -24%; }
.stage.su3 { display: flex; align-items: flex-end; justify-content: center; flex-wrap: nowrap; }
.stage.su3 .b { width: 34%; max-width: 170px; }
.stage.su3 .b + .b { margin-left: -9%; }
.prebio-tile { width: 30%; max-width: 150px; aspect-ratio: 3 / 4; border-radius: 14px; background: linear-gradient(160deg, var(--navy), #1B3F66); color: #fff; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 10px; margin-left: -6%; box-shadow: var(--shadow-lg); font: 700 .9rem/1.15 var(--font-head); position: relative; z-index: 2; }
.prebio-tile small { display: block; font: 600 .62rem/1.2 var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: var(--pink-200); margin-top: 6px; }
.stage .count { z-index: 3; }

/* U2 CollagenPro */
.two-jobs { display: grid; gap: 14px; grid-template-columns: 1fr; margin: 18px 0 8px; }
.two-jobs .job { background: #fff; border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); border-top: 4px solid var(--teal); }
.two-jobs .job.col { border-top-color: var(--pink); }
.two-jobs .job img { width: 110px; mix-blend-mode: darken; margin-bottom: 6px; }
.two-jobs h3:where(:not([data-wbm-h])),.two-jobs :is(h1,h2,h3,h4,h5,h6):where([data-wbm-h="3"]) { font-size: 1.1rem; margin: 0 0 6px; }
.two-jobs p { margin: 0; font-size: .95rem; line-height: 1.6; }
@media (min-width: 700px) { .two-jobs { grid-template-columns: 1fr 1fr; } }
.facts-panel { background: #fff; border: 2px solid var(--navy); border-radius: 14px; padding: 16px 18px; font-size: .9rem; max-width: 460px; }
.facts-panel h3:where(:not([data-wbm-h])),.facts-panel :is(h1,h2,h3,h4,h5,h6):where([data-wbm-h="3"]) { font: 800 1.35rem/1 var(--font-head); margin: 0 0 4px; }
.facts-panel .serv { border-bottom: 8px solid var(--navy); padding-bottom: 6px; margin-bottom: 4px; color: var(--ink-2); }
.facts-panel ul { list-style: none; padding: 0; margin: 0; }
.facts-panel li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.facts-panel li span:last-child { font-weight: 700; color: var(--navy); white-space: nowrap; }
.facts-panel .blend { font-size: .82rem; color: var(--ink-2); padding: 8px 0 6px; border-bottom: 4px solid var(--navy); }
.facts-panel .allergen { margin: 8px 0 0; font-weight: 700; color: var(--navy); font-size: .85rem; }
.who-list { columns: 1; }
@media (min-width: 760px) { .who-list { columns: 2; column-gap: 28px; } .who-list li { break-inside: avoid; } }

/* thank-you gift cards */
.ty-gifts { display: grid; gap: 16px; grid-template-columns: 1fr; max-width: 900px; margin: 24px auto 0; }
.ty-gift { display: grid; grid-template-columns: 110px 1fr; gap: 16px; align-items: center; background: #fff; border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.ty-gift img { width: 110px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 12px; background: var(--product-bg); }
.ty-gift .free { font: 700 .72rem/1 var(--font-head); letter-spacing: .1em; text-transform: uppercase; color: var(--pink); }
.ty-gift h3:where(:not([data-wbm-h])),.ty-gift :is(h1,h2,h3,h4,h5,h6):where([data-wbm-h="3"]) { font-size: 1.1rem; margin: 6px 0; }
.ty-gift p { font-size: .9rem; margin: 0 0 10px; }
.ty-gift .btn { min-height: 44px; padding: 10px 16px; font-size: .9rem; }
@media (min-width: 760px) { .ty-gifts { grid-template-columns: 1fr 1fr; } }

/* override funnel.css absolute stage images for the short-funnel flex stages */
.stage.su1, .stage.su2, .stage.su3 { padding: 34px 12px 10px; }
.stage.su1 img, .stage.su2 img, .stage.su3 img { position: relative; object-fit: contain; height: auto; max-height: 100%; }
.stage.su1 .fp img { width: 100%; }
@media (max-width: 859px) {
  .hero-card .stage.su1, .hero-card .stage.su2, .hero-card .stage.su3 { height: 200px; padding-top: 30px; }
  .stage.su1 .p3 { width: auto; max-height: 160px; }
  .stage.su1 .fp { width: 88px; }
  .stage.su2 .c1, .stage.su2 .c2 { width: auto; max-height: 160px; }
  .stage.su3 .b { width: auto; max-height: 150px; }
  .prebio-tile { width: 92px; font-size: .72rem; }
}
.shelf .pch.freep { border-color: var(--gold); background: #FFF8E6; }

/* free-pouch fixes (card + hero) */
.free-art .fp { flex: none; width: 30%; }
.free-art .paid { flex: 0 1 auto; min-width: 0; }
.sh-free { background: #FFF8E6; border: 2px dashed var(--gold); border-radius: 16px; padding: 6px; }
.sh-free img { mix-blend-mode: multiply; }
.lander-mast .by-s { display: none; }
@media (max-width: 480px) {
  .lander-mast .by-l { display: none; }
  .lander-mast .by-s { display: inline; }
  .lander-mast .masthead .by { max-width: none; }
}
@media (max-width: 859px) {
  .pkg .art.free-art { flex-direction: column; align-items: center; justify-content: center; padding: 10px 0 10px 8px; }
  .free-art .paid { width: 100%; }
  .free-art .plus { margin: -4px 0; font-size: 1.2rem; }
  .free-art .fp { width: 62%; }
}
.short .letter .eyebrow + h2:where(:not([data-wbm-h])),.short .letter .eyebrow + :is(h1,h2,h3,h4,h5,h6):where([data-wbm-h="2"]) { margin-top: .3em; }
.sp-final-art { background: var(--product-bg); border-radius: 20px; padding: 10px 16px; align-items: center; gap: 8px; }
@media (min-width: 860px) {
  .stage.su2, .stage.su3, .stage.su1 { align-items: center; }
  .stage.su2 .c1, .stage.su2 .c2 { width: 60%; max-width: 330px; }
  .stage.su3 .b { width: 36%; max-width: 230px; }
  .stage.su3 .prebio-tile { width: 30%; max-width: 170px; }
}
@media (min-width: 860px) {
  .stage.su3 .b { width: 46%; max-width: 300px; }
  .stage.su3 .b + .b, .stage.su3 .prebio-tile + .b { margin-left: -14%; }
  .stage.su3 .prebio-tile { width: 24%; margin-left: -12%; font-size: .85rem; }
}
