/* ==========================================================================
   Chore Stars — landing page
   Recreated from design_handoff_chore_stars/Landing Page.dc.html
   Palette, spacing, radii and motion timings follow the handoff.

   Every colour is a token so the page can wear all three of the app's themes.
   The theme cards in the Themes section set data-theme on <html>.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Theme tokens — Candy (default)
   -------------------------------------------------------------------------- */
:root,
[data-theme='candy'] {
  --primary: #ff4d97;
  --primary-edge: #c93a75;
  --primary-2: #7b61ff;
  --primary-2-edge: #5c46c9;
  --accent: #ff9e1b;
  --accent-edge: #d07d0a;

  /* text sitting on top of a solid fill */
  --on-primary: #ffffff;
  --on-primary-2: #ffffff;
  --on-accent: #ffffff;

  --page: #fff7fb;
  /* the app icon's cream, so the logo tile reads as part of the palette
     rather than the one warm thing on the page */
  --page-alt: #fdf0dd;
  --nav-bg: rgba(255, 247, 251, .82);
  --surface: #ffffff;
  --logo-edge: #e7d5be;

  --ink: #2c2340;
  --body: #8b7fae;
  --sub: #9a8fb8;
  --eyebrow-1: #c58bb6;
  --eyebrow-2: #9b86d8;

  /* four card colourways: border + its hard edge shadow + icon tile tint */
  --border-1: #f6e6f1;  --edge-1: #f4e4ef;  --tint-1: #fff0f6;
  --border-2: #efe4f8;  --edge-2: #ece1f7;  --tint-2: #f3ecff;
  --border-3: #ffeccf;  --edge-3: #f9e4c6;  --tint-3: #fff6e6;
  --border-4: #d8f2ea;  --edge-4: #cbe9e0;  --tint-4: #e8f8f3;

  --track: #f0e9ff;
  --track-edge: #ece4fb;
  --dash: #e6ddf5;
  --highlight: #ffe0ef;
  --badge-border: #ffe0ef;
  --badge-edge: #f8e3ee;

  --band: #2c2340;
  --band-text: #ffffff;
  --footer-link: #b6a9d6;
  --footer-fine: #8b7fae;

  --cta-from: #ff4d97;
  --cta-to: #7b61ff;
  --cta-edge: #6a4fd6;

  --blob-1: #ffd9ea;
  --blob-2: #e3dbff;
  --blob-3: #ffe3f1;
  --blob-4: #e6dcff;
  --blob-sq-1: #efe4f8;
  --blob-sq-2: #ffe3f1;

  /* decorative sticker chips in the How-it-works gutters */
  --chip-soft-1: #ffb8d6;  --chip-soft-1-edge: #e992b6;
  --chip-soft-2: #c3b4ff;  --chip-soft-2-edge: #9d8ae0;
  --chip-dash-1: #e9c9dd;
  --chip-dash-2: #ddd0f2;

  /* the "+1 sticker!" pill */
  --pill-border: #ffe9c9;
  --pill-text: #d98600;

  /* phone mockup — mirrors the app's own theme tokens */
  --app-bg-1: #fff0f6;
  --app-bg-2: #f3ecff;
  --app-card: #ffffff;
  --app-text: #2c2340;
  --app-sub: #9a8fb8;
  --app-track: #f0e9ff;
  --app-track-edge: #eee4fb;
  --app-dash: #e6ddf5;
}

/* --------------------------------------------------------------------------
   Theme tokens — Pastel
   -------------------------------------------------------------------------- */
[data-theme='pastel'] {
  --primary: #3fb59f;
  --primary-edge: #2e8a79;
  --primary-2: #ef94ba;
  --primary-2-edge: #c66f95;
  --accent: #f0ab54;
  --accent-edge: #c9873a;

  /* the pastel fills are too light to carry white text */
  --on-primary: #12362f;
  --on-primary-2: #5c2a3f;
  --on-accent: #543613;

  --page: #f7fcfa;
  --page-alt: #fdf4fb;
  --nav-bg: rgba(247, 252, 250, .84);
  --surface: #fffdfa;
  --logo-edge: #ddd6c5;

  --ink: #4a4a58;
  --body: #8b8b9c;
  --sub: #a9a4b6;
  --eyebrow-1: #79bcac;
  --eyebrow-2: #d693b1;

  --border-1: #d9efe8;  --edge-1: #cae5dc;  --tint-1: #e9f6f2;
  --border-2: #f8e0ec;  --edge-2: #efd4e1;  --tint-2: #fdeef5;
  --border-3: #fbe8cf;  --edge-3: #f1dcc2;  --tint-3: #fdf1e2;
  --border-4: #dcece6;  --edge-4: #cde0da;  --tint-4: #eaf5f1;

  --track: #edf1ef;
  --track-edge: #dfe6e3;
  --dash: #d8e2de;
  --highlight: #cdeee4;
  --badge-border: #d9efe8;
  --badge-edge: #cae5dc;

  --band: #4a4a58;
  --band-text: #ffffff;
  --footer-link: #c9c6d3;
  --footer-fine: #a9a4b6;

  --cta-from: #2f9d89;
  --cta-to: #d9789f;
  --cta-edge: #b3607f;

  --blob-1: #d9f2ea;
  --blob-2: #fbe1ee;
  --blob-3: #e4f5ef;
  --blob-4: #fce7f1;
  --blob-sq-1: #e2efeb;
  --blob-sq-2: #fbe4ef;

  --chip-soft-1: #8fd8c8;  --chip-soft-1-edge: #6bb3a3;
  --chip-soft-2: #f6bcd2;  --chip-soft-2-edge: #d194ac;
  --chip-dash-1: #c6e4db;
  --chip-dash-2: #eed3e0;

  --pill-border: #f6dfc0;
  --pill-text: #b3742c;

  --app-bg-1: #f2fbf7;
  --app-bg-2: #fdf4fb;
  --app-card: #fffdfa;
  --app-text: #4a4a58;
  --app-sub: #a9a4b6;
  --app-track: #edf1ef;
  --app-track-edge: #e0e6e3;
  --app-dash: #d5e0dc;
}

