/* Public landing page. Colours and radii follow design/system/tokens.json (Sea Glass, Fresh Lime). */

@font-face {
  font-family: 'Nunito';
  src: url('/landing/nunito-800.woff2') format('woff2');
  font-weight: 800;
  font-display: swap;
}

/* Component display rules must never bring a hidden control or character back. */
[hidden] {
  display: none !important;
}

:root {
  color-scheme: light;
  --paper: #f3f5f0;
  --ink: #20382e;
  --muted: #59685f;
  --surface: #ffffff;
  --line: #cad5cc;
  --accent: #245d54;
  --accent-deep: #1b4940;
  --tint: #dceee5;
  --focus: #164aad;
  --olive: #334e24;
  --lime-pale: #e6efcf;
  --lime: #cbde8e;
  --warm: #efdda5;
  --sky: #a7c9d0;
  --point-1: #9a4a0c;
  --point-2: #956300;
  --point-3: #1955b1;
  --point-4: #4f7665;
  --point-5: #2b7340;
  --point-1-soft: #fbebdc;
  --point-2-soft: #fbf2de;
  --point-3-soft: #eaf0fa;
  --point-4-soft: #edf3ef;
  --point-5-soft: #e6f2e8;
  --brand: 'Nunito', ui-rounded, 'Arial Rounded MT Bold', -apple-system, sans-serif;
  --ui: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --gutter: clamp(20px, 5vw, 48px);
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.55 var(--ui);
  overflow-x: hidden;
}

img,
svg {
  display: block;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--brand);
  font-weight: 800;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.75rem, 11.5vw, 4.75rem);
  line-height: 1.02;
}

h2 {
  font-size: clamp(2rem, 6.4vw, 3.5rem);
  line-height: 1.08;
}

h3 {
  font-size: 1.3rem;
  line-height: 1.25;
  letter-spacing: -0.005em;
}

p {
  margin: 0;
}

a {
  color: var(--accent);
  text-underline-offset: 0.18em;
}

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

.wrap {
  width: min(100%, 1120px);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 14px 30px;
  border: 0;
  border-radius: 18px;
  background: var(--accent);
  color: #fff;
  font: 800 1.125rem/1.2 var(--brand);
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 0.16s ease,
    transform 0.16s ease;
}

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

.button:active {
  transform: scale(0.98);
}

.button-quiet {
  background: transparent;
  color: var(--accent);
  box-shadow: inset 0 0 0 2px var(--accent);
}

.button-quiet:hover {
  background: rgba(36, 93, 84, 0.08);
}

/* Header */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 16px;
}

.brand {
  display: block;
  border-radius: 8px;
}

.brand img {
  width: 124px;
  height: auto;
}

.top-link {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding-inline: 18px;
  border-radius: 14px;
  color: var(--accent);
  font: 800 1rem/1 var(--brand);
  text-decoration: none;
}

.top-link:hover {
  background: rgba(36, 93, 84, 0.08);
}

/* Hero */
.hero-copy {
  padding-block: clamp(16px, 2.5vw, 28px) clamp(28px, 3vw, 36px);
  text-align: center;
}

.hero-lede {
  max-width: 30ch;
  margin: 18px auto 0;
  color: var(--muted);
  font-size: clamp(1.15rem, 3.6vw, 1.5rem);
  line-height: 1.4;
}

.cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}

.note {
  color: var(--muted);
  font-size: 0.95rem;
}

/* The field: the characters' playground, full bleed under the hero copy. */
.field {
  position: relative;
  height: clamp(440px, 66vh, 640px);
  overflow: hidden;
  background: linear-gradient(112deg, var(--lime-pale) 0%, var(--lime) 58%, var(--warm) 100%);
  border-radius: 50% 50% 0 0 / clamp(36px, 8vw, 96px) clamp(36px, 8vw, 96px) 0 0;
  isolation: isolate;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.embrace {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 0;
  width: 0;
  height: 0;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.86);
  transition:
    opacity 0.6s ease,
    transform 0.8s cubic-bezier(0.2, 0.9, 0.3, 1.15);
}

