/* ABC Kids website. Colours and fonts match the app (kids_ui tokens).
   No external resources: fonts are self-hosted, nothing is tracked. */

@font-face {
  font-family: "Baloo 2";
  src: url("../fonts/Baloo2-Variable.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("../fonts/Nunito-Variable.woff2") format("woff2");
  font-weight: 200 1000;
  font-display: swap;
}

:root {
  --blue: #2f6fdb;
  --blue-dark: #1f56b8;
  --sun: #ffc83d;
  --coral: #ff7a59;
  --green: #1e8c4e;
  --purple: #8a5cd1;
  --pink: #d63c86;
  --ink: #1f2a44;
  --ink-soft: #4a5570;
  --cream: #fff8ec;
  --sky: #eaf4ff;
  --white: #fff;
  --radius: 28px;
  --shadow: 0 10px 30px rgba(31, 42, 68, 0.1);
  --display: "Baloo 2", "Nunito", system-ui, sans-serif;
  --body: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 17px/1.6 var(--body);
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--blue);
}

h1,
h2,
h3 {
  font-family: var(--display);
  line-height: 1.1;
  margin: 0 0 0.4em;
}

.wrap {
  width: min(1120px, 100% - 32px);
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: -999px;
}
.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 10;
  background: var(--white);
  padding: 8px 12px;
  border-radius: 8px;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  background: var(--coral);
  color: var(--white);
  font: 700 18px/1.2 var(--display);
  text-decoration: none;
  box-shadow: 0 6px 0 #d9583a;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 0 #d9583a;
}
.btn:active {
  transform: translateY(3px);
  box-shadow: 0 3px 0 #d9583a;
}
.btn-small {
  padding: 8px 16px;
  font-size: 15px;
  box-shadow: 0 4px 0 #d9583a;
}
.btn-light {
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 6px 0 rgba(31, 42, 68, 0.18);
}
.btn-play svg {
  width: 24px;
  height: 24px;
}

/* Top bar */

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(255, 248, 236, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(31, 42, 68, 0.06);
}
.topbar-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  text-decoration: none;
  font: 800 24px/1 var(--display);
}
.nav {
  display: flex;
  gap: 22px;
  margin-left: auto;
}
.nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 700;
}
.nav a:hover {
  color: var(--blue);
}

/* Hero */

.hero {
  position: relative;
  overflow: hidden;
  padding: 56px 0 72px;
  background: radial-gradient(circle at 85% 20%, #dbeaff 0, transparent 45%),
    radial-gradient(circle at 10% 90%, #ffe9c2 0, transparent 40%);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 40px;
}
.eyebrow {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--white);
  color: var(--purple);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.02em;
  box-shadow: var(--shadow);
}
.hero h1 {
  margin-top: 18px;
  font-size: clamp(40px, 6vw, 68px);
  font-weight: 800;
}
.hero h1 .accent {
  color: var(--blue);
}
.hero p.lead {
  font-size: 20px;
  color: var(--ink-soft);
  max-width: 34em;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin-top: 26px;
}
.hero-note {
  color: var(--ink-soft);
  font-weight: 700;
}
.hero-art {
  position: relative;
  justify-self: center;
}
.float {
  position: absolute;
  animation: float 5s ease-in-out infinite;
  filter: drop-shadow(0 12px 14px rgba(31, 42, 68, 0.18));
}
.float.f1 { width: 92px; top: 4%; left: -18%; }
.float.f2 { width: 84px; bottom: 14%; left: -22%; animation-delay: -1.5s; }
.float.f3 { width: 80px; top: 12%; right: -18%; animation-delay: -3s; }
.float.f4 { width: 96px; bottom: 4%; right: -20%; animation-delay: -2.2s; }

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-14px) rotate(3deg); }
}

/* A phone frame around screenshots */

.phone {
  width: 270px;
  padding: 10px;
  border-radius: 40px;
  background: var(--ink);
  box-shadow: 0 30px 60px rgba(31, 42, 68, 0.28);
}
.phone img {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: 31px;
  background: var(--sky);
}

/* Promise strip */

.promises {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: -32px;
  position: relative;
}
.promise {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 20px;
  background: var(--white);
  box-shadow: var(--shadow);
  font-weight: 800;
}
.promise .icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 22px;
}

