/* =========================================================
   Kinux Kids — Landing styles
   Mobile-first. Design tokens → base → layout → components.
   ========================================================= */

:root {
  --cream:        #F5EFE6;
  --cream-soft:   #FAF6EF;
  --sand:         #E8DBC5;
  --sand-deep:    #D9C6A8;
  --terracotta:   #C67D5B;
  --terracotta-2: #A85F3E;
  --sage:         #8FA37E;
  --sage-2:       #6E8560;
  --charcoal:     #3A2E26;
  --muted:        #6B5C50;
  --line:         #E1D5C1;
  --wa-green:     #25D366;

  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 22px;

  --shadow-soft: 0 6px 24px rgba(58, 46, 38, 0.06);
  --shadow-lift: 0 18px 40px rgba(58, 46, 38, 0.12);

  --ease: cubic-bezier(.2,.7,.2,1);
  --dur:  .5s;

  --container: 1200px;
  --container-narrow: 780px;

  --font-serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-sans:  'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--charcoal);
  background: var(--cream);
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; padding: 0; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--terracotta-2); }
ul { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--terracotta); color: var(--cream-soft); }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0;
  color: var(--charcoal);
}
.display {
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.section-title {
  font-size: clamp(1.8rem, 3.6vw, 2.75rem);
  font-weight: 500;
  letter-spacing: -0.015em;
}
.eyebrow {
  font-family: var(--font-sans);
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin: 0 0 1rem;
}
.lede {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  color: var(--muted);
  line-height: 1.6;
  max-width: 42rem;
}
.section-lede {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 42rem;
  margin: 1rem auto 0;
}

/* ---------- Layout primitives ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}
.container-narrow { max-width: var(--container-narrow); }
.text-center { text-align: center; }

.section { padding: clamp(60px, 9vw, 120px) 0; position: relative; }
.section-sand { background: var(--sand); }
.section-cream-dark {
  background: linear-gradient(180deg, var(--sand) 0%, var(--sand-deep) 100%);
}
.section-head { max-width: 40rem; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head.text-center,
.text-center .section-head { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: 999px;
  min-height: 48px;
  transition: transform .2s var(--ease), background-color .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease);
  cursor: pointer;
  text-align: center;
  line-height: 1.2;
  border: 1.5px solid transparent;
}
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-primary {
  background: var(--terracotta);
  color: #fff;
  box-shadow: 0 6px 20px rgba(198, 125, 91, .28);
}
.btn-primary:hover:not(:disabled) {
  background: var(--terracotta-2);
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(168, 95, 62, .34);
  color: #fff;
}
.btn-primary:active:not(:disabled) { transform: translateY(0); }
.btn-ghost {
  background: transparent;
  color: var(--charcoal);
  border-color: var(--charcoal);
}
.btn-ghost:hover {
  background: var(--charcoal);
  color: var(--cream-soft);
}
.btn-block { width: 100%; }
.btn-large { padding: 18px 36px; font-size: 1.05rem; min-height: 56px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(245, 239, 230, .85);
  backdrop-filter: saturate(120%) blur(12px);
  -webkit-backdrop-filter: saturate(120%) blur(12px);
  border-bottom: 1px solid rgba(225, 213, 193, .5);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  padding: 10px 0;
}
.wordmark {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  color: var(--charcoal);
}
.wordmark-logo {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}
.wordmark-logo img {
  height: 44px;
  width: auto;
  display: block;
}
@media (min-width: 768px) {
  .wordmark-logo img { height: 64px; }
}
.site-nav { display: none; gap: 2rem; }
.site-nav a {
  font-size: .95rem;
  font-weight: 500;
  color: var(--charcoal);
  position: relative;
  padding: 6px 0;
}
.site-nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1.5px;
  background: var(--terracotta);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.site-nav a:hover { color: var(--terracotta-2); }
.site-nav a:hover::after { transform: scaleX(1); }
@media (min-width: 768px) { .site-nav { display: flex; } }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(72px, 12vw, 140px) 0 clamp(80px, 13vw, 160px);
  background: var(--cream);
  isolation: isolate;
}
.hero-banner {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(245, 239, 230, 0.62);
}
.hero-inner {
  position: relative;
  z-index: 2;
}
.hero-copy {
  max-width: 36rem;
  text-shadow: 0 1px 0 rgba(250, 246, 239, .5);
}
.hero-copy .display,
.hero-copy .lede,
.hero-copy .eyebrow {
  text-shadow: 0 1px 2px rgba(250, 246, 239, .4);
}
.hero-copy .lede { margin: 1.25rem 0 2rem; color: var(--charcoal); opacity: .82; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }

.leaf {
  position: absolute;
  width: 90px;
  opacity: .5;
  pointer-events: none;
  animation: float 14s ease-in-out infinite;
  z-index: 1;
}
.leaf-1 { top: 6%; right: 8%; transform: rotate(-22deg); width: 120px; }
.leaf-2 { bottom: 8%; right: 4%; transform: rotate(148deg); width: 150px; animation-delay: -6s; animation-duration: 18s; }

@keyframes float {
  0%, 100% { transform: translate3d(0,0,0) rotate(var(--r, -22deg)); }
  50%      { transform: translate3d(0,-14px,0) rotate(calc(var(--r, -22deg) + 4deg)); }
}
.leaf-1 { --r: -22deg; }
.leaf-2 { --r: 148deg; }

/* Mobile: heavier overlay so text stays fully readable over the busy illustration */
@media (max-width: 767px) {
  .hero-overlay { background: rgba(245, 239, 230, 0.80); }
  .hero { padding: clamp(56px, 14vw, 96px) 0; }
  .leaf-1 { width: 70px; top: 4%; right: 4%; opacity: .35; }
  .leaf-2 { width: 90px; bottom: 4%; right: -10px; opacity: .35; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .hero-overlay { background: rgba(245, 239, 230, 0.68); }
}

/* ---------- Problem ---------- */
.problem { background: var(--cream-soft); }
.problem-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
.problem-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.problem-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); }
.problem-num {
  display: inline-block;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--terracotta);
  margin-bottom: 12px;
  letter-spacing: .08em;
}
.problem-card h3 {
  font-size: 1.35rem;
  margin-bottom: 10px;
  line-height: 1.25;
}
.problem-card p { color: var(--muted); margin: 0; font-size: .98rem; }
@media (min-width: 768px) { .problem-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Products ---------- */
.book-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 560px) { .book-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .book-grid { grid-template-columns: repeat(3, 1fr); gap: 28px; } }

