/* Pip Phonics — landing. Tokens from docs/06. Fonts are self-hosted (no third-party requests). */
@font-face { font-family: "Andika"; src: url("fonts/Andika-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Andika"; src: url("fonts/Andika-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Baloo 2"; src: url("fonts/Baloo2-Variable.ttf") format("truetype"); font-weight: 400 800; font-display: swap; }
@font-face { font-family: "Nunito Sans"; src: url("fonts/NunitoSans-Variable.ttf") format("truetype"); font-weight: 200 1000; font-display: swap; }

:root {
  --ink: #1E1B3A; --sound1: #2563D9; --vowel: #D61F69; --vowel-strong: #C81E64; --sound3: #15803D;
  --pip: #157F45; --pip-deep: #0E5A31; --sun: #FFC93C; --orange-strong: #B4500E; --purple-strong: #7330B3;
  --sky: #F3F6FF; --paper: #F6F7FB; --slate: #4A4766; --slate2: #5B5878; --border: #E1E4EE; --blue-deep: #1D4FB0;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: "Nunito Sans", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--blue-deep); }
a:hover { color: #163C86; }
h1, h2, h3, .baloo { font-family: "Baloo 2", system-ui, sans-serif; }
.andika { font-family: "Andika", sans-serif; font-weight: 700; }
.wrap { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.s1 { color: var(--sound1); } .v { color: var(--vowel); } .s3 { color: var(--sound3); }
.skip { position: absolute; left: -999px; } .skip:focus { left: 16px; top: 16px; z-index: 99; background: #fff; padding: 8px 12px; border-radius: 8px; }

/* Nav */
header { position: sticky; top: 0; z-index: 10; background: rgba(246,247,251,0.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
nav { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; padding-top: 14px; padding-bottom: 14px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex-grow: 1; }
.logo svg { width: 40px; height: 40px; }
.logo span { font-family: "Baloo 2", sans-serif; font-size: 28px; font-weight: 800; }
.logo b { color: var(--pip); font-weight: 800; }
.navlink { font-size: 16px; font-weight: 700; text-decoration: none; color: var(--ink); }
.lang { display: flex; gap: 6px; font-size: 14px; font-weight: 700; }
.lang a { text-decoration: none; color: var(--slate2); padding: 4px 6px; border-radius: 8px; }
.lang a[aria-current="true"] { color: var(--ink); background: #fff; border: 1px solid var(--border); }
.btn { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; border-radius: 999px; }
.btn-green { height: 44px; padding: 0 20px; background: var(--pip); color: #fff; font-size: 15px; }
.btn-green:hover { color: #fff; background: #12703D; }
.btn-ink { height: 58px; padding: 0 26px; background: var(--ink); color: #fff; font-size: 17px; }
.btn-ink:hover { color: #fff; }
.btn-outline { height: 58px; padding: 0 24px; border: 2px solid #C9CEDD; background: #fff; color: var(--ink); font-size: 17px; }
.btn-big { height: 64px; padding: 0 30px; background: var(--pip); box-shadow: 0 6px 0 var(--pip-deep); color: #fff; font-size: 19px; font-weight: 800; }
.btn-big:hover { color: #fff; }
.btn svg { width: 22px; height: 22px; flex: none; }

/* Hero */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; padding-top: 72px; padding-bottom: 88px; }
.hero-text { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.eyebrow { align-self: flex-start; font-size: 14px; font-weight: 800; letter-spacing: 1px; padding: 6px 14px; border-radius: 14px; }
.hero .eyebrow { color: var(--vowel-strong); background: #FCE1EC; }
h1 { margin: 0; font-size: 64px; font-weight: 800; line-height: 1.02; }
.lead { margin: 0; font-size: 20px; line-height: 1.55; color: var(--slate); max-width: 520px; }
.row { display: flex; flex-wrap: wrap; gap: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; font-size: 14px; font-weight: 700; color: var(--slate); }
.chips span { background: #fff; border: 1px solid var(--border); padding: 6px 12px; border-radius: 14px; }
.hero-device { flex: 0 1 625px; min-width: 0; display: flex; justify-content: center; }

/* iPad frame */
.ipad { width: 625px; max-width: 100%; padding: 14px; border-radius: 40px; background: var(--ink); box-shadow: 0 30px 60px rgba(30,27,58,0.25); }
.screen { aspect-ratio: 1194 / 830; width: 100%; overflow: hidden; border-radius: 26px; position: relative; background: #fff; }
.screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .35s ease; }
.screen img[hidden] { display: block; opacity: 0; }

/* How it works */
.how { background: #fff; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { display: flex; flex-direction: column; gap: 10px; }
.section-head .eyebrow { padding: 0; }
h2 { margin: 0; font-size: 46px; font-weight: 800; line-height: 1.05; }
.how-head { padding-top: 88px; padding-bottom: 40px; }
.how-head p { margin: 0; font-size: 19px; line-height: 1.55; color: var(--slate); max-width: 620px; }
.how-body { display: flex; flex-wrap: wrap; gap: 48px; padding-top: 24px; padding-bottom: 96px; }
.how-device { flex: 1 1 560px; min-width: 0; }
.sticky { position: sticky; top: 110px; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.dots { display: flex; gap: 8px; }
.dots span { width: 34px; height: 8px; border-radius: 4px; background: #D9DEEB; transition: background .3s; }
.dots span.on { background: var(--sound1); }
.steps { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; }
.step { min-height: 520px; display: flex; flex-direction: column; justify-content: center; gap: 12px; opacity: .35; transition: opacity .3s; }
.step.on { opacity: 1; }
.step .num { font-family: "Baloo 2", sans-serif; font-size: 22px; font-weight: 800; }
.step h3 { margin: 0; font-size: 36px; font-weight: 800; line-height: 1.1; }
.step p { margin: 0; font-size: 18px; line-height: 1.6; color: var(--slate); }
.tag { align-self: flex-start; font-size: 13px; font-weight: 700; padding: 4px 10px; border-radius: 10px; }

/* Cards */
.parents { padding-top: 96px; padding-bottom: 96px; display: flex; flex-direction: column; gap: 36px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.card { background: #fff; border: 1px solid var(--border); border-radius: 24px; padding: 26px; display: flex; flex-direction: column; gap: 10px; }
.card .icon { width: 48px; height: 48px; border-radius: 24px; display: flex; align-items: center; justify-content: center; }
.card .icon svg { width: 26px; height: 26px; }
.card h3 { margin: 0; font-family: "Nunito Sans", sans-serif; font-size: 20px; font-weight: 700; }
.card p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--slate); }

/* Research */
.research { background: var(--ink); color: #fff; }
.research .wrap { padding-top: 80px; padding-bottom: 80px; display: flex; flex-direction: column; gap: 28px; }
.research h2 { font-size: 40px; line-height: 1.1; }
.rcard { border: 1px solid #4A4470; border-radius: 22px; padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.rcard b { font-size: 18px; }
.rcard p { margin: 0; font-size: 16px; line-height: 1.55; color: #D6D3EE; }
.rcard small { font-size: 13px; color: #B9B5DA; }

/* Price */
.price { padding-top: 96px; padding-bottom: 96px; display: flex; flex-direction: column; gap: 36px; }
.price .section-head { align-items: center; text-align: center; }
.plans { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; }
.plan { flex: 1 1 320px; max-width: 440px; background: #fff; border: 1px solid var(--border); border-radius: 28px; padding: 32px; display: flex; flex-direction: column; gap: 14px; position: relative; }
.plan.full { border: 3px solid var(--sound1); box-shadow: 0 20px 40px rgba(37,99,217,0.12); }
.plan .badge { position: absolute; top: -16px; left: 28px; background: var(--sun); color: var(--ink); font-size: 13px; font-weight: 800; padding: 4px 12px; border-radius: 12px; }
.plan .name { font-family: "Baloo 2", sans-serif; font-size: 26px; font-weight: 800; }
.plan .amount { font-family: "Baloo 2", sans-serif; font-size: 52px; font-weight: 800; line-height: 1; }
.plan ul { margin: 0; padding-left: 20px; font-size: 16px; line-height: 1.8; color: var(--slate); }
.plan .note { font-size: 13px; font-weight: 700; color: var(--pip-deep); }

/* FAQ */
.faq { max-width: 820px; padding-bottom: 96px; display: flex; flex-direction: column; gap: 12px; }
.faq h2 { font-size: 36px; margin-bottom: 12px; }
details { background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 18px 22px; }
summary { font-size: 18px; font-weight: 700; cursor: pointer; }
details p { margin: 10px 0 0; font-size: 16px; line-height: 1.6; color: var(--slate); }

/* CTA + footer */
.cta { background: #FFF8E1; }
.cta .wrap { padding-top: 80px; padding-bottom: 80px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px; }
.cta-left { display: flex; align-items: center; gap: 20px; }
.cta-left svg { width: 96px; height: 111px; flex: none; }
.cta .brand { font-family: "Baloo 2", sans-serif; font-size: 22px; font-weight: 800; color: var(--pip); }
.cta h2 { font-size: 40px; line-height: 1.1; }
footer { border-top: 1px solid var(--border); }
footer .wrap { padding-top: 28px; padding-bottom: 28px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--slate2); }
footer .links { display: flex; gap: 20px; flex-wrap: wrap; }
.disclaimer { width: 100%; font-size: 13px; color: var(--slate2); }

/* Simple pages */
.page { max-width: 760px; margin: 0 auto; padding: 64px 24px 96px; }
.page h1 { font-size: 48px; margin-bottom: 24px; }
.page p, .page li { font-size: 17px; line-height: 1.65; color: var(--slate); }
.words { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0; }
.words span { font-family: "Andika", sans-serif; font-weight: 700; font-size: 34px; background: #fff; border: 2px solid #A9C1F5; border-radius: 16px; padding: 4px 16px; }

@media (max-width: 720px) {
  h1 { font-size: 46px; }
  h2 { font-size: 34px; }
  .hide-sm { display: none; }
  .ipad { padding: 10px; border-radius: 28px; }
  .screen { border-radius: 18px; }
  .step { min-height: 360px; }
  .how-device { position: sticky; top: 64px; z-index: 2; background: #fff; padding-bottom: 8px; }
  .sticky { position: static; }
}
