/* ═══════════════════════════════════════════════════
   OracyAI Landing Page
   ═══════════════════════════════════════════════════ */

@import url('colors_and_type.css');
@import url('PressableButton.css');
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;500;600;700;800;900&display=swap');

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font-ui);
  color: var(--fg);
  background: #FFFFFF;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body { overflow-x: clip; }

a { color: inherit; text-decoration: none; }

/* ═════════════════════ NAV ═════════════════════ */

.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  /* Fully opaque background — backdrop-filter on a sticky bar over
     scrolling content forces a per-frame blur recomputation that
     flickers no matter how aggressively we promote layers. Going solid
     is the only stable option for sticky-stacked pages. */
  background: #FFFFFF;
  border-bottom: 1px solid var(--border);
  /* Keep the nav on its own compositor layer so it just gets
     recomposited (not repainted) as the page scrolls under it. */
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.nav-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 14px 32px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-logo img { height: 30px; display: block; }
.nav-links {
  display: flex;
  gap: 28px;
  margin-left: 24px;
  flex: 1;
}
.nav-link {
  font-size: 15px;
  font-weight: 600;
  color: var(--fg-2);
  cursor: pointer;
  transition: color 0.15s;
}
.nav-link:hover { color: var(--fg); }
.nav-cta { display: flex; gap: 12px; align-items: center; }

.btn-text {
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  color: var(--fg-1);
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 14px;
}
.btn-text:hover { color: var(--brand-purple-500); }

.pressable--nav { --_height: 44px; font-size: 14px; min-width: 130px; }

/* ═════════════════════ HERO ═════════════════════ */

.hero {
  position: relative;
  padding: 80px 32px 100px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 1200px 700px at 80% -10%, rgba(175,91,206,0.12), transparent 60%),
    radial-gradient(ellipse 900px 500px at -10% 30%, rgba(136,211,229,0.18), transparent 55%),
    linear-gradient(180deg, #FFFFFF 0%, #FAF9FB 100%);
}

