/* dischargeRx — the landing page.
 *
 * One Saturday in one person's first days home, told by the clock. Photographs
 * carry the people; real app screens, in an exact iPhone frame, carry the
 * product. The story's background follows the time of day, the way the app's
 * own Today sky does.
 *
 * The page is deliberately single-theme (the app's cream and navy); the night
 * chapter and the closing band are the only dark surfaces, and they are dark
 * because of what time it is in the story.
 */

@font-face { font-family: 'Fraunces'; src: url('assets/fonts/fraunces-latin-full-normal.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Fraunces'; src: url('assets/fonts/fraunces-latin-full-italic.woff2') format('woff2'); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: 'Figtree'; src: url('assets/fonts/figtree-latin-wght-normal.woff2') format('woff2'); font-weight: 300 900; font-style: normal; font-display: swap; }

:root {
  --cream: #fbf7ef;       /* the app's background */
  --paper: #fffdf9;
  --warm: #f3ebdc;
  --line: rgba(16, 42, 86, 0.12);
  --ink: #102a56;         /* the app's navy; 13.6:1 on --cream */
  --ink-2: #47556d;       /* 7.4:1 on --cream */
  --honey: #8a5a12;       /* 6.1:1 on --cream */
  --teal: #0b7a6d;        /* the wordmark's Rx */
  --night: #0f1a33;
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gutter: clamp(16px, 4.5vw, 64px);
  --max: 1240px;
  --head: 68px;
  --ease: cubic-bezier(0.2, 0, 0, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--head) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--sans); font-size: 1.125rem; line-height: 1.6; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 4px; text-decoration-thickness: from-font; }