/* --------------------------------------------------------------------------
   Theme tokens — Quest (dark)
   -------------------------------------------------------------------------- */
[data-theme='quest'] {
  --primary: #1fd6a0;
  --primary-edge: #12a87c;
  --primary-2: #ff7a45;
  --primary-2-edge: #cc5c2c;
  --accent: #ffd23f;
  --accent-edge: #d1a91f;

  /* Quest's fills are bright — dark ink reads far better on them */
  --on-primary: #0d2b22;
  --on-primary-2: #4a1c07;
  --on-accent: #453506;

  --page: #180f2c;
  --page-alt: #241a3a;
  --nav-bg: rgba(24, 15, 44, .84);
  --surface: #2d2249;
  --logo-edge: #0f0a1e;

  --ink: #f3ecff;
  --body: #a99fce;
  --sub: #a99fce;
  --eyebrow-1: #59c9ae;
  --eyebrow-2: #ff9f78;

  --border-1: #3f3363;  --edge-1: #1f1638;  --tint-1: #3a2f5c;
  --border-2: #43376b;  --edge-2: #221a3d;  --tint-2: #3a2f5c;
  --border-3: #4a3a63;  --edge-3: #251b3c;  --tint-3: #3a2f5c;
  --border-4: #35486b;  --edge-4: #1e2440;  --tint-4: #33405c;

  --track: #3a2f5c;
  --track-edge: #241a3a;
  --dash: #4a3d70;
  --highlight: #12513f;
  --badge-border: #3f3363;
  --badge-edge: #1f1638;

  --band: #241a3a;
  --band-text: #f3ecff;
  --footer-link: #a99fce;
  --footer-fine: #7d719f;

  --cta-from: #2a2050;
  --cta-to: #3d2b66;
  --cta-edge: #130c28;

  --blob-1: #2c2150;
  --blob-2: #1f3d4f;
  --blob-3: #322357;
  --blob-4: #1d3f4d;
  --blob-sq-1: #2c2150;
  --blob-sq-2: #26304f;

  --chip-soft-1: #1fd6a0;  --chip-soft-1-edge: #12a87c;
  --chip-soft-2: #ff7a45;  --chip-soft-2-edge: #cc5c2c;
  --chip-dash-1: #3f3363;
  --chip-dash-2: #4a3d70;

  --pill-border: #4a3d70;
  --pill-text: #ffd23f;

  --app-bg-1: #241a3a;
  --app-bg-2: #180f2c;
  --app-card: #2d2249;
  --app-text: #f3ecff;
  --app-sub: #a99fce;
  --app-track: #3a2f5c;
  --app-track-edge: #241a3a;
  --app-dash: #4a3d70;
}

/* --------------------------------------------------------------------------
   Layout constants
   -------------------------------------------------------------------------- */
:root {
  --shell: 1320px;
  --gut: 28px;
  --font-body: 'Fredoka', ui-rounded, 'Segoe UI', system-ui, sans-serif;
  --font-display: 'Baloo 2', 'Fredoka', ui-rounded, system-ui, sans-serif;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  background: var(--page);
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 400 16px/1.5 var(--font-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background-color .35s ease, color .35s ease;
}

h1, h2, h3 { margin: 0; font-family: var(--font-display); }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; display: block; }

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-2); }

:focus-visible {
  outline: 3px solid var(--primary-2);
  outline-offset: 3px;
  border-radius: 6px;
}

.shell {
  max-width: var(--shell);
  margin: 0 auto;
  padding-left: var(--gut);
  padding-right: var(--gut);
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 10px;
  z-index: 100;
  padding: 12px 20px;
  border-radius: 12px;
  background: var(--primary);
  color: var(--on-primary);
  font: 700 14px var(--font-body);
}
.skip-link:focus { left: 16px; color: var(--on-primary); }

/* --------------------------------------------------------------------------
   Chunky buttons — flat fill + hard offset edge, depress on press
   -------------------------------------------------------------------------- */
.btn {
  --edge-h: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 18px 32px;
  border: 0;
  border-radius: 18px;
  font: 700 17px var(--font-body);
  text-transform: uppercase;
  letter-spacing: .04em;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 var(--edge-h) 0 var(--edge);
  transition: transform .07s ease, box-shadow .07s ease;
}
.btn:active {
  transform: translateY(calc(var(--edge-h) - 1px));
  box-shadow: 0 1px 0 var(--edge);
}
.btn--sm { --edge-h: 4px; padding: 12px 22px; border-radius: 14px; font-size: 14px; }
.btn--lg { --edge-h: 6px; padding: 18px 32px; font-size: 17px; }

.btn--primary { --edge: var(--primary-edge); background: var(--primary); color: var(--on-primary); }
.btn--primary:hover { color: var(--on-primary); }