/* Sections */

section {
  padding: 84px 0;
}
.section-head {
  text-align: center;
  max-width: 40em;
  margin: 0 auto 44px;
}
.section-head h2 {
  font-size: clamp(32px, 4.5vw, 48px);
}
.section-head p {
  color: var(--ink-soft);
  font-size: 19px;
  margin: 0;
}

/* Features */

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.feature {
  position: relative;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}
.feature img {
  width: 76px;
  height: 76px;
  margin-bottom: 10px;
}
.feature h3 {
  font-size: 26px;
}
.feature p {
  margin: 0;
  color: var(--ink-soft);
}
.tag {
  position: absolute;
  top: 22px;
  right: 22px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--sky);
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
}
.tag.new {
  background: #ffe7df;
  color: #c64a2c;
}

/* A day's adventure */

.adventure {
  background: var(--sky);
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  counter-reset: step;
}
.step {
  padding: 26px;
  border-radius: var(--radius);
  color: var(--white);
  box-shadow: 0 8px 0 rgba(31, 42, 68, 0.18);
}
.step:nth-child(1) { background: var(--blue); }
.step:nth-child(2) { background: #d35400; }
.step:nth-child(3) { background: var(--green); }
.step::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: var(--white);
  color: var(--ink);
  font: 800 22px/1 var(--display);
}
.step h3 {
  font-size: 26px;
}
.step p {
  margin: 0;
  opacity: 0.95;
}
.adventure-note {
  text-align: center;
  margin: 30px auto 0;
  max-width: 36em;
  font-weight: 700;
  color: var(--ink-soft);
}

/* Screenshots */

.gallery {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding: 10px max(16px, calc((100% - 1120px) / 2)) 30px;
  scroll-padding-inline: max(16px, calc((100% - 1120px) / 2));
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}
.gallery figure {
  flex: none;
  margin: 0;
  scroll-snap-align: center;
  text-align: center;
}
.gallery .phone {
  width: 230px;
  box-shadow: 0 16px 30px rgba(31, 42, 68, 0.2);
}
.gallery figcaption {
  margin-top: 14px;
  font-weight: 800;
}

/* For parents */

.parents-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.checklist li {
  display: flex;
  gap: 14px;
  padding: 18px 20px;
  border-radius: 20px;
  background: var(--white);
  box-shadow: var(--shadow);
}
.checklist strong {
  display: block;
  font-family: var(--display);
  font-size: 20px;
}
.checklist span {
  color: var(--ink-soft);
}
.check {
  flex: none;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #dff3e7;
  color: var(--green);
  font-weight: 900;
}
.parents-art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 420px;
  border-radius: 40px;
  background: linear-gradient(160deg, var(--blue), #6b9cf0);
  overflow: hidden;
}
.parents-art .bubble {
  position: absolute;
  max-width: 250px;
  padding: 16px 18px;
  border-radius: 22px;
  background: var(--white);
  box-shadow: var(--shadow);
  font-weight: 700;
}
.parents-art .bubble.b1 { top: 40px; left: 28px; }
.parents-art .bubble.b2 { bottom: 40px; right: 28px; }
.parents-art img {
  width: 200px;
  filter: drop-shadow(0 18px 20px rgba(0, 0, 0, 0.25));
}

/* Pricing */

.premium {
  background: linear-gradient(180deg, var(--cream), #f3ecff);
}
.plans {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}
.plan {
  padding: 32px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}
.plan h3 {
  font-size: 30px;
}
.plan .price {
  font: 800 22px/1.2 var(--display);
  color: var(--ink-soft);
  margin-bottom: 18px;
}
.plan ul {
  margin: 0;
  padding-left: 1.2em;
}
.plan li {
  margin-bottom: 8px;
}
.plan.featured {
  position: relative;
  background: linear-gradient(150deg, #6d3fc0, var(--purple) 55%, #d06bd8);
  color: var(--white);
}
.plan.featured .price {
  color: rgba(255, 255, 255, 0.9);
}
.plan.featured .badge {
  position: absolute;
  top: -14px;
  right: 24px;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--sun);
  color: var(--ink);
  font-weight: 800;
  font-size: 14px;
}
.fineprint {
  max-width: 900px;
  margin: 22px auto 0;
  text-align: center;
  color: var(--ink-soft);
  font-size: 15px;
}

/* FAQ */

.faq {
  max-width: 820px;
  margin: 0 auto;
}
.faq details {
  margin-bottom: 12px;
  padding: 0 22px;
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--shadow);
}
.faq summary {
  cursor: pointer;
  padding: 18px 0;
  font: 800 19px/1.3 var(--display);
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  float: right;
  color: var(--blue);
}
.faq details[open] summary::after {
  content: "–";
}
.faq details p {
  margin: 0 0 18px;
  color: var(--ink-soft);
}
.faq-more {
  text-align: center;
  margin-top: 26px;
  font-weight: 700;
}

