/* ==========================================================================
   Trendy Toys — Mystery Box landing page
   Single stylesheet, no build step. Re-theme from the :root block below.

   Design language: "sticker book". Everything is a bright shape with a thick
   ink outline and a hard offset shadow, like a vinyl sticker slapped on the
   page. Corners are generous, a few things sit very slightly askew, and the
   accent colours rotate through the palette so no two neighbouring cards match.
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. Fonts — self-hosted, so the page still makes zero external requests.
   Both files are variable, so one @font-face covers every weight used.
   -------------------------------------------------------------------------- */

@font-face {
  font-family: "Baloo 2";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/baloo2-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Baloo 2";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/baloo2-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("../fonts/nunito-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("../fonts/nunito-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+2C60-2C7F, U+A720-A7FF;
}

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */

:root {
  /* Brand palette.
     Each hue comes in three roles:
       --c-x        the "safe" tone — dark enough for white text to clear AA
       --c-x-bright the loud decorative fill (illustrations, dots, blobs)
       --c-x-dark   text-on-light and hover states
       --c-x-soft   tinted backgrounds
     Never put small white text on a -bright value; that's what the plain
     token is for. */
  --c-primary: #e0176e;          /* bubblegum — CTAs. 4.7:1 with white */
  --c-primary-bright: #ff3d8b;
  --c-primary-dark: #a8114f;     /* 7.3:1 on white */
  --c-primary-soft: #ffe3ef;

  --c-sky: #1180b8;              /* 4.7:1 with white */
  --c-sky-bright: #35bdf5;
  --c-sky-dark: #0b6188;
  --c-sky-soft: #dff4fe;

  --c-lime: #4e8a0c;             /* 4.6:1 with white */
  --c-lime-bright: #96dc2a;
  --c-lime-dark: #3d6d09;
  --c-lime-soft: #edfad4;

  --c-sun: #ffc32b;              /* always takes ink text, never white */
  --c-sun-bright: #ffd75e;
  --c-sun-dark: #86620a;         /* 4.9:1 on white */
  --c-sun-soft: #fff2cf;

  --c-violet: #7c3aed;           /* 5.7:1 with white */
  --c-violet-bright: #a882ff;
  --c-violet-dark: #5b21b6;
  --c-violet-soft: #efe6ff;

  --c-tangerine: #f4761b;
  --c-tangerine-soft: #ffe8d2;

  --c-page: #fff8f0;             /* warm cream */
  --c-surface: #ffffff;
  --c-surface-alt: #f3ecff;      /* lilac band */
  --c-surface-tint: #ddf3ff;     /* sky band */
  --c-ink: #2b1b47;              /* deep grape — outlines and body text */
  --c-ink-soft: #5f4d7d;         /* 5.9:1 on --c-page */
  --c-line: #e6dcf5;

  /* Type. Baloo 2 is the rounded display face; Nunito carries body copy. */
  --font-display: "Baloo 2", "Trebuchet MS", "Segoe UI", system-ui, sans-serif;
  --font: "Nunito", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont,
    Roboto, "Helvetica Neue", Arial, sans-serif;

  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: clamp(1rem, 0.96rem + 0.2vw, 1.0938rem);
  --fs-lg: clamp(1.125rem, 1.05rem + 0.35vw, 1.3125rem);
  --fs-xl: clamp(1.375rem, 1.18rem + 0.9vw, 1.875rem);
  --fs-2xl: clamp(1.875rem, 1.5rem + 1.7vw, 2.875rem);
  --fs-3xl: clamp(2.375rem, 1.7rem + 3.1vw, 4.25rem);

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 5rem;

  /* Big, soft, bubbly corners — the single strongest "this is for kids" cue. */
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;
  --radius-xl: 40px;
  --radius-pill: 999px;

  --border-w: 3px;
  --border-w-thick: 4px;

  /* Sticker shadows: a hard ink offset (the die-cut edge) with a soft ambient
     blur behind it so cards still feel like they're above the page. */
  --sticker-sm: 3px 3px 0 var(--c-ink);
  --sticker: 5px 6px 0 var(--c-ink), 10px 14px 22px rgba(43, 27, 71, 0.13);
  --sticker-lg: 7px 9px 0 var(--c-ink), 16px 22px 32px rgba(43, 27, 71, 0.16);
  --sticker-hover: 9px 11px 0 var(--c-ink), 18px 26px 34px rgba(43, 27, 71, 0.18);

  /* Chunky 3D button: shadow sits directly below so the button can be
     "pressed" into the page on :active. */
  --press: 0 5px 0 var(--c-ink), 0 8px 14px rgba(43, 27, 71, 0.22);
  --press-sm: 0 4px 0 var(--c-ink), 0 6px 10px rgba(43, 27, 71, 0.2);

  --wrap: 1140px;
  --nav-h: 72px;
}

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + var(--space-5));
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--c-page);
  color: var(--c-ink);
  font-family: var(--font);
  font-size: var(--fs-base);
  font-weight: 500;
  line-height: 1.65;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  margin: 0 0 var(--space-4);
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.005em;
}

