/* ============================================================
   Lately — main stylesheet
   Design source: Figma "Lately" → section "Home-2 · (makeover)" (1440px reference)
   + BUILD-BRIEF v2 (2026-09-07): 1200px channel, 120px rhythm, 85% collages,
   story bubble reveals, two-stage chart draw, colour-fade hovers.
   Shared by the home page and /medications/* (which layer css/product.css on top).
   ============================================================ */

/* ---------- Fonts (Stack Sans, SIL OFL — self-hosted) ---------- */
@font-face {
  font-family: "Stack Sans Headline";
  font-style: normal;
  font-weight: 200 700;
  font-display: swap;
  src: url("/assets/fonts/stack-sans-headline-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;
}
@font-face {
  font-family: "Stack Sans Headline";
  font-style: normal;
  font-weight: 200 700;
  font-display: swap;
  src: url("/assets/fonts/stack-sans-headline-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Stack Sans Text";
  font-style: normal;
  font-weight: 200 700;
  font-display: swap;
  src: url("/assets/fonts/stack-sans-text-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;
}
@font-face {
  font-family: "Stack Sans Text";
  font-style: normal;
  font-weight: 200 700;
  font-display: swap;
  src: url("/assets/fonts/stack-sans-text-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Tokens (Figma "Colors" page) ---------- */
:root {
  --cream: #fefaef;          /* home canvas */
  --milk: #f6f1e7;           /* product-page canvas */
  --ink: #211d18;            /* Late night — type */
  --orange: #de4f2b;         /* Pulse — CTAs, accents */
  --orange-hover: #fc7c5c;   /* Figma "Header / hover" */
  --navy: #333f63;           /* Dusk */
  --navy-hover: #202840;
  --linen: #efe4cf;          /* cards, chips */
  --linen-hover: #fae5bd;
  --cream-on-image: #faf2e7; /* hovered treatment-card text over the blurred wash */
  --evergreen: #31493b;      /* clinical trust — eyebrow text, journey dots */
  --pulse-ink: #a73820;      /* the darker Pulse (journal.css --jr-pulse-ink): Pulse words at AA on cream and Linen */
  --golden: #e9a05d;         /* Golden hour */
  --rule: rgba(70, 77, 132, 0.25);
  --white: #ffffff;

  /* Ink at the opacities the designs use for secondary text */
  --ink-85: rgba(33, 29, 24, 0.85);
  --ink-75: rgba(33, 29, 24, 0.75);
  --ink-70: rgba(33, 29, 24, 0.7);
  --ink-65: rgba(33, 29, 24, 0.65);
  --ink-55: rgba(33, 29, 24, 0.55);
  --ink-50: rgba(33, 29, 24, 0.5);

  --font-headline: "Stack Sans Headline", "Helvetica Neue", Arial, sans-serif;
  --font-text: "Stack Sans Text", "Helvetica Neue", Arial, sans-serif;

  --gutter: 20px;
  --radius: 20px;                 /* cards */
  --radius-pill: 100px;           /* pills / buttons */
  --radius-thumb: 12px;           /* small thumbs */
  --header-h: clamp(72px, 9vh, 106px);

  /* Layout system (BUILD-BRIEF v2). The hero stays full-bleed inside the 20px
     gutter; EVERYTHING below it sits in a 1200px channel (x 120→1320 at 1440)
     with a 120px rhythm between blocks (72px on phones), measured to the
     visible content edges. Collages are centred inside the channel with shared 64px gaps. Use `.channel` on each block (never
     nested) — see the utility below. */
  --channel: 1200px;
  --rhythm: 120px;
  --collage-gap: 64px;

  /* Hover = a colour fade, never a snap (Figma "Header / hover"): 300ms ease on
     background-color + color, no lifts/shadows. Apply with `transition: var(--fade)`. */
  --fade-duration: 0.3s;
  --fade: background-color var(--fade-duration) ease, color var(--fade-duration) ease;

  /* Type scale — designed px in the comment; clamps cap display sizes on phones */
  --size-display: clamp(2.5rem, 5.4vw, 4.875rem);     /* 78px — FAQ title */
  --size-display-md: clamp(2.5rem, 4.6vw, 4.125rem);   /* 66px — glow headline */
  --size-display-sm: clamp(2.25rem, 4.45vw, 4rem);     /* 64px — treatments headline */
  --size-hero: clamp(2.5rem, 5vw, 4.5rem);             /* 72px */
  --size-h2: clamp(2rem, 3.6vw, 3.25rem);              /* 52px */
  --size-h3: clamp(1.5rem, 2.5vw, 2.25rem);            /* 36px */
  --size-card-name: clamp(1.25rem, 2.22vw, 2rem);      /* 32px — how titles, story pills */
  --size-product-name: clamp(1.125rem, 1.95vw, 1.75rem); /* 28px — treatment card names */
  --size-body-lg: clamp(1.125rem, 1.7vw, 1.5rem);      /* 24px */
  --size-body: clamp(1.0625rem, 1.53vw, 1.375rem);     /* 22px — how copy */
  --size-body-sm: clamp(1rem, 1.39vw, 1.25rem);        /* 20px — stats copy */
  --size-answer: clamp(1rem, 1.25vw, 1.125rem);        /* 18px — FAQ answers */

  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-text);
  font-weight: 200;
  font-size: var(--size-body-lg);
  line-height: 1.4;
  overflow-x: clip;
}

h1, h2, h3, p, dl, dd, figure, ul, ol, hr { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
strong { font-weight: 400; }

.skip-link {
  position: absolute;
  left: 50%;
  top: 8px;
  transform: translate(-50%, -300%);
  background: var(--ink);
  color: var(--cream);
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  z-index: 100;
  transition: transform 0.25s var(--ease-out);
}
.skip-link:focus { transform: translate(-50%, 0); }

/* Outlines follow the element's own radius (pills stay pills) — no radius override here */
:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}
/* orange outline is invisible on orange/cream-on-photo controls */
.btn:focus-visible, .support-bar:focus-visible { outline-color: var(--ink); }

.accent { color: var(--orange); }

/* Copy that is still to be written (kept verbatim from the design) */
.is-placeholder { opacity: 0.55; font-style: italic; }

/* Visually hidden, still read by assistive tech */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ============================================================
   Layout system — the 1200px channel and the 120px rhythm
   ============================================================ */
/* One `.channel` per block (do not nest): 1200 wide from 1240px up, then the
   full width minus the 20px gutters. Blocks carry `margin-top: var(--rhythm)`. */
.channel {
  width: min(var(--channel), 100% - 2 * var(--gutter));
  margin-inline: auto;
}

/* Centred collages — narrower than the channel, never stretched to it */
.collage {
  width: min(var(--collage-w, var(--channel)), 100% - 2 * var(--gutter));
  margin-inline: auto;
}

/* ============================================================
   Header — hamburger left, wordmark centred (40 Headline 400, −5%)
   ============================================================ */
.site-header {
  position: relative;
  height: var(--header-h);
  display: flex;
  align-items: center;
}

.wordmark {
  position: relative;
  display: inline-block;
  font-family: var(--font-headline);
  font-weight: 400;
  font-size: 40px;
  letter-spacing: -0.05em;
  line-height: 1.3;
  color: var(--ink);
}
.wordmark-hover {
  position: absolute;
  inset: 0 -0.08em 0 0;
  color: transparent;
  background: radial-gradient(ellipse at center, #de4f2b 0%, #fc7c5c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  clip-path: circle(0% at 50% 50%);
  transition: clip-path 550ms var(--ease-out);
  pointer-events: none;
}
.wordmark:hover .wordmark-hover,
.wordmark:focus-visible .wordmark-hover { clip-path: circle(75% at 50% 50%); }

.site-header > .wordmark {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.menu-btn {
  display: inline-flex;
  flex-direction: column;
  gap: 13px;
  padding: 12px;
  margin-left: clamp(12px, 5.9vw, 85px);   /* + 12px padding → bars at x92 (1440) */
  border-radius: 8px;
}
.menu-btn span {
  width: 25px;
  height: 2px;
  border-radius: 3px;
  background: var(--ink);
}

/* Figma Header / hover: 350×65, 32px wordmark, r20, shadow 0 2 2 10%. */
.floating-header {
  position: fixed;
  top: var(--gutter);
  left: 50%;
  z-index: 50;
  width: min(350px, calc(100vw - 2 * var(--gutter)));
  height: 65px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 2px 2px rgba(0, 0, 0, 0.1);
  transform: translate(-50%, calc(-100% - var(--gutter) - 12px));
  opacity: 0;
  transition: transform 0.45s var(--ease-out), opacity 0.35s ease;
}
.floating-header.is-visible {
  transform: translate(-50%, 0);
  opacity: 1;
}
.floating-header .wordmark { font-size: 32px; }
/* Compact 25px rules with their left edge at x30 of the floating header. */
.floating-header .menu-btn {
  position: absolute;
  left: 18px;                   /* + 12px padding → bars at x30 of the pill */
  margin: 0;
  gap: 12px;
}
.floating-header .menu-btn span { width: 25px; }

/* ============================================================
   Buttons — pills, r100, Headline ExtraLight, white text.
   Base = the standard pill: 20px text, pad 10/30 (259×53 for "Check if I’m
   eligible"). --lg = 24px, pad 20/30 (293×75) — kept for any future large CTA.
   Hover = colour fade only (Figma "Header / hover").
   NOTE: white on #DE4F2B is 3.99:1 — below AA for button-sized text.
   Designed value kept on purpose (brief); do not darken.
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 53px;
  padding: 10px 30px;
  border-radius: var(--radius-pill);
  font-family: var(--font-headline);
  font-weight: 200;
  font-size: 20px;
  line-height: 1.4;
  color: var(--white);
  transition: var(--fade);
}
/* Dusk button — part of the design system / hover spec (Figma "Header / hover");
   not used on the current home page but kept for product pages and future CTAs. */
.btn--navy { background: var(--navy); }
.btn--orange { background: var(--orange); }
.btn--lg { padding: 20px 30px; font-size: 24px; }
.btn .btn-icon { flex: none; }

/* Hover = colour shift only. Focus is indicated by the outline, not the hover colour. */
.btn--navy:hover { background: var(--navy-hover); }
.btn--orange:hover { background: var(--orange-hover); }

/* Caret-in-circle (42; 37 on the treatment cards) used on the support bar and
   treatment cards. Hover tint borrows the chip colour fade — colour only, no motion. */
.caret-circle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--ink);
  transition: var(--fade);
}
.caret-circle svg { display: block; }

/* ============================================================
   Hero — header + hero fill one viewport, gutter margin all round
   Card 1400×794 r20 at (20,106); h1 at (67,146) card-rel; support bar
   at (67,421); stats row bottom-left with 61px bottom padding.
   ============================================================ */
.hero {
  --hero-pad: clamp(24px, 4.65vw, 67px);
  position: relative;
  margin: 0 var(--gutter);
  /* Fill the first viewport, but never clip: grow past it on short viewports */
  height: auto;
  min-height: max(560px, calc(100vh - var(--header-h) - var(--gutter)));
  min-height: max(560px, calc(100svh - var(--header-h) - var(--gutter)));
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  isolation: isolate;
  color: var(--white);
}

.hero-media,
.hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}
/* Current Figma hero artwork, cropped to its 1400 × 794 mask. */
.hero-media img {
  object-fit: cover;
  object-position: 50% 50%;
}

.hero-content {
  padding: clamp(56px, 16.2vh, 146px) var(--hero-pad) 0;
}

.hero h1 {
  font-family: var(--font-headline);
  font-weight: 200;
  font-size: var(--size-hero);
  line-height: 1.2;
  max-width: 669px;
}

/* ---- Support bar (Frame 47) — cream 633×135 r20, links to /eligibility ---- */
.support-bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(633px, 100%);
  min-height: 135px;
  margin-top: clamp(40px, 9.2vh, 83px);
  padding: 20px 33px 20px 40px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: var(--radius);
  color: var(--ink);
  transition: var(--fade);
}
/* Figma: resting 60% white fill becomes solid white on hover. */
.support-bar:hover,
.support-bar:focus-visible { background: var(--white); }
.support-bar-text {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  font-family: var(--font-headline);
  font-weight: 200;
  font-size: var(--size-body-lg);
  line-height: 1.4;
}
.support-bar-text strong { font-weight: 400; }
.support-bar .caret-circle { position: relative; z-index: 1; flex: none; }

/* Product cluster: exported cut-outs placed at their Figma bounding boxes
   (bar-relative, 1440 design): pens rise 81/73px above the bar, wegovy pill
   rises 19px above, foundayo pill sits on the bar's bottom edge. */
.support-bar-cluster {
  position: absolute;
  left: 45%;
  bottom: 0;
  width: 377px;
  height: 216px;
  pointer-events: none;
  transform-origin: 0 100%;
}
.support-bar-cluster img {
  position: absolute;
  max-width: none;
  height: auto;
}
.sb-pen--wegovy   { left: 33px;  bottom: 0;    width: 280px; }
.sb-pen--mounjaro { left: 108px; bottom: 0;    width: 269px; }
.sb-pill--foundayo{ left: 51px;  bottom: 0;    width: 92px; }
.sb-pill--wegovy  { left: 0;     bottom: 11px; width: 143px; }

/* ---- Bottom row: Accessible / Trusted, 1px 50% white divider ---- */
.hero-stats {
  display: flex;
  align-items: flex-start;
  margin-top: auto;
  padding: 24px calc(var(--hero-pad) + 4px) clamp(28px, 6.8vh, 61px);
}
.hero-stat dt { font-weight: 400; line-height: 1.4; }
.hero-stat dd { font-weight: 300; line-height: 1.4; color: rgba(255, 255, 255, 0.8); }
.hero-stat + .hero-stat {
  position: relative;
  margin-left: 27px;
  padding-left: 29px;
}
.hero-stat + .hero-stat::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  bottom: 4px;
  width: 1px;
  background: rgba(255, 255, 255, 0.5);
}

/* ============================================================
   Regulated by — label + GPhC (201×90) + GDPR (163×70), gap 95, centred.
   First block under the hero: 120px rhythm above, no internal padding.
   Reused on all product pages.
   ============================================================ */
.regulated {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(32px, 6.6vw, 95px);
  margin-top: var(--rhythm);
}
.regulated-label { color: rgba(0, 0, 0, 0.6); font-weight: 400; }
.regulated-gphc { width: clamp(140px, 14vw, 201px); height: auto; }
.regulated-gdpr { width: clamp(114px, 11.3vw, 163px); height: auto; opacity: 0.6; }

/* ============================================================
   How it works — title block (pad 30 top / 20 bottom, 52 Light centred);
   three 334px image columns, separated by 64px (1130px overall).
   Title 32 EL at y355, copy 22 EL lh1.5 w334.
   Shared by home and the product pages (same markup/classes).
   ============================================================ */
.how { margin-top: var(--rhythm); }

/* Section title — 52 Headline Light, centred. Shared by "How it works" (home + product)
   and the product pages' "What to expect" / "The actual price". */
.section-title,
.how-title {
  font-family: var(--font-headline);
  font-weight: 300;
  font-size: var(--size-h2);
  line-height: 1.3;
  text-align: center;
}
.how-title {
  line-height: 1.4;   /* spec: 140% on this one */
  padding: 30px 0 20px;
}

.how-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--collage-gap);
  max-width: 1130px;     /* safety net when used outside a .channel */
  margin-inline: auto;
}

