/* KidsCodeIt selling site. The course game's 8 bit world on top, calm readable pages for parents underneath. */
@font-face { font-family: "Press Start 2P"; src: url(/fonts/pressstart2p.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Nunito"; src: url(/fonts/nunito.woff2) format("woff2"); font-weight: 400 900; font-display: swap; }
:root {
  --sky: #6cc4ff; --sky2: #8fd4ff; --ink: #10173a; --panel: #1f2a56; --deep: #0a0f24; --night: #141b3d;
  --cream: #fff8ea; --paper: #ffffff; --line: #eadfc8; --muted: #515b80; --soft: #aab6e6;
  --yellow: #ffd23f; --gold: #ffb800; --teal: #3fc1c9; --glow: #7cf7ff; --orange: #ff8a3d; --coral: #ff6b6b; --pink: #ff8fb1; --green: #5ee07a; --grass: #4cc46a; --leaf: #1f9d55;
  --px: "Press Start 2P", ui-monospace, monospace;
  --sans: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --st: env(safe-area-inset-top, 0px); --sb: env(safe-area-inset-bottom, 0px);
  --step: steps(6, end);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--sans); font-size: 18px; line-height: 1.55; font-weight: 500; overflow-x: hidden; }
canvas { image-rendering: pixelated; image-rendering: crisp-edges; }
img, video { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 10px 14px; z-index: 200; }
.skip:focus { left: 8px; top: 8px; }
:focus-visible { outline: 3px dashed var(--orange); outline-offset: 3px; }

/* ---------- buttons ---------- */
.btn { font-family: var(--px); font-size: 12px; line-height: 1.3; letter-spacing: .04em; text-decoration: none; text-align: center;
  color: #fff; background: var(--ink); border: 4px solid var(--ink); padding: 12px 16px; cursor: pointer;
  box-shadow: 4px 4px 0 rgba(16,23,58,.35); display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  transition: transform .06s, box-shadow .06s, background .12s; }
.btn:hover { transform: translate(-1px,-1px); box-shadow: 6px 6px 0 rgba(16,23,58,.35); }
.btn:active { transform: translate(3px,3px); box-shadow: 1px 1px 0 rgba(16,23,58,.35); }
.btn.gold { background: var(--yellow); color: var(--ink); }
.btn.gold:hover { background: #ffe27a; }
.btn.ghost { background: #fff; color: var(--ink); }
.btn.big { font-size: 14px; padding: 17px 22px; }
.btn.sm { font-size: 10px; padding: 9px 12px; border-width: 3px; box-shadow: 3px 3px 0 rgba(16,23,58,.35); }
.btn.wide { width: 100%; }
.arr { width: 0; height: 0; border-left: 8px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent; animation: nudge 1s steps(2) infinite; }
@keyframes nudge { 50% { transform: translateX(4px); } }

/* ---------- nav ---------- */
.nav { position: fixed; left: 0; right: 0; top: 0; z-index: 50; padding-top: var(--st); transition: background .2s, box-shadow .2s; }
.nav.solid { background: rgba(255,248,234,.96); box-shadow: 0 3px 0 var(--ink); }
.nav-in { display: flex; align-items: center; gap: 18px; height: 62px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-bot { width: 38px; height: 38px; border-radius: 50%; background: var(--orange); border: 3px solid var(--ink); display: grid; place-items: center; overflow: hidden; flex: none; }
.brand-bot canvas { width: 30px; height: 30px; }
.brand-name { font-family: var(--px); font-size: 13px; letter-spacing: .02em; white-space: nowrap; text-shadow: 2px 2px 0 var(--ink), -1px -1px 0 var(--ink), 1px -1px 0 var(--ink), -1px 1px 0 var(--ink), 0 2px 0 var(--ink), 2px 0 0 var(--ink); }
.brand-name b { font-weight: 400; } .brand-name .k { color: var(--yellow); } .brand-name .c { color: var(--glow); } .brand-name .t { color: var(--coral); }
.links { display: flex; gap: 4px; margin-left: auto; }
.links a { font-weight: 800; font-size: 15px; text-decoration: none; padding: 8px 10px; color: var(--ink); border-radius: 4px; }
.links a:hover { background: rgba(16,23,58,.08); }
.nav .btn { flex: none; }
@media (max-width: 900px) { .links { display: none; } .nav .btn { margin-left: auto; } }

/* ---------- hero ---------- */
.hero, .final { position: relative; background: var(--sky); overflow: hidden; }
.world { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-in { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 32px; align-items: center; padding-top: calc(118px + var(--st)); padding-bottom: 150px; }
.chip { display: inline-block; margin: 0 0 20px; font-family: var(--px); font-size: 10px; letter-spacing: .06em; background: var(--ink); color: var(--yellow); padding: 8px 10px; box-shadow: 3px 3px 0 rgba(16,23,58,.3); }
h1 { margin: 0 0 22px; font-family: var(--px); font-weight: 400; font-size: clamp(17px, 2.9vw, 35px); line-height: 1.5; text-transform: uppercase; color: #fff; letter-spacing: .01em;
  text-shadow: 0 -.08em 0 var(--ink), .08em 0 0 var(--ink), -.08em 0 0 var(--ink), 0 .08em 0 var(--ink), .08em .08em 0 var(--ink), -.08em .08em 0 var(--ink), .08em -.08em 0 var(--ink), -.08em -.08em 0 var(--ink), 0 .16em 0 var(--ink), .08em .16em 0 var(--ink), -.08em .16em 0 var(--ink), 0 .26em 0 rgba(16,23,58,.28); }
h1 span, h1 em { display: block; }
h1 em { font-style: normal; color: var(--yellow); }
.lede { margin: 0 0 26px; font-size: clamp(18px, 1.7vw, 21px); font-weight: 700; color: var(--ink); max-width: 560px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; }
.cta-row.center { justify-content: center; }
.hero-note { margin: 18px 0 0; font-weight: 800; font-size: 15px; color: var(--ink); display: flex; align-items: center; gap: 10px; }
.hero-note.center { justify-content: center; }
.dot { width: 10px; height: 10px; background: var(--green); box-shadow: 0 0 0 3px var(--ink); flex: none; animation: blink 1.4s steps(1) infinite; }
@keyframes blink { 50% { opacity: .35; } }

.hero-bot { position: relative; display: flex; flex-direction: column; align-items: center; }
.bot { width: 192px; height: 216px; }
.hero-bot .bot { animation: float 2.4s steps(4) infinite; position: relative; z-index: 2; }
@keyframes float { 50% { transform: translateY(-8px); } }
.cloud-stand { width: 230px; height: 28px; margin-top: -18px; background: #fff; box-shadow: 0 8px 0 #d6e6ff, -24px 8px 0 -4px #fff, 24px 8px 0 -4px #fff; position: relative; z-index: 1; }
.cloud-stand::before, .cloud-stand::after { content: ""; position: absolute; background: #fff; height: 16px; top: -12px; }
.cloud-stand::before { left: 26px; width: 70px; } .cloud-stand::after { right: 30px; width: 96px; top: -8px; height: 12px; }
.dialog { position: relative; margin-top: 30px; width: min(100%, 400px); min-height: 104px; background: var(--deep); color: #fff; border: 4px solid #fff; box-shadow: 0 0 0 4px var(--ink), 8px 8px 0 4px rgba(16,23,58,.3); padding: 20px 16px 14px; }
.dialog .who { position: absolute; left: 12px; top: -14px; font-family: var(--px); font-size: 9px; background: var(--yellow); color: var(--ink); padding: 5px 8px; border: 3px solid var(--ink); }
.dialog p { margin: 0; font-weight: 700; font-size: 17px; line-height: 1.45; }
.dialog .hl { color: var(--yellow); }
.cur { display: inline-block; width: 9px; height: 16px; background: var(--yellow); margin-left: 2px; vertical-align: -2px; animation: blink .5s steps(1) infinite; }
.spark { position: absolute; width: 8px; height: 8px; background: #fff; box-shadow: 8px 0 #fff, -8px 0 #fff, 0 8px #fff, 0 -8px #fff; animation: tw 1.8s steps(2) infinite; z-index: 3; }
.s1 { left: 8%; top: 4%; } .s2 { right: 6%; top: 22%; animation-delay: .6s; background: var(--yellow); box-shadow: 8px 0 var(--yellow), -8px 0 var(--yellow), 0 8px var(--yellow), 0 -8px var(--yellow); } .s3 { left: 16%; top: 44%; animation-delay: 1.1s; transform: scale(.6); }
@keyframes tw { 0%, 100% { opacity: 0; transform: scale(.4); } 50% { opacity: 1; transform: scale(1); } }
.ground { position: absolute; left: 0; right: 0; bottom: 0; height: 56px;
  background:
    linear-gradient(var(--green), var(--green)) 0 0 / 100% 12px no-repeat,
    repeating-linear-gradient(90deg, #6e4426 0 12px, transparent 12px 40px) 8px 26px / 100% 8px no-repeat,
    repeating-linear-gradient(90deg, #6e4426 0 12px, transparent 12px 40px) 28px 42px / 100% 8px no-repeat,
    #a0663a; border-top: 4px solid var(--ink); }
@media (max-width: 860px) {
  .hero-in { grid-template-columns: 1fr; padding-top: calc(96px + var(--st)); padding-bottom: 110px; gap: 28px; }
  .bot { width: 128px; height: 144px; } .cloud-stand { width: 170px; }
  .hero-bot { order: 2; }
  .btn.big { font-size: 12px; padding: 15px 16px; }
  .cta-row .btn { flex: 1 1 auto; }
}

/* ---------- stats ---------- */
.stats { background: var(--ink); color: #fff; border-bottom: 4px solid var(--ink); }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.stat { padding: 26px 12px; text-align: center; border-left: 2px dashed rgba(255,255,255,.16); }
.stat:first-child { border-left: 0; }
.stat b { display: block; font-family: var(--px); font-weight: 400; font-size: clamp(24px, 3.4vw, 38px); color: var(--yellow); margin-bottom: 10px; }
.stat span { font-weight: 700; font-size: 15px; color: var(--soft); }
@media (max-width: 700px) { .stat-row { grid-template-columns: repeat(2, 1fr); } .stat:nth-child(3) { border-left: 0; } .stat:nth-child(n+3) { border-top: 2px dashed rgba(255,255,255,.16); } }

/* ---------- bands ---------- */
.band { position: relative; padding: 92px 0; overflow: hidden; }
.band.cream { background: var(--cream); } .band.white { background: #fff; }
.band.skyband { background: #dff3ff; }
.band.night { background: var(--night); color: #fff;
  background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.025) 0 14px, transparent 14px 28px); }
.band + .band.cream, .band + .band.white, .band + .band.skyband { border-top: 4px solid var(--ink); }
.stars { position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(#fff 1.2px, transparent 1.6px), radial-gradient(var(--yellow) 1.2px, transparent 1.6px), radial-gradient(var(--glow) 1px, transparent 1.4px);
  background-size: 190px 170px, 310px 260px, 130px 210px; background-position: 20px 30px, 120px 90px, 60px 140px; opacity: .5; animation: drift 60s linear infinite; }
@keyframes drift { to { background-position: 20px 370px, 120px 610px, 60px 560px; } }
.eyebrow { margin: 0 0 16px; font-family: var(--px); font-size: 10px; letter-spacing: .08em; color: var(--leaf); display: flex; align-items: center; gap: 12px; }
.eyebrow::before { content: ""; width: 8px; height: 8px; background: currentColor; box-shadow: 12px 0 0 currentColor, 24px 0 0 currentColor; margin-right: 24px; opacity: .9; }
.night .eyebrow { color: var(--yellow); }
h2 { margin: 0 0 18px; font-weight: 900; font-size: clamp(32px, 5vw, 56px); line-height: 1.05; letter-spacing: -.02em; text-wrap: balance; }
h2 em { font-style: normal; color: var(--leaf); }
.night h2 em { color: var(--yellow); } .skyband h2 em { color: #1668c9; }
.sub { margin: 0 0 34px; max-width: 720px; font-size: clamp(18px, 1.6vw, 20px); color: var(--muted); font-weight: 600; }
.night .sub { color: #c9d2f5; }
.fine { font-size: 15px; color: var(--muted); font-weight: 600; }
.night .fine { color: var(--soft); margin-top: 28px; max-width: 720px; }
h3 { margin: 0 0 8px; font-weight: 900; font-size: 22px; line-height: 1.2; }

/* scroll reveal, in chunky steps like a sprite */
.rv { opacity: 0; transform: translateY(26px); }
.rv.in { opacity: 1; transform: none; transition: opacity .4s var(--step), transform .4s var(--step); transition-delay: var(--d, 0ms); }
.no-js .rv { opacity: 1; transform: none; }

/* ---------- features ---------- */
.feat { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 44px 0; }
.feat.flip .feat-art { order: 2; }
.feat-copy h3 { font-size: clamp(26px, 3.2vw, 36px); color: var(--leaf); letter-spacing: -.01em; margin-bottom: 14px; }
.feat-copy p { margin: 0 0 14px; font-size: 19px; color: #2b3560; }
.feat-copy .aside { font-size: 15px; color: var(--muted); font-weight: 600; }
.feat-art { display: grid; place-items: center; min-height: 320px; }
.ticks { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; font-weight: 700; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .42em; width: 6px; height: 6px; background: var(--leaf); box-shadow: 6px 6px 0 var(--leaf), 12px 0 0 var(--leaf), 0 -6px 0 transparent, 18px -6px 0 var(--leaf); transform: translateY(2px) scale(.8); transform-origin: left; }
.ticks.light li::before { background: var(--green); box-shadow: 6px 6px 0 var(--green), 12px 0 0 var(--green), 18px -6px 0 var(--green); }
@media (max-width: 860px) { .feat { grid-template-columns: 1fr; gap: 22px; padding: 30px 0; } .feat.flip .feat-art { order: 0; } .feat-art { min-height: 0; } .band { padding: 64px 0; } }

/* phone art */
.phone { width: 236px; background: #fff; border: 6px solid var(--ink); border-radius: 26px; padding: 12px 14px 14px; box-shadow: 10px 10px 0 rgba(16,23,58,.16); }
.phone-top { font-family: var(--px); font-size: 8px; text-align: center; color: var(--muted); padding: 4px 0 12px; }
.home-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.home-grid i { aspect-ratio: 1; border-radius: 9px; border: 3px solid var(--ink); background: #cfd8f6; display: block; overflow: hidden; }
.home-grid i svg, .home-grid i canvas { width: 100%; height: 100%; display: block; }
.home-grid .mine canvas { padding: 5px; image-rendering: pixelated; }
.home-grid .mine { background: var(--yellow); position: relative; overflow: visible; opacity: 0; }
.home-grid .mine::after { content: ""; position: absolute; inset: -9px; border: 3px dashed var(--orange); border-radius: 13px; opacity: 0; }
.in .home-grid .mine { animation: drop .9s steps(9) .5s both; }
.in .home-grid .mine::after { animation: ring 1.6s steps(4) 1.4s infinite; }
@keyframes drop { 0% { opacity: 1; transform: translateY(-190px); } 55% { transform: translateY(0); } 70% { transform: translateY(-22px); } 85% { transform: translateY(0); } 92% { transform: translateY(-6px); } 100% { opacity: 1; transform: none; } }
@keyframes ring { 0%, 100% { opacity: 0; transform: scale(.9); } 50% { opacity: 1; transform: scale(1.06); } }
.phone-cap { margin-top: 14px; text-align: center; font-weight: 800; font-size: 13px; color: var(--muted); }

/* twist art */
.twist { text-align: center; }
.twist-screen { --tc: var(--yellow); width: 250px; margin: 0 auto; background: var(--deep); color: #fff; border: 6px solid var(--ink); border-radius: 22px; padding: 22px 16px 18px; box-shadow: 10px 10px 0 rgba(16,23,58,.16); display: grid; gap: 8px; justify-items: center; }
.twist-screen.swap { animation: wipe .5s steps(5, start); }
@keyframes wipe { 0% { clip-path: inset(0 0 100% 0); } 100% { clip-path: inset(0); } }
.twist-tag { font-family: var(--px); font-size: 8px; background: var(--tc); color: var(--ink); padding: 5px 7px; }
.twist-screen b { font-weight: 900; font-size: 24px; line-height: 1.1; color: var(--tc); min-height: 54px; display: grid; place-items: center; }
.twist-by { font-size: 14px; font-weight: 700; color: var(--soft); }
.twist-rows { width: 100%; display: grid; gap: 7px; margin: 8px 0; }
.twist-rows i { height: 26px; border: 3px solid var(--tc); opacity: .55; display: block; }
.twist-rows i:nth-child(2) { opacity: .85; } .twist-rows i:nth-child(3) { width: 70%; }
.twist-btn { font-family: var(--px); font-size: 9px; background: var(--tc); color: var(--ink); padding: 10px 12px; width: 100%; }
.twist-dots { display: flex; gap: 8px; justify-content: center; margin: 16px 0 6px; }
.twist-dots i { width: 10px; height: 10px; background: #cfc6ae; display: block; } .twist-dots i.on { background: var(--ink); }
.art-cap { margin: 6px 0 0; font-weight: 800; font-size: 14px; color: var(--muted); }

/* pixel windows */
.win { background: var(--deep); color: #fff; border: 4px solid #fff; box-shadow: 0 0 0 4px var(--ink), 10px 10px 0 4px rgba(16,23,58,.18); width: 100%; }
.night .win { box-shadow: 0 0 0 4px var(--ink), 10px 10px 0 4px rgba(0,0,0,.35); }
.win-bar { display: flex; align-items: center; gap: 6px; padding: 8px 10px; font-family: var(--px); font-size: 9px; color: var(--ink); }
.win-bar.teal { background: var(--teal); } .win-bar.gold { background: var(--yellow); }
.win-bar i { width: 8px; height: 8px; background: var(--ink); display: block; } .win-bar span { margin-left: 8px; }
.chatwin { max-width: 420px; }
.chat { padding: 14px; display: grid; gap: 10px; min-height: 290px; align-content: start; font-size: 15px; font-weight: 700; line-height: 1.4; }
.msg { padding: 10px 12px; max-width: 88%; animation: pop .3s steps(4); }
@keyframes pop { from { opacity: 0; transform: translateY(10px); } }
.msg.kid { justify-self: end; background: var(--yellow); color: var(--ink); }
.msg.ai { justify-self: start; background: var(--panel); border: 2px solid #3b4a8a; }
.msg.ai b { color: var(--glow); font-family: var(--px); font-size: 8px; display: block; margin-bottom: 6px; }
.msg.boss { justify-self: stretch; max-width: 100%; background: #2a1030; border: 2px solid var(--coral); }
.msg.boss b { color: var(--coral); font-family: var(--px); font-size: 8px; display: block; margin-bottom: 8px; }
.opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.opts span { border: 2px solid #5b4a6a; padding: 6px 8px; font-size: 13px; }
.opts span.ok { border-color: var(--green); background: rgba(94,224,122,.18); color: var(--green); }
.badgewin { max-width: 420px; }
.badges { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; padding: 16px 14px 8px; }
.badges i { aspect-ratio: 1; display: grid; place-items: center; background: #0f1633; border: 2px solid #2c3870; font-family: var(--px); font-style: normal; font-size: 9px; color: #47539a; position: relative; }
.badges i.got { background: var(--yellow); border-color: #fff; color: var(--ink); animation: stamp .35s steps(4); }
@keyframes stamp { 0% { transform: scale(1.9) rotate(-12deg); opacity: 0; } 100% { transform: none; opacity: 1; } }
.xp { padding: 8px 14px 16px; font-family: var(--px); font-size: 9px; color: var(--soft); } .xp b { color: var(--yellow); font-weight: 400; }
.xp-bar { height: 14px; border: 3px solid #fff; margin-top: 8px; background: #0f1633; }
.xp-bar i { display: block; height: 100%; width: 7%; background: repeating-linear-gradient(90deg, var(--green) 0 8px, #3fc163 8px 10px); transition: width .4s steps(5); }

/* ---------- apps ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.tab { font-family: var(--px); font-size: 10px; padding: 11px 12px; background: transparent; color: #fff; border: 3px solid #48569c; cursor: pointer; }
.tab:hover { border-color: #fff; }
.tab[aria-selected="true"] { background: var(--yellow); color: var(--ink); border-color: #fff; box-shadow: 3px 3px 0 rgba(0,0,0,.4); }
.group-blurb { min-height: 28px; margin: 0 0 22px; color: var(--soft); font-weight: 700; }
.app-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.app { background: #fff; color: var(--ink); border: 4px solid var(--ink); box-shadow: 6px 6px 0 rgba(0,0,0,.4); padding: 16px; display: grid; grid-template-rows: auto auto 1fr auto; gap: 8px; transition: transform .1s; }
.app:hover { transform: translate(-2px,-3px); }
.app.hide { display: none; }
.app-top { display: flex; align-items: center; gap: 12px; }
.app-icon { width: 58px; height: 58px; flex: none; border: 3px solid var(--ink); border-radius: 14px; overflow: hidden; }
.app-icon svg { width: 100%; height: 100%; display: block; }
.app h3 { font-size: 19px; margin: 0 0 2px; }
.app .grp { font-family: var(--px); font-size: 7px; letter-spacing: .04em; padding: 4px 6px; color: #fff; display: inline-block; }
.app p { margin: 0; font-size: 15.5px; color: #2b3560; line-height: 1.45; }
.app .who { font-size: 13.5px; color: var(--muted); font-weight: 700; }
.app .btn { justify-self: start; margin-top: 4px; }

/* ---------- 14 days ---------- */
.map { display: grid; grid-template-columns: 2fr 5fr 4fr 3fr; gap: 14px; margin-bottom: 22px; }
.phase { background: #fff; border: 4px solid var(--ink); box-shadow: 5px 5px 0 rgba(16,23,58,.16); padding: 12px; }
.phase-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-bottom: 12px; }
.phase-h b { font-family: var(--px); font-weight: 400; font-size: 10px; color: var(--leaf); } .phase-h span { font-size: 13px; font-weight: 800; color: var(--muted); }
.tiles { display: flex; flex-wrap: wrap; gap: 8px; }
.tile { flex: 1 1 54px; min-width: 54px; height: 64px; background: var(--panel); color: #fff; border: 3px solid var(--ink); cursor: pointer; display: grid; place-items: center; align-content: center; gap: 6px; padding: 0; transition: transform .08s; }
.tile b { font-family: var(--px); font-weight: 400; font-size: 14px; } .tile span { font-size: 11px; font-weight: 800; color: var(--soft); line-height: 1; }
.tile:hover { transform: translateY(-3px); }
.tile.done { background: #2f8f4e; } .tile.done span { color: #c9f5d4; }
.tile[aria-pressed="true"] { background: var(--yellow); color: var(--ink); transform: translateY(-5px); box-shadow: 0 5px 0 var(--ink); }
.tile[aria-pressed="true"] span { color: var(--ink); }
.day-card { display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: center; background: var(--deep); color: #fff; border: 4px solid #fff; box-shadow: 0 0 0 4px var(--ink), 10px 10px 0 4px rgba(16,23,58,.18); padding: 22px 24px; min-height: 190px; }
.day-card .bot { width: 96px; height: 108px; }
.day-k { margin: 0 0 10px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-family: var(--px); font-size: 10px; color: var(--yellow); }
.badge-chip { background: var(--teal); color: var(--ink); padding: 5px 8px; }
.day-card h3 { font-size: 26px; } .day-card p { margin: 0; color: #d7ddf7; font-size: 18px; }
.day-card .day-k { margin: 0 0 10px; font-size: 10px; color: var(--yellow); }
.day-card.swap > div { animation: pop .3s steps(4); }
@media (max-width: 980px) { .map { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .map { grid-template-columns: 1fr; } .day-card { grid-template-columns: 1fr; gap: 10px; padding: 18px; } .day-card .bot { width: 64px; height: 72px; } .tile { flex-basis: 52px; } }

/* ---------- cards ---------- */
.cards { display: grid; gap: 18px; margin-top: 30px; }
.cards.six { grid-template-columns: repeat(3, 1fr); } .cards.four { grid-template-columns: repeat(4, 1fr); } .cards.two { grid-template-columns: repeat(2, 1fr); }
.card { background: #fff; border: 4px solid var(--ink); box-shadow: 6px 6px 0 rgba(16,23,58,.16); padding: 22px 20px; }
.band.white .card { background: var(--cream); }
.card canvas, .row canvas, .guarantee canvas { width: 48px; height: 48px; object-fit: contain; margin-bottom: 14px; }
.card p { margin: 0; color: #2b3560; font-size: 17px; }
.card.q h3 { color: #1668c9; font-size: 23px; margin-bottom: 10px; }
@media (max-width: 980px) { .cards.six, .cards.four { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .cards.six, .cards.four, .cards.two { grid-template-columns: 1fr; } }

/* ---------- lesson ---------- */
.lesson { display: grid; grid-template-columns: 1fr 1.25fr; gap: 48px; align-items: center; position: relative; }
.lesson .sub { margin-bottom: 18px; }
.tv { background: #2a3566; border: 4px solid #fff; box-shadow: 0 0 0 4px var(--ink), 12px 12px 0 4px rgba(0,0,0,.35); padding: 12px 12px 0; }
.tv-screen { background: #000; border: 4px solid var(--ink); aspect-ratio: 16 / 9; }
.tv-screen video { width: 100%; height: 100%; object-fit: cover; }
.tv-base { display: flex; align-items: center; gap: 8px; padding: 10px 2px; font-family: var(--px); font-size: 9px; color: var(--soft); }
.tv-base span { margin-right: auto; } .tv-base i { width: 10px; height: 10px; background: var(--coral); display: block; } .tv-base i + i { background: var(--green); animation: blink 1.2s steps(1) infinite; }
@media (max-width: 860px) { .lesson { grid-template-columns: 1fr; gap: 26px; } }

/* ---------- safety ---------- */
.safety { display: grid; grid-template-columns: 1.15fr .85fr; gap: 44px; align-items: start; margin-top: 30px; }
.row { display: grid; grid-template-columns: 48px 1fr; gap: 18px; padding: 18px 0; border-bottom: 3px dashed var(--line); }
.row:last-child { border-bottom: 0; }
.row canvas { margin: 4px 0 0; }
.row h3 { font-size: 21px; margin-bottom: 4px; } .row p { margin: 0; color: #2b3560; }
.promise ol { margin: 0; padding: 18px 18px 6px 44px; display: grid; gap: 12px; font-weight: 700; font-size: 16.5px; }
.promise li::marker { font-family: var(--px); font-size: 10px; color: var(--yellow); }
.promise-foot { margin: 8px 18px 18px; padding-top: 12px; border-top: 2px dashed #3b4a8a; font-size: 14px; color: var(--soft); font-weight: 700; }
@media (max-width: 860px) { .safety { grid-template-columns: 1fr; gap: 26px; } }

/* ---------- price ---------- */
.price-wrap { display: grid; grid-template-columns: 1fr 440px; gap: 56px; align-items: center; position: relative; }
.guarantee { display: grid; grid-template-columns: 48px 1fr; gap: 16px; background: rgba(94,224,122,.1); border: 3px solid var(--green); padding: 18px; max-width: 620px; }
.guarantee canvas { margin: 2px 0 0; }
.band.slim { padding: 44px 0; } .band.slim .guarantee { margin: 0 auto; max-width: 760px; position: relative; }
.guarantee h3 { font-family: var(--px); font-weight: 400; font-size: 12px; color: var(--green); margin-bottom: 10px; }
.guarantee p { margin: 0; color: #dfe6ff; font-size: 16.5px; }
.price-in { padding: 24px 22px 22px; text-align: center; }
.coin { width: 40px; height: 40px; margin: 0 auto 10px; }
.price-name { margin: 0; font-weight: 800; color: var(--soft); }
.price-num { margin: 12px 0 10px; font-family: var(--px); font-size: clamp(34px, 5vw, 46px); color: var(--yellow); text-shadow: 4px 4px 0 #000; }
.price-note { margin: 0 0 18px; font-size: 15px; color: var(--soft); font-weight: 600; }
.price-in .ticks { text-align: left; font-size: 16px; margin: 0 0 22px; padding-top: 18px; border-top: 2px dashed #3b4a8a; }
.secure { margin: 14px 0 0; font-size: 13.5px; color: var(--soft); font-weight: 700; display: flex; gap: 8px; justify-content: center; align-items: center; }
.secure i { width: 10px; height: 10px; background: var(--green); display: block; flex: none; }
@media (max-width: 940px) { .price-wrap { grid-template-columns: 1fr; gap: 30px; } }

/* ---------- faq ---------- */
.faq-wrap { max-width: 820px; }
.faq-h { font-family: var(--px); font-weight: 400; font-size: 11px; color: var(--leaf); margin: 38px 0 12px; text-transform: uppercase; letter-spacing: .06em; }
details { background: #fff; border: 3px solid var(--ink); margin-bottom: 10px; box-shadow: 4px 4px 0 rgba(16,23,58,.12); }
summary { list-style: none; cursor: pointer; padding: 16px 52px 16px 18px; font-weight: 900; font-size: 18px; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; position: absolute; right: 20px; top: 50%; width: 14px; height: 4px; background: var(--ink); box-shadow: 0 0 0 0 var(--ink); transform: translateY(-50%); }
summary::before { content: ""; position: absolute; right: 25px; top: 50%; width: 4px; height: 14px; background: var(--ink); transform: translateY(-50%); transition: transform .15s steps(3); }
details[open] summary::before { transform: translateY(-50%) scaleY(0); }
details[open] summary { background: var(--yellow); }
details p { margin: 0; padding: 14px 18px 18px; color: #2b3560; }

/* ---------- final ---------- */
.final-in { position: relative; text-align: center; padding-top: 96px; padding-bottom: 56px; }
.final h2 { color: #fff; font-size: clamp(28px, 4.4vw, 50px); text-shadow: 3px 3px 0 var(--ink), -2px -2px 0 var(--ink), 2px -2px 0 var(--ink), -2px 2px 0 var(--ink), 0 6px 0 rgba(16,23,58,.25); margin-bottom: 30px; }
.final h2 em { color: var(--yellow); }
.final .bot { margin: 34px auto 0; display: block; width: 128px; height: 144px; }

.foot { background: var(--ink); color: #fff; padding: 40px 0 calc(40px + var(--sb)); }
.foot-in { display: grid; grid-template-columns: 1fr auto; gap: 24px 40px; align-items: start; }
.foot p { margin: 12px 0 0; color: var(--soft); font-size: 15px; font-weight: 600; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 20px; justify-content: flex-end; max-width: 520px; }
.foot nav a { font-weight: 800; font-size: 15px; text-decoration: none; color: #fff; padding: 4px 0; } .foot nav a:hover { color: var(--yellow); }
.legal { grid-column: 1 / -1; border-top: 2px dashed rgba(255,255,255,.16); padding-top: 18px; font-size: 13.5px !important; }
@media (max-width: 700px) { .foot-in { grid-template-columns: 1fr; } .foot nav { justify-content: flex-start; } .foot { padding-bottom: calc(96px + var(--sb)); } }

.sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: none; align-items: center; justify-content: space-between; gap: 12px; background: var(--ink); color: #fff; padding: 10px 16px calc(10px + var(--sb)); border-top: 3px solid var(--yellow); transform: translateY(110%); transition: transform .25s steps(5); }
.sticky span { font-weight: 700; font-size: 14px; color: var(--soft); } .sticky b { font-family: var(--px); font-weight: 400; font-size: 13px; color: var(--yellow); margin-right: 8px; }
.sticky.show { transform: none; }
@media (max-width: 700px) { .sticky { display: flex; } .btn.sm { padding: 13px 14px; } }

/* ---------- overlays ---------- */
.overlay { position: fixed; inset: 0; z-index: 100; background: rgba(10,15,36,.72); display: flex; animation: fade .2s steps(3); }
@keyframes fade { from { opacity: 0; } }
.x { background: none; border: 0; font-size: 22px; line-height: 1; cursor: pointer; padding: 8px 10px; color: inherit; }
body.locked { overflow: hidden; }

.demo-box { margin: auto; position: relative; width: min(880px, calc(100% - 24px)); max-height: calc(100% - 24px); overflow: auto; background: var(--cream); border: 4px solid var(--ink); box-shadow: 10px 10px 0 rgba(0,0,0,.45); display: grid; grid-template-columns: 1fr auto; gap: 26px; padding: 26px; }
.demo-box .x { position: absolute; right: 6px; top: 4px; }
.demo-side h3 { font-size: 28px; } .demo-side p { margin: 0 0 14px; }
.try { background: #fff; border: 3px solid var(--ink); padding: 12px 14px; } .try b { display: block; font-family: var(--px); font-weight: 400; font-size: 9px; color: var(--leaf); margin-bottom: 8px; }
.demo-phone { width: 320px; height: 600px; max-height: 70vh; border: 6px solid var(--ink); border-radius: 30px; overflow: hidden; background: #000; }
.demo-phone iframe { width: 100%; height: 100%; border: 0; background: #fff; }
@media (max-width: 760px) { .demo-box { grid-template-columns: 1fr; padding: 18px; } .demo-phone { width: 100%; height: 64vh; max-height: none; order: -1; margin-top: 26px; } .demo-side .fine { display: none; } }

/* ---------- small pages (thank you, canceled, return) ---------- */
.page { min-height: 100vh; background: var(--sky); position: relative; overflow: hidden; display: flex; flex-direction: column; }
.page .nav { position: relative; }
.page-in { position: relative; flex: 1; width: 100%; max-width: 720px; margin: 0 auto; padding: 26px 20px 120px; }
.sheet { background: var(--cream); border: 4px solid var(--ink); box-shadow: 10px 10px 0 rgba(16,23,58,.25); padding: 28px 26px; }
.sheet .bot { width: 96px; height: 108px; display: block; margin: -84px auto 6px; }
.sheet h1 { font-family: var(--sans); font-weight: 900; font-size: clamp(30px, 6vw, 44px); letter-spacing: -.02em; line-height: 1.08; color: var(--ink); text-shadow: none; margin-bottom: 12px; text-align: center; }
.sheet .lede { text-align: center; margin: 0 auto 8px; font-weight: 600; color: #2b3560; }
.sheet .eyebrow { justify-content: center; } .sheet .eyebrow::before { display: none; }
.pass { background: var(--deep); color: #fff; border: 4px solid #fff; box-shadow: 0 0 0 4px var(--ink); padding: 18px; margin: 22px 4px; text-align: center; }
.pass .k { font-family: var(--px); font-size: 9px; color: var(--soft); margin: 0 0 12px; }
.pass .code { font-family: var(--px); font-size: clamp(20px, 6vw, 30px); color: var(--yellow); letter-spacing: .06em; margin: 0 0 16px; user-select: all; }
.pass .cta-row { justify-content: center; }
.pass .btn.ghost { border-color: #fff; }
.steps { list-style: none; margin: 8px 0 0; padding: 0; counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 16px 0; border-bottom: 3px dashed var(--line); }
.steps li:last-child { border-bottom: 0; }
.steps li::before { content: counter(s, decimal-leading-zero); font-family: var(--px); font-size: 12px; color: var(--leaf); padding-top: 5px; }
.steps b { display: block; font-weight: 900; } .steps span { color: #2b3560; }
.sheet h2 { font-family: var(--px); font-weight: 400; font-size: 11px; letter-spacing: .06em; color: var(--leaf); margin: 30px 0 4px; }
.returnbox { margin-top: 22px; background: #e6f7ea; border: 3px solid #2fa458; padding: 14px 16px; font-size: 16px; color: #1d5a31; }
.returnbox b { font-weight: 900; } .returnbox a { font-weight: 900; }
.center { text-align: center; } .actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 24px; }
.btn.danger { background: var(--coral); color: var(--ink); }
.status-line { font-weight: 800; text-align: center; margin: 16px 0 0; min-height: 1.5em; } .status-line.err { color: #b3261e; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rv { opacity: 1; transform: none; } .home-grid .mine { opacity: 1; }
}
