/* Little World site. Layout: a toy shelf. Bands in the app's room colours, phone screens as the
   windows of a blind box, friends standing on a plum shelf, small print set like a box back. */

@font-face {
  font-family: "Bagel Fat One";
  src: url("/fonts/bagel-fat-one-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "M PLUS Rounded 1c";
  src: url("/fonts/mplus-rounded-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "M PLUS Rounded 1c";
  src: url("/fonts/mplus-rounded-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "M PLUS Rounded 1c";
  src: url("/fonts/mplus-rounded-800.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
}

:root {
  --paper: #fff8fb;
  --band-sky: #e6f5ff;
  --band-butter: #fff3d6;
  --band-mint: #e4f7e7;
  --band-pink: #ffe6f1;
  --card: #ffffff;
  --ink: #3f3577;
  --ink-soft: #6b5fa8;
  --muted: #6f6697;
  --line: #e3d8f3;
  --shelf: #6b5fa8;
  --phone: #3f3577;
  --accent: #e5476b;
  --button: #4b3f8a;
  --button-ink: #ffffff;
  --focus: #ff6b8a;
  --ok: #217a42;
  --bad: #b8243f;
  /* The toys' own colours: the same in both themes, always with --on-pastel text. */
  --on-pastel: #3f3577;
  --bubblegum: #ff9ec4;
  --sky: #8fd3ff;
  --butter: #ffd36e;
  --mint: #9be7a5;
  --lavender: #c7a6ff;
  --peach: #ffb38a;
  --cream: #fff4dc;

  --font-display: "Bagel Fat One", "Arial Rounded MT Bold", "Trebuchet MS", system-ui, sans-serif;
  --font-body: "M PLUS Rounded 1c", ui-rounded, "Segoe UI", system-ui, -apple-system, sans-serif;
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.6rem;
  --step-3: clamp(1.9rem, 1.3rem + 2.4vw, 2.75rem);
  --step-4: clamp(2.4rem, 1.4rem + 4.2vw, 4.1rem);
  --wrap: 1120px;
  --radius: 28px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #1b1631;
    --band-sky: #1d2544;
    --band-butter: #282239;
    --band-mint: #192a33;
    --band-pink: #291c3b;
    --card: #28224b;
    --ink: #f7f1ff;
    --ink-soft: #d2c6ff;
    --muted: #b6acd8;
    --line: #3d356f;
    --shelf: #8f80d8;
    --phone: #0e0b20;
    --accent: #ff8aa3;
    --button: #c7a6ff;
    --button-ink: #1b1631;
    --focus: #ff9ec4;
    --ok: #86e0a6;
    --bad: #ff9aae;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #1b1631;
  --band-sky: #1d2544;
  --band-butter: #282239;
  --band-mint: #192a33;
  --band-pink: #291c3b;
  --card: #28224b;
  --ink: #f7f1ff;
  --ink-soft: #d2c6ff;
  --muted: #b6acd8;
  --line: #3d356f;
  --shelf: #8f80d8;
  --phone: #0e0b20;
  --accent: #ff8aa3;
  --button: #c7a6ff;
  --button-ink: #1b1631;
  --focus: #ff9ec4;
  --ok: #86e0a6;
  --bad: #ff9aae;
  color-scheme: dark;
}

*,
*::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-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: inherit;
  text-underline-offset: 0.18em;
}
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 8px;
}
h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: 0.005em;
  text-wrap: balance;
  margin: 0;
}
h1 {
  font-size: var(--step-4);
}
h2 {
  font-size: var(--step-3);
}
h3 {
  font-size: var(--step-2);
}
p {
  margin: 0;
}
.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 20;
  background: var(--card);
  padding: 8px 14px;
}

