/* Crosswold tester page. The game's own type (Baloo 2 for display, Nunito for
   text) and colours (cream tiles, coral for the next action, teal for done,
   navy from the mark). Corner radii: cards 24px, buttons 16px, tiles 12px,
   small chips fully round. */

@font-face {
  font-family: "Baloo 2";
  src: url("assets/fonts/baloo-2-latin-800-normal.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("assets/fonts/nunito-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("assets/fonts/nunito-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("assets/fonts/nunito-latin-800-normal.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
}

:root {
  color-scheme: light;
  --bg: #fff6dc;
  --surface: #fffbef;
  --ink: #4c2a15;
  --ink-2: #6e4628;
  --line: #ecd39d;
  --coral: #e9572f;
  --coral-edge: #a8401f;
  --teal: #1d786f;
  --teal-edge: #145a53;
  --gold: #ffcf63;
  --tile: #fff4d6;
  --tile-edge: #d4a95c;
  --navy: #14283a;
  --navy-2: #0f2130;
  --cream-text: #fff4d6;
  --tip-bg: #fff0c4;
  --voice-bg: #d9f0ea;
  --free-bg: #ffe3d4;
  --shadow: 0 22px 44px -24px rgba(76, 42, 21, 0.45);
  --spring: cubic-bezier(0.16, 1, 0.3, 1);
  --r-card: 24px;
  --r-btn: 16px;
  --r-tile: 12px;
  --gutter: clamp(16px, 4vw, 32px);
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #0f2130;
    --surface: #172f45;
    --ink: #fff4d6;
    --ink-2: #d9ccad;
    --line: #2a4862;
    --tip-bg: #1b3247;
    --voice-bg: #16393f;
    --free-bg: #3a2a28;
    --shadow: 0 22px 44px -22px rgba(0, 0, 0, 0.6);
  }
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}
html.lang-pending body {
  visibility: hidden;
}
body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--ink);
  font:
    600 1.0625rem/1.6 "Nunito",
    system-ui,
    sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img,
