/* REGENT X — Nightline, for the web.
 * Mirrors the app's theme (src/theme.ts): near-black ground, surfaces one
 * step lighter by elevation, white for the main action, one warm signal
 * colour (the reading line), gold only where Pro is named.
 *
 * The site's Content-Security-Policy (vercel.json) allows no inline styles:
 * everything visual lives in this file. No style="" attributes, no <style>. */

:root {
  --bg: #07070a;
  --surface: #111116;
  --surface-2: #18181f;
  --surface-3: #22222b;
  --lens-ring: #1c1c24;
  --border: rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.14);

  --text: #f5f5f7;
  --text-2: rgba(245, 245, 247, 0.68);
  --text-3: rgba(245, 245, 247, 0.52);
  --text-4: rgba(245, 245, 247, 0.4);

  --accent: #ff5a3c;
  --accent-fill: #d93a1f;
  --accent-text: #ff8a6b;
  --accent-soft: rgba(255, 90, 60, 0.14);
  --gold: #f4c566;
  --gold-soft: rgba(244, 197, 102, 0.14);
  --success: #3ddc97;

  --glass: rgba(18, 18, 24, 0.62);
  --glass-border: rgba(255, 255, 255, 0.12);

  --display: "Bricolage Grotesque", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 26px;

  --gutter: 16px;
  --max: 1180px;
  --header-h: 64px;

  color-scheme: dark;
}

@media (min-width: 640px) {
  :root {
    --gutter: 24px;
  }
}

@media (min-width: 1100px) {
  :root {
    --gutter: 32px;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 20px);
}

/* Smooth only for in-page link clicks (the clicked link holds focus). A URL
 * opened with a #fragment, such as /support#delete, jumps straight there, so
 * the browser can't pick the end point before the page has finished laying out. */
html:focus-within {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.6;
  letter-spacing: -0.006em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
h4 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

a {
  color: var(--accent-text);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: #ffb39f;
}

a[href^="tel:"] {
  white-space: nowrap;
}

:focus-visible {
  outline: 2px solid var(--accent-text);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection {
  background: rgba(255, 90, 60, 0.35);
  color: #fff;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--r-sm);
  background: var(--text);
  color: var(--bg);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 7, 10, 0.84);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--border);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--text);
  text-decoration: none;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.16em;
  white-space: nowrap;
}

.brand:hover {
  color: var(--text);
}

.brand img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
}

.brand-x {
  color: var(--accent);
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  border-radius: var(--r-sm);
  color: var(--text-2);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.site-nav .nav-optional,
.site-nav .nav-mid {
  display: none;
}

/* the one thing the header always offers, down to the narrowest phone */
.site-nav a.nav-cta {
  min-height: 40px;
  margin-left: 6px;
  padding: 0 14px;
  border-radius: 999px;
  background: #fff;
  color: var(--bg);
  font-weight: 600;
  white-space: nowrap;
}

.site-nav a.nav-cta:hover {
  background: #e9e9ee;
  color: var(--bg);
}

@media (min-width: 560px) {
  .site-nav .nav-mid {
    display: list-item;
  }
}

@media (min-width: 760px) {
  .site-nav .nav-optional {
    display: list-item;
  }
}

@media (max-width: 380px) {
  .brand {
    letter-spacing: 0.12em;
    gap: 8px;
  }
  .site-nav a {
    padding: 0 7px;
  }
}

/* ---------- Shared bits ---------- */

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
}

.eyebrow.is-signal {
  color: var(--accent-text);
}

/* the brand motif: a thin glowing line, transparent at both ends */
.reading-line {
  position: relative;
  display: block;
  height: 3px;
  width: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, rgba(255, 90, 60, 0) 0%, var(--accent) 16%, var(--accent) 84%, rgba(255, 90, 60, 0) 100%);
}

.reading-line::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -6px;
  height: 15px;
  border-radius: 8px;
  background: inherit;
  opacity: 0.45;
  filter: blur(6px);
}

/* the front-camera lens, as drawn in the app (Nightline Lens) */
.lens {
  position: relative;
  display: block;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--lens-ring);
  border: 1px solid rgba(255, 255, 255, 0.1);
  flex: none;
}

.lens::before {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: #000;
}

.lens::after {
  content: "";
  position: absolute;
  top: 5px;
  left: 5px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #3d3d4a;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 999px;
  font-family: var(--body);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.01em;
  line-height: 1.2;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.btn-primary {
  background: #fff;
  color: var(--bg);
}

.btn-primary:hover {
  background: #e9e9ee;
  color: var(--bg);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

/* a status line, not a button */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 13px 6px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-strong);
  color: var(--text-2);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.3;
}

.status-pill strong {
  color: var(--text);
  font-weight: 600;
}

.status-dot {
  position: relative;
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(255, 90, 60, 0.9);
}

.status-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid rgba(255, 90, 60, 0.6);
  opacity: 0;
  /* two pulses (4.8s), then still: under WCAG 2.2.2's five-second limit */
  animation: pulse 2.4s ease-out 2;
}

