/* Little Adders — youngmindsandnumbers.com */
:root {
  --bg: #EAF3FA;
  --paper: #FFFFFF;
  --ink: #1D2A52;
  --muted: #55607F;
  --line: #CFDDEA;
  --sun: #FFC53D;
  --sun-ink: #3A2A00;
  --leaf: #23875A;
  --leaf-hover: #1C7049;
  --on-leaf: #FFFFFF;
  --coral: #E4553F;
  --sky: #3B82C4;
  --display: "Sniglet", "Chalkboard SE", "Comic Sans MS", system-ui, sans-serif;
  --body: "Atkinson Hyperlegible", "Segoe UI", system-ui, -apple-system, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #101831; --paper: #182449; --ink: #EEF2FB; --muted: #A9B4D2; --line: #2B3A66;
    --sun: #FFCF5C; --sun-ink: #2B1F00; --leaf: #3DBB82; --leaf-hover: #52CC94; --on-leaf: #0B1A12;
    --coral: #FF8A73; --sky: #7DB6EA; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #101831; --paper: #182449; --ink: #EEF2FB; --muted: #A9B4D2; --line: #2B3A66;
  --sun: #FFCF5C; --sun-ink: #2B1F00; --leaf: #3DBB82; --leaf-hover: #52CC94; --on-leaf: #0B1A12;
  --coral: #FF8A73; --sky: #7DB6EA; color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 17px/1.6 var(--body);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sky); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.12; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2.3rem, 6vw, 3.9rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
h3 { font-size: 1.35rem; }
p { margin: 0; }

.wrap { width: 100%; max-width: 1100px; margin-inline: auto; padding-inline: 20px; }

/* Header */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--display); font-size: 1.35rem; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 11px; background: var(--sun); color: var(--sun-ink);
  display: grid; place-items: center; font-size: 1.7rem; line-height: 1; transform: rotate(-6deg);
}
.nav { display: flex; align-items: center; gap: 20px; }
.nav a:not(.buy) { color: var(--ink); text-decoration: none; font-weight: 700; font-size: 0.95rem; }
.nav a:not(.buy):hover { color: var(--sky); }
@media (max-width: 720px) { .nav a:not(.buy) { display: none; } }

