/* ============================================================
   PLAYBLOOM — Learning Games for Little Ones
   Soft-pastel "learning garden" system: lavender, peach, mint, sky, sun,
   pink. Floating blobs, petal shapes, soft blurred shadows, rounded
   everything. Baloo 2 + Quicksand. No framework.
   ============================================================ */

:root {
  --ink:      #4a3f5c;
  --ink-soft: #7c7391;
  --paper:    #fbf7ff;
  --cream:    #fffdf9;

  --lav:   #a78bd0; --lav-dk:   #8a6cc0; --tint-lav:   #f1ebfa;
  --peach: #ff9e7d; --peach-dk: #ee8464; --tint-peach: #fff0e9;
  --mint:  #6fcbb0; --mint-dk:  #4fb598; --tint-mint:  #e7f7f1;
  --sky:   #8ecbe8; --sky-dk:   #5aa9cf;
  --sun:   #ffd36b; --sun-dk:   #eeb838;
  --pink:  #f6a5c4; --pink-dk:  #e888af;

  --line: #ece4f2;

  --f-display: "Baloo 2", system-ui, sans-serif;
  --f-body:    "Quicksand", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;

  --wrap-max: 78rem;
  --shadow:    0 16px 36px rgba(74, 63, 92, 0.13);
  --shadow-sm: 0 8px 20px rgba(74, 63, 92, 0.10);
}

* { box-sizing: border-box; }

html { background-color: var(--paper); color: var(--ink); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0; min-height: 100dvh;
  font-family: var(--f-body); font-weight: 500; line-height: 1.68; color: var(--ink);
  background-color: var(--paper);
}

::selection { background: var(--lav); color: #fff; }

a { color: inherit; text-decoration: none; }
svg { display: block; }

h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 700; color: var(--ink); margin: 0; line-height: 1.1; }
p { margin: 0; }

.mt-3 { margin-top: 1.5rem; }
.mx-auto { margin-inline: auto; }
.fine { font-size: 0.86rem; color: var(--ink-soft); }

/* -------- Wrap -------- */
.wrap { width: 100%; max-width: var(--wrap-max); margin-inline: auto; padding-inline: 1.4rem; position: relative; z-index: 1; }
@media (min-width: 768px) { .wrap { padding-inline: 2.4rem; } }
.wrap.narrow { max-width: 52rem; }

/* -------- Type -------- */
.display { font-family: var(--f-display); font-weight: 800; letter-spacing: -0.01em; line-height: 1.08; }
.display-xl { font-size: clamp(2.5rem, 6vw, 4.4rem); }
.display-lg { font-size: clamp(1.9rem, 4vw, 2.9rem); }
.eyebrow {
  display: inline-block; font-family: var(--f-display); font-weight: 700; font-size: 0.82rem;
  text-transform: uppercase; letter-spacing: 0.1em; color: var(--lav-dk);
  background: var(--tint-lav); border-radius: 999px; padding: 0.35rem 1rem; margin-bottom: 1.2rem;
}
.lead { font-size: 1.14rem; line-height: 1.68; color: var(--ink-soft); max-width: 42rem; }
.grow { color: var(--peach-dk); position: relative; white-space: nowrap; }
.grow::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0.04em; height: 0.28em; background: var(--sun); border-radius: 999px; z-index: -1; opacity: 0.75; }