h1 { font-size: var(--fs-3xl); }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-xl); }
h4 { font-size: var(--fs-lg); }

p { margin: 0 0 var(--space-4); }
p:last-child { margin-bottom: 0; }

a { color: var(--c-primary-dark); font-weight: 700; }
a:hover { color: var(--c-primary); }

img { max-width: 100%; display: block; }
svg { display: block; }

ul, ol { margin: 0; padding: 0; list-style: none; }

button { font: inherit; }

strong { font-weight: 800; }

:focus-visible {
  outline: 4px solid var(--c-violet);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

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

.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -100px;
  z-index: 200;
  padding: var(--space-3) var(--space-5);
  background: var(--c-ink);
  color: #fff;
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: top 0.15s ease;
}
.skip-link:focus { top: var(--space-4); color: #fff; }

/* The SVG sprite of toy illustrations lives at the top of <body>; it only
   exists to be referenced by <use>, never to be seen. */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* --------------------------------------------------------------------------
   3. Layout primitives
   -------------------------------------------------------------------------- */

.wrap {
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
}

.section {
  position: relative;
  padding-block: clamp(3.5rem, 7vw, 6rem);
}

/* Banded sections are giant rounded blocks floating on the cream page rather
   than full-bleed stripes — softer, and it keeps the page feeling like a
   stack of playful cards. */
.section--alt,
.section--tint {
  width: min(100% - 1.75rem, 1420px);
  margin-inline: auto;
  border-radius: clamp(28px, 4vw, 52px);
  overflow: hidden;
}
.section--alt { background-color: var(--c-surface-alt); }
.section--tint { background-color: var(--c-surface-tint); }

/* Loose confetti scattered over a band. One tile, four colours, deliberately
   irregular positions so the repeat doesn't read as a grid. */
.section--alt::before,
.section--tint::before,
.confetti::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 8% 14%, rgba(255, 61, 139, 0.22) 7px, transparent 8px),
    radial-gradient(circle at 72% 9%, rgba(53, 189, 245, 0.24) 9px, transparent 10px),
    radial-gradient(circle at 34% 62%, rgba(255, 195, 43, 0.3) 6px, transparent 7px),
    radial-gradient(circle at 91% 48%, rgba(150, 220, 42, 0.26) 8px, transparent 9px),
    radial-gradient(circle at 54% 88%, rgba(124, 58, 237, 0.16) 7px, transparent 8px);
  background-size: 460px 400px;
}
.section > .wrap { position: relative; z-index: 1; }

.section-head {
  max-width: 46rem;
  margin-bottom: var(--space-7);
}
.section-head p {
  color: var(--c-ink-soft);
  font-size: var(--fs-lg);
}
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { margin-inline: auto; }

/* Headings get a fat crayon underline in a rotating accent colour. */
.section-head h2 { position: relative; display: inline-block; }
.section-head h2::after {
  content: "";
  display: block;
  height: 8px;
  margin-top: 0.25rem;
  border-radius: var(--radius-pill);
  background: var(--u-color, var(--c-sun));
}
.section-head--center h2::after { margin-inline: auto; width: 72%; }

.grid { display: grid; gap: var(--space-5); }

/* Sticker-style label. Sits very slightly askew on purpose. Block-level with a
   shrink-to-fit width, so it always takes its own line above the heading. */
.eyebrow {
  display: block;
  width: fit-content;
  margin-bottom: var(--space-4);
  padding: 0.3rem var(--space-5);
  border: var(--border-w) solid var(--c-ink);
  border-radius: var(--radius-pill);
  background: var(--c-sun);
  color: var(--c-ink);
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: var(--sticker-sm);
  transform: rotate(-2deg);
}

