/* Generated from the app's src/theme/tokens.ts. Do not edit here: change the app's tokens instead. */
:root {
  color-scheme: light dark;
  --bg: #FAF7F0;
  --surface: #FFFFFF;
  --surface-alt: #F1ECE1;
  --surface-raised: #FFFFFF;
  --text: #161A2B;
  --text-muted: #5E6478;
  --text-faint: #8E93A6;
  --border: #E4DED0;
  --hairline: rgba(22,26,43,0.08);
  --primary: #2B4BD6;
  --primary-pressed: #1F38A8;
  --primary-soft: #E7ECFD;
  --on-primary: #FFFFFF;
  --gold: #D9A32E;
  --gold-soft: #FBF0D6;
  --gold-text: #7A570A;
  --olive: #62804A;
  --olive-soft: #E7EFDD;
  --olive-text: #476134;
  --danger: #C23B3B;
  --danger-soft: #FAE4E2;
  --like: #D8434F;
  --tab-bar: rgba(255,255,255,0.9);
  --scrim: rgba(13,17,36,0.5);
  --shadow: #1B2350;
  --radius-sm: 10px;
  --radius-control: 14px;
  --radius-media: 16px;
  --radius-card: 20px;
  --radius-sheet: 28px;
  --radius-pill: 999px;
  --space-xxs: 2px;
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 12px;
  --space-lg: 16px;
  --space-xl: 20px;
  --space-xxl: 24px;
  --space-xxxl: 32px;
  --space-huge: 48px;
  --gradient-brand: linear-gradient(150deg, #4A68F5, #2B4BD6, #1C2C9C);
  --gradient-brand-deep: linear-gradient(150deg, #2B4BD6, #1B1F6E);
  --gradient-gold: linear-gradient(150deg, #F6CE66, #D9A32E);
  --gradient-dusk: linear-gradient(150deg, #2B4BD6, #6A3FB8, #D9703E);
  --gradient-olive: linear-gradient(150deg, #7FA05F, #4D6B3A);
  --spark: #F6CE66;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0D1124;
    --surface: #161B33;
    --surface-alt: #1F2545;
    --surface-raised: #1B2140;
    --text: #F2EFE6;
    --text-muted: #A3A9C2;
    --text-faint: #737A99;
    --border: #2A3158;
    --hairline: rgba(242,239,230,0.09);
    --primary: #6F8BFF;
    --primary-pressed: #5672EC;
    --primary-soft: #222C5C;
    --on-primary: #0B1030;
    --gold: #F0BE55;
    --gold-soft: #3A3018;
    --gold-text: #F0BE55;
    --olive: #8FB374;
    --olive-soft: #232F26;
    --olive-text: #A7C98E;
    --danger: #EF6B6B;
    --danger-soft: #3B1F26;
    --like: #FF6B78;
    --tab-bar: rgba(18,23,46,0.9);
    --scrim: rgba(0,0,0,0.6);
    --shadow: #000000;
  }
}

@font-face { font-family: 'Fraunces'; src: url('fonts/Fraunces_600SemiBold.9f03c0fe70.ttf') format('truetype'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Fraunces'; src: url('fonts/Fraunces_700Bold.3404710f1f.ttf') format('truetype'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Fraunces'; src: url('fonts/Fraunces_500Medium_Italic.87c0b4d528.ttf') format('truetype'); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: 'Plus Jakarta Sans'; src: url('fonts/PlusJakartaSans_400Regular.ca6ef90702.ttf') format('truetype'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Plus Jakarta Sans'; src: url('fonts/PlusJakartaSans_500Medium.00ec347136.ttf') format('truetype'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Plus Jakarta Sans'; src: url('fonts/PlusJakartaSans_600SemiBold.bbaa1d21ce.ttf') format('truetype'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Plus Jakarta Sans'; src: url('fonts/PlusJakartaSans_700Bold.71af7a0aac.ttf') format('truetype'); font-weight: 700; font-style: normal; font-display: swap; }
/*
 * Teruah website styles.
 *
 * The colours (--bg, --primary, --gold ...), corner sizes (--radius-*), spacing
 * (--space-*) and gradients (--gradient-*) are not written in this file. The
 * build reads them from the app's src/theme/tokens.ts and puts them in front
 * of these rules, for light and for dark, so the site always matches the app.
 */

:root {
  --font-display: 'Fraunces', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --gutter: var(--space-xl);
  --phone-w: 17rem;

  /* Web-only values built from the app's tokens. */
  --band: var(--surface-alt);
  --shadow-card: 0 1px 2px color-mix(in srgb, var(--shadow) 6%, transparent), 0 14px 32px -16px color-mix(in srgb, var(--shadow) 22%, transparent);
  --shadow-phone: 0 44px 70px -34px color-mix(in srgb, var(--shadow) 60%, transparent), 0 18px 28px -18px color-mix(in srgb, var(--shadow) 40%, transparent);
  --phone-ring: transparent;
  --orb-a: color-mix(in srgb, var(--gold) 34%, transparent);
  --orb-b: color-mix(in srgb, var(--primary) 17%, transparent);
  --stars: 0;
  --glow: color-mix(in srgb, var(--primary) 24%, transparent);
  --spot: color-mix(in srgb, var(--primary) 9%, transparent);
  /* Small blue text on the soft blue tint. In dark mode plain --primary falls just short of AA there. */
  --on-primary-soft: var(--primary);

  /* The app's springs and timings (tokens.ts: spring and duration), as CSS curves. */
  --ease-press: cubic-bezier(0.3, 1.45, 0.5, 1);
  --ease-gentle: cubic-bezier(0.22, 1, 0.36, 1);
  --fast: 180ms;
}

@media (min-width: 45rem) {
  :root {
    --gutter: var(--space-xxxl);
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    /* Night, on purpose: deeper bands, black shadows, a lit edge on the phone, and stars. */
    --band: color-mix(in srgb, var(--surface) 55%, var(--bg));
    --shadow-card: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 18px 40px -20px rgba(0, 0, 0, 0.7);
    --shadow-phone: 0 44px 80px -30px rgba(0, 0, 0, 0.85), 0 0 70px -20px color-mix(in srgb, var(--primary) 45%, transparent);
    --phone-ring: rgba(255, 255, 255, 0.16);
    --orb-a: color-mix(in srgb, var(--primary) 42%, transparent);
    --orb-b: rgba(106, 63, 184, 0.3);
    --stars: 1;
    --spot: color-mix(in srgb, var(--primary) 16%, transparent);
    --on-primary-soft: color-mix(in srgb, var(--primary) 70%, #fff);
    --glow: color-mix(in srgb, var(--primary) 30%, transparent);
  }
}

/* ── Base ─────────────────────────────────────────────────────────────── */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

main {
  flex: 1;
}

h1,
h2,
h3,
p,
ul,
ol {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

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

img {
  height: auto;
}

a {
  color: var(--primary);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.2em;
}

strong {
  font-weight: 700;
}

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

::selection {
  background: var(--primary);
  color: var(--on-primary);
}

.icon {
  flex: none;
}

.wrap {
  width: min(100% - 2 * var(--gutter), 70rem);
  margin-inline: auto;
}

.wrap.narrow {
  width: min(100% - 2 * var(--gutter), 54rem);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: var(--space-lg);
  top: var(--space-lg);
  z-index: 100;
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-control);
  background: var(--primary);
  color: var(--on-primary);
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

/* ── Logo ─────────────────────────────────────────────────────────────── */

.mark-tav,
.mark-blast {
  stroke: currentColor;
}

.badge {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 26%;
  background: var(--gradient-brand);
  box-shadow: 0 8px 16px -8px color-mix(in srgb, var(--primary) 70%, transparent);
}

.badge .mark {
  width: 76%;
  height: 76%;
}

.badge .mark-tav {
  stroke: #fff;
}

.badge .mark-blast {
  stroke: var(--spark);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  min-height: 2.75rem;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1;
  letter-spacing: -0.025em;
  text-decoration: none;
}

/* The blast "sounds": the rays swell out from the corner of the letter, as in the app. */
@keyframes sound {
  0% {
    transform: scale(1);
    opacity: 0.78;
    animation-timing-function: cubic-bezier(0.33, 1, 0.68, 1);
  }
  24.5% {
    transform: scale(1.16);
    opacity: 1;
    animation-timing-function: cubic-bezier(0.45, 0, 0.55, 1);
  }
  67%,
  100% {
    transform: scale(1);
    opacity: 0.78;
  }
}

.mark-sounding .mark-blast {
  transform-box: view-box;
  transform-origin: 62.5% 36.5%;
  animation: sound 2.12s infinite;
}

.rays {
  transform-origin: 20% 77.5%;
  animation: sound 2.12s infinite;
}

.rays path {
  stroke: var(--gold);
}

/* ── Header ───────────────────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  -webkit-backdrop-filter: saturate(1.5) blur(18px);
  backdrop-filter: saturate(1.5) blur(18px);
  border-bottom: 1px solid var(--hairline);
}

.site-header {
  transition: box-shadow 0.32s var(--ease-gentle);
}

.site-header.is-scrolled {
  box-shadow: 0 12px 28px -22px color-mix(in srgb, var(--shadow) 70%, transparent);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  min-height: 4rem;
}

/* How far down the page you are: a thin line in the brand colours. */
.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--primary));
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(0px, 1vw, 8px);
  margin-right: -0.5rem;
}

.site-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0 clamp(0.5rem, 1.6vw, 0.875rem);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  transition:
    color var(--fast),
    background-color var(--fast);
}

.site-nav a:hover {
  color: var(--text);
  background: var(--surface-alt);
}

.site-nav a[aria-current='page'] {
  color: var(--text);
}

/* The same short bar the app puts under the chosen tab. */
.site-nav a[aria-current='page']::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 3px;
  width: 1.5rem;
  height: 3px;
  margin-left: -0.75rem;
  border-radius: 3px;
  background: var(--primary);
}

/* On a phone the header keeps to the logo and two links; the Features link is the big button just below. */
@media (max-width: 27rem) {
  .site-nav .nav-features {
    display: none;
  }
}

@media (max-width: 22rem) {
  .wordmark {
    gap: 0.5rem;
    font-size: 1.3125rem;
  }

  .site-nav a {
    padding-inline: 0.4375rem;
    font-size: 0.875rem;
  }
}

/* ── Type ─────────────────────────────────────────────────────────────── */

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 700;
  text-wrap: balance;
}

.eyebrow {
  color: var(--gold-text);
  font-weight: 700;
  font-size: 0.8125rem;
  line-height: 1.3;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.lead {
  font-size: clamp(1.125rem, 1.05rem + 0.45vw, 1.3125rem);
  line-height: 1.55;
  text-wrap: pretty;
}

.fine-print {
  margin-top: clamp(2rem, 5vw, 3.5rem);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.text-link {
  display: inline-block;
  margin-top: var(--space-xs);
  padding-block: 0.6875rem;
  font-weight: 700;
  font-size: 0.9375rem;
  line-height: 1.4;
  text-decoration: none;
}

.text-link .icon {
  display: inline-block;
  margin-left: 2px;
  vertical-align: -0.24em;
  transition: transform 0.28s var(--ease-press);
}

.text-link:hover {
  text-decoration: underline;
}

.text-link:hover .icon {
  transform: translateX(3px);
}

/* ── Chips, buttons, tiles, cards ─────────────────────────────────────── */

.chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.4375rem 0.875rem 0.4375rem 0.625rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.875rem;
  line-height: 1.3;
}

.chip-gold {
  background: var(--gold-soft);
  color: var(--gold-text);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  min-height: 3.25rem;
  padding: 0 1.5rem;
  border-radius: var(--radius-control);
  background: var(--gradient-brand);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 14px 26px -14px color-mix(in srgb, var(--primary) 80%, transparent);
  transition:
    transform 0.28s var(--ease-press),
    filter var(--fast);
}

.button:hover {
  transform: translateY(-2px);
  filter: brightness(1.07);
}

.button:active {
  transform: scale(0.97);
  transition-duration: 0.11s;
}

.button-quiet {
  background: var(--surface);
  color: var(--text);
  box-shadow:
    inset 0 0 0 1px var(--border),
    0 10px 20px -16px color-mix(in srgb, var(--shadow) 40%, transparent);
}

.tile {
  display: grid;
  place-items: center;
  flex: none;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: var(--radius-control);
}

.tile-brand {
  background: var(--gradient-brand);
  color: #fff;
}

.tile-gold {
  background: var(--gradient-gold);
  color: #3d2b00;
}

.tile-olive {
  background: var(--gradient-olive);
  color: #fff;
}

.tile-soft {
  background: var(--primary-soft);
  color: var(--primary);
}

.card {
  padding: clamp(1.5rem, 3vw, 2rem);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

/* A soft light that follows the pointer (set by site.js on computers). */
.card,
.promise {
  position: relative;
  isolation: isolate;
}

.card::after,
.promise::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(17rem circle at var(--mx, 50%) var(--my, 0%), var(--spot), transparent 72%);
  opacity: 0;
  transition: opacity 0.32s var(--ease-gentle);
  pointer-events: none;
}

@media (hover: hover) {
  .card:hover::after,
  .promise:hover::after {
    opacity: 1;
  }
}

.card h2,
.card h3,
.promise h3 {
  font-weight: 600;
  font-size: 1.3125rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

/* ── Phone frame ──────────────────────────────────────────────────────── */

.phone {
  --bezel: calc(var(--phone-w) * 0.03);
  position: relative;
  width: var(--phone-w);
  padding: var(--bezel);
  border-radius: calc(var(--phone-w) * 0.178);
  background: #080a14;
  box-shadow:
    0 0 0 1px var(--phone-ring),
    inset 0 0 0 1px rgba(255, 255, 255, 0.1),
    var(--shadow-phone);
}

.phone-screen {
  position: relative;
  overflow: hidden;
  aspect-ratio: 660 / 1435;
  border-radius: calc(var(--phone-w) * 0.178 - var(--bezel));
  background: var(--bg);
}

.phone-screen picture {
  display: block;
  width: 100%;
  height: 100%;
}

.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Anything marked to drift with the scroll (site.js sets --py on computers). */
[data-parallax] {
  transform: translate3d(0, var(--py, 0px), 0);
}

.phone-island {
  z-index: 2;
  position: absolute;
  top: calc(var(--phone-w) * 0.031);
  left: 50%;
  width: 24%;
  aspect-ratio: 2.6;
  margin-left: -12%;
  border-radius: var(--radius-pill);
  background: #000;
}

/* ── Hero ─────────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3rem, 7vw, 5.5rem);
}

/* The sky behind the first screen: two slow lights, and stars at night. */
.hero-sky {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.orb {
  position: absolute;
  aspect-ratio: 1;
  border-radius: 50%;
}

.orb::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  animation: drift 17s ease-in-out infinite alternate;
}

.orb-gold {
  width: min(58rem, 150vw);
  right: -18rem;
  top: -24rem;
}

.orb-gold::before {
  background: radial-gradient(closest-side, var(--orb-a), transparent);
}

.orb-blue {
  width: min(48rem, 130vw);
  left: -20rem;
  top: -10rem;
}

.orb-blue::before {
  background: radial-gradient(closest-side, var(--orb-b), transparent);
  animation-duration: 23s;
  animation-direction: alternate-reverse;
}

@keyframes drift {
  from {
    transform: translate3d(-3%, -2%, 0) scale(1);
  }
  to {
    transform: translate3d(5%, 6%, 0) scale(1.14);
  }
}

.stars,
.stars::after,
.closing-stars {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1.5px 1.5px at 12% 22%, rgba(242, 239, 230, 0.8) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 31% 9%, rgba(242, 239, 230, 0.55) 50%, transparent 51%),
    radial-gradient(2px 2px at 47% 31%, rgba(242, 239, 230, 0.5) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 58% 12%, rgba(242, 239, 230, 0.7) 50%, transparent 51%),
    radial-gradient(2px 2px at 86% 18%, rgba(240, 190, 85, 0.85) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 6% 68%, rgba(242, 239, 230, 0.45) 50%, transparent 51%);
}

.stars {
  opacity: var(--stars);
}

.stars::after {
  content: '';
  background:
    radial-gradient(1.5px 1.5px at 22% 41%, rgba(242, 239, 230, 0.8) 50%, transparent 51%),
    radial-gradient(2px 2px at 40% 16%, rgba(242, 239, 230, 0.7) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 72% 44%, rgba(242, 239, 230, 0.6) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 94% 58%, rgba(242, 239, 230, 0.7) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 66% 6%, rgba(240, 190, 85, 0.8) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 24% 86%, rgba(242, 239, 230, 0.5) 50%, transparent 51%);
  animation: twinkle 4.6s ease-in-out infinite alternate;
}

@keyframes twinkle {
  from {
    opacity: 0.15;
  }
  to {
    opacity: 1;
  }
}

.hero-grid {
  display: grid;
  align-items: center;
  gap: clamp(2.75rem, 6vw, 4rem);
}

@media (min-width: 58rem) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  }
}

.hero h1 {
  margin-top: var(--space-xl);
  font-size: clamp(2.625rem, 1.5rem + 4.9vw, 4.625rem);
  line-height: 1.02;
  letter-spacing: -0.032em;
}

.hero .lead {
  margin-top: var(--space-xl);
  max-width: 33em;
}

.hero-sub {
  margin-top: var(--space-md);
  max-width: 35em;
  color: var(--text-muted);
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-top: var(--space-xxxl);
}

.name-note {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  max-width: 35em;
  margin-top: clamp(2rem, 4vw, 2.75rem);
  padding-top: var(--space-xxl);
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.name-note strong {
  color: var(--text);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 1.0625rem;
}

.badge-small {
  width: 2.75rem;
  height: 2.75rem;
}

.hero-device {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(36rem, 130%);
  aspect-ratio: 1;
  margin: calc(min(36rem, 130%) / -2) 0 0 calc(min(36rem, 130%) / -2);
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--glow), transparent);
  pointer-events: none;
}

.hero-phone {
  --phone-w: clamp(15.5rem, 64vw, 19.5rem);
  --rays: calc(var(--phone-w) * 0.3);
  position: relative;
}

/* Leans toward the pointer (--rx, --ry) and drifts with the scroll (--py). */
.hero-phone-tilt {
  position: relative;
  transform: perspective(70rem) translate3d(0, var(--py, 0px), 0) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transform-style: preserve-3d;
}

/* The logo's three rays, leaving the corner of the phone as they leave the corner of the letter. */
.hero-rays {
  position: absolute;
  width: var(--rays);
  height: var(--rays);
  left: calc(100% - var(--rays) * 0.2 - var(--phone-w) * 0.04);
  top: calc(var(--rays) * -0.775 + var(--phone-w) * 0.04);
  transform: translateZ(3rem);
}

.hero-rays .rays {
  width: 100%;
  height: 100%;
}

/* The phone tour (see site.js): screens stacked in the frame, and the tab bar made tappable. */
.phone-shots {
  position: absolute;
  inset: 0;
}

.shot {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.035);
  transition:
    opacity 0.3s ease,
    transform 0.55s var(--ease-gentle);
}

.shot.is-on {
  z-index: 1;
  opacity: 1;
  transform: none;
}

.shot.is-leaving {
  opacity: 1;
  transform: none;
  transition: none;
}

.tour-tabs {
  position: absolute;
  z-index: 3;
  left: 1.5%;
  right: 1.5%;
  top: 89.3%;
  height: 8.2%;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}

.tour-tab {
  position: relative;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: calc(var(--phone-w) * 0.045);
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.tour-tab::before,
.tour-tab::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 32%;
  width: 62%;
  aspect-ratio: 1;
  margin: -31% 0 0 -31%;
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
}

/* The answer to a tap: a soft ripple. */
.tour-tab::after {
  background: var(--primary);
}

.tour-tab.is-tapped::after {
  animation: tap 0.6s ease-out;
}

/* While the tour plays, a ring shows which tab comes next. */
.tour-tab::before {
  border: 2px solid var(--gold);
}

.tour-tab.is-next::before {
  animation: beckon 1.7s ease-out infinite;
}

@keyframes tap {
  from {
    opacity: 0.4;
    transform: scale(0.35);
  }
  to {
    opacity: 0;
    transform: scale(1.6);
  }
}

@keyframes beckon {
  0% {
    opacity: 0;
    transform: scale(0.6);
  }
  35% {
    opacity: 0.95;
  }
  100% {
    opacity: 0;
    transform: scale(1.25);
  }
}

@media (hover: hover) {
  .tour-tab:hover {
    background: color-mix(in srgb, var(--primary) 12%, transparent);
  }
}

.tour-tab:focus-visible {
  outline-offset: -3px;
}

.tour-bar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-top: var(--space-xxl);
  padding: 0.3125rem 1.125rem 0.3125rem 0.3125rem;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  box-shadow: var(--shadow-card);
}