.how-step { min-width: 0; }   /* 334px images, separated by 64px at the reference width */

.how-media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1;
}
/* Photo crops reproduce the Figma image transforms: the <img> is positioned
   absolutely at its design size/offset (percent of the square card), no object-fit. */
.how-media img {
  position: absolute;
  height: auto;
  max-width: none;
  transition: transform 0.7s var(--ease-out);
}
.how-media--1 img { width: 113.9%; left: 0;      top: -13.2%; }
.how-media--2 img { width: 129.9%; left: -15.1%; top: -28.9%; }
.how-media--3 img { width: 116.7%; left: -2.9%;  top: -28.2%; }
/* Safety net for markup without a crop modifier: plain centred cover */
.how-media:not([class*="how-media--"]) img {
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* The photo zoom is the one hover motion Shad kept (not a lift) */
.how-step:hover .how-media img { transform: scale(1.04); }

/* Badge number — 25.6px white 75% inside the image, top-right (299,21 of 334) */
.how-num {
  position: absolute;
  top: 21px;
  right: 21px;
  font-family: var(--font-headline);
  font-weight: 200;
  font-size: 25.6px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.75);
}

.how-step h3 {
  font-family: var(--font-headline);
  font-weight: 200;
  font-size: var(--size-card-name);   /* 32px — all three cards */
  line-height: 1.4;
  margin-top: 21px;                    /* image bottom 334 → title 355 */
}
.how-step h3.is-compact { font-size: var(--size-card-name); } /* legacy hook; all titles are 32px now */
.how-step p {
  font-size: var(--size-body);         /* 22px */
  font-weight: 200;
  line-height: 1.5;
  margin-top: 17px;                    /* title 355 + 44.8 → copy 417 */
}

