/* ===== Zuzu Math Buddy ===== */

:root {
  /* TODO: replace with exact brand values once the brand guide arrives */
  --purple: #6226A2;   /* sampled from the Zuzu pitch deck */
  --purple-600: #7639BF;
  --purple-100: #E9DEF7;
  --purple-50: #F5EFFC;
  --green: #2A8F51;
  --green-700: #1E7A42;
  --green-100: #DDF3E5;
  --brown: #8A5A3B;
  --brown-700: #6B432A;
  --brown-50: #F7EFE6;
  --cream: #FDFAF5;
  --white: #FFFFFF;
  --ink: #2A2238;
  --ink-soft: #5A5168;
  --line: #E8E1D8;
  --lime: #A6D63A;     /* the green "Z" on Zuzu's shirt */
  --amber: #F2A93B;
  --amber-100: #FDEFD8;

  --chat-bg: #EFE7DD;
  --chat-in: #FFFFFF;
  --chat-out: #DCF5D6;

  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 10px 30px rgba(42, 34, 56, 0.08);
  --shadow-lg: 0 24px 60px rgba(42, 34, 56, 0.16);

  --font-head: "Baloo 2", "Nunito", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--purple-600); }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(2.3rem, 6vw, 3.9rem); font-weight: 800; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.9rem, 4.2vw, 2.8rem); font-weight: 800; }
h3 { font-size: 1.3rem; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--purple); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 6px; }

