/* Minimal layout; warm accents come from QuestPalette in iOS/Shared/QuestStyle.swift. */
:root {
  --bg: #fbf9f6;
  --band: #f6f0e7;
  --surface: #ffffff;
  --text: #1d1a17;
  --muted: #74675e;
  --line: rgba(44, 37, 32, 0.1);
  --accent: #964d30;
  --pill: #995033;
  --pill-text: #fff8ef;
  --bubble: #efe9e1;
  --tint: rgba(201, 120, 84, 0.12);
  --nav: rgba(251, 249, 246, 0.72);
  --phone: #1d1a17;
  --screen: #ffffff;
  --screen-bar: rgba(247, 245, 242, 0.94);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

/* Dark tokens apply when the system prefers dark (unless the visitor chose light) or when they chose dark. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #121010;
    --band: #1b1714;
    --surface: #27211d;
    --text: #f3e9dd;
    --muted: #b9aa9d;
    --line: rgba(243, 233, 221, 0.12);
    --accent: #e9b87e;
    --pill: #d98a64;
    --pill-text: #2c2520;
    --bubble: #2c2521;
    --tint: rgba(217, 138, 100, 0.16);
    --nav: rgba(18, 16, 16, 0.72);
    --phone: #000000;
    --screen: #000000;
    --screen-bar: rgba(22, 20, 19, 0.94);
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #121010;
  --band: #1b1714;
  --surface: #27211d;
  --text: #f3e9dd;
  --muted: #b9aa9d;
  --line: rgba(243, 233, 221, 0.12);
  --accent: #e9b87e;
  --pill: #d98a64;
  --pill-text: #2c2520;
  --bubble: #2c2521;
  --tint: rgba(217, 138, 100, 0.16);
  --nav: rgba(18, 16, 16, 0.72);
  --phone: #000000;
  --screen: #000000;
  --screen-bar: rgba(22, 20, 19, 0.94);
}

:root[data-theme="light"] { color-scheme: light; }

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 48px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.022em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; }

a:hover { text-decoration: underline; }

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

.container {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding: 0 22px;
}

/* Nav: thin translucent bar */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--nav);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 980px;
  height: 48px;
  margin: 0 auto;
  padding: 0 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
}

.brand:hover { text-decoration: none; }

.nav nav { display: flex; gap: 24px; }

.nav nav a {
  color: var(--text);
  opacity: 0.8;
  font-size: 12px;
  white-space: nowrap;
}

.nav nav a:hover { opacity: 1; text-decoration: none; }

.nav-right { display: flex; align-items: center; gap: 20px; }

.theme-toggle {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-right: -6px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--text);
  opacity: 0.8;
  cursor: pointer;
}

.theme-toggle:hover { opacity: 1; background: var(--tint); }

.theme-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Show the moon in light mode (switch to dark) and the sun in dark mode. */
.theme-toggle .sun { display: none; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .moon { display: none; }
}

:root[data-theme="dark"] .theme-toggle .sun { display: block; }
:root[data-theme="dark"] .theme-toggle .moon { display: none; }

/* Hero */
.hero {
  padding: 88px 0 72px;
  text-align: center;
  overflow: hidden;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 19px;
  font-weight: 600;
}