/* --------------------------------------------------------------------------
   4. Buttons — chunky, pill-shaped, and pressable
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  min-height: 52px;
  border: var(--border-w) solid var(--c-ink);
  border-radius: var(--radius-pill);
  box-shadow: var(--press);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease,
    background-color 0.15s ease, color 0.15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--c-ink), 0 11px 18px rgba(43, 27, 71, 0.24); }
.btn:active { transform: translateY(5px); box-shadow: 0 0 0 var(--c-ink); }

.btn--primary { background: var(--c-primary); color: #fff; }
.btn--primary:hover { background: var(--c-primary-bright); color: #fff; }

.btn--secondary { background: var(--c-surface); color: var(--c-primary-dark); }
.btn--secondary:hover { background: var(--c-primary-soft); color: var(--c-primary-dark); }

.btn--sky { background: var(--c-sky); color: #fff; }
.btn--sky:hover { background: var(--c-sky-bright); color: var(--c-ink); }

.btn--ghost { background: var(--c-surface); color: var(--c-ink); }
.btn--ghost:hover { background: var(--c-sun-soft); color: var(--c-ink); }

.btn--sm { padding: var(--space-2) var(--space-5); min-height: 44px; font-size: var(--fs-sm); box-shadow: var(--press-sm); }
.btn--sm:active { box-shadow: 0 0 0 var(--c-ink); transform: translateY(4px); }
.btn--lg { padding: var(--space-4) var(--space-7); min-height: 60px; font-size: 1.1875rem; }
.btn--block { width: 100%; }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}
.cta-row--center { justify-content: center; }
@media (max-width: 520px) { .cta-row .btn { flex: 1 1 100%; } }

/* --------------------------------------------------------------------------
   5. Toy illustrations
   The artwork itself lives in the SVG sprite in index.html. These rules only
   deal with the frame it sits in: a coloured, outlined tile.
   -------------------------------------------------------------------------- */

.toy {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
  border: var(--border-w) solid var(--c-ink);
  border-radius: var(--radius-lg);
  background: var(--tile, var(--c-sun-soft));
  overflow: hidden;
}

/* A soft halo behind the toy so it reads as lit from the front. */
.toy::before {
  content: "";
  position: absolute;
  inset: 18%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.65);
}

.toy svg {
  position: relative;
  width: 78%;
  height: 78%;
}
/* On a 4:3 tile there's spare width, so let the artwork grow into it. */
.toy--wide svg { width: 100%; height: 84%; }

.toy--wide { aspect-ratio: 4 / 3; }
.toy--portrait { aspect-ratio: 3 / 4; }

/* Tile colours, rotated across every gallery and grid so neighbours differ. */
.tile-pink   { --tile: var(--c-primary-soft); }
.tile-sky    { --tile: var(--c-sky-soft); }
.tile-lime   { --tile: var(--c-lime-soft); }
.tile-sun    { --tile: var(--c-sun-soft); }
.tile-violet { --tile: var(--c-violet-soft); }
.tile-tang   { --tile: var(--c-tangerine-soft); }

/* --------------------------------------------------------------------------
   5b. Toy gallery — "what could be in your box"
   -------------------------------------------------------------------------- */

.toybox {
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: var(--space-5);
}

.toybox__item {
  display: flex;
  flex-direction: column;
  padding: var(--space-4);
  border: var(--border-w) solid var(--c-ink);
  border-radius: var(--radius-lg);
  background: var(--c-surface);
  box-shadow: var(--sticker);
  text-align: center;
  transform: rotate(var(--tilt, 0deg));
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.toybox__item:hover {
  transform: rotate(0deg) translate(-3px, -4px) scale(1.03);
  box-shadow: var(--sticker-hover);
}

/* Alternating tilt, so the grid reads as loose stickers rather than a table. */
.toybox__item:nth-child(3n + 1) { --tilt: -1.6deg; }
.toybox__item:nth-child(3n + 2) { --tilt: 1.2deg; }
.toybox__item:nth-child(3n + 3) { --tilt: -0.6deg; }

.toybox__item h3 {
  margin: var(--space-4) 0 var(--space-1);
  font-size: 1.125rem;
}
.toybox__item p {
  color: var(--c-ink-soft);
  font-size: var(--fs-sm);
  line-height: 1.5;
}

.toybox__note {
  margin-top: var(--space-6);
  text-align: center;
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--c-ink-soft);
}