@keyframes pulse {
  0% {
    transform: scale(0.6);
    opacity: 1;
  }
  80%,
  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

/* Apple's badge, unaltered: 14px clear of its neighbours is more than the
   quarter of its height that Apple asks for */
.store-badge {
  display: inline-flex;
  flex: none;
  margin: 2px;
  border-radius: 8px;
  line-height: 0;
}

.store-badge img {
  display: block;
  width: auto;
  height: 54px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.cta-note {
  color: var(--text-3);
  font-size: 0.875rem;
}

.hero .cta-note,
.closing .cta-note {
  margin-top: 12px;
}

.closing .cta-note {
  max-width: 34rem;
  margin-left: auto;
  margin-right: auto;
}

.cta-note a {
  overflow-wrap: anywhere;
}

/* pricing: the call to action right under the plans */
.plans-cta {
  justify-content: center;
  margin-top: 22px;
}

.plans-note {
  text-align: center;
  margin-top: 10px;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 40px 0 72px;
  overflow: hidden;
}

/* the app's hero glow: anchored to the top, warm, then gone */
.hero::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 560px;
  background: radial-gradient(70% 100% at 50% 0%, rgba(255, 90, 60, 0.2) 0%, rgba(255, 90, 60, 0.05) 55%, rgba(255, 90, 60, 0) 85%);
  pointer-events: none;
}

.hero .wrap {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}

@media (min-width: 960px) {
  .hero {
    padding: 72px 0 104px;
  }
  .hero::before {
    height: 720px;
    background: radial-gradient(55% 100% at 70% 0%, rgba(255, 90, 60, 0.2) 0%, rgba(255, 90, 60, 0.05) 55%, rgba(255, 90, 60, 0) 85%);
  }
  .hero .wrap {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 40px;
  }
}

/* phones and tablets: pull the phone up so it peeks into the first screen */
@media (max-width: 959px) {
  .hero {
    padding-top: 28px;
  }
  .hero .wrap {
    gap: 28px;
  }
}

.hero h1 {
  font-weight: 800;
  font-size: clamp(2.75rem, 11vw, 4.875rem);
  line-height: 0.98;
  letter-spacing: -0.034em;
  margin-top: 22px;
}

/* two columns but a narrow copy column: keep "Film scripts with" on one line */
@media (min-width: 960px) and (max-width: 1179px) {
  .hero h1 {
    font-size: clamp(3.5rem, 6.2vw, 4.875rem);
  }
}

.hero h1 .accent {
  color: var(--accent);
}

.hero-copy .reading-line {
  width: min(260px, 64%);
  margin: 26px 0 24px;
}

.hero .lede {
  max-width: 33rem;
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--text-2);
}

@media (min-width: 640px) {
  .hero .lede {
    font-size: 1.25rem;
  }
}

.hero .cta-row {
  margin-top: 30px;
}

@media (max-width: 959px) {
  .hero-copy .reading-line {
    margin: 18px 0 16px;
  }
  .hero .cta-row {
    margin-top: 22px;
  }
}

/* small phones: the main action fills the row, the secondary keeps its size */
@media (max-width: 420px) {
  .cta-row .btn-primary {
    flex: 1 1 100%;
  }
  .hero-copy .hero-facts {
    margin-top: 18px;
  }
}

.nowrap {
  white-space: nowrap;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  color: var(--text-3);
  font-size: 0.875rem;
  font-weight: 500;
}

.hero-facts li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero-facts svg {
  width: 16px;
  height: 16px;
  color: var(--text-2);
}

/* ---------- The phone (hero illustration, CSS only) ---------- */

.hero-visual {
  position: relative;
  display: grid;
  justify-items: center;
}

.hero-visual::before {
  content: "";
  position: absolute;
  top: 6%;
  left: 50%;
  width: 520px;
  height: 520px;
  margin-left: -260px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 90, 60, 0.16), rgba(255, 90, 60, 0));
  pointer-events: none;
}