h1 {
  margin: 0;
  font-size: clamp(44px, 9vw, 88px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.lede {
  margin: 20px auto 0;
  max-width: 34rem;
  color: var(--muted);
  font-size: clamp(19px, 2.4vw, 24px);
  line-height: 1.33;
  letter-spacing: -0.01em;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 16px 32px;
  margin-top: 32px;
}

.pill {
  display: inline-block;
  padding: 11px 22px;
  border-radius: 980px;
  background: var(--pill);
  color: var(--pill-text);
  font-size: 17px;
}

.pill:hover { text-decoration: none; filter: brightness(1.08); }

.more { font-size: 17px; }

.more::after { content: " ›"; }

/* Phone: an iPhone-style mockup (titanium band, Dynamic Island, iMessage thread) */
.phone {
  position: relative;
  width: min(330px, calc(100% - 44px));
  aspect-ratio: 71.5 / 147;
  margin: 72px auto 0;
  padding: 10px;
  border-radius: 58px;
  background: #0a0a0b;
  box-shadow:
    0 0 0 1px #3d3a37,
    0 0 0 3.5px #b8b2aa,
    0 0 0 4.5px #7b766f,
    inset 0 0 0 1px rgba(255, 255, 255, 0.06),
    0 50px 90px -20px rgba(29, 26, 23, 0.35),
    0 30px 60px -30px rgba(29, 26, 23, 0.3);
}

/* Titanium side buttons */
.phone .btn {
  position: absolute;
  width: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, #8a857e, #c9c3bb 60%, #8a857e);
}

.phone .btn.action { left: -8px; top: 17%; height: 5%; }
.phone .btn.vol-up { left: -8px; top: 25%; height: 9%; }
.phone .btn.vol-down { left: -8px; top: 36%; height: 9%; }
.phone .btn.power { right: -8px; top: 28%; height: 14%; }

.phone-screen {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border-radius: 48px;
  background: var(--screen);
  text-align: left;
}

.island {
  position: absolute;
  top: 11px;
  left: 50%;
  z-index: 2;
  width: 31%;
  height: 29px;
  border-radius: 20px;
  background: #000;
  transform: translateX(-50%);
}

.status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 50px;
  padding: 4px 26px 0 34px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.status-icons { display: flex; align-items: center; gap: 5px; }

.status-icons svg { display: block; }

.chat-header {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 2px 0 9px;
  background: var(--screen-bar);
  border-bottom: 0.5px solid var(--line);
}

.chat-header .back {
  position: absolute;
  top: 8px;
  left: 12px;
  color: var(--accent);
  font-size: 28px;
  font-weight: 300;
  line-height: 1;
}

.avatars { display: flex; }

.avatars span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-left: -8px;
  border: 2px solid var(--screen);
  border-radius: 50%;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
}

.avatars span:first-child { margin-left: 0; background: #c97854; }
.avatars span:nth-child(2) { background: #d79a5b; }
.avatars span:nth-child(3) { background: #8b7d72; }

.group-name { font-size: 11px; letter-spacing: 0; }

.group-name::after { content: " ›"; color: var(--muted); }

.thread {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: flex-end;
  gap: 4px;
  padding: 8px 12px 10px;
}

.stamp {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 10px;
  text-align: center;
  letter-spacing: 0;
}

.bubble {
  max-width: 76%;
  padding: 7px 12px;
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.bubble b { display: block; color: var(--muted); font-size: 10px; font-weight: 500; }

.bubble.them { align-self: flex-start; background: var(--bubble); }

.bubble.them + .bubble.them { margin-top: 2px; }

.bubble.me { align-self: flex-end; margin-top: 6px; background: var(--pill); color: var(--pill-text); }

/* SideQuest message card, laid out like an iMessage app bubble */
.plan-card {
  align-self: flex-end;
  width: 76%;
  margin-top: 6px;
  overflow: hidden;
  border-radius: 18px;
  background: var(--band);
  border: 0.5px solid var(--line);
}

.plan-body { padding: 12px 12px 10px; }

.plan-top { display: flex; justify-content: space-between; align-items: center; }

.plan-emoji { font-size: 22px; }

.plan-match {
  padding: 2px 8px;
  border-radius: 980px;
  background: var(--tint);
  color: var(--accent);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0;
}

.plan-title { margin-top: 6px; font-size: 14px; font-weight: 600; }

.plan-meta { color: var(--muted); font-size: 11px; letter-spacing: 0; }

.votes { display: flex; gap: 5px; margin-top: 9px; }

.votes span {
  flex: 1;
  padding: 5px 0;
  border-radius: 10px;
  background: var(--screen);
  text-align: center;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0;
}

.votes .on { background: var(--pill); color: var(--pill-text); }

.plan-caption {
  padding: 6px 12px 7px;
  background: var(--bubble);
  font-size: 10px;
  letter-spacing: 0;
}

.plan-caption b { font-weight: 600; }

.plan-caption span { color: var(--muted); }

.delivered {
  align-self: flex-end;
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0;
}

.compose {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 0;
}

.compose .plus {
  display: grid;
  place-items: center;
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--bubble);
  color: var(--muted);
  font-size: 20px;
  font-weight: 300;
  line-height: 1;
}

.compose .field {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: space-between;
  height: 32px;
  padding: 0 10px 0 13px;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--muted);
  font-size: 14px;
}

.home-indicator {
  width: 36%;
  height: 5px;
  margin: 14px auto 8px;
  border-radius: 3px;
  background: var(--text);
}

/* Statement */
.statement {
  padding: 120px 0;
  background: var(--bg);
}

.statement-grid {
  display: grid;
  grid-template-columns: 1fr minmax(0, 560px) 1fr;
  align-items: center;
  gap: 48px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 22px;
}

.statement-text {
  margin: 0;
  font-size: clamp(28px, 3.6vw, 44px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-align: center;
}

.statement-text span { color: var(--muted); }

/* The chats that go nowhere: gray bubbles that fade out, ending on "Read". */
.chat-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.chat-col.left { align-items: flex-start; }

.chat-col.right { align-items: flex-end; }

.chat-col li {
  max-width: 250px;
  padding: 8px 14px 9px;
  border-radius: 19px;
  background: var(--bubble);
  font-size: 15px;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.chat-col li b {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
}

.chat-col.left li:nth-child(2) { margin-left: 36px; }
.chat-col.left li:nth-child(3) { margin-left: 12px; }
.chat-col.left li:nth-child(4) { margin-left: 52px; }
.chat-col.right li:nth-child(1) { margin-right: 28px; }
.chat-col.right li:nth-child(3) { margin-right: 44px; }
.chat-col.right li:nth-child(4) { margin-right: 8px; }

.chat-col li:nth-child(2) { opacity: 0.85; }
.chat-col li:nth-child(3) { opacity: 0.68; }
.chat-col li:nth-child(4) { opacity: 0.5; }

.chat-col li.read {
  margin: -8px 8px 0 0;
  padding: 0;
  background: none;
  color: var(--muted);
  font-size: 11px;
  opacity: 0.6;
}

@media (max-width: 960px) {
  .statement-grid { grid-template-columns: 1fr; gap: 40px; }
  .chat-col { flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .chat-col.left, .chat-col.right { align-items: center; }
  .chat-col li { margin: 0 !important; }
  .chat-col.left { order: 0; }
  .statement-text { order: 1; }
  .chat-col.right { order: 2; }
  .chat-col li.read { flex-basis: 100%; max-width: none; text-align: center; margin-top: -4px !important; }
  .statement-text { max-width: 640px; margin: 0 auto; }
}

/* How it works */
.band {
  padding: 120px 0;
  background: var(--band);
}

h2 {
  margin: 0;
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 700;
  line-height: 1.07;
  letter-spacing: -0.03em;
  text-align: center;
}

.steps {
  display: grid;
  gap: 48px 40px;
  margin: 72px 0 0;
  padding: 0;
  list-style: none;
}

.step-num {
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
}

.steps h3 {
  margin: 8px 0 6px;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.steps p { margin: 0; color: var(--muted); }

/* Step illustrations. Base styles are the finished state; motion lives in the reduced-motion-aware block below. */
.viz {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  aspect-ratio: 4 / 3;
  margin-bottom: 22px;
  padding: 18px;
  overflow: hidden;
  border-radius: 24px;
  background: var(--surface);
  box-shadow: 0 1px 0 var(--line), 0 12px 30px -18px rgba(29, 26, 23, 0.25);
  font-size: 12px;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.v-badge {
  align-self: center;
  margin-top: 14px;
  padding: 5px 12px;
  border-radius: 980px;
  background: var(--tint);
  color: var(--accent);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0;
}

/* 1. Start: app drawer tap sends an invite card into the thread */
.viz-start { justify-content: space-between; padding-bottom: 12px; }

.v-thread { display: flex; flex-direction: column; gap: 8px; }

.v-bubble {
  align-self: flex-start;
  max-width: 80%;
  padding: 7px 11px;
  border-radius: 16px;
  background: var(--bubble);
}

.v-invite {
  display: flex;
  align-items: center;
  align-self: flex-end;
  gap: 9px;
  width: 72%;
  padding: 9px 11px;
  border-radius: 16px;
  background: var(--band);
  border: 0.5px solid var(--line);
}

.v-spark {
  display: grid;
  place-items: center;
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: var(--pill);
  color: var(--pill-text);
}

.v-invite-text { display: flex; flex-direction: column; }

.v-invite-text b { font-size: 12px; }

.v-invite-text span { color: var(--muted); font-size: 10px; letter-spacing: 0; }

.v-drawer {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding-top: 12px;
  border-top: 0.5px solid var(--line);
}

.v-app {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--bubble);
}

.v-app.v-sq { background: var(--pill); color: var(--pill-text); }

/* 2. Scan: a chat screenshot with a sweeping scan line */
.v-shot {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 7px;
  width: 64%;
  margin: 0 auto;
  padding: 12px;
  overflow: hidden;
  border-radius: 14px;
  background: var(--band);
  border: 0.5px solid var(--line);
}

.v-shot i {
  display: block;
  width: var(--w);
  height: 11px;
  border-radius: 6px;
  background: var(--tint);
}

.v-shot i.r { align-self: flex-end; background: color-mix(in srgb, var(--pill) 45%, transparent); }

.v-scanline {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 2px;
  background: var(--pill);
  box-shadow: 0 0 12px 2px color-mix(in srgb, var(--pill) 55%, transparent);
  opacity: 0;
}

/* 3. Done: avatars get checkmarks as the progress bar fills */
.v-people {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.v-people li { position: relative; }

.v-av {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--c);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

.v-tick {
  position: absolute;
  right: -3px;
  bottom: -3px;
  display: grid;
  place-items: center;
  width: 17px;
  height: 17px;
  border: 2px solid var(--surface);
  border-radius: 50%;
  background: #526b42;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
}

.v-progress {
  width: 70%;
  height: 6px;
  margin: 18px auto 0;
  overflow: hidden;
  border-radius: 3px;
  background: var(--bubble);
}

.v-progress span { display: block; width: 100%; height: 100%; border-radius: 3px; background: var(--pill); }

/* 4. Plans: three plan cards fan out */
.viz-plans { align-items: center; }

.v-card {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 33%;
  padding: 12px 11px;
  border-radius: 16px;
  background: var(--band);
  border: 0.5px solid var(--line);
  box-shadow: 0 10px 24px -14px rgba(29, 26, 23, 0.4);
}

.v-card span { font-size: 22px; line-height: 1.2; }

.v-card b { font-size: 12px; }

.v-card em { color: var(--muted); font-size: 10px; font-style: normal; letter-spacing: 0; }

.v-card.c1 { transform: translate(-122%, -44%) rotate(-7deg); }
.v-card.c2 { transform: translate(-50%, -54%); background: var(--surface); border-color: var(--pill); }
.v-card.c3 { transform: translate(22%, -44%) rotate(7deg); align-items: flex-end; text-align: right; }

/* 5. Vote: bars grow and the winner is crowned */
.viz-vote { gap: 10px; }

.v-row {
  display: grid;
  grid-template-columns: 74px 1fr 14px 18px;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 12px;
}

.v-row.win { background: var(--tint); }

.v-label { font-size: 11px; font-weight: 600; white-space: nowrap; }

.v-bar { height: 8px; overflow: hidden; border-radius: 4px; background: var(--bubble); }

.v-bar span { display: block; width: var(--w); height: 100%; border-radius: 4px; background: var(--pill); }

.v-row:not(.win) .v-bar span { background: color-mix(in srgb, var(--pill) 45%, transparent); }

.v-count { color: var(--muted); font-size: 11px; font-weight: 600; text-align: right; }

.v-crown { font-size: 13px; }

.v-chips { display: flex; justify-content: center; gap: 6px; margin-top: 4px; }

.v-chips span {
  padding: 4px 10px;
  border-radius: 980px;
  background: var(--bubble);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0;
}

.v-chips .on { background: var(--pill); color: var(--pill-text); }

/* 6. Calendar: the event drops into Thursday evening */
.v-cal {
  width: 76%;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 14px;
  background: var(--band);
  border: 0.5px solid var(--line);
}

.v-cal-head {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 8px 12px 6px;
  border-bottom: 0.5px solid var(--line);
}

.v-cal-head span { color: var(--accent); font-size: 10px; font-weight: 600; letter-spacing: 0; }

.v-cal-head b { font-size: 16px; }

.v-hours { position: relative; padding: 2px 0; }

.v-hours > span {
  display: block;
  height: 24px;
  padding-left: 10px;
  border-top: 0.5px solid var(--line);
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0;
  line-height: 18px;
}

.v-hours > span:first-child { border-top: 0; }

.v-event {
  position: absolute;
  top: 28px;
  left: 44px;
  right: 8px;
  height: 46px;
  padding: 5px 8px;
  border-left: 3px solid var(--pill);
  border-radius: 6px;
  background: color-mix(in srgb, var(--pill) 22%, var(--surface));
}

.v-event b { display: block; font-size: 11px; }

.v-event span { color: var(--muted); font-size: 10px; letter-spacing: 0; }

/* Demo */
.demo { padding: 120px 0; }

.section-sub {
  margin: 12px auto 0;
  color: var(--muted);
  font-size: clamp(19px, 2.4vw, 21px);
  text-align: center;
}

.video {
  position: relative;
  aspect-ratio: 16 / 9;
  margin-top: 56px;
  border-radius: 28px;
  background: var(--band);
  overflow: hidden;
}

.video video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
  background: var(--band);
}

.muted { color: var(--muted); }

/* Footer */
.footer {
  padding: 20px 0 32px;
  background: var(--band);
  color: var(--muted);
  font-size: 12px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.footer p { margin: 0; }

/* Responsive */
@media (min-width: 640px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 640px) {
  .hero { padding-top: 56px; }
  .phone { margin-top: 56px; }
  .statement { padding: 88px 0; }
  .band, .demo { padding: 88px 0; }
  .steps { margin-top: 48px; gap: 36px; }
  .video { border-radius: 20px; }
}

/* Apple-style motion (only when JS runs and motion is welcome).
   Scroll reveals: long, soft fade-up; items entering together are staggered via --delay (set in JS). */
@media (prefers-reduced-motion: no-preference) {
  :root { --ease-out: cubic-bezier(0.16, 1, 0.3, 1); }

  .js .reveal {
    opacity: 0;
    transform: translateY(44px);
    transition: opacity 1s ease, transform 1.3s var(--ease-out);
    transition-delay: var(--delay, 0s);
  }
  .js .reveal.in { opacity: 1; transform: none; }

  /* Hero intro plays on load, one element after another (CSS only, so it never stays hidden). */
  .hero .eyebrow, .hero h1, .hero .lede, .hero .actions, .phone {
    animation: rise 1.2s var(--ease-out) both;
  }
  .hero .eyebrow { animation-delay: 0.05s; }
  .hero h1 { animation-delay: 0.15s; }
  .hero .lede { animation-delay: 0.3s; }
  .hero .actions { animation-delay: 0.42s; }
  .phone { animation: rise-phone 1.4s var(--ease-out) 0.55s both; }
  @keyframes rise { from { opacity: 0; transform: translateY(28px); } }
  @keyframes rise-phone { from { opacity: 0; transform: translateY(60px) scale(0.96); } }

  /* Chat bubbles pop in one by one, keeping their fade-out opacities. */
  .js .reveal-group li {
    opacity: 0;
    transform: translateY(18px) scale(0.96);
    transition: opacity 0.7s ease, transform 0.9s var(--ease-out);
  }
  .js .reveal-group.in li { transform: none; }
  .chat-col.left { --group-delay: 0.25s; }
  .chat-col.right { --group-delay: 0.5s; }
  .js .reveal-group.in li:nth-child(1) { opacity: 1; transition-delay: var(--group-delay); }
  .js .reveal-group.in li:nth-child(2) { opacity: 0.85; transition-delay: calc(var(--group-delay) + 0.12s); }
  .js .reveal-group.in li:nth-child(3) { opacity: 0.68; transition-delay: calc(var(--group-delay) + 0.24s); }
  .js .reveal-group.in li:nth-child(4) { opacity: 0.5; transition-delay: calc(var(--group-delay) + 0.36s); }
  .js .reveal-group.in li:nth-child(5) { opacity: 0.6; transition-delay: calc(var(--group-delay) + 0.5s); }
}

/* Step illustrations: each plays a 7s loop once its step has scrolled in (.in). Keyframes end/hold on
   the finished state defined in the base styles, which is also what reduced-motion visitors see. */
@media (prefers-reduced-motion: no-preference) {
  .steps > li.in .v-bubble { animation: v-fade 7s ease infinite both; }
  .steps > li.in .v-sq { animation: v-tap 7s ease infinite; }
  .steps > li.in .v-invite { animation: v-slide-in 7s var(--ease-out) infinite both; }

  .steps > li.in .v-scanline { animation: v-scan 7s linear infinite; }
  .steps > li.in .v-shot i { animation: v-hl 7s ease infinite both; }
  .steps > li.in .v-shot i:nth-child(1) { animation-delay: 0.3s; }
  .steps > li.in .v-shot i:nth-child(2) { animation-delay: 0.9s; }
  .steps > li.in .v-shot i:nth-child(3) { animation-delay: 1.5s; }
  .steps > li.in .v-shot i:nth-child(4) { animation-delay: 2.1s; }
  .steps > li.in .v-shot i:nth-child(5) { animation-delay: 2.7s; }
  .steps > li.in .v-shot i:nth-child(6) { animation-delay: 3.3s; }
  .steps > li.in .viz-scan .v-badge { animation: v-pop 7s var(--ease-out) infinite both; }

  .steps > li.in .v-tick { animation: v-tick-pop 7s var(--ease-out) infinite both; }
  .steps > li.in .v-people li:nth-child(1) .v-tick { animation-delay: 0.4s; }
  .steps > li.in .v-people li:nth-child(2) .v-tick { animation-delay: 0.85s; }
  .steps > li.in .v-people li:nth-child(3) .v-tick { animation-delay: 1.3s; }
  .steps > li.in .v-people li:nth-child(4) .v-tick { animation-delay: 1.75s; }
  .steps > li.in .v-people li:nth-child(5) .v-tick { animation-delay: 2.2s; }
  .steps > li.in .v-progress span { animation: v-fill 7s ease infinite both; }
  .steps > li.in .viz-done .v-badge { animation: v-pop 7s var(--ease-out) -0.7s infinite both; }

  .steps > li.in .v-card.c2 { animation: v-fan2 7s var(--ease-out) infinite both; }
  .steps > li.in .v-card.c1 { animation: v-fan1 7s var(--ease-out) infinite both; }
  .steps > li.in .v-card.c3 { animation: v-fan3 7s var(--ease-out) infinite both; }

  .steps > li.in .v-chips .on { animation: v-tap 7s ease infinite; }
  .steps > li.in .v-bar span { animation: v-grow 7s var(--ease-out) infinite both; }
  .steps > li.in .v-count { animation: v-count 7s ease infinite both; }
  .steps > li.in .v-row.win { animation: v-win 7s ease infinite both; }
  .steps > li.in .v-crown { animation: v-pop 7s var(--ease-out) -0.5s infinite both; }

  .steps > li.in .v-event { animation: v-drop 7s var(--ease-out) infinite both; }
  .steps > li.in .viz-cal .v-badge { animation: v-pop 7s var(--ease-out) -0.7s infinite both; }

  @keyframes v-fade { 0% { opacity: 0; transform: translateY(8px); } 8%, 90% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; } }
  @keyframes v-tap {
    0%, 8% { transform: scale(1); box-shadow: 0 0 0 0 transparent; }
    12% { transform: scale(0.84); }
    18% { transform: scale(1); box-shadow: 0 0 0 7px var(--tint); }
    26%, 100% { transform: scale(1); box-shadow: 0 0 0 0 transparent; }
  }
  @keyframes v-slide-in {
    0%, 16% { opacity: 0; transform: translateY(70px) scale(0.9); }
    32%, 88% { opacity: 1; transform: none; }
    96%, 100% { opacity: 0; transform: none; }
  }
  @keyframes v-scan {
    0% { top: 0; opacity: 0; }
    4% { opacity: 1; }
    52% { top: 100%; opacity: 1; }
    56%, 100% { top: 100%; opacity: 0; }
  }
  @keyframes v-hl { 0% { opacity: 0.3; } 5%, 78% { opacity: 1; } 90%, 100% { opacity: 0.3; } }
  @keyframes v-pop {
    0%, 55% { opacity: 0; transform: scale(0.8); }
    62% { opacity: 1; transform: scale(1.05); }
    66%, 88% { opacity: 1; transform: scale(1); }
    96%, 100% { opacity: 0; transform: scale(1); }
  }
  @keyframes v-tick-pop {
    0% { transform: scale(0); }
    5% { transform: scale(1.3); }
    8%, 76% { transform: scale(1); }
    84%, 100% { transform: scale(0); }
  }
  @keyframes v-fill { 0%, 5% { width: 0; } 40%, 86% { width: 100%; } 94%, 100% { width: 0; } }
  @keyframes v-fan2 {
    0%, 4% { opacity: 0; transform: translate(-50%, -20%) scale(0.9); }
    22%, 88% { opacity: 1; transform: translate(-50%, -54%); }
    96%, 100% { opacity: 0; transform: translate(-50%, -54%); }
  }
  @keyframes v-fan1 {
    0%, 10% { opacity: 0; transform: translate(-50%, -40%) scale(0.9); }
    30%, 88% { opacity: 1; transform: translate(-122%, -44%) rotate(-7deg); }
    96%, 100% { opacity: 0; transform: translate(-122%, -44%) rotate(-7deg); }
  }
  @keyframes v-fan3 {
    0%, 14% { opacity: 0; transform: translate(-50%, -40%) scale(0.9); }
    34%, 88% { opacity: 1; transform: translate(22%, -44%) rotate(7deg); }
    96%, 100% { opacity: 0; transform: translate(22%, -44%) rotate(7deg); }
  }
  @keyframes v-grow { 0%, 14% { width: 0; } 44%, 86% { width: var(--w); } 94%, 100% { width: 0; } }
  @keyframes v-count { 0%, 30% { opacity: 0; } 42%, 86% { opacity: 1; } 94%, 100% { opacity: 0; } }
  @keyframes v-win { 0%, 44% { background: transparent; } 52%, 86% { background: var(--tint); } 94%, 100% { background: transparent; } }
  @keyframes v-drop {
    0%, 10% { opacity: 0; transform: translateY(-46px); }
    28%, 88% { opacity: 1; transform: none; }
    96%, 100% { opacity: 0; transform: none; }
  }
}

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