/* Kids AI Platform — marketing site styles. Light theme only, matches the app. */

@font-face {
  font-family: "Nunito";
  src: url("/assets/fonts/nunito-var.woff2") format("woff2");
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;

  /* App tokens */
  --coral: #FF734F;
  --periwinkle: #6B70EB;
  --grape: #9E66E6;
  --success: #4DAD73;
  --locked: #99999E;
  --background: #FCFAF5;
  --card: #FFFFFF;
  --text: #262429;

  /* Web contrast adjustments (see README › Contrast) */
  --text-secondary: rgba(38, 36, 41, .7);   /* app uses .6 (4.1:1); .7 gives 5.6:1 */
  --coral-ink: #BF4B2B;                      /* 4.7:1 on background, white on it 4.9:1 */
  --coral-ink-deep: #B04325;                 /* text on coral-tinted surfaces, 4.9:1 */
  --periwinkle-ink: #5358D6;                 /* 5.4:1 on background, white on it 5.6:1 */

  --coral-12: rgba(255, 115, 79, .12);
  --periwinkle-12: rgba(107, 112, 235, .12);
  --gradient: linear-gradient(135deg, var(--periwinkle), var(--grape), var(--coral));

  --r-lg: 28px;
  --r-md: 20px;
  --r-sm: 14px;
  --shadow: 0 6px 14px rgba(0, 0, 0, .07);

  --font-display: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --wrap: 1120px;
  --gutter: 16px;
  --section-y: clamp(56px, 8vw, 104px);
}

@media (min-width: 600px) {
  :root { --gutter: 24px; }
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem; /* 17px */
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

@media (min-width: 1024px) {
  body { font-size: 1.125rem; }
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  margin: 0 0 .5em;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2.1rem, 1.4rem + 3.4vw, 3.6rem); font-weight: 900; }
h2 { font-size: clamp(1.75rem, 1.3rem + 2vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.3rem; font-weight: 800; }

p { margin: 0 0 1em; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }

a { color: var(--periwinkle-ink); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--periwinkle-ink);
  outline-offset: 3px;
  border-radius: 6px;
}

.icon { width: 24px; height: 24px; flex: none; fill: currentColor; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 100;
  padding: 12px 18px;
  background: var(--card);
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 800;
  border-radius: var(--r-sm);
  box-shadow: var(--shadow);
}
.skip-link:focus { top: 12px; }

/* Clip sideways overflow from flying/tilting elements without breaking position: sticky */
main { overflow-x: clip; }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }

.section__head { max-width: 42rem; margin: 0 auto clamp(32px, 5vw, 56px); text-align: center; }
.section__head p { color: var(--text-secondary); font-size: 1.1em; }

.eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: .95rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--coral-ink-deep);
}

.muted { color: var(--text-secondary); }

/* ---------- Backdrop: soft blobs + drifting glow dots (decorative) ---------- */

.backdrop {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(900px 900px at -10% -2%, rgba(255, 115, 79, .12), transparent 60%),
    radial-gradient(900px 900px at 110% 102%, rgba(107, 112, 235, .12), transparent 60%);
}

.backdrop span {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 12px 4px rgba(255, 115, 79, .45);
  opacity: .55;
  animation: drift 18s ease-in-out infinite alternate;
}
/* Dots are spread down the page (positions in % of page height). */
.backdrop span:nth-child(1) { top: 2%; left: 8%; }
.backdrop span:nth-child(2) { top: 6%; left: 86%; }
.backdrop span:nth-child(3) { top: 16%; left: 4%; animation-duration: 26s; animation-delay: -6s; }
.backdrop span:nth-child(4) { top: 28%; left: 94%; animation-duration: 20s; animation-delay: -10s; }
.backdrop span:nth-child(5) { top: 44%; left: 3%; width: 6px; height: 6px; animation-duration: 24s; animation-delay: -3s; }
.backdrop span:nth-child(6) { top: 58%; left: 92%; width: 6px; height: 6px; animation-duration: 28s; animation-delay: -14s; }
.backdrop span:nth-child(7) { top: 72%; left: 6%; animation-duration: 22s; animation-delay: -8s; }
.backdrop span:nth-child(8) { top: 88%; left: 88%; animation-duration: 25s; animation-delay: -12s; }
.backdrop span:nth-child(even) { background: var(--periwinkle); box-shadow: 0 0 12px 4px rgba(107, 112, 235, .45); }
.backdrop span:nth-child(5) { background: var(--grape); box-shadow: 0 0 10px 3px rgba(158, 102, 230, .4); }