/* --------------------------------------------------------------------------
   6. Promo bar
   -------------------------------------------------------------------------- */

.promo {
  position: relative;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  padding: var(--space-3) 3.25rem;
  background: var(--c-violet);
  color: #fff;
  font-size: var(--fs-sm);
  font-weight: 700;
  text-align: center;
}
.promo[hidden] { display: none; }
.no-js .promo[hidden] { display: flex; }
.no-js .promo__close { display: none; }

.promo code {
  display: inline-block;
  padding: 0.1rem 0.6rem;
  border-radius: var(--radius-pill);
  background: var(--c-sun);
  color: var(--c-ink);
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.06em;
}

.promo__close {
  position: absolute;
  right: var(--space-4);
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  background: transparent;
  color: inherit;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.15s ease;
}
.promo__close:hover { background: rgba(255, 255, 255, 0.2); transform: rotate(90deg); }

/* --------------------------------------------------------------------------
   7. Header / navigation
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 248, 240, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: var(--border-w) solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.site-header.is-stuck {
  border-bottom-color: var(--c-ink);
  box-shadow: 0 6px 0 rgba(43, 27, 71, 0.08);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  min-height: var(--nav-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--c-ink);
  font-family: var(--font-display);
  font-weight: 800;
  text-decoration: none;
}
.brand:hover { color: var(--c-ink); }
.brand:hover .brand__mark { transform: rotate(-12deg) scale(1.06); }

.brand__mark {
  width: 40px;
  height: 40px;
  flex: none;
  transition: transform 0.2s ease;
}

.brand__name { font-size: 1.2rem; line-height: 1.05; }
.brand__name span {
  display: block;
  font-family: var(--font);
  font-size: 0.66rem;
  font-weight: 800;
  color: var(--c-primary-dark);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-5);
}
.nav__links a:not(.btn) {
  color: var(--c-ink);
  font-weight: 700;
  text-decoration: none;
  padding: var(--space-1) 0;
  border-bottom: 3px solid transparent;
  border-radius: 2px;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.nav__links a:not(.btn):hover { color: var(--c-primary-dark); border-bottom-color: var(--c-primary-bright); }

.nav__toggle {
  display: none;
  width: 48px;
  height: 48px;
  place-items: center;
  border: var(--border-w) solid var(--c-ink);
  border-radius: var(--radius-sm);
  background: var(--c-surface);
  box-shadow: var(--sticker-sm);
  cursor: pointer;
}
.nav__toggle span,
.nav__toggle span::before,
.nav__toggle span::after {
  display: block;
  width: 22px;
  height: 3px;
  border-radius: 2px;
  background: var(--c-ink);
  transition: transform 0.2s ease, background-color 0.2s ease;
}
.nav__toggle span { position: relative; }
.nav__toggle span::before,
.nav__toggle span::after { content: ""; position: absolute; left: 0; }
.nav__toggle span::before { top: -7px; }
.nav__toggle span::after { top: 7px; }

.nav__toggle[aria-expanded="true"] span { background: transparent; }
.nav__toggle[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav__toggle { display: grid; }

  .nav__links {
    position: absolute;
    top: calc(100% + 10px);
    left: var(--space-4);
    right: var(--space-4);
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-2);
    padding: var(--space-4);
    border: var(--border-w) solid var(--c-ink);
    border-radius: var(--radius-lg);
    background: var(--c-surface);
    box-shadow: var(--sticker);
    display: none;
  }
  .nav__links.is-open { display: flex; }
  .nav__links a:not(.btn) { padding: var(--space-3); border-bottom: 0; border-radius: var(--radius-sm); }
  .nav__links a:not(.btn):hover { background: var(--c-primary-soft); }
  .nav__links .btn { margin-top: var(--space-2); }

  /* Without JS the menu can't be toggled, so show the links inline instead. */
  .no-js .nav__links { position: static; display: flex; flex-direction: row; flex-wrap: wrap; border: 0; box-shadow: none; background: none; padding: 0; }
  .no-js .nav__toggle { display: none; }
}

