/* Concept-only variants of the v3 price scene (loaded after lp3.css, which stays frozen).
   "five": five UNLABELLED climbing dose bars (no mg, no molecule) over ONE flat price bar; the price figure is a single slot ([data-slot="price"]),
          so it reads $150 / $225 now and can take approved 3-refill wording later without a redesign.
   "ac":   "five" plus a second option beside "per refill": a wording-agnostic layout where every word of option 2 is a placeholder slot
          ([data-placeholder], class .slot) until the copy gate approves strings. Placeholders are for review only and must never ship. */

/* ---- five bars over one flat price bar ---- */
.dose--five{--tubeh:clamp(8rem,22vw,12rem);--off:0px}
@media (min-width:768px){.dose--five{--off:3.5rem}}
.dose--five .dose__cols{grid-template-columns:repeat(5,minmax(0,1fr));gap:clamp(.375rem,2.2vw,1.75rem)}
.dose--five .dose__col{grid-template-rows:var(--tubeh) 5.75rem auto}
.dose--five .dose__tube{width:min(100%,4.5rem);height:var(--tubeh)}
.dose--five .dose__lbl{grid-row:3;margin-top:0;font-size:.875rem}
@media (min-width:768px){.dose--five .dose__lbl{font-size:.9375rem}}

.dose__flat{position:absolute;left:var(--off);right:0;top:calc(var(--tubeh) + .75rem);z-index:1;display:flex;align-items:center;justify-content:center;min-height:3.5rem;padding:.625rem 1.25rem;border-radius:var(--r-card);background:var(--ink);color:var(--on);box-shadow:0 18px 30px -18px rgba(var(--deep-rgb),.7)}
.dose__flat-in{margin:0;display:flex;flex-wrap:wrap;align-items:baseline;justify-content:center;gap:.125rem .75rem}
.dose__flat-num{font-family:var(--font-serif);font-weight:500;font-size:clamp(1.75rem,1.2rem + 1.6vw,2.25rem);line-height:1;font-variant-numeric:lining-nums tabular-nums}
.dose__flat-per{font:600 .9375rem/1.2 var(--font-sans)}
.dose__flat-any{font-family:var(--font-serif);font-style:italic;font-weight:400;font-size:1.0625rem;line-height:1.2}
.dose__axis--flat{left:calc(-1 * var(--off));top:50%;transform:translateY(-50%)}
.dose--five .dose__cap{margin-top:1.25rem}

/* the same one-shot reveal as the frozen scene, for five columns and the flat bar */
.anim .dose--five .dose__flat{transform:scaleX(0);transform-origin:0 50%;transition:transform .9s cubic-bezier(.2,.7,.2,1) .6s}
.anim .dose--five.is-in .dose__flat{transform:none}
.anim .dose--five .dose__flat-in{opacity:0;transition:opacity .5s ease}
.anim .dose--five.is-in .dose__flat-in{opacity:1;transition-delay:1.2s}
.anim .dose.is-in .dose__col:nth-child(5) .dose__tube::after{transition-delay:.48s}
.anim .dose.is-in .dose__col:nth-child(5) .dose__lbl{transition-delay:1.3s}
.anim .dose--five .dose__lbl{opacity:0;transform:translateY(8px);transition:opacity .5s ease,transform .5s ease}
.anim .dose--five.is-in .dose__lbl{opacity:1;transform:none}
.anim .dose--five.is-in .dose__col:nth-child(1) .dose__lbl{transition-delay:.9s}
.anim .dose--five.is-in .dose__col:nth-child(2) .dose__lbl{transition-delay:1s}
.anim .dose--five.is-in .dose__col:nth-child(3) .dose__lbl{transition-delay:1.1s}
.anim .dose--five.is-in .dose__col:nth-child(4) .dose__lbl{transition-delay:1.2s}
.anim .dose--five.is-in .dose__col:nth-child(5) .dose__lbl{transition-delay:1.3s}

/* ---- second option: placeholder slots ---- */
.slot{display:block;margin:0;padding:.375rem .625rem;border:1px dashed rgba(20,17,15,.45);border-radius:var(--r-ctl);background:repeating-linear-gradient(135deg,rgba(var(--deep-rgb),.06) 0 6px,transparent 6px 12px);font:600 .875rem/1.3 var(--font-sans);letter-spacing:.04em;color:var(--mut)}
.slot--price{font:600 1.5rem/1.2 var(--font-sans);letter-spacing:0;color:var(--ink)}
.offer{margin-top:clamp(2rem,5vw,3rem);display:grid;grid-template-columns:minmax(0,1fr);gap:1rem}
@media (min-width:768px){.offer{grid-template-columns:repeat(2,minmax(0,1fr));gap:1.25rem}}
.offer__opt{display:grid;align-content:start;gap:.5rem;padding:1.25rem 1.5rem 1.5rem;border-radius:var(--r-card);border:1px solid var(--line);background:var(--on)}
.offer__opt--next{border:2px dashed var(--c);background:transparent}
.offer__price{margin:0;display:flex;flex-wrap:wrap;align-items:baseline;gap:.25rem .625rem}
.offer__price .tnum{font-family:var(--font-serif);font-weight:500;font-size:clamp(2.25rem,1.6rem + 2vw,3rem);line-height:1;font-variant-numeric:lining-nums tabular-nums}
.offer__price span:last-child{font:600 1.0625rem var(--font-sans)}
.offer__note{margin:0;font-family:var(--font-serif);font-style:italic;font-size:1.1875rem;color:var(--mut)}
.offer__tag{margin:0;font:700 .75rem/1.3 var(--font-sans);letter-spacing:.1em;text-transform:uppercase;color:var(--c)}