/* One side gutter, set on every band's inner wrapper. */
.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.band {
  padding-block: clamp(56px, 8vw, 104px);
}
.band-sky {
  background: var(--band-sky);
}
.band-butter {
  background: var(--band-butter);
}
.band-mint {
  background: var(--band-mint);
}
.band-pink {
  background: var(--band-pink);
}
.eyebrow {
  font-size: var(--step--1);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.lead {
  font-size: var(--step-1);
  max-width: 34em;
}
.muted {
  color: var(--muted);
}
.section-head {
  display: grid;
  gap: 14px;
  max-width: 40em;
  margin-bottom: clamp(32px, 5vw, 56px);
}

/* Header */
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 18px;
  flex-wrap: wrap;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.5rem;
}
.brand img {
  width: 40px;
  height: 40px;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 6px 20px;
  flex-wrap: wrap;
  font-weight: 700;
}
.site-nav a:not(.button) {
  text-decoration: none;
}
.site-nav a:not(.button):hover {
  text-decoration: underline;
}
@media (max-width: 720px) {
  .site-nav a:not(.button) {
    display: none;
  }
}
@media (max-width: 420px) {
  .site-header .wrap {
    flex-wrap: nowrap;
  }
  .brand {
    font-size: 1.2rem;
    gap: 8px;
  }
  .brand img {
    width: 32px;
    height: 32px;
  }
  .site-nav .button.small {
    padding: 8px 14px;
    white-space: nowrap;
  }
}

/* Buttons and fields */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 22px;
  border: 0;
  border-radius: 999px;
  background: var(--button);
  color: var(--button-ink);
  font: 800 var(--step-0) / 1.2 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 4px 0 color-mix(in srgb, var(--button) 55%, #000);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.button:hover {
  transform: translateY(-1px);
}
.button:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 color-mix(in srgb, var(--button) 55%, #000);
}
.button[disabled] {
  opacity: 0.6;
  cursor: progress;
}
.button.small {
  min-height: 40px;
  padding: 8px 18px;
  font-size: var(--step--1);
}
input[type="email"] {
  min-height: 52px;
  width: 100%;
  min-width: 0;
  padding: 10px 18px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  font: 400 var(--step-0) / 1.2 var(--font-body);
}
input[type="email"]::placeholder {
  color: var(--muted);
}
input[type="email"]:focus-visible {
  border-color: var(--focus);
  outline: none;
}
.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: var(--step--1);
  line-height: 1.45;
}
.check input {
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  flex: none;
  accent-color: var(--button);
}
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.status {
  min-height: 1.5em;
  font-weight: 700;
  font-size: var(--step--1);
}
.status.ok {
  color: var(--ok);
}
.status.bad {
  color: var(--bad);
}

/* Hero */
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: clamp(32px, 6vw, 72px);
  padding-block: clamp(24px, 5vw, 64px) clamp(48px, 7vw, 88px);
}
.hero-copy {
  display: grid;
  gap: 22px;
  min-width: 0;
}
.quick-join {
  display: grid;
  gap: 12px;
  max-width: 34em;
}
.quick-join .row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.quick-join .row input {
  flex: 1 1 220px;
  width: auto;
}
.promises {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.promises li {
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--card);
  border: 2px solid var(--line);
  font-weight: 700;
  font-size: var(--step--1);
}
@media (max-width: 860px) {
  .hero .wrap {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* The shelf scene: a phone with friends standing either side of it. */
.shelf-scene {
  position: relative;
  padding-bottom: 14px;
  margin-inline: auto;
  width: min(100%, 460px);
}
.shelf-scene::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 18px;
  border-radius: 999px;
  background: var(--shelf);
}
.phone {
  position: relative;
  width: min(62%, 290px);
  margin-inline: auto;
  aspect-ratio: 9 / 16;
  border: 9px solid var(--phone);
  border-radius: 38px;
  overflow: hidden;
  background: var(--cream);
  box-shadow: 0 24px 50px -24px rgb(40 30 90 / 0.45);
}
.phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.shelf-friend {
  position: absolute;
  bottom: 12px;
  width: 36%;
  z-index: 1;
  animation: bob 4.5s ease-in-out infinite;
}
.shelf-friend.left {
  left: -2%;
}
.shelf-friend.right {
  right: -2%;
  animation-delay: -2.2s;
}
@keyframes bob {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-7px) rotate(-1.5deg);
  }
}