.book-card {
  position: relative;
  background: var(--cream-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  text-align: left;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow: hidden;
}
.book-card:hover {
  transform: translateY(-6px) rotate(-.4deg);
  box-shadow: var(--shadow-lift);
  border-color: var(--sand-deep);
}
.book-cover {
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--sand);
}
.book-cover img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease);
}
.book-card:hover .book-cover img { transform: scale(1.04); }
.book-info h3 {
  font-size: 1.15rem;
  margin: 0 0 4px;
  font-weight: 500;
}
.book-meta {
  margin: 0;
  color: var(--muted);
  font-size: .88rem;
  letter-spacing: .02em;
}
.book-overlay {
  position: absolute;
  top: 26px; right: 26px;
  background: var(--charcoal);
  color: var(--cream-soft);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 500;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
  pointer-events: none;
}
.book-card:hover .book-overlay { opacity: 1; transform: translateY(0); }

/* ---------- Age Guide ---------- */
.ages { overflow: hidden; isolation: isolate; }
.ages-decor {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(920px, 92%);
  max-height: 90%;
  object-fit: contain;
  opacity: 0.18;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 0;
  mix-blend-mode: multiply;
}
.ages .container { position: relative; z-index: 1; }
.ages-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  position: relative;
}
@media (max-width: 767px) {
  .ages-decor { opacity: 0.12; width: 100%; }
}
@media (min-width: 768px) { .ages-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; } }

