/* Kidpova website. Values come from assets/tokens.css (brand v0.1). Mobile-first. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0; background: var(--rice); color: var(--ink);
  font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.6;
}
img, svg { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 7vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 5vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--teal-700); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--sky-500); outline-offset: 3px; border-radius: 6px; }
[lang="hi"] { line-height: 1.8; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.section { padding: 64px 0; }
.section--tint { background: var(--teal-100); }
.section--sky { background: var(--sky-100); }
.eyebrow { font-family: var(--font-display); font-weight: 700; color: var(--teal-700); font-size: .95rem; letter-spacing: .04em; margin-bottom: .4em; }
.lead { font-size: 1.15rem; color: var(--slate); max-width: 40em; }
.muted { color: var(--slate); }
.small { font-size: .9rem; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: var(--radius-sm); z-index: 10; }
.skip:focus { left: 8px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Wordmark B: lowercase Baloo 2 ExtraBold, sprout replaces the dot of the i */
.wm { font-family: var(--font-display); font-weight: 800; letter-spacing: -.02em; line-height: 1; white-space: nowrap; display: inline-block; color: var(--ink); text-decoration: none; }
.wm .i { position: relative; display: inline-block; }
.wm .i svg { position: absolute; left: 50%; bottom: .62em; width: .44em; height: auto; transform: translateX(-46%); overflow: visible; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 5; background: rgba(255, 248, 238, .94); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.site-header .wm { font-size: 1.9rem; padding-top: 6px; }
.nav { display: none; gap: 22px; font-family: var(--font-display); font-weight: 600; }
.nav a { color: var(--ink); text-decoration: none; }
.nav a:hover { color: var(--teal-700); text-decoration: underline; }
.lang-soon { font-size: .85rem; color: var(--slate); white-space: nowrap; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 22px;
  border: 0; border-radius: var(--radius-pill); background: var(--teal-700); color: var(--white);
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; text-decoration: none; cursor: pointer;
  transition: transform var(--motion-tap) var(--motion-ease-in), background var(--motion-tap);
}
.btn:hover { background: var(--ink); color: var(--white); }
.btn:active { transform: scale(.97); }
.btn--small { min-height: 44px; padding: 8px 18px; font-size: .95rem; }
.btn[disabled] { opacity: .7; cursor: progress; }

/* Hero */
.hero { padding: 36px 0 56px; overflow: hidden; }
.hero .wrap { display: grid; gap: 28px; }
.hero-art { position: relative; width: min(210px, 56vw); margin: 0 auto; order: -1; }
.hero-art::before { content: ""; position: absolute; inset: 8% 4% 4%; border-radius: 50%; background: var(--teal-100); }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: var(--radius-pill); background: var(--sky-100); color: var(--ink); font-family: var(--font-display); font-weight: 700; font-size: .95rem; margin-bottom: 14px; }
.pill svg { width: 18px; height: 18px; }
.hero .lead { margin-bottom: 1.4em; }

/* Pova art (rendered by js/main.js from pova.js). Space is reserved so nothing shifts. */
.pova { position: relative; aspect-ratio: 272 / 232; width: 100%; }
.pova svg { width: 100%; height: 100%; }
@media (prefers-reduced-motion: no-preference) {
  .pova--breath svg { transform-origin: 50% 92%; animation: breath var(--motion-idle-breath) ease-in-out infinite; }
}
@keyframes breath { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.018, 1.03); } }

/* Notify form */
.notify { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px; max-width: 520px; box-shadow: 0 8px 24px rgba(27, 43, 68, .06); }
.notify h2 { font-size: 1.35rem; margin-bottom: .2em; }
.notify > p { margin-bottom: 14px; }
.field { margin-bottom: 14px; }
.field label, .field legend { display: block; font-weight: 700; margin-bottom: 6px; }
.field .opt { font-weight: 400; color: var(--slate); }
input[type="email"] {
  width: 100%; min-height: 48px; padding: 10px 14px; font: inherit; color: var(--ink);
  background: var(--rice); border: 2px solid var(--line); border-radius: var(--radius-sm);
}
input[type="email"]:focus { border-color: var(--teal); outline: none; box-shadow: 0 0 0 3px var(--teal-100); }
input[aria-invalid="true"] { border-color: var(--coral-600); }
fieldset { border: 0; padding: 0; margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 6px 16px; border: 2px solid var(--line); border-radius: var(--radius-pill); background: var(--rice); font-weight: 500; }
.chip input:checked + span { border-color: var(--teal-700); background: var(--teal-100); font-weight: 700; }
.chip input:focus-visible + span { outline: 3px solid var(--sky-500); outline-offset: 2px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.check input { width: 22px; height: 22px; margin: 3px 0 0; flex: none; accent-color: var(--teal-700); }
.consent { font-size: .88rem; color: var(--slate); margin: 4px 0 14px; }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.error { color: var(--coral-600); font-size: .9rem; font-weight: 700; margin-top: 6px; }
.error:empty { display: none; }
.form-status { margin-top: 12px; border-radius: var(--radius-md); }
.form-status:not(:empty) { padding: 14px 16px; background: var(--teal-100); }
.form-status.is-error { background: var(--coral-100); }
.form-status strong { font-family: var(--font-display); font-size: 1.1rem; display: block; }

/* At a glance */
.glance { padding-top: 8px; }
.facts { margin: 24px 0 0; display: grid; gap: 10px; }
.facts > div { display: grid; gap: 2px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 12px 16px; }
.facts dt { font-family: var(--font-display); font-weight: 700; color: var(--teal-700); }
.facts dd { margin: 0; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 16px; counter-reset: step; }
.step { background: var(--white); border-radius: var(--radius-lg); padding: 22px; border: 1px solid var(--line); position: relative; }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--teal-700); color: var(--white); font-family: var(--font-display); font-weight: 800; margin-bottom: 10px; }
.step p { margin: 0; color: var(--slate); }

