/* ============================================================
   I Can Tell Time — Duolingo-inspired design system
   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;
}
.mascot-quiz { width: 92px; display: none; }
.mascot-quiz.show { display: block; animation: popin 0.45s cubic-bezier(0.2, 1.6, 0.4, 1); }

/* ============================================================
   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: 42px; height: 42px; border-radius: 11px; box-shadow: 0 2px 6px rgba(0,0,0,0.12); }
.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 { color: var(--sky-deep); }

/* ============================================================
   HERO — full-bleed illustration with UI on top
   ============================================================ */
.hero {
  position: relative;
  min-height: clamp(540px, 86vh, 840px);
  padding: 10vh 24px 56px;
  background: url("assets/hero-bg.png") center bottom / cover no-repeat;
  display: flex;
  align-items: flex-start;
}
/* soft cream veil behind the copy so text stays readable over the sky */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg,
    rgba(255, 251, 240, 0.85) 0%,
    rgba(255, 251, 240, 0.55) 32%,
    rgba(255, 251, 240, 0) 60%);
  pointer-events: 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); }

/* --- 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-card .mini-clock { flex: 0 0 88px; width: 88px; height: 88px; }
.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; }

/* ---- mini clocks (rendered by JS) ---- */
.mini-clock { width: 96px; height: 96px; }
.mini-clock svg { width: 100%; height: 100%; display: block; }

/* ============================================================
   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; }

.flame-flicker{ animation: flicker 1.1s ease-in-out infinite; }
.star-spin    { animation: starspin 3.2s ease-in-out infinite; }
.clock-tick   { animation: ticktock 2s ease-in-out infinite; }
.rank-bounce  { animation: bob 1.8s ease-in-out infinite; }
@keyframes flicker { 0%,100% { transform: rotate(-3deg) scale(1); } 50% { transform: rotate(4deg) scale(1.1); } }
@keyframes starspin { 0%,70%,100% { transform: rotate(0); } 80% { transform: rotate(18deg); } 90% { transform: rotate(-14deg); } }
@keyframes ticktock { 0%,100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg); } }

/* --- 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; }

/* ============================================================
   QUIZ
   ============================================================ */
