:root {
  --brand: #dc143c;
  --brand-dark: #b70f31;
  --ink: #10285d;
  --text: #485a7f;
  --muted: #71809e;
  --line: #e8edf5;
  --soft: #f7f9fc;
  --white: #fff;
  --shadow: 0 12px 34px rgba(15, 40, 93, .10);
  --radius: 26px;
}


/* =========================================================
   Base
   ========================================================= */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.48;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.wrap {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}


/* =========================================================
   Header
   ========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--brand);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .16);
}

.header-inner {
  height: 72px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand img {
  width: 150px;
  height: 46px;
  object-fit: contain;
}

.desktop-nav {
  display: flex;
  gap: 26px;
  margin-left: auto;
  font-size: 15px;
}

.header-cta {
  border: 1px solid rgba(255, 255, 255, .9);
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 750;
  white-space: nowrap;
}

.menu-button {
  display: none;
  margin-left: auto;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  background: var(--brand-dark);
  padding: 12px 20px 18px;
  gap: 10px;
  flex-direction: column;
}

.mobile-nav.open {
  display: flex;
}


/* =========================================================
   Hero
   ========================================================= */

.hero {
  position: relative;
  min-height: 510px;
  overflow: hidden;
  background: #91e8ef;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(145, 232, 239, .98) 0%,
    rgba(145, 232, 239, .95) 31%,
    rgba(145, 232, 239, .62) 48%,
    rgba(145, 232, 239, .05) 65%
  );
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  min-height: 510px;
}

.hero-copy {
  max-width: 540px;
  padding: 48px 0;
  position: relative;
}

.hero-title-row {
  display: flex;
  gap: 20px;
  align-items: center;
}

.app-icon {
  width: 148px;
  height: 148px;
  flex: 0 0 148px;
  border-radius: 32px;
  box-shadow: var(--shadow);
}

h1 {
  font-size: clamp(50px, 6vw, 76px);
  line-height: .95;
  margin: 0 0 8px;
  letter-spacing: -.04em;
}

.hero-subtitle {
  font-size: 26px;
  margin: 0;
  font-weight: 800;
}

.age {
  font-size: 22px;
  margin: 2px 0 0;
  color: var(--text);
}

.hero-text {
  font-size: 20px;
  color: var(--text);
  margin: 24px 0 20px;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.platform-note {
  font-size: 14px;
  color: var(--text);
}

.app-store-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--brand);
  color: #fff;
  border-radius: 14px;
  padding: 11px 20px;
  font-weight: 750;
  min-width: 194px;
  box-shadow: 0 8px 20px rgba(220, 20, 60, .18);
}

.app-store-button small {
  display: block;
  font-size: 10px;
  font-weight: 500;
}

.apple {
  font-size: 31px;
  line-height: 1;
}

.scribble {
  position: absolute;
  left: -2px;
  bottom: -10px;
  color: var(--brand);
  font-size: 18px;
  line-height: 1.05;
  transform: rotate(-8deg);
  font-family: "Comic Sans MS", cursive;
}


/* =========================================================
   General sections
   ========================================================= */

.section {
  padding-block: 68px;
}

.compact-top {
  padding-top: 24px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--brand);
  font-weight: 850;
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.section-heading {
  max-width: 800px;
  margin-bottom: 32px;
}

.section-heading h2,
.panel h2,
.grow-inner h2,
.final-cta h2 {
  font-size: clamp(31px, 4vw, 48px);
  line-height: 1.06;
  letter-spacing: -.03em;
  margin: 0 0 12px;
}

.section-heading p:last-child,
.grow-inner p {
  font-size: 18px;
  color: var(--text);
}

.split-heading {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 42px;
  align-items: end;
  max-width: none;
}

.split-heading > p {
  margin: 0 0 7px;
}


/* =========================================================
   Skills
   ========================================================= */

.icon-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 14px;
}

.skill {
  text-align: center;
}

