:root {
  --ink: #1A1A1A;
  --ink-2: #444444;
  --white: #FFFFFF;
  --cream: #F1EEEB;
  --sky: #E2F5F9;
  --line: #E6E2DD;

  /* Brick colours */
  --red: #DA291C;
  --red-dark: #B81F14;
  --yellow: #FFCF00;
  --blue: #1D5FBF;
  --green: #00A651;
  --size-s: #8EC9F0;
  --size-m: #1D5FBF;
  --size-b: #DA291C;
  --size-x: #F5B301;

  --font: "Figtree", system-ui, sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { margin: 0; font-weight: 800; line-height: 1.1; }
h1 { font-size: clamp(2.25rem, 1.4rem + 3.6vw, 4rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.875rem, 1.4rem + 1.6vw, 2.5rem); letter-spacing: -.01em; }
h3 { font-size: 1.25rem; }
p { margin: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }

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

.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.section { padding-block: 72px; scroll-margin-top: 64px; }
.section-lede { margin-top: 10px; font-size: 1.0625rem; color: var(--ink-2); }
.tint-cream { background: var(--cream); }
.tint-sky { background: var(--sky); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: 1.0625rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease-out, transform .1s ease-out;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { cursor: progress; opacity: .7; }
.btn-red { background: var(--red); color: var(--white); }
.btn-red:hover { background: var(--red-dark); }
.btn-yellow { background: var(--yellow); color: var(--ink); }
.btn-yellow:hover { background: #F2C200; }
.btn-outline { background: var(--white); color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--white); }
.btn-small { min-height: 40px; padding: 0 18px; font-size: .9375rem; }

/* Offer bar and header */
.offer-bar {
  padding: 8px 20px;
  background: var(--green);
  color: var(--white);
  font-size: .875rem;
  font-weight: 600;
  text-align: center;
}
.site-header { position: sticky; top: 0; z-index: 10; background: var(--white); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-size: 1.125rem; font-weight: 800; text-decoration: none; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) { font-size: .9375rem; font-weight: 600; text-decoration: none; color: var(--ink-2); }
.nav a:not(.btn):hover { color: var(--ink); }

/* Hero */
.hero { padding-block: 48px 24px; background: var(--sky); }
.hero-grid { display: grid; grid-template-columns: 1fr 1.1fr; align-items: center; gap: 40px; }
.lede { margin-top: 18px; max-width: 30ch; font-size: 1.25rem; color: var(--ink-2); }
.lede strong { color: var(--ink); font-weight: 800; }
.hero-copy .btn { margin-top: 28px; }
.hero-note { margin-top: 12px; font-size: .9375rem; color: var(--ink-2); }
.hero-note strong { color: var(--ink); font-weight: 800; }
.hero-scene { position: relative; aspect-ratio: 5 / 4; }
#scene { position: absolute; inset: 0; width: 100%; height: 100%; }

/* Real sets: three set boxes on a shelf with shop price tags */
.value { padding-block: 72px 16px; }
.value-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.value-grid h2 { text-wrap: balance; }
.value-line { margin-top: 20px; font-size: 1.5rem; font-weight: 800; }
.value-line strong { color: var(--red); }
.shelf {
  --scale: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 40px;
  padding: 40px 24px 0;
  border-bottom: 12px solid #C79E66;
}
.shelf { border-radius: 0 0 4px 4px; }
/* A box seen from the front, with its top and right side drawn in perspective */
.setbox {
  position: relative;
  display: grid;
  align-content: end;
  width: calc(var(--w) * var(--scale));
  height: calc(var(--h) * var(--scale));
  margin: 16px 16px 0 0;
  padding: 12px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cg fill='%23fff' fill-opacity='.16'%3E%3Ccircle cx='10' cy='10' r='6'/%3E%3Ccircle cx='30' cy='10' r='6'/%3E%3Ccircle cx='10' cy='30' r='6'/%3E%3Ccircle cx='30' cy='30' r='6'/%3E%3C/g%3E%3C/svg%3E") right 10px top 34px / 56px no-repeat, var(--c);
  color: #fff;
}
.setbox::before, .setbox::after { content: ""; position: absolute; }
.setbox::before { left: 0; bottom: 100%; width: 100%; height: 16px; background: color-mix(in srgb, var(--c), #fff 22%); transform-origin: bottom left; transform: skewX(-45deg); }
.setbox::after { left: 100%; top: 0; width: 16px; height: 100%; background: color-mix(in srgb, var(--c), #000 30%); transform-origin: top left; transform: skewY(-45deg); }
.box-age { position: absolute; top: 10px; left: 10px; padding: 2px 8px; border-radius: 999px; background: #fff; color: var(--c); font-size: .75rem; font-weight: 800; }
.box-name { font-size: 1.0625rem; font-weight: 800; line-height: 1.1; }
.box-pieces { margin-top: 2px; font-size: .75rem; font-weight: 600; opacity: .8; }
/* Shop price tag hanging off the top corner */
.tag {
  position: absolute;
  z-index: 1;
  top: -14px;
  right: -30px;
  display: grid;
  padding: 6px 12px 7px 20px;
  border-radius: 4px 8px 8px 4px;
  background: var(--yellow);
  color: var(--ink);
  font-size: 1.125rem;
  font-weight: 800;
  line-height: 1.05;
  transform: rotate(8deg);
  box-shadow: 0 4px 10px rgb(0 0 0 / .18);
}
.tag::before { content: ""; position: absolute; left: 7px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: #fff; }
.tag small { font-size: .6875rem; font-weight: 700; }

/* Age cards: a photo with a label card over its foot, as on KiwiCo */
.age-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 28px; }
.age-card {
  position: relative;
  display: block;
  padding: 0 0 12px;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.age-card img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 20px; }
.age-label {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 0;
  display: grid;
  gap: 2px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--white);
  box-shadow: 0 6px 18px rgb(0 0 0 / .12);
  transition: transform .15s ease-out;
}
.age-label strong { font-size: 1.125rem; font-weight: 800; }
.age-label span { font-size: .875rem; color: var(--ink-2); }
.age-card:hover .age-label { transform: translateY(-3px); }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin: 32px 0 0; padding: 0; list-style: none; }
.step-num {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--c);
  color: var(--white);
  font-weight: 800;
}
.steps p { margin-top: 6px; color: var(--ink-2); }

/* Plans */
.plans-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px 40px; }
.plans-head .section-lede { max-width: 58ch; }
.toggle { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--cream); }
.toggle button {
  min-height: 42px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font: inherit;
  font-size: .9375rem;
  font-weight: 600;
  color: var(--ink-2);
  cursor: pointer;
}
.toggle button span { color: var(--green); font-weight: 800; }
.toggle button[aria-pressed="true"] { background: var(--white); color: var(--ink); box-shadow: 0 2px 6px rgb(0 0 0 / .1); }
/* Plans as bricks seen from the front. Widths grow with the stud count (2, 3, 4); heights match, like real bricks. */
.plans { display: grid; grid-template-columns: 3fr 4fr 5fr; gap: 20px; margin-top: 64px; }
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px 28px 34px;
  border-radius: 8px;
  background: var(--c);
  color: var(--on);
  box-shadow:
    inset 0 3px 0 rgb(255 255 255 / .28),
    inset 0 -8px 0 rgb(0 0 0 / .14),
    0 10px 20px rgb(0 0 0 / .12);
}
.studs {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  display: flex;
  justify-content: space-around;
}
/* Each stud is a short cylinder: lit on the left, shaded on the right */
.studs i {
  width: 52px;
  height: 14px;
  border-radius: 7px 7px 0 0;
  background: linear-gradient(90deg,
    color-mix(in srgb, var(--c), #fff 32%) 0 22%,
    var(--c) 22% 68%,
    color-mix(in srgb, var(--c), #000 16%) 68%);
}
.plan h3 { font-size: 1.125rem; }
.price { margin-top: 10px; font-weight: 600; }
.amount { font-size: 3rem; font-weight: 800; line-height: 1; letter-spacing: -.02em; }
.billed { margin-top: 8px; min-height: 1.5em; font-size: .875rem; }
.perks { margin: 24px 0 28px; padding: 0; list-style: none; }
.perks li { padding-block: 11px; border-top: 1px solid color-mix(in srgb, var(--on), transparent 78%); font-weight: 600; line-height: 1.35; }
.perks li:last-child { border-bottom: 1px solid color-mix(in srgb, var(--on), transparent 78%); }
.plan .btn { margin-top: auto; }
.plans-note { margin-top: 28px; color: var(--ink-2); }
.year-options { margin-top: 20px; }

/* Join: Family option picker */
.family-option { display: grid; gap: 10px; margin-top: 28px; }
.family-option-q { font-weight: 800; }
.option-card { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: 14px; background: var(--white); box-shadow: inset 0 0 0 2px var(--line); cursor: pointer; }
.option-card:has(input:checked) { box-shadow: inset 0 0 0 3px var(--ink); }
.option-card input { margin-top: 4px; accent-color: var(--red); }
.option-card strong { display: block; }
.option-card span { color: var(--ink-2); }
.option-card strong { color: var(--ink); }
.btn-white { background: var(--white); color: var(--ink); }
.btn-white:hover { background: #F1EEEB; }

/* What we send: a full-bleed sideways row of theme bricks */
.themes-section { --edge: max(20px, calc((100vw - 1120px) / 2)); }
.themes-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.scroll-btns { display: flex; gap: 8px; }
.scroll-btns button {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0 0 4px;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  font: inherit;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  transition: opacity .15s ease-out;
}
.scroll-btns button:disabled { opacity: .2; cursor: default; }
.theme-scroller {
  margin-top: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--edge);
  scrollbar-width: none;
}
.theme-scroller::-webkit-scrollbar { display: none; }
/* Fade whichever edge has more bricks beyond it */
.theme-scroller.can-forward { mask-image: linear-gradient(90deg, #000 calc(100% - 96px), transparent); }
.theme-scroller.can-back { mask-image: linear-gradient(90deg, transparent, #000 96px); }
.theme-scroller.can-back.can-forward { mask-image: linear-gradient(90deg, transparent, #000 96px, #000 calc(100% - 96px), transparent); }
.theme-track { display: flex; gap: 14px; width: max-content; margin: 0; padding: 20px var(--edge) 12px; list-style: none; }
.theme-brick {
  position: relative;
  display: grid;
  align-content: start;
  width: 184px;
  min-height: 132px;
  padding: 16px 16px 20px;
  border-radius: 8px;
  background: var(--c);
  color: var(--white);
  scroll-snap-align: start;
  box-shadow:
    inset 0 3px 0 rgb(255 255 255 / .22),
    inset 0 -7px 0 rgb(0 0 0 / .2),
    0 8px 16px rgb(0 0 0 / .1);
}
.theme-brick strong { font-size: 1.1875rem; font-weight: 800; line-height: 1.15; }
.theme-age { margin-top: 2px; font-size: .875rem; font-weight: 600; opacity: .85; }
.theme-example { margin-top: 14px; font-size: .875rem; font-weight: 500; }

/* Level map: a winding path, one stop per month */
.year-map { margin-top: 28px; }
.year-map svg { display: block; width: 100%; height: auto; overflow: visible; }
.map-road { fill: none; stroke: var(--white); stroke-width: 20; stroke-linecap: round; }
.map-dashes { fill: none; stroke: var(--line); stroke-width: 3; stroke-dasharray: 2 14; stroke-linecap: round; }
.map-glow { fill: #FFF1C2; }
.map-num { font: 800 17px var(--font); fill: var(--white); text-anchor: middle; }
.map-num.dark { fill: var(--ink); }
.map-label { font: 700 15px var(--font); fill: var(--ink); text-anchor: middle; }
.map-perk { font: 800 14px var(--font); fill: #007A3C; text-anchor: middle; }
.map-key { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 20px 0 0; padding: 0; list-style: none; font-size: .875rem; font-weight: 600; color: var(--ink-2); }
.map-key i { display: inline-block; width: 12px; height: 12px; margin-right: 6px; border-radius: 50%; vertical-align: -1px; }

/* Green band with wavy edges, as on KiwiCo */
.band-green {
  position: relative;
  margin-block: 40px;
  padding-block: 64px 80px;
  background: var(--green);
  color: var(--white);
}
.band-green::before,
.band-green::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 28px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 28' preserveAspectRatio='none'%3E%3Cpath d='M0 28 C30 0 90 0 120 28 Z' fill='%2300A651'/%3E%3C/svg%3E") 0 0 / 240px 28px repeat-x;
}
.band-green::before { top: -27px; }
.band-green::after { bottom: -27px; transform: scaleY(-1); }
/* Straight after a tinted section, the waves sit directly on its colour instead of a white strip */
.tint-sky + .band-green, .tint-cream + .band-green { margin-top: 0; }
.band-green h2 { text-align: center; }
.polaroids { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 40px; }
.polaroid {
  position: relative;
  margin: 0;
  padding: 12px 12px 20px;
  background: var(--white);
  color: var(--ink);
  border-radius: 6px;
  box-shadow: 0 10px 24px rgb(0 0 0 / .18);
  transform: rotate(var(--tilt));
}
/* A strip of coloured tape holding the photo on */
.polaroid::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 50%;
  width: 96px;
  height: 24px;
  background: var(--tape);
  opacity: .9;
  transform: translateX(-50%) rotate(-3deg);
}
.polaroid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 3px; }
.polaroid figcaption { margin-top: 14px; padding-inline: 4px; color: var(--ink-2); font-size: .9375rem; }
.polaroid strong { display: block; margin-bottom: 2px; color: var(--ink); font-size: 1.1875rem; font-weight: 800; }

/* FAQ */
.faq-wrap { max-width: 760px; }
.faq-wrap h2 { margin-bottom: 20px; }
.faq-wrap details { border-bottom: 2px solid var(--sky); }
.faq-wrap summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-block: 18px;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--blue);
  cursor: pointer;
  list-style: none;
}
.faq-wrap summary::-webkit-details-marker { display: none; }
.faq-wrap summary::after {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  border-right: 2.5px solid currentColor;
  border-bottom: 2.5px solid currentColor;
  transform: translateY(-3px) rotate(45deg);
  transition: transform .15s ease-out;
}
.faq-wrap details[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.faq-wrap details p { padding-bottom: 18px; color: var(--ink-2); }

/* Closing call to action */
.band-red { padding-block: 64px; background: var(--red); color: var(--white); }
.cta-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta-band p { margin-top: 8px; font-size: 1.125rem; }

/* Join flow */
.join-body { background: var(--white); }
.step-count { font-size: .9375rem; font-weight: 600; color: var(--ink-2); }
.progress { height: 4px; background: var(--cream); }
.progress span { display: block; height: 100%; width: 25%; background: var(--green); transition: width .25s ease-out; }
.join-main { max-width: 760px; padding-block: 48px 96px; }
.join-step h1 { font-size: clamp(2rem, 1.5rem + 2vw, 2.75rem); }
.builder { margin: 28px 0 0; padding: 0; border: 0; }
.builder legend { padding: 0; margin-bottom: 10px; font-weight: 800; }
.chips, .themes { display: flex; flex-wrap: wrap; gap: 10px; }
.themes { margin-top: 28px; }
.chip {
  min-height: 48px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  background: var(--white);
  box-shadow: inset 0 0 0 2px var(--line);
  font: inherit;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  transition: background-color .15s ease-out, box-shadow .15s ease-out;
}
.chip:hover { box-shadow: inset 0 0 0 2px var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--white); box-shadow: none; }
.chip-surprise { box-shadow: inset 0 0 0 2px var(--yellow); }
.link-btn { margin-top: 20px; padding: 0; border: 0; background: none; font: inherit; font-weight: 600; color: var(--blue); cursor: pointer; }
.link-btn.remove { margin-top: 8px; font-size: .875rem; color: var(--ink-2); }
.step-nav { display: flex; gap: 12px; margin-top: 40px; }
.step-error { margin-top: 16px; font-weight: 600; color: var(--red); }
.join-step .toggle { margin-top: 24px; }
.plan-hint { margin-top: 16px; padding: 12px 16px; border-radius: 12px; background: var(--sky); font-weight: 600; }
.plans-pick { grid-template-columns: 1fr; gap: 32px; }
.plan-option { position: relative; display: block; cursor: pointer; }
.plan-option input { position: absolute; opacity: 0; }
/* No button here, so the brick goes two columns: name and price on the left, what you get on the right */
.plan-option .plan {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  grid-template-rows: auto auto 1fr;
  column-gap: 32px;
  align-items: start;
  padding: 26px 28px 32px;
  transition: transform .15s ease-out;
}
.plan-option .plan .studs { grid-column: 1 / -1; }
.plan-option .plan h3, .plan-option .plan .price, .plan-option .plan .billed { grid-column: 1; }
.plan-option .plan .perks { grid-column: 2; grid-row: 1 / span 3; align-self: center; margin: 0; }
.plan-option:hover .plan { transform: translateY(-3px); }
.plan-option input:checked + .plan { outline: 4px solid var(--ink); outline-offset: 4px; }
.plan-option input:focus-visible + .plan { outline: 3px solid var(--blue); outline-offset: 4px; }
.summary { margin: 24px 0 28px; padding: 8px 20px; border-radius: 16px; background: var(--cream); }
.summary div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding-block: 10px; border-top: 1px solid var(--line); }
.summary div:first-child { border-top: 0; }
.summary dt { font-weight: 800; }
.summary dd { margin: 0; }
.summary-offer dd { font-weight: 600; color: var(--green); }
#details { display: grid; gap: 16px; }
#details label { display: grid; gap: 6px; font-size: .9375rem; font-weight: 600; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
#details input {
  min-height: 52px;
  padding: 0 16px;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
}
#details input:focus { border-color: var(--ink); outline: none; }
#details .step-nav { margin-top: 12px; }
.form-note { font-size: .875rem; color: var(--ink-2); }
.done-step p { margin-top: 16px; max-width: 52ch; font-size: 1.125rem; }
.done-step .btn { margin-top: 32px; }

.site-footer { padding-block: 32px; background: var(--ink); color: #BDBDBD; font-size: .875rem; }
.site-footer p + p { margin-top: 4px; max-width: 80ch; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .value-grid { grid-template-columns: 1fr; gap: 28px; }
  .age-grid { grid-template-columns: 1fr 1fr; }
  .steps, .plans, .polaroids { grid-template-columns: 1fr; }
  .plans { gap: 32px; }
  .polaroids { gap: 36px; max-width: 360px; margin-inline: auto; }
  .nav a:not(.btn) { display: none; }
  .scroll-btns button { width: 42px; height: 42px; font-size: 1.75rem; }
}

@media (max-width: 520px) {
  .plan-option .plan { grid-template-columns: 1fr; }
  .plan-option .plan .perks { grid-column: 1; grid-row: auto; margin-top: 18px; }
  .section { padding-block: 56px; }
  .hero { padding-top: 32px; }
  .hero-copy .btn { width: 100%; }
  .field-row { grid-template-columns: 1fr; }
  .shelf { --scale: .74; gap: 12px; padding: 44px 4px 0; }
  .setbox { padding: 8px; background-size: 40px; background-position: right 6px top 30px; }
  .box-name { font-size: .875rem; }
  .box-pieces { font-size: .625rem; }
  .tag { top: -30px; right: -14px; padding: 4px 8px 5px 16px; font-size: .8125rem; }
  .tag::before { left: 5px; width: 6px; height: 6px; margin-top: -3px; }
  .tag small { font-size: .5625rem; }
  .step-nav .btn-red { flex: 1; }
  .cta-band .btn { width: 100%; }
}
