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

:root {
  --ink: #1F3C4A;
  --ink-soft: #4C6A77;
  --teal: #21485A;
  --teal-deep: #1A3A4A;
  --teal-card: #2C5A6E;
  --on-teal: #F6F3EC;
  --on-teal-soft: #C2D6DD;
  --cream: #FBF6EC;
  --paper: #F6EFE3;
  --sky: #FFE6C8;
  --sky-low: #EBECDE;
  --green: #6CBF84;
  --green-ink: #0F2E1B;
  --sun: #F2C46D;
  --rose: #E59A8C;
  --line: #E4DACA;
  --radius: 22px;
  --wrap: 1120px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 17px/1.6 "Nunito", ui-rounded, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: "Fredoka", ui-rounded, system-ui, sans-serif; font-weight: 600; line-height: 1.1; margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
h1 { font-size: clamp(40px, 6.2vw, 68px); }
h2 { font-size: clamp(30px, 4.2vw, 46px); }
h3 { font-size: 22px; line-height: 1.2; }
p { margin: 0; text-wrap: pretty; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; background: var(--ink); color: var(--on-teal); padding: 8px 14px; border-radius: 10px; z-index: 10; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border-radius: 999px;
  font: 600 17px/1 "Fredoka", system-ui, sans-serif; text-decoration: none; white-space: nowrap;
  border: 0; cursor: pointer; transition: transform .15s ease, background-color .15s ease;
}
.btn:active { transform: scale(.97); }
.btn-store { background: var(--teal-deep); color: var(--on-teal); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12), 0 0 0 1px var(--teal-deep); }
.btn-store:hover { background: #12303E; }
.btn-store small { display: block; font: 600 11px/1 "Nunito", sans-serif; opacity: .75; letter-spacing: .01em; margin-bottom: 3px; }
.btn-store .lbl { display: flex; flex-direction: column; align-items: flex-start; }
.btn-store svg { width: 24px; height: 24px; flex: none; }
.btn-store[aria-disabled="true"] { cursor: default; }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 15px; }

