:root {
  --blue-400: #0a7efb;
  --blue-500: #0065eb;
  --blue-600: #0048c9;
  --blue-900: #002b94;
  --red-500: #d71313;
  --red-300: #f83530;
  --red-700: #800602;
  --green-500: #6fc505;
  --yellow-300: #fde659;
  --yellow-500: #f4b51f;
  --ink: #0a1b4d;
  --foam: #f5eff0;
  --mist: #e6effb;
  --shadow: 0 2px 4px rgba(0, 26, 92, 0.25), 0 14px 32px rgba(0, 26, 92, 0.3);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Nunito', ui-rounded, 'SF Pro Rounded', system-ui, sans-serif;
  font-weight: 700;
  color: #fff;
  background: var(--blue-500);
  background: linear-gradient(180deg, var(--blue-400) 0%, var(--blue-500) 35%, var(--blue-600) 70%, var(--blue-900) 100%);
  background-attachment: fixed;
  min-height: 100vh;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

/* 16px side gutter, grown by the notch/safe area when the phone is in landscape */
.wrap { width: min(1040px, 100% - 2 * max(16px, env(safe-area-inset-left), env(safe-area-inset-right))); margin-inline: auto; }

h1, h2, h3 { text-wrap: balance; }
img { max-width: 100%; }

/* ---------- nav ---------- */
.nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 18px 0; }
.nav > div { white-space: nowrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 900; letter-spacing: 0.5px; }
.brand img { width: 44px; height: 44px; border-radius: 22.4%; border: 2px solid #fff; box-shadow: var(--shadow); }
.nav a.link { text-decoration: none; opacity: 0.9; margin-left: 18px; font-weight: 800; }
.nav a.link:hover { opacity: 1; text-decoration: underline; }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 24px; align-items: center; padding: 24px 0 64px; }
.hero h1 {
  font-size: clamp(40px, 7vw, 72px);
  line-height: 1;
  margin: 0 0 16px;
  font-weight: 900;
  text-shadow: 0 3px 0 rgba(0, 26, 92, 0.35), 0 10px 24px rgba(0, 26, 92, 0.35);
}
.hero h1 span { color: var(--yellow-300); }
.hero p.lead { font-size: clamp(17px, 2.4vw, 22px); max-width: 30ch; margin: 0 0 28px; color: #e6effb; }
.hero .art { position: relative; display: flex; justify-content: center; }
.hero .art img.boy { width: min(100%, 380px); height: auto; filter: drop-shadow(0 18px 28px rgba(0, 26, 92, 0.45)); }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 30px; border-radius: 999px; border: 0;
  background: var(--red-500); color: #fff; font: inherit; font-weight: 900; font-size: 19px; letter-spacing: 0.5px;
  text-decoration: none; cursor: default;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.35), var(--shadow);
}
.btn.soon { background: var(--yellow-300); color: var(--ink); box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.6), var(--shadow); }
.btn.link { cursor: pointer; }
.btn.link:hover { background: var(--red-300); }
.note { margin-top: 14px; font-size: 14px; color: #cfe0fb; }

.sparkle { position: absolute; color: #fff; opacity: 0.9; pointer-events: none; }
.bubble { position: absolute; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.85); background: rgba(255, 255, 255, 0.25); pointer-events: none; }

/* ---------- features ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding-bottom: 64px; }
.card {
  background: var(--foam); color: var(--ink); border-radius: 28px; padding: 24px;
  box-shadow: inset 0 2px 0 #fff, var(--shadow);
}
.card .ico { font-size: 38px; line-height: 1; margin-bottom: 8px; }
.card h3 { margin: 0 0 6px; font-size: 21px; font-weight: 900; }
.card p { margin: 0; font-weight: 700; color: #35487f; }

.strip { text-align: center; padding: 8px 0 72px; }
.strip h2 { font-size: clamp(26px, 4vw, 38px); margin: 0 0 8px; text-shadow: 0 3px 0 rgba(0, 26, 92, 0.3); }
.strip p { margin: 0 auto 22px; max-width: 46ch; color: #e6effb; }

/* ---------- text pages ---------- */
.doc { background: var(--foam); color: var(--ink); border-radius: 28px; padding: clamp(22px, 5vw, 44px); margin: 12px 0 56px; box-shadow: inset 0 2px 0 #fff, var(--shadow); }
.doc h1 { margin: 0 0 4px; font-size: clamp(30px, 5vw, 44px); font-weight: 900; }
.doc h2 { margin: 28px 0 6px; font-size: 21px; font-weight: 900; }
.doc p, .doc li { font-weight: 700; color: #2b3d70; }
.doc .meta { color: #6b7ba5; font-size: 14px; }
.doc a { color: var(--red-500); }
.doc { overflow-wrap: anywhere; }

/* ---------- footer ---------- */
footer { padding: 28px 0 40px; text-align: center; font-size: 14px; color: #cfe0fb; }
footer a { margin: 0 8px; }

/* tablet: cards get too narrow in 3 columns */
@media (max-width: 900px) {
  .features { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
}

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding-bottom: 40px; }
  .hero p.lead { margin-inline: auto; }
  .hero .art { order: -1; }
  .hero .art img.boy { width: min(70%, 280px); }
}

/* small phones (iPhone SE / mini, 320-400 px) */
@media (max-width: 400px) {
  .brand { font-size: 14px; gap: 8px; }
  .brand img { width: 38px; height: 38px; }
  .nav a.link { margin-left: 12px; font-size: 14px; }
  .btn { padding: 14px 22px; font-size: 17px; text-align: center; justify-content: center; }
  .card { padding: 20px; border-radius: 24px; }
  .doc { padding: 20px; border-radius: 24px; }
}

@media (max-width: 340px) {
  .brand span { display: none; } /* logo only; the icon is the brand */
}