.embrace.is-on {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.kid {
  position: absolute;
  left: calc(var(--x) * 1%);
  top: calc(var(--y) * 1%);
  width: var(--kid, 76px);
  height: var(--kid, 76px);
  margin: calc(var(--kid, 76px) * -0.5) 0 0 calc(var(--kid, 76px) * -0.5);
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.field.is-live .kid {
  left: 0;
  top: 0;
  margin: 0;
  will-change: transform;
}

.kid-shadow {
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: 1%;
  height: 11%;
  border-radius: 50%;
  background: rgba(51, 78, 36, 0.24);
}

.kid-body {
  position: absolute;
  inset: 0;
  transition: transform 0.18s ease;
}

.kid.is-flipped .kid-body {
  transform: scaleX(-1);
}

.kid-art {
  position: absolute;
  inset: 0;
  transform-origin: 50% 92%;
}

.kid-art img {
  width: 100%;
  height: 100%;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

.kid.is-moving .kid-art {
  animation: waddle var(--stride, 0.3s) linear infinite;
}

.kid.is-moving .kid-shadow {
  animation: shadow-beat calc(var(--stride, 0.3s) / 2) ease-in-out infinite alternate;
}

.kid.is-hopping .kid-art {
  animation: hop 0.5s cubic-bezier(0.3, 0.7, 0.4, 1);
}

@keyframes waddle {
  0% {
    transform: translateY(0) rotate(-7deg);
  }
  25% {
    transform: translateY(-13%) rotate(0deg);
  }
  50% {
    transform: translateY(0) rotate(7deg);
  }
  75% {
    transform: translateY(-13%) rotate(0deg);
  }
  100% {
    transform: translateY(0) rotate(-7deg);
  }
}

@keyframes shadow-beat {
  from {
    transform: scaleX(1);
    opacity: 1;
  }
  to {
    transform: scaleX(0.72);
    opacity: 0.65;
  }
}

@keyframes hop {
  0% {
    transform: scale(1.06, 0.92);
  }
  45% {
    transform: translateY(-38%) scale(0.96, 1.05);
  }
  85% {
    transform: scale(1.06, 0.93);
  }
  100% {
    transform: none;
  }
}

.kid-bubble {
  position: absolute;
  left: 50%;
  bottom: 96%;
  z-index: 2;
  padding: 5px 11px;
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 2px 8px rgba(32, 56, 46, 0.16);
  font: 800 0.8125rem/1.2 var(--brand);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 6px) scale(0.92);
  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
}

.kid-bubble.is-on {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

.kid.near-left .kid-bubble {
  left: 0;
  transform: translate(0, 6px) scale(0.92);
}

.kid.near-left .kid-bubble.is-on {
  transform: translate(0, 0) scale(1);
}

.kid.near-right .kid-bubble {
  left: auto;
  right: 0;
  transform: translate(0, 6px) scale(0.92);
}

.kid.near-right .kid-bubble.is-on {
  transform: translate(0, 0) scale(1);
}

.field-controls {
  position: absolute;
  left: 50%;
  bottom: 18px;
  z-index: 100000;
  display: flex;
  align-items: center;
  gap: 8px;
  transform: translateX(-50%);
  cursor: default;
}

.field-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 16px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 3px 14px rgba(32, 56, 46, 0.18);
  font: 800 1rem/1 var(--brand);
  white-space: nowrap;
  cursor: pointer;
}

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

.field-button.icon-only {
  padding: 0;
}

.field-button svg {
  width: 20px;
  height: 20px;
}

.field-button[aria-pressed='true'] .icon-pause,
.field-button:not([aria-pressed='true']) .icon-play {
  display: none;
}

.field-hint {
  position: absolute;
  left: 50%;
  top: clamp(30px, 8vw, 74px);
  z-index: 0;
  width: 100%;
  padding-inline: 20px;
  color: var(--olive);
  font: 800 0.9375rem/1.3 var(--brand);
  text-align: center;
  pointer-events: none;
  transform: translateX(-50%);
  transition: opacity 0.3s ease;
}

.field.is-huddled .field-hint {
  opacity: 0;
}

/* Sections */
.section {
  padding-block: clamp(64px, 11vw, 120px);
}

.section-head {
  max-width: 36rem;
}

.section-head p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 1.125rem;
}

.eyebrow {
  margin-bottom: 10px;
  color: var(--accent);
  font: 800 0.9375rem/1.2 var(--brand);
}

.section-head .eyebrow {
  margin-top: 0;
  color: var(--accent);
  font-size: 0.9375rem;
}

/* Hide the native inputs while keeping keyboard and screen reader behaviour. */
.sr-input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Check-in: a character hopping along five stones */
.stones {
  --stone: clamp(48px, 13vw, 76px);
  position: relative;
  margin-top: clamp(28px, 5vw, 48px);
  padding: clamp(24px, 5vw, 44px) clamp(16px, 6vw, 56px) clamp(24px, 4vw, 36px);
  border-radius: 32px;
  background: var(--stage, var(--point-5-soft));
  transition: background-color 0.45s ease;
}

.stones[data-point='1'] {
  --stage: var(--point-1-soft);
  --current: var(--point-1);
}
.stones[data-point='2'] {
  --stage: var(--point-2-soft);
  --current: var(--point-2);
}
.stones[data-point='3'] {
  --stage: var(--point-3-soft);
  --current: var(--point-3);
}
.stones[data-point='4'] {
  --stage: var(--point-4-soft);
  --current: var(--point-4);
}
.stones[data-point='5'] {
  --stage: var(--point-5-soft);
  --current: var(--point-5);
}

.stones-prompt {
  font: 800 clamp(1.25rem, 4vw, 1.75rem)/1.2 var(--brand);
  text-align: center;
}

.stones-track {
  position: relative;
  height: clamp(148px, 30vw, 214px);
  margin-top: 8px;
}

.stones-kid {
  position: absolute;
  bottom: 2px;
  left: calc((100% - var(--stone)) * var(--at, 1) + var(--stone) / 2);
  width: clamp(92px, 24vw, 170px);
  height: clamp(92px, 24vw, 170px);
  transform: translateX(-50%);
  transition: left 0.5s cubic-bezier(0.35, 0.05, 0.3, 1);
}

.stones-kid .kid-art {
  transform-origin: 50% 96%;
}

.stones-kid.is-hopping .kid-art {
  animation: stone-hop 0.5s cubic-bezier(0.35, 0.05, 0.3, 1);
}

@keyframes stone-hop {
  0% {
    transform: scale(1.05, 0.93);
  }
  50% {
    transform: translateY(-30%) scale(0.97, 1.04);
  }
  90% {
    transform: scale(1.05, 0.94);
  }
  100% {
    transform: none;
  }
}

.stones-row {
  display: flex;
  justify-content: space-between;
  margin: 0;
  padding: 0;
  border: 0;
}

.stone {
  position: relative;
  display: block;
  cursor: pointer;
}

.stone span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--stone);
  height: var(--stone);
  border: 3px solid var(--tone);
  border-radius: 50%;
  background: var(--surface);
  color: var(--tone);
  font: 800 clamp(1.125rem, 3.6vw, 1.5rem)/1 var(--brand);
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.stone:hover span {
  transform: translateY(-2px);
}