@keyframes drift {
  0%   { transform: translate(0, 0); }
  50%  { transform: translate(24px, -30px); }
  100% { transform: translate(-18px, 20px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .backdrop span { animation: none; }
}

/* ---------- Buttons, pills ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 22px;
  border-radius: var(--r-md);
  border: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  text-decoration: none;
  cursor: pointer;
}
.btn--primary { background: var(--coral-ink); color: #fff; box-shadow: 0 6px 14px rgba(191, 75, 43, .25); }
.btn--primary:hover { background: #A8401F; }
.btn--small { min-height: 44px; padding: 8px 18px; font-size: 1rem; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: .9rem;
  line-height: 1.4;
  white-space: nowrap;
}
.pill--coral { background: var(--coral-12); color: var(--coral-ink-deep); }
.pill--periwinkle { background: var(--periwinkle-12); color: var(--periwinkle-ink); }

/* ---------- Store buttons (see /assets/js/stores.js) ---------- */

.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.stores--center { justify-content: center; }

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 1 1 230px;
  max-width: 300px;
  min-height: 60px;
  padding: 10px 14px 10px 12px;
  border-radius: var(--r-md);
  background: var(--card);
  color: var(--text);
  border: 2px solid rgba(38, 36, 41, .14);
  box-shadow: var(--shadow);
  text-decoration: none;
}
.store-btn__icon {
  width: 36px; height: 36px;
  padding: 7px;
  border-radius: 12px;
  background: var(--periwinkle-12);
  color: var(--periwinkle-ink);
  flex: none;
}
.store-btn[data-store="android"] .store-btn__icon { background: var(--coral-12); color: var(--coral-ink-deep); }
.store-btn__name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.1rem;
  line-height: 1.2;
  margin-right: auto;
  white-space: nowrap;
}
.store-btn .pill { font-size: .8rem; padding: 3px 10px; background: rgba(38, 36, 41, .07); color: var(--text); }

/* Coming-soon state: not a link, visibly inactive */
.store-btn[aria-disabled="true"] { cursor: default; border-style: dashed; box-shadow: none; }

/* Live state */
a.store-btn[href]:hover { border-color: var(--periwinkle-ink); }
.store-btn--badge { flex: none; max-width: none; min-height: 0; padding: 0; border: 0; background: none; box-shadow: none; }
.store-btn--badge img { height: 56px; width: auto; }

/* ---------- Glass surface ---------- */

.glass {
  --tint: 107, 112, 235;
  position: relative;
  border-radius: var(--r-lg);
  border: 1.3px solid transparent;
  background:
    linear-gradient(rgba(255, 255, 255, .8), rgba(255, 255, 255, .8)) padding-box,
    linear-gradient(135deg, rgba(var(--tint), .55), rgba(255, 255, 255, .5), rgba(var(--tint), .25)) border-box;
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 18px rgba(var(--tint), .22);
}
.glass--coral { --tint: 255, 115, 79; }

.card {
  background: var(--card);
  border-radius: var(--r-md);
  box-shadow: var(--shadow);
}

/* ---------- Phone frame (plain CSS, no device mock-up) ---------- */

.phone {
  width: 100%;
  max-width: 280px;
  padding: 8px;
  border-radius: 38px;
  background: var(--text);
  box-shadow: 0 22px 44px rgba(107, 112, 235, .22), 0 6px 14px rgba(0, 0, 0, .12);
}
.phone img { width: 100%; border-radius: 30px; background: var(--background); }
.phone--sm { max-width: 220px; padding: 6px; border-radius: 30px; }
.phone--sm img { border-radius: 24px; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(252, 250, 245, .88);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(38, 36, 41, .06);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--text);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.25rem;
  letter-spacing: -.01em;
  white-space: nowrap;
}
.brand img { width: 36px; height: 36px; }

.nav-list { display: flex; align-items: center; gap: 6px; margin: 0; padding: 0; list-style: none; }
.nav-list a:not(.btn) {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: var(--r-sm);
  color: var(--text);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
}
.nav-list a:not(.btn):hover { background: var(--periwinkle-12); }

