/* Steady Learners website: the app's look (Nunito, the brand indigo and orange, soft cards). */
:root {
  --indigo: #4a55a2;
  --indigo-soft: #e8eaf6;
  --orange: #ff9f1c;
  --gold: #f2b33d;
  --ink: #2b2d42;
  --muted: #5b6275;
  --bg: #f9f9fb;
  --card: #ffffff;
  --border: #e2e8f0;
  --success: #2d936c;
  --error: #c0392b;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body {
  font-family: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-weight: 600;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--indigo); }

/* The top bar: the brand, and links to the page's sections (desktop). */
.topbar {
  max-width: 1160px; margin: 0 auto; padding: 18px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--indigo); font-size: 20px; font-weight: 700; }
.brand img { border-radius: 10px; }
.brand b { color: var(--orange); font-weight: 800; }
.topbar nav { display: flex; align-items: center; gap: 26px; }
.topbar nav a { color: var(--muted); text-decoration: none; font-weight: 700; font-size: 16px; }
.topbar nav a:hover { color: var(--indigo); }
.topbar .nav-lang .short { display: none; }
.topbar .nav-beta { color: var(--indigo); border: 2px solid var(--indigo-soft); padding: 7px 14px; border-radius: 12px; }

/* Other pages (join, 404): one centred column. */
.hero { max-width: 640px; margin: 0 auto; padding: 56px 20px 32px; text-align: center; }
.app-icon { width: 148px; height: 148px; border-radius: 34px; box-shadow: 0 12px 32px rgba(74, 85, 162, 0.28); }
h1 { font-size: 44px; font-weight: 800; color: var(--indigo); margin: 22px 0 0; letter-spacing: -0.5px; }
h1 .accent { color: var(--orange); }
.tagline { font-size: 20px; font-weight: 700; color: var(--muted); margin: 8px 0 28px; }

