:root {
  --ink: #0f2741;
  --primary: #17324d;
  --muted: #536170;
  --blue: #1b63f2;
  --sky: #aedddf;
  --sky-soft: #e6f7ff;
  --yellow: #ffd64d;
  --paper: #fff9e8;
  --paper-warm: #ffe4a3;
  --coral: #ff6048;
  --orange: #f7922d;
  --mint: #24c8a1;
  --purple: #6b5af8;
  --white: #ffffff;
  --shadow: rgba(15, 39, 65, 0.18);
  --shadow-strong: rgba(15, 39, 65, 0.28);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-rounded, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 6%, rgba(255, 214, 77, .35), transparent 26rem),
    radial-gradient(circle at 88% 2%, rgba(36, 200, 161, .24), transparent 24rem),
    linear-gradient(180deg, #d9f5f7 0%, #f9feff 42%, #fff8df 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.skip-link {
  position: fixed; left: 16px; top: 16px; z-index: 1000;
  padding: 12px 16px; border-radius: 999px; background: var(--ink); color: white;
  transform: translateY(-150%);
  transition: transform .16s ease;
}
.skip-link:focus { transform: translateY(0); }

.site-footer nav { display: flex; align-items: center; }

.hero {
  position: relative;
  width: min(calc(100% - 32px), var(--max));
  min-height: 100vh;
  margin: 0 auto;
  padding: 62px 0 64px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 520px);
  align-items: center;
  gap: 58px;
}
.hero-copy { position: relative; z-index: 2; }
.hero-logo {
  display: inline-flex;
  width: min(330px, 72vw);
  margin: 0 0 18px 0;
}
.hero-logo img {
  width: 100%;
  filter: drop-shadow(0 10px 12px rgba(15,39,65,.14));
}
.eyebrow {
  margin: 0 0 14px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 13px;
  border-radius: 999px;
  background: rgba(255,255,255,.74);
  border: 1px solid rgba(255,255,255,.84);
  color: var(--blue);
  font-size: 13px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em;
  box-shadow: 0 8px 18px rgba(15,39,65,.06);
}
.hero h1, .section-heading h2, .parents-panel h2, .final-cta h2 {
  margin: 0;
  color: var(--primary);
  letter-spacing: -.055em;
  line-height: .95;
  text-wrap: balance;
}
.hero h1 { max-width: 760px; font-size: clamp(52px, 7.5vw, 104px); }
.hero-lede {
  max-width: 650px; margin: 24px 0 0; color: var(--muted);
  font-size: clamp(18px, 2vw, 22px); line-height: 1.62; font-weight: 700;
}
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 30px; }
.hero-actions.centered { justify-content: center; }
.app-store-button {
  min-height: 62px;
  display: inline-flex; align-items: center; gap: 13px;
  padding: 11px 20px 12px 16px;
  border-radius: 20px;
  background: #0e2238;
  color: white;
  font-weight: 900;
  box-shadow: 0 16px 26px rgba(15,39,65,.24);
  transition: transform .18s ease, box-shadow .18s ease;
}
.app-store-button:hover { transform: translateY(-2px); box-shadow: 0 20px 34px rgba(15,39,65,.28); }
.app-store-button small { display: block; font-size: 11px; font-weight: 700; opacity: .76; line-height: 1; }
.app-store-button span:last-child { font-size: 21px; line-height: 1.05; }
.apple-mark { font-family: -apple-system, BlinkMacSystemFont, sans-serif; font-size: 34px; line-height: 1; }
.secondary-link {
  min-height: 54px; display: inline-flex; align-items: center; justify-content: center;
  padding: 0 18px; border-radius: 18px; background: rgba(255,255,255,.72);
  border: 2px solid rgba(255,255,255,.82); font-weight: 900; color: var(--primary);
  box-shadow: 0 12px 22px rgba(15,39,65,.08);
}
.trust-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.trust-row span {
  padding: 9px 12px; border-radius: 999px; background: rgba(255,249,232,.78); color: var(--primary);
  font-size: 13px; font-weight: 900; border: 1px solid rgba(255,255,255,.78);
}

