/* The home page: one cinematic scroll, light or dark with the device (or the nav's toggle). Laid out here for motion; home-static.css, loaded after this sheet,
   lays the same content out as an ordinary page when motion is off (Reduce Motion) or there is no script. The stage's
   geometry is CSS's: invisible anchors mark where the ring and the phone sit, and home/stage.js only animates between
   them. */

@property --tint { syntax: '<color>'; inherits: true; initial-value: #FF2D78; }
@property --spin { syntax: '<angle>'; inherits: false; initial-value: 0deg; }

body { background: var(--canvas); overflow-x: clip; }

/* Shared type */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 600 17px/1.3 var(--text); letter-spacing: -0.01em; color: var(--accent); }
.eyebrow-level { color: var(--level); }
.pro-chip { font: 700 12px/1 var(--text); letter-spacing: 0.04em; text-transform: uppercase; padding: 5px 8px 4px; border-radius: 6px; color: #000; background: var(--level); }
.section-title { margin-top: 14px; font-size: clamp(42px, 6vw, 84px); line-height: 1.03; letter-spacing: -0.045em; max-width: 13em; }
.section-lede { margin-top: 22px; font: 500 clamp(19px, 1.65vw, 23px)/1.42 var(--text); letter-spacing: -0.017em; color: var(--ink-2); max-width: 32em; }
.lit, .lit * { background-image: var(--lit); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* --------------------------------------------------------------------------------------------------------------------
   The stage */

.stage { position: relative; --tint: #FF2D78; transition: --tint 0.9s var(--ease-out); }
.stage-pin { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.stage-bg { position: absolute; inset: -10%; pointer-events: none;
  background:
    radial-gradient(38% 46% at var(--glow-x, 50%) var(--glow-y, 32%), color-mix(in srgb, var(--tint) var(--glow-mix), transparent), transparent 72%),
    radial-gradient(30% 40% at 72% 60%, color-mix(in srgb, var(--tint) calc(var(--glow-mix) * 0.45), transparent), transparent 70%); }
.stage[data-day] { --glow-x: 30%; --glow-y: 50%; }
.stage[data-day="-1"] { --glow-x: 50%; --glow-y: 30%; }
.anchor { position: absolute; pointer-events: none; visibility: hidden; }
.ring-holder { position: absolute; will-change: transform; }
/* The canvas reaches past the holder so the ring's glow fades out inside it, never cut at its edge. */
.stage-ring { position: absolute; left: -8.2%; top: -8.2%; width: 116.4%; height: 116.4%; max-width: none; }
.ring-still { display: none; }

.hero-copy { position: absolute; left: 0; right: 0; padding: 0 var(--gutter); text-align: center; display: grid; justify-items: center; will-change: transform, opacity; }
/* Hidden until the opening plays (home/stage.js shows it); home-static.css shows it at once. */
.js .hero-copy, .js .scroll-cue { visibility: hidden; }
.hero-eyebrow { font: 600 15px/1.3 var(--text); letter-spacing: -0.005em; color: var(--ink-2); }
/* The medicines by the names people know (the footer carries the trademark line). */
.works-with { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 6px 14px; margin-top: 18px; max-width: 54em; font: 600 13.5px/1.3 var(--text); letter-spacing: -0.005em; color: var(--ink-2); }
.works-with-label { font-weight: 500; color: var(--ink-3); }
.hero-title { margin-top: 14px; max-width: 9.6em; font-size: clamp(44px, 6.6vw, 108px); line-height: 1.0; letter-spacing: -0.05em; }
.hero-lede { margin-top: 22px; max-width: 30em; font: 500 clamp(17px, 1.45vw, 21px)/1.45 var(--text); letter-spacing: -0.015em; color: var(--ink-2); }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }

.scroll-cue { position: absolute; left: 50%; bottom: 22px; translate: -50% 0; display: grid; justify-items: center; gap: 10px; text-decoration: none; font: 500 12.5px/1 var(--text); color: var(--ink-3); }
.scroll-cue i { width: 1.5px; height: 34px; border-radius: 2px; background: linear-gradient(to bottom, transparent, var(--ink-2), transparent) 0 -34px / 100% 68px no-repeat; animation: cue 2.2s var(--ease-in-out) infinite; }
@keyframes cue { to { background-position: 0 34px; } }

.device-holder { position: absolute; will-change: transform; }
/* The phone is styles.css's .iphone, sized by the stage's --phone-h. */
.device { --ph: var(--phone-h); width: 100%; height: 100%;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.07),
    var(--device-shadow),
    0 0 160px -50px color-mix(in srgb, var(--tint) calc(var(--glow-mix) * 3.5), transparent); }
.screen { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: calc(var(--phone-h) * 0.063); background: #000; isolation: isolate; }
.screen::after { content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(118deg, rgba(255, 255, 255, 0.07), transparent 28%, transparent 72%, rgba(255, 255, 255, 0.03)); }
.stage-clip { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.5s var(--ease-out); }
.stage-clip.is-active { opacity: 1; }

.days { position: absolute; }
.day-list { list-style: none; margin: 0; padding: 0; position: relative; width: 100%; height: 100%; }
.day { position: absolute; inset: 0; display: grid; align-content: center; justify-items: center; text-align: center; gap: 14px; opacity: 0; transform: translateY(24px); filter: blur(10px); pointer-events: none;
  transition: opacity 0.55s var(--ease-out), transform 0.9s var(--ease-out), filter 0.6s var(--ease-out); }
.day.is-past { transform: translateY(-24px); }
.day.is-active { opacity: 1; transform: none; filter: none; pointer-events: auto; }
.day-kicker { display: inline-flex; align-items: baseline; gap: 10px; font: 600 15px/1 var(--text); color: var(--ink-2); }
.day-kicker b { font: 700 15px/1 var(--num); letter-spacing: 0.08em; text-transform: uppercase; color: color-mix(in srgb, var(--tint) calc(52% + var(--shine) * 48%), var(--ink)); }
.day h2 { font-size: clamp(28px, 2.7vw, 46px); line-height: 1.04; letter-spacing: -0.04em; }
.day p:not(.day-kicker) { font-size: clamp(15px, 1.15vw, 18px); line-height: 1.45; color: var(--ink-2); max-width: 22em; }
.day-shot { display: none; }

/* Narrow screens (the default): the ring lights up over the headline, then hands over to a small dial beside each
   day's title, and the phone fills the rest of the screen. */
.stage { height: 760svh; --ring-hero: min(60vw, 32svh); --dial: 46px; --phone-h: min(calc(100svh - 268px), 150vw); --phone-w: calc(var(--phone-h) * 0.4782); }
.ring-holder, .anchor-ring-hero { width: var(--ring-hero); height: var(--ring-hero); left: calc(50vw - var(--ring-hero) / 2); top: calc(26svh - var(--ring-hero) / 2); }
.anchor-ring-week { width: var(--dial); height: var(--dial); left: var(--gutter); top: calc(56px + 2.4svh); }
.hero-copy { top: calc(26svh + var(--ring-hero) / 2 + 2.5svh); }
.hero-title { font-size: clamp(40px, 11.2vw, 64px); }
.hero-eyebrow { font-size: 13.5px; }
.hero-lede { font-size: 16.5px; margin-top: 16px; }
.hero-actions { margin-top: 22px; }
.scroll-cue { display: none; }
.device-holder { width: var(--phone-w); height: var(--phone-h); left: calc(50vw - var(--phone-w) / 2); top: calc(100svh - 14px - var(--phone-h)); }
.days { left: var(--gutter); right: var(--gutter); top: calc(56px + 2.4svh); height: 186px; }
.day { align-content: start; justify-items: start; text-align: left; gap: 8px; }
.day-kicker { min-height: var(--dial); align-items: center; padding-left: calc(var(--dial) + 12px); }
.day h2 { font-size: clamp(25px, 7vw, 32px); }
.day p:not(.day-kicker) { font-size: 15px; max-width: none; }
/* The dial: its own small ring with heavier lines, so the week still reads at this size. */
.stage-dial { position: absolute; left: calc(var(--dial) * -0.17); top: calc(var(--dial) * -0.17); width: calc(var(--dial) * 1.34); height: calc(var(--dial) * 1.34); max-width: none; opacity: 0; }

/* Wide screens: the ring holds the day's story on the left, the phone stands on the right. */
@media (min-width: 1000px) and (min-aspect-ratio: 11/10) {
  .stage { height: 820svh; --ring: min(70svh, 44vw); --ring-x: 30vw; --ring-hero: min(36svh, 30vw); --phone-h: min(84svh, 880px); --phone-w: calc(var(--phone-h) * 0.4782); }
  .ring-holder, .anchor-ring-week { width: var(--ring); height: var(--ring); left: calc(var(--ring-x) - var(--ring) / 2); top: calc(50svh - var(--ring) / 2); }
  .anchor-ring-hero { width: var(--ring-hero); height: var(--ring-hero); left: calc(50vw - var(--ring-hero) / 2); top: calc(29svh - var(--ring-hero) / 2); }
  .hero-copy { top: calc(29svh + var(--ring-hero) / 2 + 3.5svh); }
  .hero-title { font-size: clamp(44px, 6.6vw, 108px); }
  .hero-eyebrow { font-size: 15px; }
  .hero-lede { font-size: clamp(17px, 1.45vw, 21px); margin-top: 22px; max-width: 36em; }
  .hero-actions { margin-top: 24px; }
  /* One line wherever the page is wide enough, so the opening stays clear of the scroll cue. */
  .works-with { max-width: none; margin-top: 14px; font-size: 13px; }
  .scroll-cue { display: grid; }
  .device-holder { width: var(--phone-w); height: var(--phone-h); left: calc(69vw - var(--phone-w) / 2); top: calc(51svh - var(--phone-h) / 2); }
  .days { right: auto; width: calc(var(--ring) * 0.62); height: calc(var(--ring) * 0.62); left: calc(var(--ring-x) - var(--ring) * 0.31); top: calc(50svh - var(--ring) * 0.31); }
  .day { align-content: center; justify-items: center; text-align: center; gap: 14px; }
  .day-kicker { min-height: 0; padding-left: 0; }
  .day h2 { font-size: clamp(28px, 2.7vw, 46px); }
  .day p:not(.day-kicker) { font-size: clamp(15px, 1.15vw, 18px); max-width: 22em; }
  .stage-dial { display: none; }
}
@media (min-width: 1000px) and (min-aspect-ratio: 11/10) and (max-height: 760px), (min-width: 1000px) and (max-width: 1199px) and (min-aspect-ratio: 11/10) {
  .scroll-cue { display: none; }
}

/* --------------------------------------------------------------------------------------------------------------------
   Statement */

.statement { padding: clamp(110px, 20svh, 240px) var(--gutter); }
.statement-text { max-width: 21em; margin: 0 auto; text-align: center; font: 700 clamp(32px, 4.5vw, 64px)/1.12 var(--display); letter-spacing: -0.04em; }

/* --------------------------------------------------------------------------------------------------------------------
   Level: pinned while the estimate draws itself across the weeks */

.level { position: relative; height: 270svh; }
.level-pin { position: sticky; top: 0; height: 100svh; display: grid; grid-template-rows: auto 1fr; align-content: start; padding-top: max(76px, 9svh); overflow: hidden; }
.level-pin::before { content: ''; position: absolute; inset: auto -20% -30% -20%; height: 70%; background: radial-gradient(50% 50% at 50% 50%, color-mix(in srgb, var(--level) calc(var(--glow-mix) * 0.5), transparent), transparent 70%); pointer-events: none; }
.level-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 24px 48px; }
.level-figure { position: relative; margin-top: clamp(20px, 4svh, 48px); display: grid; align-content: start; }
.level-readout { display: flex; align-items: baseline; gap: 2px; font: 700 clamp(72px, 9vw, 150px)/0.8 var(--num); color: var(--level-text); text-shadow: 0 0 44px rgba(30, 227, 255, calc(0.45 * var(--shine))); font-variant-numeric: tabular-nums; }
.level-value { min-width: 2ch; text-align: right; }
.level-unit { font-size: 0.45em; }
.estimate-pill { align-self: center; margin-right: 16px; font: 600 13px/1 var(--text); letter-spacing: 0; color: var(--ink); padding: 7px 11px; border-radius: 999px; background: var(--chip); text-shadow: none; }
.level-svg { width: 100%; height: auto; max-height: 40svh; overflow: visible; }
.level-line { fill: none; stroke: var(--level); stroke-width: 3.2; stroke-linejoin: round; stroke-linecap: round; filter: drop-shadow(0 calc((1 - var(--shine)) * 4px) 8px color-mix(in srgb, var(--level) calc(30% + var(--shine) * 35%), transparent)); }
.level-svg stop { stop-color: var(--level); }
.level-grid { stroke: var(--hairline); stroke-dasharray: 2 7; }
.level-settle { stroke: var(--hairline-strong); stroke-dasharray: 7 8; }
.level-base { stroke: var(--hairline-strong); }
.level-grid-label { fill: var(--ink-3); font: 500 15px var(--text); }
.level-settle-label { fill: var(--ink-2); }
.level-dose { fill: var(--accent); filter: drop-shadow(0 0 6px color-mix(in srgb, var(--accent) calc(var(--shine) * 80%), transparent)); }
.level-week { fill: var(--ink-3); opacity: 0.45; font: 600 16px var(--num); letter-spacing: 0.06em; text-transform: uppercase; transition: opacity 0.4s, fill 0.4s; }
.level-week.is-on { opacity: 1; fill: var(--ink-2); }
.level-halo { fill: color-mix(in srgb, var(--level) 28%, transparent); }
.level-head { fill: var(--tile); stroke: var(--level); stroke-width: 3; filter: drop-shadow(0 0 10px color-mix(in srgb, var(--level) calc(30% + var(--shine) * 60%), transparent)); }
.level-notes { display: grid; grid-template-columns: auto 1fr; gap: 6px 28px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--hairline); opacity: 0; transform: translateY(12px); transition: opacity 0.7s var(--ease-out), transform 0.9s var(--ease-out); }
.level-notes.is-in { opacity: 1; transform: none; }
.level-notes-title { grid-row: span 2; font: 600 14px/1.5 var(--text); color: var(--ink); }
.level-notes ul { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px 24px; font-size: 13px; line-height: 1.45; color: var(--ink-2); }
.level-notes-fine { grid-column: 2; font-size: 13px; color: var(--ink-3); }

/* --------------------------------------------------------------------------------------------------------------------
   Feature tiles */

.features { padding-block: clamp(110px, 16svh, 200px) clamp(60px, 10svh, 120px); }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: clamp(40px, 6svh, 72px); }
.tile { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; gap: 28px; min-height: 440px; padding: clamp(26px, 2.4vw, 36px); border-radius: 30px; background: var(--tile); box-shadow: inset 0 0 0 1px var(--tile-line), var(--tile-shadow);
  opacity: 0; transform: translateY(40px) scale(0.98); transition: opacity 0.9s var(--ease-out), transform 1.1s var(--ease-out), box-shadow 0.4s; }