.nav-desktop { display: none; }
.nav-mobile { position: relative; }
.nav-mobile summary {
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  border-radius: var(--r-sm);
  background: var(--card);
  box-shadow: var(--shadow);
  cursor: pointer;
  list-style: none;
}
.nav-mobile summary::-webkit-details-marker { display: none; }
.nav-mobile .icon-close { display: none; }
.nav-mobile[open] .icon-open { display: none; }
.nav-mobile[open] .icon-close { display: block; }
.nav-mobile__panel {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: min(280px, calc(100vw - 2 * var(--gutter)));
  padding: 10px;
  background: var(--card);
  border-radius: var(--r-md);
  box-shadow: 0 14px 30px rgba(38, 36, 41, .14);
}
.nav-mobile .nav-list { flex-direction: column; align-items: stretch; gap: 2px; }
.nav-mobile .nav-list a:not(.btn) { min-height: 48px; }
.nav-mobile .btn { width: 100%; margin-top: 6px; }

@media (min-width: 820px) {
  .nav-desktop { display: block; }
  .nav-mobile { display: none; }
}

/* ---------- Hero ---------- */

.hero { padding-block: clamp(32px, 6vw, 88px) var(--section-y); }
.hero__grid { display: grid; gap: 48px; align-items: center; }
.hero__lede { font-size: 1.2em; color: var(--text-secondary); max-width: 34rem; }
.hero h1 .accent { color: var(--coral-ink); }
.hero .stores { margin-top: 28px; }
.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text-secondary);
}
.hero__facts li { display: inline-flex; align-items: center; gap: 6px; }
.hero__facts .icon { width: 20px; height: 20px; color: var(--success); }

.hero__stage {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 32px 16px;
}
.hero__stage::before {
  content: "";
  position: absolute;
  inset: 8% 4%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 115, 79, .22), rgba(107, 112, 235, .16) 60%, transparent);
  filter: blur(8px);
}
.hero__tilt {
  position: relative;
  display: flex;
  justify-content: center;
  width: 100%;
  transform: perspective(1200px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .6s cubic-bezier(.2, .7, .2, 1);
}
.hero__stage .phone { position: relative; max-width: 290px; }
.hero__stage .phone--front { transform: translateY(calc(var(--hp, 0) * -24px)); }
.hero__stage .phone--back { display: none; }

.hero__badge {
  position: absolute;
  left: 50%;
  bottom: 6px;
  translate: -50% 0;
  transform: translateY(calc(var(--hp, 0) * -48px));
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  font-family: var(--font-display);
  font-weight: 800;
  white-space: nowrap;
}
.hero__badge .icon { color: var(--coral); width: 26px; height: 26px; }

@media (min-width: 900px) {
  .hero__grid { grid-template-columns: 1.1fr .9fr; }
  .hero__stage { padding: 24px 0 40px; }
  .hero__stage .phone--front { transform: translateX(40px) translateY(calc(var(--hp, 0) * -40px)); z-index: 1; }
  .hero__stage .phone--back {
    display: block;
    position: absolute;
    top: 64px;
    left: 0;
    max-width: 240px;
    transform: rotate(-6deg) translateY(calc(var(--hp, 0) * 48px));
    opacity: .96;
  }
  .hero__badge { left: auto; right: 0; translate: none; bottom: 64px; z-index: 2; transform: translateY(calc(var(--hp, 0) * -80px)); }
}

/* ---------- How it works: scroll story ---------- */
/* Mobile: one card per step, its small phone cycles screens. Wide screens: the phone is pinned
   (sticky) and its screen follows the step in view; see motion.js. */

.story__steps { display: grid; gap: 20px; margin: 0; padding: 0; list-style: none; }
.story__step {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 18px;
  align-items: center;
  padding: 18px;
}
.story__thumb { max-width: 112px; padding: 4px; border-radius: 20px; }
.story__thumb .screens, .story__thumb img { border-radius: 16px; }

.screens { display: grid; overflow: hidden; border-radius: 30px; }
.screens > .screen {
  grid-area: 1 / 1;
  display: block;
  opacity: 0;
  scale: 1.04;
  transition: opacity .4s ease, scale .8s cubic-bezier(.2, .7, .2, 1);
}
.screens > .screen.is-active { opacity: 1; scale: 1; }

.step__icon {
  display: inline-grid;
  place-items: center;
  width: 48px; height: 48px;
  margin-bottom: 10px;
  border-radius: 50%;
  background: var(--periwinkle-12);
  color: var(--periwinkle-ink);
}
.step__icon .icon { width: 26px; height: 26px; }
.story__step:nth-child(2) .step__icon { background: var(--coral-12); color: var(--coral-ink); }
.story__step:nth-child(3) .step__icon { background: rgba(158, 102, 230, .14); color: #7A44C4; }
.story__step h3 { margin-bottom: .3em; }
.story__step h3 small { display: block; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--text-secondary); margin-bottom: 2px; }
.story__step p { margin: 0; color: var(--text-secondary); }

.story__stage, .story__rail { display: none; }

@media (min-width: 900px) {
  .story__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; }
  .story__steps { gap: 0; padding-left: 40px; }
  .story__step {
    display: flex;
    align-items: center;
    min-height: 78vh;
    padding: 0;
    background: none;
    box-shadow: none;
  }
  .story__thumb { display: none; }
  .story__text {
    max-width: 28rem;
    padding: 28px 30px;
    border-radius: var(--r-lg);
    transition: background-color .5s ease, box-shadow .5s ease, translate .7s cubic-bezier(.2, .7, .2, 1);
  }
  .story__step.is-active .story__text { background: var(--card); box-shadow: 0 18px 40px rgba(38, 36, 41, .10); translate: 10px 0; }
  .story__step h3 { font-size: 1.6rem; }
  .story__step .step__icon { transition: scale .5s cubic-bezier(.34, 1.56, .64, 1); }
  .story__step.is-active .step__icon { scale: 1.15; }

  .story__rail {
    display: block;
    position: absolute;
    left: 8px;
    top: 39vh;
    bottom: 39vh;
    width: 4px;
    border-radius: 4px;
    background: rgba(38, 36, 41, .08);
  }
  .story__rail span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(var(--periwinkle), var(--grape), var(--coral));
    transform-origin: top;
    transform: scaleY(var(--story-p, 0));
  }

  .story__stage { display: block; }
  .story__sticky {
    position: sticky;
    top: max(96px, calc(50vh - 330px));
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
  .story__phone { max-width: 300px; }
  .story__dots { display: flex; gap: 8px; }
  .story__dots span {
    width: 8px; height: 8px;
    border-radius: 8px;
    background: rgba(38, 36, 41, .18);
    transition: width .4s cubic-bezier(.2, .7, .2, 1), background-color .4s ease;
  }
  .story__dots span.is-active { width: 26px; background: var(--periwinkle-ink); }
}