.phone {
  position: relative;
  container-type: inline-size;
  width: min(292px, 76vw);
  aspect-ratio: 9 / 19.5;
  padding: 9px;
  border-radius: 50px;
  background: linear-gradient(155deg, #34343e 0%, #16161c 32%, #0c0c10 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.09),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05),
    0 60px 100px -40px rgba(0, 0, 0, 0.95),
    0 30px 140px -50px rgba(255, 90, 60, 0.4);
}

@media (min-width: 960px) {
  .phone {
    width: 320px;
  }
}

.phone-screen {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: 41px;
  background: #0b0b0f;
  isolation: isolate;
}

/* the camera picture: a warm room and a person, drawn, never a stock photo */
.cam {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(90% 55% at 78% 30%, rgba(255, 138, 107, 0.14) 0%, rgba(255, 138, 107, 0) 70%),
    radial-gradient(140% 80% at 50% 100%, #2b2221 0%, #18161b 45%, #0d0d11 80%);
}

.cam svg {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 96%;
  height: auto;
  transform: translateX(-50%);
}

/* rule-of-thirds grid, as the app draws it */
.cam-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.cam-grid::before,
.cam-grid::after {
  content: "";
  position: absolute;
  inset: 0;
}

.cam-grid::before {
  background: linear-gradient(90deg, transparent calc(33.333% - 0.5px), rgba(255, 255, 255, 0.13) calc(33.333% - 0.5px), rgba(255, 255, 255, 0.13) calc(33.333% + 0.5px), transparent calc(33.333% + 0.5px), transparent calc(66.666% - 0.5px), rgba(255, 255, 255, 0.13) calc(66.666% - 0.5px), rgba(255, 255, 255, 0.13) calc(66.666% + 0.5px), transparent calc(66.666% + 0.5px));
}

.cam-grid::after {
  background: linear-gradient(180deg, transparent calc(33.333% - 0.5px), rgba(255, 255, 255, 0.13) calc(33.333% - 0.5px), rgba(255, 255, 255, 0.13) calc(33.333% + 0.5px), transparent calc(33.333% + 0.5px), transparent calc(66.666% - 0.5px), rgba(255, 255, 255, 0.13) calc(66.666% - 0.5px), rgba(255, 255, 255, 0.13) calc(66.666% + 0.5px), transparent calc(66.666% + 0.5px));
}

/* the prompter window: darkened toward ink at the top, melting into the picture */
.prompter-shade {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 44%;
  background: linear-gradient(180deg, rgba(5, 5, 7, 0.94) 0%, rgba(5, 5, 7, 0.82) 52%, rgba(5, 5, 7, 0) 100%);
}

.phone .lens {
  position: absolute;
  top: 12px;
  left: 50%;
  margin-left: -11px;
  z-index: 6;
}

.phone-line {
  position: absolute;
  top: 44px;
  left: 9%;
  right: 9%;
  width: auto;
  height: 2px;
  z-index: 5;
}

/* the text window starts just under the reading line: a line is read as it
 * reaches the top, then fades out as it scrolls up past the line */
.prompter {
  position: absolute;
  top: 47px;
  left: 0;
  right: 0;
  height: 31%;
  overflow: hidden;
  z-index: 4;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 3%, #000 20%, rgba(0, 0, 0, 0.5) 44%, rgba(0, 0, 0, 0.16) 78%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 3%, #000 20%, rgba(0, 0, 0, 0.5) 44%, rgba(0, 0, 0, 0.16) 78%, transparent 100%);
}

.prompter-track {
  padding: 8px 7% 0;
  animation: prompter 21s linear infinite;
}

.prompter p {
  margin: 0;
  padding: 0 0 0.42em;
  font-family: var(--body);
  font-weight: 700;
  font-size: 16px;
  font-size: 6.4cqi;
  line-height: 1.22;
  letter-spacing: -0.015em;
  text-align: center;
  color: #fff;
  white-space: nowrap;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

@keyframes prompter {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-50%);
  }
}

.glass {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.phone-rec {
  position: absolute;
  top: 12px;
  left: 14px;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

.phone-rec::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px rgba(255, 90, 60, 0.9);
}

.phone-hud {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 92px;
  z-index: 6;
  display: flex;
  justify-content: center;
  gap: 6px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--text);
  white-space: nowrap;
}

.chip .dim {
  color: var(--text-3);
  font-weight: 500;
}

.chip.is-on {
  background: rgba(255, 90, 60, 0.18);
  border-color: rgba(255, 90, 60, 0.45);
}

.wave {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  height: 12px;
}

.wave i {
  display: block;
  width: 2px;
  height: 12px;
  border-radius: 2px;
  background: var(--accent);
  transform-origin: 50% 50%;
  animation: wave 1.1s ease-in-out infinite;
}

.wave i:nth-child(2) {
  animation-delay: -0.25s;
}

.wave i:nth-child(3) {
  animation-delay: -0.5s;
}

.wave i:nth-child(4) {
  animation-delay: -0.75s;
}

@keyframes wave {
  0%,
  100% {
    transform: scaleY(0.35);
  }
  50% {
    transform: scaleY(1);
  }
}

.phone-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 22px;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
}

.phone-thumb {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  background: linear-gradient(160deg, #3a2a26, #16141a);
}

.shutter {
  position: relative;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 3px solid #fff;
}

.shutter::after {
  content: "";
  position: absolute;
  inset: 13px;
  border-radius: 7px;
  background: var(--accent);
}

.phone-flip {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: var(--text);
}

.phone-flip svg {
  width: 16px;
  height: 16px;
}

/* labels around the phone on wide screens */
.annot {
  display: none;
}

@media (min-width: 1180px) {
  .annot {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-2);
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1.35;
    white-space: nowrap;
    z-index: 2;
  }
  .annot::before {
    content: "";
    width: 40px;
    height: 1px;
    background: var(--border-strong);
  }
  .annot b {
    display: block;
    color: var(--text);
    font-weight: 600;
  }
  .annot.is-lens {
    top: 5%;
    left: calc(50% + 164px);
  }
  .annot.is-voice {
    bottom: 13.5%;
    left: calc(50% + 164px);
  }
  .annot.is-pace {
    top: 40%;
    right: calc(50% + 172px);
    flex-direction: row-reverse;
    text-align: right;
  }
}

/* Pause control for the hero's looping animation (WCAG 2.2.2). A checkbox
 * styled as a switch, so it needs no JavaScript and stays inside the CSP.
 * The input sits just before .hero-visual so `~` can reach the animations. */
.motion-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-self: center;
  min-height: 44px;
  margin-top: -6px;
  padding: 0 6px;
  border-radius: var(--r-sm);
  color: var(--text-3);
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
}

.motion-toggle:hover {
  color: var(--text-2);
}

/* the switch track */
.motion-toggle::before {
  content: "";
  width: 30px;
  height: 18px;
  flex: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-strong);
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

/* the switch knob */
.motion-toggle::after {
  content: "";
  position: absolute;
  left: 10px;
  top: 50%;
  width: 12px;
  height: 12px;
  margin-top: -6px;
  border-radius: 50%;
  background: var(--text-3);
  transition: transform 0.15s ease, background-color 0.15s ease;
}

#motion-pause:checked ~ .motion-toggle {
  color: var(--text-2);
}

#motion-pause:checked ~ .motion-toggle::before {
  background: var(--accent-soft);
  border-color: rgba(255, 90, 60, 0.45);
}

#motion-pause:checked ~ .motion-toggle::after {
  background: var(--accent-text);
  transform: translateX(12px);
}

#motion-pause:focus-visible ~ .motion-toggle {
  outline: 2px solid var(--accent-text);
  outline-offset: 2px;
}

#motion-pause:checked ~ .hero-visual .prompter-track,
#motion-pause:checked ~ .hero-visual .wave i {
  animation-play-state: paused;
}

@media (min-width: 960px) {
  .motion-toggle {
    grid-column: 2;
    margin-top: -18px;
  }
}

/* ---------- Sections ---------- */

.section {
  padding: 72px 0;
  border-top: 1px solid var(--border);
}

@media (min-width: 960px) {
  .section {
    padding: 112px 0;
  }
}