/* -------- Buttons -------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--f-display); font-size: 1rem; font-weight: 700;
  padding: 0.75rem 1.7rem; border: 0; border-radius: 999px; cursor: pointer;
  box-shadow: var(--shadow-sm); transition: transform 0.14s ease, box-shadow 0.14s ease;
}
.btn:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.btn-lav { background: var(--lav); color: #fff; }
.btn-soft { background: var(--cream); color: var(--lav-dk); box-shadow: inset 0 0 0 2px var(--line), var(--shadow-sm); }
.btn-wide { width: 100%; margin-top: 0.4rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 1.9rem; }
.btn-row--center { justify-content: center; }

.more { font-family: var(--f-display); font-size: 0.98rem; font-weight: 700; color: var(--lav-dk); white-space: nowrap; }
.more:hover { color: var(--peach-dk); }

/* -------- Header -------- */
.head { position: sticky; top: 0; z-index: 40; background: rgba(251, 247, 255, 0.9); backdrop-filter: blur(10px); }
.head-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 82px; }
.brand { display: flex; align-items: center; gap: 0.7rem; }
.bloom-mark { display: grid; place-items: center; filter: drop-shadow(0 4px 8px rgba(74,63,92,0.14)); }
.brand-text { display: flex; flex-direction: column; line-height: 1.12; }
.brand-name { font-family: var(--f-display); font-weight: 800; font-size: 1.4rem; color: var(--ink); }
.brand-sub { font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--lav-dk); font-weight: 700; margin-top: 1px; }

.head-nav { display: none; align-items: center; gap: 1.7rem; }
.head-nav a { font-family: var(--f-display); font-weight: 600; font-size: 1rem; color: var(--ink); transition: color 0.15s ease; }
.head-nav a:hover { color: var(--lav-dk); }
.head-cta { display: none; }
@media (min-width: 1040px) { .head-nav { display: flex; } .head-cta { display: inline-flex; } }

.nav-toggle-input { display: none; }
.nav-burger { display: inline-flex; flex-direction: column; gap: 5px; cursor: pointer; padding: 10px; border-radius: 14px; background: var(--tint-lav); }
.nav-burger span { width: 22px; height: 2.5px; background: var(--lav-dk); display: block; border-radius: 2px; }
.mobile-menu { display: none; flex-direction: column; gap: 0.2rem; padding: 0.4rem 0 1rem; }
.mobile-menu a { font-family: var(--f-display); font-weight: 600; padding: 0.7rem 0.3rem; border-bottom: 1px solid var(--line); }
.nav-toggle-input:checked ~ .mobile-menu { display: flex; }
@media (min-width: 1040px) { .nav-burger { display: none; } }

/* -------- Hero -------- */
.hero { position: relative; overflow: hidden; padding-block: 3.5rem 4.5rem; background: linear-gradient(180deg, var(--tint-lav), var(--paper)); }
@media (min-width: 768px) { .hero { padding-block: 5rem 6rem; } }
.hero--short { padding-block: 3rem 3.5rem; }
.hero-grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 880px) { .hero-grid { grid-template-columns: 1.1fr 0.9fr; } }
.hero-copy h1 { margin-block: 0.3rem 1.3rem; }
.hero-scene svg { width: 100%; max-width: 25rem; margin-inline: auto; height: auto; }

.blob { position: absolute; border-radius: 50%; filter: blur(6px); opacity: 0.5; pointer-events: none; z-index: 0; }
.blob--1 { width: 260px; height: 260px; background: var(--peach); top: -80px; right: 8%; opacity: 0.35; }
.blob--2 { width: 200px; height: 200px; background: var(--mint); bottom: -70px; left: -40px; opacity: 0.35; }
.blob--3 { width: 160px; height: 160px; background: var(--sky); top: 30%; left: 42%; opacity: 0.28; }