.tour-bar[hidden],
.tour-toggle[hidden] {
  display: none;
}

.tour-toggle {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  cursor: pointer;
  transition: transform 0.28s var(--ease-press);
}

.tour-toggle:active {
  transform: scale(0.9);
}

.tour-toggle .icon:last-child,
.tour-toggle.is-paused .icon:first-child {
  display: none;
}

.tour-toggle.is-paused .icon:last-child {
  display: block;
}

.tour-toggle[hidden] + .tour-hint {
  padding-left: var(--space-md);
}

.tour-hint {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1.3;
}

/* ── Sections ─────────────────────────────────────────────────────────── */

.section {
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
}

.section-tint {
  background: var(--band);
}

.section-head {
  max-width: 45rem;
  margin-bottom: clamp(2.25rem, 5vw, 3.75rem);
}

.section-head .eyebrow {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.section-head .eyebrow::before {
  content: '';
  width: 1.75rem;
  height: 2px;
  border-radius: 2px;
  background: var(--gold);
  transform-origin: left center;
  transition: transform 0.7s var(--ease-gentle) 0.25s;
}

.section-head h2 {
  margin-top: var(--space-md);
  font-size: clamp(1.9375rem, 1.3rem + 2.6vw, 3.125rem);
  line-height: 1.07;
  letter-spacing: -0.026em;
}

.section-head p:not(.eyebrow) {
  max-width: 38em;
  margin-top: var(--space-lg);
  color: var(--text-muted);
  font-size: 1.125rem;
  text-wrap: pretty;
}

/* ── Feature rows ─────────────────────────────────────────────────────── */

.showcases {
  display: grid;
  gap: clamp(3.5rem, 8vw, 6rem);
}

.showcase {
  display: grid;
  align-items: center;
  gap: var(--space-xxxl);
  scroll-margin-top: 6rem;
}

@media (min-width: 56rem) {
  .showcase {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(2.5rem, 6vw, 5.5rem);
  }

  .showcase:nth-child(even) .stage {
    order: -1;
  }
}

.feature-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.375rem 0.875rem 0.375rem 0.625rem;
  border-radius: var(--radius-pill);
  background: var(--primary-soft);
  color: var(--on-primary-soft);
  font-weight: 700;
  font-size: 0.875rem;
  line-height: 1.3;
}