.skill span {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: linear-gradient(145deg, #fff, #f4f7fb);
  box-shadow: 0 6px 18px rgba(15, 40, 93, .08);
  color: var(--brand);
  font-size: 25px;
  font-weight: 900;
}

.skill h3 {
  font-size: 14px;
  line-height: 1.2;
  margin: 0;
}


/* =========================================================
   Game grid
   ========================================================= */

.game-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.game-grid article {
  min-width: 0;
}

.game-grid img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: #fff;
  border-radius: 18px;
  border: 1px solid var(--line);
}

.game-grid h3 {
  font-size: 17px;
  margin: 10px 0 2px;
}

.game-grid p {
  font-size: 14px;
  color: var(--text);
  margin: 0;
}


/* =========================================================
   Learning levels and parent panel
   ========================================================= */

.two-col {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 22px;
}

.panel {
  background: linear-gradient(180deg, #fff, #f8faff);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.panel h2 {
  font-size: 32px;
}

.level-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 22px;
}

.level-card {
  border-radius: 18px;
  padding: 18px;
}

.level-card.early {
  background: #e7f7e7;
}

.level-card.intermediate {
  background: #e7f4ff;
}

.level-card.advanced {
  background: #f0e8ff;
}

.level-label {
  font-weight: 850;
  margin: 0 0 12px;
}

.level-label span {
  display: block;
  font-size: 12px;
  color: var(--text);
  font-weight: 700;
}

.level-card ul {
  padding-left: 18px;
  margin: 0;
  color: var(--text);
  font-size: 14px;
}

.level-card li + li {
  margin-top: 7px;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  display: grid;
  gap: 13px;
}

.check-list li {
  position: relative;
  padding-left: 31px;
  color: var(--text);
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: -1px;
  display: grid;
  place-items: center;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}


/* =========================================================
   Grow section
   ========================================================= */

.grow-section {
  background: #f8fbff;
  padding: 58px 0;
}

.grow-inner {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 42px;
  align-items: center;
}

.grow-inner img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: #fff;
}

.grow-inner p {
  margin: 10px 0;
}


/* =========================================================
   FAQ
   ========================================================= */

.faq-list {
  border-top: 1px solid var(--line);
}

details {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}

