/* Low Cost RX Club "Start Treatment" pop-up. Self-contained: every rule is scoped to .qm so it works on Home (home-v7.css) and on the legal pages (styles.css).
   Fonts: Inter and Archivo only, no fallbacks. Tokens copied from home-v7.css. */
html.qm-lock { overflow: hidden; }
.qm { --ink: #0F1A17; --bone: #F5F1EA; --bone-2: #EFEAE0; --sage: #C9D3C5; --sage-deep: #3F5C4E; --clay: #A3562A; --clay-hover: #8F4B24; --clay-soft: #C4703F; --brown: #7A4A2C; --white: #fff;
  --body: rgba(15, 26, 23, 0.66); --body-light: rgba(247, 244, 238, 0.72); --hair: rgba(15, 26, 23, 0.1); --hair-light: rgba(247, 244, 238, 0.18);
  --ease: cubic-bezier(0.16, 1, 0.3, 1); --err: #9B2C1B;
  position: fixed; inset: 0; z-index: 1000; font-family: "Inter"; font-size: 16px; line-height: 1.5; color: var(--ink); -webkit-font-smoothing: antialiased; }
.qm[hidden] { display: none !important; }
.qm *, .qm *::before, .qm *::after { box-sizing: border-box; }
.qm [hidden] { display: none !important; }
.qm h2, .qm p, .qm ul, .qm li { margin: 0; padding: 0; list-style: none; }
.qm button, .qm input, .qm select { font-family: "Inter"; }
.qm a { color: inherit; }
.qm :focus-visible { outline: 2px solid var(--clay); outline-offset: 3px; border-radius: 8px; }
.qm-back { position: absolute; inset: 0; background: rgba(15, 26, 23, 0.55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; transition: opacity 0.25s linear; }
.qm.qm-on .qm-back { opacity: 1; }

/* Dialog: full-screen sheet on phones, centered card from 640px. */
.qm-dlg { position: absolute; inset: 0; display: flex; flex-direction: column; background: var(--bone); padding-top: env(safe-area-inset-top); outline: none; transform: translateY(24px); opacity: 0; transition: transform 0.4s var(--ease), opacity 0.25s linear; }
.qm.qm-on .qm-dlg { transform: none; opacity: 1; }
@media (min-width: 640px) {
  .qm-dlg { inset: auto; top: 50%; left: 50%; width: min(560px, calc(100vw - 48px)); max-height: min(860px, calc(100vh - 48px)); padding-top: 0; border-radius: 28px; box-shadow: 0 40px 90px -20px rgba(15, 26, 23, 0.5); transform: translate(-50%, calc(-50% + 20px)); overflow: hidden; }
  .qm.qm-on .qm-dlg { transform: translate(-50%, -50%); }
  .qm-dlg.qm-wide { width: min(980px, calc(100vw - 48px)); }
}
.qm-bar { flex: none; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 56px; padding: 0 8px 0 14px; }
.qm-bar.is-ended .qcount { visibility: hidden; }
.qm .qback { display: inline-flex; align-items: center; gap: 4px; justify-self: start; margin-left: -6px; padding: 10px 8px; min-height: 44px; border: 0; background: none; font-size: 14px; font-weight: 500; color: var(--ink); cursor: pointer; border-radius: 10px; }
.qm .qback svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.qm .qcount { font-size: 13px; color: var(--body); font-variant-numeric: tabular-nums; }
.qm-x { justify-self: end; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer; transition: background-color 0.2s; }
.qm-x:hover { background: rgba(15, 26, 23, 0.07); }
.qm-x svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.qm .qtrack { flex: none; height: 3px; background: var(--hair); }
.qm .qfill { display: block; height: 100%; width: 100%; background: var(--clay); transform: scaleX(0); transform-origin: 0 50%; transition: transform 0.5s var(--ease); }
.qm-scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding-bottom: env(safe-area-inset-bottom); }

