:root {
  --bg: #fffaf2;
  --surface: #ffffff;
  --text: #2a2438;
  --muted: #6b6478;
  --line: #ece4d8;
  --accent: #ff7a3d;
  --accent-ink: #ffffff;
  --coloring: #ffd6a8;
  --puzzle: #bfe3ff;
  --radius: 24px;
  --max: 1080px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17141f;
    --surface: #221e2d;
    --text: #f4effa;
    --muted: #b1a9c0;
    --line: #342e42;
    --accent: #ff9460;
    --accent-ink: #1b1424;
    --coloring: #5a3a24;
    --puzzle: #1f4566;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 "Nunito", ui-rounded, system-ui, -apple-system, "Segoe UI", sans-serif;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 68px; flex-wrap: wrap;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 900; font-size: 22px; color: var(--text); text-decoration: none;
}
.logo img { width: 36px; height: 36px; border-radius: 10px; background: var(--coloring); }
.nav { display: flex; gap: 6px; flex-wrap: wrap; }
.nav a {
  color: var(--muted); text-decoration: none; font-weight: 700;
  padding: 6px 12px; border-radius: 999px;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); background: var(--surface); }

/* Hero */
.hero { padding: 72px 0 48px; text-align: center; }
.hero h1 {
  font-size: clamp(34px, 6vw, 58px); line-height: 1.1; margin: 0 0 16px;
  font-weight: 900; letter-spacing: -0.02em;
}
.hero p { font-size: clamp(18px, 2.2vw, 21px); color: var(--muted); max-width: 640px; margin: 0 auto; }
.badges { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 28px; padding: 0; list-style: none; }
.badges li {
  background: var(--surface); border: 1px solid var(--line);
  padding: 6px 14px; border-radius: 999px; font-weight: 700; font-size: 15px;
}

/* Apps */
.apps { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; padding-bottom: 32px; }
.app {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; display: flex; flex-direction: column; gap: 14px;
}
.app-icon { width: 120px; height: 120px; border-radius: 28px; padding: 8px; }
.app--coloring .app-icon { background: var(--coloring); }
.app--puzzle .app-icon { background: var(--puzzle); }
.app h2 { margin: 4px 0 0; font-size: 28px; font-weight: 900; }
.app .age { color: var(--muted); font-weight: 700; margin: 0; }
.app ul { margin: 0; padding-left: 20px; }
.app li { margin: 4px 0; }
.btn {
  align-self: flex-start; margin-top: auto;
  background: var(--accent); color: var(--accent-ink); text-decoration: none;
  font-weight: 800; padding: 12px 22px; border-radius: 999px;
}
.btn[aria-disabled="true"] { opacity: .65; cursor: default; }

/* Promise */
.promise { padding: 40px 0 64px; }
.promise h2 { text-align: center; font-size: 30px; font-weight: 900; margin: 0 0 24px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 20px; }
.card h3 { margin: 0 0 6px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }

/* Legal docs */
.doc { max-width: 760px; margin: 0 auto; padding: 48px 20px 72px; }
.doc h1 { font-size: clamp(30px, 5vw, 42px); font-weight: 900; line-height: 1.15; margin: 0 0 6px; }
.doc .updated { color: var(--muted); margin: 0 0 28px; }
.doc h2 { font-size: 23px; font-weight: 900; margin: 40px 0 10px; }
.doc li { margin: 6px 0; }
.doc .summary {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 18px; padding: 4px 24px 12px; margin: 24px 0;
}
.doc .summary h2 { margin-top: 18px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; }
.site-footer .wrap {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 24px; padding-bottom: 32px;
}
.site-footer nav { display: flex; gap: 16px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }
