/* Hallmark · macrostructure: Marquee Hero + stacked steps · tone: playful · anchor hue: red
 * theme: studied-DNA (source: https://www.tasa.app/) applied to the Quizz It Up brand
 * paper #F3F4F8 · flood accent #E3202F · display Space Grotesk · body Inter · hand Sedgwick Ave
 * studied: yes · DNA-source: url + screenshots
 */

:root {
  --paper: #f3f4f8;
  --paper-2: #e6e8f0;
  --card: #ffffff;
  --ink: #14161c;
  --ink-2: #23262f;
  --muted: #4d5262;
  --on-ink-muted: #a9adba;
  --red: #e3202f;
  --red-deep: #b9121f;
  --red-glow: #ff5a66;
  --blush: #fbe3dd;
  --cream: #fff8ea;
  --hairline: rgba(20, 22, 28, 0.1);
  --hairline-light: rgba(255, 255, 255, 0.22);

  --cat-trending: #f23f3a;
  --cat-science: #00b487;
  --cat-entertainment: #775aff;
  --cat-history: #ffc549;
  --cat-sports: #6dd0f0;
  --cat-geography: #ff76b4;

  --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-hand: 'Sedgwick Ave', 'Comic Sans MS', cursive;

  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 40px;
  --space-2xl: 64px;
  --space-3xl: 112px;

  --radius-panel: 36px;
  --radius-card: 28px;
  --radius-btn: 14px;
  --radius-pill: 999px;

  --shadow-card: 0 10px 30px rgba(30, 35, 60, 0.08);
  --shadow-phone: 0 30px 60px rgba(20, 22, 28, 0.28), 0 6px 14px rgba(20, 22, 28, 0.18);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 160ms;
  --dur: 320ms;
  --dur-slow: 700ms;

  --wrap: 1180px;
  --gutter: clamp(20px, 4vw, 48px);
}

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

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

body {
  margin: 0;
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

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

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1;
  overflow-wrap: anywhere;
  min-width: 0;
  text-wrap: balance;
}

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

.on-dark :focus-visible,
.hero :focus-visible,
.cta :focus-visible {
  outline-color: var(--cream);
}

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

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

/* ---------- Logo: marker lettering, ink outline, hard drop shadow (same recipe as the app) */

/* The logo is a fixed drawing (assets/logo, red, cream and white versions): never rebuilt from
   the font here, only swapped for another colour file. */
.logo {
  display: inline-block;
  flex: none;
  line-height: 0;
}

.logo img {
  width: auto;
  height: var(--logo-h, 52px);
}

/* ---------- Buttons: flat face on a darker edge, like the app's own buttons */

.btn {
  --face: #fff;
  --edge: #d5d8e3;
  --text: var(--red-deep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 24px;
  border-radius: var(--radius-btn);
  background: var(--face);
  color: var(--text);
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 4px 0 var(--edge);
  transition:
    transform var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-fast) var(--ease-out);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 var(--edge);
}

.btn:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 var(--edge);
}

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

.btn--red {
  --face: var(--red);
  --edge: var(--red-deep);
  --text: #fff;
}

.btn--ink {
  --face: var(--ink);
  --edge: #000;
  --text: #fff;
}

.btn--ghost {
  --face: rgba(255, 255, 255, 0.12);
  --edge: rgba(0, 0, 0, 0.18);
  --text: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
}

.btn--outline {
  --face: transparent;
  --edge: transparent;
  --text: var(--ink);
  border: 1.5px solid var(--ink);
  box-shadow: none;
}

.btn--outline:hover,
.btn--outline:active {
  box-shadow: none;
}

.btn--sm {
  min-height: 44px;
  padding: 0 18px;
  font-size: 15px;
  border-radius: 12px;
}

.btn small {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  opacity: 0.72;
}

/* ---------- Hero: one flood-red panel set into the paper */

.hero {
  position: relative;
  margin: 8px 8px 0;
  padding: 16px 0 0;
  border-radius: var(--radius-panel);
  background:
    radial-gradient(60% 50% at 80% 0%, rgba(255, 138, 120, 0.55), transparent 70%),
    radial-gradient(50% 60% at 0% 60%, rgba(185, 18, 31, 0.6), transparent 70%), var(--red);
  color: #fff;
}

.hero__clip {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
  pointer-events: none;
}

.nav {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: clamp(24px, 3vw, 36px);
}

.nav .logo {
  --logo-h: clamp(78px, 7.4vw, 104px);
  margin-block: 4px;
}