video,
svg {
  display: block;
  max-width: 100%;
}
h1,
h2,
h3 {
  font-family: "Baloo 2", system-ui, sans-serif;
  font-weight: 800;
  line-height: 1.08;
  margin: 0;
  text-wrap: balance;
}
h2 {
  font-size: clamp(2rem, 4.2vw, 3rem);
  letter-spacing: -0.01em;
}
h3 {
  font-size: 1.35rem;
  line-height: 1.15;
}
p {
  margin: 0;
  text-wrap: pretty;
}
a {
  color: inherit;
}
p a,
.faq-list a {
  color: var(--coral-edge);
  font-weight: 800;
  text-underline-offset: 3px;
}
@media (prefers-color-scheme: dark) {
  p a,
  .faq-list a {
    color: var(--gold);
  }
}
button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}
:focus-visible {
  outline: 3px solid #2f86d8;
  outline-offset: 3px;
}
.invite :focus-visible,
.foot :focus-visible,
.cell-days :focus-visible {
  outline-color: var(--gold);
}
@media (prefers-color-scheme: dark) {
  :focus-visible {
    outline-color: var(--gold);
  }
}
.i {
  width: 1.2em;
  height: 1.2em;
  flex: none;
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.wrap {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 30;
  padding: 10px 16px;
  border-radius: var(--r-btn);
  background: var(--navy);
  color: var(--cream-text);
  font-weight: 800;
}
.skip:focus {
  top: 12px;
}

/* Buttons: a tile face over a darker edge, pressed down on tap. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  padding: 0.82em 1.3em 0.78em;
  border-radius: var(--r-btn);
  font:
    800 1.12rem/1 "Baloo 2",
    system-ui,
    sans-serif;
  text-decoration: none;
  white-space: nowrap;
  transition:
    transform 0.18s var(--spring),
    box-shadow 0.18s var(--spring),
    background-color 0.25s,
    color 0.25s;
  -webkit-user-select: none;
  user-select: none;
}
.btn .i {
  width: 1.25em;
  height: 1.25em;
  margin-top: -0.1em;
}
.btn-coral {
  background: var(--coral);
  color: #fffaf0;
  box-shadow:
    0 5px 0 var(--coral-edge),
    0 14px 24px -12px rgba(168, 64, 31, 0.7);
}
.btn-cream {
  background: var(--tile);
  color: #4c2a15;
  box-shadow:
    0 5px 0 var(--tile-edge),
    0 14px 24px -14px rgba(76, 42, 21, 0.6);
}
.btn-outline {
  color: var(--cream-text);
  box-shadow: inset 0 0 0 2px rgba(255, 244, 214, 0.55);
}
.btn-sm {
  font-size: 1rem;
  padding: 0.66em 1em 0.6em;
  border-radius: 14px;
}
.btn-lg {
  font-size: 1.22rem;
  padding: 0.9em 1.45em 0.84em;
}
@media (hover: hover) {
  .btn-coral:hover,
  .btn-cream:hover {
    transform: translateY(-2px);
  }
  .btn-coral:hover {
    box-shadow:
      0 7px 0 var(--coral-edge),
      0 18px 26px -12px rgba(168, 64, 31, 0.7);
  }
  .btn-cream:hover {
    box-shadow:
      0 7px 0 var(--tile-edge),
      0 18px 26px -14px rgba(76, 42, 21, 0.6);
  }
  .btn-outline:hover {
    box-shadow: inset 0 0 0 2px var(--cream-text);
  }
}
.btn-coral:active,
.btn-cream:active {
  transform: translateY(4px);
  box-shadow: 0 1px 0 var(--coral-edge);
}
.btn-cream:active {
  box-shadow: 0 1px 0 var(--tile-edge);
}
.btn-outline:active {
  transform: scale(0.98);
}

/* Top bar: the game's cream plates floating over the page. */
.topbar {
  position: fixed;
  inset: 12px 0 auto;
  z-index: 20;
  pointer-events: none;
}
.topbar-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.topbar-inner > * {
  pointer-events: auto;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font:
    800 1.35rem/1 "Baloo 2",
    system-ui,
    sans-serif;
}
.topbar .brand {
  padding: 6px 16px 6px 6px;
  border-radius: 18px;
  background: var(--tile);
  color: #4c2a15;
  box-shadow:
    0 4px 0 var(--tile-edge),
    0 12px 24px -12px rgba(15, 33, 48, 0.5);
}
.brand img {
  border-radius: 10px;
}
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.lang {
  display: flex;
  padding: 4px;
  border-radius: 999px;
  background: var(--tile);
  box-shadow:
    0 4px 0 var(--tile-edge),
    0 12px 24px -12px rgba(15, 33, 48, 0.5);
}
.lang button {
  min-width: 44px;
  min-height: 36px;
  padding: 0 10px;
  border-radius: 999px;
  font:
    800 0.95rem/1 "Nunito",
    system-ui,
    sans-serif;
  color: #6e4628;
  transition:
    background-color 0.2s,
    color 0.2s;
}
.lang button[aria-pressed="true"] {
  background: #4c2a15;
  color: var(--tile);
}

/* Hero: the illustrated world, words in the open sky on the left. */
/* Like the store's feature graphic: the art sits to the right at its own
   proportions, and a blurred copy of it carries the sky across to the left. */
.hero {
  position: relative;
  isolation: isolate;
  height: clamp(620px, 47vw, 800px);
  max-height: max(620px, 100dvh);
  display: grid;
  align-items: center;
  overflow: hidden;
  background: #0a72cc;
  color: var(--cream-text);
}
.hero::after {
  content: "";
  position: absolute;
  inset: -60px;
  z-index: -3;
  background: url("assets/img/hero-1100.webp") 0% 35% / cover no-repeat;
  filter: blur(26px) saturate(1.1);
}
.hero-art {
  position: absolute;
  top: 0;
  right: -7vw;
  z-index: -2;
  width: auto;
  max-width: none;
  height: 100%;
  aspect-ratio: 1800 / 878;
  object-fit: cover;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 20%);
  mask-image: linear-gradient(90deg, transparent 0, #000 20%);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(
      90deg,
      rgba(10, 40, 72, 0.5) 0%,
      rgba(10, 40, 72, 0.22) 38%,
      rgba(10, 40, 72, 0) 55%
    ),
    linear-gradient(0deg, rgba(10, 40, 72, 0.22), rgba(10, 40, 72, 0) 26%);
}
.hero-copy {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 96px var(--gutter) 56px;
}
.hero-copy > * {
  max-width: 600px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 11px;
  border-radius: 999px;
  background: rgba(15, 33, 48, 0.55);
  box-shadow: inset 0 0 0 1.5px rgba(255, 244, 214, 0.35);
  font:
    800 0.95rem/1 "Nunito",
    system-ui,
    sans-serif;
  letter-spacing: 0.01em;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.chip .i {
  color: var(--gold);
}
.hero h1 {
  margin: 20px 0 18px;
  font-size: clamp(2.7rem, 4.3vw, 4.1rem);
  line-height: 1.04;
  max-width: 640px;
  color: var(--tile);
  -webkit-text-stroke: 9px #4c2a15;
  paint-order: stroke fill;
  text-shadow: 0 6px 0 #4c2a15;
}
.hero-sub {
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  font-weight: 700;
  line-height: 1.5;
  max-width: 31ch !important;
  text-shadow: 0 2px 10px rgba(10, 40, 72, 0.75);
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 16px;
  margin-top: 30px;
}

/* Steps */
.steps {
  padding: clamp(72px, 9vw, 120px) 0 clamp(72px, 9vw, 112px);
}
.steps-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 12px 24px;
}
.progress {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--ink-2);
}
.progress-tiles {
  display: inline-flex;
  gap: 4px;
}
.progress-tiles i {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: var(--tile);
  box-shadow: 0 2px 0 var(--tile-edge);
  transition:
    background-color 0.3s,
    box-shadow 0.3s;
}
.progress-tiles i.on {
  background: var(--teal);
  box-shadow: 0 2px 0 var(--teal-edge);
}
.pre-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 16px;
  margin-top: 24px;
}
.tip {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 20px;
  border-radius: var(--r-card);
  background: var(--tip-bg);
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--gold) 70%, transparent);
  font-size: 1.1rem;
}
.tip .i {
  width: 1.45em;
  height: 1.45em;
  margin-top: 1px;
  color: var(--coral);
}
.tip strong {
  font-weight: 800;
}
.device-note {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px 20px;
  border-radius: var(--r-card);
  background: var(--surface);
  box-shadow: inset 0 0 0 2px var(--line);
}
.device-note[hidden] {
  display: none;
}
.device-note h3 {
  font-size: 1.2rem;
  margin-bottom: 4px;
}
.device-note p {
  color: var(--ink-2);
  font-size: 1rem;
}
.qr-plate {
  flex: none;
  padding: 8px;
  border-radius: 16px;
  background: #fff8e6;
  box-shadow: 0 4px 0 var(--tile-edge);
}
.qr-plate img {
  width: 116px;
  height: 116px;
}
.note-icon {
  width: 2.2em;
  height: 2.2em;
  color: var(--ink-2);
}

