/* ============================================================================
   CHILLAXA® — mock pharma patient site
   ----------------------------------------------------------------------------
   ▸ BRAND TOKENS live in :root below. This is the ONLY block you need to touch
     when the real palette / type / style guide arrives. Everything downstream
     is expressed in these variables.
   ============================================================================ */

:root {

  /* ---- PLACEHOLDER PALETTE -------------------------------------------------
     Calm-clinical: deep night blue ground, mint + periwinkle actives.
     Swap these six and the whole site re-skins.                             */

  --c-ink:          #0a1024;   /* darkest ground / page bg                    */
  --c-ink-2:        #121a36;   /* raised surfaces                            */
  --c-ink-3:        #1c2748;   /* borders, hairlines                         */

  --c-brand:        #6ee7c8;   /* primary brand — mint                       */
  --c-brand-2:      #8fa8ff;   /* secondary brand — periwinkle               */
  --c-brand-3:      #ffd6a5;   /* tertiary accent — warm sand                */

  --c-text:         #e9eefc;   /* body copy on dark                          */
  --c-text-dim:     #9aa7c7;   /* secondary copy                             */
  --c-text-faint:   #6b7899;   /* legal / micro copy                         */
  --c-on-brand:     #06131d;   /* text on brand-filled surfaces              */

  /* ---- DOSE COLORS ---------------------------------------------------------
     One per strength. Drives both the 3D tablets (read by js/pill.js) and the
     dose cards. Imprints are struck into the surface, never inked, so these
     are the only colours a tablet has.                                       */

  --dose-5:         #F0BE3C;   /*  5 mg — crescent moon · yellow             */
  --dose-10:        #ED7CA2;   /* 10 mg — heart · pink                       */
  --dose-20:        #67C07A;   /* 20 mg — clover · green                     */
  --dose-40:        #4B90D6;   /* 40 mg — diamond · blue      (target dose)  */
  --dose-80:        #8A5FC7;   /* 80 mg — horseshoe · purple                 */

  /* ---- TYPE ------------------------------------------------------------- */
  --font-display: "Helvetica Neue", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body:    "Helvetica Neue", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono:    ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --fs-display: clamp(2.75rem, 7vw, 5.5rem);
  --fs-h2:      clamp(1.9rem, 3.6vw, 3.1rem);
  --fs-h3:      clamp(1.05rem, 1.5vw, 1.3rem);
  --fs-lede:    clamp(1.05rem, 1.5vw, 1.3rem);
  --fs-body:    clamp(0.97rem, 1.05vw, 1.06rem);
  --fs-micro:   0.775rem;

  /* ---- SPACE / SHAPE ---------------------------------------------------- */
  --shell:      1240px;
  --gutter:     clamp(1.25rem, 4vw, 3.5rem);
  --radius:     18px;
  --radius-sm:  10px;
  --radius-pill: 999px;

  --ease: cubic-bezier(.22, .8, .28, 1);
}

/* ============================================================================
   RESET / BASE
   ============================================================================ */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--c-ink);
  color: var(--c-text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  letter-spacing: -0.003em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ambient wash behind everything — keeps the dark ground from going flat */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(58% 44% at 78% 8%,  color-mix(in srgb, var(--c-brand-2) 22%, transparent), transparent 70%),
    radial-gradient(52% 40% at 12% 62%, color-mix(in srgb, var(--c-brand)   16%, transparent), transparent 72%),
    radial-gradient(70% 50% at 50% 108%, color-mix(in srgb, var(--c-brand-3) 12%, transparent), transparent 70%);
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.028em;
  line-height: 1.08;
  margin: 0 0 0.6em;
  text-wrap: balance;
}

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

sup { font-size: 0.5em; vertical-align: super; letter-spacing: 0; }

::selection { background: var(--c-brand); color: var(--c-on-brand); }

:focus-visible {
  outline: 2px solid var(--c-brand);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--c-brand); color: var(--c-on-brand);
  padding: .7rem 1.1rem; border-radius: 0 0 var(--radius-sm) 0;
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { left: 0; }

/* ============================================================================
   LAYOUT PRIMITIVES
   ============================================================================ */

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* split shell: copy occupies one half, the 3D pill lives in the other */
.shell--split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.panel-col--left  { grid-column: 1; }
.panel-col--right { grid-column: 2; }
.panel-col--center { max-width: 46rem; margin-inline: auto; text-align: center; }

