/* ─────────────────────────────────────────────────────────────────────────────
 *  RentHome · coming-soon page (www.withrenthome.com)
 *
 *  A single static page, so it carries its own copy of the tokens rather than
 *  the app's Tailwind build. The values are Theme 5's, hex for hex, from
 *  apps/web/src/app/globals.css — that file stays the source of truth; if the
 *  public palette changes there, change it here too.
 *
 *  The tokens below are dark; `data-public-light` on <html> turns it light.
 *  Every page ships with it, so light is the default (owner, 2026-10-29); the
 *  header's switch takes it off, remembered in a cookie.
 * ───────────────────────────────────────────────────────────────────────────── */

@font-face {
  font-family: "Manrope";
  src: url("assets/fonts/manrope-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

@font-face {
  font-family: "Figtree";
  src: url("assets/fonts/figtree-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 900;
  font-display: swap;
}

/* The five scripts (REQ-036). Each language's stack below names only its own, and
   a browser fetches a font only when a character needs it, so a visitor downloads
   one. No unicode-range: these files' ranges overlap (the danda, the joiners), and
   the last one declared would be fetched for a character they share. */
@font-face {
  font-family: "Noto Sans Kannada";
  src: url("assets/fonts/noto-sans-kannada-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Noto Sans Devanagari";
  src: url("assets/fonts/noto-sans-devanagari-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Noto Sans Telugu";
  src: url("assets/fonts/noto-sans-telugu-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Noto Sans Tamil";
  src: url("assets/fonts/noto-sans-tamil-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Noto Sans Malayalam";
  src: url("assets/fonts/noto-sans-malayalam-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: dark;

  --primary: #4b95ff;
  --primary-hover: #69a8ff;
  --primary-active: #3a82ec;
  --primary-soft: rgb(75 149 255 / 0.15);
  --primary-text: #8cbcff;
  --on-primary: #03142e;

  --accent: #18c98b;
  --accent-soft: rgb(24 201 139 / 0.13);
  --accent-text: #7febc3;
  --coin: #ffc94d;
  --coin-soft: rgb(255 201 77 / 0.14);
  --coin-text: #ffd97a;

  /* What sits behind a screenshot, in its frame. */
  --frame: #040c18;
  --ground: #06111f;
  --surface: #0c1a2d;
  --surface-2: #12243b;
  --line: #1d3250;
  --line-strong: #2b4566;

  --ink: #f2f8ff;
  --ink-2: #b0c2da;
  --ink-3: #8093ae;
  --focus: #69a8ff;

  --ok-ink: #86e3ae;
  --ok-soft: rgb(60 203 127 / 0.13);
  --ok-line: rgb(60 203 127 / 0.38);
  --err-ink: #ffa39a;
  --err-soft: rgb(255 107 94 / 0.13);
  --err-line: rgb(255 107 94 / 0.4);

  --gradient-brand: linear-gradient(135deg, #0b3a8c, #0d6b55);
  --gradient-brand-text: linear-gradient(135deg, var(--primary), var(--accent));

  --font-display: "Manrope", "Noto Sans", system-ui, sans-serif;
  --font-body: "Figtree", "Noto Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius-md: 12px;
  --radius-xl: 20px;
  --radius-2xl: 28px;

  --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.4);
  --shadow-md: 0 8px 22px rgb(0 0 0 / 0.42), 0 2px 4px rgb(0 0 0 / 0.3);
  --shadow-lg: 0 22px 56px rgb(0 0 0 / 0.6), 0 4px 12px rgb(0 0 0 / 0.4);
}

/* ── Light — Theme 5 as drawn. Colour only; nothing else changes. ──────────── */
html[data-public-light] {
  color-scheme: light;

  --primary: #006dff;
  --primary-hover: #005de0;
  --primary-active: #004dba;
  --primary-soft: #eaf3ff;
  --primary-text: #0058d1;
  --on-primary: #ffffff;

  --accent: #18c98b;
  --accent-soft: #e2f8ef;
  --accent-text: #0a7a54;
  --coin: #e0a000;
  --coin-soft: #fff4d6;
  --coin-text: #8a5a00;

  --frame: #ffffff;
  --ground: #f2f8ff;
  --surface: #ffffff;
  --surface-2: #f7fbff;
  --line: #dce8f5;
  --line-strong: #bcd0e8;

  --ink: #061b3a;
  --ink-2: #33496a;
  --ink-3: #5d6f8b;
  --focus: #006dff;

  --ok-ink: #146c3b;
  --ok-soft: #e7f6ec;
  --ok-line: #b7e4c7;
  --err-ink: #a51c12;
  --err-soft: #fdecea;
  --err-line: #f5c2bd;

  /* Under white type, and as type on the pale ground: the theme's blue into
     its green, each end deepened until the text on it — or made of it — holds
     AA (5.3:1 and up under white; 4.2:1 and up as the headline). */
  --gradient-brand: linear-gradient(135deg, #0050c8, #0a7a54);
  --gradient-brand-text: linear-gradient(135deg, #006dff, #0a7a54);

  --shadow-sm: 0 1px 3px rgb(0 60 140 / 0.07);
  --shadow-md: 0 10px 28px rgb(0 60 140 / 0.1), 0 2px 6px rgb(0 60 140 / 0.05);
  --shadow-lg: 0 24px 60px rgb(6 27 58 / 0.22), 0 4px 12px rgb(6 27 58 / 0.08);
}

/* ── The two cuts ────────────────────────────────────────────────────────────
   The logo, the switch's icon and every screenshot are in the page twice, once
   per mode, and these rules show one. A hidden `loading="lazy"` image is never
   fetched, so a visitor downloads only the cut they are looking at. */
.cut-light,
html[data-public-light] .cut-dark {
  display: none;
}

html[data-public-light] .cut-light {
  display: block;
}

/* ── The five languages (REQ-036) ───────────────────────────────────────────
   Latin stays in the site's own fonts; every other character falls through to
   the language's. These scripts stack marks above and below the line, so the
   tight headline settings would clip them, and their letters join, so tracking
   would pull them apart. `html` only: the menu's entries use the device's fonts,
   so no visitor downloads a script they are only offered. */
html:lang(kn) {
  --font-display: "Manrope", "Noto Sans Kannada", system-ui, sans-serif;
  --font-body: "Figtree", "Noto Sans Kannada", system-ui, sans-serif;
}

html:lang(hi) {
  --font-display: "Manrope", "Noto Sans Devanagari", system-ui, sans-serif;
  --font-body: "Figtree", "Noto Sans Devanagari", system-ui, sans-serif;
}

html:lang(te) {
  --font-display: "Manrope", "Noto Sans Telugu", system-ui, sans-serif;
  --font-body: "Figtree", "Noto Sans Telugu", system-ui, sans-serif;
}

html:lang(ta) {
  --font-display: "Manrope", "Noto Sans Tamil", system-ui, sans-serif;
  --font-body: "Figtree", "Noto Sans Tamil", system-ui, sans-serif;
}

html:lang(ml) {
  --font-display: "Manrope", "Noto Sans Malayalam", system-ui, sans-serif;
  --font-body: "Figtree", "Noto Sans Malayalam", system-ui, sans-serif;
}

html:is(:lang(kn), :lang(hi), :lang(te), :lang(ta), :lang(ml)) {
  overflow-wrap: break-word;

  body {
    line-height: 1.75;
  }

  .display-1,
  .display-2,
  h3 {
    line-height: 1.3;
    letter-spacing: 0;
  }

  .display-1 {
    font-size: clamp(2.125rem, 4.6vw, 3.5rem);
  }

  .eyebrow {
    font-size: 13px;
    letter-spacing: 0;
    text-transform: none;
  }

  .gradient-text {
    /* Room for the marks: the gradient is clipped to this box. */
    padding-block: 0.15em;
  }

  /* A long word may not widen the column it is in: it wraps instead. */
  .hero-copy {
    grid-template-columns: minmax(0, 1fr);
  }

  h1,
  h2,
  h3 {
    overflow-wrap: anywhere;
  }

  /* Longer than the English, so it may wrap, and its dot stays with the first line. */
  .hero-copy .badge {
    align-items: baseline;
    border-radius: var(--radius-md);
  }

  @media (max-width: 480px) {
    .display-1 {
      font-size: 1.875rem;
    }

    .display-2 {
      font-size: 1.625rem;
    }
  }
}

/* On a phone the header holds the logo, the menu and one thing more. The menu
   stays: the guides are also on the page and in the footer. */
@media (max-width: 480px) {
  .header-link {
    display: none;
  }

  .site-header .wrap {
    gap: 0.5rem;
  }

  .site-header .header-end {
    gap: 0.25rem;
  }

  .site-header .header-button {
    height: 2.5rem;
    padding-inline: 0.625rem;
    font-size: 13px;
  }

  /* A guide's header also has its button, so the logo gives up its name. */
  html .site-header .wrap:has(.header-button) .brand img[src*="wordmark"] {
    display: none;
  }
}

.brand {
  flex-shrink: 0;
}

/* ── The language menu ─────────────────────────────────────────────────────── */
.lang-menu {
  position: relative;
}

.lang-menu summary {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 2.5rem;
  border-radius: var(--radius-md);
  padding: 0 0.5rem;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-2);
  cursor: pointer;
  list-style: none;
}

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

.lang-menu summary:hover {
  background: var(--surface-2);
  color: var(--ink);
}

.lang-menu ul {
  position: absolute;
  z-index: 20;
  top: calc(100% + 0.25rem);
  right: 0;
  min-width: 9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-md);
  padding: 0.35rem;
}

.lang-menu a {
  display: block;
  border-radius: 8px;
  padding: 0.45rem 0.65rem;
  font-size: 15px;
  color: var(--ink);
  text-decoration: none;
}

.lang-menu a:hover {
  background: var(--surface-2);
}

.lang-menu a[aria-current] {
  background: var(--primary-soft);
  color: var(--primary-text);
  font-weight: 700;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

ol,
ul {
  list-style: none;
}

fieldset {
  border: 0;
  min-width: 0;
}

img,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--primary-text);
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

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

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

.wrap {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.money {
  font-variant-numeric: tabular-nums;
}

/* ── Type roles — the app's `display-1`, `display-2` and `eyebrow`. ────────── */
.display-1 {
  font-weight: 800;
  font-size: clamp(2.5rem, 5.4vw, 4rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.display-2 {
  font-weight: 800;
  font-size: clamp(1.875rem, 4vw, 2.875rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary-text);
}

.gradient-text {
  background-image: var(--gradient-brand-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ── Header ────────────────────────────────────────────────────────────────── */
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 4.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.header-end {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.mode-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  border-radius: var(--radius-md);
  background: none;
  color: var(--ink-2);
  cursor: pointer;
}

.mode-toggle:hover {
  background: var(--surface-2);
  color: var(--ink);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: 999px;
  background: var(--primary-soft);
  padding: 0.3rem 0.75rem;
  font-size: 12px;
  font-weight: 700;
  color: var(--primary-text);
}

.badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

/* ── Hero ──────────────────────────────────────────────────────────────────── */
.hero {
  background-image:
    radial-gradient(900px 480px at 85% 0%, var(--accent-soft), transparent 60%),
    radial-gradient(900px 520px at 0% 10%, var(--primary-soft), transparent 60%);
}

.hero-copy {
  display: grid;
  justify-items: center;
  gap: 1.25rem;
  max-width: 46rem;
  margin: 0 auto;
  padding: 3rem 0 2.5rem;
  text-align: center;
}

.lede {
  max-width: 60ch;
  font-size: 1.125rem;
  color: var(--ink-2);
}

/* ── The waitlist form ─────────────────────────────────────────────────────── */
.waitlist {
  display: grid;
  gap: 0.75rem;
  width: 100%;
  max-width: 34rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  padding: 1rem;
  text-align: left;
  box-shadow: var(--shadow-md);
}

.segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-2);
  padding: 3px;
}

.segmented label {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  padding: 0.5rem 0.75rem;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
  cursor: pointer;
}

.segmented label:has(:checked) {
  background: var(--frame);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.segmented label:has(:focus-visible) {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.waitlist-row {
  display: flex;
  gap: 0.5rem;
}

.waitlist .field {
  flex: 1;
  min-width: 0;
  height: 3rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  background: var(--ground);
  padding: 0 0.9rem;
  font: inherit;
  color: var(--ink);
}

.waitlist .field::placeholder {
  color: var(--ink-3);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 3rem;
  border: 0;
  border-radius: var(--radius-md);
  background: var(--primary);
  padding: 0 1.25rem;
  font: inherit;
  font-weight: 700;
  color: var(--on-primary);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.button:hover {
  background: var(--primary-hover);
}

.button:active {
  background: var(--primary-active);
}

.button[aria-disabled="true"] {
  opacity: 0.6;
  cursor: progress;
}

.waitlist [aria-invalid="true"] {
  border-color: var(--err-ink);
}

.waitlist-note {
  font-size: 13px;
  color: var(--ink-3);
}

.waitlist-status {
  border-radius: var(--radius-md);
  padding: 0.6rem 0.8rem;
  font-size: 14px;
  font-weight: 600;
}

.waitlist-status:empty {
  display: none;
}

.waitlist-status[data-kind="ok"] {
  border: 1px solid var(--ok-line);
  background: var(--ok-soft);
  color: var(--ok-ink);
}

.waitlist-status[data-kind="err"] {
  border: 1px solid var(--err-line);
  background: var(--err-soft);
  color: var(--err-ink);
}

/* ── The hero: the sign-up beside the RentHome video (REQ-029) ────────────── */
.hero-split {
  display: grid;
  grid-template-columns: minmax(0, 36rem) 300px;
  justify-content: center;
  align-items: center;
  gap: 4rem;
  padding-block: 2.5rem 3.5rem;
}

.hero-split .hero-copy {
  justify-items: start;
  margin: 0;
  padding: 0;
  text-align: left;
}


/* ── Frames for the app's screens and the videos ──────────────────────────── */
.frame {
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-xl);
  background: var(--frame);
  box-shadow: var(--shadow-lg);
}

.phone {
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 34px;
  background: var(--frame);
  padding: 8px;
  box-shadow: var(--shadow-lg);
}

.phone img {
  border-radius: 26px;
}

/* ── The problems, on a loop ───────────────────────────────────────────────── */
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: var(--surface);
  padding: 1rem 0;
}

.marquee-track {
  display: flex;
  gap: 0.75rem;
  width: max-content;
  animation: marquee 30s linear infinite;
}

.marquee-track ul {
  display: flex;
  flex-shrink: 0;
  gap: 0.75rem;
}

.marquee-track li {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  padding: 0.5rem 1rem;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
  white-space: nowrap;
}

/* Anything that moves on its own for more than five seconds has to be
   stoppable: pointing at the strip, or tabbing into it, holds it still. */
.marquee:hover .marquee-track,
.marquee:focus-within .marquee-track {
  animation-play-state: paused;
}

/* Two identical halves with a gap between them: -50% minus half that gap puts
   the seam exactly where the list repeats. */
@keyframes marquee {
  to {
    transform: translateX(calc(-50% - 0.375rem));
  }
}

/* ── Sections ──────────────────────────────────────────────────────────────── */
.section {
  padding: 4.5rem 0;
}

.section-head {
  display: grid;
  justify-items: center;
  gap: 0.6rem;
  max-width: 48rem;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.section-head p {
  color: var(--ink-2);
}

.glimpse {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  align-items: center;
  gap: 3rem;
}

.glimpse + .glimpse {
  margin-top: 4.5rem;
}

.glimpse.flip > .glimpse-copy {
  order: 2;
}

.glimpse.flip,
.glimpse.narrow {
  grid-template-columns: 1.2fr 0.8fr;
}

.glimpse-copy {
  display: grid;
  gap: 0.9rem;
}

.glimpse-copy h3 {
  font-size: 1.625rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.glimpse-copy p {
  color: var(--ink-2);
}

.ticks {
  display: grid;
  gap: 0.5rem;
}

.ticks li {
  display: flex;
  gap: 0.6rem;
  font-size: 15px;
  color: var(--ink);
}

.ticks svg {
  flex-shrink: 0;
  margin-top: 0.2rem;
  color: var(--accent-text);
}

.shot {
  position: relative;
}

.phones {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
}

.phones .phone {
  width: min(46%, 240px);
}

.phones .phone:last-child {
  margin-top: 2.5rem;
}

/* ── Videos and surveys (REQ-029) ──────────────────────────────────────────── */
/* The videos are vertical, so the phone keeps a fixed width and the copy takes the rest. */
.glimpse.video-glimpse {
  grid-template-columns: minmax(0, 30rem) 300px;
  justify-content: center;
  gap: 4rem;
}

.glimpse.flip.video-glimpse {
  grid-template-columns: 300px minmax(0, 30rem);
}

.video-phone {
  width: min(100%, 300px);
  justify-self: center;
}

.video-phone video {
  width: 100%;
  border-radius: 26px;
  background: var(--frame);
}

.glimpse-copy .button {
  justify-self: start;
}

.survey-links {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

/* Survey labels are sentences: let them wrap rather than run off a phone. */
.survey-links .button {
  justify-self: stretch;
  height: auto;
  min-height: 3rem;
  padding: 0.75rem 1.25rem;
  white-space: normal;
  text-align: center;
}

.button-alt {
  background: var(--accent);
  color: #03241a;
}

.button-alt:hover {
  background: var(--accent);
  filter: brightness(1.08);
}

.button-alt:active {
  filter: brightness(0.94);
}

/* The hero opens on the survey card (REQ-029-S05); the sign-up form takes its
   place when asked for, and the card comes back the same way. */
.survey-card {
  display: grid;
  gap: 0.75rem;
  width: 100%;
  max-width: 34rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  padding: 1.25rem;
  text-align: left;
  box-shadow: var(--shadow-md);
}

.survey-card-title {
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--ink);
}

.survey-card p {
  color: var(--ink-2);
}

.survey-card .survey-links {
  margin-top: 0.25rem;
}

.survey-card .survey-card-note {
  font-size: 13px;
  color: var(--ink-3);
}

.survey-card-switch {
  justify-self: start;
  font-size: 14px;
  color: var(--ink-2);
}

/* Under the form it follows the hero: left beside the video, centred on a phone. */
#show-survey {
  justify-self: auto;
}

html[data-waitlist-mode] .survey-card,
html:not([data-waitlist-mode]) #waitlist,
html:not([data-waitlist-mode]) #show-survey {
  display: none;
}

/* ── The survey, answered in a pop-up (REQ-033) ───────────────────────────── */
.survey-card [hidden],
.sv-dialog [hidden] {
  display: none !important;
}

/* A centred card on a laptop; the whole screen on a phone. The page behind does not scroll. */
html:has(.sv-dialog[open]) {
  overflow: hidden;
}

.sv-dialog {
  width: min(36rem, calc(100vw - 2rem));
  max-height: min(46rem, calc(100dvh - 2rem));
  margin: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  padding: 1.25rem;
  color: var(--ink);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.sv-dialog[open] {
  display: flex;
  flex-direction: column;
}

.sv-dialog::backdrop {
  background: rgb(2 8 18 / 0.72);
  backdrop-filter: blur(3px);
}

/* The question scrolls inside the pop-up; progress stays on top and Next stays in reach at the bottom. */
.sv-dialog .sv {
  flex: 1;
  min-height: 0;
  grid-template-rows: auto auto auto 1fr;
}

.sv-step {
  min-height: 0;
  grid-template-rows: 1fr auto;
}

.sv-scroll {
  display: grid;
  gap: 0.75rem;
  align-content: start;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 2px;
}

.sv-close {
  border: 0;
  border-radius: 50%;
  width: 2.25rem;
  height: 2.25rem;
  background: var(--surface-2);
  font: inherit;
  font-size: 15px;
  color: var(--ink-2);
  cursor: pointer;
}

.sv-close:hover {
  color: var(--ink);
}

.sv-top .sv-count {
  flex: 1;
  text-align: center;
}

@media (max-width: 560px) {
  .sv-dialog {
    width: 100vw;
    max-width: none;
    height: 100dvh;
    max-height: none;
    border: 0;
    border-radius: 0;
    padding: 1rem 1rem calc(1rem + env(safe-area-inset-bottom));
  }
}

.sv-intro,
.sv,
.sv-step,
.sv-done {
  display: grid;
  gap: 0.75rem;
}

.sv-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  color: var(--ink-3);
}

.sv-back {
  text-decoration: none;
  color: var(--ink-2);
}

/* REQ-034-S10: on a question there is no Back and no ✕, and they take no room,
   so "Question n of 8" stays on one line on a narrow phone. */
.sv-back.is-away,
.sv-close.is-away {
  display: none;
}

.sv-top {
  gap: 0.5rem;
}

.sv-top .sv-count,
.sv-back,
.sv-coins {
  white-space: nowrap;
}

/* On the narrowest phones the last step has Back, the credits and ✕; "Last
   step" goes from sight (screen readers still hear it) so none of them wraps. */
@media (max-width: 380px) {
  .sv-top:has(.sv-back:not(.is-away)) .sv-count {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }

  .sv-top:has(.sv-back:not(.is-away)) .sv-coins {
    margin-left: auto;
  }
}

.sv-count {
  font-weight: 600;
}

.sv-bar {
  height: 6px;
  border-radius: 999px;
  background: var(--surface-2);
  overflow: hidden;
}

.sv-bar span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: var(--gradient-brand-text);
  transition: width 0.3s ease;
}

.sv-q {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.3;
  color: var(--ink);
  outline: none;
}

.survey-card .sv-hint {
  font-size: 14px;
  color: var(--ink-3);
}

.sv-body {
  display: grid;
  gap: 0.5rem;
}

.sv-options {
  display: grid;
  gap: 0.5rem;
}

/* A whole row to tap, not a small circle. */
.sv-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 3rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  background: var(--ground);
  padding: 0.6rem 0.9rem;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.sv-options .sv-option::before {
  content: "";
  flex: none;
  width: 1.1rem;
  height: 1.1rem;
  border: 2px solid var(--line-strong);
  border-radius: 50%;
}

.sv-options[role="group"] .sv-option::before {
  border-radius: 5px;
}

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

.sv-option:has(:checked) {
  border-color: var(--primary);
  background: var(--primary-soft);
}

.sv-options .sv-option:has(:checked)::before {
  border-color: var(--primary);
  background: var(--primary);
  box-shadow: inset 0 0 0 3px var(--ground);
}

.sv-option:has(:focus-visible) {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.sv-option.is-off {
  opacity: 0.45;
  cursor: not-allowed;
}

.sv-scale {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.5rem;
}

.sv-scale .sv-option {
  justify-content: center;
  padding: 0;
  font-size: 1.1rem;
}

.sv-scale-ends {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 13px;
  color: var(--ink-3);
}

.sv-scale-ends span:last-child {
  text-align: right;
}

/* REQ-038: the door-to-door survey's number, rent and location questions. */
.sv-input-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sv-input-row .field {
  flex: 1;
  min-width: 0;
  font-size: 1.25rem;
}

.sv-input-unit {
  font-weight: 600;
  color: var(--ink-2);
}

.sv-loc-btn {
  width: 100%;
}

.sv-loc-ok {
  margin: 0;
  font-weight: 600;
}

.sv-or {
  margin: 0;
  text-align: center;
  color: var(--ink-3);
}

.sv-body .field {
  height: 3rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  background: var(--ground);
  padding: 0 0.9rem;
  font: inherit;
  color: var(--ink);
}

.sv-body .field::placeholder {
  color: var(--ink-3);
}

.sv-body [aria-invalid="true"] {
  border-color: var(--err-ink);
}

/* REQ-038: pincode suggestions under the pincode box. */
.sv-pin-list {
  display: grid;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  background: var(--ground);
  overflow: hidden;
}

.sv-pin-list[hidden] {
  display: none;
}

.sv-pin-option {
  display: flex;
  gap: 0.6rem;
  align-items: baseline;
  min-height: 2.75rem;
  padding: 0.55rem 0.9rem;
  border: 0;
  border-top: 1px solid var(--line-strong);
  background: none;
  font: inherit;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.sv-pin-option:first-child {
  border-top: 0;
}

.sv-pin-option:hover,
.sv-pin-option:focus-visible {
  background: var(--line-strong);
}

.sv-pin-option span {
  min-width: 0;
  color: var(--ink-3);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sv-pin-place {
  margin: 0;
  font-weight: 600;
}

.sv-pin-place.is-unknown {
  font-weight: 400;
  color: var(--ink-3);
}

.sv-next {
  justify-self: stretch;
}

.sv-done {
  align-content: center;
  justify-items: center;
  min-height: 16rem;
  text-align: center;
  outline: none;
}

.sv-done p {
  color: var(--ink-2);
}

.sv-done-mark {
  font-size: 2.5rem;
  line-height: 1;
}

/* ── The survey as a quiz (REQ-034) ─────────────────────────────────────────── */
/* An option's emoji, from data-emoji: decoration, so its text stays the label
   alone. Its own column, so a label on two lines wraps beside it, not under. */
.sv-option-label[data-emoji] {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.sv-option-label[data-emoji]::before {
  content: attr(data-emoji);
  content: attr(data-emoji) / "";
  flex: none;
  font-size: 1.15em;
}

/* The result fills the pop-up and sits in its middle; taller than the screen
   (REQ-037 added the payout and the referral code), it scrolls from its top. */
.sv-dialog .sv-done {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: var(--line-strong) transparent;
  align-content: start;
  align-content: safe center;
}

/* A scale's face sits above its number. */
.sv-scale .sv-option {
  min-height: 4rem;
}

.sv-scale .sv-option-label[data-emoji] {
  display: grid;
  justify-items: center;
  gap: 0.15rem;
  font-size: 0.95rem;
}

.sv-scale .sv-option-label[data-emoji]::before {
  margin: 0;
  font-size: 1.6rem;
  line-height: 1;
}

.sv-scale .sv-option:has(:checked) .sv-option-label::before {
  transform: scale(1.2);
}

.sv-cheer {
  justify-self: start;
  border-radius: 999px;
  background: var(--accent-soft);
  padding: 0.25rem 0.75rem;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-text);
}

.sv-cheer.is-new {
  animation: sv-pop 0.35s cubic-bezier(0.2, 1.6, 0.4, 1) both;
}

@keyframes sv-pop {
  from {
    opacity: 0;
    transform: translateY(6px) scale(0.9);
  }
}

.sv-type-kicker {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary-text);
}

.sv-done .sv-type-blurb {
  max-width: 30rem;
  color: var(--ink);
}

.sv-done .sv-type-tip {
  max-width: 30rem;
  border-radius: var(--radius-md);
  background: var(--surface-2);
  padding: 0.6rem 0.9rem;
  font-size: 14px;
}

.sv-done .sv-done-mark {
  font-size: 3.5rem;
}

/* ── Credits, the tap and the type taking shape (REQ-034-S06..S08) ──────────── */
/* Inline at the start of the intro, so the buttons stay where they were. */
.survey-card .sv-reward-badge {
  display: inline-block;
  margin-right: 0.25rem;
  border-radius: 999px;
  background: var(--coin-soft);
  padding: 0.1rem 0.7rem;
  font-size: 16px;
  font-weight: 800;
  color: var(--coin-text);
}

/* REQ-037: the referral bonus, on its own line under the intro. */
.survey-card .sv-intro-refer {
  display: block;
  margin-top: 0.35rem;
  color: var(--accent-text);
}

.sv-coins {
  border-radius: 999px;
  background: var(--coin-soft);
  padding: 0.2rem 0.65rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--coin-text);
  margin-right: 0.5rem;
}

.sv-coins.is-up {
  animation: sv-bump 0.45s cubic-bezier(0.2, 1.6, 0.4, 1);
}

@keyframes sv-bump {
  40% {
    transform: scale(1.25);
    box-shadow: 0 0 0 6px var(--coin-soft);
  }
}

/* Its line is kept while empty, so nothing jumps when it first shows. */
.sv-shape.is-empty {
  visibility: hidden;
}

.sv-shape {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-3);
}

/* Its own line height, so the line is as tall empty as filled. */
.sv-shape-emoji {
  display: inline-block;
  font-size: 1.1rem;
  line-height: 1;
  vertical-align: -0.1em;
}

/* Its own line, so it never wraps half-way; kept while empty, so the question never jumps. */
.sv-shape-coins {
  display: block;
  font-weight: 700;
  color: var(--coin-text);
}

.sv-shape-coins:empty::before {
  content: "\200b";
}

.sv-shape-emoji.is-new {
  animation: sv-flip 0.5s ease;
}

@keyframes sv-flip {
  from {
    transform: rotateY(90deg) scale(0.6);
  }
}

/* A glow, not a scale, so the question never grows past its edges. */
.sv-option.is-picked {
  animation: sv-tap 0.4s ease-out;
}

@keyframes sv-tap {
  30% {
    box-shadow: 0 0 0 6px var(--primary-soft);
  }
}

/* Like the confetti: a clipped layer over the whole pop-up, so nothing in it
   can make anything scroll; the spot inside sits over the tapped option. */
.sv-fx {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.sv-fx-spot {
  position: absolute;
}

.sv-plus,
.sv-burst {
  position: absolute;
}

.sv-plus {
  right: 0.9rem;
  top: 50%;
  font-size: 15px;
  font-weight: 900;
  color: var(--coin-text);
  animation: sv-rise 0.9s ease-out both;
}

@keyframes sv-rise {
  from {
    opacity: 0;
    transform: translateY(-20%) scale(0.7);
  }
  25% {
    opacity: 1;
    transform: translateY(-80%) scale(1.15);
  }
  to {
    opacity: 0;
    transform: translateY(-260%);
  }
}

.sv-burst {
  left: 1.6rem;
  top: 50%;
  font-size: 1rem;
  animation: sv-scatter 0.7s ease-out both;
}

.sv-fx-spot.is-scale .sv-burst {
  left: 50%;
}

@keyframes sv-scatter {
  from {
    opacity: 1;
    transform: translate(-50%, -50%) scale(0.6);
  }
  to {
    opacity: 0;
    transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(1.3);
  }
}

.sv-scroll.is-fwd {
  animation: sv-in-fwd 0.28s ease-out;
}

.sv-scroll.is-back {
  animation: sv-in-back 0.28s ease-out;
}

@keyframes sv-in-fwd {
  from {
    opacity: 0;
    transform: translateX(28px);
  }
}

@keyframes sv-in-back {
  from {
    opacity: 0;
    transform: translateX(-28px);
  }
}

/* The last step's reward: amber until it can be claimed, then green. */
.sv-reward {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  border: 1px solid var(--coin);
  border-radius: var(--radius-md);
  background: var(--coin-soft);
  padding: 0.8rem 1rem;
}

.sv-reward-coin {
  font-size: 2.2rem;
  line-height: 1;
}

.sv-reward-words {
  display: grid;
  gap: 0.15rem;
}

.sv-reward-words strong {
  font-family: var(--font-display);
  font-size: 2.2rem;
  line-height: 1.05;
  color: var(--coin-text);
}

/* REQ-037: what the rupees are, under them, and the referral bonus. */
.sv-reward-how {
  font-size: 13px;
  color: var(--ink-2);
}

.sv-reward-more {
  font-size: 14px;
  font-weight: 700;
  color: var(--coin-text);
}

.sv-reward-state {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
}

.sv-reward.is-ready {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.sv-reward.is-ready .sv-reward-state {
  color: var(--accent-text);
}

.sv-done .sv-done-credits {
  max-width: 30rem;
  border-radius: var(--radius-md);
  background: var(--coin-soft);
  padding: 0.6rem 0.9rem;
  font-weight: 700;
  color: var(--coin-text);
}

/* REQ-037: the code to pass on. */
.sv-referral {
  display: grid;
  gap: 0.6rem;
  width: 100%;
  max-width: 30rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 0.9rem 1rem;
  text-align: left;
}

.sv-referral-code {
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: 0.12em;
  color: var(--ink);
}

.sv-done .sv-referral-when {
  font-size: 13px;
  color: var(--ink-3);
}

.sv-referral .sv-share {
  justify-self: start;
}

/* Over the pop-up, never in the way of a button; removed by the script. */
.sv-confetti {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.sv-confetti span {
  position: absolute;
  top: -12px;
  left: var(--x);
  width: 8px;
  height: 12px;
  border-radius: 2px;
  background: var(--primary);
  animation: sv-fall 2.2s ease-in var(--delay) both;
}

.sv-confetti span:nth-child(3n) {
  background: var(--accent);
}

.sv-confetti span:nth-child(3n + 1) {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary-text);
}

@keyframes sv-fall {
  to {
    transform: translate(var(--drift), 110vh) rotate(var(--spin));
    opacity: 0.2;
  }
}

/* ── The privacy notice (REQ-030) ──────────────────────────────────────────── */
.legal {
  display: grid;
  gap: 0.9rem;
  max-width: 46rem;
}

.legal h2 {
  margin-top: 1.5rem;
  font-size: 1.375rem;
  font-weight: 800;
}

.legal h3 {
  margin-top: 0.5rem;
  font-size: 1.0625rem;
  font-weight: 700;
}

.legal p,
.legal li {
  color: var(--ink-2);
}

.legal strong {
  color: var(--ink);
}

.legal ul {
  display: grid;
  gap: 0.4rem;
  padding-left: 1.25rem;
  list-style: disc;
}

.legal-meta {
  font-size: 14px;
}

/* ── The articles (REQ-032): the notice's reading column, plus a table. ───── */
.article .article-lede {
  font-size: 1.125rem;
  color: var(--ink);
}

/* A narrow phone scrolls the table inside its frame, never the page sideways. */
.article .table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.article table {
  width: 100%;
  min-width: 20rem;
  border-collapse: collapse;
  font-size: 15px;
}

.article caption {
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 700;
  color: var(--ink);
}

.article th,
.article td {
  border-top: 1px solid var(--line);
  padding: 0.65rem 1rem;
  text-align: left;
  vertical-align: top;
}

.article th {
  font-weight: 700;
  color: var(--ink);
}

.article td {
  color: var(--ink-2);
}

.article thead th {
  background: var(--surface);
}

/* What the home page's screens do and do not promise (REQ-032). */
.article-note {
  margin-top: 0.5rem;
  border: 1px solid var(--line);
  border-left: 3px solid var(--primary);
  border-radius: var(--radius-md);
  background: var(--surface);
  padding: 1rem 1.25rem;
  font-size: 15px;
}

.header-button {
  height: 2.5rem;
  padding: 0 1rem;
}

/* The home page's way to the articles (REQ-032), on a phone too. */
.header-link {
  font-weight: 700;
  font-size: 15px;
  color: var(--ink-2);
  text-decoration: none;
}

.header-link:hover {
  color: var(--ink);
}

/* A fact still to be supplied. Loud on purpose: none may reach the live site. */
mark.tbd {
  border-radius: 4px;
  background: #ffd84d;
  padding: 0 0.25rem;
  color: #2b2100;
}

/* ── Also built ────────────────────────────────────────────────────────────── */
.band {
  border-block: 1px solid var(--line);
  background: var(--surface);
}

.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.card {
  display: grid;
  align-content: start;
  gap: 0.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--ground);
  padding: 1.5rem;
}

.card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 0.4rem;
  border-radius: var(--radius-md);
  background: var(--accent-soft);
  color: var(--accent-text);
}

.card h3 {
  font-size: 1.125rem;
  font-weight: 800;
}

.card p {
  font-size: 14px;
  color: var(--ink-2);
}

/* The two articles (REQ-032): the whole card is the link's target. */
.cards.guides {
  grid-template-columns: repeat(2, 1fr);
}

.guides .card {
  position: relative;
  background: var(--surface);
  transition: border-color 0.15s, transform 0.15s;
}

.guides .card:hover,
.guides .card:focus-within {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.guide-more {
  margin-top: 0.5rem;
  font-size: 15px;
  font-weight: 700;
  color: var(--primary-text);
}

.guides .card:hover .guide-more {
  text-decoration: underline;
}

.guides .card a {
  color: var(--ink);
  text-decoration: none;
}

.guides .card a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

/* ── How it works ──────────────────────────────────────────────────────────── */
.how {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.how-side {
  border: 1px solid var(--line);
  border-radius: var(--radius-2xl);
  background: var(--surface);
  padding: 1.75rem;
}

.how-side h3 {
  margin-bottom: 1.1rem;
  font-size: 12px;
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-text);
}

.steps {
  display: grid;
  gap: 0.75rem;
  counter-reset: step;
}

.steps li {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 800;
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--primary);
  color: var(--on-primary);
}

/* ── The closing call ──────────────────────────────────────────────────────── */
.closing {
  display: grid;
  justify-items: center;
  gap: 1rem;
  border-radius: var(--radius-2xl);
  background-image: var(--gradient-brand);
  padding: 3rem 1.5rem;
  text-align: center;
  color: #fff;
}

.closing p {
  max-width: 52ch;
  color: rgb(255 255 255 / 0.88);
}

.closing .button {
  background: #fff;
  color: #061b3a;
}

.closing .button:hover {
  background: #eaf3ff;
}

/* ── Footer ────────────────────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding: 2rem 0;
  font-size: 13px;
  color: var(--ink-3);
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-end {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.footer-icon {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  color: var(--ink-2);
}

.footer-icon:hover {
  background: var(--line);
  color: var(--ink);
}

/* Looks like a link, is a button: it acts on the page, it goes nowhere. */
.link-button {
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  color: inherit;
  text-decoration: underline;
  cursor: pointer;
}

.link-button:hover {
  color: var(--ink);
}

/* ── Narrow screens ────────────────────────────────────────────────────────── */
@media (max-width: 860px) {
  .glimpse,
  .glimpse.flip,
  .glimpse.narrow {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .glimpse.flip > .glimpse-copy {
    order: 0;
  }

  .glimpse.video-glimpse,
  .glimpse.flip.video-glimpse {
    grid-template-columns: 1fr;
  }

  /* The survey video first, its links under it. */
  .glimpse.flip.video-glimpse > .glimpse-copy {
    order: 2;
  }

  /* The sign-up first, the video under it. */
  .hero-split {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .hero-split .hero-copy {
    justify-items: center;
    text-align: center;
  }

  .glimpse + .glimpse {
    margin-top: 3.5rem;
  }

  .cards {
    grid-template-columns: 1fr 1fr;
  }

  .how {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .wrap {
    padding: 0 1rem;
  }

  .hero-copy {
    padding: 2rem 0;
  }

  .lede {
    font-size: 1rem;
  }

  .waitlist-row {
    flex-direction: column;
  }

  .waitlist .field {
    flex: none;
  }

  .section {
    padding: 3rem 0;
  }

  .cards,
  .cards.guides {
    grid-template-columns: 1fr;
  }

  .site-header .badge {
    display: none;
  }
}

/* ── Scroll effects, as on the app's home page (REQ-035) ──────────────────────
   Set up by the last script in index.html; only [data-scroll-fx] hides
   anything, and only with motion allowed, so without it every block is there. */
@media (prefers-reduced-motion: no-preference) {
  html[data-scroll-fx] .reveal {
    transition:
      opacity 0.9s ease-out,
      transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
  }

  html[data-scroll-fx] .reveal:not(.in) {
    opacity: 0;
    transform: translateY(48px) scale(0.97);
  }
}

/* Beside the copy only: stacked under it on a narrow screen, the video would
   fade just as it is reached. Clipped, so the drift never spills below the hero. */
@media (prefers-reduced-motion: no-preference) and (min-width: 861px) {
  html[data-scroll-fx] .hero {
    overflow: clip;
  }

  html[data-scroll-fx] .hero .video-phone {
    opacity: calc(1 - var(--hero-fade, 0));
    transform: translateY(calc(var(--hero-fade, 0) * 30%)) scale(calc(1 + var(--hero-fade, 0) * 0.15));
    transform-origin: center top;
    will-change: opacity, transform;
  }

  /* Not while it plays: somebody is watching it. */
  html[data-scroll-fx] .hero .video-phone.is-playing {
    opacity: 1;
    transform: none;
  }
}

/* Motion here is decoration — the marquee carries no information. */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .sv-bar span,
  .sv-option {
    transition: none;
  }

  /* REQ-034-S01 AC-05, S07 AC-04; the confetti, burst and "+100" are never drawn (S04 AC-02). */
  .sv-cheer.is-new,
  .sv-coins.is-up,
  .sv-shape-emoji.is-new,
  .sv-option.is-picked,
  .sv-scroll.is-fwd,
  .sv-scroll.is-back {
    animation: none;
  }

  /* Standing still, the strip would show two chips and clip the rest. Wrap
     it instead, and drop the copy that only existed to make the loop seamless. */
  .marquee-track {
    animation: none;
    width: auto;
    justify-content: center;
  }

  .marquee-track ul {
    flex-wrap: wrap;
    justify-content: center;
    padding: 0 1rem;
  }

  .marquee-track ul[aria-hidden="true"] {
    display: none;
  }
}