/* --------------------------------------------------------------------------
   8. Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3rem, 7vw, 5.5rem);
  overflow: hidden;
}

.hero__inner {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  position: relative;
  z-index: 1;
}
@media (min-width: 900px) {
  .hero__inner { grid-template-columns: 1.02fr 1fr; }
}

.hero h1 { margin-bottom: var(--space-5); }

/* The emphasised phrase gets a hand-drawn highlighter swipe behind it. */
.hero h1 em {
  position: relative;
  font-style: normal;
  color: var(--c-primary-dark);
  white-space: nowrap;
}
.hero h1 em::after {
  content: "";
  position: absolute;
  left: -0.12em;
  right: -0.12em;
  bottom: 0.3em;
  height: 0.34em;
  z-index: -1;
  border-radius: var(--radius-pill);
  background: var(--c-sun-bright);
  transform: rotate(-1.2deg);
}

.hero__lede {
  max-width: 34rem;
  font-size: var(--fs-lg);
  color: var(--c-ink-soft);
  margin-bottom: var(--space-6);
}

.badge-row {
  display: grid;
  gap: var(--space-3);
  font-size: var(--fs-sm);
  font-weight: 700;
}
.badge-row li { display: flex; align-items: center; gap: var(--space-3); }
.badge-row li::before {
  content: "";
  flex: none;
  width: 24px;
  height: 24px;
  border: 2px solid var(--c-ink);
  border-radius: 50%;
  background: var(--c-lime-bright)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232b1b47' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 15px no-repeat;
}

/* Hero artwork — the mystery box, drifting gently. */
.hero__art {
  position: relative;
  max-width: 560px;
  width: 100%;
  margin-inline: auto;
  animation: float 6s ease-in-out infinite;
}
.hero__art svg { width: 100%; height: auto; }

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-0.6deg); }
  50%      { transform: translateY(-14px) rotate(0.6deg); }
}

/* Two soft colour blobs behind the hero, purely decorative. */
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(8px);
  z-index: 0;
  pointer-events: none;
}
.hero::before {
  width: 420px; height: 420px;
  top: -140px; right: -120px;
  background: radial-gradient(circle, rgba(53, 189, 245, 0.3), transparent 68%);
}
.hero::after {
  width: 360px; height: 360px;
  bottom: -160px; left: -140px;
  background: radial-gradient(circle, rgba(255, 195, 43, 0.4), transparent 68%);
}

/* --------------------------------------------------------------------------
   9. Carousel
   -------------------------------------------------------------------------- */

.carousel { position: relative; }

.carousel__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 76%;
  gap: var(--space-5);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  /* Room for the sticker shadows, which would otherwise be clipped. */
  padding: 8px 22px 20px 8px;
  margin: -8px -22px -20px -8px;
  scrollbar-width: none;
}
.carousel__track::-webkit-scrollbar { display: none; }
@media (min-width: 560px) { .carousel__track { grid-auto-columns: calc(50% - 12px); } }
@media (min-width: 800px) { .carousel__track { grid-auto-columns: calc(33.333% - 16px); } }
@media (min-width: 1080px) { .carousel__track { grid-auto-columns: calc(25% - 18px); } }

.carousel__item {
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: var(--border-w) solid var(--c-ink);
  border-radius: var(--radius-lg);
  background: var(--c-surface);
  box-shadow: var(--sticker);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.carousel__item:hover { transform: translate(-3px, -4px); box-shadow: var(--sticker-hover); }

.carousel__item .toy {
  border: 0;
  border-bottom: var(--border-w) solid var(--c-ink);
  border-radius: 0;
}
.carousel__caption { padding: var(--space-4) var(--space-5) var(--space-5); }
.carousel__item h3 { font-size: 1.1875rem; margin-bottom: var(--space-1); }
.carousel__item p { font-size: var(--fs-sm); color: var(--c-ink-soft); line-height: 1.5; }

.carousel__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  margin-top: var(--space-6);
}

.carousel__btn {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: var(--border-w) solid var(--c-ink);
  border-radius: 50%;
  background: var(--c-sun);
  color: var(--c-ink);
  box-shadow: var(--press-sm);
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.15s ease;
}
.carousel__btn:hover { background: var(--c-sun-bright); transform: translateY(-2px); }
.carousel__btn:active { transform: translateY(4px); box-shadow: 0 0 0 var(--c-ink); }
.carousel__btn[disabled] { opacity: 0.35; cursor: default; transform: none; box-shadow: var(--press-sm); }
.carousel__btn svg { width: 22px; height: 22px; }

.carousel__dots { display: flex; gap: var(--space-2); }
.carousel__dots button {
  width: 14px;
  height: 14px;
  padding: 0;
  border: 2px solid var(--c-ink);
  border-radius: 50%;
  background: var(--c-surface);
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.15s ease;
}
.carousel__dots button:hover { transform: scale(1.2); }
.carousel__dots button[aria-current="true"] { background: var(--c-primary-bright); transform: scale(1.25); }