.panel-col { max-width: 34rem; }
.panel-col--center { max-width: 46rem; }

/* ============================================================================
   PANELS (scroll sections)
   ============================================================================ */

.panel {
  position: relative;
  z-index: 2;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-block: clamp(6rem, 12vh, 9rem);
}

.panel--short { min-height: 60svh; }

.panel--hero {
  min-height: 100svh;
  text-align: center;
  /* pull the stack up so it clears the scroll cue + sticky ISI bar */
  padding-bottom: clamp(9rem, 22vh, 15rem);
}
.panel--hero .shell { display: flex; justify-content: center; }

/* ============================================================================
   TYPE BLOCKS
   ============================================================================ */

.display {
  font-size: var(--fs-display);
  line-height: 0.98;
  letter-spacing: -0.04em;
  margin-bottom: 0.45em;
}
.display-accent {
  background: linear-gradient(96deg, var(--c-brand), var(--c-brand-2) 55%, var(--c-brand-3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

h2 { font-size: var(--fs-h2); }
.h3, h3 { font-size: var(--fs-h3); font-weight: 700; }

.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-brand);
  border: 1px solid color-mix(in srgb, var(--c-brand) 38%, transparent);
  background: color-mix(in srgb, var(--c-brand) 10%, transparent);
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1.6rem;
}

.kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-brand-2);
  margin-bottom: 0.9rem;
}

.lede {
  font-size: var(--fs-lede);
  color: var(--c-text-dim);
  line-height: 1.6;
}

.micro {
  font-size: var(--fs-micro);
  line-height: 1.55;
  color: var(--c-text-faint);
  margin-top: 1.5rem;
}

/* ============================================================================
   BUTTONS
   ============================================================================ */

.btn {
  --btn-bg: transparent;
  --btn-fg: var(--c-text);
  --btn-bd: color-mix(in srgb, var(--c-text) 24%, transparent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: 0.9rem 1.55rem;
  border: 1px solid var(--btn-bd);
  border-radius: var(--radius-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: 600 0.925rem/1 var(--font-body);
  letter-spacing: -0.005em;
  text-decoration: none;
  cursor: pointer;
  transition: transform .35s var(--ease), background .3s, border-color .3s, box-shadow .3s;
}
.btn:hover { transform: translateY(-2px); }

.btn--primary {
  --btn-bg: var(--c-brand);
  --btn-fg: var(--c-on-brand);
  --btn-bd: var(--c-brand);
  box-shadow: 0 10px 30px -12px color-mix(in srgb, var(--c-brand) 70%, transparent);
}
.btn--primary:hover {
  box-shadow: 0 16px 40px -12px color-mix(in srgb, var(--c-brand) 85%, transparent);
}

.btn--ghost:hover {
  background: color-mix(in srgb, var(--c-text) 8%, transparent);
  border-color: color-mix(in srgb, var(--c-text) 40%, transparent);
}

.btn--sm { padding: 0.62rem 1.1rem; font-size: 0.83rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 2rem; }
.btn-row--center { justify-content: center; }
.panel--hero .btn-row { justify-content: center; }

/* ============================================================================
   HEADER
   ============================================================================ */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 90;
  transition: background .4s var(--ease), border-color .4s, backdrop-filter .4s,
              transform .45s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-stuck {
  background: color-mix(in srgb, var(--c-ink) 78%, transparent);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--c-ink-3);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 74px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  flex: 0 0 auto;
}
.brand-mark { width: 34px; height: 28px; flex: 0 0 auto; }
.brand-mark img { width: 100%; height: 100%; object-fit: contain; }
.brand-word {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
  margin: 0;
}
.brand-word img { display: block; height: 1.1em; width: auto; }

.site-nav {
  display: flex;
  gap: 1.5rem;
  margin-left: auto;
  font-size: 0.845rem;
}
.site-nav a {
  color: var(--c-text-dim);
  text-decoration: none;
  padding-block: 0.35rem;
  border-bottom: 1px solid transparent;
  transition: color .25s, border-color .25s;
  white-space: nowrap;
}
.site-nav a:hover,
.site-nav a.is-active { color: var(--c-text); border-bottom-color: var(--c-brand); }

.header-cta { display: flex; gap: 0.6rem; flex: 0 0 auto; }

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 42px; height: 42px;
  background: none;
  border: 1px solid var(--c-ink-3);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 11px 10px;
}
.nav-toggle span {
  display: block; height: 2px; border-radius: 2px;
  background: var(--c-text);
  transition: transform .3s var(--ease), opacity .2s;
}
.nav-toggle span + span { margin-top: 5px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.5rem var(--gutter) 1.5rem;
  background: color-mix(in srgb, var(--c-ink) 96%, transparent);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--c-ink-3);
}
.mobile-nav a {
  color: var(--c-text-dim);
  text-decoration: none;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--c-ink-3);
}
.mobile-nav .btn { margin-top: 1rem; border-bottom: 0; }