/* ---------- Two learning experiences ---------- */

.tracks { display: grid; gap: 24px; }
@media (min-width: 860px) { .tracks { grid-template-columns: 1fr 1fr; } }

.track {
  display: flex;
  flex-direction: column;
  padding: clamp(22px, 3vw, 32px);
  padding-bottom: 0;
  overflow: hidden;
}
.track__head { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.track__icon {
  display: grid;
  place-items: center;
  width: 68px; height: 68px;
  flex: none;
  border-radius: 50%;
  font-size: 2.1rem;
  line-height: 1;
}
.glass--coral .track__icon { background: var(--coral-12); }
.track__icon--peri { background: var(--periwinkle-12); color: var(--periwinkle); }
.track__icon--peri .icon { width: 36px; height: 36px; }
.track h3 { font-size: 1.6rem; margin: 0 0 6px; }
.track__desc { font-size: 1.08em; }

.checklist { margin: 0 0 24px; padding: 0; list-style: none; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; padding: 5px 0; }
.checklist .icon { width: 22px; height: 22px; margin-top: .2em; color: var(--success); }

.track__peek { margin-top: auto; height: 260px; overflow: hidden; display: flex; justify-content: center; }
.track__peek .phone { max-width: 250px; border-bottom-left-radius: 0; border-bottom-right-radius: 0; }

/* ---------- Curriculum ---------- */

.curriculum { display: grid; gap: 24px; }
@media (min-width: 860px) { .curriculum { grid-template-columns: 1fr 1fr; } }

.lessons-card { padding: clamp(22px, 3vw, 32px); }
.lessons-card__head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 14px; }
.lessons-card__head h3 { margin: 0; }
.lessons { margin: 0; padding: 0; list-style: none; counter-reset: lesson; }
.lessons li {
  counter-increment: lesson;
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 14px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid rgba(38, 36, 41, .08);
}
.lessons li:first-child { border-top: 0; }
.lessons li::before {
  content: counter(lesson);
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  font-family: var(--font-display);
  font-weight: 900;
  background: var(--coral-12);
  color: var(--coral-ink-deep);
}
.lessons--peri li::before { background: var(--periwinkle-12); color: var(--periwinkle-ink); }
.lessons strong { display: block; font-family: var(--font-display); font-weight: 800; font-size: 1.08em; line-height: 1.3; }
.lessons span { color: var(--text-secondary); font-size: .95em; }

.callout {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  max-width: 50rem;
  margin: 32px auto 0;
  padding: 22px 24px;
}
.callout__icon {
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  flex: none;
  border-radius: 50%;
  background: rgba(77, 173, 115, .14);
  color: var(--success);
}
.callout h3 { margin-bottom: .25em; font-size: 1.2rem; }
.callout p { margin: 0; }

/* ---------- Puzzles ---------- */

.puzzles { display: grid; gap: 32px; align-items: center; }
.puzzles__art { padding: 12px; }

.puzzles__art figcaption { padding: 12px 8px 4px; font-size: .95em; color: var(--text-secondary); text-align: center; }
.puzzles__facts { display: grid; gap: 14px; margin: 24px 0 0; padding: 0; list-style: none; }
.puzzles__facts li { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; }
.puzzles__facts .icon { width: 28px; height: 28px; color: var(--coral); margin-top: 2px; }
.puzzles__facts li:nth-child(2) .icon { color: var(--periwinkle); }
.puzzles__facts li:nth-child(3) .icon { color: var(--grape); }
.puzzles__facts strong { display: block; font-family: var(--font-display); font-weight: 800; }
.puzzles__facts span { color: var(--text-secondary); }
.puzzles__phone { display: none; }

@media (min-width: 900px) {
  .puzzles { grid-template-columns: 1fr 1.25fr; gap: 56px; }
}

/* ---------- Parents ---------- */

.parents { display: grid; gap: 32px; align-items: start; }
@media (min-width: 900px) { .parents { grid-template-columns: 1fr 1.1fr; gap: 56px; } }
.parents h2 { text-align: left; }
.trust { padding: clamp(22px, 3vw, 32px); }
.trust__list { display: grid; gap: 4px 20px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 560px) { .trust__list { grid-template-columns: 1fr 1fr; } }
.trust__list li { display: flex; gap: 12px; align-items: center; min-height: 52px; font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; }
.trust__list .icon { width: 28px; height: 28px; color: var(--success); }
.trust__note { margin: 18px 0 0; padding-top: 18px; border-top: 1px solid rgba(38, 36, 41, .08); color: var(--text-secondary); }

.link-arrow { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-family: var(--font-display); font-weight: 800; }
.link-arrow .icon { width: 20px; height: 20px; }

/* ---------- Get the app (signature gradient band) ---------- */

.get { padding-block: var(--section-y); }
.get__band {
  padding: clamp(20px, 4vw, 48px);
  border-radius: var(--r-lg);
  background: var(--gradient);
  box-shadow: 0 18px 40px rgba(107, 112, 235, .25);
}
.get__card {
  max-width: 44rem;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 48px) clamp(20px, 4vw, 48px);
  text-align: center;
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, .92);
}
.get__card img { width: 72px; height: 72px; margin: 0 auto 14px; }
.get__card p { color: var(--text-secondary); }
.get__card .stores { margin-top: 24px; }

/* ---------- Footer ---------- */

.site-footer { padding: 48px 0 40px; border-top: 1px solid rgba(38, 36, 41, .08); }
.site-footer__grid { display: grid; gap: 24px; }
@media (min-width: 760px) { .site-footer__grid { grid-template-columns: 1fr auto; align-items: center; } }
.site-footer p { margin: 8px 0 0; color: var(--text-secondary); font-size: .95rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 8px; margin: 0; padding: 0; list-style: none; }
.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 10px;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 700;
}
.footer-links .icon { width: 20px; height: 20px; color: var(--periwinkle-ink); }

/* ---------- Content pages (privacy, support) ---------- */

.page { padding-block: clamp(32px, 6vw, 72px) var(--section-y); }
.prose { max-width: 68ch; margin-inline: auto; }
.prose h1 { margin-bottom: .3em; }
.prose h2 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.7rem); margin-top: 1.8em; }
.prose h3 { font-size: 1.15rem; margin-top: 1.4em; }
.prose ul { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin-bottom: .4em; }
.prose .lede { font-size: 1.15em; color: var(--text-secondary); }
.prose .updated { font-family: var(--font-display); font-weight: 700; color: var(--text-secondary); }
.summary-card { padding: 22px 24px; margin: 28px 0; }
.summary-card h2 { margin-top: 0; font-size: 1.25rem; }
.summary-card ul { list-style: none; padding: 0; margin: 0; }
.summary-card li { display: flex; gap: 10px; align-items: flex-start; }
.summary-card .icon { width: 22px; height: 22px; margin-top: .2em; color: var(--success); }