.step-list {
  list-style: none;
  margin: 36px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  align-items: start;
}
.step {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 24px;
  border-radius: var(--r-card);
  background: var(--surface);
  box-shadow:
    inset 0 0 0 2px var(--line),
    var(--shadow);
  transition:
    transform 0.45s var(--spring),
    box-shadow 0.3s;
}
.step-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
}
.step-body p {
  color: var(--ink-2);
  font-size: 1rem;
}
.step-body b {
  color: var(--ink);
  font-weight: 800;
}
.step-btn {
  margin-top: 8px;
  max-width: 100%;
}
.step-btn span:not(.sr) {
  overflow: hidden;
  text-overflow: ellipsis;
}
.step-state {
  display: none;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--teal);
  color: #fffaf0 !important;
  font:
    800 0.85rem/1.2 "Nunito",
    system-ui,
    sans-serif !important;
}
.step-tile {
  position: relative;
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: var(--r-tile);
  background: var(--tile);
  color: #4c2a15;
  box-shadow:
    0 6px 0 var(--tile-edge),
    0 14px 20px -10px rgba(76, 42, 21, 0.5);
  transition:
    background-color 0.2s,
    box-shadow 0.2s;
}
.tile-num {
  position: absolute;
  left: 8px;
  top: 5px;
  font:
    800 0.85rem/1 "Nunito",
    system-ui,
    sans-serif;
  color: #8a5f3a;
}
.tile-icon,
.tile-check {
  width: 36px;
  height: 36px;
}
.tile-check {
  display: none;
}