/* Games */
.games { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 16px; }
.game { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px; display: grid; grid-template-columns: 64px 1fr; gap: 4px 16px; align-content: start; }
.game .glyph { grid-row: span 2; width: 64px; height: 64px; border-radius: var(--radius-md); background: var(--accent); display: grid; place-items: center; }
.game .glyph svg { width: 42px; height: 42px; }
.game h3 { margin: 4px 0 0; }
.game .skill { margin: 0; color: var(--slate); font-size: .95rem; }
.game .life { grid-column: 1 / -1; margin: 12px 0 0; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--rice); font-size: .95rem; }
.game .life b { font-family: var(--font-display); color: var(--teal-700); }
.tag { display: inline-block; margin-left: 6px; padding: 1px 10px; border-radius: var(--radius-pill); background: var(--sky-100); font-family: var(--font-body); font-size: .75rem; font-weight: 700; vertical-align: middle; }

/* Meet Pova */
.split { display: grid; gap: 28px; align-items: center; }
.split .art { width: min(260px, 70vw); margin: 0 auto; }
.never { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 8px; }
.never li { display: flex; gap: 10px; align-items: flex-start; }
.never li::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 4px; border-radius: 50%; background: var(--teal-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.6 2.6L14 7.6' stroke='%230E6B66' stroke-width='2.4' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat; }
.bubble { display: inline-block; background: var(--white); border: 2px solid var(--line); border-radius: 18px 18px 18px 4px; padding: 6px 14px; font-family: var(--font-display); font-weight: 700; margin-bottom: 12px; }

/* Screen to life */
.life-cards { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.life-cards li { background: var(--white); border-radius: var(--radius-md); padding: 16px 18px; border-left: 6px solid var(--accent); }
.life-cards b { font-family: var(--font-display); display: block; }

/* Safety + languages */
.features { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 16px; }
.feature { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px; }
.feature .ic { width: 48px; height: 48px; border-radius: 14px; background: var(--teal-100); display: grid; place-items: center; margin-bottom: 10px; }
.feature .ic svg { width: 28px; height: 28px; }
.feature p { margin: 0; color: var(--slate); }
.lang-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.lang-card { flex: 1 1 220px; background: var(--white); border-radius: var(--radius-lg); padding: 18px 20px; border: 1px solid var(--line); }
.lang-card .say { font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; color: var(--teal-700); }

/* Founder note */
.note { background: var(--white); border: 2px dashed var(--line); border-radius: var(--radius-lg); padding: 24px; max-width: 720px; }
.draft-flag { display: inline-block; background: var(--sun-100); color: var(--ink); font-weight: 700; font-size: .85rem; padding: 2px 10px; border-radius: var(--radius-pill); margin-bottom: 12px; }
.ph { background: var(--sun-100); padding: 0 4px; border-radius: 4px; }

/* FAQ */
.faq { max-width: 760px; margin-top: 24px; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 16px 48px 16px 18px; font-family: var(--font-display); font-weight: 700; font-size: 1.08rem; list-style: none; position: relative; min-height: 48px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--teal-700); }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 18px 4px; color: var(--slate); }

/* CTA band + footer */
.cta-band { background: var(--teal-700); color: var(--white); text-align: center; }
.cta-band h2 { color: var(--white); }
.cta-band p { color: var(--teal-100); }
.cta-band .btn { background: var(--rice); color: var(--ink); }
.cta-band .btn:hover { background: var(--white); }
.site-footer { background: var(--ink); color: var(--rice); padding: 40px 0; }
.site-footer .wrap { display: grid; gap: 14px; }
.site-footer .wm { color: var(--rice); font-size: 2rem; }
.site-footer a { color: var(--rice); }
.site-footer .row { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: .95rem; }
.site-footer .lang-soon { color: var(--teal-100); }

/* Simple pages (privacy, 404) */
.page { padding: 40px 0 64px; }
.page .wrap { max-width: 760px; }
.page h2 { font-size: 1.5rem; margin-top: 1.6em; }
.page ul { padding-left: 1.2em; }
.banner { background: var(--sun-100); border-radius: var(--radius-md); padding: 14px 18px; margin-bottom: 24px; font-weight: 500; }
.lost { text-align: center; }
.lost .pova { width: min(260px, 70vw); margin: 0 auto 12px; }

@media (min-width: 640px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .feature:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .games, .life-cards { grid-template-columns: repeat(2, 1fr); }
  .notify { padding: 26px; }
}
@media (min-width: 900px) {
  .section { padding: 88px 0; }
  .nav { display: flex; }
  .hero { padding: 64px 0 88px; }
  .hero .wrap { grid-template-columns: 1.15fr .85fr; align-items: center; gap: 48px; }
  .hero-art { order: 0; width: 100%; max-width: 400px; }
  .games { grid-template-columns: repeat(3, 1fr); }
  /* 5 cards: 3 on the first row, 2 wider ones below */
  .features { grid-template-columns: repeat(6, 1fr); }
  .feature { grid-column: span 2; }
  .feature:nth-child(n+4), .feature:last-child:nth-child(odd) { grid-column: span 3; }
  .split .life-cards { grid-template-columns: 1fr; }
  .split { grid-template-columns: .8fr 1.2fr; gap: 56px; }
  .split .art { width: 100%; max-width: 320px; }
  .site-footer .wrap { grid-template-columns: auto 1fr; align-items: center; }
  .site-footer .row { justify-content: flex-end; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

@media (min-width: 640px) { .facts { grid-template-columns: repeat(2, 1fr); } }
.section.glance { padding-top: 0; }
.facts > div { align-content: start; }
