/* EasyStep Junior website */
:root {
  --blue: #2F80ED;
  --blue-dark: #1A5FD0;
  --green: #45B82C;
  --green-dark: #2E9E22;
  --yellow: #FFC81F;
  --orange: #F08C2E;
  --pink: #FF7FA3;
  --purple: #8B5CF6;
  --ink: #1B2550;
  --ink-soft: #4A5578;
  --sky: #EAF4FF;
  --sky-2: #F6FAFF;
  --card: #FFFFFF;
  --line: #D9E6F7;
  --radius: 22px;
  --shadow: 0 10px 30px rgba(27, 37, 80, 0.10);
  --head: "Fredoka", "Nunito", system-ui, sans-serif;
  --body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--sky-2);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue-dark); }
h1, h2, h3 { font-family: var(--head); line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 600; }
p { margin: 0 0 1em; }

.wrap { width: min(1120px, 100% - 32px); margin: 0 auto; }
.center { text-align: center; }
.lead { font-size: 1.15rem; color: var(--ink-soft); }
.eyebrow {
  display: inline-block; font-family: var(--head); font-weight: 600; font-size: .95rem;
  color: var(--blue-dark); background: #DCEBFF; padding: 6px 14px; border-radius: 999px; margin-bottom: 14px;
}
section { padding: 72px 0; }
.section-head { max-width: 680px; margin: 0 auto 40px; text-align: center; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(246, 250, 255, 0.88); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 0; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--head); font-weight: 700; font-size: 1.25rem; }
.brand img { width: 44px; height: 44px; border-radius: 12px; }
.nav-links { display: flex; gap: 22px; align-items: center; }
.nav-links a { text-decoration: none; color: var(--ink); font-weight: 700; font-size: .98rem; }
.nav-links a:hover { color: var(--blue-dark); }
@media (max-width: 760px) { .nav-links a:not(.btn) { display: none; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; justify-content: center;
  font-family: var(--head); font-weight: 600; font-size: 1.05rem; text-decoration: none;
  padding: 13px 22px; border-radius: 16px; border: 0; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: linear-gradient(180deg, var(--blue), var(--blue-dark)); color: #fff; box-shadow: 0 8px 18px rgba(47, 128, 237, .35); }
.btn-ghost { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 2px var(--line); }
.btn-small { padding: 9px 16px; font-size: .95rem; border-radius: 12px; }
.btn-store { background: var(--ink); color: #fff; padding: 12px 22px; border-radius: 14px; }
.btn-store small { display: block; font-size: .72rem; opacity: .8; font-family: var(--body); font-weight: 700; }
.btn-store span { display: block; line-height: 1.1; text-align: left; }
.btn-store svg { width: 28px; height: 28px; fill: #fff; }
.btn-store.soon { cursor: default; }
.btn-store.soon:hover { transform: none; }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden; padding: 64px 0 80px;
  background: radial-gradient(1200px 500px at 80% -10%, #CFE6FF 0%, transparent 60%),
              radial-gradient(900px 500px at -10% 110%, #DDF7D3 0%, transparent 60%),
              var(--sky);
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero h1 .blue { color: var(--blue); }
.hero h1 .green { color: var(--green); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin: 26px 0 18px; }
.hero-notes { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0; list-style: none; }
.hero-notes li { background: #fff; border-radius: 999px; padding: 6px 14px; font-weight: 700; font-size: .92rem; box-shadow: 0 2px 8px rgba(27,37,80,.06); }
.hero-logo { width: 150px; margin-bottom: 18px; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { text-align: center; }
  .hero-logo { margin-left: auto; margin-right: auto; }
  .hero-ctas, .hero-notes { justify-content: center; }
}

/* phone mockup */
.phone {
  width: min(330px, 86%); margin: 0 auto; aspect-ratio: 9 / 15.5; position: relative;
  background: #0F1530; border-radius: 48px; padding: 14px; box-shadow: 0 30px 60px rgba(27,37,80,.25);
  transform: rotate(2deg);
}
.screen {
  height: 100%; border-radius: 36px; overflow: hidden; padding: 46px 16px 16px;
  background: linear-gradient(160deg, #C9F0C2 0%, #E4F3C0 55%, #F3FBEA 100%);
  display: flex; flex-direction: column; gap: 14px; position: relative;
}
.screen::before { content: ""; position: absolute; top: 12px; left: 50%; transform: translateX(-50%); width: 92px; height: 26px; background: #0F1530; border-radius: 20px; }
.qbar { display: flex; align-items: center; gap: 8px; }
.qbar .x { width: 30px; height: 30px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-weight: 800; color: var(--ink-soft); font-size: .9rem; }
.qbar .track { flex: 1; height: 8px; background: #fff; border-radius: 9px; overflow: hidden; }
.qbar .track i { display: block; width: 45%; height: 100%; background: var(--blue); border-radius: 9px; }
.qbar .count { background: var(--blue); color: #fff; font-family: var(--head); font-weight: 600; font-size: .8rem; padding: 3px 10px; border-radius: 999px; }
.qcard { background: #fff; border-radius: 20px; padding: 16px; text-align: center; box-shadow: 0 6px 16px rgba(27,37,80,.08); }
.qcard .tag { display: inline-block; font-size: .72rem; font-weight: 800; color: var(--blue-dark); background: #E3EEFF; padding: 3px 10px; border-radius: 999px; margin-bottom: 8px; }
.qcard p { font-family: var(--head); font-weight: 600; font-size: 1.12rem; margin: 0; line-height: 1.25; }
.qgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.qopt { background: #fff; border-radius: 16px; padding: 8px; box-shadow: inset 0 0 0 3px #BFD7FA; position: relative; }
.qopt.correct { box-shadow: inset 0 0 0 4px var(--green); }
.qopt.correct::after { content: "✓"; position: absolute; top: -8px; right: -8px; width: 26px; height: 26px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; font-weight: 900; font-size: .9rem; }

/* ---------- stats ---------- */
.stats { padding: 0; margin-top: -38px; position: relative; z-index: 2; }
.stats-row { display: grid; grid-template-columns: repeat(5, 1fr); background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 10px; }
.stat { text-align: center; padding: 6px; }
.stat b { display: block; font-family: var(--head); font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 700; color: var(--blue); }
.stat:nth-child(2) b { color: var(--green); } .stat:nth-child(3) b { color: var(--orange); } .stat:nth-child(4) b { color: var(--purple); } .stat:nth-child(5) b { color: var(--pink); }
.stat span { font-weight: 700; color: var(--ink-soft); font-size: .92rem; }
@media (max-width: 720px) { .stats-row { grid-template-columns: repeat(2, 1fr); row-gap: 14px; } .stat:last-child { grid-column: span 2; } }

/* ---------- cards ---------- */
.grid { display: grid; gap: 20px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 960px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-4, .grid-3 { grid-template-columns: 1fr; } }
.card { background: var(--card); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card .icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-size: 1.8rem; margin-bottom: 14px; }
.card p { color: var(--ink-soft); margin: 0; }
.band { border-top: 6px solid var(--blue); }
.band.b2 { border-color: var(--green); } .band.b3 { border-color: var(--orange); } .band.b4 { border-color: var(--purple); }
.band .grade { font-family: var(--head); font-weight: 700; font-size: 1.5rem; margin-bottom: 4px; }
.band ul { margin: 12px 0 0; padding-left: 18px; color: var(--ink-soft); }
.band li { margin-bottom: 4px; }
.i-blue { background: #E3EEFF; } .i-green { background: #E2F7DC; } .i-yellow { background: #FFF4CC; } .i-pink { background: #FFE6EE; } .i-purple { background: #EFE7FF; } .i-orange { background: #FFEBD9; }

.alt { background: #fff; }

/* ---------- parents ---------- */
.parents-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: center; }
@media (max-width: 900px) { .parents-grid { grid-template-columns: 1fr; } }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.checklist li { display: flex; gap: 14px; align-items: flex-start; background: var(--sky-2); border-radius: 16px; padding: 14px 16px; }
.checklist .tick { flex: 0 0 32px; height: 32px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; font-weight: 900; }
.checklist b { display: block; font-family: var(--head); font-weight: 600; font-size: 1.08rem; }
.checklist span { color: var(--ink-soft); }

/* ---------- other apps ---------- */
.app-card { display: flex; gap: 18px; align-items: center; }
.app-card .emoji { flex: 0 0 72px; height: 72px; border-radius: 18px; display: grid; place-items: center; font-size: 2.3rem; }
.app-card h3 { margin-bottom: 4px; }
.app-card a { font-weight: 800; text-decoration: none; }

/* ---------- cta ---------- */
.cta { background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 60%, #1747A6 100%); color: #fff; border-radius: 30px; padding: 48px 28px; text-align: center; position: relative; overflow: hidden; }
.cta h2 { color: #fff; }
.cta p { color: #DCE9FF; max-width: 560px; margin: 0 auto 22px; }
.cta .btn-store { background: #fff; color: var(--ink); }
.cta .btn-store svg { fill: var(--ink); }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #C9D3EE; padding: 48px 0 32px; margin-top: 72px; }
.footer-grid { display: flex; flex-wrap: wrap; gap: 28px; justify-content: space-between; align-items: flex-start; }
.site-footer img { width: 210px; background: #fff; border-radius: 16px; padding: 8px 12px; }
.site-footer .tagline { font-family: var(--head); font-weight: 600; color: var(--yellow); margin-top: 12px; }
.site-footer h4 { font-family: var(--head); color: #fff; margin: 0 0 10px; font-size: 1.05rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.site-footer a { color: #C9D3EE; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.copyright { border-top: 1px solid rgba(255,255,255,.12); margin-top: 32px; padding-top: 18px; font-size: .9rem; }

/* ---------- document pages (privacy, support) ---------- */
.doc { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(24px, 5vw, 52px); max-width: 820px; margin: 40px auto 0; }
.doc h1 { font-size: clamp(2rem, 4vw, 2.6rem); }
.doc h2 { font-size: 1.5rem; margin-top: 1.6em; }
.doc .updated { color: var(--ink-soft); font-weight: 700; }
.doc li { margin-bottom: 6px; }
.summary { background: var(--sky); border-radius: 16px; padding: 18px 20px; margin: 18px 0 8px; }
.summary ul { margin: 8px 0 0; padding-left: 20px; }
details { background: var(--sky-2); border-radius: 16px; padding: 14px 18px; margin-bottom: 12px; }
summary { font-family: var(--head); font-weight: 600; font-size: 1.1rem; cursor: pointer; }
details p { margin: 10px 0 0; color: var(--ink-soft); }
.contact-box { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; background: var(--sky); border-radius: 18px; padding: 20px 22px; margin: 24px 0; }
.contact-box b { font-family: var(--head); font-size: 1.2rem; }