/* Call to action */

.cta {
  padding: 0 0 84px;
}
.cta-box {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 40px;
  border-radius: 40px;
  background: linear-gradient(135deg, var(--coral), #ffa26b);
  color: var(--white);
}
.cta-box img {
  width: 120px;
  flex: none;
}
.cta-box h2 {
  font-size: clamp(28px, 4vw, 40px);
}
.cta-box p {
  margin: 0 0 18px;
  font-size: 18px;
}

/* Footer */

.footer {
  background: var(--ink);
  color: #c9d1e3;
  padding: 44px 0 28px;
}
.footer a {
  color: var(--white);
}
.footer .brand {
  color: var(--white);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
}
.footer-brand p {
  margin: 10px 0 0;
  max-width: 26em;
}
.footer-links {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 10px 36px;
  align-content: start;
}
.footer-links a {
  text-decoration: none;
  font-weight: 700;
}
.footer-fine {
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 14px;
}
.footer-fine p {
  margin: 4px 0;
}

/* Document pages (privacy, terms, help) */

.doc {
  width: min(780px, 100% - 32px);
  margin: 40px auto 72px;
  padding: 40px clamp(20px, 5vw, 56px);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}
.doc h1 {
  font-size: clamp(34px, 5vw, 48px);
}
.doc h2 {
  font-size: 26px;
  margin-top: 1.6em;
  scroll-margin-top: 90px;
}
.doc .date {
  margin-top: 0;
  color: var(--ink-soft);
  font-weight: 700;
}
.doc .summary {
  margin: 26px 0 8px;
  padding: 6px 24px 10px;
  border-radius: 20px;
  background: var(--sky);
}
.doc .summary h2 {
  margin-top: 0.8em;
  font-size: 22px;
}
.doc li {
  margin-bottom: 6px;
}
.doc a {
  overflow-wrap: anywhere;
}

/* Not found page */

.notfound {
  text-align: center;
  padding: 90px 0;
}
.notfound img {
  width: 150px;
}

/* Small screens */

@media (max-width: 900px) {
  .hero-inner,
  .parents-grid {
    grid-template-columns: 1fr;
  }
  .hero {
    text-align: center;
    padding-top: 36px;
  }
  .hero p.lead {
    margin-inline: auto;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-art {
    margin-top: 10px;
  }
  .float.f1, .float.f2 { left: -12%; }
  .float.f3, .float.f4 { right: -12%; }
  .features,
  .steps {
    grid-template-columns: 1fr 1fr;
  }
  .promises {
    grid-template-columns: 1fr 1fr;
    margin-top: 0;
  }
  .parents-art {
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 28px 20px;
  }
  .parents-art .bubble {
    position: static;
    max-width: 320px;
  }
  .parents-art img {
    width: 150px;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }
  .nav {
    display: none;
  }
  .topbar-inner {
    justify-content: space-between;
  }
  section {
    padding: 60px 0;
  }
  .features,
  .steps,
  .plans,
  .promises {
    grid-template-columns: 1fr;
  }
  .phone {
    width: 230px;
  }
  .float {
    width: 64px !important;
  }
  .float.f1, .float.f2 { left: -16%; }
  .float.f3, .float.f4 { right: -16%; }
  .cta-box {
    flex-direction: column;
    text-align: center;
    padding: 30px 22px;
  }
  .footer-links {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .float {
    animation: none;
  }
  .btn {
    transition: none;
  }
}