/* ============================================================
   Treatments — headline 64 EL at the channel edge; four 282×366 Linen cards,
   gap 24 (= 1200). Name 28, price 16, tag 14, caret 37.
   ============================================================ */
.treatments { margin-top: var(--rhythm); }

/* Rhythm is measured to the visible glyphs: Stack Sans Headline has a 1.0em
   ascent over a 0.75em cap height and a 0.3em descent, so at lh 1.3 the glyph
   top sits 0.25em into the line box and a descender line ends 0.1em above its
   bottom. The negative margins collapse into the block's rhythm margin. */
.treatments-title {
  font-family: var(--font-headline);
  font-weight: 200;
  font-size: var(--size-display-sm);
  line-height: 1.3;
  margin-top: -0.25em;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  /* headline and card row are separate blocks in Figma → one rhythm apart */
  margin-top: calc(var(--rhythm) - 0.1 * var(--size-display-sm));
}

.product-card {
  position: relative;
  display: block;
  aspect-ratio: 282 / 366;
  background: var(--linen);
  border-radius: var(--radius);
  overflow: hidden;
  isolation: isolate;
  color: var(--ink);
}

/* Pen cut-out, full card (mounjaro / wegovy) — alpha art over the card's Linen background */
.product-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  transition: transform 0.7s var(--ease-out);
}
/* Pill image (full width) at y22/420 */
.product-top {
  position: absolute;
  top: 5.24%;
  left: 0;
  width: 100%;
  height: auto;
  z-index: -1;
  transition: transform 0.7s var(--ease-out);
}
/* Foundayo image 200×200 at (62,83) of 324×420 */
.product-mid {
  position: absolute;
  top: 19.76%;
  left: 19.14%;
  width: 61.73%;
  height: auto;
  z-index: -1;
  transition: transform 0.7s var(--ease-out);
}
.product-card:hover .product-bg:not(.product-blur),
.product-card:hover .product-top:not(.product-blur),
.product-card:hover .product-mid:not(.product-blur) { transform: scale(1.04); }

/* Hover wash (Figma "Header / hover", rest y1223 vs hover y1603): a copy of the
   card's OWN image, enlarged 5× and heavily blurred, fades in behind the sharp
   image. `filter` resolves in the layer's local space and `transform` maps the
   result, so blur(20px) at scale(5) lands as Figma's LAYER_BLUR 200 on screen
   (Figma radius ≈ 2σ). Colour only — no lift.

   All four cards use alpha art (Figma's sharp layer, no Linen baked in), so all
   four carry .product-card--wash.
   card2-mounjaro/-wegovy are opaque full-card composites (Linen baked in) that
   hide anything behind them — they need alpha cut-outs before they can opt in,
   and until then they must NOT get the cream text either (it would sit on Linen). */
