/* ==========================================================================
   Numbaloo homepage
   Colour system: the five crayon colours ARE the colour-by-numbers key.
   1 red, 2 yellow, 3 green, 4 blue, 5 purple. Navy "ink" draws every outline.
   ========================================================================== */


:root {
  --ink: #22305E;
  --ink-soft: #4A5585;
  --paper: #FFFFFF;

  --c1: #FF5A5F; /* red */
  --c2: #FFC93C; /* yellow */
  --c3: #34C27A; /* green */
  --c4: #4DA8FF; /* blue */
  --c5: #9C6BFF; /* purple */

  --tint-yellow: #FFF5D6;
  --tint-blue: #E1F0FF;
  --tint-green: #DDF6E8;
  --tint-purple: #EFE6FF;
  --tint-pink: #FFE6EC;
  --tint-peach: #FFEBD9;
  --sun: #FFF0BF;
  --rainbow: linear-gradient(90deg, var(--c1) 0 20%, var(--c2) 20% 40%, var(--c3) 40% 60%, var(--c4) 60% 80%, var(--c5) 80% 100%);

  --display: "Grandstander", "Comic Sans MS", "Chalkboard SE", system-ui, sans-serif;
  --body: "Andika", "Trebuchet MS", system-ui, sans-serif;

  --line: 3px;
  --radius: 18px;
  --sticker: 4px 4px 0 var(--ink);

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: 6rem;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 var(--space-2);
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2rem, 5.2vw, 3.6rem); }
.nowrap { white-space: nowrap; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.4rem; font-weight: 600; }

p { margin: 0 0 var(--space-2); max-width: 62ch; }

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--c4);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 var(--space-3);
}

.skip-link {
  position: absolute;
  left: var(--space-2);
  top: -100px;
  background: var(--ink);
  color: #fff;
  padding: var(--space-1) var(--space-2);
  border-radius: 10px;
  z-index: 100;
}
.skip-link:focus { top: var(--space-2); }