/* Steps */
.qm .qs { padding: 22px 20px 8px; }
.qm .qwrap { max-width: none; width: 100%; margin: 0; padding: 0; }
@media (min-width: 640px) { .qm .qs { padding: 28px 36px 12px; } }
@media (prefers-reduced-motion: no-preference) { .qm .qs.is-in { animation: qm-rise 0.45s var(--ease) both; } }
@keyframes qm-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.qm .qh { font-family: "Archivo"; font-weight: 400; font-size: clamp(28px, 7.4vw, 36px); line-height: 1.08; letter-spacing: -0.02em; text-wrap: balance; }
.qm .qh:focus { outline: none; }
.qm .acc { color: var(--clay); }
.qm .qsub { margin-top: 10px; font-size: 16px; color: var(--body); }
.qm .qsub a { text-decoration: underline; text-underline-offset: 2px; }
.qm .qchip { display: inline-flex; align-items: center; gap: 4px; margin-bottom: 12px; padding: 6px 12px; border: 0; border-radius: 999px; background: var(--sage); color: var(--sage-deep); font-size: 13px; font-weight: 600; cursor: pointer; }
.qm .qchip:hover { box-shadow: inset 0 0 0 1.5px var(--sage-deep); }
.qm .qm-nogoal .qchip, .qm .qm-nogoal .qm-goalrow { display: none; }

