/* tidlings.app. The app's bold world, as a site: every section is set in one
   room's colour, like swiping between rooms on Home. Tokens are the app's own
   (lib/theme.ts, components/StagePill.tsx). */

/* The app's own font files (@expo-google-fonts), served from here so no
   visit is passed on to a font service. */
@font-face { font-family: "Bricolage Grotesque"; font-weight: 400; font-display: swap; src: url("/assets/fonts/BricolageGrotesque_400Regular.ttf") format("truetype"); }
@font-face { font-family: "Bricolage Grotesque"; font-weight: 500; font-display: swap; src: url("/assets/fonts/BricolageGrotesque_500Medium.ttf") format("truetype"); }
@font-face { font-family: "Bricolage Grotesque"; font-weight: 600; font-display: swap; src: url("/assets/fonts/BricolageGrotesque_600SemiBold.ttf") format("truetype"); }
@font-face { font-family: "Bricolage Grotesque"; font-weight: 700; font-display: swap; src: url("/assets/fonts/BricolageGrotesque_700Bold.ttf") format("truetype"); }
@font-face { font-family: "Bricolage Grotesque"; font-weight: 800; font-display: swap; src: url("/assets/fonts/BricolageGrotesque_800ExtraBold.ttf") format("truetype"); }

:root {
  --forest: #113E2F;
  --kitchen: #5B2011;
  --bathroom: #013C4A;
  --bedroom: #382A5E;
  --hallway: #522434;
  --clean: #123560;
  --bar: #0A1C15;

  --cream: #FFF6E3;
  --muted: rgba(255, 246, 227, 0.78);
  --faint: rgba(255, 246, 227, 0.6);
  --tile: rgba(255, 246, 227, 0.15);
  --tile-strong: rgba(255, 246, 227, 0.22);
  --hairline: rgba(255, 246, 227, 0.14);
  --outline: rgba(255, 246, 227, 0.35);
  --ink: #10271F;
  --paper-ink: #2E2A1F;
  --paper-muted: #7A6C4E;

  --lime: #CDF66E;
  --coral: #FF8A5B;
  --amber: #FFC857;
  --late: #FFBB9C;
  --stage-0: #FF8A5B;
  --stage-1: #FFC857;
  --stage-2: #7FBF6A;
  --stage-3: #C6F36B;

  --radius-tile: 28px;
  --radius-card: 36px;
  --gutter: clamp(16px, 4vw, 40px);
  --font: "Bricolage Grotesque", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--forest);
  color: var(--cream);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; -webkit-user-drag: none; user-select: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }

/* ─── Type ─────────────────────────────────────────────────────────── */
.wordmark { font-weight: 800; font-style: italic; letter-spacing: -0.02em; }
h1, h2, h3 { font-weight: 800; margin: 0; letter-spacing: -0.025em; }
h1 { font-size: clamp(44px, 7vw, 84px); line-height: 0.98; }
h2 { font-size: clamp(34px, 4.8vw, 58px); line-height: 1.02; }
h3 { font-size: 21px; line-height: 1.2; letter-spacing: -0.01em; }
.lede { font-size: clamp(18px, 1.6vw, 21px); color: var(--muted); font-weight: 500; max-width: 34ch; margin: 20px 0 0; }
.body { color: var(--muted); font-weight: 500; margin: 8px 0 0; }

/* ─── Pills and buttons (the app's chips) ──────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 26px; border-radius: 999px; border: 0;
  font-weight: 800; font-size: 17px; text-decoration: none; cursor: pointer;
  transition: transform 0.15s ease;
}
.btn:active { transform: scale(0.97); }
.btn-accent { background: var(--lime); color: var(--ink); }
.btn-tile { background: var(--tile); color: var(--cream); }
.btn-tile:hover { background: var(--tile-strong); }
.btn-small { min-height: 44px; padding: 0 18px; font-size: 15px; }
/* A join button whose store has no link yet: it opens soon. */
.btn:not([href]) { background: none; color: var(--faint); box-shadow: inset 0 0 0 2px var(--hairline); cursor: default; }
.btn svg { flex: none; }