/* Step states, set by app.js: the next step is lifted and coral, a finished
   step turns its tile teal, and steps ahead wait in cream. */
.js .step:not(.is-current) .step-btn {
  background: var(--tile);
  color: #4c2a15;
  box-shadow: 0 5px 0 var(--tile-edge);
}
.js .step:not(.is-current) .step-btn:active {
  box-shadow: 0 1px 0 var(--tile-edge);
}
.step.is-current {
  transform: translateY(-8px);
  box-shadow:
    inset 0 0 0 3px var(--coral),
    0 0 0 6px color-mix(in srgb, var(--coral) 16%, transparent),
    var(--shadow);
}
.step.is-current .step-tile {
  background: var(--coral);
  color: #fffaf0;
  box-shadow:
    0 6px 0 var(--coral-edge),
    0 14px 20px -10px rgba(168, 64, 31, 0.7);
}
.step.is-current .tile-num {
  color: #fffaf0;
}
.step.is-done {
  box-shadow:
    inset 0 0 0 2px color-mix(in srgb, var(--teal) 60%, transparent),
    var(--shadow);
}
.step.is-done .step-tile {
  background: var(--teal);
  color: #fffaf0;
  box-shadow:
    0 6px 0 var(--teal-edge),
    0 14px 20px -10px rgba(23, 96, 90, 0.6);
}
.step.is-done .tile-num {
  color: #fffaf0;
}
.step.is-done .tile-icon {
  display: none;
}
.step.is-done .tile-check {
  display: block;
}
.step.is-done .step-state {
  display: inline-flex;
}
.step-tile.flip {
  animation: tile-flip 0.5s var(--spring);
}
@keyframes tile-flip {
  0% {
    transform: perspective(300px) rotateX(0);
  }
  45% {
    transform: perspective(300px) rotateX(90deg);
  }
  100% {
    transform: perspective(300px) rotateX(0);
  }
}

.celebrate {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 40px;
  padding: 20px 28px 20px 20px;
  border-radius: var(--r-card);
  background: var(--teal);
  color: #fffaf0;
  box-shadow:
    0 8px 0 var(--teal-edge),
    var(--shadow);
  outline: none;
}
.celebrate[hidden] {
  display: none;
}
.celebrate-art {
  width: 132px;
  height: 132px;
  flex: none;
  margin: -44px 0 -20px;
  filter: drop-shadow(0 10px 12px rgba(15, 33, 48, 0.35));
}
.celebrate h3 {
  font-size: 1.75rem;
}
.celebrate p {
  margin: 6px 0 16px;
  max-width: 56ch;
}
.celebrate.pop {
  animation: pop-in 0.6s var(--spring);
}
@keyframes pop-in {
  from {
    transform: translateY(16px) scale(0.96);
    opacity: 0;
  }
}
.reset {
  display: block;
  margin: 24px 0 0 auto;
  padding: 8px 4px;
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--ink-2);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.reset[hidden] {
  display: none;
}
.burst-tile {
  position: fixed;
  z-index: 25;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--tile);
  color: #4c2a15;
  font:
    800 1.2rem/1 "Baloo 2",
    system-ui,
    sans-serif;
  box-shadow: 0 3px 0 var(--tile-edge);
  pointer-events: none;
}
.burst-tile.coral {
  background: var(--coral);
  color: #fffaf0;
  box-shadow: 0 3px 0 var(--coral-edge);
}
.burst-tile.teal {
  background: var(--teal);
  color: #fffaf0;
  box-shadow: 0 3px 0 var(--teal-edge);
}