/* -------- Stat pills -------- */
.stat-strip { padding-block: 0 1rem; margin-top: -1.8rem; position: relative; z-index: 2; }
.stat-pills { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
@media (min-width: 640px) { .stat-pills { grid-template-columns: repeat(4, 1fr); } }
.stat-pill { text-align: center; padding: 1.2rem 1rem; background: var(--cream); border-radius: 24px; box-shadow: var(--shadow-sm); }
.stat-val { display: block; font-family: var(--f-display); font-weight: 800; font-size: 2rem; color: var(--lav-dk); line-height: 1; }
.stat-cap { display: block; font-weight: 600; font-size: 0.82rem; color: var(--ink-soft); margin-top: 0.4rem; }

/* -------- Sections -------- */
.sect { padding-block: 4rem; }
@media (min-width: 768px) { .sect { padding-block: 5.5rem; } }
.sect--lav   { background: var(--tint-lav); }
.sect--mint  { background: var(--tint-mint); }
.sect--peach { background: var(--tint-peach); }
.sect-head { display: flex; flex-wrap: wrap; gap: 1rem; align-items: flex-end; justify-content: space-between; margin-bottom: 2.4rem; }
.sect-head--center { display: block; text-align: center; max-width: 42rem; margin-inline: auto; }
.sect-head h2 { margin-top: 0.4rem; }
.page-head { position: relative; z-index: 1; }
.page-head h1 { margin-block: 0.3rem 1.2rem; }

/* -------- Subjects -------- */
.subject-grid { display: grid; gap: 1.4rem; grid-template-columns: 1fr; }
@media (min-width: 600px) { .subject-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .subject-grid { grid-template-columns: repeat(3, 1fr); } }
.subject-card {
  --hue: var(--lav); --hue-tint: var(--tint-lav);
  display: block; padding: 1.7rem; background: var(--cream); border-radius: 28px; box-shadow: var(--shadow-sm);
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}
.subject-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.subject-card--lav   { --hue: var(--lav);   --hue-tint: var(--tint-lav); }
.subject-card--peach { --hue: var(--peach); --hue-tint: var(--tint-peach); }
.subject-card--sky   { --hue: var(--sky);   --hue-tint: #e6f4fb; }
.subject-card--mint  { --hue: var(--mint);  --hue-tint: var(--tint-mint); }
.subject-card--sun   { --hue: var(--sun);   --hue-tint: #fff6e0; }
.subject-card--pink  { --hue: var(--pink);  --hue-tint: #fdeaf2; }
.subject-emoji {
  display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 1rem;
  font-size: 2rem; background: var(--hue-tint); border-radius: 50%;
}
.subject-card h3, .subject-block h2 { font-size: 1.4rem; margin-bottom: 0.4rem; }
.subject-card p { color: var(--ink-soft); font-size: 0.96rem; }

/* Subjects page stack */
.subject-stack { display: grid; gap: 1.6rem; }
.subject-block { --hue: var(--lav); --hue-tint: var(--tint-lav);
  display: grid; gap: 1.6rem; padding: 2rem; background: var(--cream); border-radius: 32px; box-shadow: var(--shadow-sm);
  border-top: 8px solid var(--hue); }
@media (min-width: 800px) { .subject-block { grid-template-columns: 0.8fr 1.2fr; } }
.subject-emoji--lg { width: 84px; height: 84px; font-size: 2.6rem; }
.subject-detail { }

/* -------- Stages -------- */
.stage-path { display: grid; gap: 1.4rem; grid-template-columns: 1fr; }
@media (min-width: 760px) { .stage-path { grid-template-columns: repeat(3, 1fr); } }
.stage-card, .stage-block { display: block; padding: 1.8rem; background: var(--cream); border-radius: 28px; box-shadow: var(--shadow-sm); transition: transform 0.14s ease, box-shadow 0.14s ease; text-align: center; }
.stage-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.stage-emoji { font-size: 3rem; line-height: 1; }
.stage-ages { display: inline-block; margin: 0.7rem 0 0.3rem; font-family: var(--f-display); font-weight: 700; font-size: 0.8rem; color: var(--mint-dk); background: var(--tint-mint); border-radius: 999px; padding: 0.2rem 0.9rem; }
.stage-card h3, .stage-block h2 { font-size: 1.5rem; margin-bottom: 0.4rem; }
.stage-card p { color: var(--ink-soft); font-size: 0.96rem; }

.stage-stack { display: grid; gap: 1.6rem; }
.stage-block { text-align: left; display: grid; gap: 1.6rem; padding: 2rem; }
@media (min-width: 800px) { .stage-block { grid-template-columns: 0.8fr 1.2fr; } }
.stage-mark { }
.stage-emoji--lg { font-size: 3.4rem; }
.stage-mark h2 { margin-top: 0.5rem; }

/* -------- Games grid -------- */
.game-grid { display: grid; gap: 1.4rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .game-grid { grid-template-columns: repeat(2, 1fr); } }
.game-card { display: flex; gap: 1.2rem; align-items: flex-start; padding: 1.6rem; background: var(--cream); border-radius: 26px; box-shadow: var(--shadow-sm); transition: transform 0.14s ease, box-shadow 0.14s ease; }
.game-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.game-emoji { font-size: 2.4rem; line-height: 1; flex-shrink: 0; display: grid; place-items: center; width: 60px; height: 60px; background: var(--tint-lav); border-radius: 50%; }
.game-skill { display: block; font-family: var(--f-display); font-weight: 700; font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--peach-dk); margin-bottom: 0.2rem; }
.game-card h3 { font-size: 1.3rem; margin-bottom: 0.3rem; }
.game-card p { color: var(--ink-soft); font-size: 0.95rem; }

/* -------- Split + grownup list -------- */
.split { display: grid; gap: 2.4rem; align-items: center; }
@media (min-width: 840px) { .split { grid-template-columns: 1fr 1fr; gap: 3.5rem; } }
.grownup-list { list-style: none; counter-reset: g; margin: 0; padding: 0; display: grid; gap: 0.9rem; }
.grownup-list li { counter-increment: g; position: relative; padding: 1.1rem 1.3rem 1.1rem 3.6rem; background: var(--cream); border-radius: 20px; box-shadow: var(--shadow-sm); }
.grownup-list li::before {
  content: counter(g); position: absolute; left: 1rem; top: 1.1rem;
  width: 32px; height: 32px; display: grid; place-items: center;
  font-family: var(--f-display); font-weight: 800; color: #fff; background: var(--lav); border-radius: 50%;
}
.grownup-title { display: block; font-family: var(--f-display); font-weight: 700; font-size: 1.15rem; }
.grownup-intro { display: block; color: var(--ink-soft); font-size: 0.94rem; }

/* -------- CTA -------- */
.cta { text-align: center; max-width: 46rem; margin-inline: auto; }
.cta h2 { margin-block: 0.4rem 1rem; }

/* -------- Entries (Games / Grownups pages) -------- */
.entry-stack { display: grid; gap: 1.6rem; }
.entry { display: grid; gap: 1.8rem; padding: 2rem; background: var(--cream); border-radius: 32px; box-shadow: var(--shadow-sm); }
@media (min-width: 820px) { .entry { grid-template-columns: 0.85fr 1.15fr; gap: 3rem; } }
.entry-emoji { font-size: 3rem; line-height: 1; display: grid; place-items: center; width: 84px; height: 84px; background: var(--tint-lav); border-radius: 50%; }
.entry-mark h2 { font-size: 1.8rem; margin: 0.6rem 0 0.4rem; }
.entry-one { color: var(--peach-dk); font-weight: 600; font-size: 1.05rem; }
.stage-tag { display: inline-block; margin-top: 0.9rem; font-family: var(--f-display); font-weight: 700; font-size: 0.78rem; color: var(--mint-dk); background: var(--tint-mint); border-radius: 999px; padding: 0.25rem 0.9rem; }
.body-text { color: var(--ink-soft); }
.mini-head { font-family: var(--f-display); font-weight: 700; font-size: 1.05rem; margin: 1.4rem 0 0.8rem; }

.step-list { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; gap: 0.7rem; }
.step-list li { counter-increment: s; position: relative; padding: 0.7rem 1rem 0.7rem 3rem; background: var(--paper); border-radius: 16px; }
.step-list li::before {
  content: counter(s); position: absolute; left: 0.6rem; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; display: grid; place-items: center;
  font-family: var(--f-display); font-weight: 800; color: #fff; background: var(--mint); border-radius: 50%;
}

.petal-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.petal-list li { position: relative; padding-left: 1.9rem; }
.petal-list li::before { content: "❀"; position: absolute; left: 0; color: var(--hue, var(--pink-dk)); top: 0.05rem; }

/* -------- Contact / forms -------- */
.contact-list { display: grid; gap: 1.3rem; margin: 1.5rem 0 0; }
.contact-list div { display: flex; flex-direction: column; }
.contact-list dt { font-family: var(--f-display); font-weight: 700; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--peach-dk); }
.contact-list dd { margin: 0.3rem 0 0; font-family: var(--f-display); font-weight: 600; font-size: 1.1rem; }
.form-box { padding: 2rem; background: var(--cream); border-radius: 32px; box-shadow: var(--shadow); }
.field { display: grid; margin-bottom: 1.1rem; }
.field label { font-family: var(--f-display); font-weight: 600; font-size: 0.9rem; color: var(--ink-soft); margin-bottom: 0.4rem; }
.req { color: var(--peach-dk); margin-left: 3px; }
.input, .textarea {
  width: 100%; font-family: var(--f-body); font-weight: 500; font-size: 1rem; color: var(--ink);
  background: var(--paper); border: 2px solid var(--line); border-radius: 16px; padding: 0.75rem 0.95rem; outline: none;
  transition: border-color 0.15s ease;
}
.textarea { resize: vertical; }
.input:focus, .textarea:focus { border-color: var(--lav); }
.form-done { display: flex; gap: 1.1rem; align-items: center; padding: 2rem; background: var(--tint-mint); border-radius: 32px; box-shadow: var(--shadow-sm); }
.form-done[hidden] { display: none; }
.done-mark { font-size: 2.4rem; }

/* -------- FAQ -------- */
.faq-group { margin-bottom: 2.4rem; }
.faq-item { background: var(--cream); border-radius: 20px; box-shadow: var(--shadow-sm); margin-bottom: 0.9rem; }
.faq-item summary {
  cursor: pointer; list-style: none; padding: 1.1rem 1.4rem; display: flex; justify-content: space-between; gap: 1.2rem;
  font-family: var(--f-display); font-weight: 700; font-size: 1.1rem; color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--lav-dk); font-family: var(--f-display); font-weight: 800; font-size: 1.3rem; line-height: 1; }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { padding: 0 1.4rem 1.2rem; color: var(--ink-soft); }
.mini-head { display: block; }

/* -------- Prose (legal) -------- */
.prose { max-width: 46rem; }
.prose h2 { font-family: var(--f-display); font-weight: 700; font-size: 1.35rem; margin-top: 2.2rem; margin-bottom: 0.7rem; }
.prose p { margin-bottom: 1rem; color: var(--ink-soft); }
.prose a { color: var(--lav-dk); text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }

/* -------- Footer -------- */
.foot { background: #efe7f7; color: var(--ink); }
.foot-grid { display: grid; gap: 2.2rem; padding-block: 3.4rem; }
@media (min-width: 820px) { .foot-grid { grid-template-columns: 2fr repeat(3, 1fr); } }
.foot-brand p { margin-top: 0.9rem; color: var(--ink-soft); max-width: 24rem; font-size: 0.94rem; }
.foot-col h4 { font-family: var(--f-display); font-weight: 700; font-size: 0.9rem; color: var(--lav-dk); margin-bottom: 1rem; }
.foot-col ul { list-style: none; padding: 0; margin: 0; }
.foot-col li { margin-bottom: 0.6rem; }
.foot-col li a { font-size: 0.94rem; color: var(--ink-soft); }
.foot-col li a:hover { color: var(--lav-dk); }
.foot-base { display: flex; flex-direction: column; gap: 0.6rem; padding-block: 1.7rem; border-top: 2px solid rgba(138,108,192,0.15); font-size: 0.86rem; color: var(--ink-soft); }
@media (min-width: 768px) { .foot-base { flex-direction: row; justify-content: space-between; align-items: center; } }
.foot-sign { font-family: var(--f-display); font-weight: 700; color: var(--peach-dk); }

/* -------- Skip link -------- */
.skip-link { position: absolute; left: -999px; }
.skip-link:focus { left: 1rem; top: 1rem; z-index: 100; background: var(--lav); color: #fff; padding: 0.6rem 1rem; border-radius: 12px; }

@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .btn:hover, .subject-card:hover, .stage-card:hover, .game-card:hover { transform: none; }
}