/* ============================================================================
   3D PILL STAGE
   ============================================================================ */

#pill-stage {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
#pill-stage canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

/* ============================================================================
   SCROLL PROGRESS RAIL
   ============================================================================ */

.progress-rail {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 95;
  background: color-mix(in srgb, var(--c-text) 8%, transparent);
}
#progress-fill {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--c-brand), var(--c-brand-2), var(--c-brand-3));
  transition: width .12s linear;
}

/* ============================================================================
   REVEAL ANIMATION
   ============================================================================ */

.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-in { opacity: 1; transform: none; }

/* ============================================================================
   SCROLL CUE
   ============================================================================ */

.scroll-cue {
  position: absolute;
  left: 50%; bottom: 6.5rem;   /* clears the sticky ISI bar */
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.7rem;
  font-size: 0.72rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--c-text-faint);
  transition: opacity .5s;
}
.scroll-cue i {
  width: 1px; height: 42px;
  background: linear-gradient(var(--c-brand), transparent);
  animation: cue 2.6s var(--ease) infinite;
  transform-origin: top;
}
@keyframes cue {
  0%, 100% { transform: scaleY(.35); opacity: .4; }
  50%      { transform: scaleY(1);   opacity: 1;  }
}
body.is-scrolled .scroll-cue { opacity: 0; }

/* ============================================================================
   CONTENT COMPONENTS
   ============================================================================ */

/* — tick list — */
.ticklist { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; gap: 0.85rem; }
.ticklist li {
  position: relative;
  padding-left: 2rem;
  color: var(--c-text-dim);
}
.ticklist li::before {
  content: "";
  position: absolute; left: 0; top: 0.52em;
  width: 1.05rem; height: 1.05rem;
  border-radius: 50%;
  background: color-mix(in srgb, var(--c-brand) 18%, transparent);
  border: 1px solid color-mix(in srgb, var(--c-brand) 55%, transparent);
}
.ticklist li::after {
  content: "";
  position: absolute; left: 0.32rem; top: 0.78em;
  width: 0.42rem; height: 0.22rem;
  border-left: 1.6px solid var(--c-brand);
  border-bottom: 1.6px solid var(--c-brand);
  transform: rotate(-45deg);
}

/* — fact grid — */
.factgrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 2rem 0;
}
.fact {
  background: color-mix(in srgb, var(--c-ink-2) 93%, transparent);
  border: 1px solid var(--c-ink-3);
  border-radius: var(--radius);
  padding: 1.15rem 1rem;
  backdrop-filter: blur(8px);
}
.fact-num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.95rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--c-brand);
}
.fact-num small { font-size: 0.44em; font-weight: 700; margin-left: 0.12em; }
.fact-label {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--c-text-faint);
}

/* — numbered steps — */
.steps { list-style: none; padding: 0; margin: 1.8rem 0 0; display: grid; gap: 1.15rem; }
.steps li { display: flex; gap: 1rem; align-items: flex-start; }
.step-n {
  flex: 0 0 auto;
  width: 2.2rem; height: 2.2rem;
  display: grid; place-items: center;
  border-radius: 50%;
  background: color-mix(in srgb, var(--c-brand-2) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--c-brand-2) 45%, transparent);
  color: var(--c-brand-2);
  font: 700 0.85rem/1 var(--font-mono);
}
.steps h3 { margin: 0.15rem 0 0.3rem; font-size: 1.02rem; }
.steps p { margin: 0; color: var(--c-text-dim); font-size: 0.94rem; }