/* Showcase: the trailer in a phone, then the store screenshots. */
.showcase {
  overflow-x: clip;
  padding: clamp(64px, 8vw, 104px) 0 clamp(72px, 9vw, 112px);
  background: linear-gradient(
    180deg,
    transparent,
    color-mix(in srgb, var(--line) 35%, transparent) 30%,
    transparent
  );
}
.showcase-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
  gap: clamp(40px, 7vw, 96px);
  align-items: center;
}
.phone {
  position: relative;
  justify-self: center;
  width: min(320px, 74vw);
}
.phone-screen {
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: 40px;
  overflow: hidden;
  background: #2b3946;
  box-shadow:
    0 0 0 10px var(--navy),
    0 0 0 12px #2a4862,
    0 40px 60px -30px rgba(15, 33, 48, 0.7);
}
.phone video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.video-toggle {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(15, 33, 48, 0.72);
  color: var(--cream-text);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.video-toggle .i {
  width: 22px;
  height: 22px;
}
.video-toggle[data-paused="true"] .icon-pause,
.video-toggle[data-paused="false"] .icon-play {
  display: none;
}
.video-toggle[data-paused="true"] {
  width: 72px;
  height: 72px;
  right: calc(50% - 36px);
  bottom: calc(50% - 36px);
  background: var(--coral);
  box-shadow: 0 5px 0 var(--coral-edge);
}
.video-toggle[data-paused="true"] .i {
  width: 32px;
  height: 32px;
  margin-left: 4px;
}
.peek {
  position: absolute;
  width: 46%;
  height: auto;
  pointer-events: none;
  filter: drop-shadow(0 16px 18px rgba(15, 33, 48, 0.35));
}
.peek-cat {
  left: -30%;
  bottom: -4%;
}
.peek-fox {
  right: -32%;
  top: 10%;
  transform: scaleX(-1);
}
.showcase-copy > p {
  margin-top: 16px;
  font-size: 1.15rem;
  color: var(--ink-2);
  max-width: 46ch;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 36px 0 0;
}
.stats > div {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.stat-tile {
  display: flex;
  gap: 4px;
  font:
    800 2.1rem/1 "Baloo 2",
    system-ui,
    sans-serif;
  color: #4c2a15;
}
.stat-tile,
.stat-tile span {
  min-width: 54px;
}
.stat-tile:not(:has(span)),
.stat-tile span {
  display: grid;
  place-items: center;
  width: 54px;
  height: 58px;
  padding-top: 4px;
  border-radius: var(--r-tile);
  background: var(--tile);
  box-shadow: 0 5px 0 var(--tile-edge);
}
.stat-tile:has(span) {
  width: auto;
}
.stats dd {
  margin: 0;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink-2);
}
.gallery {
  margin-top: clamp(56px, 7vw, 88px);
}
.gallery-track {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 12px max(var(--gutter), calc((100vw - 1240px) / 2 + var(--gutter)))
    28px;
  scroll-padding-inline: max(
    var(--gutter),
    calc((100vw - 1240px) / 2 + var(--gutter))
  );
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.gallery-track::-webkit-scrollbar {
  display: none;
}
.gallery-track img {
  flex: none;
  width: clamp(200px, 22vw, 264px);
  height: auto;
  aspect-ratio: 9 / 16;
  border-radius: 22px;
  scroll-snap-align: start;
  box-shadow: var(--shadow);
  background: var(--line);
}
.gallery-nav {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.round-btn {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--tile);
  color: #4c2a15;
  box-shadow: 0 4px 0 var(--tile-edge);
  transition: transform 0.15s var(--spring);
}
.round-btn:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 var(--tile-edge);
}
.round-btn:disabled {
  opacity: 0.4;
  cursor: default;
}
.flip {
  transform: scaleX(-1);
}

/* Why it matters */
.why {
  padding: clamp(64px, 8vw, 104px) 0;
}
.why-head p {
  margin-top: 14px;
  max-width: 62ch;
  font-size: 1.15rem;
  color: var(--ink-2);
}
.bento {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 18px;
  margin-top: 40px;
}
.cell {
  position: relative;
  overflow: hidden;
  padding: 26px;
  border-radius: var(--r-card);
  min-height: 230px;
}
.cell h3 {
  font-size: 1.5rem;
}
.cell p {
  margin-top: 8px;
  font-size: 1rem;
}
.cell-days {
  grid-row: span 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 4px;
  background: var(--navy);
  color: var(--cream-text);
  box-shadow: var(--shadow);
}
.cell-days p {
  color: #d9ccad;
  max-width: 34ch;
}
.days {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}
/* Two weeks as a row of small tiles; the last one is the finish. */
.fortnight {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  max-width: 280px;
  margin: 28px 0 auto;
  padding-bottom: 28px;
}
.fortnight i {
  aspect-ratio: 1;
  border-radius: 6px;
  background: rgba(255, 244, 214, 0.14);
  box-shadow: inset 0 -2px 0 rgba(255, 244, 214, 0.08);
}
.fortnight i.last {
  background: var(--gold);
  box-shadow: inset 0 -2px 0 #c99a2e;
}
.day-tile {
  display: grid;
  place-items: center;
  width: clamp(84px, 9vw, 118px);
  aspect-ratio: 1;
  padding-top: 0.08em;
  border-radius: 18px;
  background: var(--tile);
  color: #4c2a15;
  font:
    800 clamp(4rem, 7vw, 5.6rem) / 1 "Baloo 2",
    system-ui,
    sans-serif;
  box-shadow: 0 8px 0 var(--tile-edge);
}
.day-tile:nth-child(2) {
  background: var(--coral);
  color: #fffaf0;
  box-shadow: 0 8px 0 var(--coral-edge);
}
.days-unit {
  margin-left: 6px;
  font:
    800 1.6rem/1 "Baloo 2",
    system-ui,
    sans-serif;
  color: var(--gold);
}
.cell-first {
  grid-column: span 2;
  display: flex;
  align-items: flex-end;
  min-height: 280px;
  color: var(--cream-text);
  background: var(--navy);
  box-shadow: var(--shadow);
}
.cell-first img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 40%;
}
.cell-first::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(15, 33, 48, 0.88) 0%,
    rgba(15, 33, 48, 0.55) 45%,
    rgba(15, 33, 48, 0) 80%
  );
}
.cell-copy {
  position: relative;
  z-index: 1;
  max-width: 36ch;
}
.cell-first p {
  color: #f0e4c8;
}
.cell-voice,
.cell-free {
  padding-right: 34%;
}
.cell-voice {
  background: var(--voice-bg);
}
.cell-free {
  background: var(--free-bg);
}
.cell-voice p,
.cell-free p {
  color: var(--ink-2);
}
.cell-icon {
  width: 34px;
  height: 34px;
  margin-bottom: 18px;
  color: var(--teal);
}
.cell-free .cell-icon {
  color: var(--coral);
}
@media (prefers-color-scheme: dark) {
  .cell-voice .cell-icon {
    color: #5cc4b8;
  }
}
.cell-char {
  position: absolute;
  right: -8%;
  bottom: -14%;
  width: 48%;
  height: auto;
  pointer-events: none;
}