.hero__copy {
  position: relative;
  z-index: 3;
  --copy-top: clamp(24px, 3vw, 36px);
  padding: var(--copy-top) var(--gutter) 0;
  text-align: center;
}

.hero h1 {
  font-size: clamp(34px, 8.6vw, 104px);
  line-height: 0.96;
  color: var(--cream);
}

.hero__sub {
  max-width: 34em;
  margin: 24px auto 0;
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.45;
  color: #fff;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 36px;
}

/* store badges: the two stores' usual black badges, cut to this page's buttons (same height,
   corner and hard bottom edge, display face for the store name) */
.stores {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 36px;
}

.store {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 60px;
  padding: 0 22px 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-btn);
  background: var(--ink);
  color: #fff;
  text-align: left;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 4px 0 #000;
  transition:
    transform var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-fast) var(--ease-out);
}

.store:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 #000;
}

.store:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 #000;
}

.store__mark {
  flex: none;
  width: 30px;
  height: 30px;
}

.store__text {
  display: grid;
  line-height: 1;
}

.store__text small {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
  opacity: 0.86;
}

.store__text b {
  margin-top: 4px;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.cta .stores {
  justify-content: flex-start;
}

.hero__note a {
  color: inherit;
  font-weight: 600;
  text-underline-offset: 3px;
}

.hero__note {
  margin-top: 16px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.86);
}

/* floating topic tiles */
.floater {
  position: absolute;
  width: var(--s, 64px);
  aspect-ratio: 1;
  padding: 7px;
  border-radius: 26%;
  background: var(--c);
  box-shadow:
    0 5px 0 rgba(0, 0, 0, 0.18),
    0 14px 24px rgba(120, 8, 16, 0.3);
  transform: rotate(var(--r, -8deg));
  animation: bob 7s var(--ease-in-out) infinite alternate;
  animation-delay: var(--d, 0s);
}

.floater img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@keyframes bob {
  to {
    transform: translateY(-14px) rotate(calc(var(--r, -8deg) + 5deg));
  }
}

/* stage: three real screens, two characters, two hand notes */
.stage {
  --pw: clamp(160px, 24vw, 270px);
  position: relative;
  z-index: 2;
  width: min(1120px, 100%);
  height: clamp(330px, 56vw, 640px);
  margin: clamp(40px, 6vw, 72px) auto 0;
}

.phone {
  position: absolute;
  margin: 0;
  padding: 8px;
  border-radius: calc(var(--w) * 0.17);
  background: var(--ink);
  box-shadow: var(--shadow-phone);
  width: var(--w);
}

.phone img {
  width: 100%;
  height: auto;
  aspect-ratio: 780 / 1688;
  border-radius: calc(var(--w) * 0.17 - 8px);
  object-fit: cover;
  object-position: top;
  background: var(--paper);
}

.stage .phone--mid {
  --w: clamp(200px, 30vw, 330px);
  left: 50%;
  top: 0;
  z-index: 3;
  transform: translateX(-50%);
}

.stage .phone--left {
  --w: var(--pw);
  left: calc(50% - var(--w) * 1.72);
  top: 14%;
  z-index: 2;
  transform: rotate(-7deg);
}

.stage .phone--right {
  --w: var(--pw);
  left: calc(50% + var(--w) * 0.72);
  top: 14%;
  z-index: 2;
  transform: rotate(7deg);
}

/* character on a colour disc, head free above it, the way the app draws players */
.disc {
  position: relative;
  width: var(--w, 200px);
  height: calc(var(--w, 200px) * 1.42);
  flex: none;
}

.disc::before {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--c, var(--cat-sports));
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.16);
}

.disc__cut {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 0 0 calc(var(--w, 200px) / 2) calc(var(--w, 200px) / 2);
}

.disc img {
  position: absolute;
  left: 50%;
  bottom: -6%;
  width: auto;
  max-width: none;
  height: var(--h, 88%);
  transform: translateX(-50%);
}

.stage .disc--left,
.stage .disc--right {
  --w: clamp(110px, 15vw, 190px);
  position: absolute;
  bottom: 9%;
  z-index: 1;
}

.stage .disc--left {
  left: calc(50% - var(--pw) * 1.72 - var(--w) * 0.76);
}

.stage .disc--right {
  right: calc(50% - var(--pw) * 1.72 - var(--w) * 0.76);
}

.note {
  position: absolute;
  z-index: 4;
  font-family: var(--font-hand);
  font-size: 22px;
  line-height: 1.15;
  color: var(--cream);
  text-align: center;
}