/* Buy button — the one call to action, used on every page */
.buy {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--leaf); color: var(--on-leaf); text-decoration: none;
  font-weight: 700; padding: 12px 14px 12px 20px; border-radius: 999px;
  box-shadow: 0 4px 0 color-mix(in srgb, var(--leaf) 55%, #000);
  transition: transform .12s ease, background .12s ease, box-shadow .12s ease;
}
.buy:hover { background: var(--leaf-hover); transform: translateY(-1px); }
.buy:active { transform: translateY(3px); box-shadow: 0 1px 0 color-mix(in srgb, var(--leaf) 55%, #000); }
.buy .price { background: var(--sun); color: var(--sun-ink); border-radius: 999px; padding: 2px 10px; font-size: 0.9rem; font-variant-numeric: tabular-nums; }
.buy.small { padding: 8px 10px 8px 16px; font-size: 0.95rem; box-shadow: 0 3px 0 color-mix(in srgb, var(--leaf) 55%, #000); }
.buy-note { color: var(--muted); font-size: 0.9rem; }

/* Hero */
.hero .wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; padding-block: 56px 40px; }
.hero-copy { display: flex; flex-direction: column; gap: 22px; }
.eyebrow { font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.8rem; color: var(--coral); }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 36ch; }
.equation { font-family: var(--display); color: var(--ink); text-wrap: balance; }
.equation .op { color: var(--coral); }
.equation .ans { background: var(--sun); color: var(--sun-ink); border-radius: 12px; padding: 0 12px; display: inline-block; transform: rotate(3deg); }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; }
.phone {
  justify-self: center; width: min(300px, 100%); border-radius: 38px; padding: 10px;
  background: var(--ink); box-shadow: 0 24px 50px -20px rgb(20 30 70 / .45);
  transform: rotate(2.5deg);
}
.phone img { border-radius: 29px; width: 100%; aspect-ratio: 600 / 1304; object-fit: cover; background: var(--paper); }
@media (max-width: 820px) {
  .hero .wrap { grid-template-columns: 1fr; padding-block: 36px 24px; gap: 36px; }
  .phone { width: min(250px, 80%); }
}

/* Languages strip */
.langs { padding-block: 40px; }
.langs-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 12px; margin-bottom: 20px; }
.langs-head p { color: var(--muted); max-width: 46ch; }
.lang-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); gap: 12px; list-style: none; padding: 0; margin: 0; }
.lang-grid li { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 14px 18px; display: flex; flex-direction: column; gap: 4px; }
.lang-grid .code { font-weight: 700; font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.lang-grid .say { font-family: var(--display); font-size: 1.2rem; }

/* Features */
.section { padding-block: 56px; }
.section-head { display: flex; flex-direction: column; gap: 10px; margin-bottom: 32px; max-width: 60ch; }
.section-head p { color: var(--muted); }
.games { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.game { display: flex; flex-direction: column; gap: 12px; }
.game figure { margin: 0; background: var(--paper); border: 1px solid var(--line); border-radius: 22px; padding: 8px; }
.game img { border-radius: 16px; aspect-ratio: 600 / 1304; object-fit: cover; width: 100%; background: var(--bg); }
.game p { color: var(--muted); font-size: 0.97rem; }
@media (max-width: 860px) { .games { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 440px) { .games { grid-template-columns: 1fr; max-width: 280px; margin-inline: auto; } }

.band { background: var(--paper); border-block: 1px solid var(--line); }
.progress .wrap { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 48px; align-items: center; }
.progress .phone { transform: rotate(-2deg); }
.progress-copy { display: flex; flex-direction: column; gap: 18px; }
.checks { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.checks li { display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: start; }
.checks li::before {
  content: "+"; font-family: var(--display); font-size: 1.2rem; line-height: 1;
  width: 28px; height: 28px; border-radius: 9px; background: var(--sun); color: var(--sun-ink);
  display: grid; place-items: center; margin-top: 1px;
}
@media (max-width: 820px) { .progress .wrap { grid-template-columns: 1fr; } .progress .phone { order: 2; } }

/* Facts */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; background: var(--paper); margin: 0; }
.facts div { padding: 20px 22px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.facts div:last-child { border-right: 0; }
.facts dt { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 0; font-family: var(--display); font-size: 1.35rem; }
@media (max-width: 820px) {
  .facts { grid-template-columns: 1fr 1fr; }
  .facts div:nth-child(2) { border-right: 0; }
  .facts div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

/* Closing CTA */
.closing { text-align: center; }
.closing .wrap { display: flex; flex-direction: column; align-items: center; gap: 18px; padding-block: 64px; }
.closing .equation { font-size: clamp(2.6rem, 8vw, 4.5rem); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 0.93rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding-block: 28px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
.site-footer a { color: var(--ink); }

/* Text pages (privacy, support) */
.doc .wrap { max-width: 760px; padding-block: 48px 64px; display: flex; flex-direction: column; gap: 18px; }
.doc h2 { font-size: 1.6rem; margin-top: 18px; }
.doc p, .doc li { max-width: 65ch; }
.doc ul { margin: 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: 6px; }
.doc .updated { color: var(--muted); font-size: 0.95rem; }
.contact-card { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.contact-card .email { font-family: var(--display); font-size: 1.4rem; word-break: break-all; }
.faq { display: flex; flex-direction: column; gap: 10px; }
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; }
.faq summary { cursor: pointer; font-weight: 700; }
.faq details p { margin-top: 10px; color: var(--muted); }
.doc-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 12px; }

/* Languages section with phone */
.langs-layout { display: grid; grid-template-columns: 260px 1fr; gap: 48px; align-items: center; }
.langs-layout .phone { transform: rotate(-2deg); width: 100%; }
.langs-body { min-width: 0; }
@media (max-width: 820px) {
  .langs-layout { grid-template-columns: 1fr; gap: 32px; }
  .langs-layout .phone { width: min(230px, 75%); order: 2; }
}
