/* ZuzuKids — one stylesheet for the site and the policy pages.
   Same palette as the app: a parent who taps "Privacy Policy" from the
   marketing page should not feel they have left. No web fonts: the site
   makes no third-party request at all, which is the claim it is making. */

:root {
  --bg: #fff9f2;
  --bg-deep: #fdf1e2;
  --surface: #ffffff;
  --raised: #fdf6ee;
  --text: #2a2118;
  --muted: #6b5d4e;
  --accent: #ee6412;
  --accent-soft: #ffa94d;
  --accent-wash: #fff1e3;
  --line: #eadbc8;
  --good: #2e7d32;
  --gold: #e8a317;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(122, 78, 39, .05), 0 12px 32px -18px rgba(122, 78, 39, .35);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14110e;
    --bg-deep: #191510;
    --surface: #201b15;
    --raised: #262019;
    --text: #f5efe7;
    --muted: #b5a899;
    --accent: #ff9145;
    --accent-soft: #ffbe7a;
    --accent-wash: #2c2016;
    --line: #342c23;
    --good: #66bb6a;
    --gold: #ffc94a;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px -18px rgba(0, 0, 0, .8);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* height:auto matters: the width/height attributes are on every <img> so the
   browser can reserve the space before the file arrives, and without this they
   would also fix the rendered height. */
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 22px; }
.narrow { max-width: 720px; }

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

.site-head {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-head .wrap {
  display: flex; align-items: center; gap: 18px;
  min-height: 62px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 18px; letter-spacing: -.01em;
  color: var(--text); text-decoration: none;
}
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.site-nav { margin-left: auto; display: flex; gap: 20px; align-items: center; }
.site-nav a { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500; }
.site-nav a:hover { color: var(--text); }
@media (max-width: 760px) { .site-nav { display: none; } }

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

.hero {
  background: linear-gradient(168deg, var(--bg) 0%, var(--bg-deep) 100%);
  border-bottom: 1px solid var(--line);
  padding: 64px 0 0;
  overflow: hidden;
}
.hero-grid {
  display: grid; gap: 48px; align-items: center;
  grid-template-columns: 1.05fr .95fr;
}
@media (max-width: 880px) {
  .hero { padding-top: 44px; }
  .hero-grid { grid-template-columns: 1fr; gap: 30px; }
}

.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 14px;
}
h1 {
  font-size: clamp(34px, 5.2vw, 54px); line-height: 1.08;
  letter-spacing: -.028em; font-weight: 800; margin: 0 0 18px;
}
.lede { font-size: clamp(17px, 2.1vw, 20px); color: var(--muted); margin: 0 0 26px; max-width: 34em; }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.store-badge {
  display: inline-flex; align-items: center; gap: 11px;
  background: var(--text); color: var(--bg);
  padding: 12px 22px; border-radius: 999px;
  font-weight: 650; font-size: 16px; text-decoration: none;
}
.store-badge small { display: block; font-size: 11px; opacity: .7; font-weight: 500; letter-spacing: .04em; }
.store-badge.soon { background: var(--raised); color: var(--text); border: 1px dashed var(--accent); }
.ghost-link { color: var(--muted); font-size: 15px; text-decoration: none; font-weight: 500; }
.ghost-link:hover { color: var(--accent); }

.hero-shot { position: relative; }
.hero-shot img {
  width: 100%; max-width: 320px; margin: 0 auto;
  border-radius: 26px; box-shadow: var(--shadow);
}

/* --- Trust strip ------------------------------------------------------- */

.trust {
  display: flex; flex-wrap: wrap; gap: 10px;
  padding: 28px 0 40px; margin: 0;
  list-style: none;
}
.trust li {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 999px; padding: 8px 16px;
  font-size: 14.5px; font-weight: 600; color: var(--text);
  box-shadow: var(--shadow);
}
.trust .tick { color: var(--good); font-weight: 800; }

/* --- Sections ---------------------------------------------------------- */

section { padding: 62px 0; border-top: 1px solid var(--line); }
section:first-of-type { border-top: 0; }
h2 {
  font-size: clamp(25px, 3.4vw, 33px); line-height: 1.18;
  letter-spacing: -.022em; font-weight: 800; margin: 0 0 14px;
}
h3 { font-size: 19px; font-weight: 700; margin: 0 0 8px; letter-spacing: -.01em; }
.section-lede { color: var(--muted); max-width: 40em; margin: 0 0 34px; font-size: 17.5px; }

