/* ============== Base ============== */
html { scroll-behavior: smooth; }
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
*, *::before, *::after { -webkit-tap-highlight-color: transparent; }

/* Smooth focus rings */
:focus-visible {
  outline: 3px solid #FFB169;
  outline-offset: 2px;
  border-radius: .35rem;
}

/* Selection */
::selection {
  background: #5A57F0;
  color: #fff;
}

/* Hand-drawn accent under section titles */
.title-accent {
  position: relative;
  display: inline-block;
}
.title-accent::after {
  content: '';
  position: absolute;
  left: -4px; right: -4px;
  bottom: -6px;
  height: 12px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 12' preserveAspectRatio='none'%3E%3Cpath d='M2 8 Q 50 1, 100 6 T 198 5' fill='none' stroke='%23FFB169' stroke-width='3.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  pointer-events: none;
}
.title-accent.indigo::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 12' preserveAspectRatio='none'%3E%3Cpath d='M2 8 Q 50 1, 100 6 T 198 5' fill='none' stroke='%235A57F0' stroke-width='3.5' stroke-linecap='round'/%3E%3C/svg%3E");
}

/* Section eyebrow (small label above titles) */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .35rem .85rem;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #4B43E0;
  background: linear-gradient(135deg, #EEF0FF, #FFE3C0);
  border-radius: 999px;
  border: 1px solid rgba(75,67,224,.15);
}
.eyebrow.dark {
  background: rgba(255,154,71,.15);
  color: #FFB169;
  border-color: rgba(255,154,71,.3);
}

/* ============== Nav scroll shadow ============== */
header {
  transition: box-shadow .3s ease, background .3s ease, border-color .3s ease;
}
header.scrolled {
  background: rgba(255,255,255,0.92) !important;
  border-bottom-color: rgba(11,11,35,.06) !important;
  box-shadow: 0 6px 24px -12px rgba(11,11,35,.12);
}

/* ============== Hero polish ============== */
/* Highlighted phrase in hero — wraps cleanly, no orphan underline */
.hero-highlight {
  background: linear-gradient(180deg, transparent 60%, rgba(255,154,71,.32) 60%, rgba(255,154,71,.32) 92%, transparent 92%);
  color: #4B43E0;
  padding: 0 .15em;
  border-radius: .15em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}


