/* preopen.com — the app's own design system (docs/DESIGN.md, constants/tokens.ts), on the web.
   Dark and light, as the app is (it follows the reader's device). Photographic, quiet, light type.
   Nothing here is loaded from anyone else, and nothing is kept on the visitor's device.
   Used by every page but the admin panel (which has admin.css). */

@font-face { font-family: 'Inter'; font-weight: 200; font-style: normal; font-display: swap; src: url('fonts/inter-200.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 300; font-style: normal; font-display: swap; src: url('fonts/inter-300.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 400; font-style: normal; font-display: swap; src: url('fonts/inter-400.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 500; font-style: normal; font-display: swap; src: url('fonts/inter-500.woff2') format('woff2'); }

/* ── tokens (constants/tokens.ts: DARK, then LIGHT) ───────────────────────────────────────── */
:root {
  --base: #0A0D13;
  --sunken: #06080C;
  --raised: #10141C;
  --raised-2: #151A24;
  --raised-alpha: rgba(16, 20, 28, 0.74);
  --overlay: #171C26;
  --ink: #F4F1EA;
  --ink-2: #B7BCC7;
  --ink-3: #7E8491;
  --on-accent: #0A0D13;
  --hairline: rgba(244, 241, 234, 0.07);
  --line: rgba(244, 241, 234, 0.14);
  --lit: rgba(255, 255, 255, 0.08);
  --accent: #E8C36A;
  --accent-hi: #F0CD7A;
  --accent-glow: rgba(232, 195, 106, 0.15);
  --accent-edge: rgba(232, 195, 106, 0.30);
  --up: #F0C271;
  --down: #8FA0FF;
  --gold: #F0C271;
  --coral: #E38A6B;
  --orchid: #B06A9E;
  --periwinkle: #7C8CE0;
  --hopeful: #EAA66E;
  --careful: #967BBF;
  --track: rgba(244, 241, 234, 0.08);
  --ramp: linear-gradient(90deg, var(--gold), var(--coral) 35%, var(--orchid) 68%, var(--periwinkle));
  --ramp-v: linear-gradient(180deg, var(--gold), var(--coral) 35%, var(--orchid) 68%, var(--periwinkle));
  --shadow-1: 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-2: 0 40px 90px -24px rgba(0, 0, 0, 0.7), 0 14px 34px -14px rgba(0, 0, 0, 0.55);
  --photo-veil: linear-gradient(180deg, rgba(10, 13, 19, 0.28) 0%, rgba(10, 13, 19, 0.42) 40%, rgba(10, 13, 19, 0.86) 76%, #0A0D13 100%);
  --photo-ink: #F4F1EA;
  --photo-ink-2: #D2D6DE;
  --frame-hi: #4A4E57;
  --frame-lo: #17191E;
  --grain: 0.045;

  --page: min(1200px, 100% - 40px);
  --narrow: min(760px, 100% - 40px);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --section: clamp(96px, 12vw, 168px);
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root {
    --base: #F4F2EE;
    --sunken: #EAE7E1;
    --raised: #FFFFFF;
    --raised-2: #F8F6F2;
    --raised-alpha: rgba(255, 255, 255, 0.80);
    --overlay: #EFEDE8;
    --ink: #15181F;
    --ink-2: #4A505B;
    --ink-3: #5F6570;
    --on-accent: #FFFFFF;
    --hairline: rgba(21, 24, 31, 0.08);
    --line: rgba(21, 24, 31, 0.15);
    --lit: rgba(255, 255, 255, 0.9);
    --accent: #8C5E0B;
    --accent-hi: #7A520A;
    --accent-glow: rgba(160, 108, 15, 0.14);
    --accent-edge: rgba(160, 108, 15, 0.32);
    --up: #8C5E0B;
    --down: #4558C8;
    --gold: #B57F16;
    --coral: #C9603C;
    --orchid: #9A4C88;
    --periwinkle: #5366CC;
    --hopeful: #C2733A;
    --careful: #7559A8;
    --track: rgba(21, 24, 31, 0.08);
    --shadow-1: 0 10px 30px -12px rgba(21, 24, 31, 0.16);
    --shadow-2: 0 50px 90px -40px rgba(21, 24, 31, 0.45), 0 16px 34px -16px rgba(21, 24, 31, 0.25);
    --photo-veil: linear-gradient(180deg, rgba(244, 242, 238, 0.42) 0%, rgba(244, 242, 238, 0.62) 40%, rgba(244, 242, 238, 0.90) 76%, #F4F2EE 100%);
    --photo-ink: #15181F;
    --photo-ink-2: #3A404B;
    --frame-hi: #E2DFD8;
    --frame-lo: #9B988F;
    --grain: 0.03;
    color-scheme: light;
  }
}

/* ── base ─────────────────────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--base);
  color: var(--ink);
  font: 300 17px/1.65 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-feature-settings: 'calt', 'kern';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
/* Grain over everything, as over the app's photographs: it stops the gradients banding. */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: var(--grain);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
::selection { background: rgba(232, 195, 106, 0.28); color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 200; padding: 10px 16px; background: var(--overlay); color: var(--ink); border-radius: 999px; }
.skip:focus { left: 12px; }
.wrap { width: var(--page); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
[hidden] { display: none !important; }

/* ── type ─────────────────────────────────────────────────────────────────────────────────── */
.label {
  font-weight: 500;
  font-size: 11.5px;
  line-height: 16px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.label.accent { color: var(--accent); }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  font-size: 11.5px;
  line-height: 16px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before { content: ''; width: 24px; height: 1px; background: var(--ramp); }
h1, h2, h3, h4 { margin: 0; font-weight: 200; color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(44px, 7.4vw, 98px); line-height: 0.98; letter-spacing: -0.042em; }
h2 { font-size: clamp(34px, 4.7vw, 60px); line-height: 1.05; letter-spacing: -0.034em; }
h3 { font-weight: 300; font-size: clamp(20px, 1.7vw, 23px); line-height: 1.3; letter-spacing: -0.015em; }
h4 { font-weight: 400; font-size: 16px; line-height: 1.4; letter-spacing: -0.01em; }
p { margin: 0; text-wrap: pretty; }
.lede { font-size: clamp(18px, 1.45vw, 20px); line-height: 1.6; color: var(--ink-2); }
.fine { font-size: 13px; line-height: 1.55; color: var(--ink-3); }
.ramp-text {
  background: linear-gradient(90deg, var(--gold), var(--coral) 50%, var(--orchid));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
@media (prefers-color-scheme: dark) {
  .hero .ramp-text { background-image: linear-gradient(90deg, #F4CB80, #EE9A7A 60%, #D69ACB); }
}
.example {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 9px;
  border-radius: 999px;
  font: 500 10px/1 'Inter', sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  background: var(--raised);
  box-shadow: inset 0 0 0 1px var(--line);
  white-space: nowrap;
}

/* ── navigation ───────────────────────────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  padding-top: env(safe-area-inset-top);
  border-bottom: 1px solid transparent;
  transition: background-color 400ms var(--ease), border-color 400ms var(--ease);
}
.nav.scrolled, .nav.solid {
  background: color-mix(in srgb, var(--base) 80%, transparent);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  backdrop-filter: blur(20px) saturate(1.3);
  border-bottom-color: var(--hairline);
}
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 400; font-size: 18px; letter-spacing: -0.02em; color: var(--ink); }
.brand svg { width: 26px; height: 26px; flex: none; }
.nav .brand { color: var(--photo-ink); }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { text-decoration: none; font-size: 14.5px; color: var(--photo-ink-2); transition: color 200ms; }
.nav.scrolled .brand, .nav.solid .brand { color: var(--ink); }
.nav.scrolled .nav-links a, .nav.solid .nav-links a { color: var(--ink-2); }
.nav-links a:hover, .nav-links a[aria-current] { color: var(--ink) !important; }
.nav .get { margin-left: 4px; }
@media (max-width: 920px) {
  .nav-links { display: none; }
  .nav .get { margin-left: auto; }
}

/* ── buttons ──────────────────────────────────────────────────────────────────────────────── */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font: 500 12px/1 'Inter', sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 0 0 0 var(--accent-glow);
  transition: transform 200ms var(--ease), box-shadow 300ms var(--ease), background-color 200ms;
}
.button:hover { background: var(--accent-hi); box-shadow: 0 0 0 8px var(--accent-glow); }
.button:active { transform: scale(0.97); }
.button.small { min-height: 38px; padding: 0 16px; font-size: 11px; }
.button.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.button.ghost:hover { box-shadow: inset 0 0 0 1px var(--accent-edge), 0 0 0 6px var(--accent-glow); }

/* The App Store badge. */
.store { display: inline-block; border-radius: 11px; line-height: 0; transition: transform 200ms var(--ease), box-shadow 300ms var(--ease); }
.store img { height: 54px; width: auto; }
.store:hover { transform: translateY(-1px); box-shadow: 0 12px 30px -12px rgba(0, 0, 0, 0.6); }
.store.sm img { height: 46px; }
.get-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.get-note { font-size: 14px; line-height: 1.45; color: var(--ink-3); }
.get-note b { font-weight: 400; color: var(--ink); display: block; }

/* ── the device ───────────────────────────────────────────────────────────────────────────── */
/* An iPhone drawn in CSS around a real screenshot (1206 × 2622, an iPhone 17 Pro). Every size
   follows the frame's width through container units, so one rule draws them all. */
.phone {
  --w: 300px;
  position: relative;
  width: var(--w);
  max-width: 100%;
  margin: 0;
  flex: none;
  container-type: inline-size;
}
.phone .bezel {
  position: relative;
  padding: 3cqw;
  border-radius: 16.6cqw;
  background: linear-gradient(140deg, var(--frame-hi), var(--frame-lo) 30%, var(--frame-lo) 70%, var(--frame-hi));
  box-shadow: inset 0 0 0 0.5cqw rgba(255, 255, 255, 0.12), inset 0 0 0 1.5cqw #050608, var(--shadow-2);
}
.phone .bezel::after {
  /* The Dynamic Island. */
  content: '';
  position: absolute;
  left: 50%;
  top: calc(3cqw + 2.6cqw);
  width: 29cqw;
  height: 8.5cqw;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #000;
  z-index: 2;
}
.phone .screen {
  position: relative;
  overflow: hidden;
  border-radius: 13.6cqw;
  background: var(--sunken);
  aspect-ratio: 1206 / 2622;
  z-index: 1;
}
.phone .screen picture, .phone .screen img { width: 100%; height: 100%; object-fit: cover; }
/* The buttons on its sides. */
.phone::before, .phone::after {
  content: '';
  position: absolute;
  width: 1cqw;
  border-radius: 3px;
  background: var(--frame-lo);
}
.phone::before { left: -0.7cqw; top: 19%; height: 5.5%; box-shadow: 0 10cqw 0 var(--frame-lo), 0 24cqw 0 var(--frame-lo); }
.phone::after { right: -0.7cqw; top: 27%; height: 10%; }

/* ── sections ─────────────────────────────────────────────────────────────────────────────── */
.section { position: relative; padding: var(--section) 0; overflow-x: clip; }
.section.flush { padding-top: 0; }
.section.band { background: var(--sunken); }
.head { display: grid; gap: 20px; max-width: 780px; justify-items: start; }
.head.center { margin-inline: auto; text-align: center; justify-items: center; }
.head .lede { max-width: 36em; }
.head + * { margin-top: clamp(48px, 6vw, 84px); }

/* A chapter: the words on one side, the screen on the other. */
.chapter {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(40px, 7vw, 120px);
}
.chapter + .chapter { margin-top: var(--section); }
.chapter.flip .copy { order: 2; }
.chapter .copy { display: grid; gap: 22px; justify-items: start; max-width: 530px; }
.chapter .stage { position: relative; display: grid; place-items: center; isolation: isolate; }
.chapter .stage > .phone { --w: min(330px, 76vw); }
@media (max-width: 860px) {
  .chapter { grid-template-columns: 1fr; gap: 52px; }
  .chapter.flip .copy { order: 0; }
  .chapter .copy { max-width: none; }
}
/* A soft light behind a phone, from the brand's ramp. */
.glow { position: absolute; inset: 6% -10%; z-index: -1; border-radius: 50%; filter: blur(64px); opacity: 0.5; pointer-events: none;
  background: radial-gradient(closest-side, rgba(227, 138, 107, 0.55), rgba(176, 106, 158, 0.25) 60%, transparent); }
.glow.cool { background: radial-gradient(closest-side, rgba(124, 140, 224, 0.5), rgba(176, 106, 158, 0.2) 60%, transparent); }
.glow.gold { background: radial-gradient(closest-side, rgba(240, 194, 113, 0.5), rgba(227, 138, 107, 0.18) 60%, transparent); }
@media (prefers-color-scheme: light) { .glow { opacity: 0.4; } }

/* Proof lines under a chapter's words. */
.proofs { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 14px; }
.proofs li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; color: var(--ink-2); font-size: 16px; line-height: 1.55; }
.proofs li svg { width: 20px; height: 20px; margin-top: 2px; color: var(--accent); }
.proofs b { font-weight: 400; color: var(--ink); }

/* ── hero ─────────────────────────────────────────────────────────────────────────────────── */
.hero { position: relative; overflow: hidden; isolation: isolate; padding: calc(124px + env(safe-area-inset-top)) 0 0; }
.photo { position: absolute; inset: 0; z-index: -2; overflow: hidden; background: var(--base); }
.photo picture, .photo img { width: 100%; height: 100%; object-fit: cover; }
.photo::after { content: ''; position: absolute; inset: 0; background: var(--photo-veil); }
.hero .photo { bottom: 12%; }
.hero .photo img { animation: drift 28s ease-in-out infinite alternate; transform-origin: 60% 40%; }
@keyframes drift { from { transform: scale(1); } to { transform: scale(1.06) translate3d(-1%, 0.6%, 0); } }
.hero-inner { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 24px; align-items: end; }
.hero-copy { display: grid; gap: 26px; justify-items: start; padding-bottom: clamp(56px, 9vw, 150px); }
.hero h1 { max-width: 9.5ch; color: var(--photo-ink); }
.hero .lede { max-width: 27em; color: var(--photo-ink-2); }
.hero .eyebrow { color: var(--photo-ink); }
.hero .get-note { color: var(--photo-ink-2); }
.hero .get-note b { color: var(--photo-ink); }
.hero-phones { position: relative; height: clamp(600px, 58vw, 780px); }
.hero-phones .phone { position: absolute; left: 50%; top: 0; }
.hero-phones .p1 { --w: clamp(260px, 25vw, 340px); margin-left: calc(var(--w) / -2); z-index: 3; }
.hero-phones .p2, .hero-phones .p3 { --w: clamp(220px, 20.5vw, 280px); top: 9%; z-index: 2; }
.hero-phones .p2 { margin-left: calc(var(--w) * -1.24); rotate: -7deg; }
.hero-phones .p3 { margin-left: calc(var(--w) * 0.24); rotate: 7deg; z-index: 1; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 10px 24px; color: var(--photo-ink-2); font-size: 14px; }
.hero-proof span { display: inline-flex; align-items: center; gap: 9px; }
.hero-proof span::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
@media (max-width: 960px) {
  .hero { padding-top: calc(104px + env(safe-area-inset-top)); }
  .hero .photo { bottom: 38%; }
  .hero-inner { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .hero-copy { padding-bottom: 48px; }
  .hero-phones { height: min(132vw, 720px); }
  .hero-phones .p1 { --w: min(62vw, 330px); }
  .hero-phones .p2, .hero-phones .p3 { --w: min(48vw, 256px); top: 10%; }
  .hero-phones .p2 { margin-left: calc(var(--w) * -1.3); }
  .hero-phones .p3 { margin-left: calc(var(--w) * 0.3); }
}
/* On a phone the app shows on the first screen: the hero's copy packs closer and its three proof points
   wait for a wider screen, so the phones rise into the first view instead of starting below it. */
@media (max-width: 700px) {
  .hero { padding-top: calc(92px + env(safe-area-inset-top)); }
  .hero-copy { gap: 18px; padding-bottom: 28px; }
  .hero-proof { display: none; }
}
/* On a phone the hero's photograph sits behind the headline: a deeper veil keeps the words clear of the mist. */
@media (max-width: 700px) and (prefers-color-scheme: dark) {
  .hero .photo::after { background: linear-gradient(180deg, rgba(10, 13, 19, 0.5) 0%, rgba(10, 13, 19, 0.58) 45%, rgba(10, 13, 19, 0.88) 78%, #0A0D13 100%); }
}
@media (max-width: 700px) and (prefers-color-scheme: light) {
  .hero .photo::after { background: linear-gradient(180deg, rgba(244, 242, 238, 0.55) 0%, rgba(244, 242, 238, 0.68) 45%, rgba(244, 242, 238, 0.92) 78%, #F4F2EE 100%); }
}
/* The phones fade into the next section rather than stopping at a line. */
.hero::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 160px; z-index: 4; background: linear-gradient(180deg, transparent, var(--base)); pointer-events: none; }

/* ── the problem, then the change ─────────────────────────────────────────────────────────── */
.before-after { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ba { position: relative; padding: clamp(26px, 3vw, 42px); border-radius: 30px; background: var(--raised); box-shadow: inset 0 0 0 1px var(--hairline), inset 0 1px 0 var(--lit); overflow: hidden; display: grid; gap: 18px; align-content: start; }
.ba ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.ba li { display: grid; grid-template-columns: 18px 1fr; gap: 12px; color: var(--ink-2); line-height: 1.5; }
.ba li::before { content: ''; width: 12px; height: 1px; margin-top: 12px; background: var(--ink-3); }
.ba.before li { color: var(--ink-3); }
.ba.before li span { text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--ink-3) 60%, transparent); text-decoration-thickness: 1px; }
.ba.after { box-shadow: inset 0 0 0 1px var(--accent-edge), inset 0 30px 40px -30px var(--accent-glow); }
.ba.after::before { content: ''; position: absolute; inset: 0 0 auto; height: 1px; background: var(--ramp); }
.ba.after li::before { width: 6px; height: 6px; margin: 9px 4px 0; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent-glow); }
.ba.after li { color: var(--ink); }
@media (max-width: 760px) { .before-after { grid-template-columns: 1fr; } }

/* ── the day, as a line ───────────────────────────────────────────────────────────────────── */
.day-line { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.day-line::before { content: ''; position: absolute; left: 0; right: 0; top: 6px; height: 1px; background: var(--ramp); opacity: 0.7; }
.moment { position: relative; padding-top: 32px; display: grid; gap: 6px; align-content: start; }
.moment::before { content: ''; position: absolute; top: 1px; left: 0; width: 11px; height: 11px; border-radius: 50%; background: var(--base); box-shadow: inset 0 0 0 1.5px var(--accent), 0 0 14px var(--accent-glow); }
.moment .when { font-weight: 500; font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.moment h3 { font-weight: 300; font-size: 20px; letter-spacing: -0.015em; }
.moment p { font-size: 15px; line-height: 1.55; color: var(--ink-2); }
@media (max-width: 860px) {
  .day-line { grid-template-columns: 1fr; gap: 28px; padding-left: 30px; }
  .day-line::before { left: 5px; right: auto; top: 8px; bottom: 8px; width: 1px; height: auto; background: var(--ramp-v); }
  .moment { padding-top: 0; }
  .moment::before { left: -30px; top: 3px; }
}

/* Two phones side by side, each with its caption. */
.duo { position: relative; isolation: isolate; display: flex; justify-content: center; gap: clamp(16px, 4vw, 64px); align-items: flex-start; }
.duo figure { margin: 0; display: grid; gap: 22px; justify-items: center; }
.duo .phone { --w: min(320px, 43vw); }
.duo figure:nth-child(2) { margin-top: clamp(40px, 9vw, 120px); }
.duo figcaption { display: grid; gap: 4px; text-align: center; max-width: 26ch; }
.duo figcaption b { font-weight: 400; color: var(--ink); font-size: 15px; }
.duo figcaption span { font-size: 13.5px; color: var(--ink-3); line-height: 1.45; }

/* ── the pulse ────────────────────────────────────────────────────────────────────────────── */
.scale { display: grid; grid-template-columns: 25fr 40fr 25fr 10fr; gap: 5px; width: 100%; }
.scale div { display: grid; gap: 6px; align-content: start; }
.scale i { display: block; height: 4px; border-radius: 2px; }
.scale div:nth-child(1) i { background: var(--periwinkle); }
.scale div:nth-child(2) i { background: var(--orchid); }
.scale div:nth-child(3) i { background: var(--coral); }
.scale div:nth-child(4) i { background: var(--gold); }
.scale b { font-weight: 400; font-size: 14px; color: var(--ink); }
.scale span { font-size: 12.5px; color: var(--ink-3); line-height: 1.35; }
@media (max-width: 420px) { .scale { grid-template-columns: 1fr 1fr; row-gap: 14px; } }

/* ── bento (research) ─────────────────────────────────────────────────────────────────────── */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: clamp(24px, 2.6vw, 34px);
  border-radius: 30px;
  background: var(--raised);
  box-shadow: inset 0 0 0 1px var(--hairline), inset 0 1px 0 var(--lit), var(--shadow-1);
  overflow: hidden;
  isolation: isolate;
}
.tile h3 { max-width: 20ch; }
.tile > p { color: var(--ink-2); font-size: 15.5px; line-height: 1.6; max-width: 42ch; }
.tile.w2 { grid-column: span 2; }
.tile.w3 { grid-column: span 3; }
.tile.w4 { grid-column: span 4; }
.tile.w6 { grid-column: span 6; }
.tile .art { margin-top: auto; padding-top: 22px; }
/* A screenshot that rises out of the foot of its tile. */
.tile .peek { position: relative; margin: 26px auto 0; width: min(290px, 84%); height: 340px; overflow: hidden; flex: none; }
.tile .peek .phone { --w: 100%; }
.tile.has-peek { padding-bottom: 0; }
.tile .photo-bg { position: absolute; inset: 0; z-index: -1; opacity: 0.38; }
.tile .photo-bg img { width: 100%; height: 100%; object-fit: cover; }
.tile .photo-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, color-mix(in srgb, var(--raised) 30%, transparent), var(--raised) 72%); }
@media (prefers-color-scheme: light) { .tile .photo-bg { opacity: 0.3; } }
.tile.lead { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr); column-gap: 40px; align-items: center; padding-bottom: 0; }
.tile.lead .lead-copy { display: grid; gap: 12px; align-content: center; padding-bottom: clamp(24px, 2.6vw, 34px); }
.tile.lead .peek { height: 460px; margin-top: 10px; width: min(320px, 100%); }
@media (max-width: 1000px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile.w2, .tile.w3 { grid-column: span 1; }
  .tile.w4, .tile.w6 { grid-column: span 2; }
}
@media (max-width: 680px) {
  .bento { grid-template-columns: minmax(0, 1fr); }
  .tile.w2, .tile.w3, .tile.w4, .tile.w6 { grid-column: auto; }
  .tile.lead { grid-template-columns: minmax(0, 1fr); }
  .tile.lead .lead-copy { padding-bottom: 0; }
  .tile.lead .peek { height: 380px; }
}

/* The four ratings and the score, as the app draws them. */
.ratings { display: grid; gap: 13px; }
.rating { display: grid; grid-template-columns: 92px minmax(0, 1fr) 40px; align-items: center; gap: 12px; font-size: 14px; }
.rating span { color: var(--ink-2); }
.rating b { font-weight: 400; text-align: right; font-variant-numeric: tabular-nums; color: var(--ink); }
.rating i { position: relative; height: 4px; border-radius: 2px; background: var(--track); overflow: hidden; }
.rating i::after { content: ''; position: absolute; inset: 0 auto 0 0; width: var(--v); border-radius: 2px; background: linear-gradient(90deg, var(--periwinkle), var(--orchid) 45%, var(--coral) 75%, var(--gold)); }
.score-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 4px; }
.score-head b { font-weight: 200; font-size: 52px; line-height: 1; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.score-head span { color: var(--ink-3); font-size: 14px; }

/* Fair value, model by model. */
.models { display: grid; gap: 12px; }
.model { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; align-items: baseline; font-size: 14px; }
.model span { color: var(--ink-2); }
.model b { font-weight: 400; font-variant-numeric: tabular-nums; color: var(--ink); }
.model i { grid-column: 1 / -1; position: relative; height: 4px; border-radius: 2px; background: var(--track); }
.model i::after { content: ''; position: absolute; top: -3px; left: var(--at); width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent-glow); }
.model i::before { content: ''; position: absolute; top: -5px; bottom: -5px; left: var(--price, 50%); width: 1px; background: var(--ink-3); }

/* For and against. */
.sides { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.side { position: relative; padding: 16px 16px 16px 18px; border-radius: 18px; background: var(--raised-2); box-shadow: inset 0 0 0 1px var(--hairline); display: grid; gap: 8px; align-content: start; overflow: hidden; }
.side::before { content: ''; position: absolute; left: 0; top: 14px; bottom: 14px; width: 2px; border-radius: 2px; background: linear-gradient(180deg, var(--gold), var(--coral)); }
.side.bear::before { background: linear-gradient(180deg, var(--orchid), var(--periwinkle)); }
.side .label { color: var(--hopeful); }
.side.bear .label { color: var(--careful); }
.side p { font-size: 14px; line-height: 1.5; color: var(--ink-2); }
@media (max-width: 420px) { .sides { grid-template-columns: 1fr; } }

/* The Screener's shape. */
.pentagon { width: min(250px, 100%); margin: 0 auto; overflow: visible; }
.pentagon text { font: 500 8.5px 'Inter', sans-serif; letter-spacing: 0.12em; fill: var(--ink-3); }

/* Smart money, drawn without names. */
.ledger { display: grid; gap: 8px; }
.ledger div { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 11px 14px; border-radius: 14px; background: var(--raised-2); box-shadow: inset 0 0 0 1px var(--hairline); font-size: 14px; }
.ledger span { color: var(--ink-2); }
.ledger em { font-style: normal; font-size: 12.5px; color: var(--ink-3); }
.ledger i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.ledger i.c { background: var(--periwinkle); }
.ledger i.f { background: var(--orchid); }

/* ── figures in a row ─────────────────────────────────────────────────────────────────────── */
.facts-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.fact { padding-top: 16px; border-top: 1px solid var(--line); display: grid; gap: 6px; align-content: start; }
.fact b { font-weight: 200; font-size: clamp(32px, 3.4vw, 44px); line-height: 1; letter-spacing: -0.035em; color: var(--ink); font-variant-numeric: tabular-nums; }
.fact span { font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.chapter .facts-row { gap: 16px; }
.chapter .fact b { font-size: clamp(26px, 2.6vw, 34px); white-space: nowrap; }
@media (max-width: 520px) { .facts-row { grid-template-columns: 1fr; gap: 16px; } }

/* ── alerts, drawn as notifications ───────────────────────────────────────────────────────── */
.lockscreen { position: relative; isolation: isolate; overflow: hidden; border-radius: 34px; padding: clamp(28px, 5vw, 56px) clamp(16px, 4vw, 40px); width: min(460px, 100%); margin-inline: auto; box-shadow: var(--shadow-2); }
.lockscreen .photo::after { background: linear-gradient(180deg, rgba(10, 13, 19, 0.05), rgba(10, 13, 19, 0.45)); }
.lockscreen .clock { text-align: center; color: #F4F1EA; font-weight: 200; font-size: clamp(64px, 12vw, 88px); line-height: 1; letter-spacing: -0.04em; text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3); }
.lockscreen .date { text-align: center; color: rgba(244, 241, 234, 0.85); font-size: 15px; margin-bottom: 26px; font-weight: 400; }
.lockscreen .example { position: absolute; top: 14px; right: 14px; }
.notes { display: grid; gap: 8px; }
.note {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 2px 12px;
  padding: 13px 15px;
  border-radius: 22px;
  background: rgba(30, 34, 44, 0.62);
  -webkit-backdrop-filter: blur(24px) saturate(1.5);
  backdrop-filter: blur(24px) saturate(1.5);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  color: #F4F1EA;
}
.note img { grid-row: span 2; width: 38px; height: 38px; border-radius: 9px; align-self: center; }
.note b { font-weight: 500; font-size: 14px; line-height: 1.35; }
.note time { font-size: 12.5px; color: rgba(244, 241, 234, 0.6); }
.note p { grid-column: 2 / -1; font-size: 14px; line-height: 1.4; color: rgba(244, 241, 234, 0.82); }
@media (prefers-color-scheme: light) {
  .note { background: rgba(255, 255, 255, 0.72); color: #15181F; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5); }
  .note time { color: rgba(21, 24, 31, 0.55); }
  .note p { color: rgba(21, 24, 31, 0.78); }
}

/* ── Ask ──────────────────────────────────────────────────────────────────────────────────── */
.asks { display: flex; flex-wrap: wrap; gap: 8px; }
.asks span { padding: 8px 14px; border-radius: 999px; font-size: 14px; color: var(--ink-2); background: var(--raised); box-shadow: inset 0 0 0 1px var(--line); }

/* ── Learn and the Magazine ───────────────────────────────────────────────────────────────── */
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.pcard { position: relative; display: grid; align-content: end; gap: 6px; min-height: 320px; padding: 24px; border-radius: 26px; overflow: hidden; isolation: isolate; color: #F4F1EA; box-shadow: var(--shadow-1); }
.pcard picture, .pcard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.pcard img { transition: transform 1400ms var(--ease-out); }
.pcard::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10, 13, 19, 0) 30%, rgba(10, 13, 19, 0.9) 92%); }
.pcard:hover img { transform: scale(1.04); }
.pcard .label { color: rgba(244, 241, 234, 0.78); }
.pcard h3 { color: #F4F1EA; font-size: 21px; }
.pcard p { font-size: 14.5px; line-height: 1.5; color: #CBD0DA; }
@media (max-width: 1000px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .cards { grid-template-columns: minmax(0, 1fr); } .pcard { min-height: 250px; } }

/* ── widgets ──────────────────────────────────────────────────────────────────────────────── */
.home { position: relative; isolation: isolate; overflow: hidden; border-radius: 34px; padding: clamp(20px, 4vw, 34px); box-shadow: var(--shadow-2); width: min(460px, 100%); margin-inline: auto; }
.home .photo::after { background: linear-gradient(180deg, rgba(10, 13, 19, 0.15), rgba(10, 13, 19, 0.35)); }
.home .example { position: absolute; top: 12px; right: 12px; z-index: 2; }
.widgets { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.widget { border-radius: 24px; padding: 16px; background: #10141C; color: #F4F1EA; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5); display: grid; align-content: space-between; gap: 6px; aspect-ratio: 1; }
.widget.wide { grid-column: span 2; aspect-ratio: auto; min-height: 150px; grid-template-columns: 1fr 1px 1fr; gap: 14px; align-content: stretch; }
.widget.wide > hr { margin: 0; border: 0; width: 1px; background: rgba(244, 241, 234, 0.08); }
.widget .label { font-size: 9.5px; letter-spacing: 0.14em; color: #7E8491; }
.widget .big { font-weight: 200; font-size: 40px; line-height: 1; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.widget .word { font-size: 13px; color: #B7BCC7; }
.widget .row { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; font-variant-numeric: tabular-nums; }
.widget .row span { color: #B7BCC7; }
.widget .up { color: #F0C271; }
.widget .down { color: #8FA0FF; }
.widget .head-line { font-size: 14px; line-height: 1.35; color: #F4F1EA; }
.widget .col { display: grid; gap: 8px; align-content: start; }
.mini-ring { width: 64px; height: 64px; }
@media (prefers-color-scheme: light) {
  .widget { background: #FFFFFF; color: #15181F; box-shadow: 0 10px 30px -14px rgba(21, 24, 31, 0.3); }
  .widget .label { color: #5F6570; }
  .widget .word, .widget .row span { color: #4A505B; }
  .widget .head-line { color: #15181F; }
  .widget .up { color: #8C5E0B; }
  .widget .down { color: #4558C8; }
  .widget.wide > hr { background: rgba(21, 24, 31, 0.08); }
}

/* Light and dark: one screen, a handle between the two. */
.compare { position: relative; width: min(330px, 78vw); margin-inline: auto; }
.compare .phone { --w: 100%; }
.compare .over { position: absolute; top: 3cqw; left: 3cqw; right: 3cqw; bottom: 3cqw; z-index: 2; border-radius: 13.6cqw; overflow: hidden; clip-path: inset(0 0 0 var(--cut, 50%)); }
.compare .over picture, .compare .over img { width: 100%; height: 100%; object-fit: cover; }
.compare .knob { position: absolute; top: 6%; bottom: 6%; left: var(--cut, 50%); width: 2px; margin-left: -1px; background: var(--accent); box-shadow: 0 0 16px var(--accent-glow); z-index: 3; pointer-events: none; }
.compare .knob::after { content: ''; position: absolute; top: 50%; left: 50%; width: 38px; height: 38px; margin: -19px; border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 38 38'%3E%3Cpath d='M15 13l-6 6 6 6M23 13l6 6-6 6' fill='none' stroke='%230A0D13' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat; box-shadow: 0 8px 22px rgba(0, 0, 0, 0.4); }
.compare input { position: absolute; inset: 0; z-index: 4; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; touch-action: pan-y; }
.compare input:focus-visible ~ .knob::after { outline: 2px solid var(--ink); outline-offset: 3px; }
.compare .tags { display: flex; justify-content: space-between; margin-top: 18px; }

/* ── trust ────────────────────────────────────────────────────────────────────────────────── */
.guard { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.shield { position: relative; width: min(420px, 100%); aspect-ratio: 1; margin-inline: auto; }
.shield svg { width: 100%; height: 100%; overflow: visible; }
.shield .orbit { transform-origin: 200px 200px; animation: orbit 60s linear infinite; }
.shield .orbit.back { animation-duration: 90s; animation-direction: reverse; }
@keyframes orbit { to { transform: rotate(360deg); } }
.checks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
/* Four short tiles in a row on a wide screen ("Also inside"), two on a tablet, one on a phone. */
.checks.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .checks.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .checks.four { grid-template-columns: minmax(0, 1fr); } }
.check { padding: 26px; border-radius: 26px; background: var(--raised); box-shadow: inset 0 0 0 1px var(--hairline), inset 0 1px 0 var(--lit); display: grid; gap: 10px; align-content: start; }
.check svg { width: 26px; height: 26px; color: var(--accent); }
.check h3 { font-weight: 300; font-size: 19px; letter-spacing: -0.015em; }
.check p { font-size: 15px; line-height: 1.55; color: var(--ink-2); }
@media (max-width: 960px) { .guard { grid-template-columns: 1fr; } .checks { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .checks { grid-template-columns: minmax(0, 1fr); } }

/* ── one app instead of ten ───────────────────────────────────────────────────────────────── */
.many { display: grid; grid-template-columns: minmax(0, 1.25fr) auto minmax(0, 0.75fr); gap: clamp(20px, 4vw, 64px); align-items: center; }
.apps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.app { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; align-items: center; padding: 11px 14px; border-radius: 16px; background: var(--raised); box-shadow: inset 0 0 0 1px var(--hairline); color: var(--ink-2); font-size: 14.5px; line-height: 1.3;
  transition: opacity 900ms var(--ease-out), transform 900ms var(--ease-out); }
.app svg { width: 34px; height: 34px; padding: 7px; border-radius: 10px; background: var(--overlay); color: var(--ink-3); }
.app:nth-child(2n) { transition-delay: 60ms; }
.app:nth-child(3n) { transition-delay: 120ms; }
.funnel { width: 64px; height: 64px; color: var(--accent); }
.one { display: grid; justify-items: center; gap: 18px; text-align: center; }
.one .icon { width: clamp(112px, 12vw, 148px); aspect-ratio: 1; border-radius: 23%; overflow: hidden; box-shadow: 0 30px 70px -20px rgba(232, 195, 106, 0.5), 0 0 0 1px var(--hairline); transition: transform 1100ms var(--ease-out), box-shadow 1100ms; }
.one .icon img { width: 100%; height: 100%; }
.one p { color: var(--ink-2); max-width: 24ch; }
.one b { font-weight: 300; color: var(--ink); font-size: 22px; letter-spacing: -0.015em; }
.js .many:not(.in) .one .icon { transform: scale(0.82); }
.js .many.in .app { opacity: 0.55; transform: scale(0.98); }
@media (max-width: 860px) {
  .many { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .apps { width: 100%; }
  .funnel { rotate: 90deg; }
}
@media (max-width: 380px) { .apps { grid-template-columns: minmax(0, 1fr); } }

/* ── pricing ──────────────────────────────────────────────────────────────────────────────── */
.plans { display: grid; grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr); gap: 16px; align-items: stretch; max-width: 1080px; margin-inline: auto; }
.plan { position: relative; display: flex; flex-direction: column; gap: 20px; padding: clamp(26px, 3vw, 40px); border-radius: 32px; background: var(--raised); box-shadow: inset 0 0 0 1px var(--hairline), inset 0 1px 0 var(--lit), var(--shadow-1); }
/* PreOpen Plus keeps its own look, gold on near-black in either theme, as in the app (components/paywall/plus.ts). */
.plan.plus { background: #0B0E14; color: #F4F1EA; box-shadow: inset 0 0 0 1px rgba(232, 195, 106, 0.45), 0 40px 100px -40px rgba(232, 195, 106, 0.45); overflow: hidden; isolation: isolate; }
.plan.plus::before { content: ''; position: absolute; inset: 0 0 auto; height: 1px; background: linear-gradient(90deg, #F0C271, #E38A6B 35%, #B06A9E 68%, #7C8CE0); }
.plan.plus::after { content: ''; position: absolute; top: -30%; right: -25%; width: 75%; aspect-ratio: 1; z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, rgba(232, 195, 106, 0.16), transparent); }
.plan .name { display: grid; gap: 8px; }
.plan .name h3 { font-weight: 200; font-size: clamp(30px, 3vw, 38px); letter-spacing: -0.03em; }
.plan .name p { color: var(--ink-2); font-size: 15.5px; }
.plan.plus h3, .plan.plus h4 { color: #F4F1EA; }
.plan.plus .name p { color: #B7BCC7; }
.plan .price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.plan .price b { font-weight: 200; font-size: clamp(48px, 5vw, 62px); line-height: 1; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.plan .price span { color: var(--ink-2); font-size: 16px; }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.plan li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 12px; font-size: 15px; line-height: 1.45; color: var(--ink-2); }
.plan li svg { width: 18px; height: 18px; margin-top: 1px; color: var(--accent); }
.plan.plus li { color: #D5D9E1; }
.plan.plus li svg { color: #E8C36A; }
.plan .group { font-weight: 500; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); }
.plan.plus .group { color: #8A909C; }
.plan .foot { margin-top: auto; display: grid; gap: 14px; justify-items: start; }
.plan .lists { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px; }
.plan .lists > div { display: grid; gap: 11px; align-content: start; }
@media (max-width: 560px) { .plan .lists { grid-template-columns: minmax(0, 1fr); } }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice-p { position: relative; padding: 18px; border-radius: 22px; background: #10141C; box-shadow: inset 0 0 0 1px rgba(244, 241, 234, 0.1); display: grid; gap: 4px; align-content: start; }
.choice-p.best { box-shadow: inset 0 0 0 1.5px rgba(232, 195, 106, 0.75); background: #131722; }
.choice-p .label { color: #8A909C; }
.choice-p.best .label { color: #E8C36A; }
.choice-p .amount { font-weight: 300; font-size: clamp(32px, 3.4vw, 40px); line-height: 1.1; letter-spacing: -0.03em; color: #F4F1EA; font-variant-numeric: tabular-nums; }
.choice-p .per { font-size: 15px; color: #B7BCC7; }
.choice-p .small { margin-top: 6px; font-size: 13px; line-height: 1.45; color: #9DA3AF; }
.plan.plus .button { background: #E8C36A; color: #0A0D13; }
.plan.plus .button:hover { background: #F0CD7A; box-shadow: 0 0 0 8px rgba(232, 195, 106, 0.15); }
.plan.plus .fine { color: #8A909C; }
.plan.plus .fine b { font-weight: 400; color: #F4F1EA; }
.plan.plus a { color: #E8C36A; }
.small-print { max-width: 780px; margin: 28px auto 0; text-align: center; }
.small-print a { color: var(--ink-2); }
@media (max-width: 880px) { .plans { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 400px) { .choices { grid-template-columns: minmax(0, 1fr); } }

/* ── FAQ ──────────────────────────────────────────────────────────────────────────────────── */
.faq-list { max-width: 820px; margin-inline: auto; border-top: 1px solid var(--hairline); }
.faq-list details, .faq details { border-bottom: 1px solid var(--hairline); }
.faq-list summary, .faq summary { cursor: pointer; list-style: none; padding: 22px 48px 22px 0; position: relative; font-weight: 300; color: var(--ink); font-size: clamp(18px, 1.5vw, 20px); line-height: 1.4; letter-spacing: -0.01em; }
.faq-list summary::-webkit-details-marker, .faq summary::-webkit-details-marker { display: none; }
.faq-list summary::after, .faq summary::after { content: ''; position: absolute; right: 8px; top: 50%; width: 14px; height: 14px; margin-top: -7px;
  background: linear-gradient(var(--ink-3), var(--ink-3)) center / 14px 1.5px no-repeat, linear-gradient(var(--ink-3), var(--ink-3)) center / 1.5px 14px no-repeat; transition: transform 300ms var(--ease); }
.faq-list details[open] summary::after, .faq details[open] summary::after { transform: rotate(45deg); }
.faq-list summary:hover, .faq summary:hover { color: var(--accent); }
.faq-list details > div, .faq details > p { padding: 0 48px 24px 0; color: var(--ink-2); }
.faq-list details > div p + p { margin-top: 12px; }
.faq-list a, .faq a { color: var(--accent); text-underline-offset: 3px; text-decoration-color: var(--accent-edge); }

/* ── closing ──────────────────────────────────────────────────────────────────────────────── */
.closing { position: relative; overflow: hidden; isolation: isolate; padding: clamp(120px, 15vw, 210px) 0; text-align: center; }
.closing .photo::after { background: linear-gradient(180deg, var(--base) 0%, color-mix(in srgb, var(--base) 35%, transparent) 30%, color-mix(in srgb, var(--base) 45%, transparent) 70%, var(--base) 100%); }
@media (prefers-color-scheme: light) {
  .closing .photo::after { background: linear-gradient(180deg, var(--base) 0%, rgba(244, 242, 238, 0.7) 28%, rgba(244, 242, 238, 0.74) 72%, var(--base) 100%); }
}
.closing .wrap { display: grid; gap: 26px; justify-items: center; }
.closing h2 { max-width: 13ch; color: var(--photo-ink); font-size: clamp(42px, 6.4vw, 84px); }
.closing .lede { max-width: 30em; color: var(--photo-ink-2); }
.closing .appicon { width: 92px; height: 92px; border-radius: 21px; overflow: hidden; box-shadow: 0 24px 60px -18px rgba(0, 0, 0, 0.6), 0 0 0 1px var(--hairline); }
.closing .get-note { color: var(--photo-ink-2); }

/* ── footer ───────────────────────────────────────────────────────────────────────────────── */
footer { position: relative; padding: 64px 0 calc(56px + env(safe-area-inset-bottom)); border-top: 1px solid var(--hairline); font-size: 14px; color: var(--ink-3); background: var(--base); }
footer .wrap { display: grid; gap: 32px; }
footer .top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
footer nav { display: flex; flex-wrap: wrap; gap: 10px 26px; }
footer nav a { text-decoration: none; color: var(--ink-2); padding: 4px 0; }
footer nav a:hover { color: var(--ink); }
footer .legal { display: grid; gap: 10px; max-width: 860px; line-height: 1.6; }
footer .legal .company { color: var(--ink-2); }

/* ── document pages: privacy, terms, support, about, email ────────────────────────────────── */
.doc-head { position: relative; overflow: hidden; isolation: isolate; padding: calc(150px + env(safe-area-inset-top)) 0 56px; }
.doc-head .photo::after { background: linear-gradient(180deg, color-mix(in srgb, var(--base) 35%, transparent) 0%, color-mix(in srgb, var(--base) 75%, transparent) 55%, var(--base) 100%); }
.doc-head .wrap { position: relative; z-index: 1; display: grid; gap: 16px; width: var(--narrow); }
.doc-head h1 { font-size: clamp(40px, 6vw, 68px); }
.doc-head .lede a { color: var(--accent); }
.doc { width: var(--narrow); margin: 0 auto; padding: 24px 0 120px; }
.doc h2 { font-size: clamp(26px, 3vw, 32px); font-weight: 300; margin: 56px 0 14px; letter-spacing: -0.02em; }
.doc h3 { margin: 28px 0 8px; font-size: 18px; font-weight: 400; }
.doc p, .doc li { color: var(--ink-2); }
.doc p + p { margin-top: 14px; }
.doc ul { padding-left: 20px; margin: 12px 0; }
.doc li { margin: 8px 0; }
.doc a { color: var(--accent); text-decoration-color: var(--accent-edge); text-underline-offset: 3px; }
.doc strong { font-weight: 400; color: var(--ink); }
.doc .summary { padding: 24px 26px; border-radius: 22px; background: var(--raised); box-shadow: inset 0 0 0 1px var(--hairline); }
.doc .summary li { margin: 6px 0; }
.doc .facts { display: grid; grid-template-columns: 180px 1fr; gap: 14px 20px; margin: 4px 0; }
.doc .facts dt { padding-top: 4px; font-weight: 500; font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); }
.doc .facts dd { margin: 0; color: var(--ink); }
.doc .get-app { margin-top: 48px; padding: 26px 28px; border-radius: 24px; background: var(--raised); box-shadow: inset 0 0 0 1px var(--hairline); display: flex; flex-wrap: wrap; gap: 18px 24px; align-items: center; justify-content: space-between; }
.doc .get-app p { color: var(--ink); max-width: 32ch; }
@media (max-width: 520px) { .doc .facts { grid-template-columns: 1fr; gap: 2px; } .doc .facts dd { margin-bottom: 12px; } }

/* A page that is one message: open/ and 404. */
.solo { position: relative; min-height: 100svh; display: grid; align-items: center; overflow: hidden; isolation: isolate; }
.solo .wrap { padding: 120px 0; display: grid; gap: 24px; justify-items: start; }
.solo h1 { max-width: 13ch; color: var(--photo-ink); font-size: clamp(42px, 7vw, 84px); }
.solo .lede { max-width: 36ch; color: var(--photo-ink-2); }
.solo .label { color: var(--photo-ink-2); }
.solo .label.accent { color: var(--accent); }
.solo .photo::after { background: linear-gradient(180deg, color-mix(in srgb, var(--base) 25%, transparent), color-mix(in srgb, var(--base) 70%, transparent) 70%, var(--base)); }

/* ── motion ───────────────────────────────────────────────────────────────────────────────── */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 1000ms var(--ease-out), transform 1000ms var(--ease-out); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal.d1 { transition-delay: 90ms; }
.js .reveal.d2 { transition-delay: 180ms; }
.js .reveal.d3 { transition-delay: 270ms; }
.rise { animation: rise 1100ms var(--ease-out) both; }
.rise.d1 { animation-delay: 120ms; }
.rise.d2 { animation-delay: 240ms; }
.rise.d3 { animation-delay: 360ms; }
.rise.d4 { animation-delay: 480ms; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes float { from { translate: 0 0; } to { translate: 0 -12px; } }
.hero-phones .p1 .bezel { animation: float 9s ease-in-out infinite alternate; }
.hero-phones .p2 .bezel { animation: float 11s ease-in-out -4s infinite alternate; }
.hero-phones .p3 .bezel { animation: float 10s ease-in-out -7s infinite alternate; }
.hero-phones .phone { animation: rise 1000ms var(--ease-out) both; }
.hero-phones .p1 { animation-delay: 60ms; }
.hero-phones .p2 { animation-delay: 160ms; }
.hero-phones .p3 { animation-delay: 260ms; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 1ms !important; transition-delay: 0ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