.stone input:checked + span {
  background: var(--tone);
  color: #fff;
}

.stone input:focus-visible + span {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.stones-caption {
  min-height: 1.6em;
  margin-top: 18px;
  color: var(--current, var(--point-5));
  font: 800 1.125rem/1.4 var(--brand);
  text-align: center;
  transition: color 0.3s ease;
}

.picker {
  margin: 22px 0 0;
  padding: 0;
  border: 0;
}

.picker legend {
  width: 100%;
  margin-bottom: 10px;
  padding: 0;
  color: var(--muted);
  font-size: 0.9375rem;
  text-align: center;
}

.picker-row {
  display: flex;
  justify-content: center;
  gap: clamp(0px, 1.2vw, 14px);
}

.pick {
  position: relative;
  display: block;
  cursor: pointer;
}

.pick span {
  display: block;
  width: 48px;
  height: 48px;
  padding: 4px;
  border: 2px solid transparent;
  border-radius: 18px;
  transition:
    background-color 0.16s ease,
    border-color 0.16s ease;
}

.pick img {
  width: 100%;
  height: 100%;
}

.pick:hover span {
  background: rgba(255, 255, 255, 0.6);
}

.pick input:checked + span {
  border-color: var(--accent);
  background: var(--surface);
}

.pick input:focus-visible + span {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

/* Availability: a small stage that acts out each choice */
.ups {
  background: var(--surface);
}

.ups-grid {
  display: grid;
  gap: clamp(24px, 5vw, 56px);
  align-items: center;
}

.modes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 26px 0 0;
  padding: 0;
  border: 0;
}

.mode {
  position: relative;
  display: block;
  cursor: pointer;
}

.mode > span {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 60px;
  padding: 10px 14px;
  border: 2px solid var(--line);
  border-radius: 18px;
  font: 800 1.0625rem/1.2 var(--brand);
  transition:
    background-color 0.16s ease,
    border-color 0.16s ease;
}

.mode svg {
  flex: none;
  width: 22px;
  height: 22px;
}

.mode:hover > span {
  background: var(--paper);
}

.mode input:checked + span {
  border-color: var(--accent);
  background: var(--tint);
}

.mode input:focus-visible + span {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.scene-note {
  display: none;
  min-height: 3.2em;
  margin-top: 16px;
  color: var(--muted);
}

.ups[data-mode='text'] [data-note='text'],
.ups[data-mode='call'] [data-note='call'],
.ups[data-mode='meet'] [data-note='meet'],
.ups[data-mode='space'] [data-note='space'] {
  display: block;
}

.scene {
  --actor: clamp(96px, 24vw, 150px);
  position: relative;
  height: clamp(280px, 62vw, 420px);
  overflow: hidden;
  border-radius: 32px;
  background: linear-gradient(160deg, #e9f2ee 0%, #d7e8e6 100%);
  transition: background 0.5s ease;
}

.scene::after {
  content: '';
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: -22%;
  height: 46%;
  border-radius: 50%;
  background: linear-gradient(112deg, var(--lime-pale), var(--lime) 70%, var(--warm));
}

.ups[data-mode='space'] .scene {
  background: linear-gradient(160deg, #dfe6ee 0%, #cfdce4 100%);
}

.actor {
  position: absolute;
  bottom: 10%;
  z-index: 2;
  width: var(--actor);
  height: var(--actor);
  transition:
    left 0.9s cubic-bezier(0.35, 0.05, 0.3, 1),
    opacity 0.5s ease;
}

.actor.is-moving .kid-art {
  animation: waddle 0.3s linear infinite;
}

.actor-a {
  left: 8%;
}

.actor-b {
  left: calc(92% - var(--actor));
}

.ups[data-mode='meet'] .actor-a {
  left: calc(50% - var(--actor) * 0.95);
}

.ups[data-mode='meet'] .actor-b {
  left: calc(50% - var(--actor) * 0.05);
}

.ups[data-mode='meet'] .actor:not(.is-moving) .kid-art {
  animation: happy 1.3s ease-in-out infinite;
}

.ups[data-mode='meet'] .actor-b:not(.is-moving) .kid-art {
  animation-delay: 0.18s;
}

@keyframes happy {
  0%,
  55%,
  100% {
    transform: none;
  }
  70% {
    transform: translateY(-14%) scale(0.98, 1.03);
  }
  88% {
    transform: scale(1.03, 0.97);
  }
}

.ups[data-mode='space'] .actor-a {
  left: calc(50% - var(--actor) / 2);
}

.ups[data-mode='space'] .actor-b {
  left: 112%;
}

.fx {
  position: absolute;
  z-index: 3;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.ups[data-mode='text'] .fx-text,
.ups[data-mode='call'] .fx-call,
.ups[data-mode='meet'] .fx-meet,
.ups[data-mode='space'] .fx-space {
  opacity: 1;
}

/* Text: little notes passing back and forth */
.note-dot {
  position: absolute;
  top: 34%;
  left: 24%;
  display: flex;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 2px 8px rgba(32, 56, 46, 0.14);
}

.note-dot i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.fx-text {
  inset: 0;
}

.ups[data-mode='text'] .note-dot {
  animation: pass-right 3s ease-in-out infinite;
}

.ups[data-mode='text'] .note-dot-back {
  top: 20%;
  animation: pass-left 3s ease-in-out 1.5s infinite;
  opacity: 0;
}

@keyframes pass-right {
  0% {
    opacity: 0;
    transform: translateX(0);
  }
  12%,
  70% {
    opacity: 1;
  }
  85%,
  100% {
    opacity: 0;
    transform: translateX(calc(var(--span, 34vw)));
  }
}

@keyframes pass-left {
  0% {
    opacity: 0;
    transform: translateX(calc(var(--span, 34vw)));
  }
  12%,
  70% {
    opacity: 1;
  }
  85%,
  100% {
    opacity: 0;
    transform: translateX(0);
  }
}

/* Call: rings pulsing out from each character */
.fx-call {
  inset: 0;
}

.ring {
  position: absolute;
  bottom: calc(10% + var(--actor) * 0.42);
  width: 2px;
  height: 2px;
}

.ring-a {
  left: calc(8% + var(--actor) / 2);
}

.ring-b {
  left: calc(92% - var(--actor) / 2);
}

.ring::before,
.ring::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: calc(var(--actor) * 1.2);
  height: calc(var(--actor) * 1.2);
  margin: calc(var(--actor) * -0.6) 0 0 calc(var(--actor) * -0.6);
  border: 3px solid var(--accent);
  border-radius: 50%;
  opacity: 0;
}

.ups[data-mode='call'] .ring::before {
  animation: ring 2s ease-out infinite;
}

.ups[data-mode='call'] .ring::after {
  animation: ring 2s ease-out 0.7s infinite;
}

.ups[data-mode='call'] .ring-b::before {
  animation-delay: 0.35s;
}

.ups[data-mode='call'] .ring-b::after {
  animation-delay: 1.05s;
}

@keyframes ring {
  0% {
    opacity: 0.55;
    transform: scale(0.45);
  }
  100% {
    opacity: 0;
    transform: scale(1.25);
  }
}

/* Meet up: a pin drops where they meet */
.fx-meet {
  left: 50%;
  top: 7%;
  color: var(--accent);
  transform: translateX(-50%);
}

.fx-meet svg {
  width: clamp(44px, 10vw, 60px);
  height: clamp(44px, 10vw, 60px);
  fill: var(--surface);
}

.ups[data-mode='meet'] .fx-meet svg {
  animation: pin-drop 0.7s cubic-bezier(0.3, 0.8, 0.4, 1.3) 0.65s both;
}

@keyframes pin-drop {
  from {
    opacity: 0;
    transform: translateY(-120%);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Space: the moon comes out and everyone gives you room */
.fx-space {
  inset: 0;
}

.moon {
  position: absolute;
  right: 11%;
  top: 11%;
  color: var(--accent);
  transition: transform 0.9s cubic-bezier(0.2, 0.9, 0.3, 1.1);
  transform: translateY(-140%);
}

.moon svg {
  width: clamp(44px, 10vw, 60px);
  height: clamp(44px, 10vw, 60px);
  fill: var(--surface);
}

.ups[data-mode='space'] .moon {
  transform: none;
}

.star {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--surface);
}

.star:nth-child(2) {
  left: 18%;
  top: 22%;
}
.star:nth-child(3) {
  left: 36%;
  top: 12%;
  width: 5px;
  height: 5px;
}
.star:nth-child(4) {
  left: 62%;
  top: 26%;
  width: 6px;
  height: 6px;
}

.ups[data-mode='space'] .star {
  animation: twinkle 2.4s ease-in-out infinite;
}

.ups[data-mode='space'] .star:nth-child(3) {
  animation-delay: 0.7s;
}

.ups[data-mode='space'] .star:nth-child(4) {
  animation-delay: 1.3s;
}

@keyframes twinkle {
  50% {
    opacity: 0.35;
  }
}

/* How it works */
.steps {
  display: grid;
  gap: 14px;
  margin: clamp(28px, 5vw, 48px) 0 0;
  padding: 0;
  list-style: none;
}

.step {
  position: relative;
  padding: 26px 24px 26px;
  border-radius: 24px;
  background: var(--surface);
}

.step-peek {
  position: absolute;
  right: 18px;
  top: -30px;
  width: 72px;
  height: 72px;
}

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--tint);
  color: var(--accent);
  font: 800 1.125rem/1 var(--brand);
}

.step p {
  margin-top: 8px;
  color: var(--muted);
}

.invite-line {
  margin-top: 22px;
  color: var(--muted);
  text-align: center;
}

/* Just your people */
.people {
  padding-block: clamp(64px, 11vw, 120px);
  background: var(--olive);
  color: #f3f5f0;
}

.people h2 {
  color: #fff;
}

.people .section-head p {
  color: #d6dfcb;
}

.people .eyebrow {
  color: var(--lime);
}

.rules {
  display: grid;
  gap: 28px 40px;
  margin: clamp(32px, 5vw, 56px) 0 0;
  padding: 0;
  list-style: none;
}

.rules h3 {
  color: var(--lime);
}

.rules p {
  margin-top: 6px;
  color: #e7ecdf;
}

/* Questions */
.faq {
  display: grid;
  gap: 10px;
  margin-top: clamp(24px, 4vw, 40px);
}

.faq details {
  border-radius: 18px;
  background: var(--surface);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
  padding: 14px 20px;
  border-radius: 18px;
  font: 800 1.0625rem/1.3 var(--brand);
  cursor: pointer;
  list-style: none;
}

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

.faq summary::after {
  content: '+';
  flex: none;
  color: var(--accent);
  font-size: 1.5rem;
  line-height: 1;
  transition: transform 0.18s ease;
}

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

.faq details p {
  padding: 0 20px 20px;
  color: var(--muted);
}

/* Closing band */
.closing {
  position: relative;
  overflow: hidden;
  padding-block: clamp(64px, 11vw, 112px) clamp(150px, 22vw, 190px);
  background: linear-gradient(112deg, var(--lime-pale) 0%, var(--lime) 58%, var(--warm) 100%);
  text-align: center;
}

.closing-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

.closing .button-quiet {
  background: rgba(255, 255, 255, 0.5);
}

.closing .button-quiet:hover {
  background: rgba(255, 255, 255, 0.8);
}

.closing-note {
  margin-top: 14px;
  color: var(--olive);
  font-size: 0.9375rem;
}

.parade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  height: 92px;
  pointer-events: none;
}

.parader {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 84px;
  height: 84px;
  animation: parade var(--lap, 24s) linear var(--wait, 0s) infinite;
}

.parader .kid-art {
  animation: waddle 0.34s linear infinite;
  animation-delay: var(--beat, 0s);
}

@keyframes parade {
  from {
    transform: translateX(-120px);
  }
  to {
    transform: translateX(calc(100vw + 120px));
  }
}

/* Footer */
.foot {
  padding-block: 36px 44px;
  background: var(--paper);
  color: var(--muted);
  font-size: 0.9375rem;
}

.foot-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 28px;
}

.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 18px;
}