:focus-visible { outline: 2.5px solid currentColor; outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; inset-inline-start: 16px; top: -64px; z-index: 60; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 10px; }
.skip:focus { top: 12px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 450; font-optical-sizing: auto; font-variation-settings: 'SOFT' 100, 'WONK' 0; text-wrap: balance; }
h1 { font-size: clamp(2.625rem, 1.6rem + 3.3vw, 4.5rem); line-height: 1; letter-spacing: -0.025em; }
h2 { font-size: clamp(2rem, 1.35rem + 2.6vw, 3.5rem); line-height: 1.06; letter-spacing: -0.018em; }
h3 { font-size: clamp(1.5rem, 1.2rem + 1.1vw, 2.125rem); line-height: 1.12; letter-spacing: -0.01em; }
p { margin: 0 0 1em; text-wrap: pretty; }
.eyebrow { margin: 0 0 18px; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--honey); }
.lede { font-size: clamp(1.1875rem, 1.05rem + 0.45vw, 1.375rem); line-height: 1.5; color: var(--ink-2); max-width: 36em; }
.fine { font-size: 0.875rem; line-height: 1.55; color: var(--ink-2); }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 28px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 650; font-size: 1.0625rem; text-decoration: none; transition-property: background-color, scale; transition-duration: 150ms; transition-timing-function: var(--ease); }
.btn:hover { background: #1b3c74; }
.btn:active { scale: 0.96; }
.btn-small { min-height: 44px; padding: 0 20px; font-size: 0.9375rem; white-space: nowrap; }
.text-link { font-weight: 650; padding-block: 12px; text-decoration: underline; text-decoration-color: rgba(16, 42, 86, 0.3); }
.text-link:hover { text-decoration-color: currentColor; }

/* ---------- Header ---------- */
.top { position: sticky; top: 0; z-index: 40; background: rgba(251, 247, 239, 0.9); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.top-inner { max-width: var(--max); height: var(--head); margin-inline: auto; padding: 0 var(--gutter); display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 750; font-size: 1.1875rem; letter-spacing: -0.015em; text-decoration: none; color: var(--ink); }
.brand img { border-radius: 8px; }
.rx { color: var(--teal); }
.top-links { display: flex; gap: 28px; margin-inline-start: auto; font-size: 0.9375rem; font-weight: 550; }
.top-links a { text-decoration: none; color: var(--ink-2); padding-block: 12px; }
.top-links a:hover { color: var(--ink); }
.menu { display: none; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--ink); background: none; font: 650 0.9375rem var(--sans); color: var(--ink); cursor: pointer; }

/* ---------- The phone ----------
 * An iPhone 15/16 Pro, measured on its own 393 × 852 pt grid. The screens are
 * captured at that size with the device's safe-area insets, so the app already
 * leaves the top 59 pt and bottom 34 pt for the system: the frame draws only
 * the status bar, Dynamic Island and home indicator into them, and never
 * covers the app. Inside .phone-screen, 1pt = calc(100 * var(--u)) / 393.
 */
.phone { --w: 280px; --bz: calc(var(--w) * 0.034); --u: calc(var(--w) * 0.00932); /* 1% of the screen's width */ position: relative; flex: none; width: var(--w); padding: var(--bz); border-radius: calc(var(--w) * 0.164); background: #0c0c0e; box-shadow: 0 0 0 calc(var(--w) * 0.007) #a5a7ab, 0 0 0 calc(var(--w) * 0.011) #6c6e73, inset 0 0 0 1px #2c2d31, 0 2px 4px rgba(16, 42, 86, 0.08), 0 38px 70px -30px rgba(16, 42, 86, 0.5); }
.phone::before, .phone::after { content: ''; position: absolute; width: calc(var(--w) * 0.012); border-radius: 2px; background: #8d8f94; }
.phone::before { inset-inline-start: calc(var(--w) * -0.021); top: 17%; height: calc(var(--w) * 0.075); box-shadow: 0 calc(var(--w) * 0.135) 0 #8d8f94, 0 calc(var(--w) * 0.28) 0 #8d8f94; }
.phone::after { inset-inline-end: calc(var(--w) * -0.021); top: 25%; height: calc(var(--w) * 0.24); }
.phone-screen { position: relative; aspect-ratio: 393 / 852; border-radius: calc(var(--w) * 0.13); overflow: hidden; background: #fff; isolation: isolate; }
.phone-screen > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sb { position: absolute; inset: 0 0 auto; height: calc(15.01 * var(--u)); color: #000; pointer-events: none; z-index: 2; }
.sb-time { position: absolute; left: calc(17.2 * var(--u)); top: calc(7.6 * var(--u)); translate: -50% -50%; font: 600 calc(4.33 * var(--u))/1 -apple-system, 'SF Pro Text', system-ui, var(--sans); letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.sb-island { position: absolute; left: 50%; top: calc(2.8 * var(--u)); width: calc(32.06 * var(--u)); height: calc(9.41 * var(--u)); translate: -50% 0; border-radius: 99px; background: #000; }
.sb-icons { position: absolute; left: calc(73.3 * var(--u)); top: calc(5.9 * var(--u)); width: calc(19.85 * var(--u)); height: calc(3.31 * var(--u)); fill: currentColor; overflow: visible; }
.home-bar { position: absolute; left: 50%; bottom: calc(2.04 * var(--u)); width: calc(34.1 * var(--u)); height: calc(1.27 * var(--u)); translate: -50% 0; border-radius: 99px; background: #000; z-index: 2; pointer-events: none; }
.phone[data-bar='light'] .sb { color: #fff; }
/* The home indicator sits over the app's tab bar, which is light on every
   screen except the dark appearance. */
.phone[data-home='light'] .home-bar { background: #fff; }

/* ---------- Hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; gap: clamp(72px, 8vw, 128px); min-height: min(calc(100vh - var(--head)), 860px); padding-inline-start: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))); padding-block: clamp(32px, 5vw, 72px); }
.hero-text { max-width: 560px; padding-block: 24px; }
.hero h1 em { display: block; margin-top: 0.08em; font-style: italic; font-weight: 400; color: var(--honey); }
.hero-sub { margin-top: 26px; font-size: clamp(1.1875rem, 1.06rem + 0.4vw, 1.375rem); line-height: 1.5; color: var(--ink-2); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 26px; margin-top: 32px; }
.hero-note { margin: 18px 0 0; font-size: 0.9375rem; color: var(--ink-2); }
.hero-media { position: relative; align-self: stretch; min-height: 520px; }
.hero-photo { position: absolute; inset: 0 0 0 0; margin: 0; border-radius: 36px 0 0 36px; overflow: hidden; background: var(--warm); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 66% 40%; }
.hero-phone { --w: clamp(200px, 17vw, 250px); position: absolute; inset-inline-start: calc(var(--w) * -0.24); bottom: clamp(24px, 6%, 64px); }

/* ---------- What it does ---------- */
.gist { max-width: var(--max); margin: clamp(40px, 6vw, 88px) auto 0; padding: 0 var(--gutter); }
.gist-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); counter-reset: gist; }
.gist-list li { position: relative; padding-top: 26px; border-top: 1.5px solid var(--ink); counter-increment: gist; }
.gist-list li::before { content: counter(gist); position: absolute; inset-inline-end: 0; top: 18px; font-family: var(--serif); font-style: italic; font-size: 1.375rem; color: var(--honey); }
.gist-icon { width: 30px; height: 30px; margin-bottom: 14px; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.gist h3 { font-size: 1.625rem; margin-bottom: 10px; }
.gist p { color: var(--ink-2); margin: 0; }

/* ---------- Story intro + audience switch ---------- */
.story-intro { max-width: 980px; margin: clamp(96px, 12vw, 176px) auto 0; padding: 0 var(--gutter) clamp(48px, 6vw, 80px); text-align: center; }
.story-intro h2 { max-width: 24ch; margin-inline: auto; }
.who { margin-top: clamp(32px, 4vw, 48px); }
.who fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.who legend { margin: 0 auto 16px; padding: 0; font-size: 1rem; font-weight: 600; color: var(--ink-2); }
.who-options { display: inline-grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 6px; border-radius: 26px; background: var(--warm); }
.who-options label { position: relative; cursor: pointer; }
.who-options input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.who-options span { display: grid; grid-template-columns: 52px auto; grid-template-rows: auto auto; column-gap: 14px; align-items: center; min-width: 236px; padding: 12px 22px 12px 12px; border-radius: 20px; text-align: start; transition-property: background-color, box-shadow; transition-duration: 200ms; transition-timing-function: var(--ease); }
.who-options span img { grid-row: 1 / 3; width: 52px; height: 52px; border-radius: 50%; object-fit: cover; object-position: 50% 22%; outline: 1px solid rgba(0, 0, 0, 0.1); outline-offset: -1px; }
.who-options b { align-self: end; font-size: 1.125rem; line-height: 1.2; }
.who-options small { align-self: start; font-size: 0.875rem; color: var(--ink-2); }
.who-options input:checked + span { background: var(--paper); box-shadow: 0 1px 2px rgba(16, 42, 86, 0.1), 0 8px 20px -10px rgba(16, 42, 86, 0.35); }
.who-options input:focus-visible + span { outline: 2.5px solid var(--ink); outline-offset: 2px; }

/* The audience switch is CSS only: either story can be read without script. */
body:not(:has(#aud-helper:checked)) [data-for='helper'],
body:has(#aud-helper:checked) [data-for='patient'] { display: none !important; }
/* Browsers without :has() drop the rule above; script sets this instead. */
html[data-audience='patient'] [data-for='helper'],
html[data-audience='helper'] [data-for='patient'] { display: none !important; }

/* ---------- The story ---------- */
/* Time-of-day tones. Live (with script) the whole story takes the tone of the
   chapter being read; without script each chapter carries its own. */
.story.is-live, .story:not(.is-live) .chapter { --t-bg: var(--cream); --t-fg: var(--ink); --t-fg2: var(--ink-2); --t-accent: var(--honey); --t-panel: rgba(255, 253, 249, 0.72); --t-line: rgba(16, 42, 86, 0.14); }
.story.is-live[data-tone='dusk'], .story:not(.is-live) .chapter[data-tone='dusk'] { --t-bg: #f0e2d2; --t-accent: #874a1e; --t-fg2: #4b4e63; }
.story.is-live[data-tone='dawn'], .story:not(.is-live) .chapter[data-tone='dawn'] { --t-bg: #f8ebe4; --t-accent: #8a4535; --t-fg2: #4d5066; }
.story.is-live[data-tone='morning'], .story:not(.is-live) .chapter[data-tone='morning'] { --t-bg: #f7f0de; --t-accent: #805410; }
.story.is-live[data-tone='day'], .story:not(.is-live) .chapter[data-tone='day'] { --t-bg: #e9f0ee; --t-accent: #23615a; --t-fg2: #42536a; }
.story.is-live[data-tone='afternoon'], .story:not(.is-live) .chapter[data-tone='afternoon'] { --t-bg: #f5e6c9; --t-accent: #7a4b0c; --t-fg2: #4a4f62; }
.story.is-live[data-tone='night'], .story:not(.is-live) .chapter[data-tone='night'] { --t-bg: #101b35; --t-fg: #f3ede3; --t-fg2: #c5c9d4; --t-accent: #e9c47f; --t-panel: rgba(255, 255, 255, 0.07); --t-line: rgba(255, 255, 255, 0.18); }
.story.is-live { background-color: var(--t-bg); color: var(--t-fg); transition: background-color 900ms var(--ease), color 600ms var(--ease); }
.story:not(.is-live) .chapter { background-color: var(--t-bg); color: var(--t-fg); }
@media (prefers-reduced-motion: reduce) { .story.is-live { transition-duration: 1ms; } }

.story-grid { max-width: 1320px; margin-inline: auto; padding: 0 var(--gutter); }
.rail, .stage { display: none; }
.chapter { padding: clamp(56px, 9vw, 96px) 0; }
.chapter > * { max-width: 620px; margin-inline: auto; }
.stamp { margin-bottom: 14px; font-family: var(--serif); font-style: italic; font-size: clamp(1.5rem, 1.25rem + 0.9vw, 2.125rem); line-height: 1.1; color: var(--t-accent, var(--honey)); font-variant-numeric: lining-nums; }
.stamp span { margin-inline-end: 10px; font-family: var(--sans); font-style: normal; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; vertical-align: 0.3em; color: var(--t-fg2, var(--ink-2)); }
.chapter h3 { margin-bottom: 24px; font-size: clamp(1.875rem, 1.3rem + 2.2vw, 3rem); line-height: 1.06; letter-spacing: -0.018em; }
.chapter p { color: var(--t-fg2, var(--ink-2)); font-size: 1.1875rem; }
.chapter .aside { position: relative; margin-top: 4px; padding: 14px 18px 14px 46px; border-radius: 16px; background: var(--t-panel); box-shadow: inset 0 0 0 1px var(--t-line); font-size: 0.9688rem; line-height: 1.5; }
.chapter .aside::before { content: 'i'; position: absolute; inset-inline-start: 16px; top: 15px; width: 20px; height: 20px; border-radius: 50%; background: var(--t-accent); color: var(--t-bg); font: italic 700 0.8125rem/20px var(--serif); text-align: center; }
.chapter .aside b { color: var(--t-fg); }
.photo { margin: 0 0 28px; border-radius: 26px; overflow: hidden; background: rgba(0, 0, 0, 0.06); }
.photo img { width: 100%; }
.photo-tall { max-width: 440px; margin-inline: 0 auto; }
.chapter > .photo-tall { margin-inline: auto; }
.phone-inline { --w: min(268px, 72vw); margin: 36px auto 0; }
.stage-note { margin: 18px 0 0; font-size: 0.8125rem; text-align: center; color: var(--t-fg2); }

/* Helper's view of the night chapter is a light screen. */
body:has(#aud-helper:checked) [data-bar-helper='dark'] .phone-inline .sb { color: #000; }
body:has(#aud-helper:checked) [data-bar-helper='dark'] .phone-inline .home-bar { background: #000; }

/* Wider screens with script: a sticky phone follows the story, and from
   1200px the rail of times sits on the left. */
@media (min-width: 900px) {
  .js .story-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr); gap: clamp(32px, 4vw, 64px); }
  .js .stage { display: flex; flex-direction: column; align-items: center; justify-content: center; position: sticky; top: var(--head); height: calc(100vh - var(--head)); align-self: start; }
  .js .phone-inline { display: none; }
  .js .chapter { min-height: calc(100vh - var(--head)); display: flex; flex-direction: column; justify-content: center; padding-block: 12vh; }
  .js .chapter > * { margin-inline: 0; }
  .js .chapter > .photo-tall { margin-inline: 0 auto; }
}
@media (min-width: 1200px) {
  .js .story-grid { grid-template-columns: 150px minmax(0, 580px) minmax(340px, 1fr); gap: clamp(32px, 4vw, 72px); }
  .js .rail { display: block; position: sticky; top: calc(var(--head) + 40px); align-self: start; padding-top: 40px; }
}
.phone-stage { --w: clamp(260px, calc((100vh - var(--head) - 96px) / 2.09), 340px); }
.phone-stage .phone-screen > img { opacity: 0; transition: opacity 520ms var(--ease); }
.phone-stage .phone-screen > img.is-on { opacity: 1; }
.phone-stage .sb, .phone-stage .home-bar { transition: color 400ms var(--ease), background-color 400ms var(--ease); }
@media (prefers-reduced-motion: reduce) { .phone-stage .phone-screen > img { transition: none; } }

.rail ol { list-style: none; margin: 18px 0 0; padding: 0; border-inline-start: 1.5px solid var(--t-line); }
.rail li a { position: relative; display: block; padding: 7px 0 7px 18px; font-size: 0.9375rem; font-weight: 550; color: var(--t-fg2); text-decoration: none; font-variant-numeric: tabular-nums; transition: color 300ms var(--ease); }
.rail li a::before { content: ''; position: absolute; inset-inline-start: -5px; top: 50%; width: 8px; height: 8px; border-radius: 50%; translate: 0 -50%; background: var(--t-bg); box-shadow: inset 0 0 0 1.5px var(--t-line); transition: background-color 300ms var(--ease), box-shadow 300ms var(--ease), scale 300ms var(--ease); }
.rail li a:hover { color: var(--t-fg); }
.rail li a[aria-current='step'] { color: var(--t-fg); font-weight: 700; }
.rail li a[aria-current='step']::before { background: var(--t-accent); box-shadow: none; scale: 1.35; }
.sky-arc { width: 120px; height: 64px; overflow: visible; }
.sky-arc .arc { fill: none; stroke: var(--t-line); stroke-width: 1.5; stroke-dasharray: 2 5; stroke-linecap: round; }
.sky-arc .horizon { stroke: var(--t-line); stroke-width: 1.5; }
.sky-arc .sun { fill: var(--t-accent); transition: cx 900ms var(--ease), cy 900ms var(--ease), fill 600ms var(--ease); }
@media (prefers-reduced-motion: reduce) { .sky-arc .sun { transition: none; } }
.rail-who { margin: 28px 0 0; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--t-fg2); }
.rail-who label { display: inline-block; margin: 8px 6px 0 0; padding: 6px 12px; border-radius: 999px; font-size: 0.875rem; letter-spacing: 0; text-transform: none; cursor: pointer; box-shadow: inset 0 0 0 1.5px var(--t-line); color: var(--t-fg); }
body:not(:has(#aud-helper:checked)) .rail-who label[for='aud-patient'],
body:has(#aud-helper:checked) .rail-who label[for='aud-helper'] { background: var(--t-fg); color: var(--t-bg); box-shadow: none; }

/* Entrances: content is visible by default; script opts in. */
.js-reveal .chapter > :not(.phone-inline) { transition: opacity 700ms var(--ease), translate 700ms var(--ease); }
.js-reveal .chapter:not(.is-in) > :not(.phone-inline) { opacity: 0; translate: 0 18px; }
.js-reveal .chapter > :nth-child(2) { transition-delay: 60ms; }
.js-reveal .chapter > :nth-child(3) { transition-delay: 120ms; }
.js-reveal .chapter > :nth-child(n + 4) { transition-delay: 180ms; }

/* ---------- For family ---------- */
.helpers { max-width: var(--max); margin-inline: auto; padding: clamp(96px, 12vw, 168px) var(--gutter) 0; }
.helpers-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }
.helpers-head h2 { margin-bottom: 20px; }
.helpers-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) auto; gap: clamp(28px, 4vw, 56px); align-items: center; }
.helpers-photo { margin: 0; align-self: stretch; }
.helpers-photo img { height: 100%; object-fit: cover; }
.helper-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 26px; }
.helper-points h3 { font-size: 1.375rem; margin-bottom: 6px; }
.helper-points p { margin: 0; color: var(--ink-2); font-size: 1.0625rem; }
.phone-helpers { --w: clamp(220px, 20vw, 262px); }
.note-box { max-width: 760px; margin-top: clamp(32px, 4vw, 56px); padding: 22px 26px; border-radius: 22px; background: var(--warm); }
.note-box h3 { font-family: var(--sans); font-size: 1.0625rem; font-weight: 700; letter-spacing: 0; margin-bottom: 6px; }
.note-box p { margin: 0; color: var(--ink-2); font-size: 1.0625rem; }

/* ---------- Ongoing ---------- */
.ongoing, .readable { max-width: var(--max); margin-inline: auto; padding: clamp(96px, 12vw, 160px) var(--gutter) 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(40px, 7vw, 120px); align-items: center; }
.ongoing-text, .readable-text { max-width: 600px; }
.ongoing h2, .readable h2 { margin-bottom: 24px; }
.ongoing p:not(.eyebrow), .readable p:not(.eyebrow) { color: var(--ink-2); }
.phone-ongoing { --w: clamp(230px, 21vw, 280px); }
.readable { grid-template-columns: auto minmax(0, 1fr); }
.readable-text { order: 2; }
.readable-phones { display: flex; gap: clamp(20px, 3vw, 36px); align-items: flex-start; }
.readable-phones figure { margin: 0; }
.readable-phones .phone { --w: clamp(190px, 17vw, 236px); }
.readable-phones figure:nth-child(2) { margin-top: 56px; }
.readable-phones figcaption { margin-top: 18px; text-align: center; font-size: 0.9375rem; font-weight: 600; color: var(--ink-2); }

/* ---------- Pricing ---------- */
.pricing { max-width: var(--max); margin-inline: auto; padding: clamp(96px, 12vw, 168px) var(--gutter) 0; }
.pricing-head { max-width: 820px; margin-bottom: clamp(32px, 4vw, 52px); }
.tiers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.tier { display: flex; flex-direction: column; padding: clamp(26px, 3.4vw, 44px); border-radius: 30px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }
.tier-premium { background: var(--ink); color: #f3ede3; box-shadow: none; }
.tier h3 { font-size: 1.75rem; }
.price { margin: 10px 0 26px; font-size: 1.0625rem; color: var(--ink-2); }
.tier-premium .price { color: #cfd3dc; }
.price .amount { font-family: var(--serif); font-size: clamp(2.5rem, 2rem + 1.6vw, 3.25rem); font-weight: 450; letter-spacing: -0.02em; font-variant-numeric: lining-nums; color: var(--ink); }
.tier-premium .price .amount { color: #fff; }
.price .or { margin-inline: 6px; }
.ticks { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 12px; }
.ticks li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; }
.ticks svg { width: 22px; height: 22px; margin-top: 3px; fill: none; stroke: var(--teal); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.tier-premium .ticks svg { stroke: #e9c47f; }
.tier-foot { margin: auto 0 0; padding-top: 20px; border-top: 1px solid var(--line); font-size: 0.9688rem; color: var(--ink-2); }
.tier-premium .tier-foot { border-top-color: rgba(255, 255, 255, 0.18); color: #cfd3dc; }
.pricing > .fine { margin-top: 18px; max-width: 60em; }

/* ---------- Limits ---------- */
.limits { max-width: var(--max); margin-inline: auto; padding: clamp(96px, 12vw, 160px) var(--gutter) 0; }
.limits h2 { margin-bottom: clamp(28px, 4vw, 44px); }
.limits ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.limits li { padding-top: 20px; border-top: 1.5px solid var(--ink); }
.limits h3 { font-size: 1.375rem; margin-bottom: 8px; }
.limits p { margin: 0; color: var(--ink-2); font-size: 1.0625rem; }

/* ---------- Questions ---------- */
.questions { max-width: 900px; margin-inline: auto; padding: clamp(96px, 12vw, 160px) var(--gutter) 0; }
.questions h2 { margin-bottom: 28px; }
.q-list details { border-bottom: 1px solid var(--line); }
.q-list summary { position: relative; display: block; padding: 22px 44px 22px 0; font-size: 1.1875rem; font-weight: 650; cursor: pointer; list-style: none; }
.q-list summary::-webkit-details-marker { display: none; }
.q-list summary::after { content: ''; position: absolute; inset-inline-end: 6px; top: 50%; width: 11px; height: 11px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; translate: 0 -70%; rotate: 45deg; transition: rotate 200ms var(--ease), translate 200ms var(--ease); }
.q-list details[open] summary::after { rotate: -135deg; translate: 0 -25%; }
.q-list p { margin: -6px 0 24px; max-width: 42em; color: var(--ink-2); }

/* ---------- Get ---------- */
.get { margin-top: clamp(96px, 12vw, 160px); background: var(--night); color: #f3ede3; }
.get-inner { max-width: 900px; margin-inline: auto; padding: clamp(80px, 10vw, 136px) var(--gutter); text-align: center; }
.get h2 { max-width: 18ch; margin-inline: auto; }
.get-sub { max-width: 34em; margin: 24px auto 0; font-size: 1.1875rem; color: #c9cdd6; }
.stores { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 34px; }
.store { display: grid; min-width: 220px; padding: 14px 24px; border-radius: 18px; text-align: start; text-decoration: none; background: rgba(255, 255, 255, 0.07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22); transition: background-color 150ms var(--ease); }
.store:hover { background: rgba(255, 255, 255, 0.12); }
.store-name { font-size: 1.1875rem; font-weight: 700; }
.store-status { font-size: 0.875rem; color: #c9cdd6; }
[data-store-state='live'] .store { background: #f3ede3; color: var(--night); box-shadow: none; }
[data-store-state='live'] .store-status { color: var(--ink-2); }
.get-help { margin: 30px 0 0; font-size: 0.9688rem; color: #c9cdd6; }
.get a:not(.store) { color: #fff; }

/* ---------- Footer ---------- */
.foot { background: var(--night); color: #c9cdd6; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.foot-inner { max-width: var(--max); margin-inline: auto; padding: 40px var(--gutter) 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px 48px; }
.foot .brand { color: #f3ede3; }
.foot .rx { color: #5fc7b4; }
.foot-tag { margin: 10px 0 0; font-size: 0.9375rem; }
.foot nav { display: flex; flex-wrap: wrap; gap: 4px 24px; align-content: flex-start; max-width: 560px; font-size: 0.9375rem; }
.foot nav a { padding-block: 10px; text-decoration: none; color: #e4e6ec; }
.foot nav a:hover { text-decoration: underline; }
.foot nav a.foot-admin { color: #a9aebb; }
.foot-fine { max-width: var(--max); margin: 0 auto; padding: 28px var(--gutter) 40px; font-size: 0.8125rem; line-height: 1.6; color: #a9aebb; }

/* ---------- Responsive ---------- */
@media (min-width: 960px) and (max-width: 1199px) {
  .hero { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
  .hero-phone { --w: clamp(180px, 17vw, 220px); }
}
@media (max-width: 1099px) {
  .helpers-grid { grid-template-columns: minmax(0, 1fr) auto; }
  .helpers-photo { grid-column: 1 / -1; }
  .limits ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 959px) {
  .hero { grid-template-columns: 1fr; padding-inline: var(--gutter); min-height: 0; padding-top: 28px; }
  .hero-media { min-height: 0; margin-bottom: 24px; }
  .hero-photo { position: relative; aspect-ratio: 4 / 3.3; border-radius: 28px; }
  .hero-phone { --w: clamp(132px, 30vw, 210px); inset-inline-start: auto; inset-inline-end: 14px; bottom: -24px; }
  .gist-list { grid-template-columns: 1fr; gap: 28px; }
  .ongoing, .readable { grid-template-columns: 1fr; justify-items: center; }
  .ongoing-text, .readable-text { justify-self: start; order: 0; }
  .tiers { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .top-links { position: absolute; top: var(--head); left: 0; right: 0; flex-direction: column; gap: 0; padding: 8px var(--gutter) 16px; background: var(--cream); border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px -24px rgba(16, 42, 86, 0.4); }
  .top-links a { padding-block: 13px; font-size: 1.0625rem; border-bottom: 1px solid var(--line); }
  .top-links:not([data-open='true']) { display: none; }
  .menu { display: inline-flex; align-items: center; margin-inline-start: auto; }
  .top-inner { gap: 10px; }
  .helpers-grid { grid-template-columns: 1fr; justify-items: center; }
  .helper-points { justify-self: start; }
}
@media (max-width: 560px) {
  body { font-size: 1.0625rem; }
  .who-options { display: grid; grid-template-columns: 1fr; width: 100%; }
  .who-options span { min-width: 0; }
  .limits ul { grid-template-columns: 1fr; }
  .readable-phones figure:nth-child(2) { margin-top: 32px; }
  .readable-phones .phone { --w: min(42vw, 190px); }
  .btn-small { padding: 0 16px; }
  .brand { font-size: 1.0625rem; }
  .store { min-width: 0; flex: 1 1 100%; }
  .chapter p { font-size: 1.0938rem; }
}
@media (max-width: 380px) {
  .top .btn-small { display: none; }
}