.note svg {
  display: block;
  width: 62px;
  height: 46px;
  margin: 6px auto 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.note--left {
  left: -3%;
  top: 2%;
  transform: rotate(-9deg);
}

.note--right {
  right: -3%;
  top: 0;
  transform: rotate(8deg);
}

.note--right svg {
  transform: scaleX(-1);
}

/* ---------- Numbers */

.numbers {
  position: relative;
  z-index: 1;
  padding: clamp(150px, 20vw, 250px) 0 var(--space-2xl);
}

.numbers__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-lg);
  text-align: center;
}

.numbers dl {
  margin: 0;
}

.numbers dt {
  font-family: var(--font-display);
  font-size: clamp(44px, 6vw, 80px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
}

.numbers dd {
  margin: 10px 0 0;
  font-size: 15px;
  white-space: nowrap;
  color: var(--muted);
}

/* ---------- Topics */

.topics {
  padding: var(--space-2xl) 0 var(--space-3xl);
  text-align: center;
}

.h2 {
  font-size: clamp(38px, 5.6vw, 76px);
}

.lede {
  max-width: 34em;
  margin: 20px auto 0;
  font-size: clamp(17px, 1.5vw, 19px);
  color: var(--muted);
}

/* three rows of topics drifting sideways, every other row the other way, edges faded out */
.marquee {
  display: grid;
  gap: 14px;
  max-width: 980px;
  margin: 44px auto 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
}

.marquee__row {
  display: flex;
  padding: 2px 0 6px;
}

.marquee__track {
  display: flex;
  flex: none;
  gap: 12px;
  margin: 0;
  padding: 0 12px 0 0;
  list-style: none;
  animation: marquee 90s linear infinite;
  will-change: transform;
}

/* default rows run left to right, the middle one right to left */
.marquee__row:not(.marquee__row--rev) .marquee__track {
  animation-direction: reverse;
}

.marquee:hover .marquee__track {
  animation-play-state: paused;
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 18px 6px 6px;
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--c) 24%, #fff);
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.chip img {
  width: 38px;
  height: 38px;
  padding: 4px;
  border-radius: 12px;
  background: var(--c);
  box-shadow: 0 3px 0 color-mix(in srgb, var(--c) 72%, #000);
}

/* ---------- Blush panel with cards */

.panel {
  margin: 0 8px;
  padding: clamp(56px, 8vw, 104px) 0 clamp(24px, 4vw, 48px);
  border-radius: var(--radius-panel);
  background: linear-gradient(180deg, var(--blush), #fdf0e6);
}

.panel__head {
  margin-bottom: clamp(36px, 5vw, 64px);
  text-align: center;
}

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

.card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-card);
  background: var(--card);
  box-shadow: var(--shadow-card);
}

.card h3 {
  font-size: clamp(30px, 3.6vw, 50px);
}

.card p {
  margin-top: 18px;
  color: var(--muted);
}

.card--wide {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: center;
  min-height: 500px;
}

.card--wide .card__text {
  padding: clamp(28px, 5vw, 72px);
}

.card--wide .card__art {
  position: relative;
  align-self: stretch;
  min-height: 420px;
}

.card--wide .phone {
  --w: 290px;
  left: 60%;
  top: 56px;
  transform: translateX(-50%) rotate(4deg);
}

/* sits in the gap left of the phone, arrow aimed at the game code; never on the phone */
.card--wide .note {
  right: calc(40% + 145px + 20px);
  top: 74px;
  color: var(--red-deep);
  white-space: nowrap;
  transform: rotate(-6deg);
}

.card--half {
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 4vw, 56px) clamp(24px, 4vw, 56px) 0;
  text-align: center;
  min-height: 600px;
}

.card--half p {
  max-width: 26em;
  margin-inline: auto;
}

.card--half .card__art {
  position: relative;
  flex: 1;
  min-height: 320px;
  margin-top: 36px;
}

.card--half .phone {
  --w: 270px;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
}

.cast {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  justify-items: center;
  gap: 18px 10px;
  margin-top: 40px;
  padding-bottom: 44px;
}

.cast figure {
  margin: 0;
}

.cast .disc {
  --w: clamp(84px, 11vw, 128px);
}

.cast figcaption {
  margin-top: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
}