.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 12px;
  border-radius: 999px; background: var(--tile); font-weight: 700; font-size: 14px;
}
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--lime); flex: none; }

/* ─── The cream sticker a chore's icon sits on ─────────────────────── */
.sticker {
  width: 64px; height: 64px; border-radius: 20px; background: var(--cream);
  display: grid; place-items: center; transform: rotate(var(--tilt, -4deg));
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.12); flex: none;
}
.sticker img { width: 40px; height: 40px; }
.sticker.small { width: 50px; height: 50px; border-radius: 16px; }
.sticker.small img { width: 30px; height: 30px; }

/* ─── Nav ──────────────────────────────────────────────────────────── */
.nav { position: sticky; top: 0; z-index: 20; transition: background 0.4s ease; }
.nav.scrolled { background: color-mix(in srgb, var(--bar) 82%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.nav .wrap { display: flex; align-items: center; gap: 24px; height: 76px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-size: 26px; }
.brand img { width: 38px; height: 38px; border-radius: 11px; }
.nav-links { display: flex; gap: 4px; margin-left: 12px; }
.nav-links a { text-decoration: none; font-weight: 700; font-size: 15px; color: var(--muted); padding: 8px 14px; border-radius: 999px; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--cream); background: var(--tile); }
.nav-end { margin-left: auto; display: flex; align-items: center; gap: 10px; }

/* The app's segmented control: a track, the chosen one raised and ringed. */
.seg { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--tile); }
.seg button {
  border: 0; background: none; padding: 6px 12px; border-radius: 999px;
  font-weight: 700; font-size: 13px; color: var(--muted); cursor: pointer;
}
.seg button[aria-pressed="true"] { background: rgba(255, 246, 227, 0.3); color: var(--cream); box-shadow: inset 0 0 0 2px rgba(255, 246, 227, 0.8); }

/* ─── Sections: one room's world each ─────────────────────────────── */
.world { position: relative; padding: clamp(72px, 10vw, 128px) 0; background: var(--world, var(--forest)); transition: background 0.6s ease; }
/* Each world meets the next with the curve Home lays over the floor. */
.world + .world::before {
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 48px;
  background: var(--prev, var(--forest)); border-radius: 0 0 50% 50% / 0 0 100% 100%;
}
.section-head { max-width: 640px; }
.section-head .chip { margin-bottom: 18px; }