/* ----- Buttons ----- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--font-body); font-weight: 800; font-size: 1rem;
  padding: 14px 24px; border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--green); color: #fff; box-shadow: 0 6px 0 var(--green-700); }
.btn-primary:hover { box-shadow: 0 8px 0 var(--green-700); }
.btn-primary:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--green-700); }
.btn-ghost { background: var(--white); color: var(--purple); border-color: var(--purple-100); }
.btn-ghost:hover { border-color: var(--purple); }
.btn-small { padding: 9px 18px; font-size: .95rem; box-shadow: 0 4px 0 var(--green-700); }
.btn-block { width: 100%; }

/* ----- Header ----- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(253, 250, 245, .9);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-badge {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  background: var(--purple); color: var(--lime); font-family: var(--font-head); font-weight: 800; font-size: 1.5rem;
  transform: rotate(-6deg);
}
.brand-name { font-family: var(--font-head); font-weight: 800; font-size: 1.35rem; line-height: 1; }
.brand-name span { color: var(--green-700); }

.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 700; font-size: .95rem; white-space: nowrap; }
.site-nav a:not(.btn):hover { color: var(--purple-600); }
.nav-toggle { display: none; }

@media (max-width: 1119px) {
  .nav-toggle {
    display: grid; place-items: center; width: 46px; height: 46px; border: 0; border-radius: 12px;
    background: var(--purple-50); cursor: pointer;
  }
  .nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
    content: ""; display: block; width: 20px; height: 2.5px; background: var(--purple); border-radius: 2px; position: relative; transition: transform .2s;
  }
  .nav-toggle-bar::before { position: absolute; top: -7px; }
  .nav-toggle-bar::after { position: absolute; top: 7px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-7px) rotate(-45deg); }

  .site-nav {
    position: absolute; top: 70px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cream); border-bottom: 1px solid var(--line); padding: 8px 20px 20px;
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .site-nav .btn { margin-top: 16px; }
}

/* ----- Shared section bits ----- */
.section { padding: clamp(64px, 10vw, 110px) 0; }
.section-tint { background: var(--purple-50); }
.section-purple { background: var(--purple); color: #fff; }
.section-purple h2 { color: #fff; }
.section-brown { background: var(--brown-50); }
.section-head { max-width: 680px; margin: 0 auto 48px; text-align: center; }
.section-head p:last-child { color: var(--ink-soft); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 800; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--green-700); margin-bottom: 12px;
}
.eyebrow-light { color: #9FE8B9; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px var(--green-100); }
.fine-print { text-align: center; font-size: .9rem; color: var(--ink-soft); margin-top: 28px; }

.mascot-slot {
  display: grid; place-items: center; text-align: center;
  border: 3px dashed var(--purple-100); border-radius: 50%;
  background: rgba(255,255,255,.7); color: var(--purple); font-weight: 800;
}
.mascot-slot small { font-weight: 600; color: var(--ink-soft); }

/* ----- Hero ----- */
.hero { padding: clamp(36px, 7vw, 80px) 0 clamp(56px, 8vw, 100px); overflow: hidden; }
.hero-inner { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .hero-inner { grid-template-columns: 1.1fr .9fr; } }
.hl { color: var(--purple); position: relative; white-space: nowrap; }
.hl::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .05em; height: .22em;
  background: var(--green-100); z-index: -1; border-radius: 4px;
}
@media (max-width: 480px) { .hl { white-space: normal; } }
.lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 560px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 24px; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.hero-chips li { background: var(--white); border: 1px solid var(--line); padding: 6px 14px; border-radius: 999px; font-weight: 700; font-size: .9rem; color: var(--brown-700); }

.hero-art { position: relative; min-height: 340px; display: grid; place-items: center; }
.blob { position: absolute; border-radius: 50%; filter: blur(2px); }
.blob-purple { width: 82%; aspect-ratio: 1; background: var(--purple-100); }
.blob-green { width: 34%; aspect-ratio: 1; background: var(--green-100); right: 4%; bottom: 4%; }
.mascot-slot-hero { position: relative; width: min(78%, 380px); aspect-ratio: 1; }
.hero-bubble {
  position: absolute; background: var(--white); padding: 10px 16px; border-radius: 18px;
  font-weight: 800; font-size: .95rem; box-shadow: var(--shadow); max-width: 220px;
  animation: float 5s ease-in-out infinite;
}
.hero-bubble-1 { top: 6%; left: 0; border-bottom-left-radius: 4px; }
.hero-bubble-2 { bottom: 10%; right: 0; background: var(--chat-out); border-bottom-right-radius: 4px; animation-delay: -2.5s; }
@keyframes float { 50% { transform: translateY(-8px); } }

/* ----- Demo ----- */
.demo-section { background: linear-gradient(180deg, var(--cream), var(--brown-50)); }
.demo-layout { display: grid; gap: 32px; justify-items: center; align-items: start; }
@media (min-width: 900px) { .demo-layout { grid-template-columns: 380px minmax(0, 520px); gap: 56px; justify-content: center; justify-items: stretch; } }

.phone {
  width: min(100%, 380px); height: 660px; max-height: 82vh;
  background: var(--chat-bg); border: 10px solid #1F1A26; border-radius: 42px;
  box-shadow: var(--shadow-lg); display: flex; flex-direction: column; overflow: hidden; position: relative;
}
.phone-notch { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 120px; height: 22px; background: #1F1A26; border-radius: 0 0 14px 14px; z-index: 2; }
.chat-header {
  display: flex; align-items: center; gap: 12px; padding: 30px 16px 12px;
  background: var(--green-700); color: #fff;
}
.chat-header strong { display: block; font-size: 1rem; line-height: 1.2; }
.chat-header small { opacity: .85; font-size: .8rem; }
.chat-avatar { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--purple); color: #7FE0A3; font-family: var(--font-head); font-weight: 800; font-size: 1.2rem; }

.chat-body {
  flex: 1; overflow-y: auto; padding: 16px 12px; display: flex; flex-direction: column; gap: 8px;
  background-image: radial-gradient(rgba(138,90,59,.08) 1.5px, transparent 1.5px);
  background-size: 18px 18px;
  scroll-behavior: smooth;
}
.msg {
  max-width: 84%; padding: 8px 12px 6px; border-radius: 14px; font-size: .97rem; line-height: 1.45;
  box-shadow: 0 1px 1px rgba(0,0,0,.08); animation: pop .25s ease-out;
}
.msg-in { align-self: flex-start; background: var(--chat-in); border-top-left-radius: 4px; }
.msg-out { align-self: flex-end; background: var(--chat-out); border-top-right-radius: 4px; }
.msg-note { align-self: center; background: #FFF6D9; font-size: .82rem; color: var(--brown-700); text-align: center; max-width: 92%; }
.msg-visual { padding: 10px; }
.msg-visual svg { display: block; width: 100%; height: auto; }
.msg time { display: block; text-align: right; font-size: .7rem; color: #8b8794; margin-top: 2px; }
.typing { align-self: flex-start; background: var(--chat-in); padding: 12px 14px; border-radius: 14px; border-top-left-radius: 4px; display: flex; gap: 4px; }
.typing span { width: 7px; height: 7px; border-radius: 50%; background: #b3adbb; animation: blink 1.2s infinite; }
.typing span:nth-child(2) { animation-delay: .2s; }
.typing span:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 60%, 100% { opacity: .3; } 30% { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: translateY(6px) scale(.98); } }

.chat-choice {
  font-family: var(--font-body); font-weight: 800; font-size: 1rem; color: var(--green-700);
  background: var(--white); border: 2px solid var(--green-100); border-radius: 12px; padding: 11px 14px;
  cursor: pointer; transition: border-color .15s, background .15s; animation: pop .25s ease-out;
}
.chat-choice:hover { border-color: var(--green); background: #F7FDF9; }

.demo-guide { width: 100%; max-width: 520px; }
.demo-guide h3 { font-size: 1.5rem; }
.guide-steps { list-style: none; padding: 0; margin: 0 0 24px; counter-reset: g; display: grid; gap: 8px; }
.guide-steps li {
  counter-increment: g; position: relative; padding: 12px 14px 12px 56px;
  border-radius: var(--radius-sm); background: rgba(255,255,255,.5); border: 2px solid transparent;
  transition: background .25s, border-color .25s, opacity .25s; opacity: .6;
}
.guide-steps li::before {
  content: counter(g); position: absolute; left: 14px; top: 12px; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; background: var(--purple-100); color: var(--purple); font-weight: 800;
}
.guide-steps li strong { display: block; }
.guide-steps li span { font-size: .93rem; color: var(--ink-soft); }
.guide-steps li.done { opacity: 1; }
.guide-steps li.done::before { content: "✓"; background: var(--green-100); color: var(--green-700); }
.guide-steps li.active { opacity: 1; background: var(--white); border-color: var(--purple-100); box-shadow: var(--shadow); }
.guide-steps li.active::before { background: var(--purple); color: #fff; }

.insight-card {
  background: var(--white); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-lg);
  border-left: 6px solid var(--purple); animation: pop .35s ease-out;
}
.insight-label { font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--purple-600); margin-bottom: 6px; }
.insight-card h4 { font-size: 1.2rem; }
.insight-next { background: var(--purple-50); padding: 10px 12px; border-radius: 10px; font-size: .95rem; margin: 0; }

@media (max-width: 899px) {
  .phone { height: 600px; max-height: 78vh; }
  .guide-steps li:not(.active) { display: none; }
}

/* ----- Steps ----- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; }
@media (min-width: 700px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { background: var(--white); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.step-num {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; margin-bottom: 16px;
  background: var(--purple); color: #fff; font-family: var(--font-head); font-weight: 800; font-size: 1.4rem;
}
.step:nth-child(2) .step-num { background: var(--green); }
.step:nth-child(3) .step-num { background: var(--brown); }
.step:nth-child(4) .step-num { background: var(--purple-600); }
.step p { color: var(--ink-soft); margin: 0; }

/* ----- Benefits ----- */
.benefits { display: grid; gap: 20px; }
@media (min-width: 700px) { .benefits { grid-template-columns: repeat(6, 1fr); } .benefit { grid-column: span 3; } .benefit:nth-child(n+3) { grid-column: span 2; } }
@media (min-width: 1000px) { .benefit:nth-child(-n+2) { grid-column: span 3; } }
.benefit { background: var(--white); border-radius: var(--radius); padding: 28px; border: 1px solid var(--purple-100); }
.benefit-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--purple-50); font-size: 1.7rem; margin-bottom: 14px; }
.benefit:nth-child(2n) .benefit-icon { background: var(--green-100); }
.benefit p { color: var(--ink-soft); margin: 0; }

/* ----- Personas ----- */
.personas { display: grid; gap: 24px; }
@media (min-width: 860px) { .personas { grid-template-columns: repeat(3, 1fr); } }
.persona { margin: 0; position: relative; }
.persona blockquote {
  margin: 0; padding: 28px 26px; border-radius: 26px; font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; line-height: 1.35;
  position: relative;
}
.persona blockquote::after {
  content: ""; position: absolute; left: 36px; bottom: -16px; width: 32px; height: 32px; background: inherit;
  clip-path: polygon(0 0, 100% 0, 0 100%);
}
.persona-tag { display: inline-block; font-weight: 800; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 12px; padding: 4px 12px; border-radius: 999px; }
.persona-learner blockquote { background: var(--purple-50); color: var(--purple); }
.persona-learner .persona-tag { background: var(--purple); color: #fff; }
.persona-teacher blockquote { background: var(--green-100); color: var(--green-700); }
.persona-teacher .persona-tag { background: var(--green-700); color: #fff; }
.persona-parent blockquote { background: var(--brown-50); color: var(--brown-700); }
.persona-parent .persona-tag { background: var(--brown); color: #fff; }

/* ----- Insights ----- */
.insights-inner { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .insights-inner { grid-template-columns: 1fr 1fr; gap: 64px; } }
.insights-copy p { color: #E7DDF3; font-size: 1.1rem; }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checklist li { padding-left: 34px; position: relative; font-weight: 700; }
.checklist li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; font-size: .85rem; }

.dashboard { background: var(--white); color: var(--ink); border-radius: var(--radius); padding: 24px; box-shadow: 0 30px 60px rgba(0,0,0,.25); }
.dash-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-weight: 800; margin-bottom: 18px; flex-wrap: wrap; }
.dash-badge { background: var(--amber-100); color: #8A5A10; font-size: .75rem; padding: 4px 10px; border-radius: 999px; text-transform: uppercase; letter-spacing: .06em; }
.dash-row { display: grid; gap: 6px; font-weight: 700; font-size: .95rem; margin-bottom: 20px; }
.meter { height: 12px; background: var(--purple-50); border-radius: 999px; overflow: hidden; }
.meter span { display: block; height: 100%; width: var(--w); background: linear-gradient(90deg, var(--green), #5CC584); border-radius: 999px; }
.dash-sub { font-weight: 800; font-size: .9rem; color: var(--ink-soft); margin-bottom: 8px; }
.dash-list { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 8px; }
.dash-list li { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font-size: .95rem; }
.pill { font-size: .72rem; font-weight: 800; padding: 3px 9px; border-radius: 999px; text-transform: uppercase; flex-shrink: 0; }
.pill-amber { background: var(--amber-100); color: #8A5A10; }
.pill-green { background: var(--green-100); color: var(--green-700); }
.dash-tip { background: var(--purple-50); border-radius: 10px; padding: 12px; font-size: .95rem; margin-bottom: 10px; }
.dash-note { font-size: .8rem; color: var(--ink-soft); margin: 0; text-align: right; }

/* ----- Approach ----- */
.philosophy { max-width: 820px; margin: 0 auto 48px; text-align: center; }
.big-quote { margin: 0; font-family: var(--font-head); font-weight: 700; font-size: clamp(1.5rem, 3.4vw, 2.2rem); line-height: 1.3; color: var(--purple); }
.principles { list-style: none; padding: 0; margin: 0 0 32px; display: grid; gap: 14px; }
@media (min-width: 640px) { .principles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .principles { grid-template-columns: repeat(3, 1fr); } }
.principle { display: flex; align-items: center; gap: 14px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px 20px; font-weight: 800; font-size: 1.05rem; }
.principle span { font-family: var(--font-head); color: var(--green-700); font-size: 1.3rem; }
.workbook-note { display: flex; gap: 16px; align-items: flex-start; max-width: 760px; margin: 0 auto; background: var(--brown-50); border-radius: var(--radius); padding: 20px 24px; }
.workbook-note > span { font-size: 2rem; line-height: 1; }
.workbook-note p { margin: 0; }

/* ----- Pilot ----- */
.pilot-inner { display: grid; gap: 40px; }
@media (min-width: 900px) { .pilot-inner { grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; } }
.pilot-list { padding-left: 1.2em; }
.pilot-list li { margin-bottom: 6px; }
.pilot-list li::marker { color: var(--brown); }
.voices { background: var(--white); border-radius: var(--radius); padding: 28px; border: 1px solid var(--line); }
.voices > p { color: var(--ink-soft); }
.voice-slots { display: grid; gap: 10px; }
.voice-slot { border: 2px dashed var(--line); border-radius: var(--radius-sm); padding: 16px; color: #9a8f86; font-weight: 700; font-size: .95rem; }

/* ----- Contact ----- */
.contact-inner { display: grid; gap: 40px; }
@media (min-width: 900px) { .contact-inner { grid-template-columns: .8fr 1.2fr; gap: 64px; } }
.contact-copy p { color: var(--ink-soft); font-size: 1.1rem; }
.enquiry-form { background: var(--white); border-radius: var(--radius); padding: clamp(20px, 4vw, 36px); box-shadow: var(--shadow); border: 1px solid var(--line); }
.field { display: grid; gap: 6px; margin-bottom: 18px; }
.field-row { display: grid; gap: 0 16px; }
@media (min-width: 600px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field label { font-weight: 800; font-size: .95rem; }
.optional { font-weight: 600; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  font: inherit; color: var(--ink); width: 100%; padding: 12px 14px; border-radius: 12px;
  border: 2px solid var(--line); background: var(--cream); transition: border-color .15s, background .15s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--purple-600); background: var(--white); }
.field .invalid { border-color: #C2413A; }
.field-check { grid-template-columns: auto 1fr; align-items: start; gap: 12px; }
.field-check input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--green); }
.field-check label { font-weight: 600; font-size: .92rem; color: var(--ink-soft); }
.hp { position: absolute; left: -9999px; }
.form-status { margin: 14px 0 0; font-weight: 700; min-height: 1.5em; }
.form-status.ok { color: var(--green-700); }
.form-status.err { color: #C2413A; }

/* ----- Footer ----- */
.site-footer { background: #231B30; color: #CFC7DA; padding: 56px 0 24px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-inner { display: grid; gap: 32px; }
@media (min-width: 800px) { .footer-inner { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer nav { display: grid; gap: 8px; }
.brand-footer .brand-name { color: #fff; }
.brand-footer .brand-name span { color: #7FE0A3; }
.brand-footer { margin-bottom: 12px; }
.copyright { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); font-size: .9rem; }

/* ----- Scroll reveal ----- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ===== Artwork & deck content ===== */

.hero-zuzu { position: relative; width: min(62%, 300px); height: auto; filter: drop-shadow(0 18px 24px rgba(98, 38, 162, .18)); }
.chat-avatar { object-fit: cover; }

.msg-img { padding: 4px; }
.msg-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 35%; border-radius: 10px; }

.session-facts { list-style: none; padding: 0; margin: 48px auto 0; max-width: 900px; display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 760px) { .session-facts { grid-template-columns: repeat(4, 1fr); } }
.session-facts li { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; text-align: center; }
.session-facts strong { display: block; font-family: var(--font-head); font-size: 1.35rem; color: var(--purple); line-height: 1.2; }
.session-facts span { font-size: .9rem; color: var(--ink-soft); }

@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.misconception {
  display: grid; gap: 24px; align-items: center; margin-top: 48px;
  background: var(--purple-50); border-radius: var(--radius); padding: clamp(20px, 4vw, 36px);
}
@media (min-width: 760px) { .misconception { grid-template-columns: 220px 1fr; gap: 40px; } }
.misconception img { width: 100%; max-width: 260px; margin: 0 auto; aspect-ratio: 1; object-fit: cover; object-position: center 30%; border-radius: 50%; border: 6px solid var(--white); }
.misconception-lead { font-family: var(--font-head); font-weight: 700; font-size: 1.35rem; line-height: 1.35; color: var(--purple); }
.misconception p:last-child { margin: 0; color: var(--ink-soft); }

.topics-title { text-align: center; font-size: 1.6rem; margin: 64px 0 24px; }
.topics { display: grid; gap: 20px; }
@media (min-width: 700px) { .topics { grid-template-columns: repeat(3, 1fr); } }
.topic { margin: 0; background: var(--white); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--purple-100); }
.topic img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; object-position: center 40%; }
.topic figcaption { padding: 14px 18px 18px; color: var(--ink-soft); }
.topic figcaption strong { display: block; font-family: var(--font-head); font-size: 1.2rem; color: var(--ink); }

.insight-lists { display: grid; gap: 20px; margin-top: 24px; }
@media (min-width: 560px) { .insight-lists { grid-template-columns: 1fr 1fr; } }
.insight-lists h3 { color: #fff; font-size: 1.15rem; }
.insight-lists .checklist li { font-weight: 600; font-size: .98rem; }

.philosophy { display: grid; gap: 28px; align-items: center; text-align: center; max-width: 960px; }
.philosophy img { width: 200px; aspect-ratio: 1; object-fit: cover; object-position: center 22%; border-radius: 50%; margin: 0 auto; border: 6px solid var(--green-100); }
@media (min-width: 760px) { .philosophy { grid-template-columns: 220px 1fr; text-align: left; gap: 48px; } .philosophy img { width: 220px; } }

.workbook-note { align-items: center; }
.workbook-note img { width: 96px; height: 96px; object-fit: cover; object-position: center 25%; border-radius: 16px; flex-shrink: 0; }

.journey-title { text-align: center; font-size: 1.6rem; margin: 64px 0 24px; }
.journey { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; counter-reset: j; }
@media (min-width: 640px) { .journey { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .journey { grid-template-columns: repeat(3, 1fr); } }
.journey li {
  counter-increment: j; position: relative; background: var(--white); border-radius: var(--radius-sm);
  padding: 18px 18px 18px 64px; color: var(--ink-soft); font-size: .97rem; border: 1px solid var(--line);
}
.journey li::before {
  content: counter(j); position: absolute; left: 16px; top: 16px; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; background: var(--brown); color: #fff; font-weight: 800;
}
.journey strong { display: block; color: var(--ink); font-size: 1.05rem; }

.provide { background: var(--green-100); border-radius: var(--radius); padding: 20px 22px; margin: 24px 0; }
.provide h3 { font-size: 1.05rem; margin-bottom: 2px; color: var(--green-700); }
.provide p { font-size: 1rem; margin-bottom: 12px; color: var(--ink); }
.provide p:last-child { margin: 0; }
.contact-zuzu { width: 100%; max-width: 300px; aspect-ratio: 1; object-fit: cover; object-position: center 25%; border-radius: var(--radius); }
@media (max-width: 899px) { .contact-zuzu { display: none; } }

.footer-values { color: var(--lime); font-weight: 800; }

.pilot-badge {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 12px;
  background: var(--green-100); color: var(--green-700); font-weight: 800; font-size: .85rem;
  padding: 5px 12px; border-radius: 999px;
}
.pilot-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 5px rgba(42, 143, 81, .2); } }
.voices > p:last-child { margin-bottom: 0; }

/* ----- Demo: one WhatsApp message per screen ----- */
.msg-group { align-self: flex-start; max-width: 86%; display: grid; gap: 4px; animation: pop .25s ease-out; }
.msg-group .msg { max-width: none; animation: none; padding: 4px; }
.msg-media { display: block; width: 100%; border-radius: 10px; }
img.msg-media { aspect-ratio: 4 / 3; object-fit: cover; object-position: center 35%; }
.msg-svg { background: #fff; padding: 10px 8px; border: 1px solid var(--line); }
.msg-svg svg { display: block; width: 100%; height: auto; }
.msg-text { padding: 6px 8px 2px; }
.msg-out time { color: #53BDEB; }
.msg-buttons { display: grid; gap: 4px; }
.msg-buttons .chat-choice {
  background: var(--chat-in); border: 0; border-radius: 10px; padding: 10px 12px;
  color: #027EB5; font-weight: 700; font-size: .95rem; box-shadow: 0 1px 1px rgba(0,0,0,.08); animation: none;
}
.msg-buttons .chat-choice:hover:not(:disabled) { background: #F2FAFF; }
.msg-buttons .chat-choice:disabled { color: #9AA6AD; cursor: default; }
.msg-buttons .chat-choice.chosen { color: #027EB5; background: #E7F5FD; }

.chat-inputbar { display: flex; gap: 8px; align-items: center; padding: 8px 10px 14px; background: #F0EBE4; }
.chat-inputbar input {
  flex: 1; min-width: 0; font: inherit; font-size: .95rem; border: 0; border-radius: 999px; padding: 10px 14px;
  background: #fff; color: var(--ink);
}
.chat-inputbar input.ready { font-weight: 800; box-shadow: 0 0 0 2px var(--green); }
.chat-send {
  width: 42px; height: 42px; border-radius: 50%; border: 0; display: grid; place-items: center; flex-shrink: 0;
  background: var(--green-700); color: #fff; cursor: pointer;
}
.chat-send:disabled { background: #B8C4BD; cursor: default; }
.chat-send:not(:disabled) { animation: pulse 1.6s ease-in-out infinite; }