/* — stat cards — */
.statcards { display: grid; gap: 0.75rem; margin: 1.9rem 0; }
.statcard {
  display: flex; gap: 1.1rem; align-items: flex-start;
  background: color-mix(in srgb, var(--c-ink-2) 93%, transparent);
  border: 1px solid var(--c-ink-3);
  border-left: 3px solid var(--c-brand);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  backdrop-filter: blur(8px);
}
.statcard-num {
  flex: 0 0 auto;
  font-family: var(--font-display);
  font-size: 2rem; font-weight: 800; line-height: 1;
  letter-spacing: -0.045em;
  color: var(--c-brand);
  min-width: 4.2rem;
}
.statcard-num small { font-size: 0.45em; }
.statcard p { margin: 0; font-size: 0.9rem; color: var(--c-text-dim); }

/* — chart — */
.chartblock {
  background: color-mix(in srgb, var(--c-ink-2) 93%, transparent);
  border: 1px solid var(--c-ink-3);
  border-radius: var(--radius);
  padding: 1.4rem;
  backdrop-filter: blur(8px);
}
.chart-title { font-size: 0.8rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--c-text-dim); margin-bottom: 1.2rem; }
.chart {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.6rem;
  height: 170px;
  align-items: end;
}
.bar-group {
  display: flex; align-items: flex-end; justify-content: center; gap: 4px;
  height: 100%;
  position: relative;
}
.bar-group em {
  position: absolute; bottom: -1.5rem; left: 0; right: 0;
  text-align: center; font-style: normal;
  font-size: 0.68rem; color: var(--c-text-faint);
}
.bar {
  width: 30%;
  height: 0;
  border-radius: 5px 5px 2px 2px;
  transition: height 1.1s var(--ease);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.is-in .bar { height: var(--h); }
.bar--drug    { background: linear-gradient(var(--c-brand), color-mix(in srgb, var(--c-brand) 45%, transparent)); }
.bar--placebo { background: color-mix(in srgb, var(--c-text) 16%, transparent); }
.chart-legend {
  display: flex; gap: 1.4rem; flex-wrap: wrap;
  margin-top: 2.4rem;
  font-size: 0.78rem; color: var(--c-text-dim);
}
.chart-legend span { display: inline-flex; align-items: center; gap: 0.45rem; }
.swatch { width: 11px; height: 11px; border-radius: 3px; }
.swatch--drug { background: var(--c-brand); }
.swatch--placebo { background: color-mix(in srgb, var(--c-text) 20%, transparent); }

/* — callout — */
.callout {
  background: color-mix(in srgb, var(--c-brand-3) 9%, transparent);
  border: 1px solid color-mix(in srgb, var(--c-brand-3) 32%, transparent);
  border-radius: var(--radius);
  padding: 1.15rem 1.35rem;
  margin: 1.7rem 0;
}
.callout h3 { color: var(--c-brand-3); margin-bottom: 0.4rem; font-size: 0.98rem; }
.callout p { margin: 0; font-size: 0.92rem; color: var(--c-text-dim); }

/* — dose table — */
.dose-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.6rem;
  font-size: 0.87rem;
}
.dose-table caption {
  text-align: left;
  font-size: 0.72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--c-text-faint);
  padding-bottom: 0.7rem;
}
.dose-table th, .dose-table td {
  text-align: left;
  padding: 0.72rem 0.7rem;
  border-bottom: 1px solid var(--c-ink-3);
}
.dose-table thead th {
  font-size: 0.7rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--c-brand-2);
  border-bottom-color: color-mix(in srgb, var(--c-brand-2) 35%, transparent);
}
.dose-table td { color: var(--c-text-dim); }
.dose-table td:first-child { color: var(--c-text); font-family: var(--font-mono); font-size: 0.82rem; }

