/* CaptionAddr — black glass, one bright control, gold only for Pro. Dark only.
   Color, spacing, radius and type tokens mirror `CA` in CaptionAddr/Views/Components/DesignSystem.swift.
   System fonts only: the CSP sets font-src 'none' and the site never loads remote fonts.
   No JavaScript: every interaction here is native HTML and CSS. */
:root {
  color-scheme: dark;
  /* Color: CA tokens */
  --ground: #000000;
  --surface-1: #0b0b0c;
  --surface-2: #151516;
  --surface-3: #202022;
  --glass-regular: rgba(28, 28, 30, 0.58);
  --glass-clear: rgba(255, 255, 255, 0.07);
  --glass-sheen: rgba(255, 255, 255, 0.13);
  --glass-edge: rgba(255, 255, 255, 0.22);
  --glass-edge-low: rgba(255, 255, 255, 0.06);
  --glass-bright: rgba(255, 255, 255, 0.12);
  --glass-edge-bright: rgba(255, 255, 255, 0.42);
  --glint: rgba(255, 255, 255, 0.5);
  --hairline: rgba(255, 255, 255, 0.09);
  --hairline-strong: rgba(255, 255, 255, 0.18);
  --scrim: rgba(0, 0, 0, 0.62);
  --ink: #f4f3ef;
  --ink-2: #a7a6a1;
  --ink-3: #8c8b86;
  --gold: #d8b36e;
  --gold-pale: #f1ddb0;
  --gold-deep: #a07c3e;
  --on-gold: #17110a;
  --gold-wash: rgba(216, 179, 110, 0.12);
  --gold-edge: rgba(216, 179, 110, 0.35);
  --caustic: rgba(255, 255, 255, 0.34);
  --positive: #5fd4a6;
  --caption-live: #ffffff;
  --caption-stroke: #000000;
  --focus: var(--ink);
  --link: var(--ink);
  --gold-leaf: linear-gradient(135deg, var(--gold-pale), var(--gold) 46%, var(--gold-deep));

  /* Light and depth */
  --shadow-glass: inset 0 1px 0 var(--glass-edge), inset 0 -1px 0 var(--glass-edge-low), 0 16px 48px var(--scrim);
  --shadow-glass-sm: inset 0 1px 0 var(--glass-edge), 0 6px 18px var(--scrim);
  --shadow-gold: inset 0 1px 0 rgba(255, 249, 232, 0.65), inset 0 -1px 0 rgba(90, 62, 20, 0.45), 0 10px 30px rgba(216, 179, 110, 0.22);
  --edge-card: inset 0 1px 0 var(--glass-edge-low), inset 0 0 0 1px var(--hairline);
  --bezel: 0 0 0 1px var(--hairline-strong), 0 0 0 6px var(--surface-2), 0 0 0 7px var(--hairline), 0 40px 90px var(--scrim);

  /* Spacing (4pt grid), radius, blur */
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 24px;
  --space-6: 32px; --space-7: 48px; --space-8: 64px; --space-9: 112px; --space-10: 160px;
  --radius-xs: 6px; --radius-sm: 10px; --radius-md: 16px; --radius-lg: 24px; --radius-xl: 34px; --radius-full: 999px;
  --blur-glass: 28px;
  --blur-glass-thin: 14px;

  /* Type */
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, monospace;
  --font-serif: "New York", ui-serif, Georgia, serif;
  --font-caption: ui-rounded, -apple-system, BlinkMacSystemFont, "SF Pro Rounded", system-ui, sans-serif;

  --ease: cubic-bezier(.2, .8, .2, 1);
  --max: 1160px;
  --gutter: var(--space-6);
  --section: clamp(var(--space-8), 7vw, var(--space-9));
}

/* Base */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 104px; background: var(--ground); }
body {
  position: relative; margin: 0; background: var(--ground); color: var(--ink);
  font: 400 1rem/1.55 var(--font-sans);
  overflow-wrap: anywhere; -webkit-font-smoothing: antialiased; overflow-x: clip;
}
/* Light from above, as on the app's glass. Kept off the legal pages so every line of
   policy text sits on flat black. */
body:not(.has-toc)::before {
  content: ""; position: absolute; z-index: -1; inset: 0 0 auto; height: 900px; pointer-events: none;
  background: radial-gradient(ellipse 60% 70% at 50% -12%, var(--glass-clear), transparent 70%);
}
a { color: var(--link); text-underline-offset: .22em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
main:focus { outline: none; }
img { max-width: 100%; height: auto; }
p { margin: 0 0 var(--space-4); }
h1, h2, h3 { font-family: var(--font-display); text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2.25rem, 1.6rem + 2.6vw, 3.5rem); line-height: 1.06; font-weight: 650; letter-spacing: -.04em; }
h2 { font-size: clamp(1.625rem, 1.3rem + 1.2vw, 2.125rem); line-height: 1.12; font-weight: 640; letter-spacing: -.03em; margin-bottom: var(--space-4); }
h3 { font-size: 1.1875rem; line-height: 1.27; font-weight: 600; letter-spacing: -.012em; margin-bottom: var(--space-2); }
/* One serif-italic accent word per headline, as in the app (CA.accent). */
h1 em, h2 em { font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: -.02em; }
h2 em.pro-word { color: var(--gold); }
ul, ol { padding-left: 1.4rem; }
li + li { margin-top: var(--space-2); }
li::marker { color: var(--ink-3); }
figure { margin: 0; }
address { font-style: normal; }
strong { font-weight: 600; }
::selection { background: var(--hairline-strong); }
.container { width: min(var(--max), calc(100% - 2 * var(--gutter))); margin-inline: auto; }
.visually-hidden, .font-option input {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; z-index: 30; top: var(--space-2); left: var(--space-3); transform: translateY(-160%);
  padding: var(--space-3) var(--space-5); border-radius: var(--radius-full);
  background: var(--ink); color: var(--ground); font-weight: 600; text-decoration: none;
}
.skip-link:focus { transform: none; }