/* FAQ */
.faq {
  padding: clamp(56px, 7vw, 96px) 0 clamp(72px, 9vw, 120px);
}
.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}
.faq-side {
  position: sticky;
  top: 100px;
}
.faq-side p {
  margin-top: 14px;
  color: var(--ink-2);
  font-size: 1.1rem;
  max-width: 34ch;
}
.faq-art {
  width: 220px;
  height: auto;
  margin-top: 20px;
  filter: drop-shadow(0 16px 18px rgba(76, 42, 21, 0.25));
}
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-list details {
  border-radius: 20px;
  background: var(--surface);
  box-shadow: inset 0 0 0 2px var(--line);
  transition: box-shadow 0.2s;
}
.faq-list details[open] {
  box-shadow:
    inset 0 0 0 2px color-mix(in srgb, var(--coral) 55%, transparent),
    var(--shadow);
}
.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  cursor: pointer;
  list-style: none;
  font:
    800 1.15rem/1.3 "Baloo 2",
    system-ui,
    sans-serif;
}
.faq-list summary::-webkit-details-marker {
  display: none;
}
.faq-list summary .i {
  transition: transform 0.3s var(--spring);
  color: var(--coral);
}
.faq-list details[open] summary .i {
  transform: rotate(180deg);
}
.faq-list details p {
  padding: 0 22px 20px;
  color: var(--ink-2);
  font-size: 1rem;
  max-width: 62ch;
}

