:root {
  --ink: #21334a;
  --muted: #64758b;
  --cream: #fffaf0;
  --yellow: #ffd45c;
  --blue: #59c6e8;
  --navy: #293b78;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #f9fbff;
  color: var(--ink);
  font-family: ui-rounded, "SF Pro Rounded", "Nunito", "Avenir Next", system-ui, sans-serif;
}
button, select { font: inherit; }
button { cursor: pointer; }

.app-shell { min-height: 100vh; overflow: hidden; position: relative; }
.sky-decor { position: absolute; z-index: 0; opacity: .75; filter: grayscale(1) brightness(0) invert(1); font-size: 90px; }
.sky-one { top: 155px; left: -25px; }
.sky-two { top: 250px; right: -20px; transform: scale(.72); }

.topbar {
  height: 84px; padding: 0 clamp(24px, 5vw, 76px); display: flex; align-items: center; justify-content: space-between;
  background: rgba(255,255,255,.88); border-bottom: 1px solid rgba(39,59,120,.08); backdrop-filter: blur(18px); position: relative; z-index: 10;
}
.brand, .footer-brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.brand-mark {
  width: 48px; height: 48px; display: grid; place-items: center; border-radius: 16px 16px 19px 19px;
  background: linear-gradient(145deg, #ffd65e, #ff9757); color: #55350d; font-weight: 1000; font-size: 18px; box-shadow: 0 7px 0 #e27743, 0 11px 20px rgba(255,141,64,.24);
}
.brand strong { display: block; font-size: 22px; letter-spacing: -.5px; }
.brand small { color: #7d8ba0; display: block; font-weight: 700; font-size: 11px; letter-spacing: .5px; }
.header-actions { display: flex; gap: 18px; align-items: center; }
.streak { color: #6c7284; background: #fff8e7; padding: 9px 14px; border-radius: 999px; font-size: 13px; }
.parent-button {
  border: 1px solid #dbe1ec; background: white; color: var(--navy); border-radius: 999px; padding: 11px 18px; font-size: 13px; font-weight: 800;
}

.hero {
  min-height: 470px; padding: 65px clamp(24px, 8vw, 130px) 85px; display: grid; grid-template-columns: 1.1fr .9fr;
  align-items: center; gap: 50px; position: relative; z-index: 1;
  background: radial-gradient(circle at 75% 45%, #d8f5ff 0 19%, transparent 46%), linear-gradient(150deg, #effbff 0%, #eef5ff 50%, #fff8dc 100%);
}
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 48px; background:
  radial-gradient(55px 40px at 35px 0, transparent 98%, #fff 100%) repeat-x; background-size: 70px 48px;
}
.eyebrow { color: #fb7e55; text-transform: uppercase; letter-spacing: 2.2px; font-size: 12px; font-weight: 900; margin: 0 0 13px; }
.hero h1 { font-size: clamp(48px, 6.2vw, 82px); line-height: .96; letter-spacing: -4px; margin: 0; color: #293b78; }
.hero h1 span { color: #ef6b5b; }
.intro { font-size: 18px; max-width: 620px; line-height: 1.65; color: #61718a; margin: 25px 0 24px; }
.mini-benefits { display: flex; gap: 9px; flex-wrap: wrap; }
.mini-benefits span { padding: 9px 12px; border-radius: 999px; background: rgba(255,255,255,.75); color: #52647c; font-size: 12px; font-weight: 800; box-shadow: 0 5px 15px rgba(70,102,150,.08); }

.hero-world { height: 340px; max-width: 500px; position: relative; margin-inline: auto; width: 100%; }
.globe {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); width: 260px; height: 260px; border-radius: 50%;
  background: linear-gradient(145deg,#78ddf3,#49b7e1); display: grid; place-items: center; font-size: 155px;
  box-shadow: inset -20px -20px 0 rgba(37,102,189,.1), 0 25px 55px rgba(42,153,199,.23);
}
.mascot-bubble {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-52%); font-size: 138px; filter: drop-shadow(0 14px 2px rgba(23,50,82,.15));
  animation: float 3s ease-in-out infinite;
}
.orbit { position: absolute; left: 50%; top: 50%; border: 2px dashed rgba(70,120,183,.25); border-radius: 50%; transform: translate(-50%,-50%); animation: spin 18s linear infinite; }
.orbit span { position: absolute; padding: 8px 12px; background: white; border-radius: 14px; box-shadow: 0 7px 15px rgba(35,67,109,.13); font-weight: 900; color: #405887; }
.orbit-one { width: 335px; height: 335px; }.orbit-one span { left: -18px; top: 70px; }
.orbit-two { width: 405px; height: 285px; animation-direction: reverse; }.orbit-two span { right: -15px; top: 38px; }
.orbit-three { width: 430px; height: 210px; }.orbit-three span { left: 110px; bottom: -18px; }
@keyframes spin { to { transform: translate(-50%,-50%) rotate(360deg); } }
@keyframes float { 50% { transform: translate(-50%,-56%); } }

.studio {
  position: relative; z-index: 3; max-width: 1220px; margin: -48px auto 90px; padding: 24px; display: grid; grid-template-columns: 385px 1fr; gap: 24px;
}
.chooser, .lesson-card { border-radius: 32px; background: white; border: 1px solid #e9edf4; box-shadow: 0 22px 60px rgba(43,67,103,.13); }
.chooser { padding: 26px; }
.section-heading { display: flex; gap: 12px; align-items: center; margin-bottom: 18px; }
.section-heading .number { width: 34px; height: 34px; border-radius: 12px; display: grid; place-items: center; background: #fff1c9; color: #c7752d; font-weight: 1000; box-shadow: inset 0 -3px rgba(230,159,64,.14); }
.section-heading p { margin: 0 0 1px; text-transform: uppercase; color: #9aa6b4; font-weight: 900; font-size: 9px; letter-spacing: 1.3px; }
.section-heading h2 { margin: 0; font-size: 18px; letter-spacing: -.3px; }
.animal-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; }
.animal-card {
  min-height: 125px; border: 2px solid #edf0f5; border-radius: 19px; background: #fbfcff; padding: 12px 8px; text-align: center; position: relative; color: var(--ink);
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.animal-card:nth-child(5) { grid-column: 1/-1; min-height: 112px; }
.animal-card:hover { transform: translateY(-3px); border-color: var(--pet-color); box-shadow: 0 10px 20px color-mix(in srgb, var(--pet-color) 24%, transparent); }
.animal-card.selected { background: color-mix(in srgb, var(--pet-color) 9%, white); border-color: var(--pet-color); box-shadow: 0 8px 20px color-mix(in srgb, var(--pet-color) 22%, transparent); }
.animal-card i { display: none; position: absolute; right: 8px; top: 8px; width: 21px; height: 21px; border-radius: 50%; background: var(--pet-color); color: white; font-style: normal; font-size: 13px; place-items: center; }
.animal-card.selected i { display: grid; }
.animal-emoji { display: block; font-size: 48px; line-height: 1; margin-bottom: 5px; filter: drop-shadow(0 5px 1px rgba(42,52,76,.11)); }
.animal-card strong { display: block; font-size: 13px; }.animal-card small { display: block; color: #8b98a8; font-size: 9px; margin-top: 2px; }
.language-heading { margin-top: 28px; }
.language-picker { position: relative; }
.language-current {
  width: 100%; border: 2px solid #e6eaf1; border-radius: 16px; background: white; padding: 12px 14px; display: flex; align-items: center; gap: 11px; color: var(--ink);
}
.language-current span { font-size: 24px; }.language-current strong { flex: 1; text-align: left; }.language-current i { font-style: normal; font-size: 20px; }
.language-menu { position: absolute; z-index: 20; bottom: 58px; left: 0; right: 0; padding: 8px; background: white; border: 1px solid #e3e7ee; border-radius: 18px; box-shadow: 0 15px 40px rgba(31,51,80,.2); max-height: 300px; overflow: auto; }
.language-menu button { width: 100%; border: 0; background: transparent; display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 11px; text-align: left; color: var(--ink); font-weight: 700; }
.language-menu button:hover,.language-menu button.active { background: #f1f7ff; }
.language-menu button span { font-size: 20px; }.language-menu button i { margin-left: auto; color: #38a276; }

.lesson-card { padding: 0 34px 26px; overflow: hidden; position: relative; }
.lesson-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 190px; background: linear-gradient(135deg, color-mix(in srgb, var(--pet-color) 18%, white), #effaff); z-index: 0; }
.lesson-topline { position: relative; z-index: 2; margin: 0 -34px; padding: 18px 28px; border-bottom: 1px solid rgba(69,80,105,.07); display: flex; justify-content: space-between; color: #697990; font-size: 11px; text-transform: uppercase; letter-spacing: 1px; font-weight: 900; }
.stars { display: flex; gap: 4px; font-size: 18px; color: #d8dde6; line-height: 1; }
.stars .earned { color: #ffc940; filter: drop-shadow(0 2px 2px rgba(215,143,32,.25)); }
.teacher-scene { height: 155px; position: relative; display: flex; align-items: center; justify-content: center; gap: 30px; }
.teacher { align-self: flex-end; position: relative; z-index: 2; width: 155px; height: 145px; display: grid; place-items: center; }
.teacher-emoji { font-size: 115px; position: relative; z-index: 1; filter: drop-shadow(0 9px 1px rgba(40,59,80,.13)); transform-origin: bottom; }
.teacher.talking .teacher-emoji { animation: chatter .45s ease-in-out infinite alternate; }
.teacher-shadow { position: absolute; width: 110px; height: 18px; background: rgba(37,54,80,.15); border-radius: 50%; bottom: 0; filter: blur(3px); }
@keyframes chatter { to { transform: rotate(3deg) scale(1.04); } }
.speech-bubble { position: relative; z-index: 2; background: white; border-radius: 20px; padding: 15px 19px; box-shadow: 0 10px 28px rgba(54,78,109,.12); max-width: 270px; }
.speech-bubble::before { content: ""; position: absolute; left: -14px; bottom: 21px; border: 8px solid transparent; border-right-color: white; }
.speech-bubble small { color: #ef725b; font-weight: 900; }.speech-bubble p { margin: 5px 0 0; font-size: 14px; font-weight: 800; }
.word-card { position: relative; z-index: 3; max-width: 520px; margin: 0 auto; padding: 23px 28px; border-radius: 26px; background: #fff; border: 2px solid color-mix(in srgb, var(--pet-color) 25%, #e5eaf1); text-align: center; box-shadow: 0 14px 35px rgba(46,67,100,.1); }
.word-label { color: #8a97a8; text-transform: uppercase; letter-spacing: 1.2px; font-size: 10px; font-weight: 900; margin: 0 0 4px; }
.word-card h3 { margin: 2px 0 0; color: var(--navy); font-size: clamp(35px,4vw,53px); line-height: 1.05; letter-spacing: -1.5px; }
.phonetic { margin: 7px auto 0; display: inline-block; border-radius: 999px; padding: 5px 11px; background: #fff5d8; color: #b97332; font-size: 12px; font-weight: 800; }
.meaning { font-weight: 900; margin: 13px 0 3px; }.example { margin: 0 0 16px; color: #7b899c; font-size: 13px; }
.sound-button { position: relative; border: 0; border-radius: 999px; padding: 12px 23px; background: var(--pet-color); color: white; font-weight: 900; display: inline-flex; gap: 9px; align-items: center; box-shadow: 0 7px 0 color-mix(in srgb, var(--pet-color) 75%, #333), 0 11px 20px color-mix(in srgb, var(--pet-color) 28%, transparent); }
.sound-button:active { transform: translateY(5px); box-shadow: 0 2px 0 color-mix(in srgb, var(--pet-color) 75%, #333); }
.sound-button.playing i { display: block; position: absolute; inset: -7px; border: 2px solid var(--pet-color); border-radius: 999px; animation: pulse 1s infinite; }
@keyframes pulse { to { transform: scale(1.12); opacity: 0; } }
.practice-row { display: flex; justify-content: center; gap: 12px; margin-top: 20px; }
.practice-button,.next-button { border: 2px solid #e5e9f0; border-radius: 15px; padding: 12px 18px; background: white; color: var(--ink); font-size: 13px; font-weight: 900; }
.practice-button:hover { border-color: #ef7b63; color: #d75b46; }.next-button { background: #293b78; border-color: #293b78; color: white; }
.feedback { text-align: center; color: #6d7e92; min-height: 21px; font-size: 12px; font-weight: 700; margin: 13px 0 4px; }
.lesson-dots { display: flex; justify-content: center; gap: 5px; }.lesson-dots span { width: 6px; height: 6px; border-radius: 50%; background: #d8dde7; }.lesson-dots span.active { width: 18px; border-radius: 9px; background: var(--pet-color); }

.journey { max-width: 1120px; margin: 0 auto; padding: 0 24px 90px; text-align: center; }
.journey h2 { font-size: clamp(32px,4vw,48px); color: var(--navy); margin: 0 0 32px; letter-spacing: -1.5px; }
.journey-cards { display: grid; grid-template-columns: repeat(4,1fr); gap: 15px; }
.journey-cards article { padding: 26px 12px; border-radius: 25px; background: white; border: 1px solid #e9edf4; box-shadow: 0 12px 30px rgba(50,74,108,.08); }
.journey-cards article:nth-child(1) { background: #fff7dc; }.journey-cards article:nth-child(2) { background: #eefaff; }.journey-cards article:nth-child(3) { background: #fff0ee; }.journey-cards article:nth-child(4) { background: #f3eeff; }
.journey-cards span { display: block; font-size: 42px; margin-bottom: 8px; }.journey-cards strong { display: block; font-size: 16px; }.journey-cards small { color: #8492a3; font-size: 11px; }

.learning-loop {
  max-width: 1120px; margin: 0 auto 90px; padding: 58px; border-radius: 38px; display: grid; grid-template-columns: .9fr 1.1fr; gap: 70px; align-items: center;
  background: linear-gradient(145deg,#213769,#315593); color: white; box-shadow: 0 25px 60px rgba(31,52,98,.2); position: relative; overflow: hidden;
}
.learning-loop::after { content: "竹"; position: absolute; right: -25px; bottom: -80px; color: rgba(255,255,255,.035); font-size: 260px; font-weight: 900; }
.loop-copy { position: relative; z-index: 1; }.loop-copy h2 { font-size: clamp(33px,4vw,50px); line-height: 1.04; letter-spacing: -2px; margin: 0 0 20px; }.loop-copy > p:not(.eyebrow) { color: #d6e1f8; line-height: 1.7; font-size: 14px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }.trust-row span { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.12); border-radius: 999px; padding: 8px 10px; font-size: 10px; font-weight: 800; }
.loop-steps { display: grid; gap: 10px; position: relative; z-index: 1; }.loop-steps article { display: grid; grid-template-columns: 26px 48px 1fr; align-items: center; gap: 12px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.12); border-radius: 19px; padding: 13px; }
.loop-steps b { color: #91a5d4; font-size: 11px; }.loop-steps span { font-size: 29px; }.loop-steps strong { display: block; }.loop-steps small { color: #c6d2ed; }

.audience { max-width: 1120px; margin: 0 auto 95px; padding: 0 24px; }.audience-heading { text-align: center; margin-bottom: 34px; }.audience-heading h2 { color: var(--navy); font-size: clamp(34px,4vw,50px); margin: 0; letter-spacing: -2px; }
.audience-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }.audience-grid article { border-radius: 30px; padding: 34px; border: 1px solid #e6ebf2; position: relative; overflow: hidden; }
.family-card { background: linear-gradient(145deg,#effbf5,#fff); }.school-card { background: linear-gradient(145deg,#eef6ff,#fff); }
.audience-icon { font-size: 43px; }.audience-grid article > p { text-transform: uppercase; letter-spacing: 1.5px; font-size: 10px; font-weight: 900; color: #779389; margin: 16px 0 4px; }.school-card > p { color: #668ab7 !important; }
.audience-grid h3 { font-size: 25px; color: var(--navy); margin: 0 0 18px; }.audience-grid ul { list-style: none; padding: 0; margin: 0 0 25px; color: #69788e; font-size: 13px; line-height: 2; }.audience-grid li::before { content: "✓"; color: #52ad7c; font-weight: 1000; margin-right: 9px; }
.audience-grid button { border: 0; border-radius: 999px; padding: 12px 18px; background: #263b73; color: white; font-weight: 900; font-size: 12px; }.audience-grid button span { margin-left: 5px; }

.cta-band { max-width: 1120px; margin: 0 auto 90px; padding: 34px 45px; border-radius: 32px; background: linear-gradient(135deg,#fff0c6,#ffe1ce); display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 28px; box-shadow: 0 16px 40px rgba(132,89,42,.1); }
.cta-panda { font-size: 72px; filter: drop-shadow(0 8px 1px rgba(73,58,44,.12)); }.cta-band h2 { color: var(--navy); font-size: 26px; margin: 0; }.cta-band .eyebrow { margin-bottom: 5px; }.cta-band a { color: white; background: #ec6e57; border-radius: 999px; padding: 14px 20px; text-decoration: none; font-size: 12px; font-weight: 900; white-space: nowrap; box-shadow: 0 7px 0 #c34f3b; }
footer { background: #26356a; color: white; padding: 38px clamp(24px,6vw,80px); display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 14px; }
.footer-brand .brand-mark { width: 38px; height: 38px; border-radius: 13px; font-size: 14px; }.footer-brand strong { font-size: 18px; }
footer p { margin: 0; color: #d4daf3; font-size: 13px; } footer small { grid-column: 2; color: #9faad4; font-size: 10px; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 45px; }.hero-copy { z-index: 2; }.intro { margin-inline: auto; }.mini-benefits { justify-content: center; }.hero-world { height: 300px; }
  .studio { grid-template-columns: 1fr; margin-top: -25px; }.animal-grid { grid-template-columns: repeat(5,1fr); }.animal-card:nth-child(5) { grid-column: auto; }.animal-card { min-height: 115px; }
  .journey-cards { grid-template-columns: repeat(2,1fr); }
  .learning-loop { margin-inline: 24px; grid-template-columns: 1fr; gap: 35px; }
}
@media (max-width: 620px) {
  .topbar { height: 70px; padding: 0 15px; }.brand-mark { width: 41px; height: 41px; border-radius: 13px; }.brand strong { font-size: 18px; }.brand small,.streak { display: none; }.parent-button { padding: 9px 12px; font-size: 11px; }
  .hero { padding: 45px 18px 82px; min-height: 620px; gap: 10px; }.hero h1 { font-size: 47px; letter-spacing: -2.5px; }.intro { font-size: 15px; margin: 18px auto; }.mini-benefits span { font-size: 10px; }
  .hero-world { height: 245px; }.globe { width: 180px; height: 180px; font-size: 108px; }.mascot-bubble { font-size: 95px; }.orbit-one { width: 240px; height: 240px; }.orbit-two { width: 285px; height: 205px; }.orbit-three { width: 300px; height: 155px; }.orbit span { font-size: 10px; padding: 6px 8px; }
  .studio { padding: 12px; margin-bottom: 62px; }.chooser,.lesson-card { border-radius: 25px; }.chooser { padding: 20px 16px; }.animal-grid { grid-template-columns: repeat(3,1fr); }.animal-card:nth-child(4),.animal-card:nth-child(5) { grid-column: auto; }.animal-card:nth-child(5) { grid-column: 2; }.animal-card { min-height: 108px; padding: 10px 4px; }.animal-emoji { font-size: 43px; }.animal-card small { display: none; }
  .lesson-card { padding: 0 15px 22px; }.lesson-topline { margin: 0 -15px; padding: 14px 15px; font-size: 8px; }.stars { font-size: 15px; }.teacher-scene { height: 140px; gap: 4px; }.teacher { width: 120px; }.teacher-emoji { font-size: 91px; }.speech-bubble { padding: 12px; max-width: 190px; }.speech-bubble p { font-size: 12px; }.speech-bubble small { font-size: 10px; }
  .word-card { padding: 20px 14px; }.word-card h3 { font-size: 39px; }.practice-row { display: grid; grid-template-columns: 1fr 1fr; }.practice-button,.next-button { padding: 11px 7px; }
  .journey { padding-bottom: 60px; }.journey-cards { grid-template-columns: 1fr 1fr; }.journey-cards article { padding: 20px 8px; }.journey-cards span { font-size: 34px; }
  .learning-loop { margin: 0 12px 62px; padding: 32px 22px; border-radius: 28px; }.loop-copy h2 { font-size: 35px; }.loop-steps article { grid-template-columns: 20px 40px 1fr; }.loop-steps small { font-size: 10px; }
  .audience { padding: 0 12px; margin-bottom: 62px; }.audience-grid { grid-template-columns: 1fr; }.audience-grid article { padding: 26px 22px; }.audience-heading h2 { font-size: 36px; }
  .cta-band { margin: 0 12px 62px; padding: 27px 20px; grid-template-columns: auto 1fr; gap: 15px; }.cta-panda { font-size: 55px; }.cta-band h2 { font-size: 19px; }.cta-band a { grid-column: 1/-1; text-align: center; }
  footer { grid-template-columns: 1fr; text-align: center; justify-items: center; } footer small { grid-column: 1; }
}
.main-nav { display:flex; align-items:center; gap:clamp(14px,2vw,28px); }
.main-nav a { color:#5c6d82; text-decoration:none; font-size:11px; font-weight:900; white-space:nowrap; }
.main-nav a:hover { color:#ef6b5b; }
.header-cta,.primary-action { color:#fff; text-decoration:none; font-weight:900; font-size:12px; padding:13px 18px; border-radius:999px; background:linear-gradient(135deg,#ef6b5b,#ff9c50); box-shadow:0 9px 20px rgba(239,107,91,.22); white-space:nowrap; }
.brand-mark { font-size:15px; font-weight:1000; letter-spacing:-1px; }
.hero { min-height:620px; }
.hero-actions { display:flex; align-items:center; gap:20px; margin:0 0 24px; }
.primary-action { padding:16px 22px; font-size:13px; }
.text-action { color:#293b78; font-size:12px; font-weight:900; text-underline-offset:4px; }
.orbit span { font-size:44px; background:transparent; box-shadow:none; }
.mascot-bubble { width:auto; min-width:90px; padding:0 17px; border-radius:999px; font-size:15px; font-weight:950; color:#ef6b5b; }
.portal-section { padding:100px clamp(24px,7vw,110px); background:#fff; }
.portal-heading { max-width:770px; margin:0 auto 38px; text-align:center; }
.portal-heading h2,.studio-title h2,.safety-section h2 { color:#293b78; font-size:clamp(35px,4vw,56px); line-height:1.05; letter-spacing:-2px; margin:0 0 15px; }
.portal-heading>p:last-child,.studio-title>p:last-child { color:#64758b; line-height:1.7; }
.portal-tabs { max-width:820px; margin:0 auto 24px; padding:7px; border-radius:25px; background:#eef4fa; display:grid; grid-template-columns:repeat(3,1fr); gap:6px; }
.portal-tabs button { border:0; background:transparent; color:#75869a; border-radius:19px; padding:13px; display:grid; grid-template-columns:auto auto; justify-content:center; align-items:center; column-gap:8px; }
.portal-tabs button>span { grid-row:span 2; font-size:24px; }.portal-tabs b { font-size:12px; text-align:left; }.portal-tabs small { font-size:9px; font-weight:800; text-align:left; }
.portal-tabs button.active { color:#293b78; background:#fff; box-shadow:0 8px 20px rgba(44,65,99,.1); }
.portal-preview { max-width:1160px; min-height:320px; margin:auto; border-radius:34px; padding:clamp(30px,5vw,60px); display:grid; grid-template-columns:.9fr 1.1fr; align-items:center; gap:42px; box-shadow:0 24px 55px rgba(30,54,86,.12); }
.portal-preview.kids { background:linear-gradient(135deg,#293f82,#5269bd); color:#fff; }.portal-preview.parents { background:linear-gradient(135deg,#fff2d6,#ffe3d7); }.portal-preview.teachers { background:linear-gradient(135deg,#dff6ed,#dcf1fb); }
.portal-copy>span { display:inline-block; font-size:9px; text-transform:uppercase; letter-spacing:1.6px; font-weight:950; opacity:.72; margin-bottom:11px; }
.portal-copy h3 { font-size:clamp(29px,3.1vw,45px); line-height:1.04; letter-spacing:-1.5px; margin:0 0 14px; }.portal-copy p { line-height:1.65; opacity:.78; }
.portal-copy a,.portal-copy button { border:0; display:inline-block; text-decoration:none; margin-top:8px; padding:13px 18px; border-radius:999px; background:#ffd45c; color:#293b78; font-size:11px; font-weight:950; }
.portal-card { background:rgba(255,255,255,.96); color:#21334a; border-radius:25px; padding:25px; box-shadow:0 15px 35px rgba(25,45,85,.18); }
.kid-card { display:flex; align-items:center; gap:20px; }.kid-card>b { width:120px; height:120px; display:grid; place-items:center; background:#eaf8ff; border-radius:33px; font-size:82px; }
.kid-card small,.kid-card strong,.kid-card span,.class-card small,.class-card strong,.class-card span { display:block; }.kid-card small,.class-card small { color:#8293a6; font-size:9px; text-transform:uppercase; letter-spacing:1.2px; font-weight:900; }
.kid-card strong,.class-card strong { color:#293b78; font-size:20px; margin:8px 0 15px; }.kid-card span,.class-card span { color:#6f8194; font-size:10px; font-weight:800; }
.metric-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; }.metric-grid article { background:rgba(255,255,255,.86); border-radius:21px; padding:24px 17px; }
.metric-grid small,.metric-grid strong,.metric-grid span { display:block; }.metric-grid small { color:#9a806d; font-size:8px; text-transform:uppercase; letter-spacing:1px; font-weight:900; }.metric-grid strong { color:#8a5548; font-size:29px; margin:8px 0; }.metric-grid span { color:#887b72; font-size:9px; }
.class-card i { display:block; height:11px; border-radius:999px; background:#e4eeeb; margin:20px 0 16px; overflow:hidden; }.class-card i b { display:block; width:82%; height:100%; background:#65b687; }.class-card div { font-size:27px; letter-spacing:3px; }
.studio-title { max-width:750px; margin:85px auto 40px; text-align:center; padding:0 20px; }.studio { margin-top:0; }
.safety-section { padding:80px clamp(24px,8vw,130px); background:#293b78; color:#fff; display:grid; grid-template-columns:auto 1fr .8fr; align-items:center; gap:30px; }
.safety-section h2 { color:#fff; margin-bottom:8px; }.safety-section p:not(.eyebrow) { margin:0; opacity:.72; line-height:1.6; }.safety-mark { font-size:58px; width:108px; height:108px; display:grid; place-items:center; border-radius:33px; background:rgba(255,255,255,.08); }
.safety-points { display:grid; grid-template-columns:1fr 1fr; gap:9px; }.safety-points span { background:rgba(255,255,255,.09); border-radius:13px; padding:12px; font-size:9px; font-weight:850; }
@media(max-width:1000px){.main-nav{display:none}.portal-preview{grid-template-columns:1fr}.safety-section{grid-template-columns:auto 1fr}.safety-points{grid-column:span 2}}
@media(max-width:620px){
  .header-cta{padding:10px 11px;font-size:9px}.hero-actions{justify-content:center}.portal-section{padding:70px 14px}.portal-heading h2,.studio-title h2,.safety-section h2{font-size:35px;letter-spacing:-1.4px}
  .portal-tabs{padding:5px;gap:3px}.portal-tabs button{display:flex;flex-direction:column;padding:9px 4px}.portal-tabs button>span{font-size:21px}.portal-tabs small{display:none}.portal-tabs b{font-size:9px;text-align:center}
  .portal-preview{padding:28px 18px;border-radius:27px;gap:24px}.kid-card{padding:16px}.kid-card>b{width:78px;height:78px;font-size:53px;border-radius:23px}.kid-card strong{font-size:14px}.metric-grid{grid-template-columns:1fr}.metric-grid article{padding:17px}
  .studio-title{margin-top:65px}.safety-section{padding:65px 20px;grid-template-columns:1fr;text-align:center}.safety-mark{margin:auto}.safety-points{grid-column:auto}
}
@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}

.admin-nav-button {
  border: 0;
  background: transparent;
  color: #5c6d82;
  font-size: 11px;
  font-weight: 900;
  padding: 0;
}
.admin-nav-button:hover { color: #ef6b5b; }

.language-picker-static {
  display: grid;
  gap: 7px;
  color: #7d8ba0;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.language-picker-static select {
  width: 100%;
  border: 2px solid #e5eaf1;
  border-radius: 16px;
  background: white;
  color: #293b78;
  padding: 15px 16px;
  font-size: 14px;
  font-weight: 850;
  text-transform: none;
  letter-spacing: 0;
}

.ai-chat {
  max-width: 520px;
  margin: 24px auto 0;
  padding: 21px;
  border: 1px solid #e2e9f2;
  border-radius: 22px;
  background: linear-gradient(145deg, #f7fbff, #fffdf8);
}
.ai-chat h3 { margin: -7px 0 14px; color: #293b78; }
.ai-chat form label { display: block; color: #77879a; font-size: 10px; font-weight: 900; margin-bottom: 6px; text-transform: uppercase; letter-spacing: 1px; }
.ai-chat form > div { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.ai-chat input { min-width: 0; border: 1px solid #d9e1ec; border-radius: 13px; padding: 12px 13px; color: #21334a; background: white; }
.ai-chat button { border: 0; border-radius: 13px; padding: 0 17px; background: #293b78; color: white; font-weight: 900; }
.ai-chat > p:last-child { min-height: 35px; margin: 13px 0 0; color: #6d7e92; font-size: 11px; line-height: 1.55; }

.settings-gear {
  position: fixed;
  z-index: 40;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  width: 53px;
  height: 53px;
  border: 1px solid rgba(255,255,255,.65);
  border-radius: 50%;
  background: linear-gradient(145deg, #293b78, #425da8);
  color: #ffd45c;
  font-size: 21px;
  box-shadow: 0 13px 30px rgba(31,50,100,.32);
}
.settings-gear:hover { transform: rotate(18deg) scale(1.04); }
.settings-overlay[hidden], .settings-lock[hidden], .settings-content[hidden] { display: none !important; }
.settings-overlay {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(20,31,58,.68);
  backdrop-filter: blur(10px);
}
body.settings-open { overflow: hidden; }
.settings-panel {
  width: min(760px, 100%);
  max-height: min(880px, calc(100dvh - 30px));
  overflow: auto;
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 30px;
  background: #fff;
  color: #21334a;
  box-shadow: 0 30px 90px rgba(12,24,58,.35);
}
.settings-panel > header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 26px;
  background: linear-gradient(135deg, #293b78, #4059a1);
  color: white;
}
.settings-panel > header p { margin: 0 0 3px; color: #ffd45c; font-size: 9px; font-weight: 900; letter-spacing: 1.7px; text-transform: uppercase; }
.settings-panel > header h2 { margin: 0; font-size: 22px; }
.settings-close { width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; background: rgba(255,255,255,.1); color: white; font-size: 25px; }
.settings-lock { padding: 54px 28px 60px; text-align: center; }
.settings-lock > span { display: block; font-size: 46px; }
.settings-lock h3 { color: #293b78; font-size: 27px; margin: 12px 0 8px; }
.settings-lock > p { max-width: 520px; margin: 0 auto 24px; color: #6c7d91; line-height: 1.6; }
.settings-lock form { max-width: 430px; margin: auto; text-align: left; }
.settings-lock form > input { margin-bottom: 14px; }
.settings-lock label, .settings-content label { display: grid; gap: 7px; color: #66778c; font-size: 10px; font-weight: 900; letter-spacing: .7px; text-transform: uppercase; }
.settings-lock form > div { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.settings-lock input, .settings-content input, .settings-content select {
  min-width: 0;
  width: 100%;
  border: 1px solid #dce4ef;
  border-radius: 13px;
  background: #f9fbfe;
  color: #243752;
  padding: 12px 13px;
  font-size: 14px;
  text-transform: none;
  letter-spacing: 0;
}
.settings-lock button, .connection-row button, .save-settings, .secondary-setting {
  border: 0;
  border-radius: 13px;
  padding: 12px 18px;
  background: #293b78;
  color: white;
  font-weight: 900;
}
#unlockStatus { display: block; min-height: 18px; margin-top: 8px; color: #d45f51; text-align: center; }
.settings-content > section { padding: 25px 27px; border-bottom: 1px solid #e9eef4; }
.settings-content h3 { color: #293b78; margin: 0 0 16px; font-size: 20px; }
.settings-kicker { margin: 0 0 5px; color: #ef6b5b; font-size: 9px; font-weight: 950; letter-spacing: 1.4px; text-transform: uppercase; }
.settings-help, .settings-note { color: #748398; font-size: 12px; line-height: 1.6; }
.support-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.support-grid label {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 12px;
  border: 1px solid #e1e7ef;
  border-radius: 13px;
  background: #f9fbfe;
  color: #53677d;
  font-size: 10px;
  line-height: 1.35;
  text-transform: none;
  letter-spacing: 0;
}
.support-grid input { width: 17px; height: 17px; flex: 0 0 auto; accent-color: #293b78; }
.settings-content section > label + label { margin-top: 13px; }
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.connection-row { display: flex; align-items: center; gap: 13px; margin-top: 16px; }
.connection-row span { color: #7b899b; font-size: 11px; font-weight: 800; }
.connection-row .success { color: #319267; }
.connection-row .error { color: #d45f51; }
.settings-content > footer { display: flex; justify-content: space-between; padding: 20px 27px 25px; background: #f7f9fc; }
.secondary-setting { background: white; color: #53677d; border: 1px solid #dce4ef; }
.save-settings { background: linear-gradient(135deg, #ef6b5b, #ff9c50); }

@media (max-width: 620px) {
  .admin-nav-button { display: none; }
  .ai-chat { padding: 17px 13px; }
  .settings-overlay { align-items: end; padding: 0; }
  .settings-panel { max-height: 92dvh; border-radius: 26px 26px 0 0; }
  .settings-grid,.support-grid { grid-template-columns: 1fr; }
  .settings-content > section { padding: 22px 18px; }
  .settings-content > footer { padding: 17px 18px 22px; gap: 10px; }
  .save-settings { flex: 1; }
}
