@font-face {
  font-family: "Fredoka";
  src: url("fonts/fredoka.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("fonts/nunito.woff2") format("woff2");
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
}

:root {
  --white: #FFFFFF;
  --navy: #13233A;
  --blue: #1D4E89;
  --blue-dark: #0F2D52;
  --sun: #FFD24C;
  --cream: #FFF4CC;
  --line: #D5DCE5;
  --line-blue: #4F78AA;
  --grey: #C0CAD8;
  --display: "Fredoka", "Trebuchet MS", system-ui, sans-serif;
  --sans: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1320px;
  --gutter: clamp(16px, 4vw, 32px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--white);
  color: var(--navy);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.6;
  overflow-wrap: break-word;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
@media (hover: hover) {
  a:hover { color: var(--blue-dark); }
}
a:focus-visible, summary:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--white), 0 0 0 6px var(--blue);
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.display { font-family: var(--display); font-weight: 700; }
.blue { color: var(--blue); }

/* Header */
.site-header .wrap { padding-top: 18px; padding-bottom: 18px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; }
.logo { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--navy); text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 30px; line-height: 1.1; }
.logo svg { flex: none; }
.main-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0 24px; font-weight: 800; }
.main-nav a { text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; padding: 10px 0; }
.main-nav .nav-cta { background: var(--blue); color: var(--white); padding: 10px 22px; border-radius: 14px; touch-action: manipulation; }
@media (hover: hover) {
  .main-nav .nav-cta:hover { background: var(--blue-dark); color: var(--white); }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; min-height: 52px; background: var(--sun); color: var(--navy); text-decoration: none; padding: 14px 28px; border-radius: 16px; font-weight: 800; touch-action: manipulation; transition: background-color .2s ease; }
@media (hover: hover) {
  .btn:hover { background: #FFC21A; color: var(--navy); }
}

/* Hero */
.hero { padding-top: 8px; padding-bottom: clamp(64px, 8vw, 96px); }
.hero-frame { position: relative; border-radius: 36px; overflow: hidden; min-height: clamp(520px, 50vw, 640px); display: flex; align-items: flex-end; justify-content: flex-end; }
.hero-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% 60%; }
.hero-card { position: relative; margin: clamp(12px, 3vw, 32px); background: var(--white); border-radius: 28px; padding: clamp(24px, 3vw, 36px) clamp(22px, 3vw, 40px); max-width: 560px; }
@media (max-width: 720px) {
  .hero-frame { display: block; min-height: 0; background: var(--cream); }
  .hero-frame img { position: static; height: clamp(240px, 70vw, 360px); object-position: 35% 70%; }
  .hero-card { margin: 0; border-radius: 0; background: var(--cream); }
}
.hero-card h1 { margin: 0 0 14px; font-size: clamp(38px, 5vw, 70px); line-height: 1; }
.hero-card p { margin: 0 0 24px; }

/* Sections */
.section { padding-top: clamp(72px, 9vw, 112px); padding-bottom: clamp(72px, 9vw, 112px); }
.section-title { margin: 0; font-size: clamp(36px, 4.6vw, 64px); line-height: 1.05; }

/* Ages */
.ages { padding-top: 0; }
.ages .section-title { margin-bottom: 48px; text-align: center; }
.age-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 40px; }
.age-grid article { text-align: center; }
.age-grid img { width: 100%; aspect-ratio: 4 / 3; height: auto; object-fit: cover; border-radius: 28px; }
.age-grid h3 { margin: 20px 0 6px; font-family: var(--display); font-weight: 600; font-size: 30px; }
.age-grid p { margin: 0; }

/* Plan */
.plan { background: var(--cream); }
.plan .section-title { margin-bottom: 12px; }
.plan .intro { margin: 0 0 56px; max-width: 36em; }
.days { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 32px; }
.days img { width: 100%; aspect-ratio: 3 / 2; height: auto; object-fit: cover; border-radius: 20px; }
.days .day { margin: 14px 0 0; font-family: var(--display); font-size: 18px; color: var(--blue); }
.days h3 { margin: 2px 0 6px; font-family: var(--display); font-weight: 600; font-size: 24px; }
.days p:last-child { margin: 0; }