.foot a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  color: var(--ink);
}

/* Wider layouts */
@media (min-width: 760px) {
  .brand img {
    width: 148px;
  }

  .hero-lede {
    max-width: none;
  }

  .pick span {
    width: 56px;
    height: 56px;
    padding: 5px;
  }

  .cta {
    flex-direction: row;
    justify-content: center;
    gap: 18px;
  }

  .ups-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  }

  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
  }

  .rules {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .faq {
    max-width: 48rem;
  }
}

@media (min-width: 1000px) {
  .check-in-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 56px;
    align-items: center;
  }

  .check-in-grid .stones {
    margin-top: 0;
  }

  .rules {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* The hero's pause button stops every looping animation on the page. */
.is-paused *,
.is-paused *::before,
.is-paused *::after {
  animation-play-state: paused !important;
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .ups[data-mode='text'] .note-dot-back {
    opacity: 1;
  }

  .ups[data-mode='call'] .ring::before {
    opacity: 0.4;
  }

  .parader:nth-child(1) {
    transform: translateX(8vw);
  }
  .parader:nth-child(2) {
    transform: translateX(26vw);
  }
  .parader:nth-child(3) {
    transform: translateX(44vw);
  }
  .parader:nth-child(4) {
    transform: translateX(62vw);
  }
  .parader:nth-child(5) {
    transform: translateX(80vw);
  }
}