.btn--ghost {
  --edge: var(--edge-2);
  background: var(--surface);
  color: var(--ink);
  border: 2px solid var(--border-2);
}
.btn--ghost:hover { color: var(--ink); }

.btn--white { --edge: rgba(0, 0, 0, .18); background: #fff; color: var(--primary-edge); }
.btn--white:hover { color: var(--primary-edge); }

.btn--translucent {
  --edge-h: 0px;
  background: rgba(255, 255, 255, .16);
  border: 2px solid rgba(255, 255, 255, .45);
  color: #fff;
  box-shadow: none;
}
.btn--translucent:hover { color: #fff; background: rgba(255, 255, 255, .24); }
.btn--translucent:active { transform: translateY(4px); box-shadow: none; }

/* "Coming soon" is informational, not clickable */
.is-soon { cursor: default; }
.is-soon:active { transform: none; box-shadow: 0 var(--edge-h) 0 var(--edge); }

/* --------------------------------------------------------------------------
   Nav
   -------------------------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--border-1);
}
.nav__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand { display: flex; align-items: center; gap: 11px; color: var(--ink); }
.brand:hover { color: var(--ink); }
/* The app icon itself — a cream tile, so it gets a warm edge rather than the
   theme's primary one. */
.brand__tile {
  /* a touch larger than the design's 44px tile — the icon's artwork sits inside
     its own margin, so it needs the extra to read at nav size */
  width: 48px; height: 48px;
  flex: none;
  border-radius: 16px;
  background: #fdf3e6;
  object-fit: cover;
  box-shadow: 0 4px 0 var(--logo-edge);
}
.brand__name { font: 700 22px var(--font-display); letter-spacing: -.01em; }

.nav__menu {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 26px;
}
.nav__menu a:not(.btn) { font: 600 15px var(--font-body); color: var(--body); }
.nav__menu a:not(.btn):hover { color: var(--primary); }

.nav__toggle {
  display: none;
  margin-left: auto;
  width: 46px; height: 46px;
  border: 2px solid var(--border-1);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 3px 0 var(--edge-1);
  cursor: pointer;
}
.nav__bars, .nav__bars::before, .nav__bars::after {
  display: block;
  width: 20px; height: 2.6px;
  border-radius: 99px;
  background: var(--ink);
  margin: 0 auto;
  transition: transform .18s ease, opacity .18s ease;
}
.nav__bars { position: relative; }
.nav__bars::before, .nav__bars::after { content: ''; position: absolute; left: 0; }
.nav__bars::before { top: -7px; }
.nav__bars::after { top: 7px; }
.nav__toggle[aria-expanded='true'] .nav__bars { background: transparent; }
.nav__toggle[aria-expanded='true'] .nav__bars::before { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded='true'] .nav__bars::after { transform: translateY(-7px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding: 70px 0 90px;
  overflow: hidden;
}
.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 70px;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 16px 9px 11px;
  border-radius: 99px;
  background: var(--surface);
  border: 2px solid var(--badge-border);
  box-shadow: 0 4px 0 var(--badge-edge);
  font: 600 13px var(--font-body);
  color: var(--primary-edge);
  animation: popIn .6s ease both;
}
.badge__emoji { font-size: 15px; }

.hero__title {
  font: 800 76px/1.02 var(--font-display);
  letter-spacing: -.025em;
  margin-top: 22px;
  text-wrap: pretty;
  animation: revealUp .7s ease both;
}
.mark {
  color: var(--primary);
  /* the highlight bar sitting behind the word */
  background: linear-gradient(var(--highlight), var(--highlight)) no-repeat 0 86% / 100% 14px;
  border-radius: 4px;
}

.hero__sub {
  font: 400 20px/1.6 var(--font-body);
  color: var(--body);
  margin-top: 20px;
  max-width: 470px;
  text-wrap: pretty;
  animation: revealUp .7s ease .1s both;
}

.hero__actions {
  display: flex;
  gap: 14px;
  margin-top: 34px;
  flex-wrap: wrap;
  animation: revealUp .7s ease .2s both;
}

.trust {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  margin-top: 32px;
  font: 500 14px var(--font-body);
  color: var(--body);
  animation: revealUp .7s ease .3s both;
}
.trust li { display: flex; align-items: center; gap: 8px; }
.trust span { font-size: 17px; }

/* Hero decorations */
.blob { position: absolute; pointer-events: none; }
.blob--pink {
  top: -90px; left: -140px;
  width: 420px; height: 420px;
  background: radial-gradient(circle, var(--blob-1), transparent 68%);
  animation: blob 16s ease-in-out infinite;
}
.blob--purple {
  top: 120px; right: -160px;
  width: 460px; height: 460px;
  background: radial-gradient(circle, var(--blob-2), transparent 68%);
  animation: blob 20s ease-in-out infinite reverse;
}
.deco { position: absolute; pointer-events: none; line-height: 1; }
.deco--hero-a { bottom: 56px; left: 38px; font-size: 36px; }
.deco--hero-b { top: 44px; right: 44px; font-size: 34px; }

/* --------------------------------------------------------------------------
   Hero phone mockup (CSS reproduction of the app's Today screen)
   -------------------------------------------------------------------------- */
.hero__phone {
  position: relative;
  display: flex;
  justify-content: center;
  animation: revealScale .8s ease both;
}
.orbit { position: absolute; line-height: 1; pointer-events: none; z-index: 2; }
.orbit--car { top: 34px; left: -46px; font-size: 46px; }
.orbit--bear { bottom: 150px; left: -56px; font-size: 38px; }
.orbit--pad { top: 120px; right: -58px; font-size: 34px; }
.orbit--balloon { bottom: 44px; right: -48px; font-size: 40px; }

.phone {
  position: relative;
  width: 326px;
  flex: none;
  background: #0d0b16;
  border-radius: 46px;
  padding: 10px;
  box-shadow: 0 40px 80px rgba(70, 30, 100, .26);
}
.phone__screen {
  border-radius: 37px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--app-bg-1), var(--app-bg-2));
}