/* — ISI block (in-page) — */
.isi-block {
  background: color-mix(in srgb, var(--c-ink-2) 93%, transparent);
  border: 1px solid var(--c-ink-3);
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem;
  margin-top: 1.6rem;
  backdrop-filter: blur(8px);
}
.isi-block h3 {
  font-size: 0.79rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--c-brand);
  margin: 1.6rem 0 0.7rem;
}
.isi-block h3:first-child { margin-top: 0; }
.isi-block ul { margin: 0 0 0.4rem; padding-left: 1.15rem; display: grid; gap: 0.5rem; }
.isi-block li { color: var(--c-text-dim); font-size: 0.9rem; }
.isi-block li::marker { color: var(--c-brand-2); }
.isi-block p { font-size: 0.9rem; color: var(--c-text-dim); }
.isi-block strong { color: var(--c-text); }
.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; column-gap: 1.4rem !important; }

/* — full-width ISI (three reading columns, like a printed panel) —
   The block spans the whole shell, so it lines up with .header-inner rather
   than sitting inside a half-width copy column. */
.isi-block--wide { padding: clamp(1.4rem, 2.4vw, 2.2rem); }

.isi-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.6rem, 3vw, 2.8rem);
  align-items: start;
}
.isi-col > *:first-child { margin-top: 0; }
.isi-col p { margin-bottom: 0.85em; }
.isi-col p:last-child { margin-bottom: 0; }
.isi-col ul { margin-bottom: 0.95rem; }

.isi-lede { margin-top: 0.2rem; }

/* the one section that is not a joke gets a border around it */
.isi-callout {
  border: 1px solid color-mix(in srgb, var(--c-brand) 45%, transparent);
  background: color-mix(in srgb, var(--c-brand) 8%, transparent);
  border-radius: var(--radius);
  padding: 1.15rem 1.3rem;
  margin-bottom: 1.9rem;
}
.isi-callout h3 { margin-top: 0; }
.isi-callout-line {
  margin: 1rem 0 0;
  padding-top: 0.9rem;
  border-top: 1px solid color-mix(in srgb, var(--c-brand) 28%, transparent);
  font-family: var(--font-display);
  font-size: 1rem !important;
  color: var(--c-text) !important;
  line-height: 1.35;
}

.isi-pi {
  margin-top: 1.6rem;
  font-size: 0.8rem !important;
  font-style: italic;
  color: var(--c-text-faint) !important;
}

/* — savings card — */
.savings-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem 1.35rem;
  margin: 1.9rem 0;
  color: var(--c-on-brand);
  background:
    linear-gradient(135deg, var(--c-brand) 0%, var(--c-brand-2) 62%, var(--c-brand-3) 130%);
  box-shadow: 0 24px 60px -28px color-mix(in srgb, var(--c-brand) 80%, transparent);
}
.savings-card::after {
  content: "";
  position: absolute; inset: -40% -10% auto auto;
  width: 60%; aspect-ratio: 1;
  background: radial-gradient(circle, rgba(255,255,255,.4), transparent 62%);
  pointer-events: none;
}
.savings-card-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.savings-brand { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.02em; font-size: 1rem; }
.savings-mark { width: 34px; height: 28px; opacity: .8; }
.savings-mark img { width: 100%; height: 100%; object-fit: contain; }
.savings-amount {
  font-family: var(--font-display);
  font-size: 3.1rem; font-weight: 800; letter-spacing: -0.05em; line-height: 1;
  margin: 1.1rem 0 0.2rem;
}
.savings-amount span { display: block; font-size: 0.235em; font-weight: 700; letter-spacing: 0.02em; opacity: .72; margin-top: .35rem; }
.savings-meta {
  display: flex; flex-wrap: wrap; gap: 1.4rem;
  margin: 1.2rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
}
.savings-meta dt { opacity: .6; text-transform: uppercase; letter-spacing: .09em; font-size: 0.62rem; }
.savings-meta dd { margin: 0.2rem 0 0; font-weight: 700; }
.savings-fine { margin: 1rem 0 0; font-size: 0.7rem; opacity: .62; }

/* — question box — */
.qbox {
  text-align: left;
  background: color-mix(in srgb, var(--c-ink-2) 93%, transparent);
  border: 1px solid var(--c-ink-3);
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem;
  margin: 2rem auto 0;
  max-width: 34rem;
  backdrop-filter: blur(8px);
}
.qbox-title { font-size: 0.74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--c-brand-2); margin-bottom: 0.9rem; }
.qbox ul { margin: 0; padding-left: 1.1rem; display: grid; gap: 0.6rem; }
.qbox li { color: var(--c-text-dim); font-size: 0.93rem; }
.qbox li::marker { color: var(--c-brand); }