/* hero: one single-line slot for option 2 inside the glass card */
.price__opt2{margin:0}
.price .slot{color:var(--on);border-color:rgba(251,250,245,.55);background:rgba(255,255,255,.07)}
@media (min-width:1024px){
  .price:has(.price__opt2){grid-template-areas:"row cta" "sub cta" "opt cta" "fine cta"}
  .price__opt2{grid-area:opt}
}
@media (forced-colors:active){.dose__flat{border:1px solid CanvasText;forced-color-adjust:none}.slot{border:1px dashed CanvasText}}

/* ---- "q": a segmented choice between two exact prices in the hero glass card (concept only; option 2 is placeholder slots) ----
   Layout rules this variant encodes (wording is the gate's, not mine):
   1. the figure actually held and charged is always the largest figure in its panel; a per-refill equivalent is a smaller, derived line, never alone and never "starting at";
   2. the footnote that qualifies an equivalent sits directly under it (same panel, same contrast, 14px or larger), not at the bottom of the page;
   3. both options are always reachable: without JavaScript both panels show, stacked; with it, a radiogroup (arrow keys, Home, End, Space) shows one at a time;
   4. each option has its own plain coded checkout link block, so the funnel's link rewriting sees both at load (never swap an href with script). */
.offer-toggle{display:none}
.js .offer-toggle{display:inline-grid;grid-auto-flow:column;grid-auto-columns:1fr;gap:.25rem;justify-self:start;max-width:100%;padding:.25rem;border:1px solid rgba(251,250,245,.34);border-radius:var(--r-pill);background:rgba(255,255,255,.08)}
.offer-toggle [role="radio"]{min-height:2.75rem;padding:.375rem 1.125rem;border:0;border-radius:var(--r-pill);background:transparent;color:var(--on);font:600 .9375rem/1.2 var(--font-sans);cursor:pointer;-webkit-tap-highlight-color:transparent;transition:background-color .2s ease,color .2s ease}
.offer-toggle [role="radio"][aria-checked="true"]{background:var(--on);color:var(--deep)}
.offer-toggle [role="radio"][aria-checked="true"] .slot{color:var(--deep);border-color:rgba(20,17,15,.45);background:transparent}
@media (hover:hover){.offer-toggle [role="radio"][aria-checked="false"]:hover{background:rgba(255,255,255,.14)}}
.offer-panels{display:grid}
.offer-panel{display:grid;gap:.875rem;align-content:start}
.offer-panel .price__row,.offer-panel .price__sub{grid-area:auto}
.offer-panel+.offer-panel{margin-top:1.25rem;padding-top:1.25rem;border-top:1px solid rgba(251,250,245,.22)}
.offer-panel .slot--price{font-size:clamp(2rem,1.4rem + 2.2vw,2.75rem)}
.offer-panel .slot--note{font:500 .875rem/1.45 var(--font-sans);letter-spacing:0;color:var(--on)}
.price__cta [data-cta-for]+[data-cta-for]{margin-top:1rem}
.slot--btn{padding:.875rem 1.25rem;text-align:center;border-radius:var(--r-pill)}
/* JavaScript enhances: one panel and one button block at a time */
.js [data-panel="2"],.js [data-cta-for="2"]{display:none}
.js .price.is-opt2 [data-panel="1"],.js .price.is-opt2 [data-cta-for="1"]{display:none}
.js .price.is-opt2 [data-panel="2"]{display:grid}
.js .price.is-opt2 [data-cta-for="2"]{display:block}
.js .offer-panel+.offer-panel{margin-top:0;padding-top:0;border-top:0}
@media (min-width:1024px){
  .price[data-offer]{grid-template-columns:minmax(0,1fr) minmax(0,24rem);grid-template-areas:"tog cta" "panels cta" "fine cta";row-gap:1rem}
  .price[data-offer] .offer-toggle{grid-area:tog}
  .price[data-offer] .offer-panels{grid-area:panels}
  .price[data-offer] .fine{grid-area:fine}
}

/* ---- "r": the 10/27 rehearsal, REAL proposed strings (not approved): the per-refill price stays the headline figure, the 3-refill total follows it on its own
   line with the derived per-refill figure smaller and a note directly under it; one button, the pay choice is made in checkout ---- */
