/* ==========================================================================
   FOMO home page (index.html). Terms, Privacy and 404 still use styles.css.
   Full-bleed sections in the app's colours, headlines that are things friends
   say, and little scripted demos of the app at work (home.js).
   Amber means "do it", mint means "live", navy carries text and the night.
   ========================================================================== */

@font-face {
  font-family: "Chillax";
  src: url("../assets/fonts/Chillax-Variable.woff2") format("woff2");
  font-weight: 200 700;
  font-style: normal;
  font-display: swap;
}
@font-face { font-family: "Figtree"; src: url("../assets/fonts/Figtree-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("../assets/fonts/Figtree-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("../assets/fonts/Figtree-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("../assets/fonts/Figtree-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  color-scheme: light;
  interpolate-size: allow-keywords;

  --orange: #F0A023;      /* logo orange */
  --mark-orange: #F09E1F; /* the logomark's block */
  --amber: #FFB13B;       /* the app's accent */
  --amber-glow: #FFC866;
  --amber-100: #FFEBC8;
  --cream: #FFF8EC;
  --navy-900: #0F1428;
  --navy: #1A2140;
  --navy-700: #262E55;
  --navy-600: #3A4370;
  --mint: #3FD6A6;
  --mint-700: #1F7A5E;
  --mint-100: #D4F6EC;
  --lilac: #E4DDFB;
  --lilac-ink: #4B3592;
  --coral: #FF7A6B;
  --slate-300: #A9AFC8;
  --white: #fff;

  --ground: #fff;

  --font-display: "Chillax", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-ui: "Figtree", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --shadow-lift: 0 2px 4px rgb(15 20 40 / .08), 0 30px 70px -20px rgb(15 20 40 / .42);
  --ease-out: cubic-bezier(.2, .7, .2, 1);
  --spring: cubic-bezier(.3, 1.6, .5, 1);

  --gutter: clamp(20px, 4vw, 40px);
  --banner-h: 28px;
  --bar-h: 72px;
}

/* The inks. In dark mode the page's own ground goes dark and its inks light, but the coloured grounds (amber, mint,
   cream, the tiles) keep these navy inks for what's on them, their white cards included. */
:root,
.hero, .closing, .block--mint, .block--cream, .tile, .plan-card, .story, .note, .float--dev, .board, .rules, .bingo {
  --ink: #1A2140;
  --ink-2: #3C4466;
  --ink-3: #565E7E;   /* 5.9:1 on white */
  --line: rgb(26 33 64 / .12);
  color: var(--ink);
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --ground: #0F1428;
    --ink: #F2F3F9;
    --ink-2: #C6CADC;
    --ink-3: #A0A6C0;
    --line: rgb(255 255 255 / .12);
  }
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: var(--navy-600) transparent; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 17px/1.55 var(--font-ui);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  caret-color: var(--orange);
}
main { overflow-x: clip; }
/* Smooth anchor scrolling only for visitors who haven't asked for less motion. */
html.motion { scroll-behavior: smooth; }
::selection { background: var(--amber); color: var(--navy); }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 2px; }
h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -.03em;
  line-height: 1;
  text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }
ul, ol, dl, dd { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; border-radius: 8px; }
.block--night :focus-visible, .block--deep :focus-visible, .foot :focus-visible, .top.on-dark :focus-visible { outline-color: var(--amber); }
@media (prefers-color-scheme: dark) {
  .how :focus-visible, .reveal :focus-visible, .games :focus-visible, .faq :focus-visible { outline-color: var(--amber); }
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }
section[id] { scroll-margin-top: var(--bar-h); }

/* Drawn line icons, one stroke weight everywhere. */
.ico { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- headlines that are things people say ---------- */
q { quotes: "\201C" "\201D"; }
.quote q::before { margin-left: -.4em; color: var(--q, var(--orange)); }
.quote q::after { color: var(--q, var(--orange)); }

/* Who said it, under the line: the speaker's avatar and a sentence, the way a chat signs a message. */
.by {
  display: flex; align-items: center; gap: 10px;
  margin-top: 20px;
  font-size: 16px; font-weight: 600;
  color: var(--by, var(--ink-2));
}
.by .av { width: 28px; height: 28px; font-size: 12px; box-shadow: none; margin: 0; }

/* Spoken headlines come in a word at a time, out of a blur, as if being read off the chat: home.js wraps each word in
   .w with its place (--i) and adds .heard when the line is on screen. Padding gives each word's layer room for its
   descenders while it animates, and the matching negative margin keeps the lines where they were. */
.motion .hearing .w {
  display: inline-block;
  padding: .25em .08em;
  margin: -.25em -.08em;
  opacity: 0;
  filter: blur(.14em);
  translate: 0 .14em;
  transition:
    opacity .6s var(--ease-out) calc(var(--i) * 80ms),
    filter .9s var(--ease-out) calc(var(--i) * 80ms),
    translate .9s var(--ease-out) calc(var(--i) * 80ms);
}
.motion .hearing.heard .w { opacity: 1; filter: none; translate: 0 0; }
.motion .hearing::after { opacity: 0; transition: opacity .6s var(--ease-out) calc(var(--n) * 80ms); }
.motion .hearing.heard::after { opacity: 1; }

/* ---------- avatars, chips, pills ---------- */
.av {
  display: inline-grid; place-items: center; flex: none;
  width: 34px; height: 34px; border-radius: 50%;
  font-style: normal; font-weight: 700; font-size: 13px; color: var(--navy);
}
.av--amber { background: var(--amber-100); }
.av--mint { background: var(--mint-100); }
.av--lilac { background: var(--lilac); }
.av--coral { background: #FFE0DC; }

.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); flex: none; }