.showcase h3 {
  margin-top: var(--space-lg);
  font-size: clamp(1.625rem, 1.3rem + 1.4vw, 2.3125rem);
  line-height: 1.12;
  letter-spacing: -0.022em;
}

.showcase-copy > p:not(.feature-label) {
  max-width: 32em;
  margin-top: var(--space-lg);
  color: var(--text-muted);
  text-wrap: pretty;
}

.ticks {
  display: grid;
  gap: var(--space-md);
  max-width: 32em;
  margin-top: var(--space-xxl);
}

.ticks li {
  display: grid;
  grid-template-columns: 1.75rem 1fr;
  align-items: start;
  gap: var(--space-md);
  font-weight: 500;
  line-height: 1.5;
}

.ticks .icon {
  width: 1.75rem;
  height: 1.75rem;
  padding: 5px;
  border-radius: 50%;
  background: var(--olive-soft);
  color: var(--olive-text);
}

.ticks span {
  padding-top: 0.125rem;
}

.stage {
  --phone-w: clamp(13.5rem, 58vw, 16.75rem);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: clamp(2rem, 5vw, 3.25rem) var(--space-xl);
  border-radius: var(--radius-sheet);
}

.stage::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
}

.stage-blue {
  background: var(--primary-soft);
}

.stage-blue::before {
  background: radial-gradient(28rem 20rem at 100% 0%, color-mix(in srgb, var(--primary) 24%, transparent), transparent 70%);
}