.product-blur {
  z-index: -2;
  transform: scale(5);
  filter: blur(20px);
  opacity: 0;
  transition: opacity var(--fade-duration) ease;
}
.product-card--wash:hover .product-blur,
.product-card--wash:focus-visible .product-blur { opacity: 1; }
/* Updated Mounjaro wash exported with Figma's 10× crop and 400px blur. */
.product-card--mounjaro .product-blur {
  transform: none;
  filter: none;
}

/* Name, price and caret go cream over the wash; the tag pill keeps its ink.
   .caret-circle sets its own colour, so it needs the cream spelled out too. */
.product-card--wash:hover,
.product-card--wash:focus-visible { color: var(--cream-on-image); }
.product-card--wash:hover .caret-circle,
.product-card--wash:focus-visible .caret-circle { color: var(--cream-on-image); }

.product-tag {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: rgba(254, 250, 239, 0.9);
  font-family: var(--font-headline);
  font-weight: 200;
  font-size: 14px;
  line-height: 18px;
  white-space: nowrap;
  color: var(--ink);          /* stays ink while the card text goes cream */
}
/* Name + price share one bottom-anchored block so they can never overlap when
   the name wraps on narrow cards; stops short of the caret. */
.product-meta {
  position: absolute;
  left: 8.64%;
  right: 30%;
  bottom: 8.8%;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.product-name {
  font-family: var(--font-headline);
  font-weight: 200;
  font-size: var(--size-product-name);   /* 28px */
  line-height: 1.4;
}
.product-price {
  font-family: var(--font-headline);
  font-weight: 200;
  font-size: 16px;
  line-height: 1.4;
}
.product-caret {
  position: absolute;
  right: 8.64%;
  bottom: 6.67%;
  width: 37px;
  height: 37px;
}
.product-caret svg { width: 14px; height: 25px; }

/* ============================================================
   Story band — fixed rounded rectangle.
   The first bubble finishes appearing, then holds for two seconds.
   ============================================================ */
.story-band {
  --band-w: min(var(--channel), 100vw - 2 * var(--gutter));
  position: relative;
  width: var(--band-w);
  margin-inline: auto;
  margin-top: var(--rhythm);
  height: calc(var(--band-w) * 620 / 1200);
  border-radius: var(--radius);
  overflow: hidden;
  isolation: isolate;
  color: #000;
}

.story-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  z-index: -1;
}