.age-card {
  background: var(--cream-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.age-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.age-range {
  display: inline-block;
  background: var(--sage);
  color: #fff;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 500;
  letter-spacing: .02em;
  margin-bottom: 14px;
}
.age-card h3 { font-size: 1.35rem; margin-bottom: 14px; }
.age-card ul { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.age-card li {
  color: var(--charcoal);
  font-size: .98rem;
  padding-left: 18px;
  position: relative;
}
.age-card li::before {
  content: '';
  position: absolute;
  left: 0; top: .7em;
  width: 8px; height: 2px;
  background: var(--terracotta);
  border-radius: 2px;
}
.age-note {
  margin: 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: .9rem;
  color: var(--muted);
  font-style: italic;
}

/* ---------- Why ---------- */
.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 640px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .why-grid { grid-template-columns: repeat(4, 1fr); } }

.why-card {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 30px 24px;
  transition: transform .3s var(--ease);
}
.why-card:hover { transform: translateY(-4px); }
.why-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--cream-soft);
  color: var(--terracotta);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}
.why-icon svg { width: 28px; height: 28px; }
.why-card h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
  font-weight: 500;
}
.why-card p { margin: 0; color: var(--muted); font-size: .95rem; }

/* ---------- Pricing ---------- */
.price-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: stretch;
}
@media (min-width: 900px) {
  .price-grid { grid-template-columns: 1fr 1.15fr 1fr; align-items: center; gap: 24px; }
}
.price-card {
  background: var(--cream-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
  position: relative;
}
.price-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); }
.price-card h3 {
  font-size: 1.4rem;
  margin-bottom: 4px;
  font-weight: 500;
}
.price {
  font-family: var(--font-serif);
  font-size: 3.2rem;
  font-weight: 500;
  line-height: 1;
  margin: 16px 0 10px;
  color: var(--charcoal);
}
.price .rm {
  font-size: 1.1rem;
  vertical-align: super;
  margin-right: 4px;
  color: var(--muted);
  font-weight: 400;
}
.price-tag {
  color: var(--muted);
  margin: 0 0 20px;
  font-size: .98rem;
}
.price-list {
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.price-list li {
  font-size: .95rem;
  padding-left: 22px;
  position: relative;
  color: var(--charcoal);
}
.price-list li::before {
  content: '✓';
  position: absolute;
  left: 0; top: 0;
  color: var(--sage-2);
  font-weight: 600;
}
.bundle-buttons { display: flex; flex-direction: column; gap: 10px; }

.price-card-featured {
  background: var(--charcoal);
  color: var(--cream-soft);
  border-color: var(--charcoal);
  transform: translateY(-8px);
  box-shadow: var(--shadow-lift);
}
.price-card-featured:hover { transform: translateY(-12px); }
.price-card-featured h3,
.price-card-featured .price { color: var(--cream-soft); }
.price-card-featured .price .rm { color: var(--sand-deep); }
.price-card-featured .price-tag { color: var(--sand); }
.price-card-featured .price-list li { color: var(--cream-soft); }
.price-card-featured .price-list li::before { color: var(--sage); }
.badge {
  position: absolute;
  top: 20px; right: 20px;
  background: var(--terracotta);
  color: #fff;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .1em;
  padding: 5px 12px;
  border-radius: 999px;
}

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--cream-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow .3s var(--ease);
}
.faq-item[open] { box-shadow: var(--shadow-soft); }
.faq-item summary {
  padding: 22px 24px;
  cursor: pointer;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 500;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  list-style: none;
  color: var(--charcoal);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon {
  font-size: 1.5rem;
  color: var(--terracotta);
  transition: transform .3s var(--ease);
  flex-shrink: 0;
  line-height: 1;
}
.faq-item[open] .faq-icon { transform: rotate(45deg); }
.faq-body {
  padding: 0 24px 22px;
  color: var(--muted);
  font-size: .98rem;
  line-height: 1.6;
}
.faq-body p { margin: 0; }
.faq-body a { color: var(--terracotta-2); text-decoration: underline; }

/* ---------- Founder ---------- */
.founder-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}
.founder-photo img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lift);
}
.founder-copy p { color: var(--muted); margin: 0 0 1rem; font-size: 1.02rem; line-height: 1.7; }
.founder-copy .section-title { margin-bottom: 1.25rem; }
.signature {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--charcoal) !important;
  font-size: 1.1rem !important;
  margin-top: 1.5rem !important;
}
@media (min-width: 900px) {
  .founder-grid { grid-template-columns: .8fr 1.2fr; gap: 60px; }
}