.price__alt{display:grid;gap:.375rem}
.price__alt-line{margin:0;display:flex;flex-wrap:wrap;align-items:baseline;gap:.125rem .4rem;font:600 1.0625rem/1.35 var(--font-sans)}
.price__alt-line strong{font-size:1.5rem;font-weight:700;line-height:1.1;font-variant-numeric:lining-nums tabular-nums}
.price__alt-or{font-family:var(--font-serif);font-style:italic;font-weight:400;font-size:1.1875rem}
.price__alt-each{font-weight:500;font-size:.9375rem}
.price__altnote{margin:0;font-size:.875rem;line-height:1.45}
.dose__cap2{display:block;margin-top:.375rem}
/* "r" (DEFAULT): the 3-refill price is a readable line under the scene's one flat price bar, never a footnote; the hero is untouched.
   The per-refill figure stays the largest figure (flat bar 1.75-2.25rem, this line 1.75rem serif at most), the note sits directly under it. */
.dose__cap1{display:block}
.dose__alt{display:flex;flex-wrap:wrap;align-items:baseline;gap:.125rem .5rem;margin-top:1.25rem;color:var(--ink);font:600 1.0625rem/1.35 var(--font-sans)}
.dose__alt strong{font-family:var(--font-serif);font-weight:500;font-size:1.625rem;line-height:1.1;font-variant-numeric:lining-nums tabular-nums}
.dose__alt-or{font-family:var(--font-serif);font-style:italic;font-weight:400;font-size:1.1875rem}
.dose__alt-each{font-weight:500;font-size:.9375rem}
.dose__altnote{display:block;margin-top:.25rem;font-size:.9375rem;line-height:1.45;color:var(--mut)}
@media (min-width:1024px){
  .price[data-two-prices]{grid-template-areas:"row cta" "alt cta" "sub cta" "fine cta"}
  .price[data-two-prices] .price__alt{grid-area:alt}
}

/* the Shot page (p1a) hero: proof points and the "$0 to start" line directly under the buttons (live copy) */
.proof{list-style:none;margin:0;padding:0;display:grid;gap:.25rem;font-size:.9375rem;line-height:1.45}
.proof li{padding-inline-start:1.375rem;position:relative}
.proof li::before{content:"";position:absolute;left:.125rem;top:.5em;width:.5rem;height:.3rem;border-left:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(-45deg)}
.proof__zero{margin:0;font-weight:600;font-size:.9375rem}

/* the toggle variant's own two-column rule must keep the wider action column on the Panterra pages (two house-named buttons) */
@media (min-width:1024px){
  .price[data-offer]:has(.cta-split){grid-template-columns:minmax(0,1fr) minmax(0,29rem)}
}

/* ---- "c" / "c0" (10/28): the Panterra Community scene. Structure borrowed from the references' community and process blocks (calm text column + one object on the other side),
   look kept ours: the "founding ticket" echoes the receipt in the charges scene. No counts, no avatars, no quoted posts. ---- */