/* — dose ladder —
   Five strengths, differentiated by geometry and colour. The shape icons are
   painted by js/pill.js from the same outlines the 3D tablets are built from,
   so the cards can never drift out of sync with what's tumbling behind them. */

.panel-col--wide { max-width: none; }

.doselab {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 1fr);
  gap: clamp(1.2rem, 2.5vw, 2rem);
  align-items: start;
  margin-top: 1.7rem;
  text-align: left;
}

.dosegrid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.7rem;
}

.dosecard {
  position: relative;
  display: flex;
  flex-direction: column;
  background: color-mix(in srgb, var(--c-ink-2) 93%, transparent);
  border: 1px solid var(--c-ink-3);
  border-radius: var(--radius);
  padding: 1.1rem 0.9rem 0.9rem;
  backdrop-filter: blur(8px);
  transition: transform .4s var(--ease), border-color .3s;
}
.dosecard:hover { transform: translateY(-4px); }

.dosecard--target {
  border-color: color-mix(in srgb, var(--dose-40) 55%, transparent);
  background:
    linear-gradient(color-mix(in srgb, var(--dose-40) 12%, transparent), transparent 55%),
    color-mix(in srgb, var(--c-ink-2) 93%, transparent);
}

.dose-flag {
  position: absolute;
  top: -0.62rem;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--c-on-brand);
  background: var(--dose-40);
  border-radius: var(--radius-pill);
  padding: 0.22rem 0.7rem;
}

.dose-mg {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  text-align: center;
  margin: 0;
}
.dose-kind {
  text-align: center;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--c-text-faint);
  margin: 0.35rem 0 0;
  line-height: 1.4;
}

/* the shape itself */
.dose-shape {
  display: grid;
  place-items: center;
  padding: 0.8rem 0.3rem;
  margin-top: auto;
}
.dose-shape svg,
.dose-shape img {
  width: 100%;
  max-width: 108px;
  height: auto;
  overflow: visible;
  filter:
    drop-shadow(0 0 18px color-mix(in srgb, currentColor 55%, transparent))
    drop-shadow(0 6px 10px rgba(0, 0, 0, .45));
}

.dose-note {
  margin: auto 0 0;
  padding-top: 0.9rem;
  border-top: 1px solid var(--c-ink-3);
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--c-text-dim);
  text-align: center;
}
.dose-code {
  display: block;
  margin-top: 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--c-text-faint);
}
.dose-code b { color: var(--c-text-dim); font-weight: 700; }

/* per-dose colour hookup — `currentColor` feeds both the icon fill and glow */
.dosecard[data-dose="5"]  { color: var(--dose-5); }
.dosecard[data-dose="10"] { color: var(--dose-10); }
.dosecard[data-dose="20"] { color: var(--dose-20); }
.dosecard[data-dose="40"] { color: var(--dose-40); }
.dosecard[data-dose="80"] { color: var(--dose-80); }
.dosecard .dose-mg { color: currentColor; }

/* titration + missed-dose row, below the ladder */
.doserow {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(1.4rem, 3vw, 2.6rem);
  align-items: start;
  text-align: left;
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: clamp(1.6rem, 3vw, 2.4rem);
  border-top: 1px solid var(--c-ink-3);
}
.doserow p { font-size: 0.92rem; color: var(--c-text-dim); }
.doserow-title {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}
.doserow .dose-table { margin-top: 1.2rem; }
.doserow .callout { margin-top: 0; }

/* administration rail */
.doseadmin {
  background: color-mix(in srgb, var(--c-ink-2) 93%, transparent);
  border: 1px solid var(--c-ink-3);
  border-radius: var(--radius);
  padding: 1.3rem 1.4rem;
  backdrop-filter: blur(8px);
}
.doseadmin h3 {
  font-size: 0.7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--c-brand-2);
  margin-bottom: 1rem;
}
.doseadmin ul { margin: 0; padding-left: 1.05rem; display: grid; gap: 0.6rem; }
.doseadmin li { font-size: 0.82rem; line-height: 1.45; color: var(--c-text-dim); }
.doseadmin li::marker { color: var(--dose-40); }
.doseadmin .micro { margin-top: 1.05rem; padding-top: 0.85rem; border-top: 1px solid var(--c-ink-3); }
.doseadmin h3 { margin-bottom: 0.85rem; }