.section-head {
  max-width: 42rem;
  margin-bottom: 40px;
}

.section-head.is-center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(2rem, 6.2vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.032em;
  line-height: 1.04;
  margin-top: 12px;
}

.section-head p {
  margin-top: 16px;
  color: var(--text-2);
  font-size: 1.0625rem;
}

@media (min-width: 640px) {
  .section-head p {
    font-size: 1.125rem;
  }
}

/* ---------- The problem: where your eyes go ---------- */

.gaze-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  max-width: 760px;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .gaze-grid {
    gap: 20px;
  }
}

.gaze {
  margin: 0;
  padding: 16px 14px 18px;
  border-radius: var(--r-xl);
  background: var(--surface);
  border: 1px solid var(--border);
}

.gaze.is-good {
  background: linear-gradient(180deg, rgba(255, 90, 60, 0.08), var(--surface) 60%);
  border-color: rgba(255, 90, 60, 0.32);
}

@media (min-width: 640px) {
  .gaze {
    padding: 24px 24px 26px;
  }
}

.gaze svg {
  width: 100%;
  height: auto;
  margin: 0 auto;
  max-width: 260px;
}

.gaze figcaption {
  margin-top: 14px;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--text-2);
}

.gaze figcaption b {
  display: block;
  margin-bottom: 4px;
  font-family: var(--display);
  font-size: 1rem;
  letter-spacing: -0.015em;
  color: var(--text);
}

@media (min-width: 640px) {
  .gaze figcaption {
    font-size: 0.9375rem;
  }
  .gaze figcaption b {
    font-size: 1.1875rem;
  }
}

.gaze-tag {
  display: inline-block;
  margin-bottom: 10px;
  padding: 3px 9px;
  border-radius: 8px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  background: rgba(255, 255, 255, 0.05);
}

.gaze.is-good .gaze-tag {
  color: var(--accent-text);
  background: var(--accent-soft);
}

.fixes {
  display: grid;
  gap: 12px;
  max-width: 1000px;
  margin: 40px auto 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 860px) {
  .fixes {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 56px;
  }
}

.fixes li {
  padding: 16px 18px;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
}

@media (min-width: 860px) {
  .fixes li {
    padding: 20px 22px;
  }
}

.fixes q {
  display: block;
  color: var(--text-3);
  font-size: 0.9375rem;
  quotes: none;
}

.fixes strong {
  display: block;
  margin-top: 6px;
  font-family: var(--display);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--text);
}

.fixes span {
  display: block;
  margin-top: 4px;
  color: var(--text-2);
  font-size: 0.9375rem;
}

/* ---------- How it works ---------- */

.steps {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

@media (min-width: 860px) {
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }
}

/* phones: the number sits beside the title; wide: above it */
.steps li {
  counter-increment: step;
  position: relative;
  padding: 20px 20px 20px 62px;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--border);
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 20px;
  top: 23px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  color: var(--accent-text);
}

@media (min-width: 860px) {
  .steps li {
    padding: 30px 26px 28px;
  }
  .steps li::before {
    position: static;
    display: block;
    margin-bottom: 14px;
  }
}

.steps h3 {
  font-size: 1.3125rem;
  margin-bottom: 6px;
}

.steps p {
  color: var(--text-2);
}

/* ---------- Feature rows ---------- */

.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  align-items: center;
}

.feature + .feature {
  margin-top: 72px;
}

@media (min-width: 960px) {
  .feature {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 72px;
  }
  .feature + .feature {
    margin-top: 112px;
  }
  .feature.is-flipped .feature-visual {
    order: -1;
  }
}

.feature-copy h3 {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.06;
  margin-top: 10px;
}

.feature-copy > p {
  margin-top: 16px;
  color: var(--text-2);
  font-size: 1.0625rem;
}

.feature-points {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.feature-points li {
  position: relative;
  padding-left: 28px;
  color: var(--text);
}

.feature-points li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.75em;
  width: 14px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(255, 90, 60, 0.6);
}

.feature-points .muted {
  color: var(--text-2);
}

.feature-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 300px;
  padding: 28px 18px;
  overflow: hidden;
  border-radius: var(--r-xl);
  background:
    radial-gradient(80% 60% at 50% 0%, rgba(255, 90, 60, 0.1), rgba(255, 90, 60, 0)),
    var(--surface);
  border: 1px solid var(--border);
}

@media (min-width: 640px) {
  .feature-visual {
    padding: 40px 32px;
    min-height: 380px;
  }
}

/* Voice Follow: a small prompter that has heard the first words */
.vf {
  width: 100%;
  max-width: 340px;
  padding: 18px 18px 20px;
  border-radius: 24px;
  background: linear-gradient(180deg, #0a0a0e, #121218);
  border: 1px solid var(--border-strong);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.9);
}

.vf .lens {
  margin: 0 auto;
}

.vf .reading-line {
  width: 82%;
  margin: 16px auto 14px;
}

.vf-lines {
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: center;
  font-weight: 700;
  font-size: 1.1875rem;
  line-height: 1.35;
  letter-spacing: -0.015em;
}

.vf-lines li {
  color: rgba(245, 245, 247, 0.36);
}

.vf-lines li + li {
  margin-top: 6px;
}

.vf-lines li:last-child {
  color: rgba(245, 245, 247, 0.18);
}

.vf-lines .said {
  color: #fff;
}

.vf-caret {
  display: inline-block;
  width: 2px;
  height: 1.05em;
  margin: 0 3px -0.16em 2px;
  border-radius: 1px;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(255, 90, 60, 0.9);
}

/* The Voice Follow illustration holds still: it sits far from the hero's
 * pause control, so it doesn't loop (WCAG 2.2.2). Its wave is drawn at rest. */