/* Type roles */
.eyebrow, .label, .plan-badge, .footer-group h2 {
  font: 640 .6875rem/1.27 var(--font-sans); letter-spacing: .09em; text-transform: uppercase; color: var(--ink-2);
}
.eyebrow { margin-bottom: var(--space-4); }
.figure, .plan .plan-limit { font: 560 2.5rem/1.1 var(--font-display); letter-spacing: -.035em; font-variant-numeric: tabular-nums; color: var(--ink); }
.timecode, .step-number { font: 500 .8125rem/1.23 var(--font-mono); font-variant-numeric: tabular-nums; color: var(--ink-3); letter-spacing: 0; }
.lead { font-size: 1.1875rem; line-height: 1.5; color: var(--ink-2); max-width: 36em; }
.small, .updated, .section-description { font-size: .875rem; line-height: 1.5; color: var(--ink-2); }
.updated { margin: var(--space-4) 0 0; }

/* Header: a floating glass bar. */
.site-header { position: sticky; top: 0; z-index: 20; padding-top: var(--space-3); }
.nav-inner {
  display: flex; align-items: center; gap: var(--space-5); min-height: 60px; padding: var(--space-2) var(--space-2) var(--space-2) var(--space-5);
  border-radius: var(--radius-full); background: var(--glass-regular);
  -webkit-backdrop-filter: blur(var(--blur-glass)) saturate(180%); backdrop-filter: blur(var(--blur-glass)) saturate(180%);
  box-shadow: var(--shadow-glass);
}
.brand {
  display: inline-flex; align-items: center; gap: var(--space-2); min-height: 44px;
  color: var(--ink); text-decoration: none; font-weight: 600; letter-spacing: -.02em;
}
.brand img { width: 28px; height: 28px; border-radius: 7px; flex-shrink: 0; box-shadow: 0 0 0 1px var(--hairline); }
.nav-inner nav { margin-left: auto; }
.nav-links { display: flex; flex-wrap: wrap; gap: var(--space-1); list-style: none; margin: 0; padding: 0; }
.nav-links li { margin: 0; }
.nav-links a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--space-3);
  border-radius: var(--radius-full); color: var(--ink-2); font-size: .875rem; font-weight: 500; text-decoration: none;
  transition: color 160ms var(--ease), background-color 160ms var(--ease);
}
.nav-links a:hover { color: var(--ink); background: var(--glass-clear); }
.nav-links a[aria-current] { color: var(--ink); background: var(--glass-clear); box-shadow: inset 0 1px 0 var(--glass-edge-low); }

/* Capsule buttons. .button is the one bright control per screen: a bright drop of
   water, white light pooled along the bottom, a bright top edge and a glint that sweeps
   across for 1.8s of every 2.6s. -secondary is clear glass; -pro is gold leaf. */
.button {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 52px; padding: var(--space-2) var(--space-6); border-radius: var(--radius-full);
  background:
    radial-gradient(ellipse 70% 60% at 50% 115%, var(--caustic), transparent 70%),
    linear-gradient(180deg, var(--glass-sheen), transparent 55%),
    var(--glass-bright);
  box-shadow: inset 0 1px 0 var(--glass-edge-bright), inset 0 -1px 0 var(--glass-edge-low), 0 10px 28px var(--scrim), 0 0 40px var(--glass-clear);
  color: var(--ink);
  font: 600 1rem/1.5 var(--font-sans); letter-spacing: -.01em; text-align: center; text-decoration: none;
  transition: transform 160ms var(--ease), background-color 160ms var(--ease);
}
.button::before {
  content: ""; position: absolute; z-index: -1; top: -50%; bottom: -50%; left: 0; width: 36%; min-width: 56px;
  background: linear-gradient(90deg, transparent, var(--glint), transparent);
  mix-blend-mode: plus-lighter; pointer-events: none; opacity: .55;
  transform: translateX(-140%) rotate(18deg);
  animation: glisten 2.6s infinite;
}
@keyframes glisten {
  0% { transform: translateX(-140%) rotate(18deg); animation-timing-function: cubic-bezier(.45, 0, .55, 1); }
  69%, 100% { transform: translateX(380%) rotate(18deg); }
}
.button:hover { background-color: var(--glass-sheen); text-decoration: none; }
.button:active { transform: scale(.97); }
.button-secondary { background: var(--glass-clear); color: var(--ink); box-shadow: inset 0 1px 0 var(--glass-edge-low), inset 0 0 0 1px var(--hairline); }
.button-secondary:hover { background: var(--glass-bright); }
.button-secondary::before { content: none; }
.button-pro { background: var(--gold-leaf); color: var(--on-gold); box-shadow: var(--shadow-gold); }
.button-pro::before { mix-blend-mode: soft-light; opacity: 1; }
.nav-cta { min-height: 44px; padding: var(--space-1) var(--space-5); font-size: .875rem; flex-shrink: 0; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-3); margin: var(--space-6) 0 var(--space-5); }
.text-link { display: inline-flex; align-items: center; gap: var(--space-2); min-height: 44px; font-weight: 600; }
.text-link span, .button span { transition: transform 160ms var(--ease); }
.text-link:hover span, .button:hover span { transform: translate(2px, -1px); }

