/* ============================================================
   I Like Learning — design system shared with I Can Tell Time
   Palette pulled from the app itself: sky blue primary,
   cream-to-pale-blue backgrounds, unit accent colors from
   the in-app curriculum (mint, purple, amber, coral).
   ============================================================ */

:root {
  --cream: #FFF8EC;
  --cream-deep: #FDF2DB;
  --pale-blue: #EAF6FD;
  --white: #FFFFFF;

  --sky: #4FC3F7;
  --sky-dark: #2BA3DC;
  --sky-deep: #2196D9;

  --mint: #2FC596;
  --mint-dark: #23A37B;
  --purple: #9B7BE8;
  --purple-dark: #7E5DD1;
  --amber: #FFB300;
  --amber-dark: #DB9700;
  --coral: #FF7A6B;
  --coral-dark: #E55D4E;
  --yellow: #FFC93C;

  --navy: #29365C;
  --ink: #3C3C3C;
  --ink-soft: #777168;
  --line: #F0E7D6;

  --radius: 20px;
  --font-display: "Baloo 2", "Nunito", sans-serif;
  --font-body: "Nunito", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
}

h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; color: var(--ink); }
h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); font-weight: 800; letter-spacing: 0; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); font-weight: 800; }
h3 { font-size: 1.35rem; font-weight: 800; }
p  { line-height: 1.6; }
em { font-style: normal; color: var(--sky-deep); }

img { display: block; }
a { text-decoration: none; color: inherit; }

/* ---------------- Buttons (the chunky kind) ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  border: none;
  border-radius: 16px;
  cursor: pointer;
  transition: filter 0.15s, transform 0.05s;
  user-select: none;
  white-space: nowrap;
}
.btn:hover { filter: brightness(1.06); }
.btn:active { transform: translateY(4px); box-shadow: 0 0 0 transparent !important; }

.btn-big   { font-size: 1rem;   padding: 16px 30px; }
.btn-small { font-size: 0.82rem; padding: 10px 20px; }

.btn-sky   { background: var(--sky); color: #fff; box-shadow: 0 4px 0 var(--sky-dark); }
.btn-white { background: #fff; color: var(--sky-deep); box-shadow: 0 4px 0 #E2DCCB; border: 2px solid var(--line); }
.btn-navy  { background: var(--navy); color: #fff; box-shadow: 0 4px 0 #1A2440; }

.apple-glyph { width: 18px; height: 18px; margin-top: -2px; }

/* ---------------- Chips ---------------- */
.chip {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 1.5px;
  color: var(--sky-deep);
  background: rgba(79, 195, 247, 0.16);
  border-radius: 99px;
  padding: 7px 16px;
  margin-bottom: 18px;
}
.chip-mint  { color: var(--mint-dark); background: rgba(47, 197, 150, 0.14); }
.chip-white { color: #fff; background: rgba(255, 255, 255, 0.22); }

/* ---------------- Mascot images ---------------- */
.mascot { height: auto; }
.mascot-final {
  width: 168px;
  margin: 0 auto;
  padding: 22px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255,255,255,0.9), rgba(255,255,255,0.45) 60%, rgba(255,255,255,0));
  animation: bob 2.2s ease-in-out infinite;
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 248, 236, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--line);
}
.nav-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.brand-icon { width: 44px; height: 44px; object-fit: contain; }
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; color: var(--ink); white-space: nowrap; }
.nav-links { display: flex; gap: 24px; }
.nav-links a {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--ink-soft);
  transition: color 0.15s;
}
.nav-links a:hover, .nav-links a.on { color: var(--sky-deep); }

/* ============================================================
   HERO — full-bleed illustration with UI on top
   ============================================================ */
.hero {
  position: relative;
  min-height: clamp(480px, 70vh, 700px);
  padding: 8vh 24px 64px;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 28%, rgba(79,195,247,0.30), transparent 42%),
    radial-gradient(circle at 64% 92%, rgba(255,179,0,0.20), transparent 38%),
    radial-gradient(circle at 4% 96%, rgba(47,197,150,0.20), transparent 40%),
    radial-gradient(circle at 34% 6%, rgba(255,122,107,0.14), transparent 34%),
    linear-gradient(180deg, var(--pale-blue) 0%, var(--cream) 100%);
  display: flex;
  align-items: flex-start;
}
/* soft cream veil behind the copy so text stays readable over the sky */
.hero::before { content: none; }