.faq { margin: 0; }
.faq > div { padding: 20px 22px; margin-bottom: 14px; }
.faq dt { font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; margin-bottom: 6px; }
.faq dd { margin: 0; }
.faq dd p:last-child { margin-bottom: 0; }
.path { font-family: var(--font-display); font-weight: 800; }

.contact-card { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; padding: 22px 24px; margin-top: 32px; }
.contact-card h2 { margin: 0 0 4px; font-size: 1.3rem; }
.contact-card p { margin: 0; color: var(--text-secondary); }

/* ---------- 404 ---------- */

.missing { text-align: center; padding-block: clamp(48px, 10vw, 120px); }
.missing__art { width: 160px; height: 160px; margin: 0 auto 24px; }
.missing p { color: var(--text-secondary); max-width: 32rem; margin-inline: auto; }
.missing .btn { margin-top: 12px; }

/* =====================================================================
   Motion and interaction (driven by /assets/js/motion.js)
   Everything here degrades to the static design: without JavaScript the
   content is fully visible, and prefers-reduced-motion turns it all off.
   ===================================================================== */

/* ---------- Hero entrance ---------- */

@keyframes fade-up { from { opacity: 0; translate: 0 28px; } }
@keyframes rise { from { translate: 0 90px; } }
@keyframes swing-in { from { opacity: 0; translate: 70px 50px; } }
@keyframes pop {
  0% { opacity: 0; scale: .3; }
  60% { opacity: 1; scale: 1.08; }
  100% { scale: 1; }
}

.hero__copy > * { animation: fade-up 1s cubic-bezier(.2, .7, .2, 1) backwards; }
.hero__copy > :nth-child(2) { animation-delay: .08s; }
.hero__copy > :nth-child(3) { animation-delay: .18s; }
.hero__copy > :nth-child(4) { animation-delay: .28s; }
.hero__copy > :nth-child(5) { animation-delay: .38s; }
.hero__stage .phone--front { animation: rise 1.3s cubic-bezier(.2, .7, .2, 1) .1s backwards; }
.hero__stage .phone--back { animation: swing-in 1.3s cubic-bezier(.2, .7, .2, 1) .35s backwards; }
.hero__badge { animation: pop .8s cubic-bezier(.34, 1.56, .64, 1) 1s backwards; }

/* ---------- Reveal on scroll (motion.js adds .reveal only to content below the fold) ---------- */

.reveal {
  opacity: 0;
  translate: 0 40px;
  transition: opacity .9s ease, translate 1.1s cubic-bezier(.2, .7, .2, 1), transform .5s cubic-bezier(.2, .7, .2, 1);
}
.reveal.is-in { opacity: 1; translate: none; }

/* ---------- Header and buttons ---------- */

.site-header { transition: box-shadow .3s ease, background-color .3s ease; }
.site-header.is-scrolled { box-shadow: 0 8px 24px rgba(38, 36, 41, .08); background: rgba(252, 250, 245, .94); }

.btn, a.store-btn[href] { transition: translate .3s cubic-bezier(.2, .7, .2, 1), box-shadow .3s ease, background-color .2s ease; }
.btn:hover, a.store-btn[href]:hover { translate: 0 -2px; }
.btn--primary:hover { box-shadow: 0 10px 22px rgba(191, 75, 43, .32); }
.btn:active, a.store-btn[href]:active { translate: none; scale: .97; }
.btn--soft { background: var(--periwinkle-12); color: var(--periwinkle-ink); }
.btn--soft:hover { background: rgba(107, 112, 235, .2); }

/* ---------- Learning experience cards: pointer tilt + glare + phone rising into view ---------- */

.track { transform: perspective(1100px) rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg)); transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.track::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(420px circle at var(--gx, 50%) var(--gy, 0%), rgba(255, 255, 255, .5), transparent 60%);
  opacity: 0;
  transition: opacity .4s ease;
  pointer-events: none;
}
.track.is-tilting::after { opacity: 1; }
.track__peek .phone { transform: translateY(calc((1 - var(--rise, 1)) * 110px)); }

/* ---------- Stats (count up when they scroll in) ---------- */

.stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px clamp(32px, 6vw, 72px);
  margin: -8px auto clamp(32px, 5vw, 52px);
  padding: 0;
  list-style: none;
  text-align: center;
}
.stats strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.8rem, 2rem + 3.4vw, 4.4rem);
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
  /* ink shades only: every stop is ≥ 5:1 on the page background */
  background: linear-gradient(135deg, var(--periwinkle-ink), #7A44C4, var(--coral-ink-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stats span { font-family: var(--font-display); font-weight: 700; color: var(--text-secondary); }

/* ---------- "Can AI Be Wrong?" statement: words light up as you scroll ---------- */

.callout .scrub {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.3rem, 1.05rem + 1vw, 1.75rem);
  line-height: 1.35;
}
.scrub .w { color: rgba(38, 36, 41, .55); transition: color .35s ease; } /* dim state stays ≥ 3:1 (large text) */
.scrub .w.is-lit { color: var(--text); }

/* ---------- Puzzle pictures: six tiles that assemble as you scroll ---------- */

.tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  aspect-ratio: 1023 / 430;
}
.tile {
  --p: var(--assemble, 1);
  position: relative;
  background: url("/assets/img/screens/puzzle-pictures.webp") 0 0 / 300% 200% no-repeat;
  border-radius: calc((1 - var(--p)) * 16px);
  opacity: calc(.25 + .75 * var(--p));
  transform:
    translate(calc(var(--dx) * (1 - var(--p))), calc(var(--dy) * (1 - var(--p))))
    rotate(calc(var(--r) * (1 - var(--p))))
    scale(calc(.82 + .18 * var(--p)));
  transition: scale .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s ease;
}
.tile:nth-child(1) { --dx: -45%; --dy: -35%; --r: -16deg; background-position: 0 0; border-top-left-radius: 18px; }
.tile:nth-child(2) { --dx: 0%; --dy: -55%; --r: 9deg; background-position: 50% 0; }
.tile:nth-child(3) { --dx: 45%; --dy: -35%; --r: 14deg; background-position: 100% 0; border-top-right-radius: 18px; }
.tile:nth-child(4) { --dx: -45%; --dy: 35%; --r: 11deg; background-position: 0 100%; border-bottom-left-radius: 18px; }
.tile:nth-child(5) { --dx: 0%; --dy: 55%; --r: -9deg; background-position: 50% 100%; }
.tile:nth-child(6) { --dx: 45%; --dy: 35%; --r: -14deg; background-position: 100% 100%; border-bottom-right-radius: 18px; }
.tile::after {
  content: attr(data-name);
  position: absolute;
  left: 8px;
  bottom: 8px;
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .94);
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: .8rem;
  opacity: 0;
  translate: 0 6px;
  transition: opacity .25s ease, translate .25s ease;
}
@media (hover: hover) {
  .tile:hover { z-index: 1; scale: 1.06; box-shadow: 0 12px 26px rgba(38, 36, 41, .25); border-radius: 12px; }
  .tile:hover::after { opacity: 1; translate: none; }
}

/* ---------- Playable 3-tap reveal ---------- */

@keyframes wiggle {
  0%, 100% { rotate: 0deg; }
  20% { rotate: -3deg; }
  40% { rotate: 3deg; }
  60% { rotate: -2deg; }
  80% { rotate: 1deg; }
}
@keyframes spark {
  0% { opacity: 1; translate: 0 0; scale: .4; }
  100% { opacity: 0; translate: var(--sx) var(--sy); scale: 1; }
}

.tap-demo {
  display: grid;
  gap: 28px;
  align-items: center;
  margin-top: clamp(40px, 6vw, 72px);
  padding: clamp(22px, 3vw, 40px);
}
@media (min-width: 760px) { .tap-demo { grid-template-columns: 1fr 1.15fr; } }
.tap-demo h3 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2.1rem); }
.tap-demo p { color: var(--text-secondary); }
.tap-demo__status { min-height: 1.6em; font-family: var(--font-display); font-weight: 800; color: var(--periwinkle-ink) !important; }