/* --------------------------------------------------------------------------
   10. Steps / features
   -------------------------------------------------------------------------- */

.steps { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: var(--space-6); }

.step {
  position: relative;
  padding: var(--space-6) var(--space-5) var(--space-5);
  border: var(--border-w) solid var(--c-ink);
  border-radius: var(--radius-lg);
  background: var(--c-surface);
  box-shadow: var(--sticker);
  text-align: center;
  transform: rotate(var(--tilt, 0deg));
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.step:nth-child(1) { --tilt: -1.4deg; }
.step:nth-child(2) { --tilt: 0.9deg; }
.step:nth-child(3) { --tilt: -0.7deg; }
.step:hover { transform: rotate(0deg) translate(-3px, -4px); box-shadow: var(--sticker-hover); }

/* Big numbered badge poking over the top edge of the card. */
.step__num {
  position: absolute;
  top: -24px;
  left: 50%;
  transform: translateX(-50%);
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: var(--border-w) solid var(--c-ink);
  border-radius: 50%;
  background: var(--c-primary-bright);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  box-shadow: var(--sticker-sm);
}
.step:nth-child(2) .step__num { background: var(--c-sky-bright); color: var(--c-ink); }
.step:nth-child(3) .step__num { background: var(--c-lime-bright); color: var(--c-ink); }

.step .toy {
  width: 132px;
  margin: var(--space-4) auto var(--space-5);
  border-radius: 50%;
}
.step p { color: var(--c-ink-soft); }

.features { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }

.feature {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: var(--border-w) solid var(--c-ink);
  border-radius: var(--radius-lg);
  background: var(--c-surface);
  box-shadow: var(--sticker);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.feature:hover { transform: translate(-3px, -4px); box-shadow: var(--sticker-hover); }
.feature .toy { border: 0; border-bottom: var(--border-w) solid var(--c-ink); border-radius: 0; }
.feature__body { padding: var(--space-5); }
.feature h3 { font-size: var(--fs-lg); margin-bottom: var(--space-2); }
.feature p { color: var(--c-ink-soft); font-size: var(--fs-sm); line-height: 1.55; }

/* --------------------------------------------------------------------------
   11. Founder
   -------------------------------------------------------------------------- */

.founder__inner {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}
@media (min-width: 820px) {
  .founder__inner { grid-template-columns: 340px 1fr; }
}

.founder__portrait {
  max-width: 340px;
  width: 100%;
  margin-inline: auto;
  border-radius: var(--radius-xl);
  box-shadow: var(--sticker-lg);
  transform: rotate(-2deg);
}

.founder__sig {
  margin-top: var(--space-5);
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--c-primary-dark);
}
.founder__sig span {
  display: block;
  font-family: var(--font);
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--c-ink-soft);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   12. Pricing
   -------------------------------------------------------------------------- */

.pricing { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--space-6); align-items: start; }

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: var(--space-6) var(--space-5) var(--space-5);
  border: var(--border-w) solid var(--c-ink);
  border-radius: var(--radius-lg);
  background: var(--c-surface);
  box-shadow: var(--sticker);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.plan:hover { transform: translate(-3px, -4px); box-shadow: var(--sticker-hover); }

.plan.is-featured {
  background: var(--c-sun-soft);
  border-width: var(--border-w-thick);
  box-shadow: var(--sticker-lg);
}

/* Ribbon badge, tilted and hanging off the corner like a price sticker. */
.plan__badge {
  position: absolute;
  top: -18px;
  right: -10px;
  padding: 0.25rem var(--space-4);
  border: var(--border-w) solid var(--c-ink);
  border-radius: var(--radius-pill);
  background: var(--c-primary-bright);
  color: #fff;
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 800;
  letter-spacing: 0.03em;
  box-shadow: var(--sticker-sm);
  transform: rotate(5deg);
}
.plan.is-featured .plan__badge { background: var(--c-lime-bright); color: var(--c-ink); }