/* Header */
.top { position: sticky; top: 0; z-index: 5; background: rgba(255, 230, 200, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.top .wrap { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 600 22px/1 "Fredoka", sans-serif; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.nav { display: flex; gap: 22px; margin-left: auto; font-weight: 700; font-size: 15px; }
.nav a { text-decoration: none; color: var(--ink-soft); }
.nav a:hover { color: var(--ink); }
@media (max-width: 820px) { .nav { display: none; } .top .btn { margin-left: auto; } }

/* Hero */
:root { --gh: clamp(220px, 28vw, 400px); }
.hero, .final { background: linear-gradient(var(--sky) 0, #DDEADF calc(100% - var(--gh) - 120px), #D2E9EF calc(100% - var(--gh))); }
.hero { position: relative; overflow: hidden; padding: 64px 0 0; }
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: start; }
.hero-copy { padding-top: 40px; }
.hero-copy p.lead { font-size: 20px; color: var(--ink-soft); margin: 20px 0 30px; max-width: 34ch; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; }
.hero-cta .note { font-weight: 700; color: var(--ink-soft); font-size: 15px; }
.hero-phone { justify-self: center; width: min(320px, 80vw); margin-bottom: -330px; }
.ground { height: var(--gh); background: url("/img/ground.webp") center 35% / cover no-repeat; }
.hero .ground { background-image: url("/img/ground-flip.webp"); }
@media (max-width: 820px) {
  .hero { padding-top: 36px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 36px; }
  .hero-copy { padding-top: 0; }
  .hero-phone { width: min(260px, 70vw); margin-bottom: -40px; }
  :root { --gh: 250px; }
  .ground { background-image: url("/img/ground-sm.webp"); background-position: 70% 30%; }
  .hero .ground { background-image: url("/img/ground-flip-sm.webp"); background-position: 30% 30%; }
}

.phone { background: var(--paper); padding: 9px; border-radius: 44px; }
.phone img { border-radius: 36px; aspect-ratio: 1320 / 2868; width: 100%; object-fit: cover; }

/* Facts band */
.facts { background: var(--teal-deep); color: var(--on-teal); position: relative; z-index: 1; }
.facts ul { list-style: none; margin: 0; padding: 30px 20px; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 36px; font: 600 18px/1.3 "Fredoka", sans-serif; }
.facts li { display: flex; align-items: center; gap: 10px; }
.facts li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--green); flex: none; }
.facts li:nth-child(3n+2)::before { background: var(--sun); }
.facts li:nth-child(3n)::before { background: var(--rose); }

/* Sections */
section { padding: 96px 0; }
.sec-head { max-width: 640px; margin-bottom: 48px; }
.sec-head p { margin-top: 16px; font-size: 19px; color: var(--ink-soft); }
.center { text-align: center; margin-left: auto; margin-right: auto; }

/* Games */
.games-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.game { background: var(--paper); border-radius: var(--radius); padding: 18px 18px 22px; }
.game .phone { background: var(--cream); padding: 6px; border-radius: 30px; margin-bottom: 18px; }
.game .phone img { border-radius: 25px; }
.game p { color: var(--ink-soft); margin-top: 6px; font-size: 16px; }
@media (max-width: 960px) { .games-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .games-grid { grid-template-columns: 1fr; } .game { display: grid; grid-template-columns: 110px 1fr; gap: 16px; align-items: center; } .game .phone { margin: 0; } }

/* Steps */
.steps-sec { background: var(--paper); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; list-style: none; margin: 0; padding: 0; }
.steps li { background: var(--cream); border-radius: var(--radius); padding: 28px 26px 30px; counter-increment: step; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--sun); color: var(--ink); font: 600 22px/1 "Fredoka", sans-serif; margin-bottom: 20px; }
.steps li:nth-child(2)::before { background: var(--green); }
.steps li:nth-child(3)::before { background: var(--rose); }
.steps p { color: var(--ink-soft); margin-top: 8px; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

/* Wind-down feature */
.night { background: var(--teal) url("/img/night.webp") center / cover no-repeat; color: var(--on-teal); }
.night .wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: center; }
.night .phone { width: min(300px, 76vw); justify-self: center; background: var(--teal-deep); }
.night-copy p { color: var(--on-teal-soft); font-size: 19px; margin-top: 18px; max-width: 46ch; }
.night-copy ul { margin: 26px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.night-copy li { display: flex; gap: 12px; align-items: flex-start; font-weight: 700; }
.night-copy li img { width: 26px; height: 26px; flex: none; }
@media (max-width: 820px) { .night .wrap { grid-template-columns: 1fr; } .night .phone { order: 2; width: min(220px, 60vw); } }

/* Grown-ups */
.grown { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grown div { border-top: 2px solid var(--line); padding-top: 22px; }
.grown p { color: var(--ink-soft); margin-top: 8px; }
@media (max-width: 820px) { .grown { grid-template-columns: 1fr; } }

/* Pricing */
.pricing-sec { background: var(--paper); }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 980px; margin: 0 auto; }
.plan { background: var(--cream); border-radius: var(--radius); padding: 30px 26px; display: flex; flex-direction: column; }
.plan.pick { background: var(--teal-deep); color: var(--on-teal); }
.plan.pick .plan-sub, .plan.pick li { color: var(--on-teal-soft); }
.plan .tag { align-self: flex-start; background: var(--sun); color: var(--ink); font: 600 13px/1 "Fredoka", sans-serif; padding: 7px 12px; border-radius: 999px; margin-bottom: 16px; }
.plan h3 { font-size: 22px; }
.price { font: 600 44px/1 "Fredoka", sans-serif; margin: 18px 0 4px; }
.price span { font-size: 17px; font-weight: 500; }
.plan-sub { color: var(--ink-soft); font-size: 15px; }
.plan ul { margin: 20px 0 0; padding: 0 0 0 18px; color: var(--ink-soft); font-size: 15px; display: grid; gap: 6px; }
.fine { max-width: 720px; margin: 28px auto 0; text-align: center; font-size: 14px; color: var(--ink-soft); }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; max-width: 440px; } }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; }
.faq details { border-bottom: 2px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative; font: 600 20px/1.3 "Fredoka", sans-serif; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; border-right: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink); transform: translateY(-70%) rotate(45deg); transition: transform .2s ease; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { padding: 0 0 22px; color: var(--ink-soft); }

/* Final CTA */
.final { padding: 96px 0 0; text-align: center; }
.final p { color: var(--ink-soft); font-size: 19px; margin: 16px auto 30px; max-width: 40ch; }
.final .ground { margin-top: 24px; }

/* Footer */
footer { background: var(--teal-deep); color: var(--on-teal-soft); padding: 44px 0; font-size: 15px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 18px 32px; align-items: center; }
footer nav { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-left: auto; }
footer a { text-decoration: none; color: var(--on-teal); font-weight: 700; }
footer a:hover { text-decoration: underline; }
footer .brand { color: var(--on-teal); }

/* Legal / support pages */
.doc { max-width: 760px; margin: 0 auto; padding: 64px 20px 96px; }
.doc h1 { font-size: clamp(36px, 5vw, 52px); }
.doc .meta { color: var(--ink-soft); margin: 12px 0 40px; font-weight: 700; }
.doc h2 { font-size: 26px; margin: 40px 0 12px; }
.doc p, .doc li { color: #2F4C59; }
.doc p + p { margin-top: 12px; }
.doc ul { padding-left: 22px; display: grid; gap: 8px; }
.doc .box { background: var(--paper); border-radius: var(--radius); padding: 24px 26px; margin: 28px 0; }
.doc .box p { color: var(--ink); }
.doc a { font-weight: 700; }