.hero-stage { position: relative; min-height: 665px; display: grid; place-items: center; }
.phone-shell {
  width: min(100%, 365px); padding: 14px; border-radius: 46px;
  background: linear-gradient(135deg, #203b57, #09182a);
  box-shadow: 0 34px 80px rgba(15,39,65,.26), 0 0 0 10px rgba(255,255,255,.36);
  transform: rotate(2.5deg);
}
.phone-screen {
  min-height: 682px; border-radius: 34px; padding: 32px 22px;
  background-image: linear-gradient(rgba(174, 221, 223, .18), rgba(255, 246, 213, .28)), url('assets/app/page-background-phone.png');
  background-size: cover; background-position: center;
  overflow: hidden; position: relative;
}
.home-title { width: 92%; margin: 8px auto 18px; filter: drop-shadow(0 9px 10px rgba(15,39,65,.14)); }
.menu-stack { display: grid; gap: 12px; margin-top: 22px; }
.menu-row {
  display: flex; align-items: center; gap: 10px; min-height: 82px; padding: 8px 12px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255,255,255,.94), rgba(230,247,255,.80));
  border: 2px solid rgba(255,255,255,.74); box-shadow: 0 10px 16px rgba(15,39,65,.13);
}
.menu-row img { width: 64px; height: 64px; object-fit: contain; }
.menu-row b { display: block; font-size: 19px; }
.menu-row small { display: block; color: var(--muted); font-size: 11px; font-weight: 900; margin-top: 2px; }
.floating-card, .match-badge { position: absolute; z-index: 3; }
.floating-card {
  width: 102px; height: 132px; padding: 8px; border-radius: 18px; background: white;
  box-shadow: 0 18px 34px rgba(15,39,65,.22); animation: floaty 5.6s ease-in-out infinite;
}
.floating-card img { width: 100%; height: 100%; object-fit: contain; border-radius: 12px; }
.card-one { left: 8px; top: 128px; transform: rotate(-11deg); }
.card-two { right: 4px; top: 92px; transform: rotate(12deg); animation-delay: -.8s; }
.card-three { right: 38px; bottom: 82px; transform: rotate(-8deg); animation-delay: -1.6s; }
.match-badge {
  left: 8px; bottom: 152px; padding: 14px 18px; border-radius: 999px;
  background: var(--yellow); color: var(--primary); font-family: "Luckiest Guy", Inter, sans-serif; font-size: 25px;
  box-shadow: 0 16px 28px rgba(15,39,65,.18); transform: rotate(-7deg); animation: pop 3.2s ease-in-out infinite;
}

.sky-orb, .cloud, .rainbow { position: absolute; pointer-events: none; }
.sky-orb { border-radius: 999px; filter: blur(2px); opacity: .72; }
.sky-orb-one { width: 280px; height: 280px; right: -90px; top: 90px; background: rgba(255,214,77,.34); }
.sky-orb-two { width: 220px; height: 220px; left: -92px; bottom: 110px; background: rgba(36,200,161,.20); }
.cloud { width: 130px; height: 46px; border-radius: 999px; background: rgba(255,255,255,.72); filter: blur(.2px); }
.cloud::before, .cloud::after { content: ""; position: absolute; border-radius: 50%; background: inherit; }
.cloud::before { width: 62px; height: 62px; left: 17px; top: -28px; }
.cloud::after { width: 78px; height: 78px; right: 14px; top: -40px; }
.cloud-a { left: 42%; top: 86px; transform: scale(.86); }
.cloud-b { right: 16%; bottom: 72px; transform: scale(.66); opacity: .58; }
.rainbow { width: 320px; height: 160px; left: 44%; top: 110px; opacity: .22; transform: rotate(-10deg); }
.rainbow span { position: absolute; inset: 0; border-radius: 320px 320px 0 0; border: 16px solid transparent; border-bottom: 0; }
.rainbow span:nth-child(1){ border-color: var(--coral); }
.rainbow span:nth-child(2){ inset: 20px; border-color: var(--yellow); }
.rainbow span:nth-child(3){ inset: 40px; border-color: var(--mint); }
.rainbow span:nth-child(4){ inset: 60px; border-color: var(--blue); }