.cover {
  position: relative;
  justify-self: center;
  width: 100%;
  max-width: 470px;
  aspect-ratio: 341 / 215;
  padding: 0;
  border: 0;
  border-radius: 20px;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.cover:focus-visible { outline-offset: 6px; border-radius: 20px; }
.cover.is-wiggling { animation: wiggle .5s ease; }
.cover__picture {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: url("/assets/img/screens/puzzle-pictures.webp") 50% 100% / 300% 200% no-repeat;
  box-shadow: 0 14px 30px rgba(38, 36, 41, .18);
  scale: .92;
  transition: scale 1s cubic-bezier(.2, .7, .2, 1) .15s;
}
.cover.is-open .cover__picture { scale: 1; }
.cover__strips { position: absolute; inset: 0; display: flex; filter: drop-shadow(0 10px 18px rgba(107, 112, 235, .3)); }
.cover__strips span {
  flex: 1;
  background: var(--gradient);
  background-size: 500% 100%;
  transition: transform .9s cubic-bezier(.55, 0, .75, .1), opacity .5s ease .35s;
}
.cover__strips span + span { border-left: 2px solid rgba(255, 255, 255, .75); }
.cover__strips span:nth-child(1) { background-position: 0 0; border-radius: 20px 0 0 20px; --fy: -150%; --fr: -26deg; }
.cover__strips span:nth-child(2) { background-position: 25% 0; --fy: -185%; --fr: 15deg; transition-delay: .04s, .39s; }
.cover__strips span:nth-child(3) { background-position: 50% 0; --fy: -210%; --fr: -7deg; transition-delay: .08s, .43s; }
.cover__strips span:nth-child(4) { background-position: 75% 0; --fy: -185%; --fr: 19deg; transition-delay: .12s, .47s; }
.cover__strips span:nth-child(5) { background-position: 100% 0; border-radius: 0 20px 20px 0; --fy: -150%; --fr: -22deg; transition-delay: .16s, .51s; }
.cover.tap-2 .cover__strips span:nth-child(odd) { transform: translateY(-7px) rotate(-1.5deg); transition-duration: .4s; }
.cover.tap-2 .cover__strips span:nth-child(even) { transform: translateY(6px) rotate(1.5deg); transition-duration: .4s; }
.cover.is-open .cover__strips span { transform: translateY(var(--fy)) rotate(var(--fr)); opacity: 0; }
.cover__piece {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  pointer-events: none;
  transition: scale .5s cubic-bezier(.34, 1.56, .64, 1), opacity .3s ease;
}
.cover__piece .icon { width: 64px; height: 64px; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .2)); }
.cover.tap-1 .cover__piece { scale: 1.15; }
.cover.tap-2 .cover__piece { scale: 1.35; }
.cover.is-open .cover__piece { scale: 2; opacity: 0; }
.cover__sparks { position: absolute; left: 50%; top: 50%; pointer-events: none; }
.cover__sparks span {
  position: absolute;
  width: 12px; height: 12px;
  margin: -6px;
  border-radius: 50%;
  background: var(--coral);
  opacity: 0;
}
.cover__sparks span:nth-child(1) { --sx: -170px; --sy: -90px; }
.cover__sparks span:nth-child(2) { --sx: 160px; --sy: -110px; background: var(--periwinkle); }
.cover__sparks span:nth-child(3) { --sx: -120px; --sy: 110px; background: var(--grape); }
.cover__sparks span:nth-child(4) { --sx: 190px; --sy: 70px; }
.cover__sparks span:nth-child(5) { --sx: 10px; --sy: -150px; background: var(--success); }
.cover__sparks span:nth-child(6) { --sx: -10px; --sy: 140px; background: var(--periwinkle); }
.cover.is-open .cover__sparks span { animation: spark .9s cubic-bezier(.2, .7, .2, 1) .25s; }

/* ---------- Get the app: slowly turning gradient behind the card ---------- */

@keyframes band-spin { to { rotate: 1turn; } }
.get__band { position: relative; overflow: hidden; isolation: isolate; }
.get__band::before {
  content: "";
  position: absolute;
  inset: -60%;
  z-index: -1;
  background: conic-gradient(from 0deg, var(--periwinkle), var(--grape), var(--coral), #FFB199, var(--periwinkle));
  animation: band-spin 24s linear infinite;
}

/* ---------- Reduced motion: keep everything visible and still ---------- */

@media (prefers-reduced-motion: reduce) {
  .hero__copy > *, .hero__stage .phone, .hero__badge, .cover, .cover__sparks span, .get__band::before { animation: none !important; }
  .reveal { opacity: 1; translate: none; transition: none; }
  .screens > .screen { scale: 1; transition: none; }
  .hero__tilt, .track { transform: none; }
  .track__peek .phone, .hero__stage .phone--front, .hero__badge { transform: none; }
  .tile { --p: 1; transition: none; }
  .cover__strips span, .cover__picture, .cover__piece { transition-duration: .01s !important; transition-delay: 0s !important; }
  .btn:hover, a.store-btn[href]:hover { translate: none; }
}
@media (prefers-reduced-motion: reduce) and (min-width: 900px) {
  .hero__stage .phone--front { transform: translateX(40px); }
  .hero__stage .phone--back { transform: rotate(-6deg); }
}