.cards { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(248px, 1fr)); }
/* Four of a kind read as one row or two even pairs, never three and a stray. */
.cards.four { grid-template-columns: repeat(auto-fit, minmax(228px, 1fr)); }
@media (max-width: 1010px) and (min-width: 560px) { .cards.four { grid-template-columns: repeat(2, 1fr); } }
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px;
  box-shadow: var(--shadow);
}
.card p { margin: 0; color: var(--muted); font-size: 16px; }
.card .glyph { font-size: 25px; line-height: 1; margin-bottom: 13px; }

/* The teaching-order proof, the part a sceptical parent reads twice. */
.proof { background: var(--accent-wash); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 28px; }
.proof p { margin: 0 0 12px; }
.proof p:last-child { margin-bottom: 0; }
.letters {
  font-size: 21px; font-weight: 700; letter-spacing: .18em;
  color: var(--accent); display: block; margin: 4px 0 10px;
}

/* --- Screenshot rail --------------------------------------------------- */

.rail {
  display: flex; gap: 18px; overflow-x: auto;
  padding: 4px 22px 22px; margin: 0 -22px;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
}
.rail figure { margin: 0; flex: 0 0 250px; scroll-snap-align: center; }
.rail img { border-radius: 20px; box-shadow: var(--shadow); }
.rail figcaption { font-size: 14.5px; color: var(--muted); margin-top: 12px; text-align: center; }

/* --- Language grid ----------------------------------------------------- */

.langs { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(238px, 1fr)); padding: 0; margin: 0; list-style: none; }
.langs li {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; padding: 15px 17px;
}
.langs .script { font-size: 21px; font-weight: 700; letter-spacing: .04em; margin-bottom: 2px; }
.langs .name { font-size: 14px; color: var(--muted); }

/* --- Pricing ----------------------------------------------------------- */

.plans { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.plan.featured { border-color: var(--accent); }
.plan h3 { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.plan .price { font-size: 15px; font-weight: 700; color: var(--accent); white-space: nowrap; }
.plan ul { margin: 14px 0 0; padding-left: 20px; color: var(--muted); font-size: 16px; }
.plan li { margin: 7px 0; }

/* --- FAQ --------------------------------------------------------------- */

.faq details {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; padding: 16px 20px; margin-bottom: 11px;
}
.faq summary {
  cursor: pointer; font-weight: 650; font-size: 17px;
  list-style: none; display: flex; justify-content: space-between; gap: 14px; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-weight: 700; font-size: 21px; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--muted); margin: 12px 0 0; font-size: 16px; }

/* --- Policy pages ------------------------------------------------------ */

.doc { padding: 52px 0 80px; }
.doc h1 { font-size: clamp(28px, 4vw, 38px); margin-bottom: 6px; }
.doc h2 { font-size: 21px; margin: 36px 0 10px; }
.doc p, .doc li { color: var(--muted); }
.doc strong { color: var(--text); }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.badge {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px;
  color: var(--accent); background: var(--accent-wash);
  border: 1px solid color-mix(in srgb, var(--accent) 32%, transparent);
  padding: 6px 13px; border-radius: 999px; font-weight: 650;
}
.updated { color: var(--muted); font-size: 14.5px; margin: 0 0 30px; }
.panel {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px 26px; margin: 26px 0;
  box-shadow: var(--shadow);
}
.panel h2 { margin-top: 0; }
.panel p:last-child { margin-bottom: 0; }

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

.site-foot {
  border-top: 1px solid var(--line);
  background: var(--bg-deep);
  padding: 40px 0 52px;
  font-size: 15px; color: var(--muted);
}
.foot-grid { display: flex; flex-wrap: wrap; gap: 22px 40px; align-items: flex-start; justify-content: space-between; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-foot a { color: var(--muted); text-decoration: none; }
.site-foot a:hover { color: var(--accent); text-decoration: underline; }
.fine { font-size: 13.5px; margin: 26px 0 0; max-width: 52em; }