.vf .wave i {
  animation: none;
  transform: scaleY(0.5);
}

.vf .wave i:nth-child(2) {
  transform: scaleY(0.95);
}

.vf .wave i:nth-child(3) {
  transform: scaleY(0.7);
}

.vf .wave i:nth-child(4) {
  transform: scaleY(0.4);
}

.vf-states {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.vf-states li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.vf-states li + li::before {
  content: "";
  width: 12px;
  height: 1px;
  background: var(--border-strong);
}

.vf-states .chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-strong);
  color: var(--text-3);
}

.vf-states .chip.is-on {
  color: var(--text);
  background: rgba(255, 90, 60, 0.16);
  border-color: rgba(255, 90, 60, 0.45);
}

@media (max-width: 440px) {
  .vf {
    padding: 16px 14px 18px;
  }
  .vf-lines {
    font-size: 1.0625rem;
  }
  .vf-states {
    gap: 6px;
  }
  .vf-states li + li::before {
    display: none;
  }
  .vf-states .chip {
    padding: 4px 8px;
    font-size: 10.5px;
  }
}

.vf-pace {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 16px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  font-size: 0.8125rem;
  color: var(--text-2);
}

.vf-pace b {
  font-family: var(--display);
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}

.vf-pace .pm {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  color: var(--text);
  font-weight: 600;
  line-height: 1;
}

.vf-pace .pace-mid {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

/* Script packs: two real screens of the app */
.shots {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
  max-width: 460px;
  padding-bottom: 28px;
}

.shot {
  width: 48%;
  max-width: 230px;
  margin: 0;
  padding: 5px;
  border-radius: 30px;
  background: linear-gradient(155deg, #34343e 0%, #16161c 32%, #0c0c10 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.09),
    0 40px 70px -30px rgba(0, 0, 0, 0.95);
}

.shot img {
  width: 100%;
  height: auto;
  border-radius: 25px;
}

.shot + .shot {
  margin-left: 4%;
  margin-top: 28px;
}

@media (min-width: 640px) {
  .shot {
    padding: 7px;
    border-radius: 36px;
  }
  .shot img {
    border-radius: 29px;
  }
}

/* phones: one screen under the other, each wide enough to read */
@media (max-width: 639px) {
  .shots {
    flex-direction: column;
    align-items: center;
    padding-bottom: 0;
  }
  .shot {
    width: 82%;
    max-width: 280px;
  }
  .shot + .shot {
    margin: 16px 0 0;
  }
}

.pack {
  margin: 22px 0 0;
  padding: 16px 18px;
  border-radius: var(--r-md);
  background: #0b0b0f;
  border: 1px solid var(--border-strong);
  font-family: var(--mono);
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--text-2);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.pack code {
  font-family: inherit;
}

.pack .k {
  color: var(--accent-text);
  font-weight: 600;
}

.pack .t {
  color: var(--text);
}

.pack-caption {
  margin-top: 8px;
  color: var(--text-3);
  font-size: 0.8125rem;
}

/* Framing: grids and safe zones */
.framing {
  display: grid;
  justify-items: center;
  gap: 18px;
  width: 100%;
}

.framing svg {
  width: min(220px, 62%);
  height: auto;
  filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.6));
}

.segmented {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.segmented li {
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-3);
  font-size: 0.75rem;
  font-weight: 600;
}

.segmented li.is-on {
  background: #fff;
  border-color: #fff;
  color: var(--bg);
}

.segmented li.is-zone {
  color: var(--accent-text);
  border-color: rgba(255, 90, 60, 0.45);
  background: var(--accent-soft);
}

/* the smaller things */
.more {
  margin-top: 88px;
}

@media (min-width: 960px) {
  .more {
    margin-top: 120px;
  }
}

.more > h3 {
  font-size: clamp(1.5rem, 4.4vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 22px;
}

.mini {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--border);
}

@media (min-width: 640px) {
  .mini {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 32px;
  }
}

@media (min-width: 1060px) {
  .mini {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: 28px;
  }
}

.mini li {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-content: start;
  column-gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}

@media (min-width: 1060px) {
  .mini li {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 14px;
    padding: 24px 0 26px;
  }
}

.icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  color: var(--text);
}

.icon svg {
  width: 20px;
  height: 20px;
}

.icon.is-signal {
  color: var(--accent);
  background: var(--accent-soft);
  border-color: rgba(255, 90, 60, 0.3);
}

.mini h4 {
  font-size: 1.0625rem;
  letter-spacing: -0.015em;
  margin: 1px 0 4px;
}

.mini p {
  color: var(--text-2);
  font-size: 0.9375rem;
  line-height: 1.5;
}

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

.privacy-band {
  display: grid;
  gap: 28px;
  padding: 32px 22px;
  border-radius: var(--r-xl);
  background:
    radial-gradient(70% 90% at 100% 0%, rgba(255, 90, 60, 0.08), rgba(255, 90, 60, 0)),
    linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border-strong);
}

@media (min-width: 860px) {
  .privacy-band {
    grid-template-columns: 1fr 1fr;
    padding: 56px;
    gap: 56px;
    align-items: center;
  }
}

.privacy-band h2 {
  font-size: clamp(1.875rem, 5.4vw, 2.625rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.06;
  margin-top: 12px;
}

.privacy-band p {
  color: var(--text-2);
  margin-top: 14px;
}

.check-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.check-list li {
  position: relative;
  padding-left: 30px;
  color: var(--text);
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.75em;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(255, 90, 60, 0.6);
}

.check-list .muted {
  color: var(--text-2);
  font-size: 0.9375rem;
}

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

.plans {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  max-width: 880px;
  margin: 0 auto;
}

@media (min-width: 720px) {
  .plans {
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 26px 22px 24px;
  border-radius: var(--r-xl);
  background: var(--surface);
  border: 1px solid var(--border);
}

@media (min-width: 720px) {
  .plan {
    padding: 32px 30px 30px;
  }
}

.plan.is-featured {
  background:
    radial-gradient(90% 60% at 50% 0%, rgba(255, 90, 60, 0.12), rgba(255, 90, 60, 0)),
    var(--surface-2);
  border-color: rgba(255, 90, 60, 0.4);
  box-shadow: 0 30px 80px -40px rgba(255, 90, 60, 0.35);
}

.plan-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
}

.plan-name {
  font-family: var(--body);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-2);
}