/* ─── Hero ─────────────────────────────────────────────────────────── */
.hero { padding-top: clamp(24px, 4vw, 56px); }
.hero .wrap { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 .accent { color: var(--lime); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.stores { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; color: var(--faint); font-size: 14px; font-weight: 600; align-items: center; }

/* The app, as it opens: a room, its tidlings, its chores. */
.home-card { position: relative; }
/* The room drawing is 390 x 322 below its wall; the scene adds 50 more of
   floor (in the stage's floor colour) so the tidlings stand in front of the
   mess, not in it. */
.scene {
  position: relative; border-radius: var(--radius-card); overflow: hidden;
  aspect-ratio: 390 / 372; background: var(--floor, #53635c); transition: background 0.7s ease;
}
.scene .room { position: absolute; left: 0; width: 100%; top: 0; margin-top: -23.077%; transition: opacity 0.7s ease; }
.scene .room[hidden] { display: block; opacity: 0; }
.tidlings { position: absolute; left: 0; right: 0; bottom: 4.5%; height: 42%; display: flex; justify-content: center; gap: 0; pointer-events: none; }
.tidlings canvas { height: 100%; aspect-ratio: 800 / 725; margin: 0 -8%; }
.stage-pill {
  position: absolute; left: 50%; bottom: 0; transform: translate(-50%, 0);
  background: var(--forest); border-radius: 22px 22px 0 0; padding: 10px 22px 6px;
  font-weight: 800; font-size: 18px; display: flex; align-items: center; gap: 10px; white-space: nowrap;
}
.stage-pill .dot { width: 12px; height: 12px; background: var(--stage, var(--stage-0)); transition: background 0.4s; }
.stage-pill .label { color: var(--stage, var(--stage-0)); transition: color 0.4s; }

.chores { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 16px; }
.chore {
  position: relative; text-align: left; border: 0; cursor: pointer;
  background: var(--tile); border-radius: var(--radius-tile); padding: 16px 16px 18px;
  display: flex; flex-direction: column; gap: 22px; min-height: 168px;
  transition: background 0.3s ease, transform 0.15s ease;
}
.chore:hover { background: var(--tile-strong); }
.chore:active { transform: scale(0.97); }
.chore .tick {
  position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border-radius: 50%;
  box-shadow: inset 0 0 0 2.5px var(--outline); display: grid; place-items: center; color: var(--outline);
  transition: background 0.3s, color 0.3s, box-shadow 0.3s;
}
.chore .name { display: block; font-weight: 800; font-size: 17px; line-height: 1.15; margin-top: auto; }
.chore .when { display: block; font-weight: 700; font-size: 14px; color: var(--late); margin-top: 4px; }
.chore.done { background: var(--lime); color: var(--ink); }
.chore.done .when { color: rgba(16, 39, 31, 0.68); }
.chore.done .tick { background: var(--ink); color: var(--lime); box-shadow: none; }
.try { margin-top: 14px; color: var(--faint); font-size: 14px; font-weight: 600; text-align: center; }

/* Stickers floating round the card. */
.float { position: absolute; z-index: 2; animation: bob 5s ease-in-out infinite; }
.float:nth-child(2n) { animation-duration: 6.5s; animation-delay: -2s; }
@keyframes bob { 50% { translate: 0 -10px; } }
.sparkle { position: absolute; width: 22px; height: 22px; opacity: 0; transition: opacity 0.4s; pointer-events: none; }
.sparkling .sparkle { opacity: 1; animation: twinkle 1.6s ease-in-out infinite; }
.sparkle:nth-of-type(2n) { animation-delay: -0.8s !important; }
@keyframes twinkle { 50% { scale: 0.6; } }

/* ─── Rooms: the broom sweeps a room clean ─────────────────────────── */
.rooms-grid > * { min-width: 0; }
.split.beta-top { grid-template-columns: 1.2fr 1fr; }
.rooms-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.rail { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 2px 6px; margin: 32px 0 0; }
.rail::-webkit-scrollbar { display: none; }
.rail button {
  flex: none; border: 0; cursor: pointer; padding: 12px 20px; border-radius: 999px;
  background: var(--tile); color: var(--cream); font-weight: 800; font-size: 16px;
}
/* A chosen chip is a pale tone of the world it sits on, its type the world's own deep colour. */
.rail button[aria-pressed="true"] { background: color-mix(in oklch, var(--world) 18%, #fff); color: var(--world); }
.sweep { position: relative; border-radius: var(--radius-card); overflow: hidden; aspect-ratio: 390 / 260; user-select: none; touch-action: pan-y; cursor: ew-resize; }
.sweep .room { position: absolute; left: 0; width: 100%; top: -34.6%; }
.sweep .clean { clip-path: inset(0 0 0 var(--cut, 50%)); }
.sweep .handle {
  position: absolute; top: 0; bottom: 0; left: var(--cut, 50%); width: 0;
  border-left: 3px dashed rgba(255, 246, 227, 0.75);
}
.sweep .handle .knob {
  position: absolute; top: 50%; left: 0; translate: -50% -50%;
  width: 76px; height: 76px; border-radius: 50%; background: var(--cream);
  display: grid; place-items: center; box-shadow: 0 8px 0 rgba(0, 0, 0, 0.18);
}
.sweep .tag {
  position: absolute; top: 16px; padding: 7px 14px; border-radius: 999px; font-weight: 800; font-size: 14px;
  background: rgba(10, 24, 18, 0.45); backdrop-filter: blur(6px); display: flex; gap: 8px; align-items: center;
}
.sweep .tag.left { left: 16px; }
.sweep .tag.right { right: 16px; }
.rooms-foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-top: 20px; color: var(--muted); font-weight: 600; }

/* ─── How it works ─────────────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 48px; }
.step { background: var(--tile); border-radius: var(--radius-tile); padding: 24px; display: flex; flex-direction: column; gap: 18px; }
.step .num { font-weight: 800; font-size: 15px; color: var(--faint); }
.step .row { display: flex; justify-content: space-between; align-items: flex-start; }

/* A little bit of the app inside a step. */
.mini { background: rgba(0, 0, 0, 0.2); border-radius: 20px; padding: 14px; display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.mini .chip { background: var(--tile); }
.mini .chip.on { background: #BCD3F2; color: var(--clean); }
.points { display: flex; gap: 10px; align-items: center; font-weight: 800; }
.points .pop { background: var(--lime); color: var(--ink); border-radius: 999px; padding: 6px 12px; font-size: 15px; }
.points .coin { background: var(--amber); color: var(--ink); border-radius: 999px; padding: 6px 12px; font-size: 15px; }
.today { display: grid; gap: 6px; width: 100%; }
.today div { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; }
.today .ring { width: 20px; height: 20px; border-radius: 50%; box-shadow: inset 0 0 0 2.5px var(--amber); flex: none; }
.today .ring.late { box-shadow: inset 0 0 0 2.5px var(--coral); }
.today .ring.done { background: var(--lime); box-shadow: none; }

/* ─── Together ─────────────────────────────────────────────────────── */
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
/* A little floor: the welcome screen's rug, tidlings standing on it. On the
   800 x 725 artboard a tidling's soles end 19% of the height above the
   bottom; the crew sits so the soles land just past the rug's middle line.
   The rug lies in the row with them, so it reaches under whoever stands at
   either end however wide the row is. */
.stage-floor { position: relative; container-type: inline-size; --feet: 15%; --crew-h: 60%; }
.stage-floor .row { position: relative; display: flex; align-items: flex-end; height: 100%; flex: none; }
.stage-floor .rug {
  position: absolute; left: 6%; width: 88%; height: auto; aspect-ratio: 300 / 50;
  top: 82%; translate: 0 -54%; pointer-events: none;
}
.stage-floor .crew {
  position: absolute; left: 0; right: 0; height: var(--crew-h);
  bottom: calc(var(--feet) - var(--crew-h) * 0.2);
  display: flex; justify-content: center; align-items: flex-end;
}
html, body { overflow-x: clip; }
.spot { position: relative; height: 100%; aspect-ratio: 800 / 725; margin: 0 -7cqw; }
.spot canvas { width: 100%; height: 100%; display: block; }
.together-floor { aspect-ratio: 5 / 4; --crew-h: 66%; --feet: 16%; }
.together-floor .spot { margin: 0 -11cqw; }
/* A speech bubble stands over the head of whoever says it (the head's top
   is 22% down the artboard). */
.bubble {
  position: absolute; z-index: 2; left: 50%; bottom: calc(78% + 14px); translate: -50% 0;
  width: max-content; max-width: 230px; text-align: left;
  background: var(--cream); color: var(--paper-ink); font-weight: 700; font-size: 16px;
  padding: 12px 16px; border-radius: 22px; line-height: 1.3; box-shadow: 0 6px 0 rgba(0, 0, 0, 0.14);
}
.bubble::after { content: ""; position: absolute; left: 50%; bottom: -8px; width: 18px; height: 18px; translate: -50% 0; rotate: 45deg; background: var(--cream); border-radius: 4px; }
.bubble { --lean: 50%; translate: calc(var(--lean) * -1) 0; }
.bubble::after { left: var(--lean); }
/* The outer tidlings' bubbles lean inwards so they stay on the page. */
.crew .spot:first-of-type .bubble { --lean: 30%; }
.crew .spot:last-of-type .bubble { --lean: 70%; }
.bubble small { display: block; font-size: 12px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: var(--paper-muted); margin-bottom: 2px; }
.list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.list li { display: flex; gap: 14px; align-items: center; background: var(--tile); padding: 14px 16px; border-radius: 22px; font-weight: 600; color: var(--muted); }
.list li strong { color: var(--cream); display: block; font-weight: 800; }
.code { display: inline-flex; gap: 6px; margin-top: 24px; }
.code span { width: 46px; height: 58px; border-radius: 14px; background: var(--cream); color: var(--ink); display: grid; place-items: center; font-weight: 800; font-size: 28px; }

/* ─── Tidbot ──────────────────────────────────────────────────────── */
.chat { background: rgba(0, 0, 0, 0.2); border-radius: var(--radius-card); padding: 22px; display: grid; gap: 12px; }
.msg { max-width: 82%; padding: 13px 16px; border-radius: 22px; font-weight: 600; line-height: 1.4; }
.msg.me { justify-self: end; background: var(--cream); color: var(--paper-ink); border-bottom-right-radius: 8px; }
.msg.bot { background: var(--tile); border-bottom-left-radius: 8px; }
.msg.bot .who { font-weight: 800; font-size: 13px; color: #C4AFFC; display: block; margin-bottom: 4px; }
.plan { display: grid; gap: 8px; margin-top: 12px; }
.plan div { display: flex; align-items: center; gap: 10px; background: var(--tile); border-radius: 16px; padding: 8px 10px; font-weight: 700; font-size: 15px; }
.plan div .sticker { --tilt: 0deg; box-shadow: none; }
.plan div span:last-child { margin-left: auto; color: var(--faint); font-size: 13px; }
.plan-add { justify-self: start; margin-top: 4px; }

/* ─── Plus ─────────────────────────────────────────────────────────── */
.plans { display: grid; grid-template-columns: 1fr 1.25fr; gap: 16px; margin-top: 48px; align-items: stretch; }
.plan-card { background: var(--tile); border-radius: var(--radius-card); padding: 30px; display: flex; flex-direction: column; }
.plan-card.plus { background: var(--cream); color: var(--paper-ink); }
.plan-card .price { font-size: 46px; font-weight: 800; letter-spacing: -0.03em; margin-top: 14px; line-height: 1; }
.plan-card .price small { font-size: 18px; letter-spacing: 0; color: var(--faint); font-weight: 700; }
.plan-card.plus .price small, .plan-card.plus .body { color: var(--paper-muted); }
.plan-card ul { list-style: none; padding: 0; margin: 24px 0 28px; display: grid; gap: 12px; font-weight: 700; }
.plan-card li { display: flex; gap: 12px; align-items: center; }
.plan-card li::before { content: ""; width: 22px; height: 22px; border-radius: 50%; flex: none; background: var(--tile) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 12.5l3.2 3.2L17 9' fill='none' stroke='%23FFF6E3' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat; }
.plan-card.plus li::before { background-color: var(--ink); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 12.5l3.2 3.2L17 9' fill='none' stroke='%23CDF66E' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.plan-card .btn { margin-top: auto; align-self: flex-start; }
.plan-card.plus .btn-accent { background: var(--ink); color: var(--lime); }
.trial { display: inline-flex; align-self: flex-start; background: var(--lime); color: var(--ink); font-weight: 800; font-size: 14px; padding: 6px 12px; border-radius: 999px; rotate: -2deg; }
.fine { color: var(--faint); font-size: 14px; font-weight: 600; margin-top: 18px; }

/* ─── Beta: the welcome screen, as the last word ───────────────────── */
.finale { text-align: center; }
.finale-floor { max-width: 600px; margin: 0 auto 12px; aspect-ratio: 2 / 1; --feet: 16%; --crew-h: 84%; }
.finale h2 { font-style: italic; }
.finale .lede { margin-left: auto; margin-right: auto; }
.finale .hero-ctas { justify-content: center; }

/* ─── Footer: the tab bar's dark ───────────────────────────────────── */
.foot { background: var(--bar); padding: 48px 0 40px; color: var(--muted); font-size: 15px; }
.foot .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.foot h4 { margin: 0 0 12px; color: var(--cream); font-size: 15px; }
.foot a { display: block; text-decoration: none; padding: 4px 0; font-weight: 600; }
.foot a:hover { color: var(--cream); }
.foot .legal { grid-column: 1 / -1; border-top: 1px solid var(--hairline); padding-top: 20px; font-size: 13px; color: var(--faint); display: flex; flex-wrap: wrap; gap: 6px 18px; }

/* ─── Paper pages (privacy, terms, delete): cream paper on the world ── */
.paper {
  background: var(--cream); color: var(--paper-ink); border-radius: var(--radius-card);
  padding: clamp(28px, 5vw, 56px); max-width: 780px; margin: 0 auto; font-size: 17px; line-height: 1.65;
}
.paper h1 { font-size: clamp(36px, 5vw, 52px); }
.paper h2 { font-size: 23px; margin: 36px 0 8px; letter-spacing: -0.01em; }
.paper p, .paper li { color: #5B5240; font-weight: 500; }
.paper strong { color: var(--paper-ink); }
.paper a { color: #2F6B57; font-weight: 700; }
.paper .meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 8px; }
.paper .meta span { background: rgba(46, 42, 31, 0.07); border-radius: 999px; padding: 5px 12px; font-size: 14px; font-weight: 700; color: var(--paper-muted); }
.paper .well, .paper .card { background: rgba(46, 42, 31, 0.06); border-radius: 20px; padding: 16px 20px; margin: 16px 0; }
.paper .card p { margin: 0; }
.paper h1 { margin: 0; }
.paper .updated { color: var(--paper-muted); font-size: 15px; font-weight: 700; margin: 6px 0 24px; }
.paper ul { padding-left: 22px; }
.paper li { margin: 6px 0; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 0; }
.toc a { background: rgba(46, 42, 31, 0.07); color: var(--paper-ink); text-decoration: none; padding: 7px 14px; border-radius: 999px; font-size: 14px; font-weight: 700; }
.page-top { display: flex; align-items: flex-end; justify-content: flex-end; gap: 16px; max-width: 780px; margin: 24px auto 20px; }
.page-top .peek { width: 160px; margin: 0 24px -64px 0; position: relative; z-index: 0; }
.paper { position: relative; z-index: 1; }

/* ─── Beta page ────────────────────────────────────────────────────── */
.join { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 40px; }
.join .plan-card h3 { display: flex; align-items: center; gap: 12px; font-size: 26px; }
.join ol { padding: 0; margin: 18px 0 26px; list-style: none; counter-reset: s; display: grid; gap: 12px; }
.join ol li { counter-increment: s; display: flex; gap: 12px; align-items: flex-start; color: var(--muted); font-weight: 600; }
.join ol li::before { content: counter(s); width: 28px; height: 28px; border-radius: 50%; background: var(--tile); color: var(--cream); display: grid; place-items: center; font-weight: 800; font-size: 14px; flex: none; }
.asks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 16px; }
.asks .step { gap: 12px; }

/* ─── Narrow screens ───────────────────────────────────────────────── */
@media (max-width: 920px) {
  .nav-links { display: none; }
  .hero .wrap, .split, .split.beta-top, .rooms-grid, .plans, .join, .foot .wrap { grid-template-columns: minmax(0, 1fr); }
  .steps, .asks { grid-template-columns: 1fr; }
  .float { display: none; }
  .rail { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: calc(-1 * var(--gutter)); }
}
@media (max-width: 560px) {
  .nav .btn { display: none; }
  .chores { grid-template-columns: 1fr; }
  .chore { min-height: 0; flex-direction: row; align-items: center; gap: 14px; padding: 12px 64px 12px 12px; }
  .chore .sticker { width: 50px; height: 50px; border-radius: 16px; }
  .chore .sticker img { width: 30px; height: 30px; }
  .chore .tick { top: 50%; translate: 0 -50%; }
  .chore .name { margin-top: 0; }
  .stage-pill { font-size: 15px; padding: 8px 16px 4px; }
  .sweep { aspect-ratio: 390 / 300; }
  .sweep .room { top: -30%; }
  .sweep .handle .knob { width: 60px; height: 60px; }
  .bubble { font-size: 13px; max-width: 150px; padding: 9px 12px; }
  .crew .spot:first-of-type .bubble { --lean: 25%; }
  .crew .spot:last-of-type .bubble { --lean: 75%; }
  .page-top .peek { width: 120px; margin-bottom: -48px; }
}
@media (prefers-reduced-motion: reduce) {
  .float, .sparkling .sparkle { animation: none; }
}
.foot a.brand { display: flex; font-size: 24px; margin-bottom: 8px; }

/* The sweep: only the sweep takes the pointer, never its pictures. */
.sweep img, .sweep .handle { pointer-events: none; }
.sweep { -webkit-touch-callout: none; -webkit-user-select: none; }

/* Two tidlings' colours, side by side: whose turn. */
.sticker.pair { display: flex; align-items: center; justify-content: center; }
.sticker.pair i { width: 20px; height: 20px; border-radius: 50%; margin: 0 -3px; box-shadow: 0 0 0 2.5px var(--cream); }
.chip img { width: 18px; height: 18px; }
.msg.bot .who { display: flex; align-items: center; gap: 6px; }

/* ─── The dressing room ────────────────────────────────────────────── */
.dresser { background: rgba(0, 0, 0, 0.2); border-radius: var(--radius-card); padding: 20px; display: grid; gap: 16px; }
.dress-stage { position: relative; aspect-ratio: 16 / 10; margin-top: 28px; }
.dress-stage .rug { position: absolute; left: 24%; width: 52%; height: 16%; bottom: 4%; pointer-events: none; }
.dress-stage canvas { position: absolute; left: 50%; translate: -50% 0; height: 128%; aspect-ratio: 800 / 725; bottom: calc(12% - 128% * 0.2); }
.dress-tabs { display: flex; overflow-x: auto; scrollbar-width: none; }
.dress-tabs button { flex: 1; padding: 8px 14px; font-size: 14px; white-space: nowrap; }
@media (max-width: 400px) { .dress-tabs button { padding: 8px 9px; font-size: 13px; } }
/* Chips grow to fill each row; the colours share the width evenly. */
.dress-items { display: flex; flex-wrap: wrap; gap: 8px; align-content: flex-start; min-height: 100px; }
.dress-items .dress-chip { flex: 1 1 auto; justify-content: center; }
.dress-items.swatches { display: grid; grid-template-columns: repeat(8, 1fr); gap: 10px; align-content: start; }
@media (max-width: 560px) { .dress-items.swatches { grid-template-columns: repeat(4, 1fr); } }
.dress-chip {
  border: 0; cursor: pointer; background: var(--tile); color: var(--cream); font-weight: 700; font-size: 14px;
  padding: 9px 14px; border-radius: 999px; display: inline-flex; gap: 8px; align-items: center;
}
.dress-chip:hover { background: var(--tile-strong); }
.dress-chip[aria-pressed="true"] { background: color-mix(in oklch, var(--world) 18%, #fff); color: var(--world); }
.dress-chip .dot { width: 12px; height: 12px; box-shadow: inset 0 0 0 1.5px rgba(0, 0, 0, 0.2); }
.dress-chip.swatch { width: 100%; max-width: 64px; height: auto; aspect-ratio: 1; justify-self: center; padding: 0; background: var(--swatch); }
.dress-chip.swatch[aria-pressed="true"] { background: var(--swatch); box-shadow: 0 0 0 3px var(--world), 0 0 0 5.5px var(--cream); }