/* Story bubbles — translucent cream, white type and background blur from Figma. */
.story-pills {
  --pill-pad-y: 28px;
  --pill-pad-x: 42px;
  position: absolute;
  left: 0;
  bottom: 0;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 40px;
}
.story-pill {
  position: relative;
  background: rgba(254, 250, 239, 0.3);
  color: #fff;
  -webkit-backdrop-filter: blur(200px);
  backdrop-filter: blur(200px);
  border-radius: var(--radius);
  padding: var(--pill-pad-y) var(--pill-pad-x);
  font-family: var(--font-headline);
  font-weight: 200;
  font-size: var(--size-card-name);
  line-height: 1.3;
}
/* Reserve both line boxes throughout; only opacity and translation animate. */
.js .story-band[data-story] .story-pill { opacity: 0; }
.js .story-band.is-revealed .story-pill:first-child {
  animation: story-first 2500ms var(--ease-out) both;
}
.js .story-band.is-revealed .story-pill + .story-pill {
  animation: story-next 500ms 2000ms var(--ease-out) both;
}
@keyframes story-first {
  0% { opacity: 0; transform: translateY(calc(var(--story-lift, 106px) + 18px)); }
  20%, 80% { opacity: 1; transform: translateY(var(--story-lift, 106px)); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes story-next {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

/* One continuous surface beneath the FAQ, collage AND footer. Anchoring to
   the page bottom lets the gradient follow expanded FAQ content without seams. */
.home-page {
  background: radial-gradient(1579px 1132px at calc(100% + 104px) calc(100% - 1350px),
    rgba(222, 79, 43, 0.2), rgba(233, 160, 93, 0) 100%), var(--cream);
}
.lower { position: relative; display: flow-root; }

/* ============================================================
   Stats — Frame 40: 377.4px chart, 64px gutter, 550.8px right column.
   The note starts 86.7px below the chart; the photo follows 64px below it.
   ============================================================ */
.stats {
  --collage-w: 992.2px;
  display: grid;
  grid-template-columns: minmax(0, 377.4fr) minmax(0, 550.8fr);
  grid-template-rows: auto 1fr;
  gap: var(--collage-gap);
  align-items: start;
  margin-top: var(--rhythm);
}

.stats-chart {
  position: relative;
  grid-row: 1 / span 2;
  aspect-ratio: 377.4 / 621.35;
  border-radius: var(--radius);
  overflow: hidden;
  background: url("/assets/img/stats-card-bg.webp") center / cover no-repeat var(--orange);
  color: var(--white);
}

/* "5x" (66px) + body (20px EL) at card-rel (35.7, 44) — percentages of the card */
.stats-figure {
  position: absolute;
  top: 7.1%;
  left: 9.46%;
  right: 16.4%;
  font-size: var(--size-body-sm);
  font-weight: 200;
  line-height: 1.4;
}
.stats-figure strong {
  display: block;
  font-family: var(--font-headline);
  font-weight: 200;
  font-size: clamp(3rem, 4.6vw, 4.125rem);   /* 66px */
  line-height: 1;
  margin-bottom: 9px;
}

/* Both lines start at card-rel (−10, 279) of 444×731 and are 410 wide; white strokes */
.chart-lines { position: absolute; inset: 0; }
.chart-line {
  position: absolute;
  display: block;
  width: 92.3%;
  height: auto;
  left: -2.25%;
  top: 38.2%;
  overflow: visible;
}

.chart-dot {
  position: absolute;
  left: 90.1%;
  top: 77.7%;
  width: 8.1%;
  aspect-ratio: 1;
  margin: -4.05% 0 0 -4.05%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
}
.chart-dot::after {
  content: "";
  position: absolute;
  inset: 25%;
  border-radius: 50%;
  background: var(--white);
}

/* "Lately" tag — cream r20, 27px Headline Regular */
.chart-tag {
  position: absolute;
  left: 53.4%;
  top: 83.4%;
  background: var(--cream);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 12px 18px;
  font-family: var(--font-headline);
  font-weight: 400;
  font-size: clamp(1.25rem, 1.88vw, 1.6875rem);   /* 27px */
  line-height: 1.4;
  letter-spacing: -0.05em;
}

/* Draw the upper line sharply, then soften it as the lower line draws.
   The dot and Lately tag arrive only after the lower line completes.
   JS sets each path's dasharray/offset and .is-drawn releases them. */
.js [data-trail] { transition: stroke-dashoffset 1.2s cubic-bezier(0.45, 0.05, 0.35, 1); }
.js [data-trail="faint"] { transition-duration: 1.1s; transition-delay: 0.25s; }
.js [data-trail="main"]  { transition-duration: 1.25s; transition-delay: 1.4s; }
.chart-line--faint { filter: blur(3.4px); }
.js .chart-line--faint { filter: blur(0); transition: filter 650ms 1.4s ease; }
.js .stats.is-drawn .chart-line--faint { filter: blur(3.4px); }
.js .chart-dot,
.js .chart-tag {
  opacity: 0;
  transform: scale(0.4);
  transition: opacity 0.45s ease, transform 0.45s var(--ease-out);
}
.js .chart-tag { transform: translateY(16px); }
.js .stats.is-drawn .chart-dot { opacity: 1; transform: scale(1); transition-delay: 2.65s; }
.js .stats.is-drawn .chart-tag { opacity: 1; transform: none; transition-delay: 2.8s; }

/* Note box 551×158: 2px hairline stroke r20, pad 24/36, title 27 Light, body 20 EL */
.stats-note {
  margin-top: 15.741%; /* 86.7 / 550.8: preserve the designed stagger */
  min-height: 158px;
  grid-column: 2;
  grid-row: 1;
  border: 2px solid var(--rule);
  border-radius: var(--radius);
  padding: 24px 36px;
}
.stats-note-title {
  font-family: var(--font-headline);
  font-weight: 300;
  font-size: clamp(1.25rem, 1.88vw, 1.6875rem);   /* 27px */
  line-height: 1.5;
}
.stats-note p {
  font-size: var(--size-body-sm);
  font-weight: 200;
  line-height: 1.5;
  margin-top: 6px;
}

.stats-photo {
  grid-column: 2;
  grid-row: 2;
  width: min(340px, 100%);
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
}
.stats-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================================
   FAQ — "Questions, answered" 78 EL at the channel edge; rows h100 across the
   channel: question 24 Text Light, "+" 34 Headline EL Pulse, hairline;
   answers 18 Text EL lh1.6.
   ============================================================ */
.faq { margin-top: var(--rhythm); }
.faq-title {
  font-family: var(--font-headline);
  font-weight: 200;
  font-size: var(--size-display);
  line-height: 1.3;
  margin-top: -0.25em;   /* glyph top on the rhythm line (see .treatments-title) */
}
.faq-list { margin-top: clamp(24px, 4vw, 57px); }
.faq-item {
  border-bottom: 1px solid var(--rule);
  scroll-margin-top: 130px;   /* deep links land below the floating header */
}
.faq-q { font: inherit; }

.faq-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  min-height: 100px;
  padding: 28px 0;
  text-align: left;
  font-family: var(--font-text);
  font-weight: 300;
  font-size: var(--size-body-lg);
  line-height: 1.3;
  color: var(--ink);
  transition: var(--fade);
}
.faq-icon {
  flex: none;
  width: 20px;
  text-align: center;
  font-family: var(--font-headline);
  font-weight: 200;
  font-size: 34px;
  line-height: 1;
  color: var(--orange);
  transition: var(--fade);
}
.faq-icon::before { content: "+"; }
.faq-btn[aria-expanded="true"] .faq-icon::before { content: "–"; }
.faq-btn:hover .faq-icon,
.faq-btn:focus-visible .faq-icon { color: var(--orange-hover); }

/* Panel: JS toggles .is-open on the row; CSS grid 0fr → 1fr animates the height.
   Collapsed panels are also visibility:hidden so AT and tab order skip them.
   Without JS (no .js on <html>) every answer is simply shown — no [hidden] anywhere. */
.faq-panel {
  display: grid;
  grid-template-rows: 1fr;
}
.faq-panel > div { min-height: 0; overflow: hidden; }
.js .faq-item:not(.is-open) .faq-panel {
  grid-template-rows: 0fr;
  visibility: hidden;
  transition: grid-template-rows 0.45s var(--ease-out), visibility 0s 0.45s;
}
.js .faq-item.is-open .faq-panel {
  grid-template-rows: 1fr;
  visibility: visible;
  transition: grid-template-rows 0.45s var(--ease-out), visibility 0s 0s;
}
.faq-answer {
  padding: 0 60px 32px 0;
  max-width: 72ch;
  font-size: var(--size-answer);   /* 18px */
  font-weight: 200;
  line-height: 1.6;
}

/* ============================================================
   Glow CTA — centred 946.3px collage: portrait 346.8×552.5 left; lavender
   535.5×331.5, headline 66 ("glow" Pulse), standard CTA pill on the right.
   Image and heading gaps are 64px; the portrait starts 153px lower.
   Product pages add .glow-reassure between the headline and the CTA.
   ============================================================ */
.glow {
  --collage-w: 946.3px;
  display: grid;
  grid-template-columns: minmax(0, 346.8fr) minmax(0, 535.5fr);
  gap: var(--collage-gap);
  align-items: start;
  margin-top: var(--rhythm);
}

.glow-portrait {
  margin-top: 44.118%; /* 153px stagger at 346.8px wide */
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 346.8 / 552.5;
}
.glow-portrait img { width: 100%; height: 100%; object-fit: cover; }

.glow-lavender {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 535.5 / 331.5;
}
.glow-lavender img { width: 100%; height: 100%; object-fit: cover; }

.display-title {
  font-family: var(--font-headline);
  font-weight: 200;
  font-size: var(--size-display-md);   /* 66px */
  line-height: 1.4;
}
/* Match Figma layer bounds: 64px from photo to heading, 24px to CTA. */
.glow-body .display-title { margin-top: var(--collage-gap); }
.glow-body .btn { margin-top: 24px; }

/* ============================================================
   Footer — in the channel: image-filled wordmark at the channel edge, Linen
   chips right after it (hover #FAE5BD + text roll), 2px hairline and legal
   text 1200 wide. 120px from the CTA bottom to the wordmark's visible top.
   ============================================================ */
.site-footer {
  margin-top: var(--rhythm);
  padding: 0 var(--gutter);
}
/* Children self-centre to the channel so the footer needs no wrapper (and
   tolerates one — max-width, not `100% - gutters`). */
.footer-top,
.footer-rule,
.footer-legal {
  max-width: var(--channel);
  margin-inline: auto;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 40px;
}

.footer-wordmark {
  font-family: var(--font-headline);
  font-weight: 400;
  font-size: clamp(5rem, 13.9vw, 12.5rem);   /* 200px */
  line-height: 1.3;
  padding-right: 0.08em;
  letter-spacing: -0.05em;
  color: transparent;
  background-image: url("/assets/img/footer-fill.webp"), linear-gradient(var(--ink), var(--ink));
  background-size: cover, auto;
  background-position: center, center;
  -webkit-background-clip: text;
  background-clip: text;
  margin-left: -0.06em;
  /* Allow the full descender and right overhang inside the text's image fill. */
  --wordmark-trim-top: 0.1em;
  margin-top: calc(-1 * var(--wordmark-trim-top));
}

.footer-social {
  display: flex;
  gap: 30px;
}

/* Chip — Linen pill r20, 18px Headline EL. Hover: colour fade only + label roll */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  background: var(--linen);
  color: #000;
  border-radius: var(--radius);
  padding: 25px 42px;
  font-family: var(--font-headline);
  font-weight: 200;
  font-size: 18px;
  line-height: 1.3;
  transition: var(--fade);
}
.chip:hover, .chip:focus-visible { background: var(--linen-hover); }

/* Text roll: two copies of the label (the second aria-hidden) stacked in a
   clipped box; both slide up one line on hover so the copy stays in the a11y name. */
.chip-label {
  position: relative;
  display: block;
  overflow: hidden;
}
.chip-text {
  display: block;
  transition: transform 0.4s var(--ease-out);
}
.chip-text + .chip-text {
  position: absolute;
  left: 0;
  top: 100%;
}
.chip:hover .chip-text,
.chip:focus-visible .chip-text { transform: translateY(-100%); }

.footer-rule {
  border: 0;
  border-top: 2px solid var(--rule);
  margin-top: 40px;
}

.footer-legal {
  padding: 26px 0 clamp(48px, 8.3vw, 120px);
  font-size: 12px;
  font-weight: 200;
  line-height: 1.5;
}
.footer-legal p + p { margin-top: 1.5em; }

/* ============================================================
   Scroll reveal states (JS adds .js to <html>)
   ============================================================ */
.js [data-reveal],
.js [data-reveal-item],
.js [data-reveal-seq] {
  opacity: 0;
  transform: translateY(26px);
  /* The reveal keeps its stagger delay (--d); the colour fade rides along so
     revealed controls (CTAs, chips, cards) still hover-fade instead of snapping. */
  transition:
    opacity 0.7s ease var(--d, 0ms),
    transform 0.7s var(--ease-out) var(--d, 0ms),
    background-color var(--fade-duration) ease,
    color var(--fade-duration) ease;
}
.js .in-view[data-reveal],
.js .in-view [data-reveal-item],
.js .in-view[data-reveal-seq] {
  opacity: 1;
  transform: none;
}

/* word-by-word blur reveal (spans injected by JS) */
/* pre-hide at element level so late-loading JS can't flash the un-split text */
.js [data-blur-reveal]:not(.in-view) { opacity: 0; }
.js [data-blur-reveal] .w {
  display: inline-block;
  opacity: 0;
  filter: blur(14px);
  transform: translateX(-16px);
  transition: opacity 0.7s ease, filter 0.7s ease, transform 0.7s var(--ease-out);
  transition-delay: calc(var(--i) * 70ms + var(--base, 0ms));
}
.js .in-view[data-blur-reveal] .w,
.js [data-blur-reveal].in-view .w {
  opacity: 1;
  filter: blur(0);
  transform: none;
}

/* ============================================================
   Responsive — small, faithful tweaks
   ============================================================ */
@media (max-width: 900px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .support-bar-cluster { transform: scale(0.85); }
}

@media (max-width: 860px) {
  .how-grid { grid-template-columns: minmax(0, 1fr); max-width: 480px; gap: var(--collage-gap); }
  .how-step { padding-inline: 0; }
  .how-step p br { display: none; }

  /* Glow stacks: lavender, headline, CTA, portrait — never upscale the lavender image */
  .glow { grid-template-columns: minmax(0, 536px); justify-content: center; align-items: start; }
  .glow-portrait { max-width: 346.8px; order: 2; margin-top: 0; }

  .footer-top { justify-content: center; }
  .footer-wordmark { font-size: clamp(4rem, 18vw, 9rem); }
}

@media (max-width: 820px) {
  /* Stats stack: card, note, photo */
  .stats { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; justify-items: start; }
  .stats-chart { grid-row: auto; width: min(377px, 100%); }
  .stats-note, .stats-photo { grid-column: auto; grid-row: auto; margin-top: 0; }
}

@media (max-width: 760px) {
  .story-band { height: var(--band-w); }   /* square — room for the two pills */
}

@media (max-width: 640px) {
  :root { --header-h: 72px; --rhythm: 72px; --collage-gap: 32px; }

  .site-header > .wordmark { font-size: 32px; }
  .floating-header { height: 60px; }
  .floating-header .wordmark { font-size: 28px; }
  .floating-header .menu-btn { left: 14px; }

  .hero {
    min-height: max(500px, calc(100vh - var(--header-h) - var(--gutter)));
    min-height: max(500px, calc(100svh - var(--header-h) - var(--gutter)));
  }
  .hero-media img { object-position: 72% 50%; }   /* bloom sits behind/right of the support bar */
  .hero-content { padding-top: clamp(40px, 9vh, 64px); }

  /* support bar stacks under the headline, smaller cluster anchored right */
  .support-bar { margin-top: 56px; min-height: 0; padding: 20px 20px 20px 24px; }
  .support-bar-text { font-size: 18px; }
  .support-bar-cluster {
    left: auto;
    right: -8px;
    transform-origin: 100% 100%;
    transform: scale(0.62);
  }

  .hero-stats { flex-direction: column; align-items: flex-start; gap: 14px; }
  .hero-stat + .hero-stat { margin-left: 0; padding-left: 0; }
  .hero-stat + .hero-stat::before { display: none; }

  .how-title { padding: 18px 0 12px; }
  .how-num { top: 16px; right: 18px; font-size: 22px; }
  .how-step h3 { margin-top: 16px; }
  .how-step p { margin-top: 10px; }

  /* Keep the designed two-line break; 36px lets "A weekly injection," fit a 327px line */
  .treatments-title { font-size: 36px; }
  .product-grid { gap: 12px; }
  .product-tag { top: 12px; padding: 6px 12px; font-size: 12px; line-height: 16px; }
  .product-name { font-size: 18px; }
  .product-price { font-size: 14px; }
  .product-caret { width: 32px; height: 32px; }
  .product-caret svg { width: 12px; height: 22px; }

  .story-band { height: calc(var(--band-w) * 5 / 4); }
  .story-media { object-position: 60% 50%; }
  .story-pills { --pill-pad-y: 16px; --pill-pad-x: 22px; padding: 20px; }
  .story-pill { font-size: 18px; }

  .stats-figure strong { font-size: 3rem; }
  .stats-note { padding: 20px 22px; }

  .faq-btn { min-height: 76px; padding: 20px 0; font-size: 18px; }
  .faq-icon { font-size: 28px; }
  .faq-answer { padding-right: 32px; }

  .glow { gap: 32px; }
  .glow-body .display-title { margin-top: var(--collage-gap); }
  .glow-body .btn { margin-top: 24px; }

  .chip { padding: 20px 30px; }
  .footer-top { gap: 24px; }
  .footer-social { gap: 14px; flex-wrap: wrap; justify-content: center; }
}

/* Keep the product art anchored to the bar's bottom, below the mobile label. */
@media (max-width: 520px) {
  .support-bar { min-height: 180px; padding-bottom: 100px; }
  .support-bar-text { font-size: clamp(16px, 4.62vw, 18px); }
  .support-bar-cluster {
    bottom: 0;
    right: 28px;
    transform-origin: 100% 100%;
    transform: scale(0.46);
  }
}
@media (max-width: 360px) {
  .support-bar { padding-inline: 16px; gap: 8px; }
  .support-bar .caret-circle { width: 32px; }
}

/* ============================================================
   The waitlist version (design/spec/superpowers/CONTRACT.md §20.3, §20.5):
   the hero's eyebrow, a Join the waitlist button in place of the support
   bar and of the glow section's button, and the waitlist sheet itself.
   Built from the site's own pieces: the treatment cards' tag pill, Linen
   fields and chips, the Pulse button, ink. No Figma frame exists for it.
   ============================================================ */

/* "Opening soon" above the h1: the cards' tag pill (.product-tag), a size up for the hero */
.hero-eyebrow {
  display: inline-block;
  margin-bottom: 18px;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  background: rgba(254, 250, 239, 0.9);
  color: var(--ink);
  font-family: var(--font-headline);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.4;
}

/* The hero's button in place of the support bar (the waitlist variant): cream on the sky, like the
   "Opening soon" pill above it, since a Pulse button disappears into the orange of the photograph */
.hero-join {
  margin-top: 36px;
  background: rgba(254, 250, 239, 0.92);
  color: var(--ink);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 30px rgba(120, 50, 10, 0.18);
}
.hero-join:hover, .hero-join:focus-visible { background: var(--cream); color: var(--ink); }

/* The reassurance line under the glow title, as on the product pages (product.css .glow-reassure) */
.home-page .glow-reassure {
  margin-top: 20px;
  max-width: 536px;
  font-family: var(--font-headline);
  font-weight: 200;
  font-size: 20px;
  line-height: 1.5;
  color: var(--ink-70);
}
.home-page .glow-reassure + .btn { margin-top: 28px; }

/* The overview's trust chips without the price chip (the waitlist variant): product.css lets the first
   chip span the row, so with two left they would stack; side by side instead, as today's second row. */
.trust-chips:not(:has(> li:nth-child(3))) > li:first-child { grid-column: auto; }

/* The privacy notice link under the footer's legal text */
.footer-links { margin-top: 12px; }
.footer-links a { text-decoration: underline; text-underline-offset: 3px; }
.footer-links a:hover { color: var(--pulse-ink); }

/* ---- Join the waitlist: the sheet (js/waitlist.js). A <dialog> that rises from the bottom of the screen,
   full width on a phone and a card in the middle on wider screens, in the manner of Pulse's sheets.
   Without JavaScript the link's :target shows it in place. ---- */
.waitlist-sheet {
  position: fixed;
  inset: 0;
  display: none;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
}
.waitlist-sheet[open], .waitlist-sheet:target, .waitlist-sheet.is-open { display: flex; }
.waitlist-sheet::backdrop { background: rgba(33, 29, 24, 0.32); }
.waitlist-sheet:target::before, .waitlist-sheet.is-open::before {   /* the backdrop when the dialog is not modal */
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(33, 29, 24, 0.32);
}
.waitlist-sheet__panel {
  position: relative;
  width: 100%;
  max-height: calc(100dvh - 24px);
  overflow: auto;
  padding: 20px 20px calc(28px + env(safe-area-inset-bottom, 0px));
  border-radius: 28px 28px 0 0;
  background: var(--cream);
  box-shadow: 0 -12px 60px rgba(33, 29, 24, 0.18);
}
/* In and out: the panel glides up and the backdrop fades with it; closing plays it back, quicker
   (js/waitlist.js waits for it before closing the dialog). A gentle ease-out (half the way in a
   third of the time): the steeper curves moved most of the panel in the first 150ms, which read as
   a snap on a phone. */
.waitlist-sheet__panel--animated { animation: waitlist-rise 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) both; }
.waitlist-sheet.is-closing .waitlist-sheet__panel--animated { animation: waitlist-sink 0.38s cubic-bezier(0.4, 0, 0.9, 0.6) both; }
.waitlist-sheet[open]::backdrop { animation: waitlist-fade 0.5s ease both; }
.waitlist-sheet.is-closing::backdrop { animation: waitlist-fade 0.38s ease reverse both; }
@keyframes waitlist-rise {
  from { transform: translateY(100%); }
  to { transform: none; }
}
@keyframes waitlist-sink {
  from { transform: none; }
  to { transform: translateY(100%); }
}
@keyframes waitlist-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .waitlist-sheet[open]::backdrop, .waitlist-sheet.is-closing::backdrop { animation: none; }
}
.waitlist-sheet__handle {
  display: block;
  width: 40px;
  height: 4px;
  margin: 0 auto 18px;
  border-radius: 2px;
  background: var(--ink-50);
  opacity: 0.5;
}
.waitlist-sheet__close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--linen);
  color: var(--ink);
  transition: var(--fade);
}
.waitlist-sheet__close:hover, .waitlist-sheet__close:focus-visible { background: var(--linen-hover); }
.waitlist-sheet__title {
  margin: 0 56px 0 0;
  font-family: var(--font-headline);
  font-weight: 300;
  font-size: 32px;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.waitlist-sheet__lead {
  margin-top: 10px;
  font-size: 17px;
  font-weight: 200;
  line-height: 1.5;
  color: var(--ink-70);
}
.waitlist-sheet__done { margin-top: 20px; }
.waitlist-sheet__done[hidden] { display: none; }   /* .btn sets display, which would win over [hidden] */

/* ---- The form: a Linen field, the Pulse button, the small print in ink at 65% ---- */
.waitlist { margin-top: 0; }
.waitlist[hidden] { display: none; }
.waitlist__field { margin-top: 22px; }
.waitlist__label {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-text);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.4;
}
.waitlist__input {
  display: block;
  width: 100%;
  height: 60px;
  margin: 0;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: var(--linen);
  color: var(--ink);
  font-family: var(--font-text);
  font-weight: 300;
  font-size: 18px;
  line-height: 1.3;
  appearance: none;
  transition: var(--fade), border-color var(--fade-duration) ease;
}
.waitlist__input::placeholder { color: var(--ink-50); }
@media (hover: hover) {
  .waitlist__input:hover { background: var(--linen-hover); }
}
.waitlist__input:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.waitlist__input[aria-invalid="true"] { border-color: var(--pulse-ink); }
/* The Worker's own words, beside the field or under the button; an empty slot takes no room */
.waitlist__error {
  margin-top: 8px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--pulse-ink);
}
.waitlist__error--form { margin-top: 12px; }
.waitlist__error:empty { margin: 0; }
/* The sheet's button: plain and full width, in ink, so it reads as the one thing to do here */
.waitlist__submit {
  display: block;
  width: 100%;
  height: 56px;
  margin-top: 16px;
  padding: 0 24px;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font-headline);
  font-weight: 300;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: var(--fade);
}
@media (hover: hover) {
  .waitlist__submit:hover { background: var(--navy); }
}
.waitlist__submit:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
.waitlist__submit[aria-disabled="true"] { opacity: 0.75; cursor: progress; }
.waitlist__small {
  margin-top: 18px;
  font-size: 13px;
  font-weight: 300;
  line-height: 1.5;
  color: var(--ink-65);
}
.waitlist__small a { text-decoration: underline; text-underline-offset: 2px; }
/* The honeypot: out of sight and out of reach (aria-hidden, tabindex -1), so only bots fill it */
.waitlist__trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
/* "You're on the list": in place of the form after a join, and on /?joined=1#waitlist */
.waitlist-done {
  margin-top: 12px;
  padding: 22px 28px;
  border-radius: var(--radius);
  background: var(--linen);
  font-family: var(--font-headline);
  font-weight: 300;
  font-size: 22px;
  line-height: 1.4;
}
.waitlist-done:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
html.waitlist-open { overflow: hidden; }