.tile.is-in { opacity: 1; transform: none; }
.tile::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(460px circle at var(--mx, 50%) var(--my, 0%), var(--spot), transparent 62%); opacity: 0; transition: opacity 0.5s; }
.tile:hover::before { opacity: 1; }
.tile:hover { box-shadow: inset 0 0 0 1px var(--tile-line-hover), var(--tile-shadow); }
.tile h3 { font-size: clamp(22px, 1.8vw, 27px); line-height: 1.12; letter-spacing: -0.03em; }
.tile-copy p { margin-top: 10px; font-size: 16px; line-height: 1.45; color: var(--ink-2); max-width: 26em; }
.tile-art { margin-top: auto; }
.tile-pattern, .tile-quote { grid-column: span 2; }

/* Side effects by day */
.pattern { display: grid; grid-template-columns: 40px repeat(7, minmax(0, 1fr)); gap: 7px; align-items: center; }
.pattern-head, .pattern-row { font: 600 13px/1 var(--num); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.pattern-head { text-align: center; padding-bottom: 4px; }
.pattern i { height: clamp(22px, 2.6vw, 34px); border-radius: 8px; background: color-mix(in srgb, var(--amber) calc(var(--v) * 100%), var(--cell)); box-shadow: 0 0 calc(var(--v) * 22px) calc(var(--v) * -6px) rgba(255, 178, 30, calc(0.75 * var(--shine))); opacity: 0; transform: scale(0.5); }
.tile.is-in .pattern i { animation: pop 0.7s var(--ease-out) forwards; animation-delay: calc(0.25s + var(--d) * 55ms); }
@keyframes pop { to { opacity: 1; transform: none; } }

/* A private reminder on a lock screen */
.lock-screen { position: relative; overflow: hidden; height: 250px; padding: 26px 14px 16px; border-radius: 24px; text-align: center; background: radial-gradient(120% 90% at 20% 0%, #3B1230, transparent 60%), radial-gradient(90% 80% at 100% 100%, #2D1A05, transparent 60%), #0A0A10; }
.lock-time { font: 600 66px/1 var(--display); letter-spacing: -0.03em; color: rgba(255, 255, 255, 0.92); }
.lock-date { margin-top: 6px; font-size: 14px; font-weight: 500; color: rgba(255, 255, 255, 0.7); }
.notice { display: flex; gap: 11px; margin-top: 26px; padding: 11px 13px; border-radius: 20px; text-align: left; background: rgba(255, 255, 255, 0.14); backdrop-filter: blur(24px) saturate(160%); -webkit-backdrop-filter: blur(24px) saturate(160%); opacity: 0; transform: translateY(-34px) scale(0.94); }
.tile.is-in .notice { animation: notice 1s var(--ease-out) 0.5s forwards; }
@keyframes notice { to { opacity: 1; transform: none; } }
.notice-icon svg { width: 38px; height: 38px; border-radius: 9px; }
.notice > div { flex: 1; min-width: 0; }
.notice-head { display: flex; justify-content: space-between; font-size: 12px; color: rgba(255, 255, 255, 0.6); }
.notice-head b { color: rgba(255, 255, 255, 0.85); font-weight: 600; }
.notice-title { margin-top: 1px; font-size: 15px; font-weight: 600; color: #FFF; }
.notice-body { font-size: 15px; color: rgba(255, 255, 255, 0.86); }

/* The dose ladder */
.ladder { display: flex; align-items: flex-end; gap: 9px; height: 200px; padding-top: 30px; }
.rung { position: relative; flex: 1; height: calc(var(--h) * 100%); border-radius: 10px 10px 5px 5px; background: var(--rung); transform: scaleY(0); transform-origin: bottom; }
.rung span { position: absolute; left: 50%; bottom: calc(100% + 9px); translate: -50% 0; white-space: nowrap; font: 600 14px/1 var(--num); letter-spacing: 0.02em; color: var(--ink-3); }
.rung.is-past { background: color-mix(in srgb, var(--accent) 32%, var(--rung)); }
.rung.is-current { background: linear-gradient(var(--accent-light), var(--accent)); box-shadow: 0 calc((1 - var(--shine)) * 10px) 34px -4px color-mix(in srgb, var(--accent) calc(45% + var(--shine) * 30%), transparent); }
.rung.is-current span { color: var(--ink); }
.tile.is-in .rung { animation: rise 0.9s var(--ease-out) forwards; animation-delay: calc(0.2s + var(--d) * 90ms); }
@keyframes rise { to { transform: none; } }

/* Doses left in the pen */
.supply { display: grid; gap: 14px; }
.pen { display: flex; align-items: center; gap: 6px; height: 54px; padding: 7px; border-radius: 16px; background: var(--pen); box-shadow: inset 0 0 0 1px var(--tile-line); }
.pen i { flex: 1; height: 100%; border-radius: 9px; background: linear-gradient(#FFC94D, #FF9500); box-shadow: 0 calc((1 - var(--shine)) * 6px) 20px -6px rgba(255, 149, 0, calc(0.45 + var(--shine) * 0.35)); }
.pen i:not(.left) { background: var(--rung); box-shadow: none; transition: background 0.6s, box-shadow 0.6s; }
.tile:not(.is-in) .pen i:not(.left) { background: linear-gradient(#FFC94D, #FF9500); }
.tile.is-in .pen i:nth-child(1) { transition-delay: 0.6s; }
.tile.is-in .pen i:nth-child(2) { transition-delay: 1s; }
.pen b { width: 24px; height: 62%; border-radius: 4px 12px 12px 4px; background: var(--pen-cap); }
.supply-count { font: 600 17px/1 var(--text); color: var(--ink-2); }
.supply-count span { font: 700 64px/0.8 var(--num); color: var(--amber-text); margin-right: 8px; text-shadow: 0 0 30px rgba(255, 178, 30, calc(0.45 * var(--shine))); }
.supply-date { font-size: 14px; color: var(--ink-3); }

/* The next-dose widget */
.widget-art { display: grid; place-items: center; }
.widget { position: relative; overflow: hidden; width: 176px; height: 176px; border-radius: 40px; background: var(--widget); box-shadow: inset 0 0 0 1px var(--tile-line), 0 30px 60px -30px rgba(0, 0, 0, calc(0.3 + var(--shine) * 0.7)); --ring-hole: var(--widget); }
.widget-ring { position: absolute; inset: 0; width: 100%; height: 100%; }
.widget-text { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 3px; }
.widget-text small { font: 600 11px/1 var(--text); color: var(--accent); }
.widget-text b { font: 700 30px/1 var(--num); }
.widget-text span { font-size: 11px; color: var(--ink-3); }

/* The label's own words */
.tile-quote { justify-content: center; gap: 18px; min-height: 0; background: radial-gradient(100% 120% at 0% 0%, color-mix(in srgb, var(--accent) calc(var(--glow-mix) * 0.7), transparent), transparent 55%), var(--tile); }
.tile-quote > .icon { width: 40px; height: 40px; color: var(--accent); }
.tile-quote blockquote { margin: 0; font: 600 clamp(21px, 2vw, 30px)/1.32 var(--display); letter-spacing: -0.025em; max-width: 30em; }
.tile-quote .cite { font-size: 13.5px; color: var(--ink-3); }

/* A report for the doctor */
.report { position: relative; display: grid; place-items: center; min-height: 210px; }
.page { display: grid; gap: 9px; width: 156px; padding: 18px 16px; border-radius: 12px; background: #FFFFFF; transform: rotate(-5deg) translateY(30px); opacity: 0; box-shadow: 0 0 0 1px var(--tile-line), 0 30px 60px -20px rgba(0, 0, 0, calc(0.25 + var(--shine) * 0.75)); transition: transform 1s var(--ease-out) 0.2s, opacity 0.8s var(--ease-out) 0.2s; }
.tile.is-in .page { transform: rotate(-5deg); opacity: 1; }
.page b { width: 62%; height: 11px; border-radius: 4px; background: #0B0B10; }
.page i { height: 6px; border-radius: 3px; background: #CDCED6; }
.page i.short { width: 58%; }
.page svg { width: 100%; height: auto; }
.page path { fill: none; stroke: #D60F5A; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 160; stroke-dashoffset: 160; }
.tile.is-in .page path { animation: draw 1.6s var(--ease-out) 0.8s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.pdf { position: absolute; right: 22%; bottom: 14%; padding: 6px 10px; border-radius: 8px; font: 700 13px/1 var(--text); letter-spacing: 0.04em; color: #FFF; background: #FF2D78; box-shadow: 0 10px 30px -8px rgba(255, 45, 120, 0.8); }

/* --------------------------------------------------------------------------------------------------------------------
   Privacy */

.privacy { padding-block: clamp(110px, 16svh, 200px); overflow-x: clip; }
.privacy-inner { display: grid; justify-items: center; text-align: center; }
.privacy .section-lede { margin-inline: auto; }
.seal { position: relative; width: min(280px, 64vw); aspect-ratio: 1; margin-bottom: clamp(24px, 4svh, 48px); }
.seal-glow { position: absolute; inset: -40%; background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) calc(var(--glow-mix) * 1.1), transparent), transparent 72%); pointer-events: none; }
.seal-svg { position: relative; width: 100%; height: 100%; overflow: visible; }
.seal-segment { fill: none; stroke: var(--ring-day); stroke-width: 15; stroke-linecap: round; filter: drop-shadow(0 calc((1 - var(--shine)) * 5px) 9px color-mix(in srgb, var(--ring-day) calc(40% + var(--shine) * 30%), transparent)); }
.seal-segment.seal-dose { stroke: var(--ring-dose); stroke-width: 22; filter: drop-shadow(0 calc((1 - var(--shine)) * 5px) 10px color-mix(in srgb, var(--ring-dose) calc(40% + var(--shine) * 30%), transparent)); }
.seal-lock { fill: var(--ink); }
.facts { list-style: none; margin: clamp(48px, 8svh, 80px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px; width: 100%; text-align: left; }
.facts li { display: grid; align-content: start; gap: 10px; padding-top: 22px; border-top: 1px solid var(--hairline-strong); }
.facts .icon { width: 30px; height: 30px; color: var(--accent); }
.facts h3 { font: 600 19px/1.25 var(--display); letter-spacing: -0.02em; }
.facts p { font-size: 15.5px; color: var(--ink-2); }

/* --------------------------------------------------------------------------------------------------------------------
   Pricing */

.pricing { padding-block: clamp(90px, 14svh, 180px); }
/* Pricing and the comparison stand centred, as the privacy seal does: their blocks are narrower than the page. */
.pricing > .wrap, .compare > .wrap { display: grid; justify-items: center; text-align: center; }
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; width: 100%; margin-top: clamp(40px, 6svh, 64px); max-width: 1000px; text-align: left; }
.plan { position: relative; display: grid; align-content: start; gap: 14px; padding: clamp(28px, 3vw, 44px); border-radius: 32px; background: var(--tile); box-shadow: inset 0 0 0 1px var(--tile-line), var(--tile-shadow); }
.plan h3 { font-size: 30px; letter-spacing: -0.03em; }
.plan-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.trial { font: 600 13px/1 var(--text); padding: 8px 12px; border-radius: 999px; color: #000; background: linear-gradient(95deg, #FF2D78, #FFB21E); }
.price { font: 700 76px/0.9 var(--num); letter-spacing: -0.01em; font-variant-numeric: tabular-nums; margin-top: 6px; }
.price small { font: 500 17px/1 var(--text); letter-spacing: 0; margin-left: 8px; color: var(--ink-2); }
.price-note { font-size: 15px; color: var(--ink-2); }
.plan ul { list-style: none; margin: 16px 0 0; padding: 18px 0 0; border-top: 1px solid var(--hairline); display: grid; gap: 13px; }
.plan li { display: flex; align-items: center; gap: 12px; font-size: 16px; }
.plan li .icon { width: 19px; height: 19px; color: var(--ink-3); }
.plan-pro { background: radial-gradient(120% 80% at 100% 0%, color-mix(in srgb, var(--accent) calc(var(--glow-mix) * 0.65), transparent), transparent 60%), var(--tile); box-shadow: 0 0 120px -50px color-mix(in srgb, var(--accent) calc(35% + var(--shine) * 35%), transparent); }
.plan-pro::before { content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; background: conic-gradient(from var(--spin), #FF2D78, #FFB21E, #FF2D78 40%, rgba(255, 45, 120, 0.15) 60%, #FF2D78); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: spin 7s linear infinite; pointer-events: none; }
@keyframes spin { to { --spin: 360deg; } }
.plan-pro li .icon { color: var(--accent); }
/* What a person can count on before paying anything. */
.trust { list-style: none; margin: 30px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 30px; max-width: 1000px; }
.trust li { display: inline-flex; align-items: center; gap: 9px; font: 500 15.5px/1.3 var(--text); color: var(--ink-2); }
.trust .icon { width: 19px; height: 19px; color: var(--accent); }

/* --------------------------------------------------------------------------------------------------------------------
   Switching: Hushweek and Shotsy side by side. Hushweek's column stands on a lit panel, and its answers light up row
   by row as the table comes into view (main.js adds .is-lit). Every Shotsy cell is from Shotsy's own listing and site,
   dated in the note under the table: re-check them before changing a row. */

.compare { padding-bottom: clamp(90px, 14svh, 180px); }
.versus-wrap { --feature: 48%; --col: 26%; position: relative; isolation: isolate; width: 100%; margin-top: clamp(40px, 6svh, 64px); max-width: 940px; }
.versus-wrap::before { content: ''; position: absolute; z-index: -1; top: 0; bottom: 0; left: var(--feature); width: var(--col); border-radius: 28px;
  background: radial-gradient(130% 50% at 50% 0%, color-mix(in srgb, var(--accent) calc(var(--glow-mix) * 0.7), transparent), transparent 70%), var(--tile);
  box-shadow: inset 0 0 0 1px var(--tile-line), 0 0 110px -46px color-mix(in srgb, var(--accent) calc(35% + var(--shine) * 35%), transparent); }
.versus { width: 100%; border-collapse: collapse; table-layout: fixed; }
.versus-feature { width: var(--feature); }
.versus-col { width: var(--col); }
.versus th, .versus td { padding: 18px 12px; text-align: center; vertical-align: middle; }
.versus tbody tr + tr > * { border-top: 1px solid var(--hairline); }
.versus tbody th { padding-left: 0; text-align: left; font: 500 clamp(15px, 1.25vw, 18px)/1.35 var(--text); letter-spacing: -0.012em; color: var(--ink); }
.versus thead th { padding: 28px 12px 20px; font: 700 clamp(17px, 1.5vw, 21px)/1.1 var(--display); letter-spacing: -0.02em; color: var(--ink-3); white-space: nowrap; }
.versus thead .versus-us { color: var(--ink); }
.versus-us svg { display: inline-block; width: 24px; height: 24px; vertical-align: -6px; margin-right: 8px; }
.versus td small { display: block; margin-top: 7px; font: 500 12.5px/1.3 var(--text); color: var(--ink-3); }
.vs { display: inline-block; padding: 7px 12px 6px; border-radius: 999px; font: 600 14px/1 var(--text); letter-spacing: -0.005em; white-space: nowrap; color: var(--ink-2); background: var(--chip); }
.vs-free { color: var(--on-accent); background: var(--accent); box-shadow: 0 0 22px -4px color-mix(in srgb, var(--accent) calc(var(--shine) * 70%), transparent); }
.vs-pro { color: #000; background: linear-gradient(95deg, #FF2D78, #FFB21E); box-shadow: 0 0 22px -4px color-mix(in srgb, #FFB21E calc(var(--shine) * 60%), transparent); }
.vs-none { display: inline-flex; align-items: center; font: 500 14px/1.3 var(--text); color: var(--ink-3); }
.vs-none .icon { width: 18px; height: 18px; }
.js .versus td:nth-child(2) .vs { transition: opacity 0.5s var(--ease-out), filter 0.5s var(--ease-out), box-shadow 0.6s var(--ease-out); transition-delay: calc(var(--i, 0) * 110ms + 150ms); }
.js .versus-wrap:not(.is-lit) td:nth-child(2) .vs { opacity: 0.35; filter: saturate(0); box-shadow: none; }
.versus-note { margin-top: 24px; max-width: 46em; font-size: 13.5px; line-height: 1.5; color: var(--ink-3); }

/* --------------------------------------------------------------------------------------------------------------------
   Questions */

.questions { padding-block: clamp(80px, 12svh, 160px); }
.questions-inner { max-width: 940px; }
.qa { margin-top: clamp(32px, 5svh, 56px); border-top: 1px solid var(--hairline-strong); }
.qa details { border-bottom: 1px solid var(--hairline-strong); }
.qa summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 26px 0; font: 600 clamp(19px, 1.6vw, 23px)/1.3 var(--display); letter-spacing: -0.02em; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: ''; flex: none; width: 14px; height: 14px; background: linear-gradient(currentColor 0 0) center / 100% 2px no-repeat, linear-gradient(currentColor 0 0) center / 2px 100% no-repeat; color: var(--ink-2); transition: transform 0.4s var(--ease-out); }
.qa details[open]:not(.is-closing) summary::after { transform: rotate(45deg); }
.qa details p { padding: 0 48px 28px 0; font-size: 17px; line-height: 1.55; color: var(--ink-2); }
.qa a { color: var(--accent); }

/* --------------------------------------------------------------------------------------------------------------------
   Finale */

.finale { position: relative; overflow: hidden; padding-block: clamp(110px, 18svh, 220px); text-align: center; }
.finale::before { content: ''; position: absolute; inset: 20% -10% -30%; background: radial-gradient(40% 50% at 50% 40%, color-mix(in srgb, var(--accent) calc(var(--glow-mix) * 0.8), transparent), transparent 70%); pointer-events: none; }
.finale-inner { position: relative; display: grid; justify-items: center; }
/* Drawn larger than the ring it shows, so the glow fades out inside the canvas; the margins give the space back. */
.finale-ring { --fr: clamp(150px, 18vw, 220px); width: calc(var(--fr) * 1.412); height: calc(var(--fr) * 1.412); max-width: none; margin: calc(var(--fr) * -0.206) 0 calc(var(--fr) * -0.206 + 18px); }
.finale-title { font-size: clamp(52px, 8.4vw, 128px); line-height: 1; letter-spacing: -0.055em; }
.finale .section-lede { margin-inline: auto; }
.finale .hero-actions { margin-top: 34px; }

/* --------------------------------------------------------------------------------------------------------------------
   Narrow screens */

@media (max-width: 999px) {
  .tiles { grid-template-columns: minmax(0, 1fr); }
  .tile-pattern, .tile-quote { grid-column: auto; }
  .tile { min-height: 0; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
  .plans { grid-template-columns: minmax(0, 1fr); }
  .level { height: 230svh; }
  .level-head { grid-template-columns: minmax(0, 1fr); }
  .level-readout { font-size: clamp(64px, 18vw, 96px); }
  .level-notes { grid-template-columns: minmax(0, 1fr); }
  .level-notes-title { grid-row: auto; }
  .level-notes ul { grid-template-columns: minmax(0, 1fr); }
  .level-notes-fine { grid-column: auto; }
  .level-svg { max-height: 34svh; }
  /* A phone can't fit the heading, the chart and the notes in one screen: the panel grows to hold them, and the notes
     show from the start, so nothing is cut off as the section scrolls away. */
  .level-pin { height: auto; min-height: 100svh; padding-bottom: 40px; }
  .level-notes { opacity: 1; transform: none; }
}
@media (max-width: 640px) {
  .versus-wrap { --feature: 40%; --col: 30%; }
  .versus-wrap::before { border-radius: 20px; }
  .versus th, .versus td { padding: 14px 6px; }
  .versus tbody th { font-size: 14.5px; }
  .versus thead th { padding: 22px 6px 16px; font-size: 16px; }
  .versus-us svg { display: none; }
  .vs { padding: 6px 9px 5px; font-size: 12.5px; }
  .vs-none { font-size: 12.5px; }
  .versus td small { font-size: 11.5px; }
}
@media (max-width: 560px) {
  .facts { grid-template-columns: minmax(0, 1fr); }
  .level-grid-label { font-size: 26px; }
  .level-week { font-size: 26px; }
  .qa details p { padding-right: 0; }
}

/* --------------------------------------------------------------------------------------------------------------------
   Guides: the latest three (website/src/blog/build-blog.mjs, homeJournal), between pricing and the questions. They are
   feature tiles, so main.js brings them in and the pointer light follows. Each takes its topic's hue (--hue, set on the
   tile): a glow on dark, a soft coloured shadow on light (--glowing, 1 or 0, follows the theme). */

:root { --glowing: 0; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --glowing: 1; }
}
:root[data-theme="dark"], :root.dark { --glowing: 1; }

.guides { padding-block: clamp(40px, 7svh, 90px); }
.guides-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 18px 40px; }
.guides-all { display: inline-flex; align-items: center; gap: 6px; padding-bottom: 8px; font: 600 17px/1.3 var(--text); letter-spacing: -0.01em; color: var(--accent); text-decoration: none; }
.guides-all:hover { text-decoration: underline; text-underline-offset: 5px; }
.guide-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: clamp(36px, 5svh, 56px); }
.tile-guide { min-height: 0; gap: 12px; color: var(--ink); text-decoration: none; }
.guide-art { display: grid; place-items: center; width: 60px; height: 60px; margin-bottom: 12px; border-radius: 18px;
  color: color-mix(in srgb, var(--hue) calc(84% + var(--glowing) * 16%), var(--ink));
  background: color-mix(in srgb, var(--hue) 12%, var(--surface));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--hue) 26%, transparent), 0 calc((1 - var(--glowing)) * 12px) 48px -14px color-mix(in srgb, var(--hue) calc(30% + var(--glowing) * 30%), transparent); }
.guide-art .icon { width: 28px; height: 28px; filter: drop-shadow(0 0 calc(var(--glowing) * 8px) color-mix(in srgb, var(--hue) calc(var(--glowing) * 70%), transparent)); }
.guide-cat { font: 700 14px/1 var(--num); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.tile-guide p { font-size: 16px; line-height: 1.45; color: var(--ink-2); }
.guide-meta { margin-top: auto; padding-top: 14px; font-size: 13.5px; color: var(--ink-3); }
@media (max-width: 999px) {
  .guide-tiles { grid-template-columns: minmax(0, 1fr); }
}