.ticks {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.ticks li {
  position: relative;
  padding: 7px 0 7px 34px;
  font-weight: 500;
}

.ticks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b9121f' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E")
      center / 14px no-repeat,
    color-mix(in srgb, var(--red) 16%, #fff);
}

.card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

/* ---------- The duel, in four stacked cards */

.duel {
  padding: var(--space-3xl) 0 var(--space-2xl);
}

.duel__head {
  position: relative;
  margin-bottom: clamp(40px, 6vw, 72px);
  text-align: center;
}

.duel__head h2 {
  font-size: clamp(52px, 10.5vw, 150px);
  letter-spacing: -0.05em;
}

.duel__head h2 em {
  font-style: normal;
  color: var(--red);
}

.step {
  --tint: var(--blush);
  position: sticky;
  top: calc(20px + var(--i) * 22px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: min(560px, 78vh);
  margin-bottom: 40px;
  overflow: hidden;
  border-radius: var(--radius-card);
  background: var(--card);
  box-shadow:
    0 -6px 24px rgba(30, 35, 60, 0.06),
    var(--shadow-card);
}

.step__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 5vw, 72px);
}

.step__n {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 26px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--red) 14%, #fff);
  color: var(--red-deep);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
}

.step h3 {
  font-size: clamp(32px, 4.2vw, 58px);
}

.step p {
  max-width: 28em;
  margin-top: 20px;
  color: var(--muted);
}

.step__art {
  position: relative;
  min-height: 380px;
  background: var(--tint);
}

.step__art .phone {
  --w: 290px;
  left: 50%;
  top: 48px;
  transform: translateX(-50%) rotate(var(--tilt, -3deg));
}

/* ---------- FAQ */

.faq {
  padding: var(--space-2xl) 0 var(--space-3xl);
}

.faq__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(24px, 6vw, 96px);
  align-items: start;
}

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

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

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
  font-family: var(--font-display);
  font-size: clamp(19px, 2vw, 23px);
  font-weight: 500;
  letter-spacing: -0.02em;
  cursor: pointer;
  list-style: none;
}

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

.faq summary::after {
  content: '';
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314161c' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E")
      center / 16px no-repeat,
    var(--paper-2);
  transition: transform var(--dur) var(--ease-out);
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details p {
  max-width: 38em;
  padding: 0 0 24px;
  color: var(--muted);
}

/* ---------- Closer: the red ask sits on the page and laps over the white footer card */

.closer {
  position: relative;
  padding: 0 8px 8px;
  color: #fff;
}

.cta {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  min-height: 520px;
  overflow: hidden;
  border-radius: var(--radius-panel);
  background:
    radial-gradient(60% 80% at 0% 0%, rgba(255, 150, 90, 0.75), transparent 70%), var(--red);
  z-index: 1;
  margin: 0 clamp(0px, 3vw, 48px);
  box-shadow: 0 24px 50px rgba(20, 22, 28, 0.16);
}

.cta__art {
  position: relative;
  align-self: stretch;
  min-height: 400px;
}

.cta__art .phone {
  --w: 280px;
}

.cta__art .phone:nth-child(1) {
  left: calc(50% - 250px);
  top: 110px;
  transform: rotate(-8deg);
}

.cta__art .phone:nth-child(2) {
  left: calc(50% - 60px);
  top: 50px;
  transform: rotate(5deg);
}

.cta__text {
  padding: clamp(32px, 5vw, 72px);
}

.cta h2 {
  font-size: clamp(38px, 5vw, 68px);
  color: var(--cream);
}

.cta p {
  max-width: 26em;
  margin-top: 20px;
  font-size: 19px;
}

.cta .hero__actions {
  justify-content: flex-start;
}

.cta .hero__note {
  text-align: left;
}

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

.foot {
  --lap: clamp(60px, 9vw, 130px);
  margin-top: calc(var(--lap) * -1);
  padding: clamp(28px, 4vw, 56px);
  padding-top: calc(var(--lap) + clamp(28px, 4vw, 56px));
  border-radius: var(--radius-panel);
  background: var(--card);
  color: var(--ink);
}

/* one row under the hairline: logo and line on the left, section links on the right */
.foot__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 40px;
  padding-top: 32px;
  border-top: 1px solid var(--hairline);
}

.foot__brand {
  display: flex;
  align-items: center;
  gap: 32px;
}

.foot .logo {
  --logo-h: 66px;
}

.foot__brand p {
  white-space: nowrap;
  font-size: 15px;
  color: var(--muted);
}

.foot__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  font-size: 15px;
  color: var(--muted);
}

.foot__nav a {
  text-decoration: none;
  white-space: nowrap;
}

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

/* ---------- Phone dock: the download button stays in reach on small screens */

