/* Re a Ithuta website: bright, rounded and calm, using the same colours and fonts as the app */
:root { color-scheme: only light;
  --ink: #2B2250; --ink2: #4a4170; --muted: #6b6488; --purple: #6C4BF4; --purple-d: #5436d6; --purple-l: #efeaff;
  --yellow: #FFC93C; --yellow-l: #fff4d4; --coral: #FF6B6B; --coral-l: #ffe7e7; --mint: #2EC4B6; --mint-l: #dcf7f4;
  --green: #58C24B; --sky: #CFEAFF; --sky-l: #eaf6ff; --cream: #FFF8EC; --white: #fff; --line: #ece6f5;
  --r: 22px; --r-s: 14px; --shadow: 0 6px 0 rgba(43, 34, 80, .08), 0 14px 30px rgba(43, 34, 80, .08);
  --wrap: 1160px; --head: 'Fredoka', 'Nunito', system-ui, sans-serif; --body: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--body); color: var(--ink); background: var(--cream); font-size: 17px; line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--purple-d); text-underline-offset: 3px; }
a:hover { color: var(--purple); }
h1, h2, h3, h4 { font-family: var(--head); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--purple); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 10px; z-index: 50; }
.skip:focus { left: 12px; }

/* header */
.top { position: sticky; top: 0; z-index: 20; background: rgba(255, 248, 236, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 18px; min-height: 70px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--head); font-weight: 600; font-size: 1.35rem; white-space: nowrap; }
.logo img { width: 40px; height: 40px; border-radius: 12px; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a { text-decoration: none; color: var(--ink2); font-weight: 700; padding: 8px 12px; border-radius: 12px; font-size: .98rem; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--purple-l); color: var(--purple-d); }
.menu-btn { display: none; margin-left: auto; background: var(--white); border: 2px solid var(--line); border-radius: 12px; padding: 8px 12px; font: 700 1rem var(--body); color: var(--ink); cursor: pointer; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 700 1.02rem var(--body); text-decoration: none; border: 0; cursor: pointer;
  padding: 13px 24px; border-radius: 999px; background: var(--purple); color: #fff; box-shadow: 0 4px 0 var(--purple-d); transition: transform .12s, box-shadow .12s; min-height: 48px; }
.btn:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 5px 0 var(--purple-d); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--purple-d); }
.btn.sun { background: var(--yellow); color: var(--ink); box-shadow: 0 4px 0 #e0a816; }
.btn.sun:hover { color: var(--ink); }
.btn.ghost { background: var(--white); color: var(--ink); box-shadow: 0 4px 0 var(--line); border: 2px solid var(--line); }
.btn.ghost:hover { color: var(--purple-d); }
.btn.small { padding: 9px 18px; min-height: 40px; font-size: .95rem; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }
.nav .btn { color: #fff; margin-left: 6px; }
.nav .btn:hover { background: var(--purple); color: #fff; }

/* hero */
.hero { position: relative; overflow: hidden; padding: 56px 0 90px; background: radial-gradient(circle at 85% 20%, var(--yellow-l), transparent 45%), radial-gradient(circle at 8% 85%, var(--mint-l), transparent 40%); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 44px; align-items: center; }
.tag { display: inline-flex; align-items: center; gap: 8px; background: var(--white); border: 2px solid var(--line); color: var(--ink2); font-weight: 800; font-size: .85rem; letter-spacing: .04em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 999px; margin-bottom: 16px; }
.tag i { width: 9px; height: 9px; border-radius: 50%; background: var(--green); display: inline-block; }
.lead { font-size: 1.2rem; color: var(--ink2); max-width: 36em; }
.cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 26px 0 18px; }
.note { font-size: .92rem; color: var(--muted); }
.hero-art { position: relative; }
.hero-art .blob { background: var(--white); border-radius: 40px 40px 40px 40px; padding: 14px; box-shadow: var(--shadow); transform: rotate(1.5deg); }
.hero-art .blob img { border-radius: 30px; }
.bubble { position: absolute; background: var(--white); border-radius: 18px; padding: 10px 16px; font-family: var(--head); font-weight: 600; box-shadow: var(--shadow); font-size: 1.05rem; }
.bubble.b1 { top: -14px; left: -10px; background: var(--yellow); transform: rotate(-4deg); }
.bubble.b2 { bottom: 26px; right: -12px; background: var(--mint); color: #fff; transform: rotate(3deg); }
.bubble.b3 { bottom: -18px; left: 30px; background: var(--coral); color: #fff; transform: rotate(-2deg); }
.wave { position: absolute; left: 0; right: 0; bottom: -1px; height: 60px; width: 100%; }

/* sections */
.sec { padding: 72px 0; }
.sec.white { background: var(--white); }
.sec.sky { background: var(--sky-l); }
.sec.purple { background: var(--purple); color: #fff; }
.sec.purple a { color: #fff; }
.sec-head { max-width: 760px; margin: 0 auto 40px; text-align: center; }
.sec-head p { color: var(--ink2); font-size: 1.1rem; }
.sec.purple .sec-head p { color: #ece6ff; }
.kicker { display: inline-block; font-weight: 800; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: var(--purple-d); margin-bottom: 8px; }
.sec.purple .kicker { color: var(--yellow); }
.grid { display: grid; gap: 22px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--white); border-radius: var(--r); padding: 26px; box-shadow: var(--shadow); border: 2px solid var(--line); }
.card p:last-child { margin-bottom: 0; }
.card h3 { margin-bottom: .35em; }
.icon { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; font-family: var(--head); font-weight: 700; font-size: 1.5rem; margin-bottom: 14px; color: var(--ink); }
.icon svg { width: 30px; height: 30px; }
.c-yellow { background: var(--yellow); } .c-mint { background: var(--mint); color: #fff; } .c-coral { background: var(--coral); color: #fff; } .c-purple { background: var(--purple); color: #fff; }
.c-sky { background: var(--sky); } .c-green { background: var(--green); color: #fff; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split img { border-radius: var(--r); box-shadow: var(--shadow); }
.ticks { list-style: none; padding: 0; margin: 0 0 1em; }
.ticks li { position: relative; padding-left: 34px; margin-bottom: 10px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 22px; height: 22px; border-radius: 50%; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L19 7'/%3E%3C/svg%3E") center/14px no-repeat; }
.langs { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.lang { background: var(--white); border: 2px solid var(--line); border-radius: 999px; padding: 10px 20px; font-family: var(--head); font-weight: 600; font-size: 1.15rem; box-shadow: 0 3px 0 var(--line); }
.lang small { font-family: var(--body); font-weight: 700; color: var(--muted); font-size: .8rem; margin-left: 6px; }
.faces { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.faces img { width: 74px; height: 74px; border-radius: 50%; border: 4px solid var(--white); box-shadow: 0 4px 12px rgba(43, 34, 80, .12); background: var(--cream); }
.steps { counter-reset: s; }
.step { position: relative; padding-top: 58px; }
.step::before { counter-increment: s; content: counter(s); position: absolute; top: 22px; left: 26px; width: 40px; height: 40px; border-radius: 50%; background: var(--yellow); font: 700 1.2rem var(--head); display: grid; place-items: center; }
.step h3 { margin-top: 20px; }
.quote { font-family: var(--head); font-size: clamp(1.3rem, 2.4vw, 1.8rem); line-height: 1.35; font-weight: 500; max-width: 860px; margin: 0 auto; text-align: center; }
.stat { text-align: center; }
.stat b { display: block; font: 700 clamp(2.2rem, 4vw, 3rem) var(--head); color: var(--purple-d); line-height: 1.05; margin-bottom: 6px; }
.stat p { color: var(--ink2); font-size: .98rem; }
.stat small { display: block; margin-top: 6px; font-size: .82rem; }
.sdg { display: flex; gap: 16px; align-items: flex-start; }
.sdg .num { flex: 0 0 64px; height: 64px; border-radius: 16px; display: grid; place-items: center; color: #fff; font: 700 1.5rem var(--head); }
.sdg4 { background: #C5192D; } .sdg10 { background: #DD1367; } .sdg17 { background: #19486A; } .sdg5 { background: #FF3A21; }
.band { background: var(--yellow); border-radius: 32px; padding: 44px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 30px; align-items: center; box-shadow: var(--shadow); }
.band h2 { margin-bottom: .3em; }
.band .cta { margin: 0; justify-content: flex-end; }

/* packages */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.plans.two { grid-template-columns: repeat(2, 1fr); max-width: 760px; margin: 0 auto; }
.plan { display: flex; flex-direction: column; }
.plan.best { border-color: var(--purple); box-shadow: 0 6px 0 var(--purple-l), 0 18px 40px rgba(108, 75, 244, .18); }
.plan .ribbon { align-self: flex-start; background: var(--purple); color: #fff; font-weight: 800; font-size: .78rem; letter-spacing: .05em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; margin-bottom: 12px; }
.price { font: 700 2rem var(--head); margin: 6px 0 2px; }
.price small { font: 700 .95rem var(--body); color: var(--muted); }
.price.tba { font-size: 1.25rem; color: var(--purple-d); }
.plan .ticks { flex: 1; margin-top: 12px; }
.plan .btn { width: 100%; margin-top: 10px; }
table.compare { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--white); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); border: 2px solid var(--line); font-size: .98rem; }
.compare th, .compare td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare th { background: var(--purple-l); font-family: var(--head); font-weight: 600; }
.compare tr:last-child td { border-bottom: 0; }
.table-wrap { overflow-x: auto; border-radius: var(--r); }
details.faq { background: var(--white); border: 2px solid var(--line); border-radius: var(--r-s); padding: 0 20px; margin-bottom: 12px; }
details.faq summary { cursor: pointer; font-weight: 800; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 14px; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; font: 700 1.4rem var(--head); color: var(--purple); line-height: 1; }
details.faq[open] summary::after { content: "\2212"; }
details.faq > div { padding-bottom: 16px; color: var(--ink2); }

/* page titles and long text pages */
.page-head { padding: 54px 0 40px; background: radial-gradient(circle at 90% 10%, var(--yellow-l), transparent 40%), radial-gradient(circle at 0% 100%, var(--sky), transparent 45%); }
.page-head p { font-size: 1.15rem; color: var(--ink2); max-width: 46em; }
.legal { max-width: 860px; margin: 0 auto; padding: 44px 22px 70px; }
.legal h2 { font-size: 1.5rem; margin-top: 1.6em; }
.legal h3 { font-size: 1.15rem; margin-top: 1.3em; }
.legal li { margin-bottom: 6px; }
.legal .box { background: var(--white); border: 2px solid var(--line); border-radius: var(--r-s); padding: 18px 22px; margin: 18px 0; }
.draft { background: var(--yellow-l); border: 2px dashed #e0a816; border-radius: var(--r-s); padding: 12px 18px; font-size: .95rem; margin-bottom: 20px; }
.toc { background: var(--white); border-radius: var(--r-s); padding: 16px 22px; border: 2px solid var(--line); }
.toc ol { margin: 6px 0 0; padding-left: 20px; columns: 2; }

/* forms */
.auth { min-height: calc(100vh - 70px); display: grid; place-items: center; padding: 40px 18px 70px; background: radial-gradient(circle at 10% 10%, var(--yellow-l), transparent 40%), radial-gradient(circle at 90% 90%, var(--mint-l), transparent 40%); }
.panel { width: 100%; max-width: 480px; background: var(--white); border-radius: 28px; padding: 34px; box-shadow: var(--shadow); border: 2px solid var(--line); }
.panel.wide { max-width: 760px; }
.panel h1 { font-size: 2rem; }
.panel .sub { color: var(--ink2); }
.field { margin-bottom: 16px; }
.field label, .lbl { display: block; font-weight: 800; margin-bottom: 6px; font-size: .97rem; }
.field input, .field select { width: 100%; font: 600 1.05rem var(--body); color: var(--ink); padding: 13px 15px; border: 2px solid var(--line); border-radius: 14px; background: #fdfcff; min-height: 50px; }
.field input:focus, .field select:focus { border-color: var(--purple); outline: none; box-shadow: 0 0 0 4px var(--purple-l); }
.field .hint { font-size: .88rem; color: var(--muted); margin-top: 5px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.check { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; font-size: .97rem; }
.check input { width: 22px; height: 22px; margin-top: 2px; flex: 0 0 22px; accent-color: var(--purple); }
.code-in { letter-spacing: .5em; text-align: center; font-size: 1.6rem !important; font-family: var(--head) !important; }
.msg { border-radius: 14px; padding: 12px 16px; margin-bottom: 16px; font-weight: 700; font-size: .97rem; }
.msg.err { background: var(--coral-l); color: #a32626; }
.msg.ok { background: var(--mint-l); color: #12665e; }
.msg.info { background: var(--sky-l); color: #1f4f7a; }
.panel .alt { text-align: center; margin-top: 18px; font-size: .97rem; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--purple-d); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-weight: 700; }
.linkbtn[disabled] { color: var(--muted); text-decoration: none; cursor: default; }
.stepper { display: flex; gap: 8px; margin-bottom: 20px; }
.stepper span { flex: 1; height: 8px; border-radius: 99px; background: var(--line); }
.stepper span.on { background: var(--purple); }
.meter { height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; margin-top: 8px; }
.meter i { display: block; height: 100%; width: 0; background: var(--coral); transition: width .2s, background .2s; }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 76px; }
.pw-wrap button { position: absolute; right: 8px; top: 8px; bottom: 8px; border: 0; background: var(--purple-l); color: var(--purple-d); font: 800 .85rem var(--body); border-radius: 10px; padding: 0 12px; cursor: pointer; }
.hidden { display: none !important; }

/* account */
.kids { display: grid; gap: 12px; margin: 14px 0 20px; }
.kid { display: flex; align-items: center; gap: 14px; background: var(--cream); border-radius: 16px; padding: 12px 16px; border: 2px solid var(--line); }
.kid .av { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font: 700 1.25rem var(--head); color: #fff; flex: 0 0 46px; }
.kid b { font-size: 1.08rem; }
.kid .grow { flex: 1; min-width: 0; }
.kid .acts { display: flex; gap: 8px; }
.acct-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.acct-grid .card { padding: 22px; }
dl.info { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0; }
dl.info dt { font-weight: 800; color: var(--muted); }
dl.info dd { margin: 0; overflow-wrap: anywhere; }

/* footer */
.foot { background: var(--ink); color: #d9d4ee; padding: 56px 0 30px; font-size: .95rem; }
.foot a { color: #fff; text-decoration: none; }
.foot a:hover { text-decoration: underline; color: #fff; }
.foot .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; }
.foot h4 { color: #fff; font-size: 1.05rem; margin-bottom: 12px; }
.foot ul { list-style: none; padding: 0; margin: 0; }
.foot li { margin-bottom: 8px; }
.foot .brand { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.foot .brand img { background: #fff; border-radius: 8px; padding: 4px 8px; width: 120px; height: auto; }
.foot .legalline { border-top: 1px solid rgba(255, 255, 255, .14); margin-top: 36px; padding-top: 20px; font-size: .86rem; color: #b8b1d6; }
.foot .legalline p { margin-bottom: .5em; }

@media (max-width: 980px) {
  .g4 { grid-template-columns: repeat(2, 1fr); }
  .plans, .plans.two { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .foot .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; top: 70px; left: 0; right: 0; background: var(--cream); flex-direction: column; align-items: stretch; padding: 12px 18px 20px; border-bottom: 2px solid var(--line); box-shadow: 0 14px 30px rgba(43, 34, 80, .1); }
  .nav.open { display: flex; }
  .nav a { padding: 12px 14px; font-size: 1.05rem; }
  .nav .btn { margin: 8px 0 0; }
  .hero .wrap, .split, .band { grid-template-columns: 1fr; }
  .hero { padding-top: 34px; }
  .hero-art { max-width: 560px; margin: 10px auto 0; }
  .g3, .g2, .acct-grid { grid-template-columns: 1fr; }
  .band .cta { justify-content: flex-start; }
  .toc ol { columns: 1; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .sec { padding: 54px 0; }
  .g4 { grid-template-columns: 1fr; }
  .row2 { grid-template-columns: 1fr; gap: 0; }
  .panel { padding: 24px 20px; border-radius: 22px; }
  .foot .cols { grid-template-columns: 1fr; }
  .band { padding: 28px 22px; }
  .faces img { width: 58px; height: 58px; }
  .bubble { font-size: .9rem; padding: 7px 12px; }
  .kid { flex-wrap: wrap; }
  .kid .acts { width: 100%; }
  .kid .acts .btn { flex: 1; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
.tba-x { background: var(--yellow-l); border: 1px dashed #e0a816; border-radius: 6px; padding: 0 6px; font-size: .92em; color: var(--ink2); white-space: nowrap; }
.foot .tba-x { background: transparent; border-color: rgba(255,255,255,.35); color: #d9d4ee; }
.center { text-align: center; justify-content: center; }
.faces + .note { margin-top: 14px; }
.grid + .note { margin-top: 22px; }
@media (max-width: 520px) { .tag { font-size: .74rem; letter-spacing: .02em; } }

/* name line, reading fact and reward game cards (home) */
.name-line { font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 1.25rem; color: var(--purple); margin: .2em 0 .6em; }
.name-line span { white-space: nowrap; }
.name-line.small { font-size: 1.05rem; margin: 0 0 .4em; }
.fact { background: var(--white); border-left: 6px solid var(--coral); border-radius: 18px; padding: 18px 20px; margin: 18px 0; box-shadow: var(--shadow); }
.fact b { font-family: 'Fredoka', sans-serif; font-size: 2.2rem; color: var(--coral); line-height: 1; }
.fact p { margin: .3em 0 .5em; }
.fact small a { color: var(--purple); }
.card.game { padding: 0; overflow: hidden; }
.card.game img { width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; display: block; }
.card.game h3 { margin: 16px 20px .3em; }
.card.game p { margin: 0 20px 20px; }

/* phones: card rows on the home page swipe sideways instead of stacking */
@media (max-width: 860px) {
  .grid.swipe { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 22px 14px; margin: 0 -22px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .grid.swipe::-webkit-scrollbar { display: none; }
  .grid.swipe > .card { flex: 0 0 80%; scroll-snap-align: center; }
  .hide-sm { display: none; }
}

/* ===== One section per screen on laptops and desktops =====
   Each section fills the screen below the top menu and its content is sized to fit inside it,
   so a heading, its text and its cards are always seen together. Phones keep the normal flow. */
.safe-strip { margin-top: 34px; text-align: center; }
.safe-strip h3 { margin: .2em 0 14px; font-size: 1.3rem; }
.safe-strip .card.mini { text-align: left; }
.card.mini { display: grid; grid-template-columns: 46px 1fr; column-gap: 14px; align-items: start; padding: 16px 18px; }
.card.mini .icon { grid-row: span 2; width: 46px; height: 46px; margin: 0; }
.card.mini h3 { font-size: 1.05rem; margin: 0 0 .2em; }
.card.mini p { font-size: .95rem; margin: 0; }
.story .card.mini + .card.mini { margin-top: 12px; }
.h3big { font-size: 1.45rem; margin: .2em 0 14px; }
.card.partner { background: var(--yellow-l); border-color: #ffe29a; }
.sec-head.who { margin-top: 40px; }
.kicker.fam { margin: 22px 0 0; font-size: .85rem; }
.partner-cards { margin-top: 30px; }
@media (max-width: 860px) {
  .safe-strip { display: grid; gap: 12px; }
  .page-head .split img { display: none; }
}
@media (min-width: 861px) {
  .safe-strip { display: grid; grid-template-columns: auto 1fr 1fr; gap: 16px; align-items: center; }
  .safe-strip > .kicker, .safe-strip > h3 { grid-column: 1; }
  .safe-strip > .kicker { display: none; }
  .safe-strip > h3 { margin: 0; text-align: left; max-width: 12em; }
}
@media (min-width: 1024px) and (min-height: 540px) {
  :root { --wrap: 1260px; --top-h: 71px; }
  html { scroll-snap-type: y proximity; scroll-padding-top: var(--top-h); }
  .hero, .sec, .page-head.screen { min-height: calc(100vh - var(--top-h)); box-sizing: border-box; display: flex; flex-direction: column; justify-content: center; padding: 22px 0; scroll-snap-align: start; }
  .hero > .wrap, .sec > .wrap, .page-head.screen > .wrap { width: 100%; }
  .hero { padding-bottom: 60px; }
  .sec-head { margin-bottom: 26px; }
  .sec-head p { font-size: 1.05rem; }
  .grid { gap: 20px; }
  .card { padding: 22px; }
  .split { gap: 56px; }
  .split > div > img { max-height: calc(100vh - var(--top-h) - 110px); width: 100%; object-fit: cover; }
  .card.game img { aspect-ratio: 16/7.2; }
  .card.game h3 { margin-top: 12px; }
  .card.game p { margin-bottom: 16px; }
  .fact { padding: 14px 18px; margin: 12px 0; }
  .fact b { font-size: 1.9rem; }
  .sec h2 { margin-bottom: .35em; }
  .sdgs .card.sdg { flex-direction: column; gap: 10px; padding: 20px; }
  .sdgs .sdg .num { flex: 0 0 auto; width: 52px; height: 52px; font-size: 1.3rem; }
  .sdgs .sdg p { font-size: .9rem; margin-bottom: .5em; line-height: 1.45; }
  .sdgs + .note { margin: 12px 0 0; }
  .page-head.screen h1 { font-size: clamp(2.3rem, 3.6vw, 3.3rem); }
  .pk .plans.two { max-width: none; }
  .pk .plan .ticks li { margin-bottom: 6px; }
  .compare th, .compare td { padding: 10px 16px; }
  .footer, footer { scroll-snap-align: end; }
  .card.step { padding-top: 58px; }
  .split.pk { grid-template-columns: .85fr 1.9fr; gap: 40px; }
  .pk .plans.two { grid-template-columns: 1fr 1.6fr; gap: 18px; }
  .pk .plan .price { margin-bottom: .2em; }
  .pk .plan p { margin-bottom: .5em; }
  .pk .plan .ticks { margin-top: 6px; }
  .pk .plan .btn { margin-top: 4px; }
  .split.pk h1 { font-size: 2.5rem; }
  .pk .plan.best .ticks { columns: 2; column-gap: 18px; }
  .pk .plan .ticks li { break-inside: avoid; }
  .pk .plan { padding: 20px; }
  .page-head.screen .split h2 { font-size: 1.7rem; }
  .sdgs .card.sdg { padding: 16px 18px; }
  .sdgs .sdg p { font-size: .88rem; }
  .sdgs .sdg h3 { font-size: 1.1rem; }
  .sec-head.who { margin-top: 26px; }
  .partner-cards .card p { font-size: .95rem; }
  .page-head.screen > .wrap > p { margin-bottom: 0; }
  details.faq summary { padding: 12px 0; }
  details.faq { margin-bottom: 10px; }
  .hide-sm img { max-height: 400px; }
  .sec.sky .split h2 { margin-bottom: .25em; }
  .sdgs + .note { font-size: .85rem; }
}

/* shorter laptop screens: scale text down a little so each section still fits one screen */
@media (min-width: 1024px) and (max-height: 660px) { html { font-size: 15px; } body { font-size: 16px; } .sec-head { margin-bottom: 18px; } }
@media (min-width: 1024px) and (max-height: 610px) { html { font-size: 14px; } body { font-size: 15px; } }

/* package chooser on the account page */
.pkgs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 10px 0 16px; }
.pkg { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 16px 16px 14px 46px; border: 2px solid var(--line, #e8e3f7); border-radius: 18px; background: #fff; cursor: pointer; }
.pkg input { position: absolute; left: 16px; top: 19px; width: 20px; height: 20px; accent-color: var(--purple); }
.pkg .amt { font-family: Fredoka, sans-serif; font-size: 1.5rem; font-weight: 700; color: var(--purple); }
.pkg small { color: var(--muted); }
.pkg.on { border-color: var(--purple); background: #f4f0ff; }
.pkg:focus-within { outline: 3px solid #c9bbff; outline-offset: 2px; }
.amt-pay { font-family: Fredoka, sans-serif; font-size: 1.4rem; color: var(--purple); }
.eft h3 { margin-top: 0; }
@media (max-width: 640px) { .pkgs { grid-template-columns: 1fr; } }

/* account: active package and invoices */
.active-box { background: #e9faf7; border-color: #bdeee6; margin: 12px 0; }
.active-box h3 { margin: 0 0 4px; }
.inv-list { display: grid; gap: 8px; margin-bottom: 16px; }
.inv-row { display: flex; justify-content: space-between; gap: 12px; padding: 12px 16px; border: 1px solid var(--line, #e8e3f7); border-radius: 14px; background: #fff; text-decoration: none; color: inherit; }
.inv-row:hover { border-color: var(--purple); }
#own-link { margin: 4px 0 10px; }
/* owner page */
.owner { padding: 28px 0 60px; }
.owner h1 { margin-bottom: 6px; }
.own-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 16px 0; }
.own-tools input[type=search] { flex: 1 1 280px; padding: 10px 14px; border: 2px solid var(--line, #e8e3f7); border-radius: 12px; font: inherit; }
.own-tools .chk { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line, #e8e3f7); border-radius: 16px; background: #fff; margin-bottom: 22px; }
.own-tbl { width: 100%; border-collapse: collapse; font-size: .95rem; }
.own-tbl th, .own-tbl td { text-align: left; padding: 10px 14px; border-bottom: 1px solid #f0ecfa; vertical-align: middle; }
.own-tbl th { background: #f4f0ff; font-family: Fredoka, sans-serif; }
.own-tbl small { color: var(--muted); }
.own-tbl .ref { font-weight: 800; letter-spacing: .5px; white-space: nowrap; }
.st.ok { color: #1b7a6e; font-weight: 700; } .st.wait { color: #b45309; font-weight: 700; } .st.muted { color: var(--muted); }
.act-form { margin: 0 0 24px; border-color: var(--purple); }
.row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 760px) { .row3 { grid-template-columns: 1fr; } }
/* invoice */
.inv-page { padding: 28px 0 60px; }
.invoice { max-width: 820px; margin: 0 auto; background: #fff; border: 1px solid var(--line, #e8e3f7); border-radius: 20px; padding: 32px; }
.inv-top { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.inv-top .seller { margin: 10px 0 0; line-height: 1.5; }
.inv-meta h1 { margin: 0 0 8px; font-size: 2rem; }
.inv-to { margin: 22px 0; padding: 14px 16px; background: #fff8ec; border-radius: 14px; line-height: 1.5; }
.inv-tbl { width: 100%; border-collapse: collapse; margin: 10px 0 18px; }
.inv-tbl th, .inv-tbl td { padding: 10px 12px; border-bottom: 1px solid #f0ecfa; text-align: left; }
.inv-tbl th:last-child, .inv-tbl td:last-child { text-align: right; white-space: nowrap; }
.inv-tbl th { background: #f4f0ff; }
.inv-tbl tfoot td { font-weight: 700; }
.inv-tbl tr.due td { font-size: 1.15rem; color: var(--purple); border-bottom: 0; }
@media print {
  header.top, footer.foot, .skip, .no-print, #msg { display: none !important; }
  body { background: #fff !important; }
  .inv-page { padding: 0; } .invoice { border: 0; padding: 0; max-width: none; }
}
/* plan chooser: four plan lengths, then number of children */
.pkgs.four { grid-template-columns: repeat(4, 1fr); }
.kid-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; margin: 4px 0 10px; }
.kid-pick label { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.kid-pick input { width: 20px; height: 20px; accent-color: var(--purple); }
.order-total { margin: 6px 0 12px; }
.grade-ask { flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; background: #fff7df; border: 2px solid #f6dd94; border-radius: 12px; padding: 10px 12px; }
.grade-ask span { flex: 1 1 220px; }
@media (max-width: 900px) { .pkgs.four { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .pkgs.four { grid-template-columns: 1fr 1fr; gap: 10px; } .pkgs.four .pkg { padding: 12px 10px 12px 38px; } .pkgs.four .pkg input { left: 12px; top: 15px; } .pkgs.four .pkg .amt { font-size: 1.3rem; } }
.inv-row b { white-space: nowrap; }