/* Page heading and sections */
.page-heading { padding-top: var(--space-9); margin-bottom: var(--space-6); }
.section { padding-block: var(--space-7); box-shadow: inset 0 -1px 0 var(--hairline); }
.section:last-child { box-shadow: none; }
.section-intro { margin-bottom: var(--space-6); }
.section-intro.centered { text-align: center; }
.section-intro.centered .section-description { margin-inline: auto; }
.grid { display: grid; gap: var(--space-5); }
.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card { background: var(--surface-1); padding: var(--space-6); border-radius: var(--radius-lg); box-shadow: var(--edge-card); }
.card p { color: var(--ink-2); }
.card p:last-child { margin-bottom: 0; }

/* Phone screens: a dark bezel, rounded like the device. */
.device {
  display: block; border-radius: 13% / 6%; background: var(--surface-1);
  box-shadow: var(--bezel);
}

/* Glass chips float over imagery. */
.glass-chip {
  position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: var(--space-2);
  min-height: 40px; padding: 0 var(--space-4); border-radius: var(--radius-full);
  background: var(--glass-regular); color: var(--ink); font: 500 .875rem/1.43 var(--font-sans); white-space: nowrap;
  -webkit-backdrop-filter: blur(var(--blur-glass-thin)) saturate(180%); backdrop-filter: blur(var(--blur-glass-thin)) saturate(180%);
  box-shadow: var(--shadow-glass-sm);
}
.glass-chip svg { width: 16px; height: 16px; color: var(--positive); }
.glass-chip .timecode { color: var(--ink); }

/* ---------- Home ---------- */
.home .page-heading { padding-top: clamp(var(--space-8), 10vw, 136px); margin-bottom: var(--space-5); text-align: center; }
.home .page-heading .eyebrow {
  display: inline-flex; align-items: center; min-height: 32px; padding: 0 var(--space-4); margin-bottom: var(--space-6);
  border-radius: var(--radius-full); background: var(--glass-clear); box-shadow: inset 0 1px 0 var(--glass-edge-low), inset 0 0 0 1px var(--hairline);
  color: var(--ink);
}
.home .page-heading h1 { font-size: clamp(2.75rem, 1.4rem + 6.4vw, 6.25rem); line-height: .98; letter-spacing: -.05em; }
.hero-copy { text-align: center; }
.hero-copy .lead { margin-inline: auto; font-size: clamp(1.0625rem, 1rem + .4vw, 1.3125rem); }
.hero-copy .actions { justify-content: center; margin-bottom: var(--space-4); }
.hero-copy .small { color: var(--ink-3); }

.hero-stage { position: relative; margin-top: var(--space-8); overflow-x: clip; padding-bottom: var(--space-5); }
.stage-devices {
  --main-w: min(330px, 66vw);
  position: relative; display: flex; justify-content: center; padding-top: var(--space-5);
}
.stage-devices::before {
  content: ""; position: absolute; z-index: 0; left: 50%; top: 10%; width: calc(var(--main-w) * 3.2); height: 80%;
  transform: translateX(-50%); pointer-events: none;
  background: radial-gradient(closest-side, var(--glass-sheen), transparent);
}
.device-main { position: relative; z-index: 2; width: var(--main-w); }
.device-side {
  position: absolute; z-index: 1; top: 18%; width: calc(var(--main-w) * .8); opacity: .5;
  -webkit-mask-image: linear-gradient(180deg, var(--ground) 40%, transparent 92%); mask-image: linear-gradient(180deg, var(--ground) 40%, transparent 92%);
}
.device-left { left: calc(50% - var(--main-w) * 1.18); }
.device-right { right: calc(50% - var(--main-w) * 1.18); }
.chip-status { top: 22%; left: calc(50% - var(--main-w) * .5 - var(--space-7)); }
.chip-time { top: 58%; right: calc(50% - var(--main-w) * .5 - var(--space-8)); }
.hero-stage figcaption { margin-top: var(--space-7); text-align: center; font-size: .8125rem; color: var(--ink-3); }

.proof {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: var(--space-5);
  border-radius: var(--radius-xl); background: var(--surface-1); box-shadow: var(--edge-card);
}
.stat { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; padding: var(--space-6) var(--space-5); text-align: center; }
.stat + .stat { box-shadow: inset 1px 0 0 var(--hairline); }
.stat .figure { font-size: clamp(2.25rem, 1.8rem + 1.6vw, 3.25rem); }
.stat-pro .figure { color: var(--gold); }
.stat-note { font-size: .8125rem; line-height: 1.38; color: var(--ink-2); }

.home .section { padding-block: var(--section); box-shadow: none; }
.home .section h2 { font-size: clamp(2.125rem, 1.4rem + 3.2vw, 4rem); line-height: 1.02; letter-spacing: -.045em; font-weight: 650; }
.home .section h3 { font-size: 1.1875rem; }
.home .section-intro { margin-bottom: var(--space-7); }