.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .5rem .95rem;
  border-radius: 999px;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(75,67,224,.15);
  color: #4B43E0;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .01em;
  box-shadow: 0 8px 24px -10px rgba(75,67,224,.2);
}
.hero-badge-dot {
  position: relative;
  height: 8px; width: 8px;
  border-radius: 50%;
  background: #FF9A47;
}
.hero-badge-dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: #FF9A47;
  opacity: .35;
  animation: badge-ping 1.6s ease-in-out infinite;
}
@keyframes badge-ping {
  0%   { transform: scale(.5); opacity: .8; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* Polished buttons */
.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .95rem 1.4rem;
  border-radius: .85rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: .95rem;
  letter-spacing: .005em;
  transition: all .25s cubic-bezier(.4,0,.2,1);
  cursor: pointer;
  border: 1.5px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, #5A57F0 0%, #4B43E0 100%);
  color: #fff;
  box-shadow:
    0 1px 0 rgba(255,255,255,.2) inset,
    0 12px 28px -10px rgba(75,67,224,.55);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 1px 0 rgba(255,255,255,.2) inset,
    0 18px 36px -12px rgba(75,67,224,.65);
}
.btn-primary:active { transform: translateY(0); }
.btn-secondary {
  background: #fff;
  color: #0B0B23;
  border-color: rgba(11,11,35,.1);
  box-shadow: 0 4px 12px -4px rgba(11,11,35,.08);
}
.btn-secondary:hover {
  border-color: #5A57F0;
  color: #4B43E0;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -8px rgba(75,67,224,.3);
}

/* Floating Mr. Owl mascot */
.hero-owl {
  position: absolute;
  bottom: -24px;
  right: -56px;
  display: flex;
  align-items: end;
  gap: .55rem;
  z-index: 5;
  animation: owl-bob 4s ease-in-out infinite;
  pointer-events: none;
}
@media (max-width: 1024px) {
  .hero-owl { right: -16px; bottom: -64px; transform: scale(.8); }
}
@media (max-width: 640px) {
  .hero-owl { display: none; }
}
@keyframes owl-bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}
.hero-owl-svg {
  width: 110px;
  height: auto;
  filter: drop-shadow(0 12px 18px rgba(11,11,35,.18));
}
.owl-wing {
  transform-origin: center top;
  animation: wing-flap 3.5s ease-in-out infinite;
}
.owl-wing.right { animation-delay: .15s; }
@keyframes wing-flap {
  0%, 90%, 100% { transform: rotate(0deg); }
  93%           { transform: rotate(-12deg); }
  96%           { transform: rotate(8deg); }
}
.owl-iris {
  transform-origin: center;
  animation: owl-blink 5s ease-in-out infinite;
}
@keyframes owl-blink {
  0%, 92%, 100% { transform: scaleY(1); }
  94%, 96%      { transform: scaleY(0.1); }
}
.hero-owl-bubble {
  background: #fff;
  border: 1.5px solid rgba(75,67,224,.18);
  border-radius: 14px 14px 14px 4px;
  padding: .65rem .85rem;
  font-size: .78rem;
  font-weight: 600;
  color: #2D2E55;
  line-height: 1.35;
  box-shadow: 0 8px 24px -8px rgba(11,11,35,.18);
  position: relative;
  margin-bottom: 24px;
  white-space: nowrap;
}
.hero-owl-bubble strong { color: #4B43E0; font-weight: 800; }
.hero-owl-bubble span { color: #5A5C82; font-weight: 500; font-size: .72rem; }

/* ============== Dinosaur Loader ============== */
.dino-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 20% 20%, #FFE9C9 0%, transparent 45%),
    radial-gradient(circle at 80% 70%, #DDE0FF 0%, transparent 45%),
    linear-gradient(180deg, #FFFCF5, #F4F5FB);
  transition: opacity .6s ease, visibility .6s ease;
}
.dino-loader.hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.dino-stage {
  text-align: center;
  position: relative;
}
.dino {
  width: 160px;
  height: auto;
  display: block;
  margin: 0 auto;
  animation: dino-bounce 0.6s ease-in-out infinite;
  transform-origin: center bottom;
}
@keyframes dino-bounce {
  0%, 100% { transform: translateY(0) scale(1, 1); }
  35%      { transform: translateY(-12px) scale(1, 1); }
  60%      { transform: translateY(0) scale(1.04, 0.96); }
}
.leg {
  transform-origin: top center;
}
.leg-back  { animation: leg-step 0.6s ease-in-out infinite; }
.leg-front { animation: leg-step 0.6s ease-in-out infinite reverse; }
@keyframes leg-step {
  0%, 100% { transform: rotate(0deg); }
  50%      { transform: rotate(15deg); }
}
.dino-shadow {
  animation: shadow-pulse 0.6s ease-in-out infinite;
  transform-origin: center;
}
@keyframes shadow-pulse {
  0%, 100% { transform: scaleX(1); opacity: .15; }
  35%      { transform: scaleX(0.7); opacity: .08; }
}
.dino-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}
.dino-dots span {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #5A57F0;
  animation: dot-pop 1s ease-in-out infinite;
}
.dino-dots span:nth-child(2) { background: #FF9A47; animation-delay: .15s; }
.dino-dots span:nth-child(3) { background: #5DBA47; animation-delay: .3s; }
@keyframes dot-pop {
  0%, 100% { transform: translateY(0); opacity: .4; }
  50%      { transform: translateY(-8px); opacity: 1; }
}
.dino-text {
  margin-top: 18px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  color: #2D2E55;
  font-size: 1rem;
  letter-spacing: .01em;
}
.dino-text span { display: inline-block; animation: wiggle 1.4s ease-in-out infinite; transform-origin: center; }
@keyframes wiggle {
  0%, 100% { transform: rotate(0); }
  25% { transform: rotate(10deg); }
  75% { transform: rotate(-10deg); }
}

/* ============== Mic pulse animation ============== */
.mic-pulse {
  position: relative;
  animation: mic-glow 2s ease-in-out infinite;
}
@keyframes mic-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 154, 71, 0.6); }
  50%      { box-shadow: 0 0 0 14px rgba(255, 154, 71, 0); }
}

/* ============== Tabs ============== */
.tab-btn {
  color: #5A5C82;
  border-bottom: 2px solid transparent;
  transition: all .2s ease;
  margin-bottom: -1px;
}
.tab-btn:hover { color: #4B43E0; }
.tab-btn.active {
  color: #4B43E0;
  border-bottom-color: #4B43E0;
}

/* ============== Age chips (hero strip) ============== */
.age-chip {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .55rem 1rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: .85rem;
  color: #2D2E55;
  background: #fff;
  border: 2px solid #E4E6F4;
  border-radius: 999px;
  box-shadow: 0 4px 14px -8px rgba(11,11,35,.1);
  transition: all .2s ease;
}
.age-chip:hover {
  transform: translateY(-3px) rotate(-1deg);
  border-color: #B8BEFF;
  color: #4B43E0;
}

/* ============== Age groups in Features ============== */
.age-group { scroll-margin-top: 100px; }

.age-group-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 2px dashed rgba(75,67,224,.18);
}
.age-group-emoji {
  font-size: 2.5rem;
  line-height: 1;
  display: inline-block;
  animation: wiggle 3s ease-in-out infinite;
}
.age-group-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  color: #0B0B23;
}
.age-group-sub {
  font-size: .9rem;
  color: #5A5C82;
  margin-top: .15rem;
}
.age-tag {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  padding: .35rem .8rem;
  border-radius: 999px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: .72rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  background: linear-gradient(135deg, #EEF0FF, #FFE3C0);
  color: #4B43E0;
  border: 1px solid rgba(75,67,224,.15);
  white-space: nowrap;
}
@media (max-width: 640px) { .age-tag { display: none; } }

/* Age jump pills (sticky-ish navigation inside For Kids tab) */
.age-jump-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem;
  margin-bottom: 2.5rem;
  padding: .85rem;
  background: linear-gradient(135deg, #FFFCF5, #F5F6FF);
  border: 1px dashed rgba(75,67,224,.25);
  border-radius: 1rem;
}
.age-jump {
  padding: .5rem .9rem;
  border-radius: 999px;
  background: #fff;
  border: 1.5px solid rgba(11,11,35,.08);
  color: #2D2E55;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: .82rem;
  transition: all .2s ease;
  box-shadow: 0 2px 8px -4px rgba(11,11,35,.1);
}
.age-jump:hover {
  border-color: #5A57F0;
  color: #4B43E0;
  background: #F5F6FF;
  transform: translateY(-2px);
}
.age-jump.active {
  background: #0B0B23;
  color: #fff;
  border-color: #0B0B23;
  box-shadow: 0 8px 22px -8px rgba(11,11,35,.4);
  transform: translateY(-1px);
}
.age-jump.active:hover {
  background: #4B43E0;
  border-color: #4B43E0;
  color: #fff;
}

/* Hide age groups not currently selected */
[data-age].hidden-age { display: none !important; }

/* Animate selected age group on appearance */
[data-age]:not(.age-jump):not(.hidden-age) {
  animation: age-fade-in .35s ease;
}
@keyframes age-fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Tighter kid cards for 6-column grid */
@media (min-width: 1024px) {
  .lg\:grid-cols-6 .kid-card {
    padding: 1.2rem .75rem;
    border-radius: 1.25rem;
  }
  .lg\:grid-cols-6 .kid-card .emoji { font-size: 2.4rem; }
  .lg\:grid-cols-6 .kid-card .kid-title { font-size: .95rem; margin-top: .65rem; }
  .lg\:grid-cols-6 .kid-card .kid-sub   { font-size: .76rem; margin-top: .3rem; }
}

/* ============== Kid Tab Pills ============== */
.tab-pill {
  padding: .8rem 1.4rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: .95rem;
  border-radius: 999px;
  background: #fff;
  border: 2px solid #E4E6F4;
  color: #5A5C82;
  cursor: pointer;
  transition: all .2s ease;
  box-shadow: 0 4px 14px -8px rgba(11,11,35,.1);
}
.tab-pill:hover {
  transform: translateY(-2px);
  border-color: #B8BEFF;
  color: #4B43E0;
}
.tab-pill.active {
  background: #0B0B23;
  color: #fff;
  border-color: #0B0B23;
  transform: translateY(-1px);
  box-shadow: 0 10px 28px -10px rgba(11,11,35,.4);
}

/* ============== Kid Feature Cards ============== */
.kid-card {
  position: relative;
  border-radius: 1.5rem;
  padding: 1.75rem 1.25rem;
  text-align: center;
  border: 2px solid rgba(11,11,35,.06);
  box-shadow:
    0 4px 0 0 rgba(11,11,35,.05),
    0 8px 24px -10px rgba(11,11,35,.08);
  transition: all .3s cubic-bezier(.4,0,.2,1);
  cursor: default;
  overflow: hidden;
}
.kid-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,.5), transparent);
  pointer-events: none;
}
.kid-card:hover {
  transform: translateY(-5px) rotate(-0.8deg);
  box-shadow:
    0 8px 0 0 rgba(11,11,35,.06),
    0 18px 36px -12px rgba(75,67,224,.18);
}
.kid-card .emoji {
  font-size: 3.2rem;
  line-height: 1;
  display: inline-block;
  transition: transform .3s ease;
}
.kid-card:hover .emoji {
  animation: wiggle 0.6s ease-in-out;
}
.kid-card .kid-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  color: #0B0B23;
  margin-top: .9rem;
  line-height: 1.25;
}
.kid-card .kid-sub {
  margin-top: .45rem;
  font-size: .9rem;
  color: #5A5C82;
  line-height: 1.4;
}