.hero-clouds {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero-cloud {
  position: absolute;
  background: rgba(255,255,255,0.7);
  border-radius: 50%;
  filter: blur(2px);
}

.hero-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 8px;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  color: var(--fg-1);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.hero-eyebrow .dot {
  width: 18px; height: 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #EF8BE6, #AF5BCE);
  box-shadow: 0 0 0 3px rgba(175,91,206,0.15);
}

.hero-h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 5.5vw, 68px);
  line-height: 1.05;
  font-weight: 800;
  color: var(--fg);
  margin: 20px 0 0;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.hero-h1 .highlight {
  position: relative;
  background: linear-gradient(135deg, #AF5BCE, #EF8BE6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}
.hero-h1 .underline {
  position: relative;
  display: inline-block;
}
.hero-h1 .underline::after {
  content: '';
  position: absolute;
  left: -2px; right: -2px;
  bottom: -2px;
  height: 12px;
  background: rgba(255,177,0,0.45);
  border-radius: 4px;
  z-index: -1;
}

.hero-sub {
  font-size: 19px;
  line-height: 1.55;
  color: var(--fg-2);
  margin: 24px 0 36px;
  max-width: 540px;
  font-weight: 500;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}
.pressable--hero { --_height: 56px; font-size: 15px; min-width: 200px; }
.pressable--hero-outline {
  --_height: 56px;
  font-size: 15px;
  font-weight: 700;
  min-width: 180px;
}

.hero-meta {
  margin-top: 28px;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 13px;
  font-weight: 600;
  color: var(--fg-muted);
}
.hero-meta-item { display: flex; align-items: center; gap: 6px; }
.hero-meta-item svg { width: 16px; height: 16px; color: var(--xp-green-500); }

/* Hero stage with phone */
.hero-stage {
  position: relative;
  height: 600px;
}

.hero-phone {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) rotate(-3deg);
  width: 320px;
  height: 580px;
  background: #fff;
  border-radius: 44px;
  border: 10px solid #1A202C;
  box-shadow:
    0 40px 80px rgba(112, 61, 145, 0.25),
    0 20px 40px rgba(17, 17, 17, 0.18),
    0 8px 16px rgba(17, 17, 17, 0.08);
  overflow: hidden;
  z-index: 2;
}
.hero-phone::before {
  content: '';
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 110px; height: 22px;
  background: #1A202C;
  border-bottom-left-radius: 14px;
  border-bottom-right-radius: 14px;
  z-index: 100;
}

/* Floating card pieces around the phone */
.hero-float {
  position: absolute;
  background: #fff;
  border-radius: 18px;
  padding: 14px 16px;
  box-shadow: var(--shadow-floating);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 700;
  z-index: 3;
  animation: hero-float 4s ease-in-out infinite;
}
.hero-float .icon {
  width: 36px; height: 36px;
  border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.hero-float .label { font-size: 11px; font-weight: 800; color: var(--fg-faint); text-transform: uppercase; letter-spacing: 0.08em; }
.hero-float .value { font-size: 15px; color: var(--fg); font-weight: 800; line-height: 1.2; margin-top: 2px; }

.hero-float--xp { top: 60px; left: -10px; }
.hero-float--xp .icon { background: #F4FBF5; color: var(--xp-green-500); }
.hero-float--streak { bottom: 90px; right: -20px; animation-delay: -1.3s; }
.hero-float--streak .icon { background: #FFF4E5; }
.hero-float--correct { top: 40%; left: -30px; animation-delay: -2.5s; }
.hero-float--correct .icon { background: #F4FBF5; color: var(--xp-green-500); }

@keyframes hero-float {
  0%,100% { transform: translateY(0) rotate(-1deg); }
  50%     { transform: translateY(-10px) rotate(1deg); }
}

/* Phone screen content (mini learning path) */
.mini-screen {
  position: relative;
  height: 100%;
  background:
    radial-gradient(ellipse 120% 40% at 50% 100%, #C8E6C9 0%, transparent 55%),
    radial-gradient(ellipse 90% 30% at 20% 95%, #A5D6A7 0%, transparent 50%),
    linear-gradient(180deg, #87CEEB 0%, #B8E4F9 40%, #E1F5FE 100%);
  overflow: hidden;
}
.mini-status {
  height: 30px;
  display: flex; align-items: flex-end; justify-content: space-between;
  padding: 6px 24px 4px;
  font-size: 12px; font-weight: 700;
  color: #1A202C;
  position: relative;
  z-index: 50;
}
.mini-stats {
  position: absolute;
  top: 38px;
  left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 4px;
  padding: 6px 12px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(20px);
  border-radius: 24px;
  box-shadow: var(--shadow-floating);
  z-index: 5;
}
.mini-stat {
  display: flex; align-items: center; gap: 4px;
  font-size: 14px; font-weight: 800;
  padding: 2px 8px;
}
.mini-stat.streak { color: var(--streak-orange); }
.mini-stat.energy { color: #4CAF50; }
.mini-stat span.emoji { font-size: 16px; }

.mini-path {
  position: absolute;
  top: 95px;
  left: 0; right: 0;
  bottom: 0;
}
.mini-card {
  position: absolute;
  border-radius: 16px;
  padding: 10px 12px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
}
.mini-card.completed {
  background: linear-gradient(135deg, #C8E6C9, #A5D6A7);
  color: #2E7D32;
  box-shadow: 0 8px 20px rgba(129,199,132,0.3);
}
.mini-card.active {
  background: linear-gradient(135deg, #FFE0B2, #FFCC80);
  color: #6D4C41;
  box-shadow: 0 12px 30px rgba(255,152,0,0.35);
  display: flex; align-items: center; gap: 8px;
}
.mini-mic {
  width: 50px; height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FF8A65, #FF7043);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(255,112,67,0.3);
}
.mini-mic svg { width: 24px; height: 24px; color: #fff; }
.mini-mic-halo {
  position: absolute;
  width: 70px; height: 70px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  animation: halo 2s ease-in-out infinite;
  margin: -10px;
}
.mini-card.locked {
  background: linear-gradient(135deg, #E1BEE7, #D1C4E9);
  color: #7E57C2;
  opacity: 0.85;
}

.mini-mascot-wrap {
  position: absolute;
  z-index: 4;
  animation: charfloat-mini 4s ease-in-out infinite;
}
@keyframes charfloat-mini {
  0%,100% { transform: translateY(0) rotate(-1.5deg); }
  50%     { transform: translateY(-6px) rotate(1.5deg); }
}
@keyframes halo {
  0%,100% { transform: scale(1); opacity: 0.6; }
  50%     { transform: scale(1.2); opacity: 0.3; }
}

/* Logo strip */
.logos {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 32px 32px;
  background: #FAF9FB;
}
.logos-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  align-items: center;
  justify-content: space-between;
}
.logos-label {
  font-size: 11px;
  font-weight: 800;
  color: var(--fg-faint);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.logos-list {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
  align-items: center;
}
.school-logo {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 800;
  color: var(--fg-faint);
  letter-spacing: -0.01em;
  display: flex; align-items: center; gap: 8px;
  opacity: 0.75;
}
.school-logo svg, .school-logo .glyph {
  width: 26px; height: 26px;
  color: var(--fg-faint);
  display: flex; align-items: center; justify-content: center;
}

/* ═════════════════════ SECTION COMMON ═════════════════════ */

.section {
  padding: 100px 32px;
  position: relative;
}
.section-inner {
  max-width: 1240px;
  margin: 0 auto;
  position: relative;
}

.section-eyebrow {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-purple-500);
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.1;
  font-weight: 800;
  color: var(--fg);
  margin: 0 0 20px;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.section-sub {
  font-size: 18px;
  line-height: 1.55;
  color: var(--fg-2);
  max-width: 640px;
  margin: 0;
}

.section-head--center { text-align: center; }
.section-head--center .section-sub { margin: 0 auto; }

/* ═════════════════════ HOW IT WORKS ═════════════════════ */

.how {
  background:
    linear-gradient(180deg, #FFFFFF 0%, #FAF9FB 100%);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}

.step-card {
  position: relative;
  background: #fff;
  border-radius: 24px;
  border: 1px solid var(--border);
  padding: 32px 28px 28px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
  transition: transform 0.2s, box-shadow 0.2s;
}
.step-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.06);
}
.step-num {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  color: var(--brand-purple-500);
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.step-illu {
  height: 180px;
  border-radius: 18px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.step-illu--listen {
  background: linear-gradient(135deg, #E1F5FE 0%, #B8E4F9 100%);
}
.step-illu--speak {
  background: linear-gradient(135deg, #FFF4E5 0%, #FFE0B2 100%);
}
.step-illu--grow {
  background: linear-gradient(135deg, #F4FBF5 0%, #C8E6C9 100%);
}
.step-h {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: var(--fg);
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}
.step-p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--fg-2);
  margin: 0;
}

/* Listen illustration: speech bubble */
.step-illu .bubble {
  background: #fff;
  border-radius: 20px;
  padding: 14px 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--fg-1);
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  position: relative;
  max-width: 78%;
}
.step-illu .bubble::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 24px;
  width: 0; height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 10px solid #fff;
  filter: drop-shadow(0 2px 1px rgba(0,0,0,0.04));
}
.step-illu .bubble .em { color: var(--brand-purple-500); font-weight: 800; }

/* Speak illustration: mic + waveform */
.step-illu--speak .mic-big {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FF8A65, #FF7043);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 20px rgba(255,112,67,0.3);
  position: relative;
}
.step-illu--speak .mic-big svg { width: 32px; height: 32px; color: #fff; }
.step-illu--speak .mic-big::before,
.step-illu--speak .mic-big::after {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px solid rgba(255,112,67,0.35);
  animation: ring 2.5s ease-out infinite;
}
.step-illu--speak .mic-big::after {
  animation-delay: -1.25s;
}
@keyframes ring {
  0% { transform: scale(0.85); opacity: 1; }
  100% { transform: scale(1.6); opacity: 0; }
}
.step-illu--speak .wave {
  position: absolute;
  bottom: 24px;
  display: flex; gap: 4px;
  align-items: center;
}
.step-illu--speak .wave span {
  display: block;
  width: 4px;
  border-radius: 2px;
  background: #FF7043;
  animation: wave 1.2s ease-in-out infinite;
}
@keyframes wave {
  0%,100% { height: 6px; }
  50%     { height: 22px; }
}

/* Grow illustration: chart */
.step-illu--grow .chart {
  display: flex; gap: 8px;
  align-items: flex-end;
  height: 100px;
}
.step-illu--grow .bar {
  width: 22px;
  background: linear-gradient(180deg, #58CC02, #46A302);
  border-radius: 6px 6px 2px 2px;
  position: relative;
}
.step-illu--grow .bar::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 4px;
  background: rgba(0,0,0,0.08);
  border-radius: 2px;
}
.step-illu--grow .badge-correct {
  position: absolute;
  top: 24px;
  right: 30px;
  background: #fff;
  border-radius: 999px;
  padding: 4px 10px 4px 6px;
  display: flex; align-items: center; gap: 4px;
  font-size: 11px;
  font-weight: 800;
  color: var(--xp-green-500);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.step-illu--grow .badge-correct svg { width: 14px; height: 14px; }

/* ═════════════════════ FOR STUDENTS ═════════════════════ */

.duo-section {
  padding: 100px 32px;
  background: #FFFFFF;
}
.duo-grid {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.feat-list {
  display: grid;
  gap: 24px;
  margin-top: 36px;
}
.feat-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.feat-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.feat-icon svg { width: 22px; height: 22px; }
.feat-icon--mic { background: #EFF8FF; color: var(--record-blue-500); }
.feat-icon--xp { background: #F4FBF5; color: var(--xp-green-500); }
.feat-icon--heritage { background: #F8EFFB; color: var(--brand-purple-500); }
.feat-icon--curric { background: #FFF4E5; color: var(--streak-orange); }

.feat-h {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 800;
  color: var(--fg);
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}
.feat-p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--fg-2);
  margin: 0;
}

/* Activity preview (chat-like) */
.activity-preview {
  position: relative;
  background: linear-gradient(135deg, #F8EFFB 0%, #EAF6FB 100%);
  border-radius: 32px;
  padding: 40px 32px;
  min-height: 540px;
  overflow: hidden;
}
.activity-preview::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 240px; height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(175,91,206,0.15), transparent 70%);
}
.activity-stealth {
  font-size: 11px;
  font-weight: 800;
  color: var(--brand-purple-500);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 16px;
  position: relative;
}
.activity-stealth::before {
  content: '';
  width: 24px; height: 2px;
  background: var(--brand-purple-500);
  border-radius: 1px;
}
.activity-prompt {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  color: var(--fg);
  margin: 0 0 28px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  position: relative;
}

.chat-row {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
  align-items: flex-end;
  position: relative;
}
.chat-row.you { justify-content: flex-end; }
.chat-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #EF8BE6, #AF5BCE);
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(175,91,206,0.3);
}
.chat-bubble {
  background: #fff;
  border-radius: 20px;
  padding: 14px 18px;
  font-size: 15px;
  font-weight: 500;
  color: var(--fg-1);
  box-shadow: 0 4px 14px rgba(0,0,0,0.05);
  max-width: 280px;
  line-height: 1.5;
}
.chat-bubble.you {
  background: linear-gradient(135deg, #56A5F5, #3178C6);
  color: #fff;
  font-weight: 600;
}
.chat-bubble .feedback {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  padding: 4px 10px;
  background: #F4FBF5;
  color: var(--xp-green-500);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.chat-bubble .feedback svg { width: 12px; height: 12px; }

.chat-typing {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 14px 18px;
}
.chat-typing span {
  width: 7px; height: 7px;
  background: #C4C4CC;
  border-radius: 50%;
  animation: typing 1.4s infinite ease-in-out;
}
.chat-typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing {
  0%,60%,100% { transform: translateY(0); opacity: 0.4; }
  30%         { transform: translateY(-6px); opacity: 1; }
}

.activity-actions {
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.record-btn {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FF8A65, #FF7043);
  border: 4px solid #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(255,112,67,0.4);
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
}
.record-btn::before {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px solid rgba(255,112,67,0.4);
  animation: ring 2.5s ease-out infinite;
}
.record-btn svg { width: 26px; height: 26px; color: #fff; }
.record-label {
  font-size: 13px;
  font-weight: 800;
  color: var(--fg-2);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ═════════════════════ FOR TEACHERS ═════════════════════ */

.teach-section {
  padding: 100px 32px;
  background: linear-gradient(180deg, #FAF9FB 0%, #F2F4F8 100%);
}
.teach-grid {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 80px;
  align-items: center;
}

/* Mock dashboard */
.dash {
  background: #fff;
  border-radius: 18px;
  border: 1px solid var(--border);
  box-shadow: 0 24px 60px rgba(17,17,17,0.10), 0 8px 20px rgba(17,17,17,0.05);
  overflow: hidden;
}
.dash-top {
  height: 44px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  border-bottom: 1px solid var(--border);
  gap: 16px;
}
.dash-dots { display: flex; gap: 6px; }
.dash-dots span {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--border);
}
.dash-search {
  flex: 1;
  background: var(--bg-muted);
  border-radius: 999px;
  height: 26px;
  padding: 0 12px;
  display: flex; align-items: center; gap: 8px;
  font-size: 12px;
  color: var(--fg-subtle);
}
.dash-search svg { width: 12px; height: 12px; }
.dash-body {
  display: grid;
  grid-template-columns: 180px 1fr;
  min-height: 420px;
}
.dash-side {
  background: var(--bg-muted);
  border-right: 1px solid var(--border);
  padding: 16px 12px;
  display: flex; flex-direction: column; gap: 4px;
  font-size: 13px;
}
.dash-side-h {
  font-size: 10px;
  font-weight: 800;
  color: var(--fg-subtle);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 8px 10px 4px;
}
.dash-nav {
  padding: 8px 10px;
  border-radius: 8px;
  display: flex; align-items: center; gap: 8px;
  color: var(--fg-2);
  font-weight: 600;
}
.dash-nav.active {
  background: rgba(94, 64, 217, 0.1);
  color: oklch(0.488 0.243 264.376);
}
.dash-nav svg { width: 14px; height: 14px; flex-shrink: 0; }

.dash-main { padding: 24px; }
.dash-h {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  color: var(--fg);
  margin: 0;
  letter-spacing: -0.01em;
}
.dash-meta {
  font-size: 12px;
  color: var(--fg-muted);
  margin: 4px 0 20px;
}

.kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}
.kpi {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
}
.kpi .lbl {
  font-size: 10px;
  font-weight: 800;
  color: var(--fg-subtle);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.kpi .val {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  color: var(--fg);
  margin-top: 4px;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}
.kpi .trend {
  font-size: 11px;
  font-weight: 700;
  margin-top: 2px;
  display: flex; align-items: center; gap: 3px;
}
.kpi .trend.up { color: var(--xp-green-500); }
.kpi .trend.down { color: var(--error); }

.classlist {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.classlist-h {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 0.8fr;
  background: var(--bg-muted);
  padding: 8px 14px;
  font-size: 10px;
  font-weight: 800;
  color: var(--fg-subtle);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.classlist-row {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 0.8fr;
  padding: 10px 14px;
  font-size: 13px;
  border-top: 1px solid var(--border);
  align-items: center;
}
.classlist-row .name { font-weight: 700; color: var(--fg); }
.classlist-row .meta { color: var(--fg-muted); font-size: 12px; }
.bar-mini {
  height: 6px;
  background: #F0F0F0;
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}
.bar-mini > span {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  background: linear-gradient(90deg, #58CC02, #46A302);
  border-radius: 3px;
}
.flag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}
.flag.ok { background: #F4FBF5; color: var(--xp-green-500); }
.flag.warn { background: #FFF4E5; color: var(--streak-orange); }

/* AI Center pop-out */
.ai-panel {
  position: absolute;
  right: -24px;
  bottom: -24px;
  background: #fff;
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: 0 24px 50px rgba(80,40,160,0.18), 0 8px 20px rgba(0,0,0,0.06);
  width: 280px;
  padding: 18px 18px 16px;
}
.ai-panel-h {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.ai-panel-h .badge {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, #AF5BCE, #EF8BE6);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
}
.ai-panel-h .badge svg { width: 16px; height: 16px; }
.ai-panel-h h4 {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  margin: 0;
  color: var(--fg);
}
.ai-panel-h .tag {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-purple-500);
}
.ai-panel p {
  font-size: 13px;
  color: var(--fg-2);
  line-height: 1.45;
  margin: 0 0 12px;
}
.ai-panel .gen-btn {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  background: linear-gradient(135deg, #AF5BCE, #803F9E);
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  box-shadow: 0 4px 12px rgba(175,91,206,0.3);
}
.ai-panel .gen-btn svg { width: 14px; height: 14px; flex-shrink: 0; }

/* Generic safety net for inline SVGs in small contexts */
.flag svg { width: 12px; height: 12px; flex-shrink: 0; }
.kpi .trend svg { width: 12px; height: 12px; flex-shrink: 0; }
.hero-meta-item svg { width: 16px; height: 16px; flex-shrink: 0; }
.chat-bubble .feedback svg { width: 12px; height: 12px; flex-shrink: 0; }
.step-illu--grow .badge-correct svg { width: 14px; height: 14px; flex-shrink: 0; }
.dash-search svg { width: 12px; height: 12px; flex-shrink: 0; }

/* ═════════════════════ STATS ═════════════════════ */

.stats-section {
  padding: 80px 32px;
  background: linear-gradient(135deg, #1A0F2E 0%, #2D1B4E 50%, #4A2872 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.stats-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(800px 400px at 20% 30%, rgba(239,139,230,0.18), transparent 60%),
    radial-gradient(600px 300px at 80% 80%, rgba(136,211,229,0.18), transparent 60%);
  pointer-events: none;
}
.stats-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  position: relative;
}
.stat-block {
  text-align: center;
}
.stat-value {
  font-family: var(--font-display);
  font-size: clamp(48px, 6vw, 72px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  background: linear-gradient(135deg, #fff, #EF8BE6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-variant-numeric: tabular-nums;
}
.stat-label {
  font-size: 14px;
  color: rgba(255,255,255,0.75);
  font-weight: 600;
  margin-top: 8px;
  text-wrap: balance;
  max-width: 180px;
  margin-inline: auto;
  line-height: 1.4;
}

/* ═════════════════════ TESTIMONIAL ═════════════════════ */

.testimonial-section {
  padding: 100px 32px;
  background: #fff;
}
.testimonial-grid {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 32px;
  display: flex; flex-direction: column;
  position: relative;
}
.testimonial.feature {
  background: linear-gradient(135deg, #FFF4E5 0%, #FFE9CC 100%);
  border-color: rgba(255,149,0,0.2);
}
.quote-mark {
  font-family: Georgia, serif;
  font-size: 64px;
  line-height: 0.5;
  color: var(--brand-purple-500);
  margin-bottom: 16px;
  margin-top: 8px;
  opacity: 0.4;
}
.testimonial.feature .quote-mark { color: var(--streak-orange); opacity: 0.5; }
.testimonial-text {
  font-family: var(--font-display);
  font-size: 19px;
  line-height: 1.5;
  color: var(--fg);
  font-weight: 600;
  letter-spacing: -0.005em;
  margin: 0 0 24px;
  flex: 1;
  text-wrap: pretty;
}
.testimonial.feature .testimonial-text {
  font-size: 22px;
}
.testimonial-byline {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
}
.byline-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #88D3E5, #56A5F5);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  flex-shrink: 0;
}
.byline-avatar.b { background: linear-gradient(135deg, #FFB100, #FF8500); }
.byline-avatar.c { background: linear-gradient(135deg, #EF8BE6, #AF5BCE); }
.byline-name { font-size: 14px; font-weight: 800; color: var(--fg); }
.byline-role { font-size: 12px; color: var(--fg-muted); margin-top: 2px; }

/* Score meter */
.score-meter {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
}
.score-meter span {
  flex: 1;
  height: 6px;
  border-radius: 3px;
  background: rgba(255,149,0,0.2);
}
.score-meter span.fill {
  background: linear-gradient(90deg, #FFB100, #FF8500);
}

/* ═════════════════════ FAQ ═════════════════════ */

.faq-section {
  padding: 100px 32px;
  background: #FAF9FB;
}
.faq-inner {
  max-width: 880px;
  margin: 0 auto;
}
.faq-list {
  margin-top: 48px;
  display: grid;
  gap: 12px;
}
.faq-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}
.faq-q {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 22px 24px;
  font-family: inherit;
  font-size: 17px;
  font-weight: 700;
  color: var(--fg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  letter-spacing: -0.005em;
}
.faq-q .plus {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--bg-muted);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s, background 0.2s;
  color: var(--fg-2);
}
.faq-item.open .faq-q .plus {
  background: var(--brand-purple-500);
  color: #fff;
  transform: rotate(45deg);
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-item.open .faq-a { max-height: 240px; }
.faq-a-inner {
  padding: 0 24px 22px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--fg-2);
}

/* ═════════════════════ CTA ═════════════════════ */

.cta-section {
  padding: 120px 32px;
  background:
    radial-gradient(circle at 30% 30%, rgba(239,139,230,0.18), transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(136,211,229,0.18), transparent 50%),
    linear-gradient(135deg, #2D1B4E 0%, #4A2872 100%);
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cta-section h2 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 20px;
  color: #fff;
  text-wrap: balance;
}
.cta-section p {
  font-size: 19px;
  color: rgba(255,255,255,0.8);
  max-width: 580px;
  margin: 0 auto 36px;
  font-weight: 500;
  line-height: 1.55;
}
.cta-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ═════════════════════ FOOTER ═════════════════════ */

.footer {
  background: #0F0820;
  color: rgba(255,255,255,0.65);
  padding: 60px 32px 32px;
  font-size: 14px;
}
.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand img {
  height: 32px;
  margin-bottom: 16px;
}
.footer-brand p {
  font-size: 14px;
  line-height: 1.55;
  color: rgba(255,255,255,0.5);
  max-width: 280px;
  margin: 0;
}
.footer-col h4 {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 16px;
}
.footer-col a {
  display: block;
  padding: 6px 0;
  color: rgba(255,255,255,0.6);
  font-weight: 500;
}
.footer-col a:hover { color: #fff; }

.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: rgba(255,255,255,0.4);
}
.footer-bottom .right { display: flex; gap: 20px; }

/* ═════════════════════ RESPONSIVE ═════════════════════ */

@media (max-width: 980px) {
  .nav-links { display: none; }
  .hero-inner, .duo-grid, .teach-grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }
  .hero-stage { height: 540px; }
  .steps-grid {
    grid-template-columns: 1fr;
  }
  .stats-inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }
  .testimonial-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .ai-panel { right: 8px; bottom: -16px; }
}

@media (max-width: 600px) {
  .section { padding: 70px 20px; }
  .hero { padding: 50px 20px 70px; }
  .nav-inner { padding: 12px 20px; }
  .stats-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions .pressable { width: 100%; }
}

/* ═════════════════════ DEMO MODAL ═════════════════════ */

.modal-root {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: modal-fade 0.18s ease-out;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 8, 32, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.modal-card {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  background: #FFFFFF;
  border-radius: 24px;
  border: 1px solid var(--border);
  box-shadow: 0 32px 80px rgba(15, 8, 32, 0.35), 0 12px 24px rgba(0, 0, 0, 0.08);
  padding: 36px 36px 32px;
  animation: modal-pop 0.22s cubic-bezier(0.16, 0.84, 0.24, 1);
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: var(--bg-muted);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fg-2);
  transition: background 0.15s, color 0.15s;
}
.modal-close:hover { background: var(--border); color: var(--fg); }
.modal-close svg { width: 16px; height: 16px; }

.modal-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 8px;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  color: var(--fg-1);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  margin-bottom: 16px;
}
.modal-eyebrow .dot {
  width: 14px; height: 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #EF8BE6, #AF5BCE);
  box-shadow: 0 0 0 3px rgba(175, 91, 206, 0.15);
}

.modal-title {
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1.15;
  font-weight: 800;
  color: var(--fg);
  margin: 0 0 10px;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.modal-sub {
  font-size: 15px;
  line-height: 1.55;
  color: var(--fg-2);
  margin: 0 0 24px;
  font-weight: 500;
}

.modal-form {
  display: grid;
  gap: 14px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.form-field {
  display: grid;
  gap: 6px;
}
.form-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--fg-1);
  letter-spacing: 0.02em;
}
.form-optional {
  font-weight: 500;
  color: var(--fg-muted);
  text-transform: none;
  letter-spacing: 0;
}
.form-field input,
.form-field select,
.form-field textarea {
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  color: var(--fg);
  background: #FFFFFF;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 11px 14px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  width: 100%;
  min-height: 44px;
}
.form-field textarea {
  resize: vertical;
  min-height: 84px;
  line-height: 1.5;
}
.form-field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23718096' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--fg-subtle); }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--brand-purple-500);
  box-shadow: 0 0 0 3px rgba(175, 91, 206, 0.18);
}

.form-error {
  background: #FFF5F5;
  border: 1px solid #FECACA;
  color: var(--error-600);
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
}

.modal-actions { margin-top: 6px; }
.modal-actions .pressable { width: 100%; }
.modal-fineprint {
  font-size: 12px;
  color: var(--fg-muted);
  text-align: center;
  margin: 14px 0 0;
  font-weight: 500;
}

.modal-success {
  text-align: center;
  padding: 24px 0 8px;
}
.modal-success-badge {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: #F4FBF5;
  border: 2px solid #C8E6C9;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--xp-green-500);
  margin-bottom: 18px;
}
.modal-success-badge svg { width: 30px; height: 30px; }
.modal-success h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  color: var(--fg);
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.modal-success p {
  font-size: 15px;
  color: var(--fg-2);
  margin: 0;
}

@keyframes modal-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes modal-pop {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0)   scale(1); }
}

@media (max-width: 600px) {
  .modal-card { padding: 28px 22px 24px; border-radius: 20px; }
  .modal-title { font-size: 24px; }
  .form-row { grid-template-columns: 1fr; }
}

/* ═════════════════════ STICKY-STACKED SECTIONS ═════════════════════ */

/* Each major section pins to the top of the viewport and the next one
   slides up over it as you scroll — full-page-slide stacking effect.
   Earlier sections in DOM order are painted under later ones, so each
   slide visually replaces the previous when it scrolls into place. */
.hero,
.section,
.duo-section,
.teach-section,
.stats-section,
.testimonial-section,
.faq-section,
.cta-section {
  position: sticky;
  top: 0;
  min-height: 100vh;
  min-height: 100svh; /* mobile address-bar safe */
  isolation: isolate;
}

/* Each non-hero slide gets rounded top corners so it visibly looks
   like a card sliding up over the previous slide. The corners are only
   visible during the slide-in (once a slide is fully pinned, the next
   one covers its top), which is exactly when we want them. */
.section,
.duo-section,
.teach-section,
.stats-section,
.testimonial-section,
.faq-section,
.cta-section {
  border-top-left-radius: 32px;
  border-top-right-radius: 32px;
}

/* The footer is a normal-flow island at the end — no sticky pinning. */
.footer {
  position: relative;
  border-top-left-radius: 32px;
  border-top-right-radius: 32px;
  margin-top: -32px; /* tuck under the previous rounded slide cleanly */
}

/* Modal stays on top of all stacked slides. */
.modal-root { z-index: 1000; }

@media (prefers-reduced-motion: reduce) {
  .hero,
  .section,
  .duo-section,
  .teach-section,
  .stats-section,
  .testimonial-section,
  .faq-section,
  .cta-section {
    position: relative;
    min-height: 0;
    border-radius: 0;
  }
  .footer { margin-top: 0; border-radius: 0; }
}