/* the app's SAVE tag: accent fill with white words (gold is only for Pro) */
.plan-save {
  padding: 3px 9px;
  border-radius: 7px;
  background: var(--accent-fill);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.plan-top {
  min-height: 26px;
}

.plan-tag {
  align-self: flex-start;
  margin-top: 16px;
  padding: 5px 11px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent-text);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.35;
}

.plan-tag.is-quiet {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-2);
}

/* side by side, the cards share rows, so the prices line up even when the
 * trial tag wraps onto two lines */
@supports (grid-template-rows: subgrid) {
  @media (min-width: 720px) {
    .plans {
      grid-template-rows: repeat(5, auto);
    }
    .plan {
      display: grid;
      grid-row: span 5;
      grid-template-rows: subgrid;
      row-gap: 0;
    }
    .plan-tag {
      justify-self: start;
      align-self: start;
    }
  }
}

.plan-price {
  margin-top: 16px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 3rem;
  letter-spacing: -0.045em;
  line-height: 1;
}

.plan-price span {
  font-family: var(--body);
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0;
  color: var(--text-2);
}

.plan-per {
  margin-top: 8px;
  color: var(--text);
  font-weight: 500;
}

.plan-note {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  color: var(--text-2);
  font-size: 0.9375rem;
}

.pro-label {
  color: var(--gold);
}

.includes {
  max-width: 880px;
  margin: 18px auto 0;
  padding: 18px 20px;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--border);
}

.includes p {
  color: var(--text-2);
  font-size: 0.9375rem;
}

.includes ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.includes li {
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  color: var(--text);
  font-size: 0.8125rem;
  font-weight: 500;
}

.pricing-extras {
  display: grid;
  gap: 12px;
  max-width: 880px;
  margin: 12px auto 0;
}

@media (min-width: 720px) {
  .pricing-extras {
    grid-template-columns: 1fr 1fr;
  }
}

.pricing-extras p {
  padding: 16px 20px;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  color: var(--text-2);
  font-size: 0.9375rem;
}

.pricing-extras strong {
  color: var(--text);
  font-weight: 600;
}

.fine-print {
  max-width: 880px;
  margin: 12px auto 0;
  padding: 20px 22px;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  color: var(--text-3);
  font-size: 0.875rem;
  line-height: 1.6;
}

.fine-print h3 {
  font-family: var(--body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 8px;
}

.fine-print p + p {
  margin-top: 8px;
}

.fine-print strong {
  color: var(--text-2);
  font-weight: 600;
}

/* ---------- FAQ (home and support) ---------- */

.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
}

@media (min-width: 960px) {
  .faq-layout {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr);
    gap: 64px;
    align-items: start;
  }
  .faq-layout .section-head {
    position: sticky;
    top: calc(var(--header-h) + 32px);
  }
}

.faq details {
  border-top: 1px solid var(--border);
}

.faq details:last-child {
  border-bottom: 1px solid var(--border);
}

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 40px 18px 0;
  position: relative;
  font-weight: 600;
  font-size: 1.0625rem;
  line-height: 1.4;
  color: var(--text);
}

.faq summary:hover {
  color: #fff;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 50%;
  width: 9px;
  height: 9px;
  margin-top: -6px;
  border-right: 2px solid var(--text-3);
  border-bottom: 2px solid var(--text-3);
  transform: rotate(45deg);
  transition: transform 0.15s ease;
}

.faq details[open] summary::after {
  transform: rotate(-135deg);
  margin-top: -2px;
}

.faq details > *:not(summary) {
  padding-bottom: 18px;
  color: var(--text-2);
}

.faq details > p + p {
  margin-top: -6px;
}

.faq-more {
  margin-top: 22px;
  color: var(--text-2);
}

/* the support page's FAQ lives inside .prose */
.prose .faq details {
  margin-top: 0;
}

.prose .faq h2 + details {
  margin-top: 0.9em;
}

.prose .faq summary {
  font-size: 1rem;
  padding: 16px 36px 16px 0;
}

.prose .faq details > *:not(summary) {
  padding-bottom: 16px;
  color: rgba(245, 245, 247, 0.86);
}

.prose .faq details > * + *:not(summary) {
  margin-top: 0;
}

/* ---------- Closing call ---------- */

.closing {
  position: relative;
  overflow: hidden;
  text-align: center;
}

.closing::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 900px;
  height: 420px;
  margin-left: -450px;
  background: radial-gradient(50% 100% at 50% 0%, rgba(255, 90, 60, 0.16), rgba(255, 90, 60, 0));
  pointer-events: none;
}

.closing .wrap {
  position: relative;
}

.closing .lens {
  width: 30px;
  height: 30px;
  margin: 0 auto;
}

.closing .lens::before {
  inset: 4px;
}

.closing .lens::after {
  top: 7px;
  left: 7px;
  width: 5px;
  height: 5px;
}

.closing .reading-line {
  width: min(300px, 70%);
  margin: 26px auto 30px;
}