.section { width: min(calc(100% - 32px), var(--max)); margin: 0 auto; padding: 78px 0; }
.intro-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding-top: 16px; }
.strip-card, .feature-card, .parents-panel, .final-cta {
  border-radius: var(--radius-xl); border: 2px solid rgba(255,255,255,.76);
  background: linear-gradient(135deg, rgba(255,255,255,.88), rgba(230,247,255,.68));
  box-shadow: 0 18px 38px rgba(15,39,65,.10);
}
.strip-card { padding: 24px; }
.strip-card strong { display: block; color: var(--primary); font-size: 20px; letter-spacing: -.03em; }
.strip-card span { display: block; margin-top: 8px; color: var(--muted); line-height: 1.55; font-weight: 700; }
.section-heading { max-width: 760px; margin-bottom: 34px; }
.section-heading.compact { margin-bottom: 24px; }
.section-heading h2, .parents-panel h2, .final-cta h2 { font-size: clamp(38px, 5vw, 68px); }
.section-heading p:not(.eyebrow) { color: var(--muted); font-size: 18px; line-height: 1.62; font-weight: 700; }
.feature-layout { display: grid; grid-template-columns: 1.25fr .85fr .85fr; gap: 18px; align-items: stretch; }
.feature-card { padding: 26px; min-height: 260px; }
.feature-card.big { grid-row: span 2; }
.feature-card h3 { margin: 18px 0 8px; font-size: 25px; letter-spacing: -.035em; color: var(--primary); }
.feature-card p { margin: 0; color: var(--muted); line-height: 1.58; font-weight: 700; }
.feature-card.accent { background: linear-gradient(135deg, #17324d, #1b63f2); color: white; grid-column: span 2; }
.feature-card.accent h3, .feature-card.accent p { color: white; }
.feature-icon { width: 88px; height: 88px; object-fit: contain; }
.mini-board {
  display: grid; grid-template-columns: repeat(3, minmax(70px, 1fr)); gap: 12px;
  padding: 18px; border-radius: 26px; background: rgba(255,249,232,.8);
}
.mini-board img { aspect-ratio: .78 / 1; border-radius: 16px; background: white; box-shadow: 0 10px 18px rgba(15,39,65,.12); object-fit: contain; padding: 8px; }
.theme-marquee { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.theme-tile {
  position: relative; overflow: hidden; min-height: 250px; border-radius: 28px;
  background: white; box-shadow: 0 18px 34px rgba(15,39,65,.13); border: 2px solid rgba(255,255,255,.78);
}
.theme-tile img { width: 100%; height: 100%; min-height: 250px; object-fit: cover; transform: scale(1.02); transition: transform .3s ease; }
.theme-tile:hover img { transform: scale(1.07); }
.theme-tile span {
  position: absolute; left: 14px; bottom: 14px; padding: 10px 13px; border-radius: 999px;
  background: rgba(255,255,255,.86); color: var(--primary); font-weight: 900; box-shadow: 0 8px 16px rgba(15,39,65,.10);
}
.parents-panel { display: grid; grid-template-columns: .9fr 1.1fr; gap: 34px; padding: 42px; background: linear-gradient(135deg, rgba(255,249,232,.92), rgba(230,247,255,.82)); }
.parent-points { display: grid; gap: 14px; }
.parent-points p { margin: 0; padding: 18px 20px; border-radius: 22px; background: rgba(255,255,255,.72); color: var(--muted); font-weight: 700; line-height: 1.55; }
.parent-points strong { color: var(--primary); }
.final-cta { text-align: center; padding: 54px 26px; }
.final-cta img { width: 104px; height: 104px; border-radius: 26px; margin: 0 auto 22px; box-shadow: 0 16px 28px rgba(15,39,65,.18); }
.final-cta p { max-width: 560px; margin: 16px auto 0; color: var(--muted); font-weight: 700; line-height: 1.6; }
.site-footer {
  width: min(calc(100% - 32px), var(--max)); margin: 0 auto; padding: 28px 0 44px;
  display: flex; align-items: center; justify-content: space-between; gap: 18px; color: var(--muted); font-weight: 800;
}
.site-footer nav { gap: 16px; }
.site-footer a { color: var(--primary); }

.legal-page { width: min(calc(100% - 32px), 860px); margin: 70px auto; padding: 34px; border-radius: var(--radius-xl); background: rgba(255,255,255,.86); border: 2px solid rgba(255,255,255,.8); box-shadow: 0 20px 42px rgba(15,39,65,.10); }
.legal-page h1 { margin: 0 0 12px; font-size: clamp(36px, 6vw, 64px); line-height: .98; letter-spacing: -.05em; color: var(--primary); }
.legal-page h2 { margin-top: 30px; color: var(--primary); }
.legal-page p, .legal-page li { color: var(--muted); line-height: 1.7; font-weight: 650; }
.legal-page a { color: var(--blue); font-weight: 900; }
.back-home { display: inline-flex; margin-bottom: 24px; color: var(--blue); font-weight: 900; }

@keyframes floaty { 0%, 100% { translate: 0 0; } 50% { translate: 0 -14px; } }
@keyframes pop { 0%,100% { scale: 1; } 50% { scale: 1.06; } }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; gap: 32px; padding-top: 62px; }
  .hero-stage { min-height: 600px; }
  .phone-shell { width: min(100%, 340px); }
  .phone-screen { min-height: 620px; }
  .intro-strip, .feature-layout, .parents-panel { grid-template-columns: 1fr; }
  .feature-card.accent { grid-column: auto; }
  .theme-marquee { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .hero { width: min(calc(100% - 24px), var(--max)); padding-top: 42px; }
  .hero-logo { width: min(275px, 78vw); margin-bottom: 18px; }
  .hero h1 { font-size: clamp(43px, 14vw, 62px); }
  .hero-stage { min-height: 520px; }
  .phone-shell { width: 286px; border-radius: 38px; padding: 10px; }
  .phone-screen { min-height: 528px; border-radius: 30px; padding: 24px 14px; }
  .menu-row { min-height: 72px; }
  .menu-row img { width: 54px; height: 54px; }
  .floating-card { width: 82px; height: 108px; }
  .card-one { left: -4px; top: 116px; }
  .card-two { right: -2px; top: 72px; }
  .card-three { right: 12px; bottom: 70px; }
  .match-badge { left: 0; bottom: 126px; font-size: 20px; }
  .section { width: min(calc(100% - 24px), var(--max)); padding: 52px 0; }
  .theme-marquee { grid-template-columns: 1fr; }
  .theme-tile, .theme-tile img { min-height: 230px; }
  .site-footer { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