.steps { list-style: none; margin: 0; padding: 0; }
.steps li { margin: 0; }
.steps .card { position: relative; overflow: hidden; padding: var(--space-6); background: linear-gradient(180deg, var(--glass-clear), transparent 60%), var(--surface-1); box-shadow: var(--edge-card); }
.step-number {
  display: inline-grid; place-items: center; width: 40px; height: 40px; margin-bottom: var(--space-6);
  border-radius: var(--radius-full); background: var(--glass-clear); color: var(--ink); box-shadow: inset 0 1px 0 var(--glass-edge-low), inset 0 0 0 1px var(--hairline);
}

/* Product showcase: a phone beside its story. */
.showcase { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: var(--space-9); }
.home .showcase { padding-block: clamp(var(--space-7), 5vw, var(--space-8)); }
.showcase-flip .showcase-shot { order: 2; }
.showcase-shot { position: relative; display: grid; place-items: center; }
.showcase-shot::before {
  content: ""; position: absolute; inset: 5% 0; pointer-events: none;
  background: radial-gradient(closest-side, var(--glass-clear), transparent);
}
.showcase-shot .device { position: relative; width: min(300px, 70vw); }
.showcase-copy { max-width: 30rem; }
.showcase-copy > p:not(.eyebrow):not(.small) { color: var(--ink-2); font-size: 1.125rem; }
.showcase-copy .small { color: var(--ink-3); }

/* Caption style preview: a small working copy of the app's Caption Style card. Native
   radios pick the font and a native checkbox switches the tinted background. */
.caption-example {
  --preview-font: var(--font-display); --preview-style: normal; --preview-weight: 800;
  container-type: inline-size; justify-self: center; width: min(100%, 420px); min-width: 0;
  display: flex; flex-direction: column; gap: var(--space-3); margin: 0;
}
.example-stage {
  display: grid; place-items: center; aspect-ratio: 16 / 10; overflow: hidden;
  border-radius: var(--radius-xl);
  background: radial-gradient(ellipse 90% 80% at 30% 15%, var(--glass-sheen), transparent 62%), linear-gradient(160deg, var(--surface-3), var(--surface-1));
  box-shadow: var(--edge-card), 0 40px 90px var(--scrim);
}
.example-word {
  display: grid; place-items: center; min-width: 0; padding: var(--space-4);
  font-family: var(--preview-font); font-style: var(--preview-style); font-weight: var(--preview-weight);
  font-size: clamp(2rem, 15cqi, 4rem); line-height: 1.1; letter-spacing: -.01em; text-transform: uppercase;
}
/* One word at a time, as the app shows them. The words share one grid cell. */
.word-selection { display: grid; place-items: center; max-width: 100%; text-align: center; }
.word-selection span {
  grid-area: 1 / 1; opacity: 0; padding: .08em .28em; border-radius: var(--radius-sm);
  color: var(--caption-live); -webkit-text-stroke: .12em var(--caption-stroke); paint-order: stroke fill;
  animation: example-word 4s infinite both;
}
.word-selection span:nth-child(2) { animation-delay: 1s; }
.word-selection span:nth-child(3) { animation-delay: 2s; }
.word-selection span:nth-child(4) { animation-delay: 3s; }
@keyframes example-word {
  0% { opacity: 0; transform: scale(1.18); }
  3%, 23% { opacity: 1; transform: scale(1); }
  25%, 100% { opacity: 0; transform: scale(1); }
}
.caption-example:has(.example-switch input:checked) .word-selection span { background: var(--scrim); }
.example-panel {
  padding: var(--space-5); border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--glass-clear), transparent 45%), var(--surface-1);
  box-shadow: var(--edge-card);
}
.example-title { margin: 0 0 var(--space-4); font: 600 1.0625rem/1.3 var(--font-display); color: var(--ink); }
.example-label { margin: 0 0 var(--space-2); font: 600 .6875rem/1.2 var(--font-sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.style-samples {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-2); min-width: 0;
  margin: 0 0 var(--space-4); padding: 0; border: 0;
}
.font-option { position: relative; cursor: pointer; min-width: 0; border-radius: var(--radius-md); }
.font-option > span {
  display: grid; place-items: center; gap: 2px; min-height: 76px; padding: var(--space-2) var(--space-1);
  border-radius: var(--radius-md); color: var(--ink-2); background: var(--glass-clear);
  box-shadow: inset 0 0 0 1px var(--hairline);
  transition: background 160ms var(--ease), color 160ms var(--ease), box-shadow 160ms var(--ease);
}
.font-option b { font-size: 1.5rem; line-height: 1; font-weight: 700; }
.font-option small { font: 500 .75rem/1.2 var(--font-sans); font-style: normal; }
.font-serif b { font-family: var(--font-serif); }
.font-mono b { font-family: var(--font-mono); }
.font-italic b { font-style: italic; }
.font-option:has(input:checked) > span { color: var(--ink); background: var(--glass-sheen); box-shadow: inset 0 0 0 1.5px var(--ink), 0 4px 12px var(--scrim); }
.font-option:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; z-index: 1; }
.caption-example:has(.font-serif :checked) { --preview-font: var(--font-serif); --preview-weight: 700; }
.caption-example:has(.font-mono :checked) { --preview-font: var(--font-mono); --preview-weight: 700; }
.caption-example:has(.font-italic :checked) { --preview-style: italic; }
@media (hover: hover) and (pointer: fine) {
  .caption-example:has(.font-option:hover) { --preview-font: var(--font-display); --preview-style: normal; --preview-weight: 800; }
  .caption-example:has(.font-serif:hover) { --preview-font: var(--font-serif); --preview-weight: 700; }
  .caption-example:has(.font-mono:hover) { --preview-font: var(--font-mono); --preview-weight: 700; }
  .caption-example:has(.font-italic:hover) { --preview-style: italic; }
  .style-samples:has(.font-option:hover) .font-option > span { background: var(--glass-clear); box-shadow: inset 0 0 0 1px var(--hairline); color: var(--ink-2); }
  .style-samples:has(.font-option:hover) .font-option:hover > span { color: var(--ink); background: var(--glass-sheen); box-shadow: inset 0 0 0 1.5px var(--ink); }
}
.example-switch { position: relative; display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); min-height: 44px; cursor: pointer; color: var(--ink-2); }
.example-switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.example-switch-track { flex: none; position: relative; width: 51px; height: 31px; border-radius: var(--radius-full); background: var(--surface-3); box-shadow: inset 0 0 0 1px var(--hairline); transition: background 200ms var(--ease); }
.example-switch-track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: var(--radius-full); background: var(--ink); box-shadow: 0 2px 6px var(--scrim); transition: transform 200ms var(--ease); }
.example-switch input:checked + .example-switch-track { background: var(--positive); }
.example-switch input:checked + .example-switch-track::after { transform: translateX(20px); }
.example-switch:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 4px; border-radius: var(--radius-sm); }
.caption-example figcaption { color: var(--ink-2); font-size: .8125rem; line-height: 1.38; text-align: center; }