/* ---------- Final CTA ---------- */
.final-cta { text-align: center; }
.final-cta .display { margin: 0 0 1rem; }
.final-cta .lede { margin: 0 auto 2rem; }
.final-cta .btn { margin-top: 8px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--charcoal);
  color: var(--sand);
  padding: 56px 0 40px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: start;
}
.site-footer .wordmark { color: var(--cream-soft); }
.footer-tag { font-size: .9rem; color: var(--sand-deep); margin: 6px 0 0; }
.footer-contact { display: flex; flex-direction: column; gap: 12px; }
.footer-contact a { color: var(--sand); font-size: .95rem; }
.footer-contact a:hover { color: var(--cream-soft); }
.footer-wa {
  display: inline-block;
  background: var(--wa-green);
  color: #fff !important;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 500;
  font-size: .9rem;
  align-self: flex-start;
}
.footer-wa:hover { opacity: .9; }
.footer-copy {
  grid-column: 1 / -1;
  padding-top: 24px;
  border-top: 1px solid rgba(232, 219, 197, .15);
  font-size: .85rem;
  color: var(--sand-deep);
  margin: 0;
}
@media (min-width: 768px) {
  .footer-inner { grid-template-columns: 1.4fr 1fr; }
}

/* ---------- Floating controls (WhatsApp + sound) ---------- */
.floating-controls {
  position: fixed;
  right: 20px;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 50;
}
.fab {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 24px rgba(0,0,0,.18);
  transition: transform .25s var(--ease), background-color .25s var(--ease);
}
.fab:hover { transform: translateY(-3px) scale(1.05); }
.fab-wa {
  background: var(--wa-green);
  color: #fff;
}
.fab-wa svg { width: 26px; height: 26px; }
.fab-sound {
  background: var(--cream-soft);
  color: var(--charcoal);
  border: 1px solid var(--line);
}
.fab-sound svg { width: 22px; height: 22px; }
.icon-sound-on { display: none; }
.fab-sound.is-on .icon-sound-off { display: none; }
.fab-sound.is-on .icon-sound-on { display: block; }
.fab-sound.is-on { background: var(--terracotta); color: #fff; border-color: var(--terracotta); }

.fab-tooltip {
  position: absolute;
  right: 64px;
  bottom: 4px;
  background: var(--charcoal);
  color: var(--cream-soft);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: .82rem;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(6px);
  pointer-events: none;
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.fab-tooltip.is-visible {
  opacity: 1;
  transform: translateX(0);
}

@media (min-width: 768px) {
  .floating-controls { right: 28px; bottom: calc(28px + env(safe-area-inset-bottom, 0px)); }
  .fab { width: 56px; height: 56px; }
  .fab-wa svg { width: 28px; height: 28px; }
}

/* ---------- Custom cursor (desktop only) ---------- */
.custom-cursor {
  position: fixed;
  top: 0; left: 0;
  width: 32px;
  height: 32px;
  pointer-events: none;
  z-index: 9999;
  transform: translate3d(-100px, -100px, 0);
  transition: transform .12s linear, opacity .2s var(--ease);
  will-change: transform;
  display: none;
}
.custom-cursor img { width: 100%; height: 100%; display: block; }
.custom-cursor.is-hover {
  transform-origin: 30% 30%;
}

@media (hover: hover) and (pointer: fine) {
  .custom-cursor { display: block; }
  body, a, button { cursor: none; }
  input, textarea, select { cursor: text; }
  input[type="checkbox"], input[type="submit"], select { cursor: none; }
}

/* ---------- Cart drawer ---------- */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(58, 46, 38, .4);
  z-index: 90;
  opacity: 0;
  transition: opacity .3s var(--ease);
}
.drawer-overlay.is-visible { opacity: 1; }

.cart-drawer {
  position: fixed;
  top: 0; right: 0;
  height: 100vh;
  height: 100dvh;
  width: 100%;
  max-width: 440px;
  background: var(--cream-soft);
  z-index: 100;
  transform: translateX(100%);
  transition: transform .35s var(--ease);
  display: flex;
  flex-direction: column;
  box-shadow: -20px 0 60px rgba(58, 46, 38, .18);
}
.cart-drawer.is-open { transform: translateX(0); }
.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
}
.drawer-header h2 { font-size: 1.5rem; font-weight: 500; }
.drawer-close {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--cream);
  transition: background-color .2s var(--ease);
}
.drawer-close:hover { background: var(--sand); }
.drawer-close svg { width: 20px; height: 20px; }
.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
}