.plan h3 { font-size: var(--fs-xl); margin-bottom: var(--space-2); }
.plan__price {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
  margin-bottom: var(--space-1);
}
.plan__amount {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 2rem + 2vw, 3.25rem);
  font-weight: 800;
  line-height: 1;
  color: var(--c-primary-dark);
}
.plan__per { color: var(--c-ink-soft); font-size: var(--fs-sm); font-weight: 700; }
.plan__billed { color: var(--c-ink-soft); font-size: var(--fs-sm); margin-bottom: var(--space-5); }
.plan__billed:has(+ .plan__savings) { margin-bottom: var(--space-2); }

.plan__savings {
  display: inline-block;
  align-self: flex-start;
  margin-bottom: var(--space-5);
  padding: 0.15rem var(--space-4);
  border: 2px solid var(--c-ink);
  border-radius: var(--radius-pill);
  background: var(--c-lime-bright);
  color: var(--c-ink);
  font-size: var(--fs-sm);
  font-weight: 800;
}

.plan__list { margin-bottom: var(--space-6); display: grid; gap: var(--space-3); }
.plan__list li {
  position: relative;
  padding-left: 2rem;
  font-size: var(--fs-sm);
  line-height: 1.5;
}
.plan__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.15em;
  width: 20px;
  height: 20px;
  border: 2px solid var(--c-ink);
  border-radius: 50%;
  background: var(--c-sky-bright)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232b1b47' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 13px no-repeat;
}

.plan .btn { margin-top: auto; }

.pricing-note {
  margin-top: var(--space-6);
  text-align: center;
  color: var(--c-ink-soft);
  font-size: var(--fs-sm);
  max-width: 44rem;
  margin-inline: auto;
}

/* --------------------------------------------------------------------------
   13. Press / testimonials (shipped commented out in the HTML)
   -------------------------------------------------------------------------- */