.stage-gold {
  background: var(--gold-soft);
}

.stage-gold::before {
  background: radial-gradient(28rem 20rem at 0% 0%, color-mix(in srgb, var(--gold) 34%, transparent), transparent 70%);
}

.stage-olive {
  background: var(--olive-soft);
}

.stage-olive::before {
  background: radial-gradient(28rem 20rem at 0% 100%, color-mix(in srgb, var(--olive) 28%, transparent), transparent 70%);
}

.stage-night {
  background: var(--gradient-dusk);
}

.stage-night::before {
  background: linear-gradient(180deg, rgba(13, 17, 36, 0.35), rgba(13, 17, 36, 0));
}

.stage-night .phone {
  --phone-ring: rgba(255, 255, 255, 0.16);
}

/* Two phones, one tucked behind the other. */
.duo {
  --phone-w: clamp(10.5rem, 42vw, 14.25rem);
  position: relative;
  padding-right: calc(var(--phone-w) * 0.6);
}

.duo-front {
  z-index: 1;
}

.duo-back {
  position: absolute;
  right: 0;
  top: 8%;
  transform: translate3d(0, var(--py, 0px), 0) scale(0.9);
  transform-origin: right center;
}

/* ── Community cards ──────────────────────────────────────────────────── */

.card-grid {
  display: grid;
  gap: var(--space-xl);
}