/* "In the box": the contents panel on a blind box. */
.contents {
  border: 3px dashed var(--line);
  border-radius: var(--radius);
  padding: clamp(18px, 3vw, 28px);
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px 12px;
}
.contents div {
  display: grid;
  gap: 2px;
  text-align: center;
}
.contents strong {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--step-3);
  line-height: 1;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}
.contents span {
  font-size: var(--step--1);
  font-weight: 700;
}
@media (max-width: 860px) {
  .contents {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Friends lineup */
.lineup {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 2.4vw, 28px);
  padding: 0;
  margin: 0;
  list-style: none;
}
.friend {
  display: grid;
  gap: 6px;
  align-content: start;
  text-align: center;
}
.friend .window {
  aspect-ratio: 1;
  border-radius: var(--radius);
  display: grid;
  place-items: end center;
  overflow: hidden;
  border: 3px solid color-mix(in srgb, var(--on-pastel) 14%, transparent);
}
.friend .window img {
  width: 92%;
  transition: transform 0.25s ease;
}
.friend:hover .window img {
  transform: translateY(-4px) scale(1.03);
}
.friend h3 {
  font-size: var(--step-1);
  margin-top: 6px;
}
.friend p {
  font-size: var(--step--1);
  color: var(--muted);
}
.c-pink {
  background: var(--bubblegum);
}
.c-mint {
  background: var(--mint);
}
.c-sky {
  background: var(--sky);
}
.c-lilac {
  background: var(--lavender);
}
.c-peach {
  background: var(--peach);
}
.c-butter {
  background: var(--butter);
}
.c-cream {
  background: var(--cream);
}
.tag {
  justify-self: center;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--on-pastel);
}
.tag-free {
  background: var(--mint);
}
.tag-earn {
  background: var(--butter);
}
.tag-full {
  background: var(--lavender);
}
@media (max-width: 640px) {
  .lineup {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Rooms: one band per thing to do */
.room .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 6vw, 80px);
}
.room.flip .room-copy {
  order: 2;
}
.room-copy {
  display: grid;
  gap: 16px;
  min-width: 0;
}
.room-label {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 14px 4px 6px;
  border-radius: 999px;
  background: var(--card);
  font-weight: 800;
  font-size: var(--step--1);
}
.room-label::before {
  content: "";
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--on-pastel);
  background: linear-gradient(var(--dot, var(--bubblegum)) 50%, #fff 50%);
}
.dot-sky {
  --dot: var(--sky);
}
.dot-butter {
  --dot: var(--butter);
}
.dot-mint {
  --dot: var(--mint);
}
.dot-lilac {
  --dot: var(--lavender);
}
.fact {
  font-weight: 800;
  color: var(--ink-soft);
}
.phones {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  min-width: 0;
}
.phones .phone {
  width: min(48%, 250px);
  margin: 0;
}
.phones .phone + .phone {
  margin-left: -6%;
  margin-bottom: -28px;
  transform: rotate(4deg);
}
.phones .phone:first-child:not(:only-child) {
  transform: rotate(-3deg);
}
.phones .phone:only-child {
  width: min(62%, 280px);
}
@media (max-width: 860px) {
  .room .wrap {
    grid-template-columns: minmax(0, 1fr);
  }
  .room.flip .room-copy {
    order: 0;
  }
}

/* Small print, set like the back of a blind box */
.small-print {
  border: 3px dashed var(--line);
  border-radius: 20px;
  padding: 16px 18px;
  display: grid;
  gap: 10px;
  background: var(--card);
}
.small-print h4 {
  margin: 0;
  font-size: var(--step--1);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.table-scroll {
  overflow-x: auto;
}
.small-print table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--step--1);
  font-variant-numeric: tabular-nums;
}
.small-print th,
.small-print td {
  text-align: left;
  padding: 6px 8px 6px 0;
  border-bottom: 1px solid var(--line);
}
.small-print th {
  font-weight: 800;
}
.small-print tr:last-child td {
  border-bottom: 0;
}
.small-print p {
  font-size: var(--step--1);
}

/* Playdate steps (a real order) */
.steps {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
  counter-reset: step;
}
.steps li {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  counter-increment: step;
}
.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--card);
  border: 2px solid var(--line);
  font-family: var(--font-display);
  color: var(--ink-soft);
}