.closing h2 {
  font-size: clamp(2.25rem, 8vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.034em;
  line-height: 1.02;
}

.closing h2 .line {
  display: inline-block;
}

/* small phones: each sentence on one line */
@media (max-width: 400px) {
  .closing h2 {
    font-size: 1.75rem;
  }
}

.closing .closing-text {
  color: var(--text-2);
  max-width: 34rem;
  margin: 20px auto 0;
  font-size: 1.0625rem;
}

.closing .cta-row {
  justify-content: center;
  margin-top: 30px;
}

.closing .status-pill {
  margin-bottom: 28px;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 56px 0 48px;
  color: var(--text-2);
  font-size: 0.9375rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 20px;
}

.footer-about,
.footer-contact {
  grid-column: 1 / -1;
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .footer-contact {
    grid-column: auto;
  }
}

@media (min-width: 1100px) {
  .footer-grid {
    grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr)) minmax(0, 1.25fr);
    gap: 40px;
  }
  .footer-about {
    grid-column: auto;
  }
}

.footer-about p {
  margin-top: 12px;
  max-width: 22rem;
}

.footer-col h2 {
  font-family: var(--body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 8px;
}

.footer-links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text);
  text-decoration: none;
}

.footer-links a:hover,
.footer-links a[aria-current="page"] {
  color: var(--accent-text);
}

.footer-col address {
  font-style: normal;
  line-height: 1.6;
}

.footer-col address a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 0;
  overflow-wrap: anywhere;
}

.footer-meta {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--text-3);
  font-size: 0.8125rem;
  line-height: 1.6;
}

.footer-meta p + p {
  margin-top: 8px;
}

/* ---------- Document pages (legal + support) ---------- */

.doc-hero {
  padding: 56px 0 32px;
}

@media (min-width: 960px) {
  .doc-hero {
    padding: 72px 0 40px;
  }
}

.doc-hero h1 {
  font-weight: 800;
  font-size: clamp(2.25rem, 8vw, 3.5rem);
  letter-spacing: -0.04em;
  margin-top: 10px;
}

.doc-hero .reading-line {
  width: min(200px, 50%);
  margin: 22px 0 22px;
}

.doc-hero .lede {
  max-width: 40rem;
  font-size: 1.125rem;
  color: var(--text-2);
}

.doc-dates {
  margin-top: 18px;
  color: var(--text-3);
  font-size: 0.875rem;
}

.doc-dates span {
  display: inline-block;
  margin-right: 18px;
}

.doc-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  padding-bottom: 96px;
}

@media (min-width: 1060px) {
  .doc-layout.has-toc {
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 56px;
  }
}

.toc {
  align-self: start;
  padding: 20px 20px 18px;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.9375rem;
}

@media (min-width: 1060px) {
  .toc {
    position: sticky;
    top: calc(var(--header-h) + 24px);
    max-height: calc(100vh - var(--header-h) - 48px);
    overflow-y: auto;
  }
}

.toc h2 {
  font-family: var(--body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 10px;
}

.toc ol {
  margin: 0;
  padding: 0 0 0 1.4em;
  color: var(--text-3);
}

.toc li {
  padding: 3px 0;
}

.toc a {
  color: var(--text-2);
  text-decoration: none;
}

.toc a:hover {
  color: var(--text);
  text-decoration: underline;
}

/* on touch screens every list link gets a full 44px target */
@media (pointer: coarse) {
  .toc li {
    padding: 0;
  }
  .toc a {
    display: flex;
    align-items: center;
    min-height: 44px;
  }
}

/* Below the two-column layout the full list would push the page ~1,000px
 * down, so it folds into a "Contents" disclosure (no JavaScript needed). */
.toc-compact {
  padding: 0 20px;
}

.toc-compact summary {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 52px;
  padding-right: 28px;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  color: var(--text);
}

.toc-compact summary::-webkit-details-marker {
  display: none;
}

.toc-compact summary::after {
  content: "";
  position: absolute;
  right: 4px;
  top: 50%;
  width: 9px;
  height: 9px;
  margin-top: -6px;
  border-right: 2px solid var(--text-3);
  border-bottom: 2px solid var(--text-3);
  transform: rotate(45deg);
}

.toc-compact[open] summary::after {
  transform: rotate(-135deg);
  margin-top: -2px;
}

.toc-compact[open] ol {
  margin-bottom: 14px;
}

@media (max-width: 1059px) {
  .doc-layout > nav.toc {
    display: none;
  }
}

@media (min-width: 1060px) {
  .toc-compact {
    display: none;
  }
}

.prose {
  max-width: 70ch;
  color: var(--text);
  font-size: 1.0625rem;
  line-height: 1.7;
  overflow-wrap: break-word;
}

.prose > * + * {
  margin-top: 1em;
}

.prose section + section {
  margin-top: 56px;
}

.prose section > * + * {
  margin-top: 1em;
}

.prose h2 {
  font-size: clamp(1.5rem, 5vw, 1.875rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  padding-top: 8px;
}

.prose h3 {
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  margin-top: 1.8em;
}

.prose h2 + *,
.prose h3 + * {
  margin-top: 0.7em;
}

.prose p,
.prose li,
.prose td,
.prose dd {
  color: rgba(245, 245, 247, 0.86);
}

.prose strong {
  color: var(--text);
  font-weight: 600;
}

.prose ul,
.prose ol {
  padding-left: 1.3em;
}

.prose li + li {
  margin-top: 0.45em;
}

.prose li::marker {
  color: var(--text-3);
}

.prose address {
  font-style: normal;
}

.callout {
  padding: 20px 22px;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-left: 3px solid var(--accent);
}

.callout > * + * {
  margin-top: 0.6em;
}

.callout h2,
.callout h3 {
  font-size: 1.125rem;
  margin: 0;
  padding: 0;
}

.prose .callout ul {
  margin-top: 0.6em;
}

.table-wrap {
  overflow-x: auto;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--surface);
}

.table-wrap:focus-visible {
  outline-offset: 2px;
}

.prose table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 0.9375rem;
  line-height: 1.55;
}