#dosing { padding-block: 7rem 9rem; }
#dosing h2 { margin-bottom: 0.35em; }

/* — hcp band — */
.hcp-band {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.8rem; flex-wrap: wrap;
  text-align: left;
  background: color-mix(in srgb, var(--c-ink-2) 93%, transparent);
  border: 1px solid var(--c-ink-3);
  border-radius: var(--radius);
  padding: 1.7rem 1.9rem;
  backdrop-filter: blur(10px);
}
.hcp-band h2 { margin-bottom: 0.3rem; }
.hcp-band p { margin: 0; color: var(--c-text-dim); font-size: 0.93rem; }

/* ============================================================================
   FOOTER
   ============================================================================ */

.site-footer {
  position: relative;
  z-index: 2;
  background: color-mix(in srgb, var(--c-ink) 92%, #000);
  border-top: 1px solid var(--c-ink-3);
  padding: clamp(3rem, 7vw, 5rem) 0 9rem; /* bottom room for the sticky ISI bar */
}
.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: clamp(2rem, 5vw, 4rem);
  padding-bottom: 2.6rem;
  border-bottom: 1px solid var(--c-ink-3);
}
.footer-brand .brand-mark { width: 42px; height: 35px; margin-bottom: 0.8rem; }
.footer-brand .brand-word { font-size: 1.2rem; margin: 0 0 0.25rem; }
.footer-tagline { font-size: 0.8rem; color: var(--c-text-faint); margin: 0; }

.footer-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.6rem; }
.footer-nav h3 {
  font-size: 0.7rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--c-brand-2); margin-bottom: 0.9rem;
}
.footer-nav a {
  display: block;
  font-size: 0.85rem;
  color: var(--c-text-dim);
  text-decoration: none;
  padding: 0.28rem 0;
  transition: color .2s;
}
.footer-nav a:hover { color: var(--c-brand); }

.footer-legal { padding-top: 2.2rem; max-width: 62rem; }
.footer-legal p { font-size: 0.78rem; line-height: 1.6; color: var(--c-text-faint); }
.footer-legal strong { color: var(--c-text-dim); }
.footer-meta { font-family: var(--font-mono); font-size: 0.7rem !important; }

/* ============================================================================
   STICKY ISI BAR
   ============================================================================ */

.isi-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 95;
  background: color-mix(in srgb, var(--c-ink-2) 94%, transparent);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-top: 1px solid var(--c-ink-3);
  box-shadow: 0 -18px 50px -30px #000;
  transition: transform .5s var(--ease);
  /* open, the drawer fills the screen: the toggle keeps its natural height and
     the scroll area shrinks into whatever is left. */
  display: flex;
  flex-direction: column;
  max-height: 100svh;
}
.isi-bar.is-hidden { transform: translateY(102%); }

