:root {
  --bg: #f8f7f2;
  --surface: #fffefa;
  --surface-soft: #fffdf5;
  --ink: #1d2230;
  --ink-soft: #525b70;
  --line: #ddd9cc;
  --accent-a: #ff7a3d;
  --accent-b: #137b7f;
  --accent-c: #f4be3d;
  --shadow: 0 22px 70px rgba(28, 34, 49, 0.12);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "DM Sans", system-ui, sans-serif;
  background:
    radial-gradient(circle at 15% 10%, #fff8dd 0%, rgba(255, 248, 221, 0) 42%),
    radial-gradient(circle at 92% 20%, #dff7f0 0%, rgba(223, 247, 240, 0) 38%),
    var(--bg);
  color: var(--ink);
  line-height: 1.5;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 99;
  background: #fff;
  border: 2px solid var(--accent-a);
  border-radius: 8px;
  padding: 0.5rem 0.7rem;
  text-decoration: none;
  font-weight: 700;
}

.skip-link:focus {
  left: 10px;
  top: 10px;
}

.container {
  width: min(1080px, calc(100% - 2.2rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1.2rem;
  margin: 0.7rem auto 0;
  width: min(1080px, calc(100% - 1.4rem));
  border-radius: 999px;
  border: 1px solid rgba(29, 34, 48, 0.08);
  background: rgba(255, 255, 250, 0.84);
  backdrop-filter: blur(8px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: "Baloo 2", cursive;
  font-size: 1.34rem;
  text-decoration: none;
  font-weight: 700;
}

.brand-badge {
  width: 1.8rem;
  height: 1.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(140deg, var(--accent-a), var(--accent-c));
  color: white;
  border-radius: 999px;
  font-size: 1rem;
}

.main-nav {
  display: inline-flex;
  gap: 1rem;
}

.main-nav a {
  text-decoration: none;
  font-size: 0.95rem;
  color: var(--ink-soft);
  font-weight: 600;
}

.content {
  padding-bottom: 3.5rem;
}

section {
  margin-top: 4.2rem;
}

.hero {
  margin-top: 4.8rem;
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.76rem;
  color: var(--accent-b);
  font-weight: 700;
}

h1,
h2,
h3 {
  font-family: "Baloo 2", cursive;
  line-height: 1.1;
  margin: 0;
}

h1 {
  margin-top: 0.6rem;
  font-size: clamp(2.3rem, 4.8vw, 4.2rem);
  max-width: 17ch;
}

h1 span {
  display: block;
  color: var(--ink-soft);
  font-size: 0.74em;
  font-weight: 700;
  margin-top: 0.45rem;
}

.lead {
  margin-top: 1.1rem;
  font-size: 1.12rem;
  max-width: 62ch;
  color: #3f4759;
}

.hero-actions {
  margin-top: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.hero-stats {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.hero-stats article {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 0.9rem;
}

.hero-stats h2 {
  color: var(--accent-b);
  font-size: 1.7rem;
  white-space: nowrap;
}

.hero-stats p {
  margin: 0.2rem 0 0;
  color: #4a5266;
}

.btn {
  border-radius: 999px;
  padding: 0.78rem 1.15rem;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid transparent;
}

.btn-primary {
  background: linear-gradient(130deg, var(--accent-a), var(--accent-b));
  color: #fff;
}

.btn-ghost {
  border-color: var(--line);
  background: #fff;
}

.section-head {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 1.2rem;
}

h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.8rem);
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.app-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: grid;
}

.app-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
}

.app-copy {
  padding: 1rem;
}

.app-copy h3 {
  font-size: 1.8rem;
}

.app-copy p {
  margin: 0.45rem 0 0;
  color: #445065;
}

.app-copy ul {
  margin: 0.85rem 0;
  padding-left: 1rem;
  color: #3f4759;
}

.text-link {
  display: inline-block;
  margin-top: 0.3rem;
  font-weight: 700;
  color: var(--accent-b);
  text-decoration: none;
  border-bottom: 2px solid rgba(19, 123, 127, 0.3);
}

.pathway {
  background: #fefdf8;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.3rem;
}

.age-guide {
  display: grid;
  gap: 0.45rem;
  margin: 0 0 1rem;
}

.age-guide-label {
  margin: 0;
  font-weight: 700;
  color: #3f4759;
}

.age-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.age-pills span {
  display: inline-block;
  padding: 0.35rem 0.65rem;
  border: 1px solid #cabf9f;
  border-radius: 999px;
  background: #fffdf5;
  font-size: 0.9rem;
  color: #3f4759;
  font-weight: 600;
}

.path-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.path-steps li {
  border-radius: var(--radius-md);
  border: 1px dashed #cabf9f;
  background: #fffdf5;
  padding: 0.95rem;
}

.path-steps p {
  margin: 0.45rem 0 0;
  color: #4a5266;
}

.parents .pillars {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.pillars article {
  padding: 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: #fff;
}

.pillars h3 {
  font-size: 1.42rem;
}

.pillars p {
  margin: 0.4rem 0 0;
  color: #4a5266;
}

.faq-list {
  display: grid;
  gap: 0.7rem;
}

.faq-list details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.8rem 0.9rem;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 700;
}

.faq-list p {
  margin: 0.55rem 0 0;
  color: #4a5266;
}

.legal {
  max-width: 860px;
}

.legal h2 {
  margin-top: 1.4rem;
  font-size: clamp(1.25rem, 2.4vw, 1.8rem);
}

.legal p {
  margin: 0.5rem 0 0;
  color: #3f4759;
}

.site-footer {
  margin-top: 4rem;
  border-top: 1px solid var(--line);
  padding-top: 1.1rem;
  padding-bottom: 1rem;
  color: #434a5c;
}

.site-footer p {
  margin: 0;
}

.muted {
  opacity: 0.74;
  margin-top: 0.32rem;
}

.footer-links {
  margin-top: 0.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  padding-bottom: 0.45rem;
}

.footer-links a {
  text-decoration: none;
  font-weight: 700;
  color: var(--accent-b);
}

.qr-download {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
}

.qr-title {
  margin: 0 0 0.75rem;
  font-weight: 700;
  color: #3f4759;
}

.qr-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.qr-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
  padding: 0.65rem;
  text-align: center;
}

.qr-card img {
  width: 120px;
  height: 120px;
  margin: 0 auto;
}

.qr-card p {
  margin: 0.5rem 0 0;
  font-weight: 700;
  color: #3f4759;
}

.bg-orb {
  position: fixed;
  z-index: -1;
  border-radius: 999px;
  filter: blur(4px);
  opacity: 0.64;
  animation: float 13s ease-in-out infinite;
}

.orb-a {
  width: 200px;
  height: 200px;
  top: 20%;
  left: -50px;
  background: #ffd694;
}

.orb-b {
  width: 250px;
  height: 250px;
  right: -80px;
  top: 48%;
  background: #b7f2ea;
  animation-delay: -4s;
}

.orb-c {
  width: 140px;
  height: 140px;
  left: 48%;
  bottom: -30px;
  background: #ffd0bb;
  animation-delay: -8s;
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 520ms ease, transform 520ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid #f59a2a;
  outline-offset: 3px;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) translateX(0);
  }
  50% {
    transform: translateY(-18px) translateX(8px);
  }
}

@media (max-width: 940px) {
  .app-grid,
  .path-steps,
  .parents .pillars,
  .hero-stats {
    grid-template-columns: 1fr;
  }

  .site-header {
    margin-top: 0;
    border-radius: 0;
    width: 100%;
    padding-inline: 1rem;
  }

  .main-nav {
    gap: 0.7rem;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .qr-download {
    display: none;
  }
}

@media (min-width: 768px) and (max-width: 1100px) {
  .container {
    width: min(980px, calc(100% - 2.4rem));
  }

  section {
    margin-top: 3.4rem;
  }

  .hero {
    margin-top: 3.8rem;
  }

  .hero-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.7rem;
  }

  .app-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .app-card:last-child {
    grid-column: 1 / -1;
    width: calc((100% - 1rem) / 2);
    max-width: calc((100% - 1rem) / 2);
    justify-self: center;
  }

  .path-steps,
  .parents .pillars {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .path-steps li:last-child {
    grid-column: 1 / -1;
  }

  .main-nav a {
    font-size: 0.9rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