.logo-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-6);
  color: var(--c-ink-soft);
}
.logo-strip li {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.quotes { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.quote {
  margin: 0;
  padding: var(--space-6);
  border: var(--border-w) solid var(--c-ink);
  border-radius: var(--radius-lg);
  background: var(--c-surface);
  box-shadow: var(--sticker);
}
.quote blockquote { margin: 0 0 var(--space-4); font-size: var(--fs-lg); line-height: 1.5; font-weight: 600; }
.quote figcaption { color: var(--c-ink-soft); font-size: var(--fs-sm); font-weight: 700; }

/* --------------------------------------------------------------------------
   14. FAQ
   -------------------------------------------------------------------------- */

.faq { max-width: 46rem; margin-inline: auto; display: grid; gap: var(--space-4); }

.faq details {
  overflow: hidden;
  border: var(--border-w) solid var(--c-ink);
  border-radius: var(--radius);
  background: var(--c-surface);
  box-shadow: var(--sticker-sm);
}
.faq details[open] { box-shadow: var(--sticker); }

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  transition: background-color 0.15s ease;
}
.faq summary::-webkit-details-marker { display: none; }

/* Round +/- toggle rather than a chevron — friendlier, and readable at a glance. */
.faq summary::after {
  content: "";
  flex: none;
  width: 30px;
  height: 30px;
  border: 2px solid var(--c-ink);
  border-radius: 50%;
  background: var(--c-sun)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' stroke='%232b1b47' stroke-width='4' stroke-linecap='round'%3E%3Cpath d='M5 12h14M12 5v14'/%3E%3C/svg%3E") center / 15px no-repeat;
  transition: transform 0.2s ease, background-color 0.2s ease;
}
.faq details[open] summary::after {
  transform: rotate(135deg);
  background-color: var(--c-primary-bright);
}
.faq summary:hover { background: var(--c-sun-soft); }
.faq__body { padding: 0 var(--space-5) var(--space-5); color: var(--c-ink-soft); }

/* --------------------------------------------------------------------------
   15. Newsletter
   -------------------------------------------------------------------------- */

.newsletter {
  position: relative;
  max-width: 40rem;
  margin-inline: auto;
  padding: clamp(2rem, 5vw, 3.5rem);
  border: var(--border-w-thick) solid var(--c-ink);
  border-radius: var(--radius-xl);
  background: var(--c-lime-soft);
  box-shadow: var(--sticker-lg);
  text-align: center;
  overflow: hidden;
}
.newsletter > * { position: relative; z-index: 1; }
.newsletter .eyebrow { margin-inline: auto; }
.newsletter p { color: var(--c-ink-soft); }

.newsletter__form {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: center;
  margin-top: var(--space-5);
}
.newsletter__form input[type="email"] {
  flex: 1 1 16rem;
  min-height: 52px;
  padding: var(--space-3) var(--space-5);
  border: var(--border-w) solid var(--c-ink);
  border-radius: var(--radius-pill);
  background: var(--c-surface);
  color: var(--c-ink);
  font: inherit;
  font-weight: 600;
}
.newsletter__form input[type="email"]::placeholder { color: #9385ad; }

.newsletter__msg {
  min-height: 1.5rem;
  margin-top: var(--space-4);
  font-size: var(--fs-sm);
  font-weight: 800;
}
.newsletter__msg[data-state="error"] { color: var(--c-primary-dark); }
.newsletter__msg[data-state="ok"] { color: var(--c-lime-dark); }
.newsletter__fine { margin-top: var(--space-2); font-size: var(--fs-xs); color: var(--c-ink-soft); }

/* --------------------------------------------------------------------------
   16. Social grid
   -------------------------------------------------------------------------- */

.social-grid {
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--space-4);
}
.social-grid .toy {
  box-shadow: var(--sticker-sm);
  transform: rotate(var(--tilt, 0deg));
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.social-grid .toy:nth-child(odd) { --tilt: -2deg; }
.social-grid .toy:nth-child(even) { --tilt: 2deg; }
.social-grid .toy:hover { transform: rotate(0deg) scale(1.06); box-shadow: var(--sticker); }

/* --------------------------------------------------------------------------
   17. Footer
   -------------------------------------------------------------------------- */

.site-footer {
  margin-top: clamp(3rem, 6vw, 5rem);
  padding-block: var(--space-8) var(--space-6);
  border-top: var(--border-w-thick) solid var(--c-ink);
  background: var(--c-violet-dark);
  color: #efe9fb;
}
.site-footer a { color: #efe9fb; text-decoration: none; font-weight: 600; }
.site-footer a:hover { color: var(--c-sun-bright); text-decoration: underline; }

.footer__cols {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  margin-bottom: var(--space-7);
}
.footer__cols h3 {
  font-size: var(--fs-base);
  color: var(--c-sun);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--space-4);
}
.footer__cols li { margin-bottom: var(--space-3); font-size: var(--fs-sm); }

.footer__brand p { color: #c3b6e0; font-size: var(--fs-sm); }
.footer__brand .brand { color: #fff; margin-bottom: var(--space-4); }
.footer__brand .brand:hover { color: #fff; }
.footer__brand .brand__name span { color: var(--c-sun-bright); }

.footer__social { display: flex; gap: var(--space-3); margin-top: var(--space-5); }
.footer__social a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  transition: background-color 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}
.footer__social a:hover {
  background: var(--c-sun);
  border-color: var(--c-sun);
  color: var(--c-ink);
  transform: translateY(-3px) rotate(-8deg);
}
.footer__social svg { width: 22px; height: 22px; }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-top: var(--space-5);
  border-top: 2px solid rgba(255, 255, 255, 0.16);
  font-size: var(--fs-sm);
  color: #c3b6e0;
}
.footer__pay { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.footer__pay li {
  padding: 0.1rem var(--space-3);
  border: 2px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius-pill);
  font-size: var(--fs-xs);
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   18. Floating mobile CTA
   -------------------------------------------------------------------------- */

.floating-cta {
  position: fixed;
  left: 50%;
  bottom: var(--space-5);
  z-index: 45;
  transform: translateX(-50%) translateY(20px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}
.floating-cta.is-visible { opacity: 1; visibility: visible; transform: translateX(-50%); }
.floating-cta:hover { transform: translateX(-50%) translateY(-2px); }
.floating-cta:active { transform: translateX(-50%) translateY(5px); }

@media (min-width: 861px) { .floating-cta { display: none; } }

/* --------------------------------------------------------------------------
   19. Scroll reveal — the class is only added once JS confirms it can undo it.
   -------------------------------------------------------------------------- */

.js-reveal .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.js-reveal .reveal.is-in { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   20. Reduced motion — drop every decorative movement, keep every state change
   -------------------------------------------------------------------------- */

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .hero__art { animation: none; }

  /* Hover lifts and the deliberate sticker tilt both go away. */
  .toybox__item,
  .step,
  .founder__portrait,
  .social-grid .toy,
  .eyebrow,
  .plan__badge { transform: none; }

  .toybox__item:hover,
  .step:hover,
  .feature:hover,
  .plan:hover,
  .carousel__item:hover,
  .social-grid .toy:hover { transform: none; }
}