/* Card colour variants — soft, crayon-ish */
.bg-yellow { background: #FFF4CC; border-color: #FFE38A; }
.bg-pink   { background: #FFE3EE; border-color: #FFB7D2; }
.bg-mint   { background: #D8F5E0; border-color: #9BE0AE; }
.bg-sky    { background: #DCEEFF; border-color: #A8CDFF; }
.bg-peach  { background: #FFE3D1; border-color: #FFBE96; }
.bg-lilac  { background: #ECE3FF; border-color: #C9B5FF; }

/* ============== Interactive Demo ============== */
.demo-card {
  background: #fff;
  border: 2px solid;
  border-radius: 1.75rem;
  padding: 1.75rem;
  box-shadow:
    0 1px 2px rgba(11,11,35,.04),
    0 14px 40px -18px rgba(75,67,224,.18);
  transition: all .3s cubic-bezier(.4,0,.2,1);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.demo-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 1px 2px rgba(11,11,35,.04),
    0 24px 50px -16px rgba(75,67,224,.28);
}
.demo-card .demo-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.demo-card .demo-next { margin-top: auto; }
.demo-little { border-color: #FFE38A; background: linear-gradient(160deg, #FFFBEC, #fff 70%); }
.demo-big    { border-color: #B8BEFF; background: linear-gradient(160deg, #F5F6FF, #fff 70%); }

.demo-header {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding-bottom: 1.1rem;
  border-bottom: 2px dashed rgba(11,11,35,.08);
  margin-bottom: 1.4rem;
}
.demo-title { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 1.2rem; color: #0B0B23; }
.demo-sub   { font-size: .88rem; color: #5A5C82; margin-top: .1rem; }
.demo-score {
  background: #0B0B23; color: #fff;
  padding: .35rem .75rem;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 800;
}

/* Little Learners */
.word-prompt {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 2.6rem;
  text-align: center;
  letter-spacing: .18em;
  color: #4B43E0;
  background: #fff;
  padding: 1.25rem;
  border-radius: 1rem;
  border: 2px dashed #B8BEFF;
}
.emoji-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .65rem;
  margin-top: 1.25rem;
}
.emoji-btn {
  font-size: 2.5rem;
  padding: .9rem .25rem;
  border-radius: 1rem;
  background: #fff;
  border: 2px solid #E4E6F4;
  cursor: pointer;
  transition: all .2s ease;
  line-height: 1;
}
.emoji-btn:hover:not(:disabled) {
  transform: translateY(-3px) scale(1.08);
  border-color: #FFB169;
  background: #FFF8EE;
}
.emoji-btn:disabled { cursor: not-allowed; }
.emoji-btn.correct { background: #D8F5E0; border-color: #34A853; animation: pop .5s ease; }
.emoji-btn.wrong   { background: #FFE3E3; border-color: #EF4444; animation: shake .4s ease; }
@keyframes pop {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.25); }
}
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25%      { transform: translateX(-6px); }
  75%      { transform: translateX(6px); }
}

/* Big Thinkers */
.quiz-question {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.5;
  color: #0B0B23;
  padding: 1.1rem 1.2rem;
  background: #fff;
  border-radius: .85rem;
  border: 1px solid #E4E6F4;
}
.quiz-options {
  display: flex;
  flex-direction: column;
  gap: .55rem;
  margin-top: 1rem;
}
.quiz-option {
  text-align: left;
  padding: .85rem 1rem;
  border-radius: .75rem;
  background: #fff;
  border: 2px solid #E4E6F4;
  cursor: pointer;
  transition: all .2s ease;
  font-size: .95rem;
  color: #2D2E55;
  display: flex;
  align-items: center;
  gap: .7rem;
  font-family: 'Inter', sans-serif;
}
.quiz-option:hover:not(:disabled) {
  border-color: #5A57F0;
  background: #F5F6FF;
  transform: translateX(2px);
}
.quiz-option:disabled { cursor: not-allowed; opacity: .65; }
.quiz-option.correct {
  background: #D8F5E0; border-color: #34A853;
  color: #065F46; opacity: 1;
}
.quiz-option.wrong {
  background: #FFE3E3; border-color: #EF4444;
  color: #991B1B; opacity: 1;
}
.opt-letter {
  display: inline-grid;
  place-items: center;
  height: 1.7rem;
  width: 1.7rem;
  border-radius: .45rem;
  background: #0B0B23;
  color: #fff;
  font-size: .78rem;
  font-weight: 800;
  flex-shrink: 0;
}
.quiz-option.correct .opt-letter { background: #34A853; }
.quiz-option.wrong .opt-letter   { background: #EF4444; }

/* Shared */
.demo-feedback {
  margin-top: 1rem;
  padding: .8rem 1rem;
  border-radius: .75rem;
  font-size: .9rem;
  line-height: 1.45;
  min-height: 1.25rem;
}
.demo-feedback:empty { display: none; }
.demo-feedback.success { background: #D8F5E0; color: #065F46; border: 1px solid #9BE0AE; }
.demo-feedback.warn    { background: #FFF4CC; color: #92400E; border: 1px solid #FFE38A; }

.demo-next {
  margin-top: 1.1rem;
  width: 100%;
  padding: .9rem;
  border-radius: .8rem;
  background: #0B0B23;
  color: #fff;
  font-weight: 800;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: .95rem;
  cursor: pointer;
  transition: all .2s ease;
}
.demo-next:hover { background: #4B43E0; transform: translateY(-2px); }

/* ============== NEW: Voice Coach Demo ============== */
.demo-voice {
  border-color: #FFB7D2;
  background: linear-gradient(160deg, #FFF0F6, #fff 65%);
}
.new-pill {
  display: inline-flex;
  align-items: center;
  padding: .15rem .55rem;
  border-radius: 999px;
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .04em;
  background: linear-gradient(135deg, #FF9A47, #F47A1F);
  color: #fff;
  text-transform: uppercase;
  vertical-align: middle;
  white-space: nowrap;
}
.new-pill.new { background: linear-gradient(135deg, #5A57F0, #4B43E0); }

.voice-body { display: flex; flex-direction: column; gap: 1rem; }

.voice-question {
  background: #fff;
  border: 1px dashed #B8BEFF;
  border-radius: .85rem;
  padding: 1rem 1.2rem;
  position: relative;
}
.voice-q-next {
  position: absolute;
  top: .75rem; right: .75rem;
  font-size: .7rem;
  color: #5A57F0;
  font-weight: 700;
  background: #EEF0FF;
  padding: .2rem .55rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all .2s ease;
}
.voice-q-next:hover { background: #5A57F0; color: #fff; }

.voice-stage {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  background: #0B0B23;
  color: #fff;
  border-radius: 1rem;
  padding: 1.25rem 1.4rem;
}
.voice-mic {
  flex-shrink: 0;
  height: 64px; width: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FF9A47, #F47A1F);
  display: grid; place-items: center;
  cursor: pointer;
  border: none;
  color: #fff;
  box-shadow: 0 12px 28px -8px rgba(255,154,71,.55);
  transition: transform .2s ease;
}
.voice-mic:hover { transform: scale(1.06); }
.voice-mic.recording {
  animation: mic-pulse-big 1s ease-in-out infinite;
  background: linear-gradient(135deg, #EF4444, #B91C1C);
}
@keyframes mic-pulse-big {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239,68,68,.6); }
  50%      { box-shadow: 0 0 0 18px rgba(239,68,68,0); }
}
.voice-stage-text { flex: 1; min-width: 0; }
.voice-status {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: .95rem;
}
.voice-timer { font-size: .78rem; color: #C8CADF; margin-top: .2rem; font-variant-numeric: tabular-nums; }

.voice-wave { display: flex; align-items: end; gap: 2px; height: 32px; }
.voice-wave span {
  width: 3px;
  background: #5A57F0;
  border-radius: 2px;
  height: 30%;
  transition: height .15s ease;
}
.voice-wave.recording span {
  animation: voice-wave-anim .8s ease-in-out infinite;
  background: linear-gradient(to top, #5A57F0, #FF9A47);
}
.voice-wave.recording span:nth-child(2)  { animation-delay: .05s; }
.voice-wave.recording span:nth-child(3)  { animation-delay: .1s; }
.voice-wave.recording span:nth-child(4)  { animation-delay: .15s; }
.voice-wave.recording span:nth-child(5)  { animation-delay: .2s; }
.voice-wave.recording span:nth-child(6)  { animation-delay: .25s; }
.voice-wave.recording span:nth-child(7)  { animation-delay: .3s; }
.voice-wave.recording span:nth-child(8)  { animation-delay: .35s; }
.voice-wave.recording span:nth-child(9)  { animation-delay: .4s; }
.voice-wave.recording span:nth-child(10) { animation-delay: .45s; }
.voice-wave.recording span:nth-child(11) { animation-delay: .5s; }
.voice-wave.recording span:nth-child(12) { animation-delay: .35s; }
.voice-wave.recording span:nth-child(13) { animation-delay: .25s; }
.voice-wave.recording span:nth-child(14) { animation-delay: .15s; }
.voice-wave.recording span:nth-child(15) { animation-delay: .05s; }
@keyframes voice-wave-anim {
  0%, 100% { height: 25%; }
  50%      { height: 95%; }
}

.voice-transcript {
  background: #FAFBFF;
  border: 1px solid #E4E6F4;
  border-radius: .75rem;
  padding: .85rem 1rem;
}
.voice-transcript p { font-size: .92rem; line-height: 1.45; }

.voice-result { animation: fade-in .4s ease; }
@keyframes fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.voice-result-grid {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1rem;
  background: #fff;
  border: 1px solid #E4E6F4;
  border-radius: 1rem;
  padding: 1.1rem 1.2rem;
  align-items: center;
}
@media (max-width: 640px) { .voice-result-grid { grid-template-columns: 1fr; } }
.voice-overall {
  text-align: center;
  border-right: 1px dashed rgba(11,11,35,.1);
  padding-right: 1rem;
}
@media (max-width: 640px) { .voice-overall { border-right: none; border-bottom: 1px dashed rgba(11,11,35,.1); padding: 0 0 .75rem 0; } }
.voice-rubric { display: flex; flex-direction: column; gap: .55rem; }
.rubric-row {
  display: grid;
  grid-template-columns: 110px 1fr 30px;
  gap: .75rem;
  align-items: center;
  font-size: .82rem;
  color: #2D2E55;
}
.rubric-bar {
  height: 8px;
  background: #EEF0FF;
  border-radius: 999px;
  overflow: hidden;
}
.rubric-bar div {
  height: 100%;
  background: linear-gradient(90deg, #5A57F0, #FF9A47);
  border-radius: 999px;
  transition: width .6s ease;
}

.voice-feedback-box {
  background: linear-gradient(160deg, #FFF8EE, #fff);
  border: 1px solid #FFE3C0;
  border-radius: .85rem;
  padding: 1rem 1.2rem;
  margin-top: .75rem;
}
.voice-listen-btn, .voice-try-btn {
  padding: .5rem .85rem;
  border-radius: .55rem;
  font-size: .8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s ease;
  border: 1.5px solid;
}
.voice-listen-btn { background: #fff; color: #4B43E0; border-color: #B8BEFF; }
.voice-listen-btn:hover { background: #4B43E0; color: #fff; }
.voice-try-btn { background: #0B0B23; color: #fff; border-color: #0B0B23; }
.voice-try-btn:hover { background: #4B43E0; border-color: #4B43E0; }

.voice-followup {
  margin-top: .75rem;
  background: #FFF4CC;
  border: 1px solid #FFE38A;
  border-left: 4px solid #FF9A47;
  border-radius: .55rem;
  padding: .75rem 1rem;
  font-size: .9rem;
}

.voice-fallback {
  background: #FFF4CC;
  border: 1px solid #FFE38A;
  border-radius: .75rem;
  padding: 1rem;
  font-size: .88rem;
  color: #92400E;
}
.voice-typed {
  width: 100%;
  margin-top: .65rem;
  padding: .75rem;
  border: 1.5px solid #E4E6F4;
  border-radius: .55rem;
  font-family: inherit;
  resize: vertical;
  min-height: 80px;
}
.voice-typed:focus { outline: none; border-color: #5A57F0; }

/* ============== NEW: Mr. Owl Chat Demo ============== */
.demo-chat {
  border-color: #DDE0FF;
  background: linear-gradient(160deg, #F5F6FF, #fff 65%);
}
.chat-reset {
  font-size: .72rem;
  font-weight: 800;
  color: #5A57F0;
  background: #fff;
  border: 1px solid #DDE0FF;
  padding: .35rem .7rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all .2s ease;
}
.chat-reset:hover { background: #5A57F0; color: #fff; border-color: #5A57F0; }

.chat-body { display: flex; flex-direction: column; gap: .85rem; min-height: 0; }

.chat-messages {
  background: #fff;
  border: 1px solid #E4E6F4;
  border-radius: 1rem;
  padding: 1rem;
  overflow-y: auto;
  max-height: 320px;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  scroll-behavior: smooth;
}
.chat-msg {
  display: flex;
  gap: .65rem;
  align-items: flex-start;
  animation: chat-in .25s ease;
}
@keyframes chat-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.chat-msg.user { flex-direction: row-reverse; }
.chat-avatar {
  height: 32px; width: 32px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 1rem;
  flex-shrink: 0;
  background: linear-gradient(135deg, #FFE38A, #FFB169);
  border: 1.5px solid #fff;
  box-shadow: 0 2px 8px -2px rgba(11,11,35,.12);
}
.chat-msg.user .chat-avatar { background: linear-gradient(135deg, #5A57F0, #4B43E0); color: #fff; font-weight: 800; }
.chat-bubble {
  background: #F5F6FF;
  border: 1px solid #E4E6F4;
  padding: .7rem .9rem;
  border-radius: 1rem 1rem 1rem .25rem;
  font-size: .92rem;
  line-height: 1.5;
  color: #2D2E55;
  max-width: 85%;
}
.chat-msg.user .chat-bubble {
  background: #0B0B23;
  color: #fff;
  border-color: #0B0B23;
  border-radius: 1rem 1rem .25rem 1rem;
}
.chat-bubble strong { color: #4B43E0; }
.chat-msg.user .chat-bubble strong { color: #FFB169; }

.chat-bubble.typing {
  display: inline-flex; gap: 4px;
  padding: .85rem 1rem;
}
.chat-bubble.typing span {
  height: 8px; width: 8px;
  border-radius: 50%;
  background: #5A57F0;
  animation: typing-dot 1s ease-in-out infinite;
}
.chat-bubble.typing span:nth-child(2) { animation-delay: .15s; }
.chat-bubble.typing span:nth-child(3) { animation-delay: .3s; }
@keyframes typing-dot {
  0%, 100% { transform: translateY(0); opacity: .4; }
  50%      { transform: translateY(-4px); opacity: 1; }
}

.chat-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}
.chat-chip {
  padding: .4rem .8rem;
  border-radius: 999px;
  background: #fff;
  border: 1.5px solid #DDE0FF;
  color: #2D2E55;
  font-size: .78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s ease;
  white-space: nowrap;
}
.chat-chip:hover {
  border-color: #5A57F0;
  color: #4B43E0;
  background: #EEF0FF;
  transform: translateY(-2px);
}

.chat-input-row {
  display: flex;
  gap: .55rem;
  align-items: center;
  background: #fff;
  border: 1.5px solid #E4E6F4;
  border-radius: .85rem;
  padding: .35rem .35rem .35rem 1rem;
  transition: border-color .2s ease;
}
.chat-input-row:focus-within { border-color: #5A57F0; }
.chat-input-row input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: .92rem;
  color: #0B0B23;
  font-family: inherit;
  padding: .55rem 0;
  min-width: 0;
}
.chat-input-row input::placeholder { color: #9596B5; }
.chat-send {
  height: 38px; width: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, #5A57F0, #4B43E0);
  color: #fff;
  display: grid; place-items: center;
  cursor: pointer;
  border: none;
  flex-shrink: 0;
  transition: all .2s ease;
  box-shadow: 0 4px 12px -4px rgba(75,67,224,.4);
}
.chat-send:hover { transform: translateY(-2px) scale(1.05); }

/* ============== NEW: Brain Streak Demo ============== */
.demo-streak {
  border-color: #FFB169;
  background: linear-gradient(160deg, #FFF8EE, #fff 65%);
}
.streak-stage {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 1.25rem;
  align-items: center;
  background: #fff;
  border: 1px solid #E4E6F4;
  border-radius: 1rem;
  padding: 1.2rem;
}
.streak-timer-ring {
  position: relative;
  width: 90px; height: 90px;
}
.streak-timer-text {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 1.8rem;
  color: #0B0B23;
  font-variant-numeric: tabular-nums;
}
#streakRing { transition: stroke-dashoffset 1s linear, stroke .3s; }

.streak-problem-area { min-width: 0; }
.streak-problem {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 2.2rem;
  letter-spacing: .04em;
  color: #4B43E0;
  text-align: center;
  background: #F5F6FF;
  border: 2px dashed #B8BEFF;
  border-radius: .75rem;
  padding: .85rem;
  font-variant-numeric: tabular-nums;
}
.streak-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .5rem;
  margin-top: .85rem;
}
.streak-option {
  padding: .75rem;
  border-radius: .65rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  background: #fff;
  border: 2px solid #E4E6F4;
  color: #0B0B23;
  cursor: pointer;
  transition: all .15s ease;
  font-variant-numeric: tabular-nums;
}
.streak-option:hover:not(:disabled) {
  border-color: #FF9A47;
  background: #FFF4CC;
  transform: translateY(-2px);
}
.streak-option.correct {
  background: #D8F5E0;
  border-color: #34A853;
  color: #047857;
  animation: pop .35s ease;
}
.streak-option.wrong {
  background: #FFE3E3;
  border-color: #EF4444;
  color: #B91C1C;
  animation: shake .3s ease;
}
.streak-option:disabled { cursor: not-allowed; }

.streak-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .5rem;
  background: #fff;
  border: 1px solid #E4E6F4;
  border-radius: .85rem;
  padding: .85rem;
  margin-top: 1rem;
  text-align: center;
}
.streak-stats > div { padding: .25rem; }

.streak-result {
  background: linear-gradient(135deg, #5A57F0, #FF9A47);
  color: #fff;
  text-align: center;
  border-radius: 1rem;
  padding: 1.5rem;
  margin-top: 1rem;
  animation: pop-in .5s ease;
}
.streak-result h4 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
}
.streak-result p { opacity: .95; margin-top: .35rem; }
@keyframes pop-in {
  from { opacity: 0; transform: scale(.9); }
  to   { opacity: 1; transform: scale(1); }
}

/* ============== NEW: Bonus Magic / Wow cards ============== */
.wow-group {
  background: linear-gradient(160deg, rgba(90,87,240,.06), rgba(255,154,71,.05));
  border: 1px dashed rgba(75,67,224,.2);
  border-radius: 1.5rem;
  padding: 1.75rem 1.5rem;
}
.wow-header { border-bottom-color: rgba(75,67,224,.25); }
.wow-tag {
  background: linear-gradient(135deg, #FF9A47, #5A57F0) !important;
  color: #fff !important;
  border: none !important;
}

.wow-card {
  position: relative;
  border-radius: 1.5rem;
  padding: 1.5rem 1.4rem 1.4rem;
  color: #0B0B23;
  border: 1px solid rgba(11,11,35,.06);
  box-shadow: 0 6px 0 0 rgba(11,11,35,.06);
  transition: all .25s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.wow-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px -10px rgba(75,67,224,.3);
}
.wow-card::after {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  height: 120px; width: 120px;
  background: radial-gradient(circle, rgba(255,255,255,.4), transparent 60%);
  border-radius: 50%;
  pointer-events: none;
}
.wow-badge {
  position: absolute;
  top: .8rem; right: .8rem;
  background: rgba(11,11,35,.85);
  color: #fff;
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: .25rem .6rem;
  border-radius: 999px;
  z-index: 1;
}
.wow-emoji {
  font-size: 2.6rem;
  line-height: 1;
  display: inline-block;
  position: relative;
  z-index: 1;
}
.wow-card:hover .wow-emoji { animation: wiggle 0.6s ease-in-out; }
.wow-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  margin-top: .9rem;
  position: relative;
  z-index: 1;
}
.wow-sub {
  font-size: .87rem;
  color: #2D2E55;
  margin-top: .55rem;
  line-height: 1.55;
  flex: 1;
  position: relative;
  z-index: 1;
}
.wow-meta {
  margin-top: 1rem;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: rgba(11,11,35,.55);
  border-top: 1px dashed rgba(11,11,35,.12);
  padding-top: .65rem;
  position: relative;
  z-index: 1;
}

/* Wow card gradient variants */
.grad-purple  { background: linear-gradient(160deg, #ECE3FF, #DDE0FF); }
.grad-orange  { background: linear-gradient(160deg, #FFE3D1, #FFF4CC); }
.grad-pink    { background: linear-gradient(160deg, #FFE3EE, #FFF0F6); }
.grad-mint    { background: linear-gradient(160deg, #D8F5E0, #ECFDF5); }
.grad-rose    { background: linear-gradient(160deg, #FFD7DD, #FFE3EE); }
.grad-sky     { background: linear-gradient(160deg, #DCEEFF, #ECF5FF); }
.grad-yellow  { background: linear-gradient(160deg, #FFF4CC, #FFFBEC); }
.grad-emerald { background: linear-gradient(160deg, #BBE9C8, #D8F5E0); }
.grad-indigo  { background: linear-gradient(160deg, #C9B5FF, #ECE3FF); }
.grad-violet  { background: linear-gradient(160deg, #E5DEFF, #F5F3FF); }
.grad-coral   { background: linear-gradient(160deg, #FFBE96, #FFE3D1); }
.grad-teal    { background: linear-gradient(160deg, #99F6E4, #CCFBF1); }

/* ============== Parent Report Card ============== */
.report-card {
  background: #fff;
  border-radius: 2rem;
  overflow: hidden;
  box-shadow:
    0 30px 80px -30px rgba(75, 67, 224, 0.35),
    0 12px 32px -12px rgba(11, 11, 35, 0.12);
  border: 1px solid rgba(11, 11, 35, 0.05);
}

/* Header */
.report-header {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 1.5rem 2rem;
  background:
    radial-gradient(circle at 90% 0%, rgba(255,154,71,.35), transparent 55%),
    linear-gradient(135deg, #4B43E0 0%, #332E94 100%);
  color: #fff;
}
.report-avatar {
  height: 56px; width: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, #FF9A47, #F47A1F);
  display: grid; place-items: center;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800; font-size: 1.6rem;
  color: #fff;
  box-shadow: 0 8px 22px -6px rgba(255,154,71,.55);
}

/* Hero */
.report-hero {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2rem;
  align-items: center;
  padding: 2rem;
  background: linear-gradient(180deg, #FFFCF5, #fff);
  border-bottom: 1px dashed rgba(11,11,35,.08);
}
@media (max-width: 768px) { .report-hero { grid-template-columns: 1fr; } }

.trend-pill {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  padding: .25rem .55rem;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 800;
}
.trend-pill.up   { background: #D8F5E0; color: #047857; }
.trend-pill.down { background: #FFE3E3; color: #B91C1C; }

.report-chart {
  background: #fff;
  border: 1px solid #E4E6F4;
  border-radius: 1rem;
  padding: 1rem 1.1rem;
  box-shadow: 0 6px 20px -10px rgba(11,11,35,.1);
}

/* Stats row */
.report-stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border-bottom: 1px dashed rgba(11,11,35,.08);
}
@media (max-width: 900px) { .report-stats { grid-template-columns: repeat(2, 1fr); } }

.stat-tile {
  padding: 1.25rem 1rem;
  text-align: center;
  border-right: 1px dashed rgba(11,11,35,.08);
}
.stat-tile:last-child { border-right: none; }
@media (max-width: 900px) {
  .stat-tile { border-right: 1px dashed rgba(11,11,35,.08); border-bottom: 1px dashed rgba(11,11,35,.08); }
}
.stat-emoji { font-size: 1.5rem; }
.stat-value {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 1.35rem;
  color: #0B0B23;
  margin-top: .35rem;
}
.stat-label { font-size: .75rem; color: #5A5C82; margin-top: .15rem; text-transform: uppercase; font-weight: 700; letter-spacing: .04em; }
.stat-trend {
  display: inline-block;
  margin-top: .35rem;
  font-size: .68rem;
  font-weight: 800;
  padding: .12rem .45rem;
  border-radius: 999px;
}
.stat-trend.up   { background: #D8F5E0; color: #047857; }
.stat-trend.down { background: #FFE3E3; color: #B91C1C; }

/* Body */
.report-body {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 0;
}
@media (max-width: 1024px) { .report-body { grid-template-columns: 1fr; } }

.report-left  { padding: 1.75rem 2rem; }
.report-right { padding: 1.75rem 2rem; background: linear-gradient(180deg, #FAFBFF, #fff); border-left: 1px dashed rgba(11,11,35,.08); }
@media (max-width: 1024px) { .report-right { border-left: none; border-top: 1px dashed rgba(11,11,35,.08); } }

.report-block { padding-bottom: 1.5rem; margin-bottom: 1.5rem; border-bottom: 1px dashed rgba(11,11,35,.08); }
.report-block:last-child { border-bottom: none; padding-bottom: 0; margin-bottom: 0; }

.block-head { display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem; }
.block-icon {
  height: 38px; width: 38px;
  display: grid; place-items: center;
  background: #EEF0FF;
  border-radius: 10px;
  font-size: 1.1rem;
  border: 1px solid rgba(75,67,224,.12);
}
.block-title { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 1.05rem; color: #0B0B23; }
.block-sub   { font-size: .82rem; color: #5A5C82; margin-top: .1rem; }

/* AI summary */
.ai-summary {
  background: linear-gradient(135deg, #FFF8EE 0%, #FFFCF5 100%);
  border: 1px solid #FFE3C0;
  border-radius: 1rem;
  padding: 1.25rem 1.4rem;
  margin-bottom: 1.5rem;
}
.ai-summary .block-icon { background: #FFE38A; border-color: #FFB169; }
.ai-text { color: #2D2E55; font-size: .95rem; line-height: 1.65; }
.ai-text strong { color: #0B0B23; }

/* Heatmap */
.heatmap { display: flex; flex-direction: column; gap: .65rem; }
.heat-row { display: grid; grid-template-columns: 110px 1fr; gap: .75rem; align-items: center; }
.heat-subject { font-weight: 700; font-size: .9rem; color: #0B0B23; }
.heat-cells { display: flex; gap: .35rem; flex-wrap: wrap; }
.heat-cell {
  padding: .4rem .65rem;
  border-radius: .5rem;
  font-size: .72rem;
  font-weight: 700;
  border: 1px solid;
}
.heat-cell.strong { background: #D8F5E0; color: #047857; border-color: #9BE0AE; }
.heat-cell.ok     { background: #FFF4CC; color: #92400E; border-color: #FFE38A; }
.heat-cell.weak   { background: #FFE3E3; color: #B91C1C; border-color: #FFB7B7; }

.heatmap-legend { display: flex; gap: 1rem; margin-top: .65rem; font-size: .72rem; color: #5A5C82; flex-wrap: wrap; }
.heatmap-legend .dot { display: inline-block; height: 10px; width: 10px; border-radius: 50%; margin-right: .3rem; vertical-align: middle; }
.heatmap-legend .dot.strong { background: #34A853; }
.heatmap-legend .dot.ok     { background: #F59E0B; }
.heatmap-legend .dot.weak   { background: #EF4444; }

/* Voice player */
.voice-block { background: linear-gradient(160deg, #F5F6FF, #fff); border: 1px solid #DDE0FF; border-radius: 1rem; padding: 1.25rem 1.4rem; margin-bottom: 0; }
.audio-player {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: #0B0B23;
  border-radius: .9rem;
  padding: .85rem 1rem;
  color: #fff;
}
.play-btn {
  height: 44px; width: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FF9A47, #F47A1F);
  display: grid; place-items: center;
  cursor: pointer;
  border: none;
  color: #fff; font-size: 1rem;
  box-shadow: 0 6px 16px -4px rgba(255,154,71,.55);
  transition: transform .2s ease;
}
.play-btn:hover { transform: scale(1.08); }
.play-btn span { margin-left: 2px; }

.waveform { display: flex; align-items: end; gap: 2px; height: 30px; }
.waveform span { width: 3px; background: #5A57F0; border-radius: 2px; opacity: .85; transition: transform .2s ease; }
.waveform.playing span {
  animation: wave-bounce 0.9s ease-in-out infinite;
}
.waveform.playing span:nth-child(2n)  { animation-delay: .12s; }
.waveform.playing span:nth-child(3n)  { animation-delay: .24s; }
.waveform.playing span:nth-child(5n)  { animation-delay: .36s; }
.waveform.playing span:nth-child(7n)  { animation-delay: .48s; }
@keyframes wave-bounce {
  0%, 100% { transform: scaleY(0.55); background: #5A57F0; }
  50%      { transform: scaleY(1.2);  background: #FF9A47; }
}
.audio-meta { display: flex; justify-content: space-between; font-size: .7rem; color: #9596B5; margin-top: .35rem; }
.audio-score { text-align: right; padding-left: .5rem; border-left: 1px solid rgba(255,255,255,.15); }
.audio-score .text-ink-500 { color: #C8CADF !important; }

.transcript { margin-top: 1rem; padding: 1rem 1.1rem; background: #fff; border: 1px dashed #DDE0FF; border-radius: .75rem; }
.transcript-tag { font-size: .68rem; font-weight: 800; color: #5A57F0; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .35rem; }
.transcript p { font-size: .92rem; color: #2D2E55; line-height: 1.55; }

/* Wins */
.wins-list { display: flex; flex-direction: column; gap: .75rem; }
.win-row { display: flex; align-items: center; gap: .85rem; padding: .8rem; background: #fff; border: 1px solid #E4E6F4; border-radius: .75rem; transition: transform .2s ease; }
.win-row:hover { transform: translateX(3px); }
.win-medal { height: 42px; width: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 1.4rem; flex-shrink: 0; }
.win-title { font-weight: 800; color: #0B0B23; font-size: .92rem; }
.win-sub   { font-size: .78rem; color: #5A5C82; margin-top: .1rem; }

/* Attention */
.attention { background: linear-gradient(160deg, #FFF7F2, #fff); border: 1px solid #FFE0CC; border-radius: 1rem; padding: 1.25rem 1.4rem; }
.attention .block-icon { background: #FFE38A; border-color: #FFB169; }
.attention-list { display: flex; flex-direction: column; gap: .5rem; list-style: none; padding: 0; }
.attention-list li { padding: .65rem .85rem; background: #fff; border-left: 3px solid #FF9A47; border-radius: .35rem; }
.attention-list strong { display: block; color: #0B0B23; font-size: .9rem; }
.attention-list span { font-size: .8rem; color: #5A5C82; }

/* Plan grid */
.plan { background: linear-gradient(160deg, #F0FDF4, #fff); border: 1px solid #BBE9C8; border-radius: 1rem; padding: 1.25rem 1.4rem; }
.plan .block-icon { background: #D8F5E0; border-color: #9BE0AE; }
.plan-grid { display: grid; grid-template-columns: 1fr; gap: .35rem; }
.plan-day { display: grid; grid-template-columns: 50px 1fr; gap: .65rem; padding: .55rem .75rem; background: #fff; border: 1px solid rgba(11,11,35,.06); border-radius: .5rem; align-items: center; }
.plan-day.rest { background: #F5F3FF; border-color: #E5DEFF; }
.day-label { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: .78rem; color: #5A57F0; text-transform: uppercase; letter-spacing: .06em; }
.day-task { font-size: .85rem; color: #2D2E55; font-weight: 600; }

/* Actions */
.report-actions { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: 1rem; }
.action-btn {
  flex: 1;
  padding: .85rem 1rem;
  border-radius: .75rem;
  font-weight: 800;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: .9rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all .2s ease;
}
.action-btn.primary { background: #0B0B23; color: #fff; }
.action-btn.primary:hover { background: #4B43E0; transform: translateY(-2px); }
.action-btn.ghost { background: #fff; color: #2D2E55; border-color: #E4E6F4; }
.action-btn.ghost:hover { border-color: #5A57F0; color: #4B43E0; }

/* Delivery channels */
.delivery {
  background: linear-gradient(160deg, #ECFDF5, #fff);
  border: 1px solid #BBE9C8;
  border-radius: 1rem;
  padding: 1.25rem 1.4rem;
}
.delivery .block-icon { background: #D8F5E0; border-color: #9BE0AE; }

.channel-list {
  display: flex;
  flex-direction: column;
  gap: .55rem;
}
.channel-pill {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: .7rem .85rem;
  background: #fff;
  border: 1.5px solid #E4E6F4;
  border-radius: .8rem;
  cursor: pointer;
  transition: all .2s ease;
  text-align: left;
  width: 100%;
}
.channel-pill:hover {
  border-color: #9BE0AE;
  transform: translateX(2px);
  box-shadow: 0 4px 14px -6px rgba(75,67,224,.15);
}
.channel-pill.active {
  background: #F0FDF4;
  border-color: #34A853;
  box-shadow: 0 6px 16px -8px rgba(52,168,83,.3);
}
.channel-icon {
  flex-shrink: 0;
  height: 38px; width: 38px;
  border-radius: 10px;
  display: grid; place-items: center;
  box-shadow: 0 4px 10px -4px rgba(11,11,35,.18);
}
.channel-info { flex: 1; min-width: 0; }
.channel-name {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: .92rem;
  color: #0B0B23;
}
.channel-meta {
  font-size: .76rem;
  color: #5A5C82;
  margin-top: .1rem;
  font-variant-numeric: tabular-nums;
  word-break: break-all;
}
.channel-toggle {
  flex-shrink: 0;
  height: 24px; width: 42px;
  border-radius: 999px;
  background: #E4E6F4;
  position: relative;
  transition: background .25s ease;
}
.channel-toggle span {
  position: absolute;
  top: 2px; left: 2px;
  height: 20px; width: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px -1px rgba(11,11,35,.25);
  transition: transform .25s cubic-bezier(.4,0,.2,1);
}
.channel-pill.active .channel-toggle {
  background: #34A853;
}
.channel-pill.active .channel-toggle span {
  transform: translateX(18px);
}

.delivery-confirm {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-top: .85rem;
  padding: .7rem .9rem;
  background: #fff;
  border: 1px dashed #9BE0AE;
  border-radius: .65rem;
  font-size: .82rem;
  color: #047857;
}
.delivery-confirm strong { color: #065F46; }

/* Footer */
.report-footer {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1rem 2rem;
  background: #FAFBFF;
  border-top: 1px dashed rgba(11,11,35,.08);
  font-size: .78rem; color: #5A5C82;
}

/* Parent quotes */
.parent-quote {
  background: #fff;
  border: 1px solid rgba(11,11,35,.06);
  border-radius: 1.25rem;
  padding: 1.5rem 1.4rem;
  box-shadow: 0 8px 24px -12px rgba(11,11,35,.1);
  transition: transform .2s ease;
}
.parent-quote:hover { transform: translateY(-4px); }
.parent-quote p { color: #2D2E55; font-size: .98rem; line-height: 1.55; margin-top: .85rem; font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 600; }
.parent-quote .quote-author { margin-top: .85rem; font-size: .82rem; color: #5A5C82; font-weight: 600; }

/* ============== Kids background patterns ============== */

/* 1. Confetti — soft scatter of pastel circles, stars, hearts, triangles */
.kids-bg-confetti {
  background-color: #FFFCF8;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 240'%3E%3Ccircle cx='25' cy='35' r='5' fill='%23FFE38A' opacity='0.55'/%3E%3Ccircle cx='195' cy='50' r='4' fill='%23B7D2FF' opacity='0.55'/%3E%3Ccircle cx='55' cy='180' r='4.5' fill='%239BE0AE' opacity='0.55'/%3E%3Ccircle cx='200' cy='200' r='3.5' fill='%23FFB7D2' opacity='0.55'/%3E%3Cpath d='M120 30 l1.7 5.2 5.5 0 -4.4 3.2 1.7 5.2 -4.5 -3.2 -4.5 3.2 1.7 -5.2 -4.4 -3.2 5.5 0 z' fill='%23C9B5FF' opacity='0.6'/%3E%3Cpath d='M40 100 l1.4 4.3 4.5 0 -3.6 2.6 1.4 4.3 -3.7 -2.6 -3.7 2.6 1.4 -4.3 -3.6 -2.6 4.5 0 z' fill='%23FFB169' opacity='0.5'/%3E%3Cpolygon points='150,140 162,158 138,158' fill='%239BE0AE' opacity='0.45'/%3E%3Cpolygon points='90,210 100,196 110,210' fill='%23FFB169' opacity='0.5'/%3E%3Cpath d='M180 100 c-3-3-9 4 0 11 c9-7 3-14 0-11 z' fill='%23FFB7D2' opacity='0.55'/%3E%3Cpath d='M70 65 c-2.5-2.5-7 3 0 9 c7-6 2.5-11 0-9 z' fill='%23B7D2FF' opacity='0.55'/%3E%3Cpath d='M210 130 q 5 -8 10 0 t 10 0' stroke='%235A57F0' stroke-width='2' fill='none' opacity='0.35' stroke-linecap='round'/%3E%3Cpath d='M10 140 q 5 -8 10 0 t 10 0' stroke='%23FF9A47' stroke-width='2' fill='none' opacity='0.4' stroke-linecap='round'/%3E%3Crect x='160' y='80' width='8' height='8' rx='2' fill='%23C9B5FF' opacity='0.5' transform='rotate(15 164 84)'/%3E%3Crect x='30' y='220' width='6' height='6' rx='1.5' fill='%239BE0AE' opacity='0.55' transform='rotate(20 33 223)'/%3E%3C/svg%3E");
  background-size: 240px 240px;
}

/* 2. Notebook — dotted grid paper, like a kid's exercise book */
.kids-bg-notebook {
  background-image:
    /* small pastel dots */
    radial-gradient(circle, rgba(75,67,224,.14) 1.2px, transparent 1.2px),
    /* faint grid lines */
    linear-gradient(to right, rgba(75,67,224,.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(75,67,224,.04) 1px, transparent 1px);
  background-size: 24px 24px, 96px 96px, 96px 96px;
  background-position: 0 0;
}

/* 3. Floating shapes — large soft pastel clouds/balloons/stars for pricing */
.kids-bg-shapes::before,
.kids-bg-shapes::after {
  content: '';
  position: absolute;
  pointer-events: none;
  background-repeat: no-repeat;
  background-size: contain;
  z-index: 0;
}
.kids-bg-shapes::before {
  top: 6%; left: -4%;
  width: 220px; height: 220px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cellipse cx='100' cy='110' rx='80' ry='52' fill='%23FFE3EE'/%3E%3Cellipse cx='65' cy='95' rx='35' ry='32' fill='%23FFE3EE'/%3E%3Cellipse cx='135' cy='95' rx='32' ry='28' fill='%23FFE3EE'/%3E%3Cellipse cx='100' cy='80' rx='38' ry='32' fill='%23FFE3EE'/%3E%3C/svg%3E");
  opacity: .55;
  animation: float-slow 14s ease-in-out infinite;
}
.kids-bg-shapes::after {
  bottom: 8%; right: -5%;
  width: 260px; height: 260px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cellipse cx='100' cy='95' rx='62' ry='70' fill='%23DDE0FF'/%3E%3Cline x1='100' y1='160' x2='100' y2='195' stroke='%235A57F0' stroke-width='1.5' opacity='0.4' stroke-linecap='round'/%3E%3Cpolygon points='95,160 105,160 100,168' fill='%23DDE0FF'/%3E%3Cellipse cx='80' cy='75' rx='10' ry='14' fill='%23ffffff' opacity='0.45'/%3E%3C/svg%3E");
  opacity: .45;
  animation: float-slow 16s ease-in-out infinite reverse;
}

/* Star sprinkles for shapes section */
.kids-bg-shapes {
  background-image:
    radial-gradient(circle at 12% 60%, #FFE38A 0, transparent 4px),
    radial-gradient(circle at 88% 35%, #9BE0AE 0, transparent 5px),
    radial-gradient(circle at 70% 80%, #FFB7D2 0, transparent 4px),
    radial-gradient(circle at 25% 88%, #C9B5FF 0, transparent 4px),
    radial-gradient(circle at 92% 75%, #FFB169 0, transparent 3px),
    linear-gradient(to bottom, rgba(238,240,255,0.4), transparent 50%);
  background-size: 100% 100%;
  background-repeat: no-repeat;
}

@keyframes float-slow {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-18px) rotate(3deg); }
}

/* Ensure section content sits above the patterns */
.kids-bg-confetti > *,
.kids-bg-notebook > *,
.kids-bg-shapes > * {
  position: relative;
  z-index: 1;
}

/* ============== Playful doodles ============== */
.doodle {
  position: absolute;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}
.doodle-star {
  font-size: 1.6rem;
  color: #FF9A47;
  animation: twinkle 2.5s ease-in-out infinite;
}
.doodle-star:nth-of-type(2n) { color: #5A57F0; animation-delay: .8s; }
@keyframes twinkle {
  0%, 100% { opacity: .35; transform: scale(1) rotate(0); }
  50%      { opacity: 1;   transform: scale(1.25) rotate(15deg); }
}
.doodle-dot {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #FFB169;
  opacity: .5;
  animation: float 6s ease-in-out infinite;
}
.doodle-dot.alt { background: #5A57F0; opacity: .35; animation-delay: 1.5s; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-14px); }
}

/* ============== Feature card ============== */
.feature-card {
  position: relative;
  background: #fff;
  border: 1px solid rgba(11, 11, 35, .06);
  border-radius: 1rem;
  padding: 1.5rem;
  transition: all .25s ease;
  box-shadow: 0 4px 16px -8px rgba(11, 11, 35, .08);
}
.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 36px -16px rgba(75, 67, 224, .25);
  border-color: rgba(75, 67, 224, .2);
}
.feature-card .ico {
  font-size: 1.75rem;
  height: 3rem; width: 3rem;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #EEF0FF, #fff);
  border-radius: .75rem;
  border: 1px solid rgba(75, 67, 224, .1);
}
.feature-card h4 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  margin-top: 1rem;
  color: #0B0B23;
}
.feature-card p {
  color: #5A5C82;
  font-size: .9rem;
  line-height: 1.55;
  margin-top: .4rem;
}
.feature-card .cx {
  display: inline-block;
  margin-top: 1rem;
  padding: .2rem .6rem;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .04em;
  border-radius: 999px;
  text-transform: uppercase;
}
.feature-card .cx.low  { background: #ECFDF5; color: #047857; }
.feature-card .cx.med  { background: #FEF3C7; color: #B45309; }
.feature-card .cx.high { background: #FEE2E2; color: #B91C1C; }

/* ============== Architecture rows ============== */
.arch-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1.25rem;
  background: #fff;
  border: 1px solid rgba(11, 11, 35, .06);
  border-radius: 1rem;
  padding: 1.1rem 1.25rem;
  align-items: center;
  box-shadow: 0 4px 16px -8px rgba(11, 11, 35, .06);
  transition: transform .2s ease;
}
.arch-row:hover { transform: translateX(2px); }
.arch-row.highlight {
  background: linear-gradient(135deg, #EEF0FF, #fff 70%);
  border-color: rgba(75, 67, 224, .25);
  box-shadow: 0 12px 32px -10px rgba(75, 67, 224, .25);
}
.arch-label {
  border-right: 1px dashed rgba(11, 11, 35, .1);
  padding-right: 1rem;
}
.arch-cells {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.arch-pill {
  padding: .5rem .9rem;
  font-size: .85rem;
  font-weight: 600;
  border-radius: .6rem;
  background: #F4F5FB;
  color: #2D2E55;
  border: 1px solid rgba(11, 11, 35, .04);
}
.arch-pill.alt  { background: #FFF6EE; color: #9A4B0E; border-color: rgba(255,154,71,.25); }
.arch-pill.svc  { background: #EEF0FF; color: #3F36BF; border-color: rgba(75,67,224,.18); }
.arch-pill.ai   { background: #fff; color: #4B43E0; border: 1px solid rgba(75,67,224,.35); box-shadow: 0 4px 14px -6px rgba(75,67,224,.3); }
.arch-pill.data { background: #ECFDF5; color: #065F46; border-color: rgba(6,95,70,.15); }
.arch-pill.ops  { background: #F5F3FF; color: #5B21B6; border-color: rgba(91,33,182,.15); }

@media (max-width: 720px) {
  .arch-row { grid-template-columns: 1fr; }
  .arch-label { border-right: none; border-bottom: 1px dashed rgba(11,11,35,.1); padding: 0 0 .75rem 0; }
}

/* ============== Entity cards ============== */
.entity {
  background: #fff;
  border: 1px solid rgba(11,11,35,.06);
  border-radius: 1rem;
  padding: 1.25rem;
  box-shadow: 0 4px 16px -8px rgba(11,11,35,.06);
  transition: transform .2s ease;
}
.entity:hover { transform: translateY(-2px); border-color: rgba(75,67,224,.2); }
.entity-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  color: #0B0B23;
  font-size: 1rem;
}
.entity ul {
  margin-top: .75rem;
  font-size: .85rem;
  color: #5A5C82;
  list-style: none;
  padding: 0;
}
.entity ul li {
  padding: .25rem 0;
  border-top: 1px dashed rgba(11,11,35,.06);
}
.entity ul li:first-child { border-top: none; }

/* ============== Pricing ============== */
.price-card {
  position: relative;
  background: #fff;
  border: 1px solid rgba(11,11,35,.06);
  border-radius: 1.25rem;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 20px -10px rgba(11,11,35,.1);
  transition: all .25s ease;
}
.price-card:hover { transform: translateY(-3px); }
.price-card.featured {
  background: linear-gradient(160deg, #4B43E0, #332E94);
  color: #fff;
  border: none;
  box-shadow: 0 24px 50px -16px rgba(75,67,224,.45);
  transform: scale(1.03);
}
.price-card.featured .badge {
  position: absolute; top: -.7rem; right: 1.25rem;
  background: #FF9A47; color: #0B0B23;
  font-size: .68rem; font-weight: 800;
  letter-spacing: .04em;
  padding: .25rem .6rem; border-radius: 999px;
  text-transform: uppercase;
}
.price-list {
  margin-top: 1.5rem;
  flex: 1;
  list-style: none;
  padding: 0;
  font-size: .9rem;
  display: flex; flex-direction: column; gap: .55rem;
}
.price-list li.muted { opacity: .55; }
.price-cta {
  margin-top: 1.5rem;
  text-align: center;
  padding: .85rem 1rem;
  border-radius: .75rem;
  font-weight: 700;
  font-size: .9rem;
  transition: all .2s ease;
}
.price-cta.primary {
  background: #FF9A47; color: #0B0B23;
}
.price-cta.primary:hover { background: #FFB169; }
.price-cta.secondary {
  background: #0B0B23; color: #fff;
}
.price-cta.secondary:hover { background: #4B43E0; }

/* ============== Roadmap & MVP phases ============== */
.phase {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 1rem;
  padding: 1.25rem;
  backdrop-filter: blur(6px);
}
.phase-tag {
  display: inline-block;
  font-size: .68rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .08em;
  background: rgba(255,154,71,.18); color: #FFB169;
  padding: .25rem .55rem; border-radius: 999px;
}
.phase-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  margin-top: .65rem;
}
.phase p {
  color: #C8CADF;
  font-size: .85rem;
  margin-top: .5rem;
  line-height: 1.5;
}

.roadmap-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 1rem;
  padding: 1.25rem;
}
.roadmap-card ul {
  margin-top: .75rem;
  list-style: none; padding: 0;
  font-size: .85rem;
  color: #C8CADF;
}
.roadmap-card ul li {
  padding: .35rem 0;
  border-top: 1px dashed rgba(255,255,255,.08);
}
.roadmap-card ul li:first-child { border-top: none; }
.roadmap-card ul li::before {
  content: "→ ";
  color: #FFB169;
  font-weight: bold;
}

/* ============== Tab panels ============== */
.tab-panel.hidden { display: none !important; }