@media (min-width: 721px) {
  .waitlist-sheet { align-items: center; padding: 24px; }
  .waitlist-sheet__panel {
    width: min(560px, 100%);
    padding: 32px 36px 36px;
    border-radius: 28px;
    box-shadow: 0 24px 80px rgba(33, 29, 24, 0.25);
  }
  .waitlist-sheet__handle { display: none; }
  .waitlist-sheet__close { top: 20px; right: 20px; }
  .waitlist-sheet__title { font-size: 36px; }
  .waitlist-sheet__panel--animated { animation-duration: 0.5s; }
  .waitlist-sheet.is-closing .waitlist-sheet__panel--animated { animation-duration: 0.25s; }
  @keyframes waitlist-rise {
    from { transform: translateY(24px) scale(0.98); opacity: 0; }
    to { transform: none; opacity: 1; }
  }
  @keyframes waitlist-sink {
    from { transform: none; opacity: 1; }
    to { transform: translateY(12px) scale(0.98); opacity: 0; }
  }
}
@media (max-width: 640px) {
  .hero-eyebrow { margin-bottom: 14px; padding: 6px 14px; font-size: 14px; }
  .hero-join { margin-top: 28px; }
  .home-page .glow-reassure { font-size: 18px; margin-top: 12px; }
  .waitlist-sheet__title { font-size: 28px; }
  .waitlist-done { padding: 20px 22px; font-size: 20px; }
}