.mini__status {
  display: flex;
  justify-content: space-between;
  padding: 13px 22px 2px;
  font: 600 11px var(--font-body);
  color: var(--app-text);
}
.mini__header {
  padding: 8px 15px 4px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.mini__avatar, .mini__gear {
  background: var(--app-card);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.mini__avatar { width: 38px; height: 38px; border-radius: 13px; font-size: 21px; }
.mini__gear { width: 34px; height: 34px; border-radius: 12px; font-size: 15px; }
.mini__titles { flex: 1; min-width: 0; }
.mini__greet { font: 500 10px var(--font-body); color: var(--app-sub); }
.mini__screen-title { font: 600 15px var(--font-body); color: var(--app-text); }

.mini__progress-card {
  margin: 6px 13px 0;
  padding: 13px;
  border-radius: 22px;
  background: var(--app-card);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .06);
  display: flex;
  align-items: center;
  gap: 13px;
}
.mini__ring {
  width: 56px; height: 56px;
  flex: none;
  border-radius: 50%;
  background: conic-gradient(var(--primary) 260deg, var(--app-track) 0);
  display: flex;
  align-items: center;
  justify-content: center;
}
.mini__ring-inner {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--app-card);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.mini__ring-num { font: 700 17px var(--font-body); line-height: 1; color: var(--app-text); }
.mini__ring-of { font: 600 8px var(--font-body); color: var(--app-sub); }
.mini__goal { flex: 1; min-width: 0; }
.mini__label { font: 500 11px var(--font-body); color: var(--app-sub); }
.mini__goal-name {
  font: 600 15px var(--font-body);
  color: var(--primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mini__bar {
  margin-top: 7px;
  height: 10px;
  border-radius: 99px;
  background: var(--app-track);
  overflow: hidden;
}
.mini__bar-fill {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
  animation: fillBar 1.6s .5s ease both;
}

.mini__chores {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 15px 13px 0;
}
.mini__chore {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border-radius: 16px;
  background: var(--app-card);
  border: 2px solid var(--app-track);
  box-shadow: 0 4px 0 var(--app-track-edge);
}
.mini__chore.is-done { opacity: .62; }
.mini__chore.is-done .mini__chore-name { text-decoration: line-through; }
.mini__chore-emoji {
  width: 36px; height: 36px;
  flex: none;
  border-radius: 12px;
  background: var(--app-track);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
}
.mini__chore-text { flex: 1; min-width: 0; }
.mini__chore-name { font: 600 13px var(--font-body); color: var(--app-text); }
.mini__chore-reward { font: 600 9px var(--font-body); color: var(--accent); }
.mini__check {
  width: 28px; height: 28px;
  flex: none;
  border-radius: 50%;
  background: var(--primary);
  color: var(--on-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font: 700 14px var(--font-body);
}
.mini__empty {
  width: 28px; height: 28px;
  flex: none;
  border-radius: 50%;
  border: 2px dashed var(--app-dash);
}
.mini__foot { height: 22px; }

.sticker-badge {
  position: absolute;
  top: 150px;
  /* Anchored off the phone's right edge (half the 326px frame + a 14px gap) so
     it stays clear of the bezel without overflowing the column on narrow desktops. */
  left: calc(50% + 177px);
  z-index: 3;
  padding: 11px 17px;
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 10px 24px rgba(70, 30, 100, .16);
  border: 2px solid var(--pill-border);
  font: 700 13px var(--font-body);
  color: var(--pill-text);
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Marquee
   -------------------------------------------------------------------------- */
.marquee {
  padding: 16px 0;
  background: var(--band);
  overflow: hidden;
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 26s linear infinite;
}
.marquee__group {
  display: flex;
  gap: 44px;
  padding-right: 44px;
  font: 600 19px var(--font-body);
  color: var(--band-text);
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Shared section furniture
   -------------------------------------------------------------------------- */
.section-head { text-align: center; }
.eyebrow {
  font: 600 13px var(--font-body);
  letter-spacing: .16em;
  text-transform: uppercase;
}
.eyebrow--pink { color: var(--eyebrow-1); }
.eyebrow--purple { color: var(--eyebrow-2); }

.section-title {
  font: 800 52px/1.1 var(--font-display);
  letter-spacing: -.02em;
  margin-top: 12px;
  text-wrap: pretty;
}
.section-title--left { font-size: 50px; line-height: 1.08; }

.section-sub {
  font: 400 18px/1.6 var(--font-body);
  color: var(--body);
  margin: 14px auto 0;
  max-width: 520px;
  text-wrap: pretty;
}
.lede {
  font: 400 19px/1.65 var(--font-body);
  color: var(--body);
  margin-top: 16px;
  max-width: 460px;
  text-wrap: pretty;
}

/* --------------------------------------------------------------------------
   How it works
   -------------------------------------------------------------------------- */
.how {
  position: relative;
  padding: 96px 0;
  background: var(--page);
  overflow: hidden;
}
.gutter { position: absolute; inset: 0; pointer-events: none; }
.chip-grid {
  position: absolute;
  display: grid;
  grid-template-columns: repeat(2, 52px);
  gap: 14px;
  opacity: .5;
}
.chip-grid--pink { top: 70px; left: 18px; transform: rotate(-8deg); }
.chip-grid--purple { top: 130px; right: 18px; transform: rotate(8deg); }
.chip {
  aspect-ratio: 1;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}
.chip--pink { background: var(--primary); box-shadow: 0 4px 0 var(--primary-edge); }
.chip--pink-soft { background: var(--chip-soft-1); box-shadow: 0 4px 0 var(--chip-soft-1-edge); }
.chip--purple { background: var(--primary-2); box-shadow: 0 4px 0 var(--primary-2-edge); }
.chip--purple-soft { background: var(--chip-soft-2); box-shadow: 0 4px 0 var(--chip-soft-2-edge); }
.chip--empty-pink { border: 2px dashed var(--chip-dash-1); }
.chip--empty-purple { border: 2px dashed var(--chip-dash-2); }
.deco--broom { bottom: 60px; left: 34px; font-size: 44px; }
.deco--bucket { bottom: 74px; right: 40px; font-size: 40px; }

.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-top: 52px;
}
.step-card {
  position: relative;
  padding: 34px 26px 30px;
  border-radius: 30px;
  background: var(--surface);
  border: 2px solid var(--bc);
  box-shadow: 0 8px 0 var(--ec);
}
.step-card--pink { --bc: var(--border-1); --ec: var(--edge-1); }
.step-card--purple { --bc: var(--border-2); --ec: var(--edge-2); }
.step-card--orange { --bc: var(--border-3); --ec: var(--edge-3); }

.step-card__num {
  position: absolute;
  top: -18px;
  left: 26px;
  width: 44px; height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font: 700 20px var(--font-display);
}
.step-card__num--pink {
  background: var(--primary);
  color: var(--on-primary);
  box-shadow: 0 4px 0 var(--primary-edge);
}
.step-card__num--purple {
  background: var(--primary-2);
  color: var(--on-primary-2);
  box-shadow: 0 4px 0 var(--primary-2-edge);
}
.step-card__num--orange {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 4px 0 var(--accent-edge);
}

.step-card__emoji { font-size: 52px; line-height: 1; width: max-content; }
.step-card__title { font: 700 24px var(--font-display); margin-top: 14px; }
.step-card__body {
  font: 400 16px/1.6 var(--font-body);
  color: var(--body);
  margin-top: 8px;
  text-wrap: pretty;
}

/* --------------------------------------------------------------------------
   Sticker-chart showcase
   -------------------------------------------------------------------------- */
.showcase {
  padding: 90px 0;
  background: linear-gradient(180deg, var(--page), var(--page-alt));
}
.showcase__grid {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 64px;
  align-items: center;
}

.chart-card {
  padding: 30px;
  border-radius: 34px;
  background: var(--surface);
  border: 2px solid var(--track);
  box-shadow: 0 10px 0 var(--track-edge);
}
.chart-card__title { text-align: center; font: 700 20px var(--font-display); }
.chart-card__sub {
  text-align: center;
  font: 500 13px var(--font-body);
  color: var(--sub);
  margin: 5px 0 20px;
}
.chart-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.cell {
  aspect-ratio: 1;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}
.cell--filled {
  background: var(--primary);
  box-shadow: 0 4px 0 var(--primary-edge);
  animation: pop .5s calc(var(--i) * .07s) ease both;
}
.cell--empty { border: 2px dashed var(--dash); opacity: .8; }

.goal-strip {
  margin-top: 20px;
  padding: 16px;
  border-radius: 22px;
  background: var(--primary);
  box-shadow: 0 5px 0 var(--primary-edge);
  color: var(--on-primary);
  text-align: center;
}
.goal-strip__emoji { font-size: 32px; line-height: 1; width: max-content; margin: 0 auto; }
.goal-strip__text { font: 600 15px var(--font-body); margin-top: 5px; }

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 30px;
}
.feature {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 18px;
  border-radius: 20px;
  background: var(--surface);
  border: 2px solid var(--bc);
  box-shadow: 0 5px 0 var(--ec);
}
.feature--pink { --bc: var(--border-1); --ec: var(--edge-1); }
.feature--purple { --bc: var(--border-2); --ec: var(--edge-2); }
.feature--orange { --bc: var(--border-3); --ec: var(--edge-3); }
.feature--mint { --bc: var(--border-4); --ec: var(--edge-4); }

.feature__icon {
  width: 44px; height: 44px;
  flex: none;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}
.feature__icon--pink { background: var(--tint-1); }
.feature__icon--purple { background: var(--tint-2); }
.feature__icon--orange { background: var(--tint-3); }
.feature__icon--mint { background: var(--tint-4); }
.feature__title { font: 700 17px var(--font-display); }
.feature__body { font: 400 14px/1.45 var(--font-body); color: var(--body); }

/* --------------------------------------------------------------------------
   Screenshot gallery
   -------------------------------------------------------------------------- */
.screens {
  padding: 90px 0 96px;
  background: linear-gradient(180deg, var(--page-alt), var(--page));
  overflow: hidden;
}
.gallery { position: relative; margin-top: 46px; }
.gallery__strip {
  display: flex;
  gap: 26px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 6px max(var(--gut), calc((100vw - var(--shell)) / 2)) 10px;
  scrollbar-width: none;
}
.gallery__strip::-webkit-scrollbar { display: none; }

.shot { margin: 0; scroll-snap-align: center; flex: none; }
.shot__phone {
  width: 232px;
  background: #0d0b16;
  border-radius: 34px;
  padding: 7px;
  box-shadow: 0 22px 44px rgba(70, 30, 100, .18);
}
.shot__phone img { border-radius: 28px; width: 100%; height: auto; }

/* The black bezels disappear into the Quest background without a hairline. */
[data-theme='quest'] .phone {
  box-shadow: 0 40px 80px rgba(0, 0, 0, .5), 0 0 0 1px rgba(255, 255, 255, .09);
}
[data-theme='quest'] .shot__phone {
  box-shadow: 0 22px 44px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 255, 255, .09);
}
.shot figcaption {
  margin-top: 16px;
  text-align: center;
  font: 600 14px var(--font-body);
  color: var(--body);
}

.gallery__nav {
  position: absolute;
  top: 44%;
  z-index: 4;
  width: 48px; height: 48px;
  border: 2px solid var(--border-1);
  border-radius: 50%;
  background: var(--surface);
  box-shadow: 0 4px 0 var(--edge-1);
  color: var(--primary);
  font: 700 26px/1 var(--font-body);
  cursor: pointer;
  transition: transform .07s ease, box-shadow .07s ease;
}
.gallery__nav:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--edge-1); }
.gallery__nav--prev { left: 14px; }
.gallery__nav--next { right: 14px; }
.gallery__nav[hidden] { display: none; }

.screens__note {
  margin: 26px auto 0;
  text-align: center;
  font: 400 13px var(--font-body);
  color: var(--sub);
}

/* --------------------------------------------------------------------------
   Themes — the cards double as a live theme switcher for this page
   -------------------------------------------------------------------------- */
.themes {
  position: relative;
  padding: 96px 0;
  background: var(--page);
  overflow: hidden;
}
.blob--themes-a {
  top: -60px; left: -120px;
  width: 340px; height: 340px;
  background: radial-gradient(circle, var(--blob-3), transparent 70%);
  animation: blob 18s ease-in-out infinite;
}
.blob--themes-b {
  bottom: -70px; right: -120px;
  width: 360px; height: 360px;
  background: radial-gradient(circle, var(--blob-4), transparent 70%);
  animation: blob 22s ease-in-out infinite reverse;
}
.deco--palette { top: 120px; left: 26px; font-size: 38px; }
.deco--spark-a { bottom: 110px; left: 60px; font-size: 32px; }
.deco--rainbow { top: 150px; right: 30px; font-size: 36px; }
.deco--spark-b { bottom: 120px; right: 64px; font-size: 30px; }

.theme-cards {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 52px;
}
.theme-card {
  position: relative;
  display: block;
  width: 100%;
  border-radius: 30px;
  padding: 26px 24px 22px;
  text-align: center;
  font-family: var(--font-body);
  border: 3px solid var(--tc);
  box-shadow: 0 8px 0 var(--te);
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease;
}
.theme-card:hover { transform: translateY(-6px); box-shadow: 0 14px 0 var(--te); }
.theme-card:active { transform: translateY(4px); box-shadow: 0 3px 0 var(--te); }

.theme-card--candy {
  --tc: #ff4d97; --te: #c93a75;
  background: linear-gradient(180deg, #fff0f6, #f3ecff);
}
.theme-card--pastel {
  --tc: #3fb59f; --te: #2e8a79;
  background: linear-gradient(180deg, #f2fbf7, #fdf4fb);
}
.theme-card--quest {
  --tc: #1fd6a0; --te: #12a87c;
  background: linear-gradient(180deg, #2c2150, #180f2c);
}
.theme-card__glyph { display: block; font-size: 46px; line-height: 1; width: max-content; margin: 0 auto; }
.theme-card__name { display: block; font: 700 26px var(--font-display); margin-top: 10px; }
.theme-card--candy .theme-card__name { color: #2c2340; }
.theme-card--pastel .theme-card__name { color: #4a4a58; }
.theme-card--quest .theme-card__name { color: #f3ecff; }
.theme-card__desc { display: block; font: 400 15px var(--font-body); color: #8b7fae; margin-top: 5px; }
.theme-card--quest .theme-card__desc { color: #a99fce; }

.swatches { display: flex; gap: 8px; justify-content: center; margin-top: 18px; }
.swatch {
  width: 34px; height: 34px;
  border-radius: 11px;
  background: var(--c);
  box-shadow: 0 3px 0 var(--e);
}

/* State pill at the foot of each theme card */
.theme-card__state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  padding: 7px 16px;
  border-radius: 99px;
  font: 700 12px var(--font-body);
  text-transform: uppercase;
  letter-spacing: .06em;
  background: var(--tc);
  color: #fff;
  box-shadow: 0 3px 0 var(--te);
}
.theme-card--pastel .theme-card__state { color: #12362f; }
.theme-card--quest .theme-card__state { color: #0d2b22; }
.theme-card[aria-pressed='true'] .theme-card__state::before { content: '✓ '; }
.theme-card[aria-pressed='true'] { cursor: default; }
.theme-card[aria-pressed='true']:hover { transform: none; box-shadow: 0 8px 0 var(--te); }
.theme-card[aria-pressed='true']:active { transform: none; box-shadow: 0 8px 0 var(--te); }

/* --------------------------------------------------------------------------
   For parents
   -------------------------------------------------------------------------- */
.parents {
  position: relative;
  padding: 90px 0;
  background: linear-gradient(180deg, var(--page-alt), var(--page));
  overflow: hidden;
}
.deco--coffee { top: 64px; left: 30px; font-size: 40px; }
.deco--house { top: 90px; right: 24px; font-size: 36px; }
.blob-square { position: absolute; opacity: .6; pointer-events: none; }
.blob-square--left {
  bottom: 80px; left: -24px;
  width: 120px; height: 120px;
  border-radius: 34px;
  background: var(--blob-sq-1);
  animation: blob 15s ease-in-out infinite;
}
.blob-square--right {
  bottom: 70px; right: -20px;
  width: 130px; height: 130px;
  border-radius: 36px;
  background: var(--blob-sq-2);
  animation: blob 17s ease-in-out infinite reverse;
}

.trust-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.trust-card {
  padding: 26px 22px;
  border-radius: 26px;
  background: var(--surface);
  border: 2px solid var(--bc);
  box-shadow: 0 6px 0 var(--ec);
}
.trust-card--pink { --bc: var(--border-1); --ec: var(--edge-1); }
.trust-card--purple { --bc: var(--border-2); --ec: var(--edge-2); }
.trust-card--orange { --bc: var(--border-3); --ec: var(--edge-3); }
.trust-card--mint { --bc: var(--border-4); --ec: var(--edge-4); }
.trust-card__emoji { font-size: 34px; line-height: 1; }
.trust-card__title { font: 700 19px var(--font-display); margin-top: 10px; }
.trust-card__body { font: 400 14px/1.55 var(--font-body); color: var(--body); margin-top: 6px; }

/* --------------------------------------------------------------------------
   CTA
   -------------------------------------------------------------------------- */
.cta-wrap { padding: 26px 0 80px; background: var(--page); }
.cta {
  position: relative;
  padding: 70px 40px 74px;
  border-radius: 44px;
  background: linear-gradient(135deg, var(--cta-from), var(--cta-to));
  box-shadow: 0 12px 0 var(--cta-edge);
  overflow: hidden;
  text-align: center;
}
.cta__deco { position: absolute; line-height: 1; pointer-events: none; }
.cta__deco--a { top: 24px; left: 44px; font-size: 44px; opacity: .9; }
.cta__deco--b { bottom: 30px; left: 96px; font-size: 34px; opacity: .85; }
.cta__deco--c { top: 54px; right: 70px; font-size: 40px; opacity: .9; }
.cta__deco--d { bottom: 26px; right: 130px; font-size: 32px; opacity: .85; }
.cta__inner { position: relative; }
.cta__title {
  font: 800 58px/1.06 var(--font-display);
  color: #fff;
  letter-spacing: -.02em;
  text-wrap: pretty;
}
.cta__sub {
  font: 400 19px/1.6 var(--font-body);
  color: rgba(255, 255, 255, .92);
  margin: 18px auto 0;
  max-width: 480px;
  text-wrap: pretty;
}
.cta__actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-top: 34px;
  flex-wrap: wrap;
}
.cta__note {
  font: 400 14px var(--font-body);
  color: rgba(255, 255, 255, .82);
  margin-top: 24px;
}
.cta__note a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.cta__note a:hover { color: rgba(255, 255, 255, .8); }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer { padding: 44px 0; background: var(--band); }
.footer__top {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.brand--footer .brand__name { color: var(--band-text); font-size: 19px; }
.brand--footer .brand__tile {
  width: 42px; height: 42px;
  border-radius: 14px;
  box-shadow: none;
}
.footer__links {
  margin-left: auto;
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
  font: 500 14px var(--font-body);
}
.footer__links a { color: var(--footer-link); }
.footer__links a:hover { color: var(--band-text); }
.footer__fine {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font: 400 13px var(--font-body);
  color: var(--footer-fine);
}

/* --------------------------------------------------------------------------
   Keyframes
   -------------------------------------------------------------------------- */
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes floatySlow {
  0%, 100% { transform: translateY(0) rotate(-6deg); }
  50% { transform: translateY(-22px) rotate(6deg); }
}
@keyframes wiggle { 0%, 100% { transform: rotate(-5deg); } 50% { transform: rotate(5deg); } }
@keyframes pop { 0% { transform: scale(0); } 60% { transform: scale(1.2); } 100% { transform: scale(1); } }
@keyframes popIn {
  0% { transform: scale(0); opacity: 0; }
  60% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}
@keyframes revealUp { from { opacity: 0; transform: translateY(38px); } to { opacity: 1; transform: none; } }
@keyframes revealScale { from { opacity: 0; transform: scale(.9); } to { opacity: 1; transform: none; } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes fillBar { from { width: 0; } to { width: 72%; } }
@keyframes blob {
  0%, 100% { border-radius: 44% 56% 62% 38% / 48% 42% 58% 52%; transform: rotate(0); }
  50% { border-radius: 60% 40% 38% 62% / 58% 56% 44% 42%; transform: rotate(12deg); }
}
@keyframes sparkle { 0%, 100% { opacity: .25; transform: scale(.7); } 50% { opacity: 1; transform: scale(1); } }
@keyframes bobIn {
  0% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
  100% { transform: translateY(0); }
}

/* Looping decorative motion */
.float { animation: floaty 5s ease-in-out infinite; }
.float-slow { animation: floatySlow 7s ease-in-out infinite; }
.float-phone { animation: floaty 8s ease-in-out infinite; }
.float-wiggle { animation: wiggle 2.6s ease-in-out infinite; }
.float-sparkle { animation: sparkle 3.4s ease-in-out infinite; }
.float-bob { animation: bobIn 3s ease-in-out infinite; }
.reverse { animation-direction: reverse; }
.delay-3 { animation-delay: .3s; }
.delay-4 { animation-delay: .4s; }
.delay-5 { animation-delay: .5s; }
.delay-6 { animation-delay: .6s; }

/* --------------------------------------------------------------------------
   Scroll reveals
   Scroll-driven timelines where supported, IntersectionObserver otherwise.
   main.js flags which mode is running, so with no JS and no scroll-timeline
   support everything simply stays visible.
   -------------------------------------------------------------------------- */
.scroll-anim .reveal {
  animation: revealUp .7s linear both;
  animation-timeline: view();
  animation-range: entry 5% cover var(--d, 26%);
}
.scroll-anim .reveal-scale {
  animation: revealScale .8s linear both;
  animation-timeline: view();
  animation-range: entry 5% cover var(--d, 32%);
}
.io-anim .reveal,
.io-anim .reveal-scale {
  opacity: 0;
  transition: opacity .7s ease, transform .7s ease;
}
.io-anim .reveal { transform: translateY(38px); }
.io-anim .reveal-scale { transform: scale(.94); }
.io-anim .reveal.is-visible,
.io-anim .reveal-scale.is-visible { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1180px) {
  .hero__title { font-size: 62px; }
  .hero__grid { gap: 44px; }
  .showcase__grid { gap: 44px; }
  .cta__title { font-size: 48px; }
}

@media (max-width: 1000px) {
  .hero { padding: 46px 0 70px; }
  .hero__grid { grid-template-columns: 1fr; gap: 52px; justify-items: center; }
  .hero__copy { max-width: 620px; text-align: center; }
  .hero__phone { order: -1; }
  .hero__sub { margin-left: auto; margin-right: auto; }
  .hero__actions, .trust { justify-content: center; }
  .showcase__grid { grid-template-columns: 1fr; }
  .chart-card { max-width: 520px; margin: 0 auto; }
  .lede { margin-left: auto; margin-right: auto; }
  .section-title--left, .showcase__grid > div:last-child { text-align: center; }
  .feature { text-align: left; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .theme-cards { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .gutter { display: none; }
}

@media (max-width: 900px) {
  .nav__toggle { display: block; }
  .nav__menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 14px var(--gut) 20px;
    background: var(--page);
    border-bottom: 2px solid var(--border-1);
  }
  .nav__menu.is-open { display: flex; }
  .nav__menu a:not(.btn) { padding: 12px 4px; font-size: 17px; }
  .nav__menu .btn { margin-top: 8px; }
  .nav__inner { position: relative; }
}

@media (max-width: 760px) {
  :root { --gut: 20px; }
  .hero__title { font-size: 44px; }
  .hero__sub { font-size: 17px; }
  .section-title, .section-title--left { font-size: 34px; }
  .section-sub, .lede { font-size: 16px; }
  .cta { padding: 46px 24px 50px; border-radius: 34px; }
  .cta__title { font-size: 34px; }
  .cta__sub { font-size: 17px; }
  .cta__deco { display: none; }
  .how, .themes { padding: 66px 0; }
  .showcase, .parents, .screens { padding: 66px 0; }
  .steps, .theme-cards, .trust-grid { grid-template-columns: 1fr; }
  .btn--lg { padding: 16px 26px; font-size: 16px; }
  .phone { width: 280px; }
  .sticker-badge { left: calc(50% + 154px); top: 122px; }
  .orbit--car { left: -14px; font-size: 38px; }
  .orbit--bear { left: -20px; bottom: 120px; font-size: 32px; }
  .orbit--pad { right: -18px; font-size: 30px; }
  .orbit--balloon { right: -12px; font-size: 34px; }
  .marquee__group { font-size: 16px; gap: 30px; padding-right: 30px; }
  .gallery__nav { display: none; }
  .footer__top { flex-direction: column; align-items: flex-start; }
  .footer__links { margin-left: 0; gap: 18px; }
}

@media (max-width: 560px) {
  /* Too little room left of the bezel once the toys are orbiting. */
  .sticker-badge { display: none; }
}

@media (max-width: 400px) {
  .phone { width: 250px; }
  .hero__title { font-size: 38px; }
}

/* --------------------------------------------------------------------------
   Reduced motion — kill the decorative loops, keep everything legible
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .float, .float-slow, .float-phone, .float-wiggle, .float-sparkle, .float-bob,
  .blob, .blob-square, .marquee__track, .badge, .hero__title, .hero__sub,
  .hero__actions, .trust, .hero__phone, .cell--filled, .mini__bar-fill {
    animation: none !important;
  }
  .mini__bar-fill { width: 72%; }
  .scroll-anim .reveal, .scroll-anim .reveal-scale { animation: none !important; }
  .io-anim .reveal, .io-anim .reveal-scale {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .theme-card { transition: none; }
  .gallery__strip { scroll-behavior: auto; }
  body { transition: none; }
}