.scene--comm{background:var(--paper)}
.comm{display:grid;gap:clamp(2.25rem,5vw,3.5rem);align-items:center}
@media (min-width:1024px){.comm{grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);gap:clamp(3rem,6vw,6rem)}}
.comm__eyebrow{margin:0 0 .875rem;font:700 .8125rem/1.2 var(--font-sans);letter-spacing:.14em;text-transform:uppercase;color:var(--c)}
.comm .scene__lead{max-width:46ch}
.comm__facts{list-style:none;margin:1.5rem 0 0;padding:0;display:grid;gap:.625rem}
.comm__facts li{position:relative;padding-inline-start:1.75rem;color:var(--ink)}
.comm__facts li::before{content:"";position:absolute;left:.125rem;top:.5em;width:.625rem;height:.375rem;border-left:2px solid var(--c);border-bottom:2px solid var(--c);transform:rotate(-45deg)}
.comm__cta{margin-top:2rem;display:flex;flex-wrap:wrap;align-items:center;gap:1rem 1.75rem}
.comm__link{font:600 1rem var(--font-sans);color:var(--c);text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:.28em}
@media (hover:hover){.comm__link:hover{color:var(--deep)}}
.comm__ticket{justify-self:center;width:min(100%,24rem);filter:drop-shadow(0 26px 24px rgba(var(--deep-rgb),.2)) drop-shadow(0 2px 3px rgba(var(--deep-rgb),.12))}
.tk__top,.tk__bot{background:var(--slip)}
.tk__top{padding:1.75rem 1.75rem 2rem;border-radius:20px 20px 0 0;text-align:center;
  -webkit-mask:radial-gradient(circle 13px at 0 100%,#0000 97%,#000) left/51% 100% no-repeat,radial-gradient(circle 13px at 100% 100%,#0000 97%,#000) right/51% 100% no-repeat;
  mask:radial-gradient(circle 13px at 0 100%,#0000 97%,#000) left/51% 100% no-repeat,radial-gradient(circle 13px at 100% 100%,#0000 97%,#000) right/51% 100% no-repeat}
.tk__bot{position:relative;padding:1.375rem 1.75rem 1.5rem;border-radius:0 0 20px 20px;text-align:center;
  -webkit-mask:radial-gradient(circle 13px at 0 0,#0000 97%,#000) left/51% 100% no-repeat,radial-gradient(circle 13px at 100% 0,#0000 97%,#000) right/51% 100% no-repeat;
  mask:radial-gradient(circle 13px at 0 0,#0000 97%,#000) left/51% 100% no-repeat,radial-gradient(circle 13px at 100% 0,#0000 97%,#000) right/51% 100% no-repeat}
.tk__bot::before{content:"";position:absolute;left:22px;right:22px;top:0;border-top:2px dashed rgba(20,17,15,.22)}
.tk__tag{display:inline-block;margin:0 0 1rem;padding:.375rem .875rem;border-radius:var(--r-pill);background:var(--tint);color:var(--deep);font:700 .75rem/1.2 var(--font-sans);letter-spacing:.12em;text-transform:uppercase}
.tk__amt{margin:0;display:flex;align-items:baseline;justify-content:center;gap:.5rem;color:var(--c)}
.tk__big{font-family:var(--font-serif);font-weight:500;font-size:clamp(4.25rem,3.4rem + 3vw,5.5rem);line-height:1}
.tk__off{font:600 1.5rem var(--font-sans)}
.tk__what{margin:.25rem 0 0;font-family:var(--font-serif);font-style:italic;font-size:1.5rem;line-height:1.2;color:var(--ink)}
.tk__fine{margin:0;font-size:.9375rem;line-height:1.5;color:var(--mut)}
.comm__rooms{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;justify-content:center;gap:.5rem}
.comm__rooms li{padding:.4375rem 1rem;border:1px solid var(--line);border-radius:var(--r-pill);font:600 1rem var(--font-sans);color:var(--ink);background:var(--paper)}
@media (min-width:768px){.comm__ticket{transform:rotate(-1deg)}}
@media (prefers-reduced-motion:no-preference){
  .anim .comm__ticket{opacity:0;transform:translateY(22px) rotate(-2deg);transition:opacity .6s ease,transform .9s cubic-bezier(.2,.7,.2,1)}
  .anim .comm__ticket.is-in{opacity:1;transform:rotate(0)}
  @media (min-width:768px){.anim .comm__ticket.is-in{transform:rotate(-1deg)}}
}
@media (forced-colors:active){.tk__top,.tk__bot{border:1px solid CanvasText;-webkit-mask:none;mask:none}.tk__bot::before{display:none}}

/* ---- "Start your order" wording on the /m/ candidates (10/28): the sub-label under the buy button (13px minimum, light text on the dark card and bar, not a tooltip, not a footnote) ---- */
.cta-sub{margin:.5rem 0 0;font:500 .8125rem/1.35 var(--font-sans);color:rgba(251,250,245,.94);text-align:center}
.cta-bar__cta{flex:1;min-width:0;display:grid;gap:.25rem}
.cta-bar__cta .btn{width:100%}
.cta-sub--bar{margin:0}
.cta-bar--split .cta-sub{margin:0}

/* ---- "cp" / "c0p": the community scene with one photo (hands joined in a circle) and the ticket overlapping its lower edge ---- */
.comm__media{position:relative;justify-self:center;width:min(100%,27rem);padding-bottom:.5rem}
.comm__photo{margin:0;border-radius:22px;overflow:hidden;aspect-ratio:4/5;background:var(--tint);box-shadow:0 32px 48px -32px rgba(var(--deep-rgb),.5)}
.comm__photo img{display:block;width:100%;height:100%;object-fit:cover}
.comm__media .comm__ticket{position:relative;z-index:1;width:min(90%,22.5rem);margin:-5.5rem auto 0}
@media (min-width:1024px){.comm__media .comm__ticket{margin-top:-6rem;margin-inline-start:-2.75rem;width:min(100%,22.5rem)}}
@media (prefers-reduced-motion:no-preference){
  .anim .comm__media{opacity:0;transform:translateY(24px);transition:opacity .7s ease,transform 1s cubic-bezier(.2,.7,.2,1)}
  .anim .comm__media.is-in{opacity:1;transform:none}
}

/* ---- "ct" (10/29, Tier C prep): the status-driven ticket. The Rooms card is the default; the script swaps in the ticket only for a valid "open" answer (js/lp3-offer.js). ---- */
.tk__price{margin:.875rem 0 0;font-size:.9375rem;line-height:1.45;color:var(--ink);text-align:center}

/* ---- p1a first-screen recovery (10/29, phones only): the v3 hero is taller than v2.1's, which put the "Prescription required" and "not FDA-approved" sentences lower than the live page.
   Scoped by body[data-tight] (set only on the p1a community variants), so no other page or variant moves. The vial gets smaller and tucks further behind the price card;
   the card's rows get a little tighter. Target: both sentences no worse than live at 390x844, 375x667 and 360x740 (live p1a: 875/920, 893/938, 922/967). ---- */
@media (max-width:767px){
  [data-tight] .hero__vial{width:min(100%,10.5rem);margin:-1.25rem auto -3.5rem}
  [data-tight] .hero__sub{margin-top:.5rem}
  [data-tight] .hero .price{gap:.75rem}
}

/* 10/28 ticket module follows Coupons' boolean contract: the ticket is in the HTML with the `hidden` attribute and nothing may override it (their markup contract, ticket-snippet/example.html). */
[hidden]{display:none!important}

/* Same height in both states (Rooms card / ticket) so the swap never moves anything: the ticket's natural height (WebKit and Chromium, 320 to 1920) rounded up per breakpoint; the Rooms card's top slip grows to match. Retune if the ticket words change (tests/varct.js measures the shift at 16 widths). */
.scene--comm [data-offer-fallback],.scene--comm div[data-offer-ticket]{min-height:31.5rem}
/* display is set ONLY while the element is not hidden, so nothing here can override the hidden attribute (Coupons' markup contract; Merchant Center's pre-clear check) */
.scene--comm [data-offer-fallback]:not([hidden]),.scene--comm div[data-offer-ticket]:not([hidden]){display:flex;flex-direction:column}
.scene--comm [data-offer-fallback]>.tk__top,.scene--comm div[data-offer-ticket]>.tk__top{flex:1;display:flex;flex-direction:column;justify-content:center;align-items:center}
@media (min-width:340px){.scene--comm [data-offer-fallback],.scene--comm div[data-offer-ticket]{min-height:29.25rem}}
@media (min-width:360px){.scene--comm [data-offer-fallback],.scene--comm div[data-offer-ticket]{min-height:26.5rem}}
@media (min-width:414px){.scene--comm [data-offer-fallback],.scene--comm div[data-offer-ticket]{min-height:25.5rem}}
@media (min-width:768px){.scene--comm [data-offer-fallback],.scene--comm div[data-offer-ticket]{min-height:26.5rem}}
@media (min-width:1024px){.scene--comm [data-offer-fallback],.scene--comm div[data-offer-ticket]{min-height:26.75rem}}

/* the ticket line's last words are a public link to the Community's terms page (Coupons' TERMS_DRAFT.md section 2): same colour as the line, underlined so it is not colour-only */
.tk__fine a{color:inherit;text-decoration:underline;text-underline-offset:.2em}

/* ============ DOSE BARS (replaces the tube climb): dark dose bars step up on an accelerating curve,
   a separate light price bar sits in front of each at a constant height (1/3 of the first dose bar). 10/29 ============ */
.dose--bars{--first:clamp(6.25rem,23vw,9.375rem);--lt:#B4CDE8;--gap:clamp(.375rem,1.8vw,1.25rem)}
.dosebars{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:var(--gap);align-items:end}
.dosebars__col{display:flex;flex-direction:column;align-items:stretch;min-width:0}
.dosebars__stage{position:relative;display:block;height:calc(var(--first) * 2.5)}
.dosebars__dose{position:absolute;inset:auto 0 0;height:calc(var(--first) * var(--r));display:block;background:var(--c);border-radius:.875rem;color:var(--on);text-align:center;padding-top:.75rem}
.dosebars__mg{font:600 clamp(.75rem,.6rem + .6vw,1.0625rem)/1.1 var(--font-sans);letter-spacing:.01em;white-space:nowrap}
.dosebars__price{position:absolute;inset:auto 12% 0;height:calc(var(--first) / 3);display:grid;place-items:center;background:var(--lt);color:var(--ink);border-radius:.625rem .625rem .875rem .875rem;box-shadow:0 0 0 3px var(--c);font-family:var(--font-serif);font-weight:500;font-size:clamp(1rem,.7rem + 1.5vw,1.625rem);line-height:1;font-variant-numeric:lining-nums tabular-nums}
.dosebars__lbl{margin-top:.875rem;text-align:center;font-size:.8125rem;line-height:1.3;color:var(--mut)}
@media (min-width:768px){.dosebars__lbl{font-size:.9375rem}.dosebars__price{inset-inline:15%}}
.dosebars__key{display:flex;flex-wrap:wrap;gap:.5rem 1.375rem;margin:1.25rem 0 0;font-size:.875rem;color:var(--mut)}
.dosebars__sw{display:inline-block;width:.875rem;height:.875rem;border-radius:.25rem;vertical-align:-.125rem;margin-right:.45rem}
.dosebars__sw--dose{background:var(--c)}
.dosebars__sw--price{background:var(--lt);box-shadow:0 0 0 2px var(--c)}
.dose--bars .dose__cap{margin-top:.625rem}
/* motion: bars rise, then the price bars slide in (only when JS is on and motion is allowed; otherwise the final state shows) */
.anim .dose--bars .dosebars__dose{clip-path:inset(100% 0 0 0);transition:clip-path .9s cubic-bezier(.2,.7,.2,1)}
.anim .dose--bars.is-in .dosebars__dose{clip-path:inset(0 0 0 0)}
.anim .dose--bars .dosebars__price{opacity:0;transform:translateY(10px);transition:opacity .5s ease,transform .5s ease}
.anim .dose--bars.is-in .dosebars__price{opacity:1;transform:none}
.anim .dose--bars .dosebars__lbl{opacity:0;transform:translateY(8px);transition:opacity .5s ease,transform .5s ease}
.anim .dose--bars.is-in .dosebars__lbl{opacity:1;transform:none}
.anim .dose--bars.is-in .dosebars__col:nth-child(2) :is(.dosebars__dose){transition-delay:.1s}
.anim .dose--bars.is-in .dosebars__col:nth-child(3) :is(.dosebars__dose){transition-delay:.2s}
.anim .dose--bars.is-in .dosebars__col:nth-child(4) :is(.dosebars__dose){transition-delay:.3s}
.anim .dose--bars.is-in .dosebars__col:nth-child(5) :is(.dosebars__dose){transition-delay:.4s}
.anim .dose--bars.is-in .dosebars__col:nth-child(1) :is(.dosebars__price,.dosebars__lbl){transition-delay:.9s}
.anim .dose--bars.is-in .dosebars__col:nth-child(2) :is(.dosebars__price,.dosebars__lbl){transition-delay:1s}
.anim .dose--bars.is-in .dosebars__col:nth-child(3) :is(.dosebars__price,.dosebars__lbl){transition-delay:1.1s}
.anim .dose--bars.is-in .dosebars__col:nth-child(4) :is(.dosebars__price,.dosebars__lbl){transition-delay:1.2s}
.anim .dose--bars.is-in .dosebars__col:nth-child(5) :is(.dosebars__price,.dosebars__lbl){transition-delay:1.3s}
@media (forced-colors:active){.dosebars__dose{border:2px solid CanvasText;forced-color-adjust:none}.dosebars__price{border:2px solid CanvasText;forced-color-adjust:none}}

/* ===== HOW IT WORKS (handoff, 29 Oct) ===== */
/* How it works section. Scoped under .hiw / .hiw-flow; safe to drop into the existing stylesheet. */

/* ---- Design tokens (scoped, so nothing leaks into the rest of the site).
   Map these to the site's own variables if it has them. ---- */
.hiw, .hiw-flow {
  --hiw-ink: var(--ink);
  --hiw-muted: var(--mut);
  --hiw-surface: #FFFFFF;
  --hiw-ring: #C9D9E7;
  --hiw-line: #3E5C88;          /* dotted line + active bubble ring */
  --hiw-line-ghost: #B7C2D2;    /* unplayed part of the dotted line */
  --hiw-tile: #FFFFFF;          /* bubble background */
  --hiw-art-main: #3E5C88;
  --hiw-art-tint: #CFDAE9;
  --hiw-art-line: #9DB0CC;
  --hiw-art-paper: #FFFFFF;
  --hiw-ok: #2F7D5B;            /* approval green */
  --hiw-skin: #E8C9B0;
  --hiw-hair: #2A211C;
  --hiw-pants: #2A3340;
  --hiw-cta: var(--c);
  --hiw-cta-ink: #FFFFFF;
  --hiw-font-sans: var(--font-sans);
  --hiw-font-serif: var(--font-serif);
}

/* ---- Section layout ---- */
.hiw { font-family: var(--hiw-font-sans); color: var(--hiw-ink); }
.hiw *, .hiw *::before, .hiw *::after { box-sizing: border-box; }
.hiw__inner {
  padding-block: 0;
  display: grid; grid-template-columns: minmax(0,5fr) minmax(0,7fr); gap: 48px 64px; align-items: center;
}
.hiw__copy { min-width: 0; }
.hiw__title {
  margin: 0; font-weight: 800; font-size: clamp(42px, 5.8vw, 82px);
  line-height: .98; letter-spacing: -.04em; text-wrap: balance;
}
.hiw__title em, .hiw-step h3 em {
  font-family: var(--hiw-font-serif); font-style: italic; font-weight: 400; letter-spacing: -.01em;
}
.hiw__title em { font-size: 1.04em; }
.hiw__lede { margin: 28px 0 30px; font-size: clamp(17px, 1.5vw, 21px); line-height: 1.55; color: var(--hiw-muted); max-width: 30em; }
.hiw-cta {
  display: inline-flex; align-items: center; gap: 22px; padding: 8px 8px 8px 28px;
  border-radius: 999px; background: var(--hiw-cta); color: var(--hiw-cta-ink);
  font-weight: 600; font-size: 17px; text-decoration: none; cursor: pointer;
}
.hiw-cta__arrow { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.22); }
.hiw-cta:focus-visible { outline: 2px solid var(--hiw-cta); outline-offset: 3px; }
.hiw__note { margin: 18px 0 0; font-size: 14px; line-height: 1.55; color: var(--hiw-muted); max-width: 27em; }

/* ---- Step cards (text only) ---- */
.hiw-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 34px; }
.hiw-step {
  background: var(--hiw-surface); border-radius: 28px; min-width: 0;
  padding: 30px 30px 30px calc(var(--hiw-pad) + var(--hiw-b) + 26px);
  min-height: calc(var(--hiw-b) + 60px);
  box-shadow: 0 0 0 8px var(--hiw-ring);
  display: flex; flex-direction: column; justify-content: center;
}
.hiw-step h3 { margin: 0 0 8px; font-size: clamp(22px, 2.3vw, 30px); font-weight: 800; letter-spacing: -.025em; line-height: 1.1; text-wrap: balance; }
.hiw-step h3 em { font-size: 1.06em; letter-spacing: 0; }
.hiw-step p { margin: 0; color: var(--hiw-muted); font-size: clamp(15px, 1.25vw, 17px); line-height: 1.5; max-width: 34em; }

/* ---- Dotted line + travelling dot (positions are set by how-it-works.js) ---- */
.hiw-rail { position: absolute; left: 0; top: 0; overflow: visible; pointer-events: none; z-index: 1; }
.hiw-dot {
  position: absolute; left: 0; top: 0; z-index: 3; width: 14px; height: 14px; border-radius: 50%;
  background: var(--hiw-line); box-shadow: 0 0 0 4px var(--hiw-surface); opacity: 0; will-change: transform;
}

@media (max-width: 900px) {
  .hiw__inner { grid-template-columns: minmax(0,1fr); padding-top: 44px; padding-bottom: 16px; gap: 44px; }
}
@media (max-width: 640px) {
  .hiw-steps { gap: 28px; }
  .hiw-step { border-radius: 22px; padding: 22px 16px 22px calc(var(--hiw-pad) + var(--hiw-b) + 16px); box-shadow: 0 0 0 6px var(--hiw-ring); }
}

/* ---- Bubble (holds one step's animation) ---- */
.hiw-flow { --hiw-b: 88px; --hiw-pad: 28px; position: relative; min-width: 0; }
.hiw-bubble {
  position: absolute; z-index: 2; left: var(--hiw-pad);
  width: var(--hiw-b); height: var(--hiw-b); border-radius: 50%;
  background: var(--hiw-tile); box-shadow: 0 0 0 3px var(--hiw-ring);
  display: grid; place-items: center; transition: box-shadow .4s ease;
}
.hiw-bubble.is-on { box-shadow: 0 0 0 3px var(--hiw-line); }
.hiw-bubble svg { width: 80%; height: 80%; display: block; clip-path: circle(62.5% at 50% 50%); }
.hiw-chip {
  position: absolute; left: -6px; top: -6px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--hiw-ink); color: #fff; font: 700 11px/1 var(--hiw-font-sans);
  display: grid; place-items: center; font-variant-numeric: tabular-nums;
}
@media (max-width: 640px) {
  .hiw-flow { --hiw-b: 60px; --hiw-pad: 16px; }
  .hiw-chip { width: 20px; height: 20px; font-size: 10px; left: -5px; top: -5px; }
}

/* ---- Step 1: intake clipboard. Rows draw in, then each box gets a check. ---- */
.hiw-ln { transform-box: fill-box; transform-origin: left center;
  transition: transform .55s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0s); }
.hiw-tick { stroke-dasharray: 14; stroke-dashoffset: 0;
  transition: stroke-dashoffset .35s ease-out; transition-delay: var(--d, 0s); }
.hiw-flow.is-armed .hiw-bubble:not(.is-on) .hiw-ln { transform: scaleX(0); }
.hiw-flow.is-armed .hiw-bubble:not(.is-on) .hiw-tick { stroke-dashoffset: 14; }

/* ---- Step 2: provider review. Clinician slides in, approval stamp pops on the intake. ---- */
.hiw-doc { transition: transform .6s cubic-bezier(.2,.7,.2,1) .1s, opacity .5s ease .1s; }
.hiw-flow.is-armed .hiw-bubble:not(.is-on) .hiw-doc { transform: translateX(18px); opacity: 0; }
.hiw-stamp { transform-box: view-box; transform-origin: 34px 86px;
  transition: transform .45s cubic-bezier(.3,1.6,.5,1) 1s, opacity .2s ease 1s; }
.hiw-flow.is-armed .hiw-bubble:not(.is-on) .hiw-stamp { transform: scale(0) rotate(-20deg); opacity: 0; }

/* ---- Step 3: shipping. Lid closes, approved badge pops, package speeds out of the circle to the right. ---- */
.hiw-lid { transform-box: view-box; transform-origin: 22px 58px;
  transition: transform .6s cubic-bezier(.3,1.3,.5,1) .15s; }
.hiw-flow.is-armed .hiw-bubble:not(.is-on) .hiw-lid { transform: translate(0,-10px) rotate(-38deg); }
.hiw-badge { transform-box: view-box; transform-origin: 92px 54px;
  transition: transform .4s cubic-bezier(.3,1.6,.5,1) .8s, opacity .2s ease .8s; }
.hiw-flow.is-armed .hiw-bubble:not(.is-on) .hiw-badge { transform: scale(0); opacity: 0; }
.hiw-pkg { transition: transform 1.1s cubic-bezier(.55,0,.9,.6) 1.5s; }
.hiw-flow.is-armed .hiw-bubble.is-on .hiw-pkg { transform: translateX(135px); } /* clipped by the circle */
.hiw-streak { opacity: 0; }
.hiw-flow.is-armed .hiw-bubble.is-on .hiw-streak { animation: hiw-streak 1.3s ease 1.6s both; }
@keyframes hiw-streak {
  0% { opacity: 0; transform: translateX(0); }
  30% { opacity: .8; }
  100% { opacity: 0; transform: translateX(-10px); }
}

/* Used by the JS to snap back to the start between loops without animating backwards. */
.hiw-flow.is-reset .hiw-bubble, .hiw-flow.is-reset .hiw-bubble * { transition: none !important; animation: none !important; }
@media (prefers-reduced-motion: reduce) {
  .hiw-bubble, .hiw-bubble * { transition: none !important; animation: none !important; }
}

/* page integration: section sits on the .scene--tint band; the .wrap provides width and gutters */
.scene--tint .hiw-dot{box-shadow:0 0 0 4px var(--tint)}
.hiw__title{font-size:clamp(2.25rem,1.2rem + 3.6vw,4.25rem)}
.hiw .r-tag{white-space:normal}
.hiw__title,.hiw-step h3{font-family:var(--hiw-font-sans)}
.hiw__title em,.hiw-step h3 em{font-family:var(--hiw-font-serif)}
/* long hold tag must wrap so the amount column stays on screen */
.r-tag{white-space:normal;max-width:100%}

/* ===== BILLING TOGGLE (Monthly | Quarterly). Pure CSS: two radios, no JS. Default is Quarterly. ===== */
body:has(#plan-m:checked) [data-q]{display:none}
body:not(:has(#plan-m:checked)) [data-m]{display:none}
.plan{border:0;margin:0 0 1.25rem;padding:0;min-width:0}
.plan__legend{padding:0;margin:0 0 .5rem;font:600 .8125rem/1 var(--font-sans);letter-spacing:.14em;text-transform:uppercase;opacity:.85}
.plan__track{display:grid;grid-template-columns:1fr 1fr;gap:.25rem;padding:.3125rem;border-radius:var(--r-pill);background:rgba(255,255,255,.14);box-shadow:inset 0 0 0 1px rgba(255,255,255,.28);max-width:30rem}
.plan__in{position:absolute;opacity:0;width:1px;height:1px;pointer-events:none}
.plan__opt{display:grid;gap:.125rem;justify-items:center;align-content:center;min-height:3.75rem;padding:.5rem 1rem;border-radius:var(--r-pill);cursor:pointer;color:var(--on);text-align:center;transition:background-color .2s ease,color .2s ease,box-shadow .2s ease}
.plan__name{font:700 1.1875rem/1.1 var(--font-sans)}
.plan__sub{font:500 .875rem/1.1 var(--font-sans);opacity:.85}
.plan__in:checked+.plan__opt{background:var(--paper);color:var(--c);box-shadow:0 2px 10px rgba(0,0,0,.25)}
.plan__in:focus-visible+.plan__opt{outline:3px solid var(--acc);outline-offset:2px}
.plan__opt:hover{background:rgba(255,255,255,.12)}
.plan__in:checked+.plan__opt:hover{background:var(--paper)}
@media (forced-colors:active){.plan__in:checked+.plan__opt{outline:3px solid Highlight}}
.plan{padding:.875rem 1.25rem 1rem;margin-bottom:.75rem;border:1px solid rgba(251,250,245,.3);border-radius:var(--r-card);background:rgba(var(--deep-rgb),.56);-webkit-backdrop-filter:blur(14px) saturate(1.15);backdrop-filter:blur(14px) saturate(1.15);box-shadow:0 30px 60px -30px rgba(0,0,0,.55),inset 0 1px 0 rgba(255,255,255,.16)}
@media (min-width:1024px){.plan{padding:1.125rem 2rem 1.25rem}}
@media (max-width:767px){.plan{margin-top:1.75rem}}

/* Tirzepatide page: six dose bars (5, 10, 15, 20, 25, 30 mg). The tallest bar is 2.667x the first, so the stage is taller. */
.dosebars__stage{height:calc(var(--first) * var(--max,2.5))}
.dosebars--6{grid-template-columns:repeat(6,minmax(0,1fr))}
.dosebars--6 .dosebars__price{inset-inline:8%;font-size:clamp(.8125rem,.5rem + 1.6vw,1.5rem)}
@media (min-width:768px){.dosebars--6 .dosebars__price{inset-inline:12%}}
.anim .dose--bars.is-in .dosebars__col:nth-child(6) :is(.dosebars__dose){transition-delay:.5s}
.anim .dose--bars.is-in .dosebars__col:nth-child(6) :is(.dosebars__price,.dosebars__lbl){transition-delay:1.4s}
/* fieldset legend must sit inside the panel, not on its border */
.plan__legend{float:left;width:100%}
.plan__track{clear:both}
/* Tirzepatide vial photo (dark blue studio background): lift it toward the hero blue and fade its edges into the page */
.hero__vial--blend{background:radial-gradient(closest-side,rgba(150,185,225,.45),rgba(150,185,225,0) 70%)}
.hero__vial--blend img{filter:brightness(1.55) saturate(1.1);-webkit-mask-image:radial-gradient(closest-side,#000 42%,transparent 98%);mask-image:radial-gradient(closest-side,#000 42%,transparent 98%)}
.hero__vial--blend::after{display:none}