.dock {
  position: fixed;
  inset: auto 12px 12px;
  z-index: 50;
  display: none;
  align-items: center;
  gap: 12px;
  padding: 10px 10px 10px 18px;
  border-radius: 20px;
  background: var(--ink);
  color: #fff;
  box-shadow: 0 14px 34px rgba(20, 22, 28, 0.35);
  transform: translateY(140%);
  transition: transform var(--dur) var(--ease-out);
}

.dock.is-on {
  transform: none;
}

.dock strong {
  flex: 1;
  min-width: 0;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
}

/* ---------- Reveal on scroll */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity var(--dur-slow) var(--ease-out),
    transform var(--dur-slow) var(--ease-out);
  transition-delay: var(--delay, 0ms);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ---------- Smaller screens */

@media (max-width: 1080px) {
  .numbers__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px 20px;
  }
  .note {
    display: none;
  }
}

@media (max-width: 860px) {
  body {
    font-size: 16px;
  }
  .hero {
    margin: 6px 6px 0;
    border-radius: 28px;
  }
  .panel {
    margin: 0 6px;
    border-radius: 28px;
  }
  .nav {
    padding: 8px 10px 8px 20px;
  }
  .floater {
    display: none;
  }
  /* no room beside the phones here: the characters look over the top of them */
  .stage .disc--left,
  .stage .disc--right {
    --w: clamp(84px, 17vw, 130px);
    top: calc(14% - var(--w) * 0.86);
    bottom: auto;
  }
  .stage .disc--left {
    left: calc(50% - var(--pw) * 1.72 + var(--pw) * 0.5 - var(--w) * 0.5);
  }
  .stage .disc--right {
    right: calc(50% - var(--pw) * 1.72 + var(--pw) * 0.5 - var(--w) * 0.5);
  }
  .numbers__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px 20px;
  }
  .cards {
    grid-template-columns: minmax(0, 1fr);
  }
  .card--wide {
    grid-template-columns: minmax(0, 1fr);
  }
  .card--wide .card__art {
    min-height: 380px;
  }
  .card--wide .phone {
    --w: 250px;
    top: 8px;
  }
  .card--half {
    min-height: 0;
  }
  .card--half .card__art {
    min-height: 340px;
  }
  .step {
    position: relative;
    top: auto;
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    margin-bottom: 20px;
  }
  .step__art {
    min-height: 360px;
  }
  .step__art .phone {
    --w: 250px;
    top: 36px;
  }
  .faq__grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .cta {
    grid-template-columns: minmax(0, 1fr);
  }
  .cta__art {
    order: 2;
    min-height: 340px;
  }
  .cta__art .phone {
    --w: 220px;
  }
  .cta__art .phone:nth-child(1) {
    left: calc(50% - 200px);
    top: 70px;
  }
  .cta__art .phone:nth-child(2) {
    left: calc(50% - 30px);
    top: 20px;
  }
  .closer {
    padding-inline: 6px;
    padding-bottom: 96px;
  }
  .foot__brand {
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
  }
  .foot__brand p {
    white-space: normal;
  }
  .dock {
    display: flex;
  }
}

@media (max-width: 520px) {
  .numbers__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
  .numbers dd {
    font-size: 14px;
  }
  .stage .disc--left {
    left: 2px;
  }
  .stage .disc--right {
    right: 2px;
  }
  .hero__actions .btn,
  .cta .btn {
    width: 100%;
  }
  .stores {
    gap: 10px;
  }
  .store {
    flex: 1 1 0;
    justify-content: center;
    min-height: 56px;
    gap: 9px;
    padding: 0 10px;
  }
  .store__mark {
    width: 24px;
    height: 24px;
  }
  .store__text small {
    font-size: 9px;
  }
  .store__text b {
    font-size: 16px;
  }
  .floater {
    --s: 46px !important;
  }
  .chip {
    font-size: 15px;
  }
  .chip img {
    width: 32px;
    height: 32px;
  }
  .marquee {
    gap: 10px;
  }
  .marquee__track {
    gap: 8px;
    padding-right: 8px;
    animation-duration: 70s;
  }
  .card__actions .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .floater {
    animation: none;
  }
  /* no drifting: the topics sit still as a wrapped, centred list */
  .marquee {
    -webkit-mask-image: none;
    mask-image: none;
    max-width: 1060px;
    margin-inline: auto;
    padding: 0 var(--gutter);
  }
  .marquee__row,
  .marquee__track {
    display: contents;
  }
  .marquee {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }
  .marquee__track {
    animation: none;
  }
  .chip--copy {
    display: none;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .btn,
  .store,
  .dock {
    transition: none;
  }
}