.live {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  height: 32px; padding: 0 14px; border-radius: 999px;
  background: var(--mint-100); color: var(--navy); font-size: 14px; font-weight: 600;
}
.live .dot { background: var(--mint-700); position: relative; }
.motion .live .dot::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit;
  animation: pulse 1.8s ease-out infinite;
}
@keyframes pulse { from { scale: 1; opacity: .7; } to { scale: 3; opacity: 0; } }
.live--dark { background: rgb(63 214 166 / .16); color: #fff; height: 26px; font-size: 12px; padding: 0 10px; }
.live--dark .dot { background: var(--mint); }

.chip {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 38px; padding: 0 16px; border-radius: 999px;
  font-size: 14px; font-weight: 600; white-space: nowrap;
}
.chip--amber { background: var(--amber); color: var(--navy); }
.chip--ghost { color: #fff; box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / .35); transition: background-color .4s, color .4s, box-shadow .4s; }

.pill {
  display: inline-flex; align-items: center; justify-content: center;
  height: 42px; padding: 0 20px; border-radius: 999px;
  background: var(--navy); color: #fff;
  font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: background-color .25s, color .25s, transform .12s;
}
.pill:hover { background: var(--navy-900); }
.pill:active { transform: scale(.97); }

/* Store buttons. Without a link yet (pre-launch) they stay still and show no pointer. */
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.stores--center { justify-content: center; }
.store {
  display: inline-flex; align-items: center; gap: 12px;
  height: 62px; padding: 0 26px 0 20px; border-radius: 20px;
  text-decoration: none; font-weight: 600; font-size: 19px; line-height: 1.05;
  transition: transform .15s ease-out, box-shadow .2s;
}
.store[href]:hover { transform: translateY(-2px); }
.store[href]:active { transform: scale(.97); }
.store:not([href]) { cursor: default; }
.store svg { width: 28px; height: 28px; flex: none; fill: currentColor; }
.store small { display: block; font-size: 11.5px; font-weight: 500; opacity: .78; }
.store--ink { background: var(--navy); color: #fff; box-shadow: 0 16px 30px -14px rgb(0 0 0 / .45); }
.store--paper { background: #fff; color: var(--navy); box-shadow: 0 16px 30px -14px rgb(0 0 0 / .32); }

/* ---------- logomark: the still SVG until the Lottie loads, then the Lottie on top of it ---------- */
.logomark { position: relative; display: block; flex: none; aspect-ratio: 1; color: var(--mark, var(--mark-orange)); }
.logomark__still { width: 100%; height: 100%; fill: currentColor; }
/* The Lottie canvas is larger (1080 vs the SVG's 910 crop), so the player sits outside the box by the same ratio. */
.logomark__anim { position: absolute; left: -9.45%; top: -9.45%; width: 118.68%; height: 118.68%; pointer-events: none; }
.logomark.is-animated > .logomark__still { visibility: hidden; }
/* lottie writes the block as rgb(239,158,31); match its neighbour too in case a player rounds the other way */
.logomark__anim :is(path[fill="rgb(239,158,31)"], path[fill="rgb(240,158,31)"]) { fill: var(--mark, var(--mark-orange)); }
.logomark__anim path[fill="rgb(255,255,255)"] { fill: var(--mark-face, #fff); }

/* ---------- coming soon banner ---------- */
.soon {
  position: relative; z-index: 60;
  height: var(--banner-h); overflow: hidden;
  display: flex; align-items: center;
  background: #000; color: #fff;
}
.soon__track {
  display: flex; align-items: center; width: max-content;
  font-family: var(--font-display); font-size: 11px; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; white-space: nowrap;
}
.motion .soon__track { animation: marquee 28s linear infinite; }
.soon__track > * { margin-right: 18px; }
.soon__track b { font-weight: 400; font-size: 9px; color: var(--mint); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ==========================================================================
   Bar: always on a ground, the colour of whichever section is under it (home.js sets --bar, --mark and .on-dark).
   Frosted, so what passes under shows through a little.
   ========================================================================== */
.top {
  --bar: rgb(255 177 59 / .92);
  --mark: var(--navy);
  position: fixed; z-index: 50;
  top: var(--banner-left, var(--banner-h)); left: 0; right: 0;
  background-color: var(--bar);
  -webkit-backdrop-filter: saturate(1.5) blur(18px);
  backdrop-filter: saturate(1.5) blur(18px);
  color: var(--navy);
  box-shadow: 0 1px 0 rgb(26 33 64 / .08);
  transition: background-color .35s ease, color .35s ease, box-shadow .35s ease;
}
.top.on-dark { color: #fff; box-shadow: 0 1px 0 rgb(255 255 255 / .1); }
.top.on-dark .pill { background: var(--amber); color: var(--navy); }
.top__inner { display: flex; align-items: center; gap: 28px; height: var(--bar-h); }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.brand__mark { width: 36px; }
.brand .logomark { transition: color .35s ease; }
.brand__word {
  display: block; width: 76px; height: 18px; background: currentColor;
  -webkit-mask: url("../assets/img/fomo-word.png") center / contain no-repeat;
  mask: url("../assets/img/fomo-word.png") center / contain no-repeat;
}
.links { display: flex; gap: 2px; margin-left: auto; }
.links a {
  padding: 9px 13px; border-radius: 999px;
  font-size: 15px; font-weight: 600; text-decoration: none;
  opacity: .82; transition: opacity .2s, background-color .2s;
}
.links a:hover { opacity: 1; background: rgb(26 33 64 / .07); }
.top.on-dark .links a:hover { background: rgb(255 255 255 / .1); }
.links .links__cta, .burger { display: none; }

/* ==========================================================================
   Hero: amber. The words on the left; the chat and the phone on the right; the facts along the foot.
   ========================================================================== */
.hero {
  --mark-on: var(--navy);
  position: relative;
  padding-top: var(--bar-h);
  background:
    radial-gradient(48% 62% at 74% 46%, var(--amber-glow), transparent 72%),
    var(--amber);
  overflow: hidden;
}
.hero__grid {
  display: grid; grid-template-columns: 1.08fr 1fr; align-items: center; gap: 40px;
  min-height: min(calc(100svh - var(--bar-h) - var(--banner-h) - 132px), 740px);
  padding-top: 28px; padding-bottom: 36px;
}
.hero h1 {
  font-size: clamp(56px, 7.6vw, 108px);
  line-height: .9;
  letter-spacing: -.04em;
  max-width: 7.5em;
}
.hero__lede { max-width: 25em; margin-top: 28px; font-size: clamp(18px, 1.6vw, 21px); line-height: 1.5; color: var(--ink-2); }
.hero__fine { margin-top: 18px; font-size: 14px; font-weight: 500; color: var(--ink-2); }

.hero__show { display: flex; align-items: center; justify-content: center; gap: 24px; }
.phone {
  position: relative; flex: none;
  width: var(--phone-w, clamp(240px, 23vw, 300px)); padding: 10px;
  background: #0B0E18; border-radius: 50px;
  box-shadow: 0 50px 80px -30px rgb(0 0 0 / .45), 0 18px 36px -18px rgb(0 0 0 / .3), inset 0 0 0 2px #2A2F42;
}
.phone img { width: 100%; border-radius: 41px; aspect-ratio: 780 / 1688; object-fit: cover; background: #F4F5F9; }
.phone--hero { rotate: 3deg; }
.motion .phone--hero { animation: float 8s ease-in-out infinite; }
@keyframes float { 50% { translate: 0 -12px; rotate: 2deg; } }

/* The chat beside the phone: white bubbles from friends, a navy one from you, each bobbing on its own beat. */
.chat { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.bubble {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 9px 18px 9px 9px; border-radius: 24px 24px 24px 8px;
  background: #fff; color: var(--navy);
  box-shadow: 0 16px 30px -12px rgb(0 0 0 / .32);
  font-size: 16px; font-weight: 700; white-space: nowrap;
}
.bubble .av { width: 30px; height: 30px; font-size: 12px; }
.bubble--me { margin-right: 28px; padding: 11px 18px; border-radius: 24px 24px 8px 24px; background: var(--navy); color: #fff; }
.motion .bubble { animation: bob 7s ease-in-out infinite; }
.motion .bubble:nth-child(2) { animation-delay: -2.3s; }
.motion .bubble:nth-child(3) { animation-delay: -4.6s; }
@keyframes bob { 50% { translate: 0 -7px; } }

/* The facts, in darker shades of the amber, with faint rules between. Their icons pop in on load, one after another. */
.facts {
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding-top: 8px; padding-bottom: 44px;
  color: #3D2600;
  --line: rgb(90 50 0 / .2);
}
.facts li {
  display: grid; grid-template-columns: auto 1fr; column-gap: 14px; row-gap: 2px; align-content: center;
  padding: 8px 24px; border-left: 1px solid var(--line);
}
.facts li:first-child { padding-left: 0; border-left: 0; }
.facts .ico { grid-row: 1 / span 2; align-self: center; width: 34px; height: 34px; stroke-width: 1.8; color: #7A4300; }
.facts strong { align-self: end; font-family: var(--font-display); font-size: 23px; font-weight: 600; letter-spacing: -.01em; line-height: 1.1; }
.facts span { align-self: start; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #5C3600; }
.motion .facts .ico { animation: pop-in .6s var(--spring) .5s both; }
.motion .facts li:nth-child(2) .ico { animation-delay: .62s; }
.motion .facts li:nth-child(3) .ico { animation-delay: .74s; }
.motion .facts li:nth-child(4) .ico { animation-delay: .86s; }
@keyframes pop-in { from { opacity: 0; scale: .4; } }

/* ==========================================================================
   How it works: the intro, the cloud of things friends say, then one night from the plan to the photos.
   ========================================================================== */
.how { padding: 120px 0 128px; }
.intro { max-width: 900px; margin: 0 auto; text-align: center; }
.intro h2 { font-size: clamp(40px, 5.6vw, 76px); }
.intro p { max-width: 40em; margin: 28px auto 0; font-size: 20px; line-height: 1.6; color: var(--ink-2); }

.cloud {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 12px;
  max-width: 880px; margin: 44px auto 0;
}
.cloud li {
  --tilt: 0deg; --lift: 0px;
  padding: 9px 17px 10px; border-radius: 21px 21px 6px 21px;
  background: var(--amber-100); color: #6E3D00;
  font-size: 16px; font-weight: 600; line-height: 1.3; white-space: nowrap;
  rotate: var(--tilt); translate: 0 var(--lift);
  /* Pushed out of the pointer's way (home.js sets --px and --py), easing back when it leaves. */
  transform: translate(var(--px, 0px), var(--py, 0px));
  transition: transform .55s var(--ease-out);
}
.cloud li:nth-child(3n + 2) { background: var(--mint-100); color: #145A44; border-radius: 21px 21px 21px 6px; }
.cloud li:nth-child(4n + 1) { --tilt: -2.5deg; --lift: 4px; }
.cloud li:nth-child(4n + 2) { --tilt: 1.5deg; --lift: -3px; }
.cloud li:nth-child(4n + 3) { --tilt: -1deg; --lift: 6px; }
.cloud li:nth-child(4n) { --tilt: 2.5deg; --lift: -2px; }
.motion .cloud li { animation: drift 6s ease-in-out infinite; }
.motion .cloud li:nth-child(3n + 2) { animation-duration: 7.5s; animation-delay: -2s; }
.motion .cloud li:nth-child(3n) { animation-duration: 6.8s; animation-delay: -4s; }
@keyframes drift { 50% { translate: 0 calc(var(--lift) - 6px); } }

/* One night, as a fuse along four stops. A stop is dim until the night reaches it, then lights up. */
.night {
  position: relative;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px;
  margin-top: 64px; padding: 44px 40px 40px;
  border-radius: 40px;
  background:
    radial-gradient(40% 70% at 12% 0%, rgb(255 177 59 / .16), transparent 70%),
    radial-gradient(40% 70% at 95% 100%, rgb(63 214 166 / .12), transparent 70%),
    var(--navy);
  color: #fff;
  box-shadow: var(--shadow-lift), inset 0 0 0 1px rgb(255 255 255 / .06);
}
.night__stop { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; padding-top: 36px; }
/* the fuse: a faint track, and a lit segment that burns along it to each stop */
.night__stop::before {
  content: ""; position: absolute; top: 7px; left: 0; right: -28px; height: 2px;
  background: linear-gradient(90deg, var(--amber) 50%, rgb(255 255 255 / .14) 50%) right / 200% 100% no-repeat;
}
.night__stop:last-child::before { right: 0; }
.night__stop::after {
  content: ""; position: absolute; top: 0; left: 0; width: 16px; height: 16px; border-radius: 50%;
  background: var(--amber);
}
.night time { font-size: 13px; font-weight: 600; letter-spacing: .02em; color: var(--slate-300); font-variant-numeric: tabular-nums; }
.night p { font-size: 15.5px; line-height: 1.5; color: #C9CEE2; }
.night p b { color: #fff; font-weight: 600; }
.night__stop > :is(.plan-mini, .live, .shot, .developed) { min-height: 48px; }
.night__stop.shown::before { background-position: left; transition: background-position 1.3s linear; }

.motion .night__stop:not(.shown) > * { opacity: .32; }
.motion .night__stop > * { transition: opacity .5s ease; }
.motion .night__stop::after { transition: background-color .4s ease, scale .5s var(--spring); }
.motion .night__stop:not(.shown)::after { background: var(--navy-600); scale: .75; }

.plan-mini { display: flex; align-items: center; gap: 12px; padding: 8px 14px 8px 8px; border-radius: 18px; background: rgb(255 255 255 / .08); }
.plan-mini > span:last-child b { display: block; font-size: 15px; font-weight: 600; line-height: 1.2; }
.plan-mini > span:last-child small { display: block; font-size: 12.5px; color: var(--slate-300); }
.date {
  display: grid; place-content: center; text-align: center; flex: none;
  width: 44px; height: 48px; border-radius: 14px; background: var(--amber); color: var(--navy); line-height: 1;
}
.date small { font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.date b { font-size: 19px; font-weight: 700; margin-top: 2px; }
.shot, .developed {
  display: inline-flex; align-items: center; gap: 8px; align-self: flex-start;
  height: 40px; padding: 0 16px; border-radius: 999px; font-size: 14.5px; font-weight: 600; white-space: nowrap;
}
.night .live { height: 40px; align-self: flex-start; }
.shot { background: var(--amber); color: var(--navy); }
.shot .ico { width: 18px; height: 18px; }
.developed { background: #fff; color: var(--navy); }

/* ==========================================================================
   Full-bleed blocks: plan on mint, the roll on navy, the map on cream, privacy on deep navy.
   ========================================================================== */
.block { position: relative; padding: clamp(96px, 11vw, 140px) 0; overflow: hidden; }
.block--mint { --q: var(--navy); --by: #1B3F35; background: var(--mint); }
.block--night {
  --q: var(--amber); --by: var(--slate-300); --mark-on: var(--amber);
  background:
    radial-gradient(45% 55% at 22% 45%, rgb(255 177 59 / .16), transparent 70%),
    radial-gradient(40% 50% at 92% 95%, rgb(63 214 166 / .1), transparent 70%),
    var(--navy);
  color: #fff;
}
.block--cream { --q: var(--orange); background: var(--cream); }
.block--deep { --mark-on: var(--amber); background: var(--navy-900); color: #fff; }

.split { display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: clamp(48px, 7vw, 96px); }
.split--flip > .copy { order: 2; }
.quote { font-size: clamp(46px, 6.6vw, 92px); line-height: .98; }
.block .body { max-width: 30em; margin-top: 26px; font-size: 20px; line-height: 1.55; color: var(--ink-2); }
.block--mint .body { color: #1F3A33; }
.block--night .body { color: #C9CEE2; }

/* Steps of a demo (home.js shows them in turn). Without motion they're all simply there. */
.motion [data-sequence] [data-step]:not([data-step-style]) {
  transition: opacity .45s ease, translate .6s var(--ease-out), filter .6s var(--ease-out);
}
.motion [data-sequence] [data-step]:not([data-step-style]):not(.shown) { opacity: 0; translate: 0 12px; filter: blur(4px); }

/* --- plan --- */
.plan-card {
  width: 100%; max-width: 440px; justify-self: center;
  padding: 22px; border-radius: 34px; background: #fff;
  box-shadow: 0 2px 4px rgb(0 0 0 / .06), 0 40px 70px -24px rgb(0 0 0 / .38);
  rotate: 1.5deg;
}
.plan-card__head { display: flex; align-items: center; gap: 14px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.date--lg { width: 56px; height: 62px; border-radius: 18px; background: var(--amber-100); }
.date--lg b { font-size: 24px; }
.plan-card__head b { display: block; font-family: var(--font-display); font-size: 22px; font-weight: 600; letter-spacing: -.01em; line-height: 1.15; }
.plan-card__head small { display: block; margin-top: 2px; font-size: 14px; font-weight: 500; color: var(--ink-3); }
.taps { display: grid; gap: 4px; padding: 12px 0; }
.taps li { display: flex; align-items: center; gap: 12px; padding: 8px 4px; font-size: 16px; }
.taps b { font-weight: 600; }
.taps em { margin-left: auto; font-style: normal; font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.plan-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line); }
.going { font-size: 16px; font-weight: 600; color: var(--ink-2); }
.going b { font-family: var(--font-display); font-size: 26px; font-weight: 600; color: var(--ink); margin-right: 2px; font-variant-numeric: tabular-nums; }
.join { display: grid; }
.join > span {
  grid-area: 1 / 1;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-width: 112px; height: 44px; padding: 0 20px; border-radius: 999px;
  font-size: 15px; font-weight: 600;
  transition: opacity .35s ease, scale .45s var(--spring);
}
.join__off { background: var(--navy); color: #fff; }
.join__on { background: var(--mint-100); color: var(--navy); }
.join__on .ico { width: 18px; height: 18px; stroke-width: 2.6; color: var(--mint-700); }
.join__off { opacity: 0; scale: .9; }
.motion .join:not(.shown) .join__off { opacity: 1; scale: 1; }
.motion .join:not(.shown) .join__on { opacity: 0; scale: .9; }

/* --- the roll --- */
.notes { display: grid; margin-top: 32px; max-width: 30em; border-top: 1px solid rgb(255 255 255 / .12); }
.notes li { padding: 14px 0; border-bottom: 1px solid rgb(255 255 255 / .12); font-size: 16px; color: #C9CEE2; }
.notes b { color: #fff; font-weight: 600; }

.roll-stage, .map-stage { position: relative; display: grid; place-items: center; padding: 20px 0; }
.phone--tilt { rotate: -4deg; box-shadow: 0 50px 90px -30px rgb(0 0 0 / .7), inset 0 0 0 2px var(--navy-600); }
.phone--tilt-r { rotate: 4deg; }
/* The camera's flash, over the phone's screen, for one shot. */
.flash {
  position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: radial-gradient(40% 40% at 50% 45%, #fff, rgb(255 255 255 / 0) 70%);
  opacity: 0;
}
.motion .flash.shown { animation: flash .7s ease-out both; }
@keyframes flash { 0% { opacity: 0; } 12% { opacity: .95; } 100% { opacity: 0; } }

.float { position: absolute; z-index: 2; }
.float--shots {
  top: 12%; right: max(0px, calc(50% - 260px));
  display: flex; align-items: center; gap: 12px;
  padding: 12px 18px 12px 14px; border-radius: 22px;
  background: var(--amber); color: var(--navy); box-shadow: 0 24px 40px -16px rgb(0 0 0 / .6);
}
.float--shots .ico { width: 28px; height: 28px; }
.float--shots b { display: block; font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; }
.float--shots small { display: block; font-size: 13px; font-weight: 500; color: #4A3200; }
.float--dev {
  bottom: 10%; left: max(0px, calc(50% - 290px));
  display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 12px 14px;
  width: 290px; padding: 16px 18px; border-radius: 26px;
  background: #fff; color: var(--navy); box-shadow: 0 30px 50px -18px rgb(0 0 0 / .65);
}
.dev__text b { display: block; font-size: 17px; font-weight: 700; }
.dev__text small { display: block; font-size: 13px; color: var(--ink-3); }
.float--dev .bar, .float--dev .dev__labels { grid-column: 1 / -1; }
.dev__labels { display: flex; justify-content: space-between; font-size: 12.5px; font-weight: 600; color: var(--ink-3); font-variant-numeric: tabular-nums; }

/* fanned three-photo "developing" icon */
.frames { position: relative; width: 44px; height: 40px; }
.frames i {
  position: absolute; top: 2px; left: 9px; width: 26px; height: 34px; border-radius: 6px;
  border: 2px solid #fff; box-shadow: 0 2px 6px rgb(0 0 0 / .25);
  background: linear-gradient(160deg, #2A2140, #6A4FA0 60%, #C9B7F0);
}
.frames i:nth-child(1) { rotate: -16deg; translate: -7px 0; background: #111; }
.frames i:nth-child(2) { rotate: -3deg; background: #1E1E24; }
.frames i:nth-child(3) { rotate: 12deg; translate: 8px 0; }

.bar { position: relative; display: block; height: 8px; border-radius: 99px; background: #E3E5EE; }
.bar__fill { position: absolute; inset: 0 auto 0 0; width: 30%; border-radius: inherit; background: var(--amber); transition: width 1s linear; }

/* --- the map --- */
.perks { display: grid; margin-top: 30px; max-width: 30em; border-top: 1px solid var(--line); }
.perks > div { display: grid; grid-template-columns: 11em 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.perks dt { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16px; }
.perks dt .ico { width: 20px; height: 20px; color: #B86E00; }
.perks dd { font-size: 15.5px; color: var(--ink-2); }

.sip {
  position: absolute; z-index: 2; bottom: 12%; left: max(0px, calc(50% - 280px));
  display: grid; gap: 3px; width: 256px; padding: 16px; border-radius: 26px;
  background: var(--navy); color: #fff; box-shadow: 0 30px 50px -18px rgb(0 0 0 / .5);
}
.sip__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.sip__top .av { width: 28px; height: 28px; font-size: 11px; }
.sip b { font-size: 19px; font-weight: 700; letter-spacing: -.01em; }
.sip small { font-size: 13px; color: var(--slate-300); }
.sip__btns { display: flex; gap: 8px; margin-top: 12px; }
.sip__btns .chip { flex: 1; height: 38px; padding: 0 8px; font-size: 13.5px; }
/* "Say cheers" gets pressed once the Sip is up (and is simply pressed without motion). */
.sip .chip--ghost { background: var(--mint); color: var(--navy); box-shadow: none; }
.motion .sip .chip--ghost:not(.shown) { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / .35); }

/* ==========================================================================
   The reveal: the story of the night, card by card, moving on with a spring (home.js).
   ========================================================================== */
/* The morning after: a soft amber ground of its own. */
.reveal { padding: 140px 0 120px; text-align: center; background: var(--amber-100); }
.reveal__copy p { color: #4A3A1E; }
.reveal__copy { max-width: 1000px; }
.reveal h2 { font-size: clamp(42px, 5.8vw, 80px); }
.swap-line { display: block; white-space: nowrap; }
/* The word that changes with the card: a soft orange marker swipe under it. */
.swap-word { position: relative; display: inline-block; z-index: 0; }
.swap-word::after {
  content: ""; position: absolute; z-index: -1;
  left: -.06em; right: -.08em; bottom: .04em; height: .32em;
  background: var(--amber); border-radius: 6px; rotate: -1.5deg; skew: -8deg 0deg;
}
.swap-word.swap { animation: pop .5s var(--spring); }
@keyframes pop { from { opacity: 0; translate: 0 .18em; } }
.reveal__copy p { max-width: 36em; margin: 28px auto 0; font-size: 20px; line-height: 1.55; }

.stories {
  --card-w: clamp(220px, 22vw, 280px);
  --gap: 24px;
  position: relative; margin-top: 64px;
}
/* Without JS (or before it runs): a plain row you can scroll sideways. */
.stories__track {
  display: flex; gap: var(--gap); padding: 20px var(--gutter) 40px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
}
.story {
  position: relative; flex: none; scroll-snap-align: center;
  display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; gap: 6px;
  width: var(--card-w); aspect-ratio: 9 / 16; padding: 26px 24px;
  border-radius: 32px; text-align: left;
  box-shadow: var(--shadow-lift);
  overflow: hidden;
}
.story b { font-family: var(--font-display); font-size: 34px; font-weight: 600; letter-spacing: -.02em; line-height: 1.05; }
.story span { font-size: 15px; font-weight: 500; }
/* What each award card shows above the name: the votes, who shot the most, the chat that settled it. */
.story:is(.story--mvp, .story--pap, .story--chaos) > :first-child { margin-bottom: auto; }
.votes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: 100%; }
.votes i {
  display: grid; place-items: center; aspect-ratio: 1; border-radius: 50%;
  background: var(--navy); color: #fff; font-style: normal; font-weight: 700; font-size: 20px;
}
.votes i.off { background: rgb(255 255 255 / .6); color: var(--navy); }
.shots { display: flex; align-items: flex-end; gap: 8px; width: 100%; height: 46%; }
.shots li { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; height: 100%; }
.shots i { width: 100%; height: calc(var(--n) / 38 * 100%); min-height: 6px; border-radius: 8px 8px 4px 4px; background: rgb(75 53 146 / .28); }
.shots i.lead { background: var(--lilac-ink); }
.shots span { font-size: 12px; font-weight: 700; color: var(--lilac-ink); }
.mini-chat { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.mini-chat > span { max-width: 92%; padding: 9px 13px; font-size: 14px; font-weight: 600; line-height: 1.3; }
.mini-chat__them { align-self: flex-start; background: #fff; color: var(--navy); border-radius: 18px 18px 18px 6px; }
.mini-chat__me { align-self: flex-end; background: var(--navy); color: #fff; border-radius: 18px 18px 6px 18px; }
.story--route { background: var(--amber); }
.story__map { position: absolute; inset: 24px 24px auto; width: calc(100% - 48px); fill: var(--navy); }
.story__map path { fill: none; stroke: var(--navy); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 8 9; }
.story__map circle:last-child { fill: #fff; stroke: var(--navy); stroke-width: 4; }
.story--count { --ink: #fff; background: var(--navy); color: #fff; justify-content: center; }
.story__big { font-size: 112px !important; line-height: .9 !important; letter-spacing: -.05em !important; color: var(--amber); }
.story--mvp { background: var(--mint); }
.story--pap { background: var(--lilac); }
.story--pap .story__ico { color: var(--lilac-ink); }
.story--chaos { background: var(--coral); }
.story--keep { background: #fff; justify-content: center; align-items: center; gap: 18px; }
.keep__frame {
  width: 78%; aspect-ratio: 3 / 4; border-radius: 16px; border: 8px solid #fff;
  background: linear-gradient(150deg, #262E55, #6A4FA0 45%, #F0A023 85%);
  box-shadow: 0 18px 30px -14px rgb(0 0 0 / .4);
  rotate: -3deg;
}
.motion .keep__frame { animation: swipe 3.2s var(--ease-out) infinite; }
@keyframes swipe { 0%, 30% { translate: 0 0; rotate: -3deg; } 60%, 75% { translate: 26% 0; rotate: 9deg; } 100% { translate: 0 0; rotate: -3deg; } }
.keep__btns { display: flex; gap: 10px; }
.keep__btns span { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 16px; border-radius: 999px; background: #fff; color: var(--navy); font-size: 14px; font-weight: 600; }
.keep__btns span:last-child { background: var(--navy); color: #fff; }
.keep__btns .ico { width: 16px; height: 16px; }

/* Live: the cards sit in a row through the middle, one at the front; site script moves them with a spring. */
.stories.is-live { height: calc(var(--card-w) * 16 / 9 + 80px); overflow: hidden; }
.stories.is-live .stories__track { position: absolute; inset: 0; display: block; padding: 0; overflow: visible; }
.stories.is-live .story {
  position: absolute; top: 40px; left: calc(50% - var(--card-w) / 2);
  will-change: transform;
}
.stories__dots { display: flex; justify-content: center; gap: 6px; margin-top: 8px; }
.stories__dots i { position: relative; width: 34px; height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.stories__dots i::after { content: ""; position: absolute; inset: 0; background: var(--ink); transform-origin: left; scale: var(--fill, 0) 1; }
.stories__dots i.run::after { transition: scale 3.4s linear; }

/* ==========================================================================
   Games: the intro, then one grid with each game on its own colour.
   ========================================================================== */
.games { padding: 40px 0 120px; }
.games__head { max-width: 860px; margin: 0 auto 56px; text-align: center; }
.games__head h2 { font-size: clamp(42px, 5.6vw, 76px); }
.games__head p { max-width: 36em; margin: 24px auto 0; font-size: 20px; line-height: 1.55; color: var(--ink-2); }

.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; }
.tile {
  position: relative; display: flex; flex-direction: column;
  min-height: 520px; padding: 44px 40px 40px; border-radius: 40px; overflow: hidden;
}
.tile .quote { font-size: clamp(34px, 3.4vw, 48px); line-height: 1.02; }
.tile .by { margin-top: 14px; font-size: 15px; }
.tile .body { max-width: 28em; margin: 14px 0 32px; font-size: 17px; line-height: 1.5; color: var(--ink-2); }
.tile > :last-child { margin-top: auto; }

.tile--golf { --q: var(--mint); --by: #E6F8F1; grid-column: span 7; background: var(--mint-700); color: #fff; }
.tile--golf .body { color: #EEFAF5; }
.tile--bingo { --q: var(--navy); --by: #4A2C00; grid-column: span 5; background: linear-gradient(155deg, var(--amber) 0%, var(--orange) 55%, #F7815A 100%); }
.tile--bingo .body { color: #3B2600; }
.tile--party { --q: var(--lilac-ink); --by: #3E2F78; grid-column: span 5; background: var(--lilac); }
.tile--party .body { color: #2E2A55; }
.tile--own { --q: #fff; --by: #4A1610; grid-column: span 7; background: var(--coral); }
.tile--own .body { color: #3A130E; }
.tile--plus { --q: var(--amber); grid-column: span 12; background: var(--navy); color: #fff; }
.tile--plus .body { color: #C9CEE2; margin-bottom: 0; }

.tile--wide { flex-direction: row; align-items: center; justify-content: space-between; gap: 48px; min-height: 0; padding: 52px 56px; }
.tile--wide > :last-child { margin-top: 0; }
.tile__copy { max-width: 34em; }

.board {
  display: grid; width: 100%; max-width: 420px; padding: 8px 20px;
  border-radius: 26px; background: #fff; color: var(--navy); box-shadow: 0 24px 40px -20px rgb(0 0 0 / .45);
}
.board li { display: flex; align-items: center; gap: 12px; padding: 12px 0; font-weight: 600; }
.board li + li { border-top: 1px solid var(--line); }
.board .av { width: 30px; height: 30px; font-size: 12px; }
.board b { margin-left: auto; display: grid; font-family: var(--font-display); font-size: 20px; font-variant-numeric: tabular-nums; }
.board li:first-child b { color: var(--mint-700); }
.board b > span { grid-area: 1 / 1; text-align: right; transition: opacity .35s ease, translate .5s var(--ease-out); }
.board .was { opacity: 0; translate: 0 -10px; }
.motion .board .now:not(.shown) { opacity: 0; translate: 0 10px; }
.motion .board__slip:not(:has(.now.shown)) .was { opacity: 1; translate: 0 0; }
.board__slip b { color: #C2410C; }

.bingo {
  position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
  width: 100%; max-width: 280px; padding: 14px; border-radius: 24px; background: #fff;
  box-shadow: 0 24px 40px -20px rgb(0 0 0 / .35);
}
.bingo i { aspect-ratio: 1; border-radius: 10px; background: #F2F3F8; }
.bingo i.on { background: var(--amber-100); }
.bingo i[data-step] { background: var(--mint); }
.motion .bingo i[data-step] { transition: background-color .3s ease, scale .45s var(--spring); }
.motion .bingo i[data-step]:not(.shown) { background: #F2F3F8; scale: .85; }
.bingo__win {
  position: absolute; left: 50%; bottom: -18px; translate: -50% 0;
  height: 36px; padding: 0 16px; border-radius: 999px; display: inline-flex; align-items: center;
  background: var(--navy); color: #fff; font-size: 14px; font-weight: 600; white-space: nowrap;
}
.motion .bingo__win { transition: opacity .4s ease, translate .6s var(--spring); }
.motion .bingo__win:not(.shown) { opacity: 0; translate: -50% 12px; }

.games-list { display: flex; flex-wrap: wrap; gap: 8px; }
.games-list li {
  display: inline-flex; align-items: center; height: 38px; padding: 0 16px; border-radius: 999px;
  background: #fff; color: var(--navy); font-size: 14.5px; font-weight: 600; white-space: nowrap;
  box-shadow: 0 8px 16px -10px rgb(0 0 0 / .3);
}
.games-list li:nth-child(odd) { rotate: -1.5deg; }
.games-list li:nth-child(3n) { rotate: 1.5deg; background: var(--lilac-ink); color: #fff; }

.rules { display: grid; gap: 8px; width: 100%; max-width: 360px; }
.rule {
  display: flex; align-items: center; gap: 12px; height: 48px; padding: 0 16px; border-radius: 16px;
  background: #fff; color: var(--navy); font-size: 15px; font-weight: 600;
  box-shadow: 0 10px 20px -14px rgb(0 0 0 / .35);
}
.rule i { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--mint-100); }
.rule i .ico { width: 14px; height: 14px; stroke-width: 3; color: var(--mint-700); }
.rule--add { background: transparent; box-shadow: inset 0 0 0 1.5px rgb(58 19 14 / .3); color: #3A130E; justify-content: center; gap: 8px; }
.rule--add .ico { width: 18px; height: 18px; }

.plus-list { display: grid; gap: 10px; flex: none; }
.plus-list li { display: flex; align-items: center; gap: 12px; height: 52px; padding: 0 22px 0 16px; border-radius: 999px; background: rgb(255 255 255 / .08); font-weight: 600; font-size: 16px; }
.plus-list .ico { width: 22px; height: 22px; color: var(--amber); }

/* ==========================================================================
   Privacy: four promises, said big.
   ========================================================================== */
.privacy__title { font-size: clamp(46px, 6.6vw, 96px); max-width: 9em; }
.promises { margin-top: 64px; border-top: 1px solid rgb(255 255 255 / .14); }
.promises li {
  display: grid; grid-template-columns: 1.2fr 1fr; align-items: baseline; gap: 16px 48px;
  padding: 28px 0; border-bottom: 1px solid rgb(255 255 255 / .14);
}
.promises b { font-family: var(--font-display); font-size: clamp(30px, 3.8vw, 52px); font-weight: 600; letter-spacing: -.025em; line-height: 1.05; }
.promises li:nth-child(odd) b { color: var(--amber); }
.promises li:nth-child(even) b { color: var(--mint); }
.promises p { font-size: 17.5px; line-height: 1.55; color: #C9CEE2; max-width: 30em; }

/* ==========================================================================
   Questions: the heading on the left, held while the list scrolls; each answer opens under its question.
   ========================================================================== */
.faq { display: grid; grid-template-columns: 1fr 1.45fr; gap: 64px; padding-top: 128px; padding-bottom: 128px; }
.faq__head { position: sticky; top: calc(var(--bar-h) + 40px); align-self: start; }
.faq h2 { font-size: clamp(42px, 5vw, 68px); }
.faq__head p { margin-top: 20px; font-size: 17px; color: var(--ink-2); }
.faq__head a, .faq details a { color: inherit; font-weight: 600; text-decoration-color: var(--orange); }
.faq__list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 24px 0; font-size: 19px; font-weight: 600; cursor: pointer; list-style: none;
  transition: color .2s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%;
  background: var(--amber) center / 14px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231A2140' stroke-width='3.4' stroke-linecap='round'%3E%3Cpath d='M12 4v16M4 12h16'/%3E%3C/svg%3E");
  transition: rotate .3s var(--ease-out);
}
.faq details[open] summary::after { rotate: 45deg; }
.faq summary:hover { color: var(--ink-2); }
.faq details p { padding: 0 48px 26px 0; font-size: 17px; line-height: 1.6; color: var(--ink-2); max-width: 40em; }
/* Answers slide open where the browser can animate it; elsewhere they simply open. */
.motion .faq details::details-content { block-size: 0; overflow: hidden; transition: block-size .35s var(--ease-out), content-visibility .35s allow-discrete; }
.motion .faq details[open]::details-content { block-size: auto; }

/* ==========================================================================
   Closing: amber again, the logomark, a note from the team, and the store buttons.
   ========================================================================== */
.closing {
  --mark-on: var(--navy);
  display: flex; flex-direction: column; align-items: center;
  padding: 120px var(--gutter) 140px; text-align: center;
  background:
    radial-gradient(50% 45% at 50% 24%, var(--amber-glow), transparent 70%),
    var(--amber);
}
.closing__mark { --mark: var(--navy); width: min(180px, 44vw); margin-bottom: 36px; filter: drop-shadow(0 26px 30px rgb(0 0 0 / .25)); }
.closing h2 { max-width: 12em; font-size: clamp(44px, 6.4vw, 92px); line-height: .95; letter-spacing: -.035em; }
.note {
  max-width: 560px; margin: 40px 0 6px; padding: 22px 26px 20px;
  border-radius: 26px 26px 26px 8px; background: #fff; text-align: left;
  box-shadow: 0 22px 40px -18px rgb(0 0 0 / .32);
}
.note p { font-size: 17.5px; line-height: 1.55; color: var(--ink-2); }
.note a { color: var(--navy); font-weight: 600; text-decoration-color: var(--orange); }
.note__sign { margin-top: 10px; font-size: 15px !important; font-weight: 700; color: var(--ink) !important; }
.closing__fine { margin-top: 18px; font-size: 14px; font-weight: 500; color: var(--ink-2); }

/* ---------- footer ---------- */
.foot { --mark-on: var(--amber); background: var(--navy-900); color: var(--slate-300); padding: 64px 0 36px; }
.foot__inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 32px; }
.foot__brand img { height: 34px; width: auto; }
.foot__brand p { margin-top: 14px; font-size: 15px; }
.foot__links { display: flex; flex-wrap: wrap; gap: 14px 28px; }
.foot__links a { text-decoration: none; font-size: 15px; font-weight: 500; transition: color .2s; }
.foot__links a:hover { color: #fff; }
.foot__legal {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px;
  margin-top: 48px; padding-top: 24px; border-top: 1px solid rgb(255 255 255 / .08);
  font-size: 13px; color: #8E95B2;
}
.foot__legal p:first-child { max-width: 46em; }
.foot__legal a { color: var(--slate-300); text-decoration-color: rgb(169 175 200 / .4); }
.foot__legal a:hover { color: #fff; }

/* ---------- coming up on scroll ---------- */
.motion [data-reveal] { opacity: 0; translate: 0 28px; transition: opacity .7s ease, translate .8s var(--ease-out); }
.motion [data-reveal].in { opacity: 1; translate: 0 0; }
.promises li:nth-child(2) { transition-delay: .06s; }
.promises li:nth-child(3) { transition-delay: .12s; }
.promises li:nth-child(4) { transition-delay: .18s; }
[data-count] { font-variant-numeric: tabular-nums; }

/* ==========================================================================
   Dark mode: the page's own ground goes dark; the coloured grounds keep their colours.
   ========================================================================== */
@media (prefers-color-scheme: dark) {
  .hero, .closing { --amber-glow: #FFBF52; }
  .block--cream { --q: var(--amber); background: var(--navy-700); color: var(--ink); }
  .block--cream { --ink: #F2F3F9; --ink-2: #C6CADC; --ink-3: #A0A6C0; --line: rgb(255 255 255 / .12); }
  .perks dt .ico { color: var(--amber); }
  .block--deep { background: #151B34; }
  .night { box-shadow: var(--shadow-lift), inset 0 0 0 1px rgb(255 255 255 / .1); background-color: var(--navy-700); }
  .cloud li { background: rgb(255 177 59 / .16); color: #FFD9A0; }
  .cloud li:nth-child(3n + 2) { background: rgb(63 214 166 / .14); color: #A8EED6; }
  .swap-word { color: var(--amber); }
  .swap-word::after { background: rgb(255 177 59 / .22); }
  .reveal { background: #1E2547; }
  .reveal__copy p { color: var(--ink-2); }
  .story--count { background: var(--navy-600); }
  .tile--plus { background: var(--navy-700); }
  .faq summary::after { background-color: var(--amber); }
  .foot { background: #0A0E1D; }
  .stories__dots i::after { background: var(--amber); }
}

/* ==========================================================================
   Narrower screens
   ========================================================================== */
@media (max-width: 1200px) {
  .facts { grid-template-columns: repeat(2, 1fr); row-gap: 20px; }
  .facts li:nth-child(3) { padding-left: 0; border-left: 0; }
  .links a { padding: 9px 9px; font-size: 14.5px; }
  .top__inner { gap: 18px; }
}

@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; min-height: 0; padding-top: 48px; text-align: center; justify-items: center; }
  .hero h1 { margin: 0 auto; }
  .hero__lede { margin-left: auto; margin-right: auto; }
  .stores { justify-content: center; }
  .split, .split--flip { grid-template-columns: 1fr; }
  .split--flip > .copy { order: 0; }
  .night { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .night__stop:nth-child(2)::before { right: 0; }
  .bento > .tile { grid-column: span 12; min-height: 0; }
  .tile--wide { flex-direction: column; align-items: flex-start; padding: 44px 40px 40px; }
  .faq { grid-template-columns: 1fr; gap: 28px; }
  .faq__head { position: static; }
  .promises li { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .top__inner { gap: 12px; }
  .top__cta { margin-left: auto; }
  .burger {
    display: grid; place-content: center; gap: 6px; width: 44px; height: 44px;
    border: 0; border-radius: 50%; background: rgb(26 33 64 / .08);
  }
  .top.on-dark .burger { background: rgb(255 255 255 / .12); }
  .burger span { display: block; width: 18px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .25s; }
  .top.is-open .burger span:first-child { transform: translateY(4px) rotate(45deg); }
  .top.is-open .burger span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .links {
    position: absolute; top: calc(100% + 8px); left: 12px; right: 12px; margin: 0;
    display: none; flex-direction: column; gap: 0; padding: 8px 20px 20px;
    border-radius: 28px; background: #fff; color: var(--navy);
    box-shadow: 0 0 0 1px rgb(26 33 64 / .06), 0 24px 48px rgb(15 20 40 / .22);
  }
  .top.is-open .links { display: flex; }
  .links a { padding: 14px 4px; border-radius: 0; font-size: 18px; opacity: 1; border-bottom: 1px solid #E3E5EE; }
  .links a:hover, .top.on-dark .links a:hover { background: none; }
  .links .links__cta {
    display: flex; justify-content: center; margin-top: 16px; padding: 14px; border: 0; border-radius: 999px;
    background: var(--navy); color: #fff;
  }
}

@media (max-width: 640px) {
  :root { --gutter: 20px; --bar-h: 64px; }
  body { font-size: 16px; }
  .top__cta { display: none; }
  .burger { margin-left: auto; }
  .brand__mark { width: 32px; }
  .brand__word { width: 68px; height: 16px; }

  .hero__grid { padding-top: 36px; padding-bottom: 56px; gap: 36px; }
  .hero__show { flex-direction: column-reverse; gap: 20px; --phone-w: min(250px, 66vw); }
  .chat { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 8px; }
  .bubble { font-size: 14px; }
  .bubble--me { margin-right: 0; }
  .stores { flex-wrap: nowrap; gap: 10px; width: 100%; }
  .store { flex: 1 1 0; min-width: 0; justify-content: center; gap: 8px; height: 56px; padding: 0 10px; border-radius: 16px; font-size: 15px; white-space: nowrap; }
  .store svg { width: 22px; height: 22px; }
  .store small { font-size: 10px; }
  .facts { grid-template-columns: 1fr; row-gap: 0; padding-bottom: 32px; }
  .facts li { padding: 14px 0; border-left: 0; border-top: 1px solid var(--line); }
  .facts li:first-child { border-top: 0; }
  .facts strong { font-size: 21px; }

  .how { padding: 88px 0 96px; }
  .intro p, .games__head p, .reveal__copy p { font-size: 18px; }
  .cloud { gap: 10px 8px; }
  .cloud li { font-size: 14.5px; padding: 8px 14px 9px; }
  .cloud .long { display: none; }
  /* The night goes down the page, the fuse running along the left. */
  .night { grid-template-columns: 1fr; gap: 0; padding: 32px 24px 12px 24px; border-radius: 32px; }
  .night__stop { padding: 0 0 32px 34px; gap: 12px; }
  .night__stop::before { top: 16px; bottom: 0; left: 7px; right: auto; width: 2px; height: auto; background: linear-gradient(180deg, var(--amber) 50%, rgb(255 255 255 / .14) 50%) bottom / 100% 200% no-repeat; }
  .night__stop.shown::before { background-position: top; }
  .night__stop:nth-child(2)::before { right: auto; }
  .night__stop:last-child::before { display: none; }

  .block { padding: 88px 0; }
  .block .body { font-size: 18px; }
  .quote q::before { margin-left: -.12em; }
  .phone { --phone-w: min(240px, 64vw); border-radius: 44px; padding: 9px; }
  .phone img { border-radius: 36px; }
  .float--shots { right: 0; top: 6%; }
  .float--dev { left: 0; width: 260px; bottom: 4%; }
  .sip { left: 0; bottom: 6%; width: 232px; }
  .perks > div { grid-template-columns: 1fr; gap: 4px; }
  .plan-card { rotate: 0deg; padding: 18px; border-radius: 28px; }

  .reveal { padding: 96px 0 88px; }
  .swap-line { white-space: normal; }
  .stories { --card-w: min(230px, 62vw); --gap: 14px; margin-top: 44px; }
  .story b { font-size: 30px; }
  .story__big { font-size: 92px !important; }

  .games { padding-bottom: 88px; }
  .tile { padding: 34px 26px 30px; border-radius: 32px; }
  .tile--wide { padding: 34px 26px 30px; }
  .plus-list li { height: auto; min-height: 52px; padding: 12px 18px 12px 14px; border-radius: 20px; }

  .promises { margin-top: 44px; }
  .faq { padding-top: 96px; padding-bottom: 96px; }
  .faq summary { font-size: 17.5px; }
  .faq details p { padding-right: 0; }
  .closing { padding: 96px var(--gutter) 104px; }
}