/* iPad */
.ipad-shot { position: relative; display: grid; place-items: center; }
.ipad-shot::before {
  content: ""; position: absolute; inset: -6% 0 30%; pointer-events: none;
  background: radial-gradient(closest-side, var(--glass-clear), transparent);
}
.ipad-shot img {
  position: relative; width: min(100%, 860px); aspect-ratio: 1200 / 1000; object-fit: cover; object-position: 50% 0;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0; background: var(--surface-1);
  box-shadow: 0 0 0 1px var(--hairline-strong), 0 0 0 8px var(--surface-2), 0 0 0 9px var(--hairline);
  -webkit-mask-image: linear-gradient(180deg, var(--ground) 70%, transparent); mask-image: linear-gradient(180deg, var(--ground) 70%, transparent);
}

/* Plans: gold appears only on Pro. */
.plan-grid { max-width: 940px; margin-inline: auto; align-items: stretch; }
.plan { display: flex; flex-direction: column; min-width: 0; padding: var(--space-6); }
.plan-pro { background: linear-gradient(180deg, var(--gold-wash), transparent 55%), var(--surface-1); box-shadow: inset 0 0 0 1px var(--gold-edge), 0 30px 80px var(--gold-wash); }
.plan-art {
  display: block; width: calc(100% + 2 * var(--space-6)); max-width: none; margin: calc(-1 * var(--space-6)) calc(-1 * var(--space-6)) var(--space-5);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0; aspect-ratio: 720 / 400; object-fit: cover; object-position: 50% 62%;
  -webkit-mask-image: linear-gradient(180deg, var(--ground) 55%, transparent); mask-image: linear-gradient(180deg, var(--ground) 55%, transparent);
}
.plan-heading { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; justify-content: space-between; margin-bottom: var(--space-6); }
.plan-heading h3 { margin: 0; font-size: 1.375rem; }
.plan-badge { padding: 4px 10px; border-radius: var(--radius-full); background: var(--glass-clear); box-shadow: inset 0 0 0 1px var(--hairline); }
.pro-badge {
  display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 10px; border-radius: var(--radius-full);
  background: var(--gold-leaf); color: var(--on-gold); box-shadow: var(--shadow-gold);
  font: 700 .6875rem/1 var(--font-sans); letter-spacing: .12em; text-transform: uppercase;
}
.pro-badge svg { width: 12px; height: 12px; }
.plan .plan-limit { margin-bottom: var(--space-5); font-size: clamp(2.5rem, 2rem + 1.6vw, 3.25rem); }
.plan-pro .plan-limit { color: var(--gold-pale); }
.plan-limit span { display: block; margin-top: var(--space-2); font: 450 .875rem/1.43 var(--font-sans); letter-spacing: 0; color: var(--ink-2); }
.plan ul { list-style: none; margin: 0 0 var(--space-6); padding: var(--space-5) 0 0; box-shadow: inset 0 1px 0 var(--hairline); font-size: .9375rem; }
.plan li { position: relative; padding-left: var(--space-6); }
.plan li::before { content: '✓'; position: absolute; left: 0; color: var(--ink-2); }
.plan-pro li::before { color: var(--gold); }
.plan > .button { margin-top: auto; width: 100%; }
.plan-note { max-width: 940px; margin: var(--space-5) auto 0; font-size: .8125rem; text-align: center; color: var(--ink-3); }
.plan-note a { color: var(--ink-2); }

/* Intro beside body copy (FAQ). */
.faq-section { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: var(--space-8); }
.faq-section .section-intro { margin: 0; }
.faq-section .text-link { color: var(--ink-2); }