/* Invite: the page ends on the mark's navy. */
.invite {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: var(--cream-text);
  padding: clamp(64px, 8vw, 96px) var(--gutter) 0;
}
.invite-inner {
  position: relative;
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1fr);
  align-items: end;
  gap: 24px;
}
.invite-copy {
  text-align: center;
  padding-bottom: clamp(64px, 8vw, 96px);
}
.invite-copy p {
  margin: 14px auto 0;
  max-width: 46ch;
  font-size: 1.15rem;
  color: #d9ccad;
}
.invite-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 30px;
}
.invite-actions [hidden] {
  display: none;
}
.invite-char {
  width: 100%;
  max-width: 260px;
  height: auto;
  margin-bottom: -6%;
  filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.4));
}
.invite-left {
  justify-self: end;
}
.invite-right {
  justify-self: start;
}

.foot {
  background: var(--navy-2);
  color: #d9ccad;
  padding: 36px 0 calc(36px + env(safe-area-inset-bottom));
}
.foot-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 32px;
}
.foot .brand {
  color: var(--cream-text);
}
.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}
.foot-links a {
  font-weight: 800;
  text-decoration: none;
  color: var(--cream-text);
}
.foot-links a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.foot-note {
  flex-basis: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  font-size: 0.85rem;
  color: #a9b6c0;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom));
  z-index: 30;
  transform: translateX(-50%);
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--teal);
  color: #fffaf0;
  font-weight: 800;
  box-shadow: 0 5px 0 var(--teal-edge);
}
.toast[hidden] {
  display: none;
}