summary {
  cursor: pointer;
  font-weight: 760;
  font-size: 18px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

summary::after {
  content: "+";
  color: var(--brand);
  font-size: 26px;
}

details[open] summary::after {
  content: "–";
}

details p {
  color: var(--text);
  max-width: 850px;
  margin: 12px 0 0;
}


/* =========================================================
   Final CTA
   ========================================================= */

.final-cta {
  background: linear-gradient(90deg, #fff1f4, #fde5eb);
  padding: 42px 0;
}

.final-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.final-cta .eyebrow.light {
  color: var(--brand);
}

.final-cta h2 {
  font-size: 35px;
  margin: 0;
}

.app-store-button.inverted {
  background: var(--brand);
  color: #fff;
}


/* =========================================================
   Footer
   ========================================================= */

.site-footer {
  padding: 28px 0;
}

.footer-inner {
  display: flex;
  gap: 20px;
  align-items: center;
  color: var(--muted);
  font-size: 14px;
}

.footer-inner strong {
  color: var(--brand);
  font-size: 20px;
}

.footer-inner span:last-child {
  margin-left: auto;
}


/* =========================================================
   Mobile
   ========================================================= */

@media (max-width: 768px) {

  /* Keep comfortable margins on small screens */
  .wrap {
    width: calc(100% - 32px);
  }


  /* ---------- Mobile header ---------- */

  .header-inner {
    height: 72px;
    gap: 12px;
  }

  .brand img {
    width: 90px;
    height: 38px;
  }

  /* Hide desktop links */
  .desktop-nav {
    display: none;
  }

  /* Show hamburger menu */
  .menu-button {
    display: block;
    margin-left: 0;
    font-size: 30px;
  }

  .header-cta {
    margin-left: auto;
    padding: 8px 14px;
    font-size: 14px;
  }

  /* Mobile links stay hidden until the menu is opened */
  .mobile-nav {
    display: none;
  }

  .mobile-nav.open {
    display: flex;
  }


  /* ---------- Mobile hero ---------- */

  .hero,
  .hero-inner {
    min-height: 590px;
  }

  /*
     Anchor the original banner to the left.
     This keeps the clean left side visible and crops
     most of the dog from the right side on narrow screens.
  */
  .hero-bg {
    object-fit: cover;
    object-position: left center;
  }

  /*
     Use a stronger even overlay on mobile so text remains
     readable over the background illustration.
  */
  .hero-overlay {
    background: rgba(145, 232, 239, .76);
  }

  .hero-inner {
    align-items: flex-start;
  }

  .hero-copy {
    width: 100%;
    max-width: 100%;
    padding: 34px 0 38px;
  }

  /*
     Keep the icon and title next to each other,
     but make the icon substantially smaller.
  */
  .hero-title-row {
    gap: 14px;
    align-items: flex-start;
  }

  .app-icon {
    width: 82px;
    height: 82px;
    flex: 0 0 82px;
    border-radius: 18px;
  }

  h1 {
    font-size: 46px;
    line-height: .95;
  }

  .hero-subtitle {
    font-size: 21px;
    line-height: 1.15;
  }

  .age {
    font-size: 18px;
    margin-top: 5px;
  }

  .hero-text {
    max-width: 100%;
    margin: 24px 0 20px;
    font-size: 18px;
    line-height: 1.45;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .scribble {
    display: none;
  }


  /* ---------- Section layout ---------- */

  .section {
    padding-block: 48px;
  }

  .compact-top {
    padding-top: 20px;
  }

  /*
     Desktop uses two columns for section headings.
     Mobile stacks the description under the title.
  */
  .split-heading {
    grid-template-columns: 1fr;
    gap: 10px;
    align-items: start;
  }

  .section-heading {
    margin-bottom: 28px;
  }

  .section-heading h2,
  .panel h2,
  .grow-inner h2,
  .final-cta h2 {
    font-size: 34px;
  }


  /* ---------- Skills ---------- */

  /*
     Eight desktop columns become two mobile columns.
     This prevents the grid from overflowing horizontally.
  */
  .icon-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px 16px;
  }

  .skill span {
    width: 68px;
    height: 68px;
  }

  .skill h3 {
    font-size: 15px;
  }


  /* ---------- Games ---------- */

  /*
     Five desktop cards become two cards per row.
  */
  .game-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 16px;
  }

  .game-grid h3 {
    font-size: 16px;
    line-height: 1.2;
  }

  .game-grid p {
    font-size: 14px;
  }


  /* ---------- Levels and parents ---------- */

  .two-col {
    grid-template-columns: 1fr;
  }

  .panel {
    padding: 22px;
  }

  .level-grid {
    grid-template-columns: 1fr;
  }


  /* ---------- Grow section ---------- */

  .grow-section {
    padding: 48px 0;
  }

  .grow-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }


  /* ---------- Final CTA ---------- */

  .final-cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }


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

  .footer-inner {
    flex-wrap: wrap;
  }

  .footer-inner span:last-child {
    width: 100%;
    margin-left: 0;
  }
}


/* =========================================================
   Very small phones
   ========================================================= */

@media (max-width: 390px) {

  .wrap {
    width: calc(100% - 24px);
  }

  .brand img {
    width: 80px;
  }

  .header-cta {
    padding: 7px 11px;
    font-size: 13px;
  }

  .app-icon {
    width: 72px;
    height: 72px;
    flex-basis: 72px;
  }

  h1 {
    font-size: 40px;
  }

  .hero-subtitle {
    font-size: 19px;
  }

  .hero-text {
    font-size: 17px;
  }
}