/* FAQ and other disclosure lists */
.faq-list { min-width: 0; box-shadow: inset 0 1px 0 var(--hairline); }
details { box-shadow: inset 0 -1px 0 var(--hairline); padding-block: var(--space-1); }
summary {
  cursor: pointer; position: relative; min-height: 56px; padding: var(--space-4) var(--space-8) var(--space-4) 0;
  font-weight: 600; line-height: 1.5; list-style: none;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: '+'; position: absolute; right: 0; top: var(--space-3); display: grid; place-items: center; width: 32px; height: 32px;
  border-radius: var(--radius-full); box-shadow: inset 0 0 0 1px var(--hairline); color: var(--ink-2); font-weight: 400;
  transition: transform 200ms var(--ease);
}
details[open] > summary::after { transform: rotate(45deg); }
summary:hover { color: var(--ink-2); }
details > div { padding: 0 var(--space-1) var(--space-5) 0; max-width: 72ch; }
details p { color: var(--ink-2); }
details > div > p:last-child { margin-bottom: 0; }

/* Guide cards */
.guide-grid { list-style: none; padding: 0; margin: 0; gap: var(--space-4); }
.guide-grid li { margin: 0; }
.guide-card { position: relative; padding: var(--space-5); border-radius: var(--radius-lg); transition: background-color 200ms var(--ease), transform 200ms var(--ease); }
.guide-card:hover { background-color: var(--surface-2); transform: translateY(-2px); }
.guide-card h3 { font-size: 1rem; line-height: 1.4; font-weight: 600; letter-spacing: -.01em; }
.guide-card h3 a { text-decoration: none; }
.guide-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.guide-card h3 a:focus-visible { outline: none; }
.guide-card:has(a:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.guide-card p { font-size: .875rem; line-height: 1.5; }
.guides-more { margin: var(--space-5) 0 0; }

/* Closing: a caption stage, one word at a time. */
.home .closing {
  position: relative; overflow: hidden; text-align: center; margin-block: var(--space-8);
  padding: var(--space-9) var(--space-6); border-radius: var(--radius-xl);
  background: radial-gradient(ellipse 70% 60% at 50% 0%, var(--glass-clear), transparent 70%), var(--surface-1);
  box-shadow: var(--edge-card);
}
.caption-reel { display: grid; place-items: center; height: clamp(4rem, 3rem + 4vw, 6.5rem); margin-bottom: var(--space-6); }
.caption-reel span {
  grid-area: 1 / 1; opacity: 0;
  font: 900 clamp(2.5rem, 1.6rem + 4vw, 5rem)/1 var(--font-caption); text-transform: uppercase; letter-spacing: -.01em;
  color: var(--caption-live); -webkit-text-stroke: .12em var(--caption-stroke); paint-order: stroke fill;
  text-shadow: 0 6px 24px var(--scrim);
  animation: caption-word 6s infinite both;
}
.caption-reel span:nth-child(2) { animation-delay: 1s; }
.caption-reel span:nth-child(3) { animation-delay: 2s; }
.caption-reel span:nth-child(4) { animation-delay: 3s; }
.caption-reel span:nth-child(5) { animation-delay: 4s; }
.caption-reel span:nth-child(6) { animation-delay: 5s; }
@keyframes caption-word {
  0% { opacity: 0; transform: scale(.82); }
  2.5%, 15% { opacity: 1; transform: scale(1); }
  16.66%, 100% { opacity: 0; transform: scale(1); }
}
.home .closing h2 { font-size: clamp(1.75rem, 1.3rem + 2vw, 2.75rem); }
.closing > p:not(.eyebrow) { color: var(--ink-2); }
.closing .actions { justify-content: center; margin-bottom: 0; }

/* ---------- Reading pages: policies, support, guides ---------- */
.document main { --max: 780px; }
.document .page-heading { padding-bottom: var(--space-7); box-shadow: inset 0 -1px 0 var(--hairline); }
.document .page-heading h1 { max-width: 18em; }
.document .page-heading .eyebrow { color: var(--ink-2); }
.document .body-content { padding-bottom: var(--space-9); }
.document .body-content > .lead { margin-top: var(--space-7); color: var(--ink); font-size: clamp(1.125rem, 1rem + .5vw, 1.3125rem); }
.document .body-content > h2 { margin-top: var(--space-8); scroll-margin-top: 104px; }
.document .body-content > h3 { margin-top: var(--space-6); }
.document .body-content > p, .document .body-content > ul, .document .body-content > ol { max-width: 72ch; }
.document .section p, .document .section li, .document .body-content > p:not(.lead):not(.small), .document .body-content > ul li { color: var(--ink-2); }
.document .section strong, .document .data-list dt, .document .body-content > ul strong { color: var(--ink); }
.document .section { padding-block: var(--space-8) var(--space-7); }
.document .section > h2:first-child { margin-bottom: var(--space-5); }
/* Steps, facts, questions and related links sit in glass panels with hairline rows,
   the way the app groups its settings. */
.instructions {
  list-style: none; counter-reset: step; max-width: none; padding: 0; margin-block: var(--space-5);
  background: var(--surface-1); border-radius: var(--radius-lg); box-shadow: var(--edge-card);
}
.instructions li {
  counter-increment: step; position: relative; margin: 0; min-height: 64px;
  padding: var(--space-4) var(--space-5) var(--space-4) calc(var(--space-5) + 48px);
  box-shadow: inset 0 -1px 0 var(--hairline);
}
.instructions li:last-child { box-shadow: none; }
.instructions li::before {
  content: counter(step, decimal-leading-zero); position: absolute; left: var(--space-5); top: var(--space-4);
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: var(--radius-full);
  background: var(--glass-clear); box-shadow: inset 0 1px 0 var(--glass-edge-low), inset 0 0 0 1px var(--hairline);
  font: 600 .75rem/1 var(--font-mono); color: var(--ink);
}
.document .section > details {
  margin-bottom: var(--space-2); padding: 0 var(--space-5);
  background: var(--surface-1); border-radius: var(--radius-md); box-shadow: var(--edge-card);
  transition: background-color 200ms var(--ease);
}
.document .section > details[open] { background: var(--surface-2); }
.document .data-list { padding-inline: var(--space-5); background: var(--surface-1); border-radius: var(--radius-lg); box-shadow: var(--edge-card); }
.document .data-list > div:last-child { box-shadow: none; }
.document #related ul { list-style: none; max-width: none; padding: 0; background: var(--surface-1); border-radius: var(--radius-lg); box-shadow: var(--edge-card); }
.document #related li { margin: 0; box-shadow: inset 0 -1px 0 var(--hairline); }
.document #related li:last-child { box-shadow: none; }
.document #related li a { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); min-height: 52px; padding: var(--space-3) var(--space-5); color: var(--ink); text-decoration: none; }
.document #related li a::after { content: "\203A"; flex: none; color: var(--ink-3); font-size: 1.25rem; line-height: 1; }
.document #related li a:hover { background: var(--glass-clear); }
.document #related li:first-child a { border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.document #related li:last-child a { border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
.document .page-heading .eyebrow {
  display: inline-flex; align-items: center; min-height: 28px; padding: 0 var(--space-3);
  border-radius: var(--radius-full); background: var(--glass-clear); box-shadow: inset 0 0 0 1px var(--hairline);
}
.guide-cta {
  margin-block: var(--space-8) 0; padding: var(--space-7) var(--space-6);
  background: radial-gradient(ellipse 80% 70% at 50% 0%, var(--glass-clear), transparent 70%), var(--surface-1);
  border-radius: var(--radius-xl); text-align: center;
}
.guide-cta h2 { margin-bottom: var(--space-3); }
.guide-cta p { margin-inline: auto; max-width: 42ch; }
.guide-cta .actions { justify-content: center; margin: var(--space-5) 0 0; }
.notice { background: var(--surface-1); border-radius: var(--radius-md); padding: var(--space-5); margin: var(--space-6) 0; box-shadow: var(--edge-card); }
.notice p:last-child { margin-bottom: 0; }
.toc { background: var(--surface-1); border-radius: var(--radius-lg); padding: var(--space-2) var(--space-5); margin: var(--space-6) 0; box-shadow: var(--edge-card); }
.toc summary { font-size: .875rem; min-height: 48px; padding-block: var(--space-3); }
.toc summary::after { top: var(--space-2); }
.toc ul { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--space-5); margin: var(--space-2) 0 var(--space-3); padding: 0; }
.toc li { margin: 0; }
.toc a { display: block; min-height: 36px; padding: 6px 0; font-size: .875rem; line-height: 1.43; color: var(--ink-2); text-decoration: none; }
.toc a:hover { color: var(--ink); text-decoration: underline; }
.data-list { margin-block: var(--space-5); }
.data-list > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: var(--space-5); padding-block: var(--space-5); box-shadow: inset 0 1px 0 var(--hairline); }
.data-list dt { font-weight: 600; }
.data-list dd { margin: 0; color: var(--ink-2); }
.data-list dd p:last-child { margin-bottom: 0; }
pre { white-space: pre-wrap; overflow-wrap: anywhere; margin: var(--space-5) 0; font: 400 .8125rem/1.6 var(--font-mono); color: var(--ink-2); }
.notice-meta { font-size: .875rem; color: var(--ink-2); }
.notice-meta a { display: inline-block; padding-block: var(--space-1); }
.license-block { padding: var(--space-3) 0; }
.license-block > div { max-width: none; }