/* ============================================================
   Cookie choice (js/analytics.js) — both answers equally easy, per the ICO
   ============================================================ */
.consent {
  position: fixed;
  left: var(--gutter);
  bottom: var(--gutter);
  z-index: 60;
  width: min(440px, calc(100vw - 2 * var(--gutter)));
  padding: 22px 24px 24px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 2px 2px rgba(0, 0, 0, 0.1), 0 12px 40px rgba(33, 29, 24, 0.12);
  font-family: var(--font-text);
  color: var(--ink);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(.22, 1, .36, 1);
}
.consent.is-shown { opacity: 1; transform: none; }
.consent__text { font-size: 15px; font-weight: 300; line-height: 1.5; }
.consent__actions { display: flex; gap: 10px; margin-top: 18px; }
.consent__btn {
  flex: 1;
  height: 48px;
  border: 1px solid var(--ink);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--ink);
  font: 400 16px/1 var(--font-headline);
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
}
.consent__btn:hover { background: var(--ink); color: var(--cream); }
.consent-settings {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
@media (max-width: 640px) {
  .consent { left: 12px; bottom: 12px; width: calc(100vw - 24px); padding: 18px 18px 20px; }
}
@media print { .consent { display: none; } }

/* ============================================================
   Reduced motion — show everything, animate nothing
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
    animation-duration: 0.01ms !important;
  }
  .js [data-reveal],
  .js [data-reveal-item],
  .js [data-reveal-seq],
  .js [data-blur-reveal],
  .js [data-blur-reveal] .w,
  .js .chart-dot,
  .js .chart-tag {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
  .js [data-trail] { stroke-dashoffset: 0 !important; }
  /* Story band: rounded box, both pills in place, no motion. */
  .js .story-band { clip-path: none !important; }
  .js .story-band[data-story] .story-pill { opacity: 1 !important; transform: none !important; }
}

/* ============================================================
   Print — reveals never fire in print rendering, show everything
   ============================================================ */
@media print {
  .js [data-reveal],
  .js [data-reveal-item],
  .js [data-reveal-seq],
  .js [data-blur-reveal],
  .js [data-blur-reveal] .w,
  .js .chart-dot,
  .js .chart-tag {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
  .js [data-trail] { stroke-dashoffset: 0 !important; }
  .js .story-band { clip-path: none !important; }
  .js .story-band[data-story] .story-pill { opacity: 1 !important; transform: none !important; }
  .js .faq-item:not(.is-open) .faq-panel { grid-template-rows: 1fr; visibility: visible; }
}