.prose table.wide {
  min-width: 780px;
}

.prose caption {
  text-align: left;
  padding: 14px 16px 4px;
  color: var(--text-3);
  font-size: 0.8125rem;
}

.prose th,
.prose td {
  padding: 12px 16px;
  text-align: left;
  vertical-align: top;
  border-top: 1px solid var(--border);
}

.prose thead th {
  border-top: 0;
  color: var(--text-2);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.prose tbody th {
  color: var(--text);
  font-weight: 600;
}

/* phones: each row becomes a card, and each cell is labelled with its
 * column (data-label), so nothing hides off the right edge */
@media (max-width: 639px) {
  .prose table,
  .prose table.wide {
    min-width: 0;
  }
  .prose thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
  .prose tbody tr {
    display: block;
    padding: 14px 16px;
    border-top: 1px solid var(--border);
  }
  .prose tbody th,
  .prose tbody td {
    display: block;
    padding: 0;
    border: 0;
  }
  .prose tbody td::before {
    content: attr(data-label);
    display: block;
    margin-top: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-3);
  }
}

.prose dl {
  margin: 0;
}

.prose dt {
  font-weight: 600;
  color: var(--text);
  margin-top: 1em;
}

.prose dd {
  margin: 0.2em 0 0;
}

.steps-list {
  counter-reset: s;
  list-style: none;
  padding-left: 0 !important;
}

.steps-list li {
  counter-increment: s;
  position: relative;
  padding-left: 2.2em;
}

.steps-list li::before {
  content: counter(s);
  position: absolute;
  left: 0;
  top: 0.1em;
  display: grid;
  place-items: center;
  width: 1.55em;
  height: 1.55em;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text);
}

.ui {
  font-weight: 600;
  color: var(--text);
}

.back-top {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 48px;
  font-size: 0.9375rem;
}

/* support page */
.contact-card {
  display: grid;
  gap: 14px;
  padding: 24px 22px;
  border-radius: var(--r-xl);
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
}

.contact-card .email-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
}

.contact-card .email-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.125rem, 5vw, 1.5rem);
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.contact-card .email-link:hover {
  color: var(--accent-text);
}

.contact-card p,
.contact-card ul {
  margin: 0;
}

.contact-card .postal {
  padding-top: 14px;
  border-top: 1px solid var(--border);
  color: var(--text-2);
  font-size: 0.9375rem;
}

.copy-btn {
  min-height: 44px;
  padding: 8px 16px;
  font-size: 0.9375rem;
}

.copy-btn[hidden] {
  display: none;
}

/* 404 */
.not-found {
  min-height: 62vh;
  display: grid;
  align-content: center;
  justify-items: start;
  padding: 80px var(--gutter);
}

.not-found .lens {
  margin-bottom: 22px;
}

.not-found h1 {
  font-weight: 800;
  font-size: clamp(2.5rem, 9vw, 4.5rem);
  letter-spacing: -0.04em;
}

.not-found .reading-line {
  width: min(220px, 60%);
  margin: 24px 0;
}

.not-found p {
  color: var(--text-2);
  max-width: 34rem;
}

.not-found .cta-row {
  margin-top: 28px;
}

/* ---------- Breadcrumbs, guides, facts ---------- */

.crumbs {
  margin: -24px 0 6px;
}

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--text-3);
  font-size: 0.875rem;
}

.crumbs li + li::before {
  content: "/";
  margin-right: 8px;
  color: var(--text-4);
}

.crumbs a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text-2);
  text-decoration: none;
}

.crumbs a:hover {
  color: var(--text);
}

.guide-cta {
  margin-top: 56px;
}

/* the App Store badge needs clear space of a quarter of its height */
.guide-cta .cta-row,
.guide-cta .cta-note {
  margin-top: 16px;
}

.gaze-map {
  margin: 24px 0 0;
  padding: 16px;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--border);
}

.gaze-map svg {
  display: block;
  width: 100%;
  max-width: 360px;
  height: auto;
  margin: 0 auto;
}

.gaze-map figcaption {
  margin-top: 10px;
  color: var(--text-3);
  font-size: 0.875rem;
}

/* wider than the 70ch text column, never wider than the page */
.prose .table-wrap.is-wide {
  width: min(1116px, calc(100vw - 2 * var(--gutter)));
}

.glance {
  max-width: 880px;
  margin: 32px auto 0;
  border-top: 1px solid var(--border);
}

.glance div {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.glance dt {
  color: var(--text);
  font-weight: 600;
}

.glance dd {
  margin: 4px 0 0;
  color: var(--text-2);
}

@media (min-width: 720px) {
  .glance div {
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr);
    column-gap: 24px;
  }
  .glance dd {
    margin: 0;
  }
}

.guide-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 640px) {
  .guide-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1060px) {
  .guide-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.guide-list a {
  display: block;
  height: 100%;
  padding: 18px 20px;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  color: inherit;
  text-decoration: none;
}

.guide-list a:hover {
  border-color: var(--border-strong);
}

.guide-list h3 {
  font-size: 1.0625rem;
}

.guide-list p {
  margin-top: 6px;
  color: var(--text-2);
  font-size: 0.9375rem;
}

/* ---------- Motion preferences ---------- */

@media (prefers-reduced-motion: reduce) {
  html,
  html:focus-within {
    scroll-behavior: auto;
  }
  .prompter-track,
  .wave i,
  .vf-caret,
  .status-dot::after {
    animation: none;
  }
  .wave i {
    transform: scaleY(0.7);
  }
  .faq summary::after {
    transition: none;
  }
}