/* Goal rows: same color fields and labeled renders as Home. */
.qm .c-weight   { --cbg: #9A4B23; --cbg-2: #7A381A; --cacc: #FFD6B8; }
.qm .c-hormone  { --cbg: #1F3A30; --cbg-2: #142820; --cacc: #C4DEC9; }
.qm .c-skin     { --cbg: #4B6857; --cbg-2: #3A5445; --cacc: #E4F0E1; }
.qm .c-hair     { --cbg: #5A3522; --cbg-2: #432617; --cacc: #F3CDAA; }
.qm .c-sexual   { --cbg: #8E3B2E; --cbg-2: #712B20; --cacc: #FFD3C6; }
.qm .c-labs     { --cbg: #234A4A; --cbg-2: #173737; --cacc: #C2E6E1; }
.qm .c-peptides { --cbg: #2A3833; --cbg-2: #1C2723; --cacc: #EDBE97; }
.qm .qgoals { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 20px; }
.qm .qg { position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: 20px; text-align: left; color: var(--bone); cursor: pointer; background: radial-gradient(70% 140% at 86% 60%, color-mix(in srgb, var(--cbg) 78%, #fff) 0%, var(--cbg) 48%, var(--cbg-2) 100%); transition: transform 0.25s var(--ease); }
.qm .qg::after { content: ""; position: absolute; inset: 0; border-radius: 20px; box-shadow: inset 0 0 0 3px var(--cacc); opacity: 0; transition: opacity 0.2s; pointer-events: none; }
.qm .qg.is-picked::after { opacity: 1; }
.qm .qg:hover { transform: translateY(-2px); }
.qm .grow-link { display: flex; align-items: center; gap: 12px; min-height: 86px; padding: 12px 14px 12px 20px; }
.qm .grow-text { flex: 1; min-width: 0; }
.qm .gtype { display: block; font-size: 11px; font-weight: 550; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(247, 244, 238, 0.95); }
.qm .gline { display: block; margin-top: 2px; font-family: "Archivo"; font-size: 18px; line-height: 1.2; font-weight: 400; letter-spacing: -0.015em; color: var(--bone); }
.qm .gline .acc { color: var(--cacc); }
.qm .grow-media { position: relative; flex: none; width: 92px; height: 62px; }
.qm .grow-media picture { position: absolute; right: -2px; bottom: -8px; width: 96px; height: 96px; }
.qm .grow-img { display: block; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 10px 12px rgba(0, 0, 0, 0.35)); }
.qm .chev { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--bone); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; opacity: 0.9; }

/* Options and select */
.qm .qopts { display: grid; gap: 10px; margin-top: 22px; }
.qm .qopts-2 { grid-template-columns: 1fr 1fr; }
.qm .qopts-2 li:first-child { grid-column: 1 / -1; }
.qm .qopt { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 58px; padding: 12px 18px; border: 0; border-radius: 16px; background: var(--white); box-shadow: inset 0 0 0 1.5px var(--hair); font-size: 16px; font-weight: 500; text-align: left; color: var(--ink); cursor: pointer; transition: box-shadow 0.2s, transform 0.15s var(--ease); }
.qm .qopt:hover { box-shadow: inset 0 0 0 1.5px rgba(15, 26, 23, 0.4); }
.qm .qopt:active { transform: scale(0.99); }
.qm .qopt .q-tick { width: 22px; height: 22px; flex: none; padding: 3px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px rgba(15, 26, 23, 0.25); fill: none; stroke: transparent; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: background-color 0.2s, stroke 0.2s, box-shadow 0.2s; }
.qm .qopt.is-picked { box-shadow: inset 0 0 0 2px var(--ink); }
.qm .qopt.is-picked .q-tick { background: var(--ink); box-shadow: none; stroke: var(--bone); }
.qm .qlabel { display: block; margin-top: 22px; font-size: 14px; font-weight: 500; }
.qm .qselect { position: relative; margin-top: 8px; }
.qm .qselect select { width: 100%; min-height: 58px; padding: 0 48px 0 18px; border: 0; border-radius: 16px; background: var(--white); box-shadow: inset 0 0 0 1.5px var(--hair); font-size: 16px; color: var(--ink); -webkit-appearance: none; appearance: none; cursor: pointer; }
.qm .qselect svg { position: absolute; right: 18px; top: 50%; width: 20px; height: 20px; margin-top: -10px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }

/* Pills */
.qm .pill { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border: 0; border-radius: 999px; font-size: 16px; font-weight: 500; letter-spacing: -0.005em; text-decoration: none; cursor: pointer; transition: background-color 0.3s, transform 0.2s var(--ease); white-space: nowrap; }
.qm .pill .icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.3s var(--ease); }
.qm .pill:hover .icon { transform: translateX(3px); }
.qm .pill:active { transform: scale(0.98); }
.qm .pill:disabled { opacity: 0.45; cursor: not-allowed; }
.qm .pill-block { width: 100%; }
.qm .pill-clay { background: var(--clay); color: var(--white); }
.qm .pill-clay:hover { background: var(--clay-hover); }
.qm .pill-ink { background: var(--ink); color: var(--bone); }
.qm .pill-line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px rgba(15, 26, 23, 0.22); }
.qm .tp { display: inline-block; padding: 1px 7px; border-radius: 6px; background: rgba(196, 112, 63, 0.14); color: var(--brown); font-size: 0.86em; font-weight: 600; }
.qm .mcard .tp { background: rgba(247, 244, 238, 0.12); color: #E9B48F; }

/* End screens */
.qm .qend { text-align: center; padding: 16px 0 8px; }
.qm .qend .qsub { margin-left: auto; margin-right: auto; max-width: 40ch; }
.qm .qend-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 24px; }
@media (max-width: 480px) { .qm .qend-btns .pill { width: 100%; } }

/* Checkout steps (details, payment): form left, offer right on desktop. On phones the offer summary sits right under the heading. */
.qm .qm-co { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.qm .qm-head { order: 0; }
.qm .qm-side { order: 1; }
.qm .qm-main { order: 2; }
@media (min-width: 900px) {
  .qm .qm-co { grid-template-columns: minmax(0, 1fr) 340px; column-gap: 40px; align-items: start; }
  .qm .qm-head { grid-column: 1; grid-row: 1; }
  .qm .qm-main { grid-column: 1; grid-row: 2; }
  .qm .qm-side { grid-column: 2; grid-row: 1 / span 2; position: sticky; top: 0; }
}
.qm .qm-side { display: grid; gap: 12px; align-content: start; }
.qm .qm-goalrow { display: none; }
@media (min-width: 900px) { .qm .qm-goalrow { display: block; } }
.qm .qo-row { position: relative; display: flex; align-items: center; gap: 14px; min-height: 92px; padding: 14px 16px 14px 20px; border-radius: 18px; color: var(--bone); background: radial-gradient(70% 140% at 86% 60%, color-mix(in srgb, var(--cbg) 78%, #fff) 0%, var(--cbg) 48%, var(--cbg-2) 100%); }
.qm .qo-row-t { flex: 1; min-width: 0; }
.qm .qo-unlock { font-size: 14px; font-weight: 500; color: rgba(247, 244, 238, 0.86); }
.qm .qo-row .qp-price { margin-top: 2px; font-size: 15px; color: var(--bone); }
.qm .qo-row .price-v { font-size: 22px; font-weight: 600; }
.qm .qo-thumb { order: 1; position: relative; flex: none; display: block; width: 72px; height: 56px; }
.qm .qo-thumb picture { position: absolute; right: -4px; bottom: -12px; width: 96px; height: 96px; }
.qm .qo-thumb img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 10px 12px rgba(0, 0, 0, 0.35)); }
.qm .mcard { margin: 0; padding: 18px 20px; border-radius: 24px; color: var(--bone); background: radial-gradient(120% 90% at 100% 0%, #2C433A 0%, var(--ink) 62%); box-shadow: 0 24px 50px -28px rgba(15, 26, 23, 0.55); }
.qm .mcard-top { display: flex; justify-content: space-between; align-items: center; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--body-light); }
.qm .mcard-top .wordmark-mark { width: 22px; height: 22px; color: var(--clay-soft); }
.qm .mcard-price { margin: 10px 0 4px; font-size: 16px; color: var(--body-light); }
.qm .mcard-price .tnum { margin-right: 4px; font-family: "Archivo"; font-size: 44px; font-weight: 400; letter-spacing: -0.03em; color: var(--clay-soft); font-variant-numeric: tabular-nums; }
.qm .qo-terms { font-size: 15px; line-height: 1.4; font-weight: 600; color: var(--bone); }
.qm .trust { display: flex; flex-wrap: wrap; gap: 6px; }
.qm .trust li { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px 6px 8px; border-radius: 999px; background: var(--white); box-shadow: inset 0 0 0 1px var(--hair); font-size: 12.5px; font-weight: 500; line-height: 1.2; color: var(--ink); }
.qm .trust svg { flex: none; width: 15px; height: 15px; fill: none; stroke: var(--sage-deep); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Form */
.qm .qm-form, .qm .qm-main { display: grid; gap: 12px; align-content: start; }
.qm .qm-names { display: grid; gap: 12px; }
@media (min-width: 480px) { .qm .qm-names { grid-template-columns: 1fr 1fr; } }
.qm .qm-field label:not(.qwaiver) { display: block; margin-bottom: 6px; font-size: 13.5px; font-weight: 500; }
.qm .qm-field input[type="text"], .qm .qm-field input[type="email"], .qm .qm-field input[type="tel"] { width: 100%; min-height: 52px; padding: 0 16px; border: 0; border-radius: 14px; background: rgba(255, 255, 255, 0.7); box-shadow: inset 0 0 0 1.5px var(--hair); font-size: 16px; color: var(--ink); }
.qm .qm-field input[aria-invalid="true"] { box-shadow: inset 0 0 0 2px var(--err); }
.qm .qwaiver { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, 0.55); box-shadow: inset 0 0 0 1px var(--hair); font-size: 13.5px; line-height: 1.45; color: var(--body); cursor: pointer; }
.qm .qwaiver input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--clay); }
.qm .qwaiver a { text-decoration: underline; text-underline-offset: 2px; }
.qm .qm-err { margin-top: 6px; font-size: 13px; font-weight: 500; color: var(--err); }
.qm .qm-err-top { padding: 10px 14px; border-radius: 12px; background: rgba(155, 44, 27, 0.08); }
.qm .qm-actions { position: sticky; bottom: 0; z-index: 2; margin: 4px -20px 0; padding: 12px 20px calc(14px + env(safe-area-inset-bottom)); background: linear-gradient(180deg, rgba(245, 241, 234, 0) 0%, var(--bone) 28%); display: grid; gap: 10px; }
@media (min-width: 640px) { .qm .qm-actions { margin: 4px 0 0; padding: 12px 0 8px; } }
.qm .qm-btn { min-height: 58px; font-size: 17px; font-weight: 600; }
.qm .qm-legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; font-size: 12.5px; color: var(--body); }
.qm .qm-legal a { text-decoration: underline; text-underline-offset: 2px; }

/* Payment placeholder */
.qm .qo-consent { font-size: 12.5px; line-height: 1.45; color: var(--body); }
.qm .qo-fine { margin: 10px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--body-light); }

/* Image line */
.qm .qm-ai { max-width: none; margin: 0; padding: 14px 20px 20px; text-align: center; font-size: 12px; line-height: 1.45; color: var(--body); }

/* Phone: compact offer summary above the form, trust chips included. */
@media (max-width: 899px) {
  .qm .qm-side { gap: 10px; padding: 14px 16px; border-radius: 20px; background: radial-gradient(120% 90% at 100% 0%, #2C433A 0%, var(--ink) 62%); }
  .qm .qm-side .mcard { padding: 0; background: none; box-shadow: none; display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: baseline; }
  .qm .qm-side .mcard-top { display: none; }
  .qm .qm-side .mcard-price { margin: 0; }
  .qm .qm-side .mcard-price .tnum { font-size: 34px; }
  .qm .qm-side .qo-terms { font-size: 14px; }
  .qm .qm-side .qo-fine { grid-column: 1 / -1; margin-top: 6px; font-size: 12px; }
  .qm .qm-side .trust li { background: rgba(247, 244, 238, 0.1); box-shadow: none; color: var(--bone); font-size: 12px; }
  .qm .qm-side .trust svg { stroke: #C9D3C5; }
}

@media (prefers-reduced-motion: reduce) { .qm *, .qm *::before, .qm *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; } }

/* ===== /welcome/ (full page, not the modal) ===== */
.welcome-page .welcome { padding: 56px 0 96px; }
.welcome-page .welcome-in { max-width: 680px; }
.welcome-page .welcome-h { font-family: "Archivo"; font-weight: 400; font-size: clamp(36px, 9vw, 64px); line-height: 1.04; letter-spacing: -0.025em; text-wrap: balance; }
.welcome-page .welcome-sub { margin-top: 16px; font-size: 18px; color: var(--body); }
.welcome-page .welcome-steps { counter-reset: w; display: grid; gap: 12px; margin-top: 32px; }
.welcome-page .welcome-steps li { counter-increment: w; display: flex; gap: 16px; align-items: flex-start; padding: 18px 20px; border-radius: 20px; background: var(--white); box-shadow: inset 0 0 0 1px var(--hair); font-size: 17px; line-height: 1.4; }
.welcome-page .welcome-steps li::before { content: counter(w); flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--sage); color: var(--sage-deep); font-size: 15px; font-weight: 600; }
.welcome-page .welcome-login { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.welcome-page .welcome-login[hidden] { display: none; }
.welcome-page .welcome-login .pill:disabled { opacity: 0.5; cursor: not-allowed; border: 0; font-family: "Inter"; }
@media (min-width: 900px) { .welcome-page .welcome { padding: 96px 0 128px; } }
.qm .qm-terms-next { margin: 0 0 12px; }
