/* Redesigned pages (homepage + treatment pages), the designer's styles as sent 10/27. Prices, phone and links still
   come from config.js. The other pages keep styles.css. */
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url("/assets/fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
  --bg: #FAF9F6;
  --card: #F3F2EE;
  --line: #E6E3DC;
  --ink: #14223A;
  --muted: #5F6672;
  --navy: #182D4D;
  --blue: #1D52D3;
  --horizon: linear-gradient(180deg, #DCE8F5 0%, #EEF2F4 45%, #F4ECDD 100%);
  --horizon-x: linear-gradient(120deg, #DCE8F5 0%, #EEF2F4 45%, #F4ECDD 100%);
  --serif: "Inter", -apple-system, system-ui, sans-serif;
  --sans: "Inter", -apple-system, system-ui, sans-serif;
  --shadow: 0 12px 40px rgba(20, 34, 58, .10);
  --gutter: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 8px; }
.skip-link { position: absolute; top: -100px; left: 20px; z-index: 100; background: #fff; padding: 12px; border-radius: 8px; }
.skip-link:focus { top: 10px; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 120px 0; }

h1, h2, h3 { font-family: var(--serif); font-weight: 300; letter-spacing: -0.04em; line-height: 1.04; margin: 0; font-optical-sizing: auto; }
h1 { font-size: clamp(44px, 6vw, 84px); }
h2 { font-size: clamp(34px, 4vw, 56px); }
h3 { font-size: 22px; line-height: 1.2; letter-spacing: -0.025em; font-weight: 500; }
p { margin: 0; }
.muted { color: var(--muted); }
.eyebrow { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 500; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 24px; border-radius: 999px; font-size: 15px; font-weight: 500;
  border: 1px solid transparent; transition: transform .2s ease, background .2s ease, border-color .2s ease;
  white-space: nowrap; cursor: pointer; font-family: inherit;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #0B1628; }
.btn-ghost { border-color: var(--line); background: rgba(255,255,255,.5); }
.btn-ghost:hover { border-color: #CFCAC0; background: #fff; }
.btn-sm { height: 40px; padding: 0 18px; font-size: 14px; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }

/* Logo */
.logo { display: inline-flex; align-items: center; line-height: 1; }
.logo-mark { display: block; }

/* Header */
.rd-header {
  position: sticky; top: 0; z-index: 50; background: rgba(250, 249, 246, .82);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s ease;
}
.rd-header.scrolled { border-bottom-color: var(--line); }
.rd-header .wrap { display: flex; align-items: center; height: 72px; gap: 24px; }
.rd-nav { display: flex; gap: 32px; margin-left: auto; font-size: 15px; }
.rd-nav a { color: var(--ink); opacity: .82; transition: opacity .2s; }
.rd-nav a:hover { opacity: 1; }
.header-cta { display: flex; gap: 8px; }
.burger { display: none; margin-left: 4px; width: 40px; height: 40px; border: 0; background: none; padding: 8px; cursor: pointer; }
.burger span { display: block; height: 1.5px; background: var(--ink); margin: 6px 0; border-radius: 2px; }
.sheet {
  position: fixed; inset: 0; z-index: 60; background: var(--bg); padding: 20px var(--gutter);
  display: flex; flex-direction: column; opacity: 0; pointer-events: none; transition: opacity .25s ease;
}
.sheet.open { opacity: 1; pointer-events: auto; }
.sheet-top { display: flex; justify-content: space-between; align-items: center; height: 32px; }
.sheet-close { border: 0; background: none; font-size: 30px; line-height: 1; cursor: pointer; color: var(--ink); }
.sheet nav { display: flex; flex-direction: column; margin-top: 48px; }
.sheet nav a { font-family: var(--serif); font-size: 40px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.sheet .btn { margin-top: auto; width: 100%; }

/* Hero */
.hero { padding: 28px 0 112px; }
.hero .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.hero-art { margin-top: 28px; }
.proof { display: flex; align-items: center; gap: 12px; font-size: 14px; margin-bottom: 8px; }
.avatars { display: flex; flex: none; }
.avatars > * { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--bg); object-fit: cover; margin-left: -8px; }
.avatars > *:first-child { margin-left: 0; }
.hero-sub { font-size: 18px; color: var(--muted); max-width: 480px; margin: 22px 0 26px; }
.mark { color: var(--ink); font-weight: 500; text-decoration: underline; text-decoration-color: var(--blue); text-decoration-thickness: 1.5px; text-underline-offset: 6px; }
.hero-pay { display: flex; align-items: center; gap: 12px; row-gap: 10px; flex-wrap: wrap; margin: 20px 0 0; }
.hero-pay .proof { margin: 0; }
.hero-pay .pay-sep { width: 1px; height: 22px; background: var(--line); }
.hero-pay-logos { display: flex; align-items: center; gap: 14px; }
.hero-pay-logos img { height: 24px; width: auto; }
.hero-pay-logos .pay-klarna { border-radius: 6px; }

/* Top banner (items from config.js MARQUEE_ITEMS, built by app.js) */
.fx-marquee { display: flex; align-items: stretch; background: #EAF0FD; color: var(--ink); overflow: hidden; border-bottom: 1px solid #DCE5F5; }
.fx-marquee[hidden] { display: none; }
.fx-marquee-window { min-width: 0; overflow: hidden; flex: 1; }
.fx-marquee-track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.fx-marquee-track.is-paused, .fx-marquee:hover .fx-marquee-track { animation-play-state: paused; }
.fx-marquee-group { display: flex; gap: 48px; padding: 10px 24px; margin: 0; list-style: none; flex: none; }
.fx-marquee-group li { display: flex; align-items: center; gap: 10px; font-size: 12.5px; font-weight: 500; letter-spacing: .01em; white-space: nowrap; }
.fx-marquee-group li span { color: var(--blue); font-size: 10px; }
.fx-marquee-toggle { width: 36px; flex: none; border: 0; border-left: 1px solid #DCE5F5; background: #EAF0FD; color: var(--ink); cursor: pointer; font-size: 11px; }
.fx-marquee-toggle:focus-visible { outline: 2px solid var(--blue); outline-offset: -4px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Hero prices: each medication drops down in place */
.hero-prices { display: grid; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: 0 18px 40px -28px rgba(20,34,58,.35); max-width: 520px; overflow: hidden; }
.hp-row { width: 100%; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; display: grid; grid-template-columns: 1fr auto 20px; align-items: center; gap: 16px; padding: 16px 20px; transition: background .2s; }
.hp-row:hover { background: #F6F8FE; }
.hp-name b { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 19px; letter-spacing: -0.02em; }
.hp-name em { font: 500 10.5px/1 var(--sans); font-style: normal; letter-spacing: .06em; text-transform: uppercase; color: var(--blue); background: #EAF0FD; padding: 5px 8px; border-radius: 999px; }
.hp-name small, .hp-price small { display: block; font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.hp-price { text-align: right; }
.hp-price b { font-family: var(--serif); font-weight: 400; font-size: 36px; line-height: 1; letter-spacing: -0.02em; color: var(--ink); }
.hp-price b small { display: inline; font: 400 14px var(--sans); color: var(--muted); margin-left: 2px; }
.hero-cta { margin-top: 22px; align-items: center; gap: 22px; }
.text-link { font-weight: 500; text-decoration: underline; text-decoration-color: var(--blue); text-decoration-thickness: 1.5px; text-underline-offset: 5px; }
.text-link:hover { color: var(--blue); }
.hp-item + .hp-item { border-top: 1px solid var(--line); }
.hp-go { color: var(--blue); font-size: 20px; line-height: 1; transition: transform .3s ease; display: inline-block; transform: translateY(-3px); }
.hp-row:hover .hp-go { transform: translateY(-1px); }
.hp-item.open .hp-go { transform: rotate(180deg) translateY(-4px); }
.hp-item.open .hp-row { background: #F6F8FE; }
.hp-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s cubic-bezier(.2,.8,.2,1); background: #F6F8FE; }
.hp-item.open .hp-panel { grid-template-rows: 1fr; }
.hp-panel-inner { overflow: hidden; display: grid; grid-template-columns: 78px 1fr; gap: 16px; align-items: center; padding: 0 20px; transition: padding .35s; }
.hp-item.open .hp-panel-inner { padding: 4px 20px 20px; }
.hp-vial { height: 130px; display: grid; place-items: center; }
.hp-vial .vial { height: 124px; }
.hp-plans .plan-pick { margin: 0 0 12px; }
.hp-plans .plan-opt { padding: 11px 12px 12px; border-radius: 14px; }
.hp-plans .po-amt { font-size: 28px; }
.hp-plans .po-dot { top: 11px; right: 11px; width: 14px; height: 14px; }
.hp-plans .plan-opt:has(input:checked) .po-dot { border-width: 4.5px; }
.hp-ctas { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.hp-ctas .btn { height: 44px; font-size: 14.5px; padding: 0 14px; }
.hp-ctas .btn-ghost { background: #fff; }

/* Star rating, next to the faces (shown only with FlatRx's own rating) */
.rating { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; }
.rating-stars { display: inline-flex; gap: 2px; }
.rating b { font-weight: 600; letter-spacing: -0.01em; }
.rating-top { margin: 0; gap: 8px; font-size: 16px; }
.rating-top svg { width: 19px; height: 19px; }
.rating-top b { font-size: 17px; }
.proof-claim { font-size: 13.5px; color: var(--muted); margin: 8px 0 0; }
.proof-claim .fn-mark { color: inherit; }

/* Hero picture with two floating cards */
.hero-art { position: relative; aspect-ratio: 1 / 1.05; border-radius: 28px; background: var(--horizon-x); }
.hero-photo { position: absolute; inset: 6%; border-radius: 18px; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(20,34,58,.35); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.float { position: absolute; background: #fff; border-radius: 16px; box-shadow: var(--shadow); animation: bob 6s ease-in-out infinite; }
.float-lock { top: 11%; right: -5%; padding: 12px 16px; display: flex; gap: 12px; align-items: center; }
.float-lock .ic { width: 34px; height: 34px; border-radius: 50%; background: #EAF0FD; display: grid; place-items: center; color: var(--blue); }
.float-lock b { display: block; font-size: 14px; font-weight: 600; }
.float-lock span { font-size: 12.5px; color: var(--muted); }
.float-plan { left: -5%; bottom: 9%; width: 236px; padding: 14px 16px 12px; animation-delay: -3s; }
.float-plan .eyebrow { font-size: 10px; margin-bottom: 2px; }
.med-toggle { display: inline-flex; gap: 2px; margin-top: 8px; padding: 2px; border-radius: 999px; background: var(--card); }
.med-toggle button { font: 500 11px/1 var(--sans); color: var(--muted); padding: 5px 10px; border-radius: 999px; border: 0; background: none; cursor: pointer; }
.med-toggle button[aria-pressed="true"] { background: #fff; color: var(--blue); box-shadow: 0 1px 3px rgba(20,34,58,.12); }
.med-toggle-text { margin: 0 0 4px; padding: 0; gap: 10px; background: none; }
.med-toggle-text button { font-size: 10.5px; padding: 2px 0; border-radius: 0; }
.med-toggle-text button[aria-pressed="true"] { background: none; box-shadow: none; border-bottom: 1px solid var(--blue); }
.step-dot { fill: #182D4D; transition: fill .2s; }
.step-dot.on { fill: var(--blue); }
.step-lbl { font: 8px var(--sans); fill: #5F6672; }
.step-lbl.on { fill: var(--blue); font-weight: 600; }
.plan-pill { cursor: grab; touch-action: none; outline: none; transition: transform .25s ease; }
.plan-pill.grab { cursor: grabbing; transition: none; }
.plan-pill:focus-visible rect { stroke-opacity: 1; stroke-width: 1.5; }
.plan-pill text { font: 600 9px var(--sans); fill: #1D52D3; }
.plan-hint { font-size: 10px; color: var(--muted); margin-top: 2px; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }

/* Section heads */
.head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 40px; }
.head .muted { font-size: 14px; }
.head-center { flex-direction: column; align-items: center; text-align: center; gap: 22px; }
section[id], #plans { scroll-margin-top: 84px; }

/* Products */
.products { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.product { background: var(--card); border-radius: 24px; padding: 32px 32px 28px; display: flex; flex-direction: column; align-items: center; text-align: center; position: relative; overflow: hidden; }
.product .tag { position: absolute; top: 24px; right: 24px; font-size: 12px; font-weight: 500; padding: 5px 11px; border-radius: 999px; background: #fff; border: 1px solid var(--line); }
.vial-stage { position: relative; height: 290px; display: grid; place-items: end center; margin: 22px 0 18px; }
.vial-stage .vial { height: 280px; transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.product:hover .vial-stage .vial { transform: translateY(-6px); }
.plan-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; margin: 2px 0 20px; }
.plan-opt {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left;
  padding: 14px 16px 15px; border-radius: 16px; background: #fff; border: 1px solid rgba(20,34,58,.10); cursor: pointer;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.plan-opt:hover { transform: translateY(-1px); }
.plan-opt input { position: absolute; opacity: 0; pointer-events: none; }
.plan-opt:has(input:checked) { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue), 0 12px 24px -16px rgba(29,82,211,.5); }
.plan-opt:has(input:focus-visible) { outline: 2px solid var(--blue); outline-offset: 3px; }
.po-dot { position: absolute; top: 14px; right: 14px; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid rgba(20,34,58,.25); transition: border .2s; }
.plan-opt:has(input:checked) .po-dot { border: 5px solid var(--blue); }
.po-name { font-size: 11px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.plan-opt:has(input:checked) .po-name { color: var(--blue); }
.po-amt { font-family: var(--serif); font-weight: 400; font-size: 38px; letter-spacing: -0.02em; line-height: 1.05; }
.po-amt small { font-family: var(--sans); font-size: 13px; color: var(--muted); margin-left: 2px; letter-spacing: 0; }
.po-bill { font-size: 12px; color: var(--muted); line-height: 1.35; }
.product .btn-row { width: 100%; }
.product .btn-row .btn { flex: 1; }
.includes-line { text-align: center; color: var(--muted); font-size: 14px; margin-top: 28px; }

/* The vial: photo + label in live type (medication name only, never a brand) */
.vial { position: relative; container-type: inline-size; aspect-ratio: 480 / 840; height: 100%; }
.vial img { width: 100%; height: 100%; filter: drop-shadow(0 14px 14px rgba(20, 34, 58, .14)); }
.vial-label { position: absolute; left: 18.9%; width: 62.3%; top: 34.8%; height: 46%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: #14223A; }
.vl-rule { width: 9cqw; height: 1px; background: #14223A; opacity: .55; margin: 6cqw 0 0; }
.vl-kind { font: 500 3.2cqw/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; opacity: .7; }
.vl-drug { font: 400 8.6cqw/1.05 var(--sans); letter-spacing: -0.03em; margin-top: 2.4cqw; }
.vl-foot { font: 400 2.9cqw/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; opacity: .6; margin-top: 6cqw; }

/* Flat-price chart */
.flat-frame { border-radius: 32px; padding: 20px; background: var(--horizon-x); }
.flat-panel { background: var(--bg); border-radius: 22px; padding: 72px 48px 40px; text-align: center; }
.flat-panel h2 { margin-bottom: 18px; }
.flat-panel .sub { color: var(--muted); max-width: 520px; margin: 0 auto 28px; font-size: 17px; }
.chart-switch { display: flex; width: max-content; margin: 44px auto 0; padding: 4px; gap: 2px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); }
.chart-switch button { font: 500 14px/1 var(--sans); color: var(--muted); padding: 10px 18px; border: 0; border-radius: 999px; background: none; cursor: pointer; transition: color .2s, background .2s, box-shadow .2s; }
.chart-switch button:hover { color: var(--ink); }
.chart-switch button[aria-pressed="true"] { background: #fff; color: var(--blue); box-shadow: 0 1px 4px rgba(20,34,58,.12); }
.chart-switch button:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.chart { width: 100%; height: auto; margin-top: 28px; overflow: visible; }
.chart .stair { fill: none; stroke: #9AA3B2; stroke-width: 1.5; stroke-dasharray: 3 5; }
.chart .price-line { stroke: var(--blue); stroke-width: 2; fill: none; }
.chart .lab { font: 500 13px var(--sans); fill: var(--ink); }
.chart .axis { font: 13px var(--sans); fill: var(--muted); }
.chart .pill { fill: #fff; stroke: var(--line); }
.chart .guide { stroke: var(--line); stroke-dasharray: 2 4; }
.chart-note { color: var(--muted); font-size: 12px; text-align: center; margin: 14px auto 0; max-width: 760px; }
.chart-mob { display: none; }
.chart[hidden] { display: none !important; }
.chart .dose circle { fill: #182D4D; transition: fill .2s; }
.chart .dose.on circle { fill: var(--blue); }
.chart .dose.on .pill { stroke: var(--blue); }
.chart .dose.on .lab { fill: var(--blue); }
.chart .lock { color: #1D52D3; }
.chart .price-pill > rect { fill: #fff; stroke: #D8E2F7; }
.chart .price-pill text { font: 600 12.5px var(--sans); fill: #14223A; }
.chart-mob .price-pill text { font-size: 11.5px; }
.chart .price-pill.fixed { transition: opacity .25s ease; }
.chart .price-pill.fixed.covered { opacity: 0; }
.chart .price-pill.drag { cursor: grab; touch-action: none; outline: none; transition: transform .25s ease; }
.chart .price-pill.drag > rect { stroke: var(--blue); stroke-opacity: .45; }
.chart .price-pill.drag:hover > rect, .chart .price-pill.drag:focus-visible > rect { stroke-opacity: 1; }
.chart .price-pill.drag.grab { cursor: grabbing; transition: none; }
.chart .price-pill.drag.grab > rect { filter: drop-shadow(0 4px 8px rgba(29,82,211,.25)); }
.chart .clip-rect { transform-box: fill-box; transform-origin: left center; }
.chart .price-line { stroke-dasharray: 1; stroke-dashoffset: 0; }
.chart .price-pill { opacity: 1; }
.js .chart:not(.drawn) .clip-rect { transform: scaleX(0); }
.js .chart:not(.drawn) .price-line { stroke-dashoffset: 1; }
.js .chart:not(.drawn) .price-pill { opacity: 0; }
.js .chart .clip-rect { transition: transform 1.6s cubic-bezier(.45,.05,.25,1); }
.js .chart .price-line { transition: stroke-dashoffset 1.1s ease 1.4s; }
.js .chart .price-pill { transition: opacity .5s ease 2.2s; }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step { background: var(--card); border-radius: 24px; padding: 32px 28px; display: flex; flex-direction: column; text-align: center; }
.step h3 { margin-bottom: 0; }
.step .mini { height: 200px; display: grid; place-items: center; margin: 12px 0; }
.step p { color: var(--muted); font-size: 15px; max-width: 290px; margin: 0 auto; }
.ui { background: #fff; border-radius: 16px; box-shadow: var(--shadow); padding: 16px; width: 100%; max-width: 250px; text-align: left; }
.bar { height: 4px; border-radius: 4px; background: #ECEAE4; overflow: hidden; margin-bottom: 14px; }
.bar i { display: block; height: 100%; width: 30%; background: linear-gradient(90deg, #A9C3E8, #E8D3AE); border-radius: 4px; }
.row { display: flex; align-items: center; gap: 10px; }
.chk { width: 22px; height: 22px; border-radius: 50%; background: #EAF0FD; color: var(--blue); display: grid; place-items: center; font-size: 12px; flex: none; }
.ph { height: 8px; border-radius: 4px; background: #ECEAE4; }
.ui .ph + .ph { margin-top: 8px; }
.prov { width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 600; flex: none; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; padding: 5px 10px; border-radius: 999px; background: #EEF3EC; color: #2F5D3A; }
.chip.blue { background: #EAF0FD; color: var(--blue); }
.ship-vial { height: 64px; flex: none; margin: -6px -4px; }
.small { font-size: 12px; color: var(--muted); }

/* What's included: the whole bill */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.split h2 { margin: 14px 0 20px; }
.split-sub { color: var(--muted); font-size: 17px; max-width: 440px; margin: 0 0 30px; }
.receipt {
  background: #fff; border-radius: 22px 22px 6px 6px; padding: 30px 32px 30px; box-shadow: 0 30px 60px -36px rgba(20,34,58,.4);
  border: 1px solid var(--line); position: relative; max-width: 520px; width: 100%; justify-self: center;
  -webkit-mask: radial-gradient(circle 7px at 50% 100%, transparent 98%, #000) bottom / 18px 100% repeat-x;
  mask: radial-gradient(circle 7px at 50% 100%, transparent 98%, #000) bottom / 18px 100% repeat-x;
}
.rc-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.rc-title { font-family: var(--serif); font-size: 24px; }
.receipt .med-toggle { margin-top: 0; }
.rc-lines { list-style: none; padding: 0; margin: 0; border-top: 1px dashed #D9D5CC; }
.rc-lines li { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px dashed #D9D5CC; font-size: 15px; }
.rc-lines b { font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rc-lines li:not(:first-child) b { color: #2E7D5B; }
.rc-total { display: flex; justify-content: space-between; align-items: baseline; padding: 18px 0 6px; }
.rc-total span { font-weight: 600; }
.rc-total b { font-family: var(--serif); font-weight: 400; font-size: 44px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.rc-total b small { font: 400 15px var(--sans); color: var(--muted); }
.rc-foot { font-size: 12.5px; color: var(--muted); margin: 6px 0 8px; }

/* FAQ (<div class="faq"> is what the build reads for structured data) */
.faq-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 64px; }
.faq-head h2 { margin-bottom: 28px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 24px 40px 24px 0; font-size: 18px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 8px; height: 8px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: translateY(-75%) rotate(45deg); transition: transform .3s ease; }
.faq details[open] summary::after { transform: translateY(-25%) rotate(225deg); }
.faq details > p { color: var(--muted); padding: 0 40px 24px 0; font-size: 16px; margin: 0; }
.faq details::details-content { transition: height .35s ease, content-visibility .35s allow-discrete; height: 0; overflow: clip; }
.faq details[open]::details-content { height: auto; }
@supports (interpolate-size: allow-keywords) { :root { interpolate-size: allow-keywords; } }

/* Closing + footer: the painting's flat horizon stays visible between the CTA and the footer card */
.closing { margin: 0 12px 12px; border-radius: 28px; overflow: hidden; position: relative; background: linear-gradient(180deg, #B9AA88, #C9BB9B); padding: 0 var(--gutter); }
.closing::before {
  content: ""; position: absolute; inset: 0 0 auto 0; aspect-ratio: 1344 / 576;
  background: url("/assets/rd/horizon.webp") center top / 100% auto no-repeat;
  -webkit-mask-image: linear-gradient(180deg, #000 85%, transparent); mask-image: linear-gradient(180deg, #000 85%, transparent);
}
.closing-inner { position: relative; text-align: center; min-height: calc((100vw - 24px) * 576 / 1344 * .78); padding-top: clamp(64px, 6.5vw, 104px); }
.closing h2 { font-size: clamp(44px, 6vw, 76px); margin-bottom: 30px; }
.foot { max-width: 1320px; margin: 0 auto; background: var(--bg); border-radius: 28px 28px 0 0; padding: 48px 48px 40px; position: relative; }
.foot-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.foot-top .contact { margin-top: 16px; display: grid; gap: 4px; font-size: 14px; color: var(--muted); }
.foot h4 { font-family: var(--serif); font-weight: 400; font-size: 18px; margin: 0 0 14px; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 14px; color: var(--muted); }
.foot ul a:hover, .foot .contact a:hover { color: var(--ink); }
.foot-seal { margin-top: 18px; }
.foot-seal:empty { display: none; }
.foot-pages { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 28px 0 0; font-size: 13px; color: var(--muted); }
.foot-pages a:hover { color: var(--ink); }
.foot-bottom { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 24px; font-size: 14px; }
.legal { color: var(--muted); font-size: 12px; line-height: 1.6; margin-top: 16px; }

/* Treatment pages */
.tx { padding: 24px 0 72px; }
.tx-grid { display: grid; grid-template-columns: 1.1fr 1fr; grid-template-areas: "media buy" "media more"; column-gap: 56px; align-items: start; }
.tx-media { grid-area: media; position: sticky; top: 92px; }
.tx-buy { grid-area: buy; padding-top: 8px; }
.tx-more { grid-area: more; margin-top: 20px; }
.tx-vial { aspect-ratio: 1 / 1; border-radius: 28px; background: var(--horizon-x); display: grid; place-items: center; overflow: hidden; }
.tx-vial .vial { height: 78%; }
.tx-tag { display: inline-block; font: 500 11px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--blue); background: #EAF0FD; padding: 6px 10px; border-radius: 999px; margin-bottom: 14px; }
.tx h1 { font-size: clamp(38px, 4.2vw, 56px); }
.tx-sub { color: var(--muted); font-size: 16px; margin-top: 10px; }
.tx-label { font-size: 14px; font-weight: 500; margin: 26px 0 10px; }
.tx-len { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 999px; background: #EEEBE4; }
.tx-len button { border: 0; background: none; height: 40px; border-radius: 999px; font: 500 14.5px var(--sans); color: var(--muted); cursor: pointer; transition: background .2s, color .2s, box-shadow .2s; }
.tx-len button[aria-checked="true"] { background: #fff; color: var(--ink); box-shadow: 0 2px 8px -3px rgba(20,34,58,.25); }
.tx-card { margin-top: 20px; padding: 22px 24px 18px; border-radius: 22px; border: 1px solid transparent;
  background: linear-gradient(#fff, #fff) padding-box, linear-gradient(120deg, #BFD3F2, #EEF2F4 50%, #EAD9B8) border-box; text-align: center; }
.tx-price { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; }
.tx-price b { font-weight: 300; font-size: 44px; letter-spacing: -0.03em; line-height: 1; }
.tx-per { font-size: 13px; color: var(--muted); align-self: flex-end; margin-bottom: 5px; }
.tx-pay { display: inline-flex; gap: 8px; margin-left: 8px; align-items: center; }
.tx-pay img { height: 22px; width: auto; } .tx-pay .pay-klarna { border-radius: 5px; }
.tx-bill { font-size: 13px; color: var(--muted); margin: 8px 0 16px; }
.tx-go { width: 100%; }
.tx-checks { list-style: none; padding: 0; margin: 14px 0 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 18px; font-size: 12.5px; color: var(--muted); }
.tx-checks li { display: inline-flex; align-items: center; gap: 5px; }
.tx-checks svg { color: var(--blue); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list details:first-child { border-top: 1px solid var(--line); }
.faq-list summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; font-size: 15px; font-weight: 500; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary svg { flex: none; transition: transform .3s ease; }
.faq-list details[open] summary svg { transform: rotate(180deg); }
.faq-list .answer { color: var(--muted); font-size: 14.5px; padding: 0 0 18px; }
.tx-fine { font-size: 11.5px; color: #8A909A; margin-top: 18px; line-height: 1.5; }
.tx-chart { width: 100%; margin-top: 40px; overflow: visible; }
.tx-chart .axis { font: 500 13px var(--sans); fill: var(--muted); }
.tx-chart .guide { stroke: #CFD6E2; stroke-dasharray: 2 5; }
.tx-chart .stair { fill: none; stroke: #9AA3B2; stroke-width: 1.5; stroke-dasharray: 3 5; }
.tx-chart .pill { fill: #fff; stroke: #E1E5EC; }
.tx-chart .lab { font: 500 13px var(--sans); fill: #14223A; }
.tx-chart .price-line { stroke: var(--blue); stroke-width: 2; stroke-linecap: round; opacity: .55; }
.tx-chart .pp { fill: #fff; stroke: #D8E2F7; }
.tx-chart .ppt { font: 600 12.5px var(--sans); fill: #14223A; }
.tx-chart .lock { color: #1D52D3; }

/* Reveal (only with JS; without it everything is visible) */
.js .reveal { opacity: 0; transform: translateY(12px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 1100px) { .float-lock { right: 3%; } }
@media (max-width: 1024px) {
  .rd-nav { gap: 22px; }
  .hero .wrap { gap: 40px; }
  .split { gap: 48px; }
}
@media (max-width: 860px) {
  .rd-nav, .header-cta .btn-ghost { display: none; }
  .header-cta { margin-left: auto; }
  .burger { display: block; }
  .hero { padding: 20px 0 72px; }
  .hero .wrap, .products, .steps, .split, .faq-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-art { max-width: 560px; width: 100%; margin: 8px auto 0; }
  .faq-grid { gap: 24px; }
  .foot-top { grid-template-columns: 1fr 1fr; }
  .foot-top > :first-child { grid-column: 1 / -1; }
  .hero .wrap > .reveal:first-child { text-align: center; }
  .proof { justify-content: center; }
  .hero-pay { justify-content: center; }
  .hero-pay .pay-sep { display: none; }
  .hero-pay .proof { flex-basis: 100%; justify-content: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-prices { text-align: left; margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .tx-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "buy" "media" "more"; }
  .tx-media { position: static; margin-top: 20px; }
  .tx-buy { padding-top: 0; }
}
@media (max-width: 600px) {
  :root { --gutter: 16px; }
  .section { padding: 56px 0; }
  .rd-header .wrap { height: 64px; }
  .head { flex-direction: column; align-items: start; margin-bottom: 28px; }
  .head-center { align-items: center; }
  .hero { padding: 14px 0 48px; }
  .hero h1 { font-size: clamp(44px, 13.4vw, 60px); }
  .hero-sub { font-size: 17px; margin: 16px 0 20px; }
  .header-cta .btn { height: 40px; padding: 0 16px; font-size: 14px; }
  .proof { font-size: 13px; gap: 8px; }
  .avatars > * { width: 24px; height: 24px; }
  .hero-cta { gap: 18px; }
  .hero-cta .btn { flex: 1; }
  .hero-art { aspect-ratio: 1 / 1.08; }
  .hero-photo { top: 13%; }
  .float-lock { right: 4%; top: 5%; padding: 10px 12px; }
  .float-plan { width: 200px; left: 4%; bottom: 5%; }
  .fx-marquee-group { gap: 32px; padding: 9px 16px; }
  .fx-marquee-group li { font-size: 12px; }
  .hp-item { position: relative; }
  .hp-row { padding: 14px 14px; gap: 10px; grid-template-columns: 1fr 150px 14px; }
  .hp-name b { font-size: 19px; flex-direction: column; align-items: flex-start; gap: 6px; }
  .hp-name em { font-size: 9.5px; padding: 4px 6px; position: absolute; top: -9px; left: 14px; z-index: 1; box-shadow: 0 0 0 3px #fff; }
  .hp-extra { display: none; }
  .hp-price small { white-space: nowrap; }
  .hp-name small, .hp-price small { font-size: 11.5px; }
  .hp-price b { font-size: 30px; }
  .hp-panel-inner { grid-template-columns: 54px 1fr; gap: 10px; padding: 0 12px; }
  .hp-item.open .hp-panel-inner { padding: 2px 12px 14px; }
  .hp-vial { height: 104px; } .hp-vial .vial { height: 98px; }
  .hp-plans .plan-pick { gap: 6px; }
  .hp-plans .plan-opt { padding: 10px 9px 10px; }
  .hp-plans .po-amt { font-size: 24px; }
  .hp-plans .po-name { font-size: 9.5px; }
  .hp-plans .po-bill { font-size: 10.5px; }
  .product { padding: 24px 14px 16px; }
  .product .tag { position: static; margin-bottom: 14px; }
  .product h3 { font-size: 22px; }
  .vial-stage { height: 196px; margin: 14px 0 16px; } .vial-stage .vial { height: 190px; }
  .plan-pick { gap: 8px; margin-bottom: 14px; }
  .plan-opt { padding: 12px 12px 13px; border-radius: 14px; }
  .po-dot { top: 12px; right: 12px; width: 14px; height: 14px; }
  .plan-opt:has(input:checked) .po-dot { border-width: 4.5px; }
  .po-name { font-size: 10.5px; }
  .po-amt { font-size: 32px; }
  .po-bill { font-size: 11.5px; }
  .includes-line { font-size: 13px; }
  .flat-frame { padding: 10px; border-radius: 24px; }
  .flat-panel { padding: 48px 18px 28px; border-radius: 18px; }
  .chart { margin-top: 18px; }
  .chart-desk { display: none; } .chart-mob { display: block; }
  .chart-mob .lab { font-size: 11px; }
  .chart-switch { margin-top: 32px; }
  .chart-switch button { font-size: 13px; padding: 9px 14px; }
  .step { padding: 26px 18px 24px; border-radius: 20px; }
  .step .mini { height: 150px; margin: 6px 0; }
  .step p { font-size: 14.5px; }
  .split { gap: 32px; }
  .split .receipt { order: 2; }
  .split h2 { margin: 12px 0 24px; }
  .receipt { padding: 24px 18px 26px; }
  .rc-lines li { font-size: 14px; }
  .rc-total b { font-size: 38px; }
  .faq summary { font-size: 17px; padding: 20px 36px 20px 0; }
  .faq details > p { padding-right: 0; }
  .closing { margin: 0; padding: 0; border-radius: 24px 24px 0 0; }
  .closing::before { aspect-ratio: auto; height: 460px; background-size: auto 100%; background-position: 58% top; }
  .closing-inner { min-height: 370px; padding: 72px 16px 0; }
  .closing h2 { font-size: 40px; margin-bottom: 24px; }
  .foot { padding: 32px 20px 28px; border-radius: 22px 22px 0 0; }
  .tx { padding: 12px 0 48px; }
  .tx h1 { font-size: 34px; }
  .tx-sub { font-size: 15px; }
  .tx-label { margin-top: 20px; }
  .tx-card { padding: 18px 16px 16px; }
  .tx-price b { font-size: 38px; }
  .tx-pay { margin-left: 4px; gap: 6px; } .tx-pay img { height: 19px; }
  .tx-checks { gap: 6px 14px; font-size: 12px; }
  .tx-login { display: none !important; }
  .tx-chart { margin-top: 28px; }
  .tx-chart .lab, .tx-chart .axis { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .float { animation: none; }
  .fx-marquee-track { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .vial-stage .vial, .hp-panel, .hp-panel-inner, .hp-go { transition: none; }
  .js .chart .clip-rect, .js .chart .price-line, .js .chart .price-pill { transition: none; }
}
.fx-motion-paused .float { animation: none; }
h1, h2, h3, .closing h2 { text-wrap: balance; }

/* Phone hero, option A (11/17): no second Get started row under the header, photo on its own, both cards
   stacked under it (nothing laid over the picture), card text readable, no dead gap before Pricing. Phones only. */
@media (max-width: 600px) {
  .hero { padding-bottom: 8px; }
  .hero .wrap { gap: 28px; }
  .hero-cta { display: none; }
  .hero-art { aspect-ratio: auto; margin-top: 0; padding: 10px; border-radius: 24px; display: grid; gap: 10px; }
  .hero-photo { position: relative; inset: auto; aspect-ratio: 4 / 3; border-radius: 16px; box-shadow: none; }
  .hero-photo img { object-position: 50% 22%; }
  .float { position: static; width: auto; animation: none; border-radius: 16px; box-shadow: 0 10px 28px -18px rgba(20,34,58,.35); }
  .float-lock { padding: 14px 16px; gap: 14px; }
  .float-lock > div { flex: 1; min-width: 0; }
  .float-lock b { font-size: 15px; }
  .float-lock span { font-size: 13.5px; }
  .float-lock .med-toggle { margin-left: 6px; }
  .med-toggle button { font-size: 12.5px; padding: 7px 13px; }
  .float-plan { padding: 16px 18px 14px; }
  .float-plan .eyebrow { font-size: 11px; margin-bottom: 4px; }
  .med-toggle-text { gap: 16px; margin-bottom: 6px; }
  .med-toggle-text button { font-size: 13.5px; padding: 6px 0; }
  .plan-hint { font-size: 12.5px; margin-top: 4px; }
}

/* Five filled stars beside the faces (11/18 owner decision): a plain graphic, no score, no source, no link */
.proof-stars { display: inline-flex; align-items: center; gap: 2px; flex: none; }
.proof-stars svg { display: block; width: 16px; height: 16px; }

/* Phone hero option C (11/18): no dose-slider card; live words in the sky of the photo, never over the person */
.photo-line { display: none; }
@media (max-width: 600px) {
  .float-plan { display: none; }
  .hero-photo { aspect-ratio: 1 / 1; }
  .hero-photo img { object-position: 50% 0%; }
  .hero-art { display: block; }
  .float-lock { position: absolute; top: 26px; left: 28px; right: 28px; display: block; padding: 0; background: none; box-shadow: none; border-radius: 0; text-align: left; }
  .float-lock .ic { display: none; }
  .float-lock b { font-size: 27px; font-weight: 300; letter-spacing: -0.035em; line-height: 1.08; color: var(--ink); margin-bottom: 6px; }
  .float-lock span { font-size: 14.5px; color: var(--ink); }
  .float-lock .med-toggle { margin-left: 8px; background: rgba(255,255,255,.6); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
  .float-lock .med-toggle button { font-size: 12.5px; padding: 7px 13px; }
}

/* Phone hero CTA (11/20, owner): the same Get started button again on phones, full width, between the price card
   and the photo. Homepage only (the price card sits right before it); "How it works" stays desktop-only here. */
@media (max-width: 600px) {
  .hero-prices + .hero-cta { display: flex; margin-top: 18px; }
  .hero-prices + .hero-cta .btn { flex: 1 1 100%; width: 100%; height: 52px; font-size: 16px; }
  .hero-prices + .hero-cta .text-link { display: none; }
}

/* Homepage physicians (11/20, owner): Wasef Health, PC list, rounded-square photos, bio in a dialog.
   Same look as the /start/ draft's option 2r. */
.st-docs { padding: 80px 0; }
.st-docs .head-center { margin-bottom: 44px; }
.st-lede { color: var(--muted); font-size: 16px; max-width: 640px; margin: 4px auto 0; text-align: center; }
.st-note { color: var(--muted); font-size: 13px; text-align: center; margin-top: 24px; }
.st-doc-fine { max-width: 760px; margin: 22px auto 0; font-size: 12.5px; line-height: 1.55; }
.st-doc-fine a { text-decoration: underline; text-underline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.st-docs img { border-radius: 14px; object-fit: cover; background: var(--card); box-shadow: 0 8px 22px -8px rgba(20, 34, 58, .28); }
.dr-role { display: block; color: var(--blue); font-size: 13px; font-weight: 500; line-height: 1.35; }
.dr-cred { display: block; color: var(--muted); font-size: 13px; line-height: 1.45; }
.dv2-list { list-style: none; margin: 0 auto; padding: 0; max-width: 760px; border-top: 1px solid var(--line); }
.dv2-list li { border-bottom: 1px solid var(--line); }
.dv2-row { width: 100%; display: grid; grid-template-columns: 64px 1fr auto; gap: 22px; align-items: center; padding: 22px 6px; background: none; border: 0; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.dv2-row img { width: 64px; height: 64px; }
.dv2-name { display: block; font-size: 18px; font-weight: 500; letter-spacing: -0.015em; margin-bottom: 3px; }
.dv2-go { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--muted); transition: color .2s, transform .2s; }
/* the name stays dark on hover; only the arrow moves and turns blue, on devices that really hover */
@media (hover: hover) { .dv2-row:hover .dv2-go { color: var(--blue); transform: translateX(2px); } }
/* no focus ring after a tap (focus returns to the row when the bio closes); keyboard users keep :focus-visible */
html[data-input="pointer"] .st-docs button:focus-visible, html[data-input="pointer"] .st-docs button:focus { outline: none; }
.dr-dialog { border: 0; border-radius: 24px; padding: 34px 30px 26px; width: calc(100% - 32px); max-width: 560px; max-height: 86vh; overflow: auto; color: var(--ink); background: #fff; box-shadow: 0 30px 80px -20px rgba(20, 34, 58, .4); }
.dr-dialog::backdrop { background: rgba(20, 34, 58, .45); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
.dr-dialog-head { display: grid; grid-template-columns: 72px 1fr; gap: 18px; align-items: center; margin: 0 36px 20px 0; }
.dr-dialog-head img { width: 72px; height: 72px; }
.dr-dialog h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.015em; margin-bottom: 3px; }
.dr-aff { display: block; font-size: 12px; color: var(--muted); margin-top: 3px; }
.dr-dialog > p { color: var(--muted); font-size: 15.5px; line-height: 1.65; margin: 0 0 12px; }
.dr-close { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--card); color: var(--ink); font-size: 22px; line-height: 1; cursor: pointer; }
@media (max-width: 600px) {
  .st-docs { padding: 48px 0; }
  .st-docs .head-center { margin-bottom: 28px; }
  .dr-role, .dr-cred { font-size: 12.5px; }
  .dv2-row { grid-template-columns: 56px 1fr 16px; gap: 16px; padding: 18px 2px; }
  .dv2-row img { width: 56px; height: 56px; }
  .dv2-name { font-size: 16.5px; }
  .dv2-go-t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .dr-dialog { padding: 28px 22px 20px; border-radius: 22px; }
  .dr-dialog > p { font-size: 15px; }
}