.hero-inner {
  position: relative;
  max-width: 1140px;
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 48px;
}
.hero-copy { max-width: 580px; }

.hero-phone { display: flex; justify-content: flex-end; padding-right: 64px; }
.phone.phone-hero {
  width: 264px;
  transform: rotate(4deg);
  box-shadow: 0 30px 60px rgba(20, 48, 80, 0.38);
  animation: heroFloat 3.4s ease-in-out infinite;
}
@keyframes heroFloat {
  0%, 100% { transform: rotate(4deg) translateY(0); }
  50%      { transform: rotate(4deg) translateY(-9px); }
}

.hero-sub { font-size: 1.18rem; color: #4A5468; margin: 20px 0 30px; max-width: 33rem; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-note {
  display: inline-block;
  margin-top: 18px;
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--ink-soft);
  background: rgba(255, 251, 240, 0.85);
  border-radius: 99px;
  padding: 7px 16px;
}

/* rainbow letters in headline */
.rainbow i { font-style: normal; }
.rainbow i:nth-child(1) { color: var(--sky); }
.rainbow i:nth-child(2) { color: var(--mint); }
.rainbow i:nth-child(3) { color: var(--coral); }
.rainbow i:nth-child(4) { color: var(--amber); }

/* --- stats section --- */
.clock-section {
  background: var(--cream);
  padding: 72px 24px 0;
}
.stats-strip {
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #fff;
  border: 2px solid var(--line);
  border-bottom: none;
  border-radius: 28px 28px 0 0;
  overflow: hidden;
}
.stat {
  padding: 26px 12px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.stat + .stat { border-left: 2px solid var(--line); }
.stat-num { font-family: var(--font-display); font-weight: 800; font-size: 2.1rem; color: var(--ink); }
.stat-star { color: var(--yellow); font-size: 1.6rem; }
.stat-label { font-size: 0.85rem; font-weight: 800; color: var(--ink-soft); }

/* ============================================================
   LEARNING PATH
   ============================================================ */
.path-section { background: #fff; padding: 90px 24px 110px; border-top: 2px solid var(--line); }

.section-head { max-width: 720px; margin: 0 auto 64px; text-align: center; }
.section-head p { color: var(--ink-soft); font-size: 1.08rem; margin-top: 16px; }

@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }

/* ---- journey: vertical gradient line + unit cards ---- */
.journey { position: relative; max-width: 820px; margin: 0 auto; }
.journey-line {
  position: absolute;
  left: 30px;
  top: 44px;
  bottom: 44px;
  width: 4px;
  border-radius: 99px;
  background: linear-gradient(180deg,
    var(--sky) 0%, var(--mint) 28%, var(--purple) 52%, var(--amber) 76%, var(--coral) 100%);
  opacity: 0.55;
}

.unit-row {
  position: relative;
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 26px;
  align-items: center;
  padding: 13px 0;
}

.unit-medallion {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  color: #fff;
}
.m-sky    { background: var(--sky);    box-shadow: 0 0 0 6px #fff, 0 4px 0 6px rgba(43,163,220,0.4); }
.m-mint   { background: var(--mint);   box-shadow: 0 0 0 6px #fff, 0 4px 0 6px rgba(35,163,123,0.4); }
.m-purple { background: var(--purple); box-shadow: 0 0 0 6px #fff, 0 4px 0 6px rgba(126,93,209,0.4); }
.m-amber  { background: var(--amber);  box-shadow: 0 0 0 6px #fff, 0 4px 0 6px rgba(219,151,0,0.4); }
.m-coral  { background: var(--coral);  box-shadow: 0 0 0 6px #fff, 0 4px 0 6px rgba(229,93,78,0.4); }

.unit-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  background: var(--cream);
  border: 2px solid var(--line);
  border-radius: 22px;
  padding: 26px 30px;
  box-shadow: 0 4px 0 #EDE3CC;
  transition: transform 0.15s;
}
.unit-card:hover { transform: translateY(-3px); }
.unit-body p { color: var(--ink-soft); margin-top: 6px; font-size: 1rem; max-width: 44rem; }

.unit-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.unit-tag, .pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  border-radius: 8px;
  padding: 4px 10px;
}
.t-sky    { color: var(--sky-deep);    background: rgba(79,195,247,0.16); }
.t-mint   { color: var(--mint-dark);   background: rgba(47,197,150,0.14); }
.t-purple { color: var(--purple-dark); background: rgba(155,123,232,0.16); }
.t-amber  { color: var(--amber-dark);  background: rgba(255,179,0,0.16); }
.t-coral  { color: var(--coral-dark);  background: rgba(255,122,107,0.16); }

.pill-free { color: var(--mint-dark); background: rgba(47,197,150,0.14); }
.pill-premium { color: #9B958A; background: #F1EDE3; }
.pill svg { width: 11px; height: 11px; }

/* ============================================================
   MECHANICS + HOW IT WORKS
   ============================================================ */
.mech-section { padding: 90px 24px; background: var(--cream); }

.mech-grid {
  max-width: 1040px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.mech-card {
  background: #fff;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 6px 0 #EFE6D2;
  padding: 30px 22px;
  text-align: center;
  transition: transform 0.15s;
}
.mech-card:hover { transform: translateY(-5px); }
.mech-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.mech-icon svg { width: 30px; height: 30px; }
.ic-coral  { color: var(--coral-dark);  background: rgba(255,122,107,0.16); }
.ic-amber  { color: var(--amber-dark);  background: rgba(255,179,0,0.16); }
.ic-sky    { color: var(--sky-deep);    background: rgba(79,195,247,0.16); }
.ic-purple { color: var(--purple-dark); background: rgba(155,123,232,0.16); }
.mech-card p { color: var(--ink-soft); font-size: 0.95rem; margin-top: 8px; }

/* --- how it works --- */
.howit {
  max-width: 1040px;
  margin: 90px auto 0;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 64px;
  align-items: center;
}
.howit-copy h2 { margin-bottom: 28px; }
.steps { list-style: none; display: flex; flex-direction: column; gap: 22px; }
.steps li { display: flex; gap: 16px; align-items: flex-start; color: var(--ink-soft); line-height: 1.55; }
.steps strong { color: var(--ink); }
.step-num {
  flex: 0 0 40px;
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  color: #fff;
}
.n1 { background: var(--sky);    box-shadow: 0 3px 0 var(--sky-dark); }
.n2 { background: var(--mint);   box-shadow: 0 3px 0 var(--mint-dark); }
.n3 { background: var(--purple); box-shadow: 0 3px 0 var(--purple-dark); }

/* --- phone mockup with real app screenshot --- */
.phone {
  width: 290px;
  margin: 0 auto;
  background: var(--navy);
  border-radius: 46px;
  padding: 11px;
  box-shadow: 0 18px 40px rgba(41, 54, 92, 0.25);
  position: relative;
  transform: rotate(-3deg);
}
.phone-notch {
  position: absolute;
  top: 21px; left: 50%;
  transform: translateX(-50%);
  width: 92px; height: 24px;
  background: var(--navy);
  border-radius: 13px;
  z-index: 2;
}
.phone-shot { width: 100%; border-radius: 36px; }

/* ============================================================
   PARENTS
   ============================================================ */
.parents-section { background: #fff; border-top: 2px solid var(--line); padding: 90px 24px; }

.trust-grid {
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.trust-badge {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--cream);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  transition: transform 0.15s;
}
.trust-badge:hover { transform: rotate(-1deg) scale(1.02); }
.trust-ic {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.trust-ic svg { width: 22px; height: 22px; }
.ti-coral  { color: var(--coral-dark);  background: rgba(255,122,107,0.16); }
.ti-sky    { color: var(--sky-deep);    background: rgba(79,195,247,0.18); }
.ti-purple { color: var(--purple-dark); background: rgba(155,123,232,0.16); }
.ti-amber  { color: var(--amber-dark);  background: rgba(255,179,0,0.16); }
.ti-mint   { color: var(--mint-dark);   background: rgba(47,197,150,0.14); }
.ti-navy   { color: var(--navy);        background: rgba(41,54,92,0.1); }
.trust-badge strong { font-family: var(--font-display); font-size: 1.05rem; display: block; }
.trust-badge p { font-size: 0.9rem; color: var(--ink-soft); margin-top: 2px; }

.pricing-note {
  max-width: 720px;
  margin: 44px auto 0;
  text-align: center;
  background: rgba(79, 195, 247, 0.08);
  border: 2px dashed rgba(79, 195, 247, 0.45);
  border-radius: var(--radius);
  padding: 22px 28px;
  color: var(--ink-soft);
}
.pricing-note strong { color: var(--sky-deep); }

/* ============================================================
   TEACHERS
   ============================================================ */
.teachers-section { background: var(--navy); padding: 90px 24px; }
.teachers-inner {
  max-width: 1040px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}
.teachers-copy h2 { color: #fff; }
.teachers-copy p { color: #B9C3DC; margin: 18px 0 22px; font-size: 1.08rem; }
.teach-list { list-style: none; margin-bottom: 30px; display: flex; flex-direction: column; gap: 12px; }
.teach-list li { color: #DCE3F2; font-weight: 700; }
.teachers-section .btn-white { box-shadow: 0 4px 0 rgba(0,0,0,0.35); border: none; color: var(--navy); }

.classroom-art { border-radius: 24px; width: 100%; box-shadow: 0 10px 30px rgba(0,0,0,0.3); transform: rotate(2deg); }

/* ============================================================
   FINAL CTA
   ============================================================ */
.final-cta {
  background: linear-gradient(170deg, #6FD0F9 0%, var(--sky-deep) 80%);
  padding: 100px 24px;
  text-align: center;
}
.final-inner { max-width: 640px; margin: 0 auto; }
.final-cta h2 { color: #fff; font-size: clamp(2rem, 4.4vw, 3.1rem); text-shadow: 0 2px 0 rgba(0,0,0,0.08); margin: 22px 0 14px; }
.final-cta p { color: rgba(255,255,255,0.92); font-size: 1.12rem; margin-bottom: 32px; }
.final-note { margin-top: 18px; font-size: 0.9rem !important; font-weight: 800; }

/* ============================================================
   FOOTER (sitemap)
   ============================================================ */
.footer { background: #1F2A47; padding: 56px 24px 40px; }
.footer-inner { max-width: 1080px; margin: 0 auto; }
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 36px;
  margin-bottom: 28px;
  border-bottom: 1px solid #35466F;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  color: #fff;
  margin-bottom: 14px;
}
.footer-brand img { width: 40px; height: 40px; object-fit: contain; }
.footer-tag { color: #93A1C4; font-size: 0.92rem; line-height: 1.55; margin-bottom: 18px; max-width: 240px; }
.footer-col h4 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #6E7FA8;
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: #B4C0DC; font-weight: 700; font-size: 0.92rem; transition: color 0.15s; }
.footer-col a:hover { color: #fff; }
.footer-fine { color: #5C6B91; font-size: 0.85rem; text-align: center; }

/* ============================================================
   SUB-PAGES
   ============================================================ */
.page-hero {
  background: linear-gradient(180deg, var(--cream) 0%, var(--pale-blue) 100%);
  border-bottom: 2px solid var(--line);
  padding: 72px 24px 56px;
  text-align: center;
}
.page-hero-inner { max-width: 740px; margin: 0 auto; }
.page-hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.1rem); }
.page-hero p { color: var(--ink-soft); font-size: 1.12rem; margin-top: 16px; }

.page-main { background: #fff; padding: 64px 24px 88px; }
.prose { max-width: 760px; margin: 0 auto; }
.prose-wide { max-width: 920px; }
.prose h2 { font-size: 1.65rem; margin: 44px 0 14px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.2rem; margin: 28px 0 8px; }
.prose p { color: var(--ink-soft); margin-bottom: 14px; line-height: 1.7; }
.prose ul, .prose ol { color: var(--ink-soft); padding-left: 24px; margin: 12px 0 18px; line-height: 1.7; }
.prose li { margin-bottom: 8px; }
.prose strong { color: var(--ink); }
.prose a { color: var(--sky-deep); font-weight: 800; }
.prose a.btn-sky { color: #fff; }
.prose a:hover { text-decoration: underline; }
.prose .lead { font-size: 1.15rem; }
.updated {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--ink-soft);
  background: var(--cream);
  border: 2px solid var(--line);
  border-radius: 99px;
  padding: 6px 16px;
  margin-bottom: 28px;
}

.prose .phone { margin: 40px auto; }
.prose img.rounded { width: 100%; border-radius: 22px; border: 2px solid var(--line); margin: 28px 0; }

/* callout card */
.callout {
  background: var(--cream);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin: 28px 0;
}
.callout p:last-child { margin-bottom: 0; }
.callout-blue { background: rgba(79,195,247,0.08); border-color: rgba(79,195,247,0.4); }

/* CTA band reused at page bottoms */
.page-cta {
  text-align: center;
  background: var(--cream);
  border: 2px solid var(--line);
  border-radius: 26px;
  padding: 44px 32px;
  margin-top: 56px;
}
.page-cta h2 { margin-bottom: 10px; }
.page-cta p { color: var(--ink-soft); margin-bottom: 24px; }

/* FAQ */
.faq-item {
  background: var(--cream);
  border: 2px solid var(--line);
  border-radius: 18px;
  margin-bottom: 14px;
  overflow: hidden;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 24px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.08rem;
  color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  flex: 0 0 auto;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--sky-deep);
  transition: transform 0.2s;
  line-height: 1;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-body { padding: 0 24px 20px; color: var(--ink-soft); line-height: 1.7; }
.faq-body p { margin-bottom: 10px; }
.faq-body a { color: var(--sky-deep); font-weight: 800; }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.9, 0.3, 1); }
.reveal.in-view { opacity: 1; transform: translateY(0); }

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

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 920px) {
  .nav-links { display: none; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .hero { min-height: 0; padding-top: 6vh; }
  .hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .hero-copy { text-align: center; margin: 0 auto; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-ctas { justify-content: center; }
  .hero-phone { justify-content: center; }
  .phone.phone-hero { width: 218px; }
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: none; }
  .stat:nth-child(n+3) { border-top: 2px solid var(--line); }
  .howit { grid-template-columns: 1fr; gap: 48px; }
  .teachers-inner { grid-template-columns: 1fr; }
  .mech-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .brand-name { font-size: 1rem; }
  .journey-line { left: 20px; }
  .unit-row { grid-template-columns: 44px 1fr; gap: 16px; }
  .unit-medallion { width: 44px; height: 44px; font-size: 1.1rem; }
  .unit-card { flex-wrap: wrap; padding: 20px 22px; gap: 16px; }
  .mech-grid, .trust-grid { grid-template-columns: 1fr; }
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   I LIKE LEARNING ADDITIONS
   ============================================================ */
.c-green { --app: #2BB673; --app-dark: #128A55; --app-rgb: 43,182,115; }
.m-green { background: #2BB673; box-shadow: 0 0 0 6px #fff, 0 4px 0 6px rgba(43,182,115,0.4); }
.t-green { color: #128A55; background: rgba(43,182,115,0.14); }
.jl-green { background: linear-gradient(180deg, #2BB673 0%, #128A55 100%); opacity: 0.45; }
.c-red { --app: #F0584A; --app-dark: #C9342A; --app-rgb: 240,88,74; }
.m-red { background: #F0584A; box-shadow: 0 0 0 6px #fff, 0 4px 0 6px rgba(240,88,74,0.4); }
.t-red { color: #C9342A; background: rgba(240,88,74,0.14); }
.jl-red { background: linear-gradient(180deg, #F0584A 0%, #C9342A 100%); opacity: 0.45; }
.c-purple { --app: #5B5BD6; --app-dark: #3A2FB8; --app-rgb: 91,91,214; }
.m-purple { background: #5B5BD6; box-shadow: 0 0 0 6px #fff, 0 4px 0 6px rgba(91,91,214,0.4); }
.t-purple { color: #3A2FB8; background: rgba(91,91,214,0.14); }
.jl-purple { background: linear-gradient(180deg, #5B5BD6 0%, #3A2FB8 100%); opacity: 0.45; }
.c-orange { --app: #F59A0C; --app-dark: #D86F00; --app-rgb: 245,154,12; }
.m-orange { background: #F59A0C; box-shadow: 0 0 0 6px #fff, 0 4px 0 6px rgba(245,154,12,0.4); }
.t-orange { color: #D86F00; background: rgba(245,154,12,0.14); }
.jl-orange { background: linear-gradient(180deg, #F59A0C 0%, #D86F00 100%); opacity: 0.45; }

.btn-ghost { background: rgba(255,255,255,0.14); color: #fff; border: 2px solid rgba(255,255,255,0.7); box-shadow: 0 4px 0 rgba(0,0,0,0.12); }

/* ---- home hero: four Dinos, one per app ---- */
.hero-dinos { display: grid; grid-template-columns: repeat(2, 200px); gap: 6px 22px; padding-right: 24px; }
.hero-dino {
  width: 200px; height: 200px; object-fit: contain; padding: 14px;
  border-radius: 50%;
  animation: bob 2.6s ease-in-out infinite;
}
.hd-abcs   { background: radial-gradient(closest-side, rgba(43,182,115,0.26), rgba(43,182,115,0) 100%); animation-delay: 0s; }
.hd-colors { background: radial-gradient(closest-side, rgba(240,88,74,0.24), rgba(240,88,74,0) 100%); animation-delay: -0.7s; margin-top: 46px; }
.hd-shapes { background: radial-gradient(closest-side, rgba(91,91,214,0.24), rgba(91,91,214,0) 100%); animation-delay: -1.3s; margin-top: -40px; }
.hd-math   { background: radial-gradient(closest-side, rgba(245,154,12,0.26), rgba(245,154,12,0) 100%); animation-delay: -1.9s; }

/* ---- app cards ---- */
.apps-section { background: #fff; border-top: 2px solid var(--line); padding: 90px 24px 100px; }
.apps-more { background: var(--cream); }
.apps-grid { max-width: 1040px; margin: 0 auto; display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.apps-grid-3 { grid-template-columns: repeat(3, 1fr); }
.app-card {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 16px;
  padding: 28px 170px 28px 28px; min-height: 270px;
  background: linear-gradient(150deg, rgba(var(--app-rgb),0.16) 0%, rgba(var(--app-rgb),0.04) 55%, #fff 100%);
  border: 2px solid rgba(var(--app-rgb),0.28);
  border-radius: 26px;
  box-shadow: 0 6px 0 rgba(var(--app-rgb),0.30);
  transition: transform 0.15s, opacity 0.6s ease;
}
.app-card:hover { transform: translateY(-5px); }
.app-card.reveal:not(.in-view) { transform: translateY(34px); }
.app-card-icon { width: 76px; height: 76px; border-radius: 19px; box-shadow: 0 4px 10px rgba(0,0,0,0.14); }
.app-card-ages {
  display: inline-block; font-size: 0.72rem; font-weight: 900; letter-spacing: 1.2px; text-transform: uppercase;
  color: var(--app-dark); background: rgba(var(--app-rgb),0.16); border-radius: 8px; padding: 4px 10px; margin-bottom: 8px;
}
.app-card h3 { font-size: 1.6rem; color: var(--app-dark); }
.app-card p { color: var(--ink-soft); margin-top: 6px; font-size: 1rem; }
.app-card-meta { display: inline-block; margin-top: 12px; font-size: 0.85rem; font-weight: 900; color: var(--ink); }
.app-card-meta::after { content: " →"; color: var(--app-dark); }
.app-card-dino { position: absolute; right: 8px; bottom: -6px; width: 160px; height: auto; transition: transform 0.25s; }
.app-card:hover .app-card-dino { transform: rotate(-4deg) translateY(-6px); }
.apps-grid-3 .app-card { padding-right: 24px; padding-bottom: 130px; }
.apps-grid-3 .app-card-dino { width: 120px; }

/* ---- app page hero ---- */
.hero-app {
  background:
    radial-gradient(circle at 85% 20%, rgba(255,255,255,0.22), transparent 40%),
    radial-gradient(circle at 10% 100%, rgba(0,0,0,0.10), transparent 45%),
    linear-gradient(160deg, var(--app) 0%, var(--app-dark) 100%);
  min-height: clamp(520px, 78vh, 760px);
}
.hero-app h1, .hero-app .hero-sub { color: #fff; }
.hero-app .hero-sub { opacity: 0.95; }
.hero-app .hero-note { background: rgba(255,255,255,0.18); color: #fff; }
.hero-app .btn-white { color: var(--app-dark); border: none; box-shadow: 0 4px 0 rgba(0,0,0,0.18); }
.hero-icon { width: 92px; height: 92px; border-radius: 22px; box-shadow: 0 8px 20px rgba(0,0,0,0.22); margin-bottom: 22px; }
.hero-app .hero-phone { position: relative; padding-right: 40px; }
.hero-dino-big {
  position: absolute; left: -150px; bottom: -24px; width: 220px; height: auto; z-index: 2;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,0.22));
  animation: bob 2.4s ease-in-out infinite;
}

/* ---- learn-by-doing ---- */
.dark-list { margin: 0 0 22px; }
.dark-list li { color: var(--ink); font-weight: 800; }
.howit-p { color: var(--ink-soft); }
.unit-note { max-width: 820px; margin: 28px auto 0; text-align: center; color: var(--ink-soft); font-size: 0.98rem; }

/* ---- screenshot row ---- */
.shots-row {
  max-width: 1140px; margin: 80px auto 0;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 22px;
}
.shot { text-align: center; }
.shot:nth-child(even) .phone { transform: rotate(2deg); }
.phone.phone-sm { width: 100%; max-width: 206px; border-radius: 32px; padding: 7px; transform: rotate(-2deg); box-shadow: 0 12px 26px rgba(41,54,92,0.22); }
.phone-sm .phone-notch { top: 14px; width: 58px; height: 16px; border-radius: 9px; }
.phone-sm .phone-shot { border-radius: 26px; }
.shot figcaption { margin-top: 16px; font-weight: 800; font-size: 0.92rem; color: var(--ink-soft); }

/* ---- final CTA, per app ---- */
.final-cta.c-green, .final-cta.c-red, .final-cta.c-purple, .final-cta.c-orange {
  background: linear-gradient(170deg, var(--app) 0%, var(--app-dark) 85%);
}
.final-inner:has(.final-apps) { max-width: 960px; }
.final-apps { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-bottom: 6px; }
.final-app {
  display: flex; align-items: center; gap: 12px;
  background: #fff; color: var(--ink); border-radius: 18px; padding: 10px 18px 10px 10px;
  font-family: var(--font-display); font-weight: 800; font-size: 1.05rem;
  box-shadow: 0 4px 0 rgba(0,0,0,0.16); transition: transform 0.15s;
}
.final-app:hover { transform: translateY(-3px); }
.final-app img { width: 48px; height: 48px; border-radius: 12px; }

@media (max-width: 1000px) {
  .shots-row { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 200px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 10px 4px 24px; }
  .shot { scroll-snap-align: center; }
}
@media (max-width: 920px) {
  .hero-dinos { grid-template-columns: repeat(2, 150px); justify-content: center; padding-right: 0; }
  .hero-dino { width: 150px; height: 150px; }
  .hd-colors { margin-top: 30px; }
  .hd-shapes { margin-top: -30px; }
  .apps-grid-3 { grid-template-columns: 1fr; }
  .apps-grid-3 .app-card { padding: 28px 150px 28px 28px; }
  .hero-app .hero-phone { padding-right: 0; padding-left: 110px; }
  .hero-dino-big { left: 0; width: 150px; }
}
@media (max-width: 640px) {
  .apps-grid { grid-template-columns: 1fr; }
  .app-card, .apps-grid-3 .app-card { padding: 24px 118px 24px 22px; min-height: 0; }
  .app-card-dino, .apps-grid-3 .app-card-dino { width: 112px; }
  .app-card-icon { width: 64px; height: 64px; border-radius: 16px; }
  .hero-dinos { grid-template-columns: repeat(2, 132px); gap: 0 14px; }
  .hero-dino { width: 132px; height: 132px; padding: 10px; }
  .hero-icon { margin-left: auto; margin-right: auto; }
  .final-app { font-size: 0.95rem; }
  .nav-inner { padding: 10px 16px; gap: 12px; }
  .brand { gap: 8px; }
  .brand-icon { width: 38px; height: 38px; }
  .nav .btn-small { padding: 9px 14px; font-size: 0.75rem; }
  .btn-big { padding: 15px 22px; }
  .final-cta .btn { white-space: normal; text-align: center; }
  .hero-app .hero-phone { padding-left: 92px; }
  .hero-app .phone.phone-hero { width: 190px; }
  .hero-dino-big { width: 128px; bottom: -14px; }
}