.cart-item {
  display: flex;
  gap: 16px;
  padding: 16px;
  background: var(--cream);
  border-radius: var(--radius);
  margin-bottom: 20px;
}
.cart-item img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  background: var(--sand);
}
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-info h3 { font-size: 1.05rem; margin: 0 0 4px; font-weight: 500; }
.cart-item-desc { font-size: .85rem; color: var(--muted); margin: 0 0 8px; line-height: 1.4; }
.cart-item-price { font-family: var(--font-serif); font-size: 1.3rem; margin: 0; font-weight: 500; }
.cart-item-price .rm { font-size: .75rem; vertical-align: super; margin-right: 2px; color: var(--muted); }

.cart-summary {
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
}
.cart-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: .95rem; }
.cart-total {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 500;
  padding-top: 12px;
  margin-top: 8px;
  border-top: 1px solid var(--line);
}
.cart-total .rm { font-size: .7rem; vertical-align: super; margin-right: 2px; }

.cart-form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field span {
  font-size: .85rem;
  font-weight: 500;
  color: var(--charcoal);
}
.field input {
  font: inherit;
  font-size: 1rem;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--cream);
  color: var(--charcoal);
  min-height: 48px;
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.field input:focus {
  outline: none;
  border-color: var(--terracotta);
  background: #fff;
}
.checkbox {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: .88rem;
  color: var(--muted);
  line-height: 1.5;
  cursor: pointer;
  padding: 4px 0;
}
.checkbox input {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  accent-color: var(--terracotta);
  flex-shrink: 0;
}
.cart-note {
  text-align: center;
  font-size: .8rem;
  color: var(--muted);
  margin: 0;
}

/* ---------- Reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* Stagger children when a parent has multiple reveals */
.problem-grid .reveal.in-view:nth-child(2) { transition-delay: .1s; }
.problem-grid .reveal.in-view:nth-child(3) { transition-delay: .2s; }
.book-grid .reveal.in-view:nth-child(2) { transition-delay: .08s; }
.book-grid .reveal.in-view:nth-child(3) { transition-delay: .16s; }
.book-grid .reveal.in-view:nth-child(4) { transition-delay: .24s; }
.book-grid .reveal.in-view:nth-child(5) { transition-delay: .32s; }
.book-grid .reveal.in-view:nth-child(6) { transition-delay: .4s; }
.ages-grid .reveal.in-view:nth-child(2) { transition-delay: .12s; }
.ages-grid .reveal.in-view:nth-child(3) { transition-delay: .24s; }
.why-grid .reveal.in-view:nth-child(2) { transition-delay: .1s; }
.why-grid .reveal.in-view:nth-child(3) { transition-delay: .2s; }
.why-grid .reveal.in-view:nth-child(4) { transition-delay: .3s; }
.price-grid .reveal.in-view:nth-child(2) { transition-delay: .1s; }
.price-grid .reveal.in-view:nth-child(3) { transition-delay: .2s; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .leaf { animation: none; }
  .custom-cursor { display: none !important; }
  body, a, button { cursor: auto !important; }
}