@media (min-width: 54rem) {
  .card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.community-card h3 {
  margin-top: var(--space-xl);
}

.community-card p {
  margin-top: var(--space-sm);
  color: var(--text-muted);
  font-size: 1rem;
  text-wrap: pretty;
}

/* ── Promises ─────────────────────────────────────────────────────────── */

.promise-grid {
  display: grid;
  gap: var(--space-xl);
}

@media (min-width: 48rem) {
  .promise-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-xxl);
  }
}

.promise {
  display: grid;
  align-items: start;
  gap: var(--space-lg);
  padding: clamp(1.25rem, 3vw, 1.75rem);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

@media (min-width: 34rem) {
  .promise {
    grid-template-columns: auto 1fr;
  }
}

.promise p {
  margin-top: var(--space-sm);
  color: var(--text-muted);
  font-size: 1rem;
  text-wrap: pretty;
}

/* ── Closing band ─────────────────────────────────────────────────────── */

.section-closing {
  padding-top: 0;
}

.closing {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(3rem, 8vw, 5.5rem) var(--space-xxl);
  border-radius: var(--radius-sheet);
  background: var(--gradient-brand-deep);
  color: #fff;
  text-align: center;
  box-shadow: 0 34px 60px -34px color-mix(in srgb, var(--primary) 75%, transparent);
}

.closing::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(42rem 22rem at 50% -30%, rgba(111, 139, 255, 0.6), transparent 70%);
}