/* the bar is full-bleed, but its contents ride the same shell as .header-inner */
.isi-inner {
  padding-inline: var(--gutter);
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.isi-toggle {
  width: 100%;
  flex: 0 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  padding: 0.72rem 0;
  background: none;
  border: 0;
  color: var(--c-text);
  cursor: pointer;
  font: 700 0.78rem/1 var(--font-body);
  letter-spacing: .1em;
  text-transform: uppercase;
}
.isi-toggle-label { color: var(--c-brand); }
.isi-toggle-icon {
  width: 10px; height: 10px;
  border-right: 2px solid var(--c-text-dim);
  border-bottom: 2px solid var(--c-text-dim);
  transform: rotate(-135deg);
  transition: transform .35s var(--ease);
  margin-bottom: 3px;
}
.isi-toggle[aria-expanded="true"] .isi-toggle-icon { transform: rotate(45deg); margin-bottom: -2px; }

.isi-scroll {
  max-height: 74px;
  min-height: 0;
  overflow-y: auto;
  padding: 0 0 0.9rem;
  font-size: 0.79rem;
  line-height: 1.55;
  color: var(--c-text-dim);
  transition: max-height .45s var(--ease);
  overscroll-behavior: contain;
}
.isi-scroll p { margin-bottom: 0.7rem; }
.isi-scroll strong { color: var(--c-text); }
/* the bar's own max-height does the clamping, so the scroll area lands at
   exactly the viewport minus the toggle row */
.isi-bar.is-open .isi-scroll { max-height: 100svh; }

/* a full-height drawer owns the screen — the fixed header gets out of its way */
body.isi-open .site-header { transform: translateY(-100%); }

/* the full ISI cloned in from the safety panel — one column, since the bar is
   a 340px window you scroll rather than a page you scan */
.isi-scroll .isi-grid { display: block; }
.isi-scroll h3 {
  font-size: 0.72rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--c-brand);
  margin: 1.2rem 0 0.5rem;
}
.isi-scroll > *:first-child { margin-top: 0; }
.isi-scroll .isi-col:first-child h3:first-child { margin-top: 0; }
.isi-scroll .isi-col + .isi-col { margin-top: 1.1rem; }
.isi-scroll ul {
  margin: 0 0 0.7rem;
  padding-left: 1.05rem;
  display: grid;
  gap: 0.3rem;
}
.isi-scroll li::marker { color: var(--c-brand-2); }
.isi-scroll .isi-callout { padding: 0.9rem 1.05rem; margin: 1.2rem 0; }
.isi-scroll .isi-callout-line { font-size: 0.88rem !important; }
.isi-scroll .isi-pi { margin-top: 1.1rem; font-size: 0.74rem !important; }

/* ============================================================================
   RESPONSIVE
   ============================================================================ */

@media (max-width: 1080px) {
  .site-nav { display: none; }
  .header-cta { display: none; }
  .nav-toggle { display: block; }
  .site-header.is-open .mobile-nav { display: flex; }

  /* the ISI's third column carries the boxed emergency copy — pull it up first */
  .isi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .isi-col:last-child { grid-column: span 2; }
}

@media (max-width: 860px) {
  /* single column — copy stacks below a smaller pill, which JS pushes upward */
  .shell--split { grid-template-columns: minmax(0, 1fr); }
  .panel-col--left,
  .panel-col--right { grid-column: 1; }
  .panel-col { max-width: none; }

  /* The pill owns the top ~40% of a phone screen, so the copy is pinned to the
     bottom of each viewport-tall panel and the two never fight for the middle. */
  .panel {
    min-height: 100svh;
    align-items: flex-end;
    padding-block: 5rem 8.5rem;   /* bottom clears the sticky ISI bar */
  }
  .panel--hero { align-items: center; padding-bottom: 9rem; }
  .panel--short { min-height: auto; padding-block: 4rem 8.5rem; }

  /* the hero stack already fills a phone screen — the cue would collide */
  .scroll-cue { display: none; }

  .factgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem; }
  .fact { padding: 0.9rem 0.75rem; }
  .fact-num { font-size: 1.5rem; }

  .footer-top { grid-template-columns: minmax(0, 1fr); }
  .footer-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  /* dose ladder stacks: cards go two-up, admin rail drops below */
  .doselab { grid-template-columns: minmax(0, 1fr); }
  .dosegrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dosecard[data-dose="80"] { grid-column: span 2; }   /* fills the odd slot */
  .doserow { grid-template-columns: minmax(0, 1fr); }
  .dose-shape { padding: 1rem 0.3rem; }

  /* the ISI is far taller than a phone screen — let the panel grow instead */
  .isi-grid { grid-template-columns: minmax(0, 1fr); }
  .isi-col:last-child { grid-column: 1; }
  #safety { min-height: auto; align-items: center; padding-block: 5rem 8.5rem; }
}

@media (max-width: 560px) {
  .statcard { flex-direction: column; gap: 0.5rem; }
  .cols-2 { grid-template-columns: minmax(0, 1fr) !important; }
  .chart { height: 130px; }
  .savings-amount { font-size: 2.5rem; }
  .hcp-band { flex-direction: column; align-items: flex-start; }
  .dose-table { font-size: 0.8rem; }
  .dose-table th, .dose-table td { padding: 0.6rem 0.4rem; }
}

/* ============================================================================
   REDUCED MOTION
   ============================================================================ */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .bar { transition: none; height: var(--h); }
  .scroll-cue i { animation: none; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
}