/* For grown-ups */
.pledges {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.pledges li {
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 22px;
  border-radius: 22px;
  background: var(--card);
}
.pledges strong {
  font-size: var(--step-1);
  line-height: 1.25;
}
.pledges p {
  color: var(--muted);
  font-size: var(--step--1);
}
@media (max-width: 860px) {
  .pledges {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .pledges {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Prices */
.prices {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}
.price {
  position: relative;
  display: grid;
  grid-template-rows: auto auto auto 1fr;
  gap: 12px;
  padding: 28px 24px;
  border-radius: var(--radius);
  background: var(--card);
  border: 3px solid var(--line);
}
.price.best {
  border-color: var(--ink-soft);
}
.price .ribbon {
  position: absolute;
  top: -15px;
  left: 22px;
  padding: 3px 12px;
  border-radius: 999px;
  background: var(--butter);
  color: var(--on-pastel);
  font-weight: 800;
  font-size: var(--step--1);
}
.price .amount {
  font-family: var(--font-display);
  font-size: var(--step-3);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.price .per {
  font-weight: 700;
  color: var(--muted);
}
.price ul {
  margin: 0;
  padding-left: 1.1em;
  display: grid;
  gap: 6px;
  font-size: var(--step--1);
}
.price-note {
  margin-top: 22px;
  font-size: var(--step--1);
  color: var(--muted);
  max-width: 52em;
}
@media (max-width: 860px) {
  .prices {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Waitlist */
.join-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(24px, 5vw, 56px);
  align-items: center;
  padding: clamp(24px, 5vw, 48px);
  border-radius: 36px;
  background: var(--card);
}
.join-card .art {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding-bottom: 12px;
}
.join-card .art::after {
  content: "";
  position: absolute;
  left: 4%;
  right: 4%;
  bottom: 0;
  height: 16px;
  border-radius: 999px;
  background: var(--shelf);
}
.join-card .art img {
  position: relative;
  z-index: 1;
  width: 40%;
  margin-inline: -4%;
  margin-bottom: -4px;
}
.join-card .art img:nth-child(2) {
  width: 46%;
}
.join-form {
  display: grid;
  gap: 16px;
}
.join-form fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.join-form legend {
  font-weight: 700;
  font-size: var(--step--1);
  margin-bottom: 8px;
  padding: 0;
}
.chip {
  position: relative;
}
.chip input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
  cursor: pointer;
}
.chip span {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 999px;
  border: 2px solid var(--line);
  font-weight: 700;
  font-size: var(--step--1);
}
.chip input:checked + span {
  background: var(--lavender);
  border-color: var(--lavender);
  color: var(--on-pastel);
}
.chip input:focus-visible + span {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
@media (max-width: 760px) {
  .join-card {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Questions */
.faq {
  display: grid;
  gap: 10px;
  max-width: 50em;
}
.faq details {
  border-radius: 20px;
  background: var(--card);
  padding: 4px 22px;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 14px 0;
  font-weight: 800;
  font-size: var(--step-1);
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  font-family: var(--font-display);
  color: var(--ink-soft);
}
.faq details[open] summary::after {
  content: "\2212";
}
.faq details p {
  padding-bottom: 16px;
  color: var(--muted);
}

/* Footer */
.site-footer {
  border-top: 3px dashed var(--line);
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  justify-content: space-between;
  align-items: center;
  padding-block: 28px 40px;
  font-size: var(--step--1);
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-weight: 700;
}

/* Text pages (privacy, terms) */
.doc .wrap {
  max-width: 760px;
}
.doc article {
  display: grid;
  gap: 16px;
}
.doc h1 {
  font-size: var(--step-3);
}
.doc h2 {
  font-size: var(--step-2);
  margin-top: 20px;
}
.doc ul {
  margin: 0;
  padding-left: 1.2em;
  display: grid;
  gap: 6px;
}
.doc .remove {
  display: grid;
  gap: 12px;
  padding: 22px;
  border-radius: 22px;
  background: var(--card);
  border: 3px dashed var(--line);
}
.doc .remove .row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.doc .remove .row input {
  flex: 1 1 220px;
  width: auto;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