/* Footer */
.site-footer { position: relative; margin-top: var(--space-8); padding: var(--space-9) 0 var(--space-7); box-shadow: inset 0 1px 0 var(--hairline); }
.home .site-footer { margin-top: 0; }
.footer-top { display: grid; grid-template-columns: 1fr 2.4fr; gap: var(--space-7); margin-bottom: var(--space-8); }
.footer-brand { align-self: start; font-size: 1.125rem; }
.footer-nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-5); }
.footer-group h2 { margin: var(--space-3) 0 var(--space-3); color: var(--ink-3); }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin: 0; }
.footer-links a { display: inline-flex; align-items: center; min-height: 36px; font-size: .875rem; line-height: 1.43; color: var(--ink-2); text-decoration: none; }
.footer-links a:hover { color: var(--ink); text-decoration: underline; }
.footer-bottom { padding-top: var(--space-5); box-shadow: inset 0 1px 0 var(--hairline); }
.footer-copy { font-size: .75rem; line-height: 1.5; color: var(--ink-2); margin: 0; }
.footer-copy + p { margin-top: var(--space-2); }

/* ---------- Wide screens ---------- */
@media (min-width: 1100px) {
  .has-toc main { --max: 1160px; }
  .has-toc .content-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: var(--space-8); }
  .has-toc .content-layout > nav { min-width: 0; }
  .has-toc .toc { position: sticky; top: 104px; max-height: calc(100vh - 136px); overflow-y: auto; background: transparent; border-radius: 0; padding: 0 var(--space-5) var(--space-3) 0; box-shadow: inset -1px 0 0 var(--hairline); }
  .has-toc .toc ul { grid-template-columns: 1fr; }
}