.closing-rays {
  position: absolute;
  z-index: -1;
  right: -2rem;
  top: -4.5rem;
  width: clamp(14rem, 34vw, 23rem);
  height: auto;
  opacity: 0.16;
  animation: none;
}

.closing-rays path {
  stroke: var(--spark);
}

.closing-stars {
  z-index: -1;
  opacity: 0.7;
}

/* Rings of sound leaving the mark. */
.closing-sound {
  position: relative;
  width: 5.75rem;
  height: 5.75rem;
  margin-inline: auto;
}

.ring {
  position: absolute;
  inset: 0;
  border: 1.5px solid var(--spark);
  border-radius: 50%;
  opacity: 0;
  animation: ring 4.2s cubic-bezier(0.2, 0.6, 0.35, 1) infinite;
}

.ring:nth-child(2) {
  animation-delay: 1.4s;
}

.ring:nth-child(3) {
  animation-delay: 2.8s;
}

@keyframes ring {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  12% {
    opacity: 0.55;
  }
  100% {
    opacity: 0;
    transform: scale(4.6);
  }
}

.closing-mark {
  position: relative;
  width: 100%;
  height: 100%;
}

.closing-mark .mark-tav {
  stroke: #fff;
}

.closing-mark .mark-blast {
  stroke: var(--spark);
}

/* The words sit in front of the rings of sound. */
.closing h2,
.closing p {
  position: relative;
  z-index: 1;
}

.closing h2 {
  margin-top: var(--space-xl);
  font-size: clamp(2rem, 1.35rem + 2.8vw, 3.25rem);
  line-height: 1.06;
  letter-spacing: -0.026em;
}

.closing p {
  max-width: 31em;
  margin: var(--space-lg) auto 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.125rem;
  text-wrap: pretty;
}

/* ── Footer ───────────────────────────────────────────────────────────── */

.site-footer {
  padding-block: var(--space-huge) var(--space-xxxl);
  border-top: 1px solid var(--border);
}

.footer-top {
  display: grid;
  gap: var(--space-xxxl);
}

@media (min-width: 48rem) {
  .footer-top {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  }
}

.footer-brand p {
  max-width: 22em;
  margin-top: var(--space-sm);
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-xxl);
}

.footer-links h2 {
  padding-top: var(--space-md);
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.8125rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.footer-links ul {
  margin-top: var(--space-xs);
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--text);
  font-weight: 500;
  font-size: 0.9375rem;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--primary);
  text-decoration: underline;
}

.footer-legal {
  margin-top: var(--space-xxxl);
  padding-top: var(--space-xxl);
  border-top: 1px solid var(--hairline);
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* ── Legal pages ──────────────────────────────────────────────────────── */

.doc-wrap {
  padding-block: clamp(1.5rem, 4vw, 2.75rem) clamp(3.5rem, 8vw, 6rem);
}

.pills {
  position: relative;
  display: flex;
  gap: var(--space-sm);
  margin: -4px calc(var(--gutter) * -1);
  padding: 4px var(--gutter);
  overflow-x: auto;
  scrollbar-width: none;
}

.pills::-webkit-scrollbar {
  display: none;
}

.pill {
  display: inline-flex;
  align-items: center;
  flex: none;
  min-height: 2.75rem;
  padding: 0 1.125rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  transition:
    transform 0.28s var(--ease-press),
    border-color var(--fast);
}

.pill:hover {
  border-color: var(--primary);
}

.pill:active {
  transform: scale(0.97);
}

.pill-on {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--on-primary);
}

.doc-grid {
  display: grid;
  gap: var(--space-xxl);
  margin-top: clamp(1.5rem, 4vw, 2.75rem);
}

.toc-wide {
  display: none;
}

@media (min-width: 62rem) {
  .doc-grid {
    grid-template-columns: 15.5rem minmax(0, 44rem);
    align-items: start;
    gap: clamp(2.5rem, 6vw, 5rem);
  }

  .doc-aside {
    position: sticky;
    top: 5.5rem;
    max-height: calc(100vh - 7rem);
    overflow-y: auto;
    padding-bottom: var(--space-lg);
  }

  .toc-narrow {
    display: none;
  }

  .toc-wide {
    display: block;
  }
}

.toc-narrow {
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  background: var(--surface);
}

.toc-narrow summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  min-height: 3rem;
  padding: 0 var(--space-lg);
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
  list-style: none;
}

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