/* The home page's hero: the promise and the launch list beside the app on a phone; one column on small screens. */
.hero.home {
  max-width: 1160px; padding: 40px 24px 72px; text-align: left;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 56px; align-items: center;
}
.eyebrow { margin: 0 0 14px; font-size: 14px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; color: var(--orange); }
.eyebrow.light { color: var(--gold); }
.home h1 { font-size: 60px; line-height: 1.05; margin: 0; letter-spacing: -1.5px; }
.home h1 .accent { display: block; }
.home .tagline { font-weight: 600; margin: 18px 0 30px; max-width: 540px; }
.lead { font-size: 18px; color: var(--muted); margin: 0 auto 28px; max-width: 560px; }
.home .stores { justify-content: flex-start; margin-top: 26px; }
.hero-art { position: relative; height: 600px; }
.hero-art.scene { height: 520px; }
.hero-art::before {
  content: ''; position: absolute; inset: 40px 0 20px 30px; border-radius: 48px;
  background: radial-gradient(circle at 30% 30%, #fff3dc 0, transparent 55%), linear-gradient(150deg, #e8eaf6, #dfe3f7);
}
.scene { height: 520px; }
.scene::before { inset: 30px 0 30px 0; border-radius: 50%; }
.scene .cast { position: absolute; bottom: 70px; }
.scene .star { width: 300px; left: 50%; margin-left: -150px; z-index: 2; }
.scene .side { width: 170px; }
.scene .left { left: 4%; }
.scene .right { right: 4%; }
.scene .bubble { position: absolute; top: 34px; left: 50%; transform: translateX(-10%); margin: 0; max-width: 260px; font-size: 19px; z-index: 3; }
.scene .bubble::before { left: 34px; bottom: -14px; border: 10px solid transparent; border-bottom: 0; border-top-color: #fff; }

.signup { background: var(--card); border: 1px solid var(--border); border-radius: 24px; padding: 24px; box-shadow: 0 10px 30px rgba(43, 45, 66, 0.08); }
.signup h2 { margin: 0; font-size: 24px; font-weight: 800; }
.signup h3 { margin: 0 0 12px; font-size: 20px; font-weight: 800; }
.signup p { margin: 6px 0 16px; color: var(--muted); }
form { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
input[type='email'] {
  flex: 1 1 240px; min-width: 0; font: inherit; font-size: 17px; padding: 14px 16px;
  border: 2px solid var(--border); border-radius: 14px; background: #fff; color: var(--ink);
}
input[type='email']:focus { outline: none; border-color: var(--indigo); }
button {
  flex: 0 0 auto; font: inherit; font-size: 17px; font-weight: 800; padding: 14px 24px;
  border: 0; border-radius: 14px; background: var(--indigo); color: #fff; cursor: pointer;
}
button:hover { filter: brightness(1.08); }
button:disabled { opacity: 0.6; cursor: default; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.message { min-height: 24px; margin: 12px 0 0 !important; font-weight: 700; }
.message.ok { color: var(--success); }
.message.error { color: var(--error); }
.signup.done form, .panel.done form { display: none; }
/* The sign-up card: two tabs — test it now (the beta) or wait for launch — each with its own form. */
.join { padding: 10px 10px 18px; }
.choose { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 4px; background: var(--indigo-soft); border-radius: 18px; }
.choose [role='tab'] {
  display: flex; flex-direction: column; align-items: center; gap: 0; padding: 10px 8px; border-radius: 14px;
  background: transparent; color: var(--indigo); font-size: 17px; line-height: 1.2;
}
.choose [role='tab'] small { font-size: 14px; font-weight: 800; color: var(--orange); }
.choose [role='tab'][aria-selected='true'] { background: #fff; box-shadow: 0 4px 12px rgba(43, 45, 66, 0.1); }
.choose [role='tab'][aria-selected='false'] { opacity: 0.75; }
.panel { padding: 4px 14px 0; scroll-margin-top: 120px; }
.panel > p:first-child { margin: 14px 0 14px; }
.panel button[type='submit'], #beta-confirm button { flex: 1 1 100%; background: var(--orange); color: var(--ink); }
#launch button[type='submit'] { flex: 0 0 auto; }
/* Tuck and friends (assets/cast, drawn with the picture books' art). */
.cast { display: block; height: auto; }
.hi { display: flex; align-items: flex-end; gap: 4px; }
.hi .cast { width: 120px; flex: 0 0 auto; }
.bubble {
  position: relative; margin: 0 0 70px; padding: 12px 16px; max-width: 230px; background: #fff; border-radius: 18px;
  font-weight: 800; color: var(--indigo); box-shadow: 0 8px 22px rgba(43, 45, 66, 0.12); line-height: 1.3;
}
.bubble::before {
  content: ''; position: absolute; left: -9px; bottom: 16px; border: 10px solid transparent; border-left: 0; border-right-color: #fff;
}
.hi-small { display: none; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes sway { 0%, 100% { transform: rotate(-2deg); } 50% { transform: rotate(2deg); } }
.bob { animation: bob 2.6s ease-in-out infinite; }
.cast-row figure .cast { animation: bob 2.8s ease-in-out infinite; transform-origin: 50% 100%; }
.cast-row figure:nth-child(2n) .cast { animation-name: sway; animation-duration: 3.2s; }
.cast-row figure:nth-child(3n) .cast { animation-delay: -1.1s; }
.cast-row figure:nth-child(4n+1) .cast { animation-delay: -0.5s; }
@media (prefers-reduced-motion: reduce) { .bob, .cast-row figure .cast { animation: none; } }

.meet, .how { max-width: 1160px; margin: 0 auto; padding: 64px 24px 16px; text-align: center; }
.meet h2, .how h2 { margin: 0; font-size: 36px; font-weight: 800; letter-spacing: -0.5px; color: var(--ink); }
.meet > p, .how > p { margin: 8px auto 24px; max-width: 600px; font-size: 18px; color: var(--muted); }
.cast-row { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 6px; }
.cast-row figure { margin: 0; width: 120px; }
.cast-row .cast { width: 110px; margin: 0 auto; }
.cast-row figcaption { font-weight: 800; color: var(--indigo); margin-top: -4px; }
.how { padding-bottom: 72px; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.steps article {
  position: relative; background: var(--card); border: 1px solid var(--border); border-radius: 24px; padding: 8px 22px 24px;
  box-shadow: 0 10px 30px rgba(43, 45, 66, 0.06);
}
.steps .cast { width: 130px; margin: 0 auto; }
.step-n {
  position: absolute; top: 16px; left: 16px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--orange); color: #fff; font-weight: 800;
}
.steps h3 { margin: 4px 0 4px; font-size: 21px; font-weight: 800; color: var(--indigo); }
.steps p { margin: 0; color: var(--muted); font-size: 17px; }

/* The beta tab: device choice and the fine print. */
.fine { font-size: 14px; margin: 12px 0 0 !important; }
.notice { background: #FFF5E0; color: #8A5A00 !important; border-radius: 12px; padding: 8px 12px; font-weight: 700; }
.platforms { flex: 1 1 100%; display: flex; gap: 10px; border: 0; margin: 0; padding: 0; flex-wrap: wrap; }
.platform {
  flex: 1 1 160px; display: flex; align-items: center; gap: 10px; padding: 12px 14px; cursor: pointer; text-align: left;
  border: 2px solid var(--border); border-radius: 14px; background: #fff; font-weight: 700;
}
.platform:has(input:checked) { border-color: var(--indigo); background: #F1F2FB; }
.platform.full { opacity: 0.55; cursor: default; }
.platform input { width: 20px; height: 20px; accent-color: var(--indigo); margin: 0; }
.platform small { display: block; font-weight: 600; color: var(--muted); font-size: 13px; }

.stores { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin: 28px 0 8px; }
.store {
  display: flex; align-items: center; gap: 10px; padding: 9px 18px 9px 14px; border-radius: 12px;
  background: #111; color: #fff; opacity: 0.85; cursor: default; user-select: none;
}
.store span { display: flex; flex-direction: column; text-align: left; font-size: 19px; font-weight: 800; line-height: 1.1; }
.store small { font-size: 11px; font-weight: 600; opacity: 0.85; }

/* The intro slides: one at a time on a phone (swipe, or the arrows); all five side by side on a wide screen. */
.tour { max-width: 1160px; margin: 0 auto; padding: 72px 0 56px; }
/* Section bands: full-width colour behind a centred section (the colour reaches the screen's edges). */
.tour { background: #eceefa; box-shadow: 0 0 0 100vmax #eceefa; clip-path: inset(0 -100vmax); }
.learn { background: #fff; box-shadow: 0 0 0 100vmax #fff; clip-path: inset(0 -100vmax); padding-bottom: 64px !important; }
.tour > h2, .learn h2, .faq h2 { margin: 0 0 28px; font-size: 36px; font-weight: 800; text-align: center; color: var(--ink); letter-spacing: -0.5px; }
.slides {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.slides::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; scroll-snap-align: center; padding: 8px 20px; text-align: center; }
.phone {
  position: relative; width: 260px; aspect-ratio: 9 / 19.5; margin: 0 auto 20px; border-radius: 34px;
  border: 8px solid var(--ink); background: var(--indigo-soft); overflow: hidden;
  box-shadow: 0 18px 40px rgba(43, 45, 66, 0.2);
}
.phone .art { position: absolute; inset: 0; margin: auto; width: 55%; }
.phone .shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slide h3 { margin: 0; font-size: 22px; font-weight: 800; color: var(--indigo); }
.slide p { margin: 6px auto 0; max-width: 420px; font-size: 16px; color: var(--muted); }
.tour-nav { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 18px; }
.arrow {
  flex: 0 0 auto; width: 44px; height: 44px; padding: 0; border-radius: 50%; font-size: 26px; line-height: 1;
  background: var(--card); color: var(--indigo); border: 2px solid var(--border);
}
.arrow:disabled { opacity: 0.35; }
.dots { display: flex; gap: 8px; }
.dots button {
  flex: 0 0 auto; width: 8px; height: 8px; padding: 0; border-radius: 4px; background: var(--border);
  transition: width 0.2s, background 0.2s;
}
.dots button[aria-current='true'] { width: 24px; background: var(--indigo); }

/* Social pages with the lesson videos. */
.follow { max-width: 760px; margin: 0 auto; padding: 56px 24px 8px; text-align: center; }
.follow h2 { margin: 0; font-size: 26px; font-weight: 800; color: var(--indigo); }
.follow p { margin: 6px 0 18px; color: var(--muted); }
.socials { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.social {
  display: flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 14px;
  font-weight: 800; color: #fff; text-decoration: none;
}
.social:hover { filter: brightness(1.08); }
.social.youtube { background: #ff0000; }
.social.tiktok { background: #111; }
.social.facebook { background: #1877f2; }

footer { text-align: center; padding: 28px 20px 40px; color: var(--muted); font-size: 14px; }
footer nav { display: flex; gap: 8px 18px; justify-content: center; flex-wrap: wrap; margin-bottom: 8px; }

/* Policy pages. */
.doc { max-width: 760px; margin: 0 auto; padding: 32px 20px 48px; }
.doc header { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.doc header img { width: 48px; height: 48px; border-radius: 12px; }
.doc header a { text-decoration: none; font-size: 22px; font-weight: 800; color: var(--indigo); }
.doc h1 { font-size: 34px; text-align: left; margin: 18px 0 4px; }
.doc h2 { font-size: 21px; margin: 28px 0 6px; color: var(--ink); }
.doc p, .doc li { color: var(--muted); }
.doc .updated { font-size: 14px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* The join page (join.html): a friend's code, big, tap to copy. */
.invite { margin-bottom: 8px; }
.code {
  display: inline-block; margin: 4px 0 0; padding: 14px 26px; font: 800 30px/1 Nunito, sans-serif; letter-spacing: 2px;
  color: var(--indigo); background: var(--indigo-soft); border: 2px dashed var(--indigo); border-radius: 16px; cursor: pointer;
}
a.store { text-decoration: none; color: inherit; }
a.store[href] { cursor: pointer; }
.open-app { margin: 4px 0 20px; font-weight: 700; }

/* What a child learns, and the parents' questions: real text, for parents and for search engines. */
.learn { max-width: 1160px; margin: 0 auto; padding: 64px 24px 8px; }
.faq { max-width: 760px; margin: 0 auto; padding: 56px 24px 8px; }
.learn > p { margin: -14px auto 28px; max-width: 640px; color: var(--muted); text-align: center; font-size: 18px; }
.subjects { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 900px; margin: 0 auto; }
.subjects article { display: flex; align-items: center; gap: 4px; background: var(--card); border: 1px solid var(--border); border-radius: 20px; padding: 10px 18px 10px 4px; box-shadow: 0 6px 18px rgba(43, 45, 66, 0.05); text-align: left; }
.subjects .cast { width: 92px; flex: 0 0 auto; }
.subjects h3 { margin: 0 0 4px; font-size: 19px; font-weight: 800; color: var(--indigo); }
.subjects p { margin: 0; color: var(--muted); font-size: 16px; }
.faq details { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 12px 16px; margin-bottom: 10px; }
.faq summary { font-weight: 800; cursor: pointer; }
.faq details p { margin: 8px 0 0; color: var(--muted); }
.message:empty { display: none; }

/* Screen sizes: last, so they win over the rules above. */
/* Wide screens: the three slides side by side, no swiping. */
@media (min-width: 1000px) {
  .slides { overflow: visible; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; padding: 0 40px; max-width: 980px; margin: 0 auto; }
  .slide { padding: 8px; }
  .slide .phone { width: 100%; max-width: 250px; }
  .tour-nav { display: none; }
}
/* Tablets and phones: one column. */
@media (max-width: 999px) {
  .hero.home { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 24px; text-align: center; }
  .home .tagline { margin-left: auto; margin-right: auto; }
  .home .stores { justify-content: center; }
  .hero-art { display: none; }
  .steps { grid-template-columns: minmax(0, 1fr); max-width: 460px; margin: 0 auto; gap: 12px; }
  .steps article { display: flex; align-items: center; gap: 6px; text-align: left; padding: 6px 18px 6px 6px; }
  .steps .cast { width: 92px; flex: 0 0 auto; margin: 0; }
  .step-n { top: 8px; left: 8px; width: 26px; height: 26px; font-size: 14px; }
  .steps h3 { font-size: 19px; }
  .steps p { font-size: 16px; }
  .hi-small { display: flex; justify-content: center; margin: 0 0 8px; }
  .hi-small .bubble { margin-bottom: 50px; text-align: left; }
  .topbar nav a:not(.nav-beta):not(.nav-lang) { display: none; }
  .topbar nav { gap: 14px; }
}
@media (max-width: 600px) {
  h1 { font-size: 36px; }
  .home h1 { font-size: 42px; }
  .topbar { padding: 14px 16px; }
  .topbar .nav-lang .long { display: none; }
  .topbar .nav-lang .short { display: inline; }
  .hero { padding-top: 40px; }
  .hero.home { padding: 16px 16px 48px; }
  .meet h2, .how h2 { font-size: 28px; }
  .meet, .how { padding: 48px 16px 8px; }
  .how { padding-bottom: 48px; }
  .cast-row figure { width: 84px; }
  .cast-row .cast { width: 80px; }
  .hi-small .cast { width: 96px; }
  .tour > h2, .learn h2, .faq h2 { font-size: 28px; }
  .subjects { grid-template-columns: 1fr; }
  button { flex: 1 1 100%; }
  .signup { padding: 20px 18px; }
}

.learn .subjects article { background: var(--bg); box-shadow: none; }