.quiz-section { padding: 50px 24px 100px; background: var(--cream); }
.quiz-card {
  max-width: 860px;
  margin: 0 auto;
  background: linear-gradient(160deg, var(--sky) 0%, var(--sky-deep) 100%);
  border-radius: 32px;
  box-shadow: 0 10px 0 #1B7DB5;
  padding: 54px 40px 46px;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.quiz-card h2 { color: #fff; }
.quiz-card h2 em { color: var(--yellow); }

.quiz-progress {
  width: min(340px, 80%);
  height: 14px;
  margin: 22px auto 30px;
  background: rgba(255,255,255,0.3);
  border-radius: 99px;
  overflow: hidden;
}
.quiz-progress-fill {
  width: 0;
  height: 100%;
  background: var(--yellow);
  border-radius: 99px;
  transition: width 0.6s cubic-bezier(0.2, 0.9, 0.3, 1);
}

.quiz-stage { display: flex; align-items: center; justify-content: center; gap: 48px; flex-wrap: wrap; }
.quiz-clock-wrap {
  background: #fff;
  border-radius: 50%;
  padding: 12px;
  box-shadow: 0 6px 0 rgba(0,0,0,0.18);
}
.quiz-clock { width: 170px; height: 170px; }

.quiz-answers { display: flex; flex-direction: column; gap: 14px; }
.btn-answer {
  background: #fff;
  color: var(--ink);
  font-size: 1.25rem;
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: none;
  letter-spacing: 0;
  padding: 14px 56px;
  box-shadow: 0 4px 0 rgba(0,0,0,0.2);
}
.btn-answer.wrong { background: var(--coral); color: #fff; animation: shake 0.45s; }
.btn-answer.right { background: var(--mint); color: #fff; }
.btn-answer:disabled { cursor: default; filter: none; }
@keyframes shake { 0%,100% { transform: translateX(0); } 20% { transform: translateX(-9px); } 40% { transform: translateX(8px); } 60% { transform: translateX(-6px); } 80% { transform: translateX(4px); } }

.quiz-result {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 28px;
  min-height: 3rem;
}
.quiz-feedback {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
}
.quiz-cta { display: none; margin-top: 22px; }
.quiz-cta.show { display: inline-flex; animation: popin 0.4s cubic-bezier(0.2, 1.6, 0.4, 1); }
@keyframes popin { from { transform: scale(0.5); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* confetti bits */
.confetti {
  position: absolute;
  width: 10px; height: 10px;
  border-radius: 3px;
  pointer-events: none;
  z-index: 5;
}

/* ============================================================
   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 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: 38px; height: 38px; border-radius: 10px; }
.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; }

/* compare table */
.table-card { border: 2px solid var(--line); border-radius: 20px; overflow: hidden; margin: 28px 0; }
.compare-table { width: 100%; border-collapse: collapse; font-size: 0.98rem; }
.compare-table th, .compare-table td { padding: 16px 18px; text-align: center; border-bottom: 2px solid var(--line); }
.compare-table tr:last-child th, .compare-table tr:last-child td { border-bottom: none; }
.compare-table thead th {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  background: var(--cream);
}
.compare-table thead th:nth-child(2) { background: rgba(79,195,247,0.14); color: var(--sky-deep); }
.compare-table tbody th { text-align: left; font-weight: 800; color: var(--ink); background: #fff; }
.compare-table td { color: var(--ink-soft); font-weight: 700; }
.compare-table td:first-of-type { background: rgba(79,195,247,0.05); }
.yes { color: var(--mint-dark); font-weight: 900; font-size: 1.1rem; }
.no  { color: #C7BFAF; font-weight: 900; font-size: 1.1rem; }

/* glossary */
.glossary-grid {
  max-width: 920px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.term-card {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: var(--cream);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.term-card .mini-clock { flex: 0 0 72px; width: 72px; height: 72px; }
.term-card h3 { font-size: 1.12rem; margin-bottom: 4px; }
.term-card p { color: var(--ink-soft); font-size: 0.95rem; line-height: 1.6; }

/* changelog */
.changelog { max-width: 720px; margin: 0 auto; position: relative; padding-left: 28px; }
.changelog::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 10px;
  bottom: 10px;
  width: 4px;
  border-radius: 99px;
  background: linear-gradient(180deg, var(--sky), var(--mint) 40%, var(--amber) 75%, var(--coral));
  opacity: 0.5;
}
.log-entry { position: relative; padding-bottom: 36px; }
.log-entry::before {
  content: "";
  position: absolute;
  left: -28px;
  top: 7px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--sky);
  box-shadow: 0 0 0 4px #fff, 0 0 0 6px rgba(79,195,247,0.3);
}
.log-date {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--sky-deep);
  background: rgba(79,195,247,0.14);
  border-radius: 8px;
  padding: 4px 10px;
  margin-bottom: 8px;
}
.log-entry h3 { margin-bottom: 6px; }
.log-entry p, .log-entry ul { color: var(--ink-soft); line-height: 1.65; }
.log-entry ul { padding-left: 22px; margin-top: 8px; }
.log-entry li { margin-bottom: 6px; }

/* press assets */
.asset-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 28px 0;
}
.asset-card {
  background: var(--cream);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
}
.asset-card img { max-width: 110px; max-height: 110px; margin: 0 auto 12px; border-radius: 14px; }
.asset-card a { font-weight: 900; font-size: 0.85rem; color: var(--sky-deep); text-transform: uppercase; letter-spacing: 0.8px; }

/* link cards (schools hub) */
.link-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 28px 0; }
.link-card {
  display: block;
  background: var(--cream);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 4px 0 #EDE3CC;
  padding: 24px;
  transition: transform 0.15s;
}
.link-card:hover { transform: translateY(-3px); }
.link-card h3 { font-size: 1.1rem; margin-bottom: 6px; color: var(--ink); }
.link-card p { color: var(--ink-soft); font-size: 0.92rem; line-height: 1.55; }
.link-card .go { display: inline-block; margin-top: 12px; font-weight: 900; font-size: 0.82rem; letter-spacing: 0.8px; text-transform: uppercase; color: var(--sky-deep); }

/* ============================================================
   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; }
  .glossary-grid { grid-template-columns: 1fr; }
  .asset-grid, .link-cards { grid-template-columns: 1fr; }
  .compare-table { font-size: 0.85rem; }
  .compare-table th, .compare-table td { padding: 12px 10px; }
  .hero { min-height: 76vh; padding-top: 7vh; background-position: 62% bottom; }
  .hero::before {
    background: linear-gradient(180deg,
      rgba(255, 251, 240, 0.88) 0%,
      rgba(255, 251, 240, 0.6) 45%,
      rgba(255, 251, 240, 0) 72%);
  }
  .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; }
  .unit-card .mini-clock { flex: 0 0 64px; width: 64px; height: 64px; }
  .mech-grid, .trust-grid { grid-template-columns: 1fr; }
  .quiz-stage { gap: 28px; }
  .btn-answer { padding: 14px 40px; width: 100%; }
  .quiz-answers { width: 100%; max-width: 320px; }
  .quiz-result { flex-direction: column; gap: 8px; }
  .doodle { display: none; }
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
}