/* Story */
.story .wrap { display: flex; flex-wrap: wrap; gap: 40px 64px; align-items: center; }
.story-copy { flex: 1 1 440px; min-width: 0; }
.story-copy .kicker { margin: 0 0 12px; font-weight: 800; color: var(--blue); }
.story-copy .section-title { margin-bottom: 24px; font-size: clamp(36px, 4.6vw, 60px); }
.story-copy p { margin: 0 0 16px; }
.story-copy .promise { margin: 0; font-weight: 800; }
.collage { flex: 1 1 420px; min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.collage img { width: 100%; height: clamp(160px, 20vw, 260px); object-fit: cover; border-radius: 24px; }

/* Checklist */
.checklist { background: var(--blue); color: var(--white); }
.checklist .wrap { padding-top: 96px; padding-bottom: 96px; display: flex; flex-wrap: wrap; gap: 40px 48px; }
.checklist .section-title { flex: 1 1 320px; min-width: 0; font-size: clamp(34px, 4vw, 54px); }
.checklist ul { flex: 2 1 520px; min-width: 0; margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 14px 40px; }
.checklist li { border-bottom: 1px solid var(--line-blue); padding-bottom: 12px; }

/* FAQ */
.faq { max-width: 880px; margin: 0 auto; padding: 96px var(--gutter) 112px; }
.faq .section-title { margin-bottom: 24px; font-size: clamp(34px, 4vw, 54px); }
.faq details { border-bottom: 1px solid var(--line); padding: 10px 0; }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-weight: 800; min-height: 44px; padding: 8px 0; }
.faq summary::-webkit-details-marker { display: none; }
.faq .arr { font-size: 13px; transition: transform .2s ease; flex: none; }
.faq details[open] .arr { transform: rotate(180deg); }
.faq details p { margin: 6px 0 14px; }

/* Inner pages */
.page { padding-top: 32px; padding-bottom: 96px; }
.back { display: inline-flex; align-items: center; min-height: 44px; margin-bottom: 16px; font-weight: 800; text-decoration: none; }
.legal { max-width: 860px; line-height: 1.7; }
.legal h1 { margin: 0 0 8px; font-size: clamp(38px, 5.4vw, 60px); line-height: 1.05; }
.legal h2 { font-size: 22px; font-weight: 800; margin: 36px 0 8px; }
.legal .updated { margin: 0 0 32px; color: #4C5A6E; }
.table-wrap { margin: 28px 0; }
.legal table { width: 100%; max-width: 100%; border-collapse: collapse; font-size: 16px; }
.legal th { text-align: left; padding: 12px 12px 12px 0; border-bottom: 2px solid var(--navy); }
.legal td { padding: 12px 12px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal td:first-child { font-weight: 800; }
@media (max-width: 560px) {
  .legal thead { display: none; }
  .legal tr { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .legal td { display: block; padding: 2px 0; border: 0; }
}

/* Footer */
.site-footer { background: var(--navy); color: var(--white); }
.site-footer a:focus-visible { box-shadow: 0 0 0 3px var(--navy), 0 0 0 6px var(--sun); }
.footer-top { padding-top: 64px; padding-bottom: 32px; display: flex; flex-wrap: wrap; gap: 40px 48px; justify-content: space-between; }
.footer-brand { flex: 1 1 320px; min-width: 0; }
.footer-brand .logo-text { margin: 0 0 10px; font-family: var(--display); font-weight: 700; font-size: 30px; }
.footer-brand p:last-child { margin: 0; color: var(--grey); max-width: 24em; }
.footer-nav { flex: 1 1 380px; min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; align-content: start; }
.footer-nav a { color: var(--white); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
@media (hover: hover) {
  .footer-nav a:hover { color: var(--sun); }
}
.footer-bottom { padding-top: 24px; padding-bottom: 40px; border-top: 1px solid #2E4260; font-size: 14px; color: var(--grey); display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; }

@media (max-width: 480px) {
  .footer-nav { grid-template-columns: minmax(0, 1fr); }
  .main-nav { gap: 0 16px; }
  .logo { font-size: 26px; }
}

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