/* Motion: words rise in once; sections slide up as they arrive; the next
   step's tile nods to say "this one". All of it stops for reduced motion. */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * {
    animation: rise 0.8s var(--spring) both;
  }
  .hero-copy > :nth-child(2) {
    animation-delay: 0.08s;
  }
  .hero-copy > :nth-child(3) {
    animation-delay: 0.16s;
  }
  .hero-copy > :nth-child(4) {
    animation-delay: 0.24s;
  }
  .js .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition:
      opacity 0.7s var(--spring),
      transform 0.8s var(--spring);
  }
  .js .reveal.is-in {
    opacity: 1;
    transform: none;
  }
  .step.is-current .step-tile:not(.flip) {
    animation: nod 1.8s ease-in-out infinite;
  }
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
}
@keyframes nod {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* Tablet: the words above, the art below. */
@media (max-width: 1023px) {
  .hero {
    display: flex;
    flex-direction: column;
    height: auto;
    max-height: none;
    background: linear-gradient(180deg, #0570cf 0%, #1287c6 100%);
  }
  .hero::before,
  .hero::after {
    display: none;
  }
  .hero-copy {
    order: 1;
    padding: 112px var(--gutter) 0;
  }
  .hero-art {
    position: relative;
    order: 2;
    top: auto;
    right: auto;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-position: 70% 60%;
    margin-top: -12px;
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 24%);
    mask-image: linear-gradient(180deg, transparent 0, #000 24%);
  }
  .step-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    max-width: 680px;
  }
  .showcase-grid {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
  }
  .showcase-copy {
    max-width: 620px;
  }
  .step {
    flex-direction: row;
    align-items: flex-start;
    gap: 20px;
  }
  .step.is-current {
    transform: none;
  }
  .bento {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .cell-days {
    grid-row: auto;
    grid-column: span 2;
    min-height: 0;
  }
  .fortnight {
    margin-bottom: 0;
    padding-bottom: 20px;
  }
}

/* Phone */
@media (max-width: 767px) {
  body {
    font-size: 1rem;
  }
  .topbar {
    inset: 10px 0 auto;
  }
  .topbar .brand {
    font-size: 1.15rem;
    padding: 5px 12px 5px 5px;
  }
  .brand img {
    width: 34px;
    height: 34px;
  }
  .nav-cta {
    display: none;
  }
  .hero-copy {
    padding: 92px 16px 0;
  }
  .hero h1 {
    margin: 16px 0 14px;
    font-size: clamp(2.35rem, 11vw, 3.1rem);
    -webkit-text-stroke-width: 7px;
    text-shadow: 0 4px 0 #4c2a15;
  }
  .hero-ctas {
    margin-top: 22px;
  }
  .hero-ctas .btn {
    flex: 1 1 100%;
  }
  .hero-art {
    aspect-ratio: 5 / 4;
    object-position: 74% 70%;
  }
  .tip {
    padding: 12px 14px;
  }
  .device-note {
    padding: 14px;
    gap: 14px;
  }
  /* Tile and title share a row; the text and a full-width button follow. */
  .step {
    display: grid;
    grid-template-columns: 60px minmax(0, 1fr);
    gap: 4px 16px;
    padding: 18px;
  }
  .step-body {
    display: contents;
  }
  .step-tile {
    grid-column: 1;
    grid-row: 1 / span 2;
    margin-bottom: 8px;
  }
  .step h3 {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
  }
  .step-state {
    grid-column: 2;
    grid-row: 1;
    align-self: end;
    justify-self: start;
  }
  .step.is-done h3 {
    grid-row: 2;
    align-self: start;
  }
  .step-body > p:not(.step-state) {
    grid-column: 1 / -1;
    margin-top: 8px;
  }
  .step-btn {
    grid-column: 1 / -1;
    width: 100%;
  }
  .step-tile {
    width: 60px;
    height: 60px;
  }
  .tile-icon,
  .tile-check {
    width: 28px;
    height: 28px;
  }
  .tile-num {
    left: 6px;
    top: 4px;
    font-size: 0.75rem;
  }
  .step-btn {
    font-size: 1.02rem;
    padding: 0.8em 1.05em 0.76em;
  }
  .celebrate {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 20px;
  }
  .celebrate-art {
    width: 104px;
    height: 104px;
    margin: -60px 0 0;
  }
  .phone {
    width: min(260px, 64vw);
  }
  .peek {
    width: 44%;
  }
  .peek-cat {
    left: -21%;
  }
  .peek-fox {
    right: -21%;
  }
  .stats {
    gap: 12px;
  }
  .stat-tile {
    font-size: 1.8rem;
  }
  .stat-tile:not(:has(span)),
  .stat-tile span {
    width: 44px;
    height: 48px;
  }
  .stats dd {
    font-size: 0.9rem;
  }
  .bento {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .cell-days,
  .cell-first {
    grid-column: auto;
  }
  .cell {
    padding: 22px;
    min-height: 0;
  }
  .cell-voice,
  .cell-free {
    padding-right: 38%;
    min-height: 190px;
  }
  .faq-grid {
    grid-template-columns: 1fr;
  }
  .faq-side {
    position: static;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: end;
  }
  .faq-side h2,
  .faq-side p {
    grid-column: 1;
  }
  .faq-art {
    grid-column: 2;
    grid-row: 1 / span 2;
    width: 110px;
    margin: 0;
  }
  .faq-list summary {
    padding: 16px 18px;
    font-size: 1.08rem;
  }
  .faq-list details p {
    padding: 0 18px 18px;
  }
  .invite-inner {
    grid-template-columns: 1fr 1fr;
  }
  .invite-copy {
    grid-column: 1 / -1;
    grid-row: 1;
    padding-bottom: 8px;
  }
  .invite-actions .btn {
    flex: 1 1 100%;
  }
  .invite-char {
    max-width: 170px;
  }
  .invite-left {
    justify-self: start;
  }
  .invite-right {
    justify-self: end;
  }
}