.toc-narrow summary .icon,
.faq summary .icon {
  color: var(--text-muted);
  transition: transform 0.32s var(--ease-gentle);
}

.toc-narrow[open] summary .icon,
.faq[open] summary .icon {
  transform: rotate(180deg);
}

.toc-narrow ol {
  padding: 0 var(--space-sm) var(--space-sm);
}

.toc-title {
  padding-left: var(--space-lg);
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.toc-wide ol {
  margin-top: var(--space-md);
  border-left: 2px solid var(--border);
}

.toc a {
  display: flex;
  align-items: center;
  min-height: 2.75rem;
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.9375rem;
  line-height: 1.35;
  text-decoration: none;
  transition:
    color var(--fast),
    background-color var(--fast);
}

.toc-wide a {
  min-height: 0;
  margin-left: -2px;
  padding-block: 0.5625rem;
  padding-left: var(--space-lg);
  border-left: 2px solid transparent;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.toc a:hover {
  color: var(--text);
  background: var(--surface-alt);
}

.toc-wide a:hover {
  border-left-color: var(--primary);
}

.toc-wide a[aria-current] {
  border-left-color: var(--primary);
  color: var(--primary);
  font-weight: 700;
}

.doc h1,
.page-head h1,
.missing h1 {
  font-size: clamp(2.25rem, 1.6rem + 2.8vw, 3.375rem);
  line-height: 1.05;
  letter-spacing: -0.028em;
}

.notice {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-md);
  margin-top: var(--space-xxl);
  padding: var(--space-lg);
  border-radius: var(--radius-control);
  font-size: 0.9375rem;
  line-height: 1.45;
}

.notice-gold {
  background: var(--gold-soft);
}

.notice-gold .icon,
.notice-title {
  color: var(--gold-text);
}

.notice-title {
  font-weight: 700;
}

.doc-summary {
  margin-top: var(--space-xxl);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.1875rem, 1.1rem + 0.5vw, 1.375rem);
  line-height: 1.5;
  text-wrap: pretty;
}

.doc-section {
  margin-top: var(--space-xxxl);
}

.doc-section h2 {
  scroll-margin-top: 6rem;
  font-weight: 600;
  font-size: 1.375rem;
  line-height: 1.3;
  letter-spacing: -0.012em;
}

.doc-section p,
.doc-section .dots {
  margin-top: var(--space-md);
}

.dots {
  display: grid;
  gap: var(--space-sm);
}

.dots li {
  position: relative;
  padding-left: 1.375rem;
}

.dots li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.66em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
}