[hidden] { display: none !important; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.1rem;
  line-height: 1.2;
  padding: 0.8em 1.3em;
  border: var(--line) solid var(--ink);
  border-radius: 14px;
  text-decoration: none;
  cursor: pointer;
  box-shadow: var(--sticker);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  white-space: nowrap;
}
.btn:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.btn:active { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--ink); }
.btn-primary { background: var(--c2); color: var(--ink); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-small { font-size: 1rem; padding: 0.55em 1em; }

.link-btn {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-weight: 700;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  cursor: pointer;
}

/* ---------- Banner + header ---------- */
.banner {
  background: var(--ink);
  color: #fff;
  text-align: center;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.5rem var(--space-3);
}
.banner p { margin: 0 auto; max-width: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: var(--line) solid var(--ink);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-height: 72px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  margin-right: auto;
}
.logo-mark { width: 40px; height: 40px; transition: transform 0.6s ease; }
.logo:hover .logo-mark { transform: rotate(90deg); }
.logo-name {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.85rem;
  letter-spacing: 0.01em;
}

.site-nav { display: flex; align-items: center; gap: var(--space-3); }
.site-nav ul {
  display: flex;
  gap: var(--space-3);
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav ul a {
  font-weight: 700;
  text-decoration: none;
  padding: 0.25rem 0;
  background-image: linear-gradient(var(--c2), var(--c2));
  background-size: 0% 6px;
  background-position: 0 92%;
  background-repeat: no-repeat;
  transition: background-size 0.25s ease;
}
.site-nav ul a:hover { background-size: 100% 6px; }

.menu-toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: var(--line) solid var(--ink);
  border-radius: 12px;
  padding: 0.45rem 0.8rem;
  font: inherit;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
}
.menu-toggle-bars,
.menu-toggle-bars::before,
.menu-toggle-bars::after {
  display: block;
  width: 18px;
  height: 3px;
  background: var(--ink);
  border-radius: 2px;
  position: relative;
}
.menu-toggle-bars::before,
.menu-toggle-bars::after { content: ""; position: absolute; left: 0; }
.menu-toggle-bars::before { top: -6px; }
.menu-toggle-bars::after { top: 6px; }

/* Rainbow stripe (the five crayon colours) */
.site-header { border-bottom: 0; }
.site-header::after,
.site-footer::before {
  content: "";
  display: block;
  height: 8px;
  background: var(--rainbow);
  border-top: var(--line) solid var(--ink);
}
.site-header::after { border-bottom: var(--line) solid var(--ink); border-top: 0; }
.site-footer::before { margin: calc(-1 * var(--space-5)) 0 var(--space-5); border-top: 0; border-bottom: var(--line) solid var(--ink); }

/* Logo: each letter a crayon colour, with an ink shadow so it reads on white */
.logo-name .l {
  color: var(--lc, var(--c1));
  text-shadow: 2px 2px 0 var(--ink);
  -webkit-text-stroke: 1px var(--ink);
}
.logo-name .l:nth-child(5n+2) { --lc: var(--c2); }
.logo-name .l:nth-child(5n+3) { --lc: var(--c3); }
.logo-name .l:nth-child(5n+4) { --lc: var(--c4); }
.logo-name .l:nth-child(5n+5) { --lc: var(--c5); }

/* Crayon scribble under section headings, coloured per section */
.steps-section h2::after,
.books-section h2::after,
.levels-section h2::after,
.reviews-section h2::after,
.faq-section h2::after {
  content: "";
  display: block;
  width: 150px;
  height: 14px;
  margin-top: 0.5rem;
  background: var(--accent, var(--c2));
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 150 14'%3E%3Cpath d='M3 9 C 20 2, 32 13, 50 7 S 82 2, 100 8 S 132 12, 147 5' fill='none' stroke='black' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / contain;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 150 14'%3E%3Cpath d='M3 9 C 20 2, 32 13, 50 7 S 82 2, 100 8 S 132 12, 147 5' fill='none' stroke='black' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* Floating doodles around the hero */
.doodles { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.doodle { position: absolute; width: var(--s, 54px); height: auto; animation: float 7s ease-in-out infinite alternate; }
.doodle path, .doodle circle { stroke: var(--ink); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.doodle-1 { top: 6%;  left: 3%;  --s: 46px; animation-delay: -1s; }
.doodle-2 { top: 64%; left: 1.5%; --s: 58px; animation-delay: -3s; }
.doodle-3 { top: 8%;  right: 4%; --s: 52px; animation-delay: -2s; }
.doodle-4 { bottom: 6%; right: 2%; --s: 64px; animation-delay: -5s; }
.doodle-5 { bottom: 4%; left: 44%; --s: 40px; animation-delay: -4s; }
.doodle-6 { top: 3%;  left: 46%; --s: 36px; animation-delay: -6s; }
@keyframes float {
  from { transform: translateY(0) rotate(-6deg); }
  to   { transform: translateY(-14px) rotate(6deg); }
}

/* ---------- Hero ---------- */
.hero {
  overflow-x: clip;
  padding: var(--space-5) 0 var(--space-6);
  position: relative;
  background:
    radial-gradient(circle, rgba(255, 90, 95, 0.35) 2.5px, transparent 3px) 0 0 / 52px 52px,
    radial-gradient(circle, rgba(77, 168, 255, 0.35) 2.5px, transparent 3px) 26px 26px / 52px 52px,
    var(--sun);
}
.hero-inner { position: relative; z-index: 1; }
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-5);
  align-items: center;
}
.hero-intro { font-size: 1.25rem; color: var(--ink-soft); }

.name-form { margin: var(--space-4) 0 var(--space-3); }
.name-form label,
.signup label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.4rem;
}
.name-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.name-row input {
  flex: 1 1 240px;
  min-width: 0;
  font: inherit;
  font-size: 1.25rem;
  color: var(--ink);
  padding: 0.7em 0.9em;
  border: var(--line) solid var(--ink);
  border-radius: 14px;
  background: #fff;
}
.name-row input::placeholder { color: #8A93B8; }
.name-help { font-size: 0.95rem; color: var(--ink-soft); margin-top: 0.5rem; }
.name-help.is-error { color: #B3261E; font-weight: 700; }

.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.trust li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 700;
  font-size: 1rem;
}
.trust li::before {
  content: "";
  width: 18px;
  height: 18px;
  flex: none;
  border: 2.5px solid var(--ink);
  border-radius: 50%;
  background: var(--dot, var(--c3));
}
.trust li:nth-child(5n+1) { --dot: var(--c1); }
.trust li:nth-child(5n+2) { --dot: var(--c2); }
.trust li:nth-child(5n+3) { --dot: var(--c3); }
.trust li:nth-child(5n+4) { --dot: var(--c4); }
.trust li:nth-child(5n+5) { --dot: var(--c5); }

/* The colouring sheet */
.sheet-wrap { justify-self: center; width: 100%; max-width: 460px; }
.sheet {
  position: relative;
  transform: rotate(1.5deg);
  filter: drop-shadow(8px 10px 0 var(--ink));
}
.sheet-svg { width: 100%; height: auto; }
.sheet-svg .paper { fill: #fff; stroke: var(--ink); stroke-width: 4; }
.sheet-svg .frame { fill: none; stroke: var(--ink); stroke-width: 3.5; pointer-events: none; }
.sheet-title {
  font-family: var(--display);
  font-weight: 800;
  font-size: 26px;
  fill: var(--ink);
}
.region {
  fill: #fff;
  stroke: var(--ink);
  stroke-width: 3;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  cursor: pointer;
  transition: fill 0.45s ease;
  transform-box: fill-box;
  transform-origin: center;
}
.region:hover { fill: #F4F6FC; }
.region:focus { outline: none; }
.region:focus-visible { stroke: var(--c4); stroke-width: 5; }
.region.is-filled { cursor: default; }
.region.is-filled[data-n="1"] { fill: var(--c1); }
.region.is-filled[data-n="2"] { fill: var(--c2); }
.region.is-filled[data-n="3"] { fill: var(--c3); }
.region.is-filled[data-n="4"] { fill: var(--c4); }
.region.is-filled[data-n="5"] { fill: var(--c5); }
.region.just-filled { animation: pop 0.45s ease; }
.region.is-wrong { animation: wobble 0.4s ease; }

.num {
  font-family: var(--display);
  font-weight: 800;
  font-size: 15px;
  fill: var(--ink);
  text-anchor: middle;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.num.is-hidden { opacity: 0; }

@keyframes pop {
  0% { transform: scale(1); }
  40% { transform: scale(1.06); }
  100% { transform: scale(1); }
}
@keyframes wobble {
  0%, 100% { transform: rotate(0); }
  25% { transform: rotate(-3deg); }
  75% { transform: rotate(3deg); }
}

.confetti {
  position: absolute;
  inset: -40px;
  width: calc(100% + 80px);
  height: calc(100% + 80px);
  pointer-events: none;
}

/* Crayons */
.crayons {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-top: var(--space-4);
}
.crayon {
  --c: var(--c1);
  display: flex;
  flex-direction: column;
  align-items: center;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: transform 0.18s ease;
}
.crayon[data-n="2"] { --c: var(--c2); }
.crayon[data-n="3"] { --c: var(--c3); }
.crayon[data-n="4"] { --c: var(--c4); }
.crayon[data-n="5"] { --c: var(--c5); }
.crayon-tip {
  width: 0;
  height: 0;
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-bottom: 18px solid var(--ink);
  position: relative;
}
.crayon-tip::after {
  content: "";
  position: absolute;
  left: -9px;
  top: 6px;
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-bottom: 11px solid var(--c);
}
.crayon-body {
  display: grid;
  place-items: center;
  width: 46px;
  height: 64px;
  background: var(--c);
  border: var(--line) solid var(--ink);
  border-radius: 6px 6px 10px 10px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--ink);
  background-image: linear-gradient(transparent 22%, rgba(255,255,255,0.55) 22%, rgba(255,255,255,0.55) 30%, transparent 30%, transparent 70%, rgba(255,255,255,0.55) 70%, rgba(255,255,255,0.55) 78%, transparent 78%);
}
.crayon:hover { transform: translateY(3px); }
.crayon[aria-pressed="true"] { transform: translateY(-16px) rotate(-8deg); }
.crayon[aria-pressed="true"] .crayon-body { box-shadow: 4px 4px 0 var(--ink); }

.sheet-hint {
  text-align: center;
  font-weight: 700;
  margin: var(--space-2) auto 0;
  min-height: 3.2em;
}
#sheet-reset { display: block; margin: 0 auto; }

/* ---------- Section rhythm ---------- */
.steps-section,
.books-section,
.levels-section,
.extras-section,
.reviews-section,
.faq-section { padding: var(--space-6) 0; }

.steps-section { --accent: var(--c4); background: var(--tint-blue); border-top: var(--line) solid var(--ink); border-bottom: var(--line) solid var(--ink); }
.books-section { --accent: var(--c1); background: var(--tint-pink); }
.levels-section { --accent: var(--c3); background: var(--tint-green); border-top: var(--line) solid var(--ink); border-bottom: var(--line) solid var(--ink); }
.extras-section { background: var(--tint-purple); border-bottom: var(--line) solid var(--ink); }
.reviews-section { --accent: var(--c2); background: var(--tint-yellow); border-bottom: var(--line) solid var(--ink); }
.faq-section { --accent: var(--c5); background: var(--tint-peach); }

.section-head { margin-bottom: var(--space-4); }
.section-head p { font-size: 1.2rem; color: var(--ink-soft); }

/* ---------- Steps (a real sequence, so numbered) ---------- */
.steps {
  list-style: none;
  padding: 0;
  margin: var(--space-4) 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
  counter-reset: step;
}
.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: var(--space-2);
  font-family: var(--display);
  font-weight: 800;
  font-size: 2rem;
  border: var(--line) solid var(--ink);
  border-radius: 46% 54% 50% 50% / 55% 45% 55% 45%;
  background: var(--c1);
}
.steps li:nth-child(2)::before { background: var(--c4); border-radius: 55% 45% 48% 52% / 45% 55% 45% 55%; }
.steps li:nth-child(3)::before { background: var(--c3); border-radius: 50% 50% 45% 55% / 52% 48% 52% 48%; }
.steps h3 { margin-bottom: 0.4rem; }
.steps p { color: var(--ink-soft); }

/* ---------- Books ---------- */
.books {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: var(--space-5) var(--space-4);
}
.book { display: flex; flex-direction: column; }
.book-cover {
  --c: var(--c5);
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 3 / 4;
  background: var(--c);
  border: var(--line) solid var(--ink);
  border-radius: 6px 16px 16px 6px;
  box-shadow: 6px 6px 0 var(--ink);
  margin-bottom: var(--space-3);
  transition: transform 0.3s cubic-bezier(.3,1.6,.6,1), box-shadow 0.3s ease;
  overflow: hidden;
}
.book-cover::before {
  /* the spine */
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 18px;
  background: rgba(34, 48, 94, 0.22);
  border-right: var(--line) solid var(--ink);
}
.book[data-colour="red"] .book-cover { --c: var(--c1); }
.book[data-colour="yellow"] .book-cover { --c: var(--c2); }
.book[data-colour="green"] .book-cover { --c: var(--c3); }
.book[data-colour="blue"] .book-cover { --c: var(--c4); }
.book[data-colour="purple"] .book-cover { --c: var(--c5); }
.book[data-colour="orange"] .book-cover { --c: #FF9442; }

.cover-art {
  width: 70%;
  aspect-ratio: 1;
  background: #fff;
  border: var(--line) solid var(--ink);
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-left: 18px;
}
.cover-art svg { width: 78%; height: 78%; }
.cover-art .part {
  fill: #fff;
  stroke: var(--ink);
  stroke-width: 3;
  stroke-linejoin: round;
  stroke-linecap: round;
  transition: fill 0.35s ease;
}
.cover-art .part-num {
  font-family: var(--display);
  font-weight: 800;
  font-size: 9px;
  fill: var(--ink);
  text-anchor: middle;
  transition: opacity 0.3s ease;
}
.cover-title {
  position: absolute;
  left: 30px;
  right: 12px;
  bottom: 14px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.15rem;
  line-height: 1.1;
  color: var(--ink);
  background: #fff;
  border: var(--line) solid var(--ink);
  border-radius: 10px;
  padding: 0.4rem 0.6rem;
  text-align: center;
}
.cover-badge {
  position: absolute;
  top: 12px;
  right: 10px;
  max-width: 7.5em;
  font-weight: 700;
  font-size: 0.85rem;
  line-height: 1.2;
  text-align: center;
  background: var(--c2);
  border: 2.5px solid var(--ink);
  border-radius: 999px;
  padding: 0.3rem 0.65rem;
  transform: rotate(6deg);
}

/* Hover/focus: the book lifts and its cover art colours itself in */
.book:hover .book-cover,
.book:focus-within .book-cover {
  transform: rotate(-2.5deg) translateY(-6px);
  box-shadow: 10px 12px 0 var(--ink);
}
.book:hover .part[data-n="1"], .book:focus-within .part[data-n="1"] { fill: var(--c1); }
.book:hover .part[data-n="2"], .book:focus-within .part[data-n="2"] { fill: var(--c2); }
.book:hover .part[data-n="3"], .book:focus-within .part[data-n="3"] { fill: var(--c3); }
.book:hover .part[data-n="4"], .book:focus-within .part[data-n="4"] { fill: var(--c4); }
.book:hover .part[data-n="5"], .book:focus-within .part[data-n="5"] { fill: var(--c5); }
.book:hover .part-num, .book:focus-within .part-num { opacity: 0; }

.book h3 { margin-bottom: 0.3rem; }
.book-meta { font-size: 0.95rem; color: var(--ink-soft); margin-bottom: 0.4rem; }
.book-blurb { font-size: 1rem; margin-bottom: var(--space-2); }
.book-buy {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
}
.book-price {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.35rem;
  background: #fff;
  border: 2.5px solid var(--ink);
  border-radius: 999px;
  padding: 0.15rem 0.75rem;
  box-shadow: 3px 3px 0 var(--book-c, var(--c5));
}
.book[data-colour="red"] { --book-c: var(--c1); }
.book[data-colour="yellow"] { --book-c: var(--c2); }
.book[data-colour="green"] { --book-c: var(--c3); }
.book[data-colour="blue"] { --book-c: var(--c4); }
.book[data-colour="purple"] { --book-c: var(--c5); }
.book[data-colour="orange"] { --book-c: #FF9442; }

/* ---------- Levels ---------- */
.levels {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
}
.level { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.level-page { width: 100%; max-width: 320px; margin-bottom: var(--space-3); filter: drop-shadow(5px 6px 0 var(--ink)); }
.level:hover .page .rg { fill: var(--f); }
.level:hover .page .n { display: none; }
.level h3 { margin-bottom: 0.25rem; }
.level-years { font-weight: 700; margin-bottom: 0.35rem; }
.level p:not(.level-years) { color: var(--ink-soft); margin-bottom: var(--space-1); }
.level .link-btn { margin-top: auto; }

/* ---------- Club + free sheets ---------- */
.extras {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
}
.panel {
  border: var(--line) solid var(--ink);
  border-radius: 24px;
  padding: var(--space-4);
  box-shadow: 8px 8px 0 var(--ink);
}
.panel-club { background: #DCCBFF; }
.panel-free { background: #FFE27A; }
.club-price {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.8rem;
}
.signup-msg { margin: 0.6rem 0 0; font-weight: 700; min-height: 1.6em; }
.signup-msg.is-error { color: #B3261E; }

.extras.is-single { grid-template-columns: minmax(0, 1fr); max-width: 760px; }

/* ---------- Reviews ---------- */
.reviews {
  list-style: none;
  padding: 0;
  margin: var(--space-4) 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-4);
}
.review blockquote {
  margin: 0 0 0.6rem;
  font-size: 1.15rem;
  border-left: 6px solid var(--c2);
  padding-left: var(--space-2);
}
.review p { color: var(--ink-soft); font-weight: 700; }

/* ---------- FAQ ---------- */
.faqs { margin-top: var(--space-4); max-width: 820px; }
.faq {
  background: #fff;
  border: var(--line) solid var(--ink);
  border-radius: 16px;
  margin-bottom: var(--space-2);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: var(--space-2) var(--space-3);
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-2);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: none;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 2.5px solid var(--ink);
  border-radius: 50%;
  background: var(--c2);
  font-size: 1.3rem;
  line-height: 1;
  transition: transform 0.25s ease;
}
.faq[open] summary::after { transform: rotate(45deg); }
.faq:nth-child(5n+1) summary::after { background: var(--c1); }
.faq:nth-child(5n+3) summary::after { background: var(--c3); }
.faq:nth-child(5n+4) summary::after { background: var(--c4); }
.faq:nth-child(5n+5) summary::after { background: var(--c5); }
.faq-answer { padding: 0 var(--space-3) var(--space-2); }
.faq-answer p { margin: 0; color: var(--ink-soft); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: #fff;
  padding: var(--space-5) 0 var(--space-3);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 1.5fr 1fr;
  gap: var(--space-4);
}
.logo-footer { margin: 0 0 var(--space-2); }
.logo-footer .logo-mark { background: #fff; border-radius: 50%; }
.site-footer p { color: #DDE3F7; }
.footer-email { color: #fff; font-weight: 700; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.4rem; }
.footer-links a { color: #fff; }
.site-footer .copyright { margin-top: var(--space-4); font-size: 0.95rem; color: #B9C2E6; max-width: 1160px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .doodles { display: none; }
  .hero-inner { grid-template-columns: minmax(0, 1fr); gap: var(--space-4); }
  .steps, .levels { grid-template-columns: 1fr; gap: var(--space-3); }
  .extras { grid-template-columns: minmax(0, 1fr); }
  .footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .menu-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    background: #fff;
    border-bottom: var(--line) solid var(--ink);
    padding: var(--space-2) var(--space-3) var(--space-3);
  }
  .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; gap: var(--space-1); }
  .hero { padding-top: var(--space-4); }
  .crayons { gap: 0.35rem; }
  .crayon-body { width: 40px; height: 56px; font-size: 1.2rem; }
  .panel { padding: var(--space-3); }
  .steps-section, .books-section, .levels-section, .extras-section, .reviews-section, .faq-section { padding: var(--space-5) 0; }
  .level-page { max-width: 300px; }
  .books { gap: var(--space-4) var(--space-3); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
  .sheet { transform: none; }
  .doodle { animation: none; }
}


/* ---------- Signup helpers ---------- */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.signup-note { font-size: 0.95rem; margin: 0.25rem 0 0; }
.signup-msg:empty { min-height: 0; margin: 0; }

/* ---------- Spacing ---------- */
.steps-section h2, .faq-section h2, .reviews-section h2 { margin-bottom: 0; }
.section-head { margin-bottom: var(--space-5); }
.section-head h2 { margin-bottom: var(--space-2); }
.section-head p { margin-bottom: 0; }
.signup label { margin-bottom: 0.5rem; }
.name-row .btn { flex: 1 1 auto; }
.panel { display: flex; flex-direction: column; align-items: flex-start; }
.panel h2 { margin-bottom: var(--space-2); }
.panel .signup { width: 100%; }
.panel p:last-child { margin-bottom: 0; }
.club-price { margin-bottom: var(--space-3); }
.hero-copy .name-form { margin: var(--space-4) 0; }
.book-blurb { margin-bottom: var(--space-3); }
.footer-inner p:last-child { margin-bottom: 0; }
.footer-links li:last-child { margin-bottom: 0; }
.site-footer .copyright { margin-top: var(--space-4); margin-bottom: 0; }
@media (max-width: 960px) {
  .section-head { margin-bottom: var(--space-4); }
  .levels { gap: var(--space-4); }
  .level { align-items: center; text-align: center; }
  .level p:not(.level-years) { margin-left: auto; margin-right: auto; }
  .level .link-btn { margin-top: 0; }
}
@media (max-width: 480px) {
  .wrap { padding: 0 var(--space-2); }
  .hero { padding-bottom: var(--space-5); }
}
@media (max-width: 560px) {
  .books { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4) var(--space-2); }
  .book-cover { margin-bottom: var(--space-2); box-shadow: 4px 4px 0 var(--ink); }
  .cover-title { left: 24px; right: 8px; bottom: 8px; font-size: 0.85rem; padding: 0.25rem 0.35rem; }
  .cover-badge { top: 6px; right: 5px; font-size: 0.72rem; padding: 0.15rem 0.45rem; }
  .book h3 { font-size: 1.15rem; }
  .book-blurb { font-size: 0.95rem; margin-bottom: var(--space-2); }
  .book-buy { flex-direction: column; align-items: stretch; gap: 0.6rem; }
  .book-price { align-self: flex-start; font-size: 1.15rem; }
  .level-page { max-width: 240px; }
}
h1, h2 { text-wrap: balance; }

.club-soon {
  display: inline-block;
  margin: 0;
  padding: 0.3rem 0.9rem;
  font-family: var(--display);
  font-weight: 800;
  background: #fff;
  border: var(--line) solid var(--ink);
  border-radius: 999px;
  transform: rotate(-2deg);
}