/* ---------- Narrower screens ---------- */
@media (max-width: 960px) {
  .nav-inner { gap: var(--space-3); }
  .nav-links a { padding-inline: var(--space-2); }
  .showcase { gap: var(--space-7); }
  .faq-section { grid-template-columns: 1fr; gap: var(--space-5); }
  .footer-top { grid-template-columns: 1fr; gap: var(--space-5); }
}
@media (max-width: 760px) {
  :root { --gutter: var(--space-4); }
  html { scroll-padding-top: var(--space-5); }
  .site-header { position: relative; }
  .nav-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 var(--space-3); padding: var(--space-2) var(--space-2) var(--space-1) var(--space-4); border-radius: var(--radius-lg); }
  .nav-inner nav { grid-row: 2; grid-column: 1 / -1; margin: var(--space-1) calc(-1 * var(--space-2)) 0 calc(-1 * var(--space-3)); box-shadow: inset 0 1px 0 var(--hairline); }
  .nav-links { justify-content: space-between; gap: 0; }
  .nav-links a { padding-inline: 6px; }
  .nav-links a[aria-current] { background: none; box-shadow: none; text-decoration: underline; text-underline-offset: 6px; }
  .page-heading { padding-top: var(--space-8); }
  .hero-copy .actions .button { width: 100%; }
  .hero-stage { margin-top: var(--space-6); }
  .chip-status { left: var(--space-2); top: 14%; }
  .chip-time { right: var(--space-2); top: 64%; }
  .proof { grid-template-columns: 1fr; }
  .stat + .stat { box-shadow: inset 0 1px 0 var(--hairline); }
  .three, .two { grid-template-columns: 1fr; }
  .showcase { grid-template-columns: 1fr; gap: var(--space-7); }
  .showcase-shot, .showcase-flip .showcase-shot { order: 2; }
  .showcase .caption-example { order: 2; }
  .showcase-shot .device { width: min(260px, 72vw); }
  .card, .plan { padding: var(--space-5); }
  .step-number { margin-bottom: var(--space-4); }
  .plan-art { width: calc(100% + 2 * var(--space-5)); margin: calc(-1 * var(--space-5)) calc(-1 * var(--space-5)) var(--space-5); }
  .home .closing { padding: var(--space-8) var(--space-5); }
  .guide-cta { padding: var(--space-6) var(--space-5); }
  .toc ul { grid-template-columns: 1fr; }
  .data-list > div { grid-template-columns: 1fr; gap: var(--space-2); }
  .document .body-content > h2 { scroll-margin-top: var(--space-5); }
  .site-footer { padding-top: var(--space-8); }
  .footer-top { margin-bottom: var(--space-6); }
  .footer-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5) var(--space-4); }
}
@media (max-width: 380px) {
  .nav-inner { grid-template-columns: minmax(0, 1fr); }
  .nav-cta { justify-self: start; margin-block: var(--space-1) var(--space-2); }
  .nav-inner nav { grid-row: 3; }
  .nav-links a { padding-inline: var(--space-1); }
  .glass-chip { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .button:active, .guide-card:hover { transform: none; }
  .caption-reel span { opacity: 0; }
  .caption-reel span:nth-child(3) { opacity: 1; }
  /* The demo shows its four words together instead of one at a time. */
  .word-selection { display: block; }
  .word-selection span { display: inline-block; opacity: 1; }
  .example-word { font-size: clamp(1.25rem, 8cqi, 2rem); }
}
@media (prefers-reduced-transparency: reduce) {
  .nav-inner, .glass-chip { background: var(--surface-2); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .button:not(.button-secondary):not(.button-pro) { background: var(--surface-3); }
}
@media (forced-colors: active) {
  .button, .card, .notice, .caption-example, .glass-chip, .nav-inner, .proof { border: 1px solid CanvasText; }
  :focus-visible { outline: 2px solid Highlight; }
}
@media print {
  :root { --ground: #fff; --surface-1: #fff; --ink: #000; --ink-2: #333; --ink-3: #333; --hairline: #aaa; --hairline-strong: #888; --link: #000; color-scheme: light; }
  html { scroll-padding-top: 0; }
  body { font-size: 11pt; }
  body::before { content: none !important; }
  .site-header, .skip-link, .content-layout > nav, .site-footer, .actions, .hero-stage, .caption-example, .showcase-shot, .ipad-shot, .plan-art, .caption-reel { display: none; }
  .container { width: 100%; max-width: none; }
  .page-heading, .home .page-heading { padding-top: 0; }
  .grid, .showcase, .faq-section, .proof, .has-toc .content-layout { display: block; }
  .card { margin-bottom: 12px; break-inside: avoid; box-shadow: none; border: 1px solid #aaa; }
  .section, .home .section { padding: 18px 0; }
  .home .closing { padding: 18px 0; border: 0; }
  .document .body-content > h2 { margin-top: 24px; }
  details > div, details:not([open]) > *:not(summary) { display: block !important; }
  details::details-content { content-visibility: visible !important; }
  summary { list-style: none; }
  summary::after { display: none; }
  details { break-inside: auto; }
  pre { font-size: 8pt; }
  h2, h3 { break-after: avoid; }
}