/* A gap the owner still has to fill, written [in square brackets] in the app's text. */
mark.gap {
  margin-inline: -0.06em;
  padding: 0.08em 0.2em;
  border-radius: 6px;
  background: var(--gold-soft);
  color: inherit;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* ── Support page ─────────────────────────────────────────────────────── */

.page-head {
  padding-block: clamp(2rem, 6vw, 4rem) clamp(1.5rem, 4vw, 2.5rem);
}

.page-head h1 {
  margin-top: var(--space-md);
}

.page-head .lead {
  max-width: 34em;
  margin-top: var(--space-lg);
  color: var(--text-muted);
}

.contact {
  display: grid;
  align-items: center;
  gap: var(--space-xl);
}

@media (min-width: 46rem) {
  .contact {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: var(--space-xxxl);
  }
}

.contact h2 {
  font-size: 1.5rem;
}

.contact p {
  margin-top: var(--space-sm);
  color: var(--text-muted);
  font-size: 1rem;
}

.address {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin: 0;
  padding: 0.875rem var(--space-lg);
  border-radius: var(--radius-control);
  font-weight: 700;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

a.address {
  background: var(--primary-soft);
  color: var(--on-primary-soft);
  font-size: clamp(0.875rem, 3.9vw, 1.0625rem);
  text-decoration: none;
}

.contact .address-missing {
  border: 2px dashed var(--gold);
  background: var(--gold-soft);
  color: var(--gold-text);
  font-size: 1rem;
}

.address-missing mark.gap {
  padding: 0;
  background: none;
}

.contact .quiet {
  font-size: 0.9375rem;
}

.help-grid {
  display: grid;
  gap: var(--space-xl);
  margin-top: var(--space-xl);
}

@media (min-width: 46rem) {
  .help-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.help-card h2 {
  margin-top: var(--space-lg);
}

.help-card p {
  margin-top: var(--space-sm);
  color: var(--text-muted);
  font-size: 1rem;
}

.faqs {
  padding-block: clamp(2.75rem, 7vw, 4.5rem) clamp(3rem, 8vw, 5.5rem);
}

.faqs > h2 {
  margin-bottom: var(--space-lg);
  font-size: clamp(1.625rem, 1.3rem + 1.4vw, 2.125rem);
  letter-spacing: -0.02em;
}

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

.faq:first-of-type {
  border-top: 1px solid var(--border);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  min-height: 3.75rem;
  padding-block: var(--space-md);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq summary:hover {
  color: var(--primary);
}

@supports (interpolate-size: allow-keywords) {
  .faq,
  .toc-narrow {
    interpolate-size: allow-keywords;
  }

  .faq::details-content,
  .toc-narrow::details-content {
    height: 0;
    overflow: hidden;
    transition:
      height 0.4s var(--ease-gentle),
      content-visibility 0.4s allow-discrete;
  }

  .faq[open]::details-content,
  .toc-narrow[open]::details-content {
    height: auto;
  }
}

.faq-answer {
  max-width: 40em;
  padding-bottom: var(--space-xl);
  color: var(--text-muted);
}

/* ── Page not found ───────────────────────────────────────────────────── */

.missing {
  display: grid;
  justify-items: center;
  gap: var(--space-xl);
  padding-block: clamp(4rem, 12vw, 8rem);
  text-align: center;
}

.missing-badge {
  display: grid;
  place-items: center;
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 26%;
  background: var(--gradient-brand);
  box-shadow: 0 24px 40px -22px color-mix(in srgb, var(--primary) 80%, transparent);
}

.missing-badge .mark {
  width: 76%;
  height: 76%;
}

.missing-badge .mark-tav {
  stroke: #fff;
}

.missing-badge .mark-blast {
  stroke: var(--spark);
}

.missing .lead {
  max-width: 28em;
  color: var(--text-muted);
}

/* ── Motion ───────────────────────────────────────────────────────────── */

@keyframes rise {
  from {
    opacity: 0;
    transform: translate3d(0, 20px, 0);
  }
}

@keyframes word {
  from {
    opacity: 0;
    transform: translate3d(0, 0.5em, 0) rotate(3deg);
  }
}

@keyframes arrive {
  from {
    opacity: 0;
    transform: translate3d(0, 44px, 0) scale(0.96);
  }
}

.word {
  display: inline-block;
}

@media (prefers-reduced-motion: no-preference) {
  /* The first screen arrives in order, like the app's staggered entrances. */
  .hero-copy > :not(h1),
  .page-head > *,
  .doc-head > *,
  .missing > * {
    animation: rise 0.6s var(--ease-gentle) backwards;
  }

  .hero-copy > :nth-child(3),
  .page-head > :nth-child(2),
  .doc-head > :nth-child(2),
  .missing > :nth-child(2) {
    animation-delay: 0.3s;
  }

  .hero-copy > :nth-child(4),
  .page-head > :nth-child(3),
  .doc-head > :nth-child(3),
  .missing > :nth-child(3) {
    animation-delay: 0.38s;
  }

  .hero-copy > :nth-child(5),
  .missing > :nth-child(4) {
    animation-delay: 0.46s;
  }

  .hero-copy > :nth-child(6) {
    animation-delay: 0.54s;
  }

  .word {
    transform-origin: left bottom;
    animation: word 0.7s var(--ease-gentle) backwards;
  }

  .word:nth-child(1) {
    animation-delay: 0.06s;
  }

  .word:nth-child(2) {
    animation-delay: 0.12s;
  }

  .word:nth-child(3) {
    animation-delay: 0.18s;
  }

  .word:nth-child(4) {
    animation-delay: 0.24s;
  }

  .word:nth-child(5) {
    animation-delay: 0.3s;
  }

  .word:nth-child(6) {
    animation-delay: 0.36s;
  }

  .hero-phone {
    animation: arrive 0.9s var(--ease-gentle) 0.15s backwards;
  }

  .tour-bar {
    animation: rise 0.6s var(--ease-gentle) 0.7s backwards;
  }

  .card,
  .promise {
    transition: transform 0.4s var(--ease-gentle);
  }

  @media (hover: hover) {
    .community-card:hover,
    .promise:hover,
    .help-card:hover {
      transform: translate3d(0, -5px, 0);
    }

    .tile {
      transition: transform 0.44s var(--ease-press);
    }

    .card:hover .tile,
    .promise:hover .tile {
      transform: scale(1.08) rotate(-4deg);
    }
  }

  /*
   * Sections ease in as they scroll into view. The "js" class is only present
   * while the page's script is running, so without it nothing is ever hidden.
   */
  .js [data-reveal] {
    opacity: 0;
    transform: translate3d(0, 30px, 0);
    transition:
      opacity 0.7s var(--ease-gentle),
      transform 0.9s var(--ease-gentle);
    transition-delay: calc(var(--i, 0) * 90ms);
  }

  .js [data-reveal='scale'] {
    transform: translate3d(0, 24px, 0) scale(0.95);
  }

  .js [data-reveal].is-in {
    opacity: 1;
    transform: none;
  }

  .js [data-reveal]:not(.is-in) .eyebrow::before {
    transform: scaleX(0);
  }

  /* Ticks arrive one by one after their paragraph. */
  .js [data-reveal] .ticks li {
    transition:
      opacity 0.5s var(--ease-gentle),
      transform 0.6s var(--ease-press);
  }

  .js [data-reveal]:not(.is-in) .ticks li {
    opacity: 0;
    transform: translate3d(-12px, 0, 0);
  }

  .js [data-reveal] .ticks li:nth-child(1) {
    transition-delay: 0.3s;
  }

  .js [data-reveal] .ticks li:nth-child(2) {
    transition-delay: 0.4s;
  }

  .js [data-reveal] .ticks li:nth-child(3) {
    transition-delay: 0.5s;
  }

  /* Icons that draw themselves: each line is drawn in when its card appears. */
  .js .icon-draw .line {
    stroke-dasharray: 1;
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 1.1s var(--ease-gentle) calc(0.25s + var(--i, 0) * 90ms);
  }

  .js [data-reveal]:not(.is-in) .icon-draw .line {
    stroke-dashoffset: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media print {
  .site-header,
  .site-footer,
  .pills,
  .doc-aside {
    display: none;
  }
}
