/* kids.nanostudiopro.com landing (site/build.mjs). Three grounds: Nano Planet's sky (the game's purple-to-pink dusk),
   the chalkboard (homework, as on the app's board) and paper (parents and plans: calm and easy to read). */
/* The fonts are served from here (site/media/fonts, Google Fonts' latin files, which carry Spanish's letters), not from
   Google's: their stylesheet held the first paint back (Lighthouse, 2026-11-15). */
@font-face { font-family: "Lilita One"; font-weight: 400; font-display: swap; src: url(media/fonts/lilita-one.woff2) format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible Next"; font-weight: 200 800; font-display: swap; src: url(media/fonts/atkinson-next.woff2) format("woff2"); }
@font-face { font-family: "Gochi Hand"; font-weight: 400; font-display: swap; src: url(media/fonts/gochi-hand.woff2) format("woff2"); }
@font-face { font-family: "Bricolage Grotesque"; font-weight: 800; font-display: swap; src: url(media/fonts/bricolage-800.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 100 900; font-display: swap; src: url(media/fonts/inter.woff2) format("woff2"); }
:root {
  --night: #120a33; --sky1: #22136a; --sky2: #4b22b0; --dusk: #d9468f; --glow: #ff8fc4;
  --led: #3cf5d2; --led2: #59a8ff; --gold: #ffd21a; --gold2: #ffb300; --plum: #2e0f57;
  --board: #1d3a31; --board2: #16302a; --chalk: #f4f1e4; --chalk-dim: #c9d4c8; --chalk-yellow: #ffe27a; --chalk-pink: #ffb3d1;
  --paper: #fff6e7; --paper2: #fdebd0; --ink: #1d1438; --ink-dim: #5a4f73; --line: rgba(29,20,56,.12);
  --display: "Lilita One", "Arial Rounded MT Bold", system-ui, sans-serif;
  --body: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", system-ui, sans-serif;
  --hand: "Gochi Hand", "Comic Sans MS", cursive;
  --r: 22px; --wrap: 1160px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--night); color: #fff; font: 400 18px/1.6 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
/* a phone still panned sideways (the owner, 2026-11-15): Safari lets a touch pan past the body's overflow-x, so what pokes out
   (the stickers, the steps' numbers, a tilted photo) is clipped where it is; clip, unlike hidden, keeps the sticky stages working */
main, footer { overflow-x: clip; }
/* and the header's small logo, waiting large and invisible to fly into the bar (scale 2.6), reached past a phone's right edge */
@media (max-width: 980px) { .top { overflow-x: clip; } }
img, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.05; margin: 0; letter-spacing: .005em; }
h2 { font-size: clamp(34px, 5vw, 58px); }
h3 { font-size: 24px; }
p { margin: 0; }
.wrap { width: min(var(--wrap), 100% - 40px); margin: 0 auto; }
.narrow { width: min(820px, 100% - 40px); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--ink); padding: 8px 14px; border-radius: 999px; z-index: 50; }
.skip:focus { left: 12px; }
:focus-visible { outline: 3px solid var(--led); outline-offset: 3px; border-radius: 6px; }

/* ---------- buttons, kickers ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font: 400 20px/1 var(--display); text-decoration: none;
  padding: 16px 26px; border-radius: 999px; border: 0; cursor: pointer; transition: transform .18s cubic-bezier(.3,1.6,.5,1), box-shadow .2s, background .2s; }
.btn svg { width: 22px; height: 22px; }
.btn-gold { color: var(--plum); background: linear-gradient(180deg, #ffe45c, var(--gold) 45%, var(--gold2));
  box-shadow: 0 6px 0 #c98400, 0 14px 30px rgba(255,180,0,.35), inset 0 2px 0 rgba(255,255,255,.6); }
.btn-gold:hover { transform: translateY(-2px) rotate(-1deg); box-shadow: 0 8px 0 #c98400, 0 18px 36px rgba(255,180,0,.45), inset 0 2px 0 rgba(255,255,255,.6); }
.btn-gold:active { transform: translateY(4px); box-shadow: 0 2px 0 #c98400, 0 8px 18px rgba(255,180,0,.35); }
.btn-ghost { color: #fff; background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 2px rgba(255,255,255,.35); }
.btn-ghost:hover { background: rgba(255,255,255,.16); transform: translateY(-2px); }
.btn-ghost-dark { color: var(--ink); background: #fff; box-shadow: inset 0 0 0 2px var(--ink), 0 5px 0 var(--ink); }
.btn-ghost-dark:hover { transform: translateY(-2px); }
.btn-lg { font-size: 24px; padding: 20px 34px; }
.btn-sm { font-size: 17px; padding: 11px 18px; box-shadow: 0 4px 0 #c98400; }
.kicker { display: inline-block; font: 400 15px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--plum);
  background: linear-gradient(180deg, #ffe45c, var(--gold)); padding: 8px 14px 7px; border-radius: 999px; box-shadow: inset 0 0 0 2px var(--plum); margin-bottom: 18px; }
.kicker.chalk { background: none; color: var(--chalk-yellow); box-shadow: none; font: 400 26px/1 var(--hand); text-transform: none; letter-spacing: 0; padding: 0; transform: rotate(-2deg); }
.lead { font-size: clamp(18px, 1.6vw, 21px); color: rgba(255,255,255,.82); max-width: 640px; }

/* ---------- header ---------- */
.top { position: fixed; inset: 0 0 auto 0; z-index: 30; display: flex; align-items: center; gap: 22px; padding: 12px max(20px, env(safe-area-inset-left));
  transition: background .3s, backdrop-filter .3s, box-shadow .3s; }
.top.scrolled { background: rgba(18,10,51,.78); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 1px 0 rgba(255,255,255,.08); }
/* the brand: NANO PLANET on one line (media/logo-line.webp, from the font's own glyphs). In the scroll hero it arrives as
   the big logo leaves (landing.js puts .branded on the bar), shrinking into place from where the big one was, well
   before the bar's dark glass, which waits for the end of the run */
.brand img { height: 34px; width: auto; display: block; }
.brand { transform-origin: 0 50%; transition: opacity .45s ease, transform .6s cubic-bezier(.2,1.25,.35,1); }
.top:not(.scrolled):not(.branded) .brand { opacity: 0; transform: translate(4vw, 30vh) scale(2.6); pointer-events: none; }
.top nav { display: flex; gap: 6px; margin-left: auto; }
.top nav a { text-decoration: none; font: 400 19px/1 var(--display); letter-spacing: .01em; padding: 9px 13px; border-radius: 999px; color: rgba(255,255,255,.92);
  text-shadow: 0 2px 0 rgba(30,8,80,.55); transition: color .2s, background .2s; } /* the headline's face (the owner, 2026-11-14) */
.top nav a:hover { background: rgba(255,255,255,.1); color: var(--gold); }
.lang { text-decoration: none; font: 400 15px/1 var(--display); padding: 9px 11px; border-radius: 999px; box-shadow: inset 0 0 0 2px rgba(255,255,255,.4); }
.lang:hover { background: rgba(255,255,255,.12); }

/* ---------- hero: the planet's sky ---------- */
.hero { position: relative; min-height: 100svh; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 40px;
  padding: 120px max(20px, calc((100vw - var(--wrap)) / 2)) 150px; overflow: hidden; isolation: isolate;
  background: radial-gradient(120% 70% at 75% 110%, var(--glow) 0%, var(--dusk) 18%, rgba(217,70,143,0) 48%),
              linear-gradient(180deg, var(--night) 0%, var(--sky1) 35%, var(--sky2) 72%, #8a35c8 100%); }
.stars { position: absolute; inset: 0; z-index: -1; opacity: .9; pointer-events: none;
  background-image: radial-gradient(1.6px 1.6px at 12% 18%, #fff 50%, transparent 51%), radial-gradient(1.2px 1.2px at 32% 8%, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 58% 22%, #fff 50%, transparent 51%), radial-gradient(1.2px 1.2px at 82% 12%, #fff 50%, transparent 51%),
    radial-gradient(1.4px 1.4px at 92% 38%, #fff 50%, transparent 51%), radial-gradient(1.1px 1.1px at 6% 46%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 44% 40%, #fff 50%, transparent 51%), radial-gradient(1.2px 1.2px at 70% 52%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 24% 60%, #fff 50%, transparent 51%), radial-gradient(1.3px 1.3px at 50% 6%, #fff 50%, transparent 51%);
  animation: twinkle 6s ease-in-out infinite alternate; }
@keyframes twinkle { to { opacity: .45; } }
.horizon { position: absolute; left: -20%; right: -20%; bottom: -78vw; height: 92vw; border-radius: 50%; z-index: -1;
  background: radial-gradient(60% 50% at 50% 0%, #6ff0c9 0%, #2fae8a 22%, #1d6f63 46%, var(--board) 70%);
  box-shadow: 0 -10px 60px rgba(60,245,210,.35), 0 -2px 0 rgba(255,255,255,.25); }
.hero-copy { position: relative; z-index: 2; }
.logo { position: relative; width: min(420px, 80%); margin: 0 0 30px -6px; }
.logo img { position: absolute; height: auto; animation: piece .7s cubic-bezier(.2,1.25,.4,1) var(--d) both; filter: drop-shadow(0 6px 10px rgba(10,0,40,.45)); }
@keyframes piece { from { transform: translate(var(--dx), var(--dy)) rotate(var(--r)) scale(.6); opacity: 0; } 60% { opacity: 1; } to { transform: none; opacity: 1; } }
.logo::after { content: ""; position: absolute; inset: 20% 5% -6% 5%; border-radius: 50%; z-index: -1; opacity: 0;
  background: radial-gradient(closest-side, rgba(255,210,26,.55), transparent); animation: thud .9s ease-out var(--lock) both; }
@keyframes thud { 0% { opacity: 0; transform: scale(.6); } 30% { opacity: 1; } 100% { opacity: 0; transform: scale(1.4); } }
.hero .kicker { animation: rise .6s ease-out 1.25s both; }
.hero h1 { font-size: clamp(54px, 8.4vw, 112px); line-height: .92; margin-bottom: 22px; text-shadow: 0 6px 0 rgba(30,8,80,.55), 0 20px 40px rgba(20,0,60,.45); }
.hero h1 span { display: inline-block; animation: rise .7s cubic-bezier(.2,1.3,.4,1) calc(1.35s + var(--i) * .12s) both; }
.hero h1 span:last-child { color: var(--gold); }
.hero .lead { animation: rise .6s ease-out 1.7s both; }
.ctas { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 26px; animation: rise .6s ease-out 1.85s both; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 18px; list-style: none; padding: 0; margin: 0; font-weight: 600; font-size: 16px; color: rgba(255,255,255,.85); animation: rise .6s ease-out 2s both; }
.facts li { display: flex; align-items: center; gap: 6px; }
.facts svg, .promises svg { width: 20px; height: 20px; fill: none; stroke: var(--led); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; flex: none; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.hero-art { position: relative; justify-self: center; z-index: 2; animation: float-in 1s cubic-bezier(.2,1.1,.4,1) .4s both; }
@keyframes float-in { from { opacity: 0; transform: translateY(60px) rotate(4deg); } to { opacity: 1; transform: rotate(2deg); } }
.phone { position: relative; width: min(330px, 74vw); aspect-ratio: 9 / 16; border-radius: 42px; padding: 10px; background: linear-gradient(160deg, #3b2d6b, #120a33);
  box-shadow: 0 0 0 2px rgba(255,255,255,.14), 0 40px 80px rgba(10,0,40,.6), 0 0 80px rgba(60,245,210,.18); }
.phone::before { content: ""; position: absolute; inset: -3px; border-radius: 45px; z-index: -1; opacity: .7;
  background: conic-gradient(from 0deg, #00ffd9, #0059ff, #7300ff, #ff00a6, #1aff59, #00ffd9); filter: blur(10px); animation: spin 8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.phone video { width: 100%; height: 100%; object-fit: cover; border-radius: 33px; background: #0b0720; }
.sticker { position: absolute; font: 400 30px/1 var(--hand); color: var(--ink); background: #fff; padding: 12px 18px; border-radius: 16px; white-space: nowrap;
  box-shadow: 0 10px 24px rgba(20,0,60,.35), 0 3px 0 rgba(20,0,60,.2); }
.sticker.s1 { left: -70px; top: 16%; transform: rotate(-8deg); animation: bob 4s ease-in-out infinite; }
.sticker.s2 { right: -48px; bottom: 18%; display: flex; align-items: center; gap: 8px; font-family: var(--display); font-size: 30px; background: var(--gold); color: var(--plum); transform: rotate(7deg); animation: bob 4.6s ease-in-out .8s infinite; }
.coin { width: 26px; height: 26px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff6b8, #ffcc00 45%, #c98400); box-shadow: inset 0 0 0 2px #a86a00; }
@keyframes bob { 50% { translate: 0 -10px; } }

/* ---------- the chalkboard ---------- */
.board { position: relative; padding: 110px 0 120px; color: var(--chalk);
  background: radial-gradient(120% 80% at 50% 0%, rgba(255,255,255,.07), transparent 60%), linear-gradient(180deg, var(--board), var(--board2)); }
.board::before { content: ""; position: absolute; inset: 0; opacity: .35; pointer-events: none; mix-blend-mode: screen;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E"); }
.board .wrap { position: relative; }
.board h2 { color: var(--chalk); max-width: 900px; margin-bottom: 18px; text-shadow: 0 0 1px rgba(255,255,255,.6); }
.board .lead { color: var(--chalk-dim); }
.steps { list-style: none; padding: 0; margin: 64px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; counter-reset: s; }
.step { position: relative; }
.screen { position: relative; aspect-ratio: 4 / 3; border-radius: 18px; overflow: hidden; margin-bottom: 22px; background: #0d1f1a;
  box-shadow: 0 0 0 3px rgba(244,241,228,.85), 0 0 0 9px rgba(244,241,228,.12), 0 24px 40px rgba(0,0,0,.35); transform: rotate(var(--tilt, -1.5deg)); transition: transform .35s cubic-bezier(.2,1.3,.4,1); }
.step:nth-child(2) .screen { --tilt: 1.2deg; } .step:nth-child(3) .screen { --tilt: -.6deg; }
.step:hover .screen { transform: rotate(0) scale(1.02); }
.screen video { width: 100%; height: 100%; object-fit: cover; }
.step .num { position: absolute; top: -26px; left: -14px; z-index: 2; width: 64px; height: 64px; margin: 0; display: grid; place-items: center; font: 400 38px/1 var(--display);
  color: var(--plum); background: var(--chalk-yellow); border-radius: 50%; transform: rotate(-8deg); box-shadow: 0 6px 14px rgba(0,0,0,.3); }
.step h3 { font-size: 30px; color: #fff; margin-bottom: 10px; }
.step p { color: var(--chalk-dim); }
.step .note { margin-top: 12px; font: 400 25px/1.1 var(--hand); color: var(--chalk-pink); transform: rotate(-2deg); }
.chalk-arrow { position: absolute; right: -58px; top: 30%; width: 80px; height: 40px; fill: none; stroke: var(--chalk); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; opacity: .85;
  stroke-dasharray: 160; stroke-dashoffset: 160; }
.step.in .chalk-arrow { animation: draw 1s ease-out .3s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.board-foot { margin-top: 56px; font: 400 28px/1.25 var(--hand); color: var(--chalk-yellow); max-width: 760px; }

/* ---------- features ---------- */
.features { padding: 120px 0 60px; background: linear-gradient(180deg, var(--night), #1a0f4a 50%, var(--night)); }
.feature { width: min(var(--wrap), 100% - 40px); margin: 0 auto 110px; display: grid; grid-template-columns: .8fr 1.2fr; gap: 70px; align-items: center; }
.feature.flip { grid-template-columns: 1.2fr .8fr; }
.feature.flip .feature-art { order: 2; }
.feature-art { justify-self: center; position: relative; }
.feature-art::before { content: ""; position: absolute; inset: 8% -18%; border-radius: 50%; z-index: 0; filter: blur(40px); opacity: .55;
  background: radial-gradient(closest-side, var(--c, var(--sky2)), transparent); }
#nano { --c: #2fd6ff; } #nanitube { --c: #ff4fa3; } #juega { --c: #3cf5a0; }
.phone-sm { width: min(290px, 70vw); transform: rotate(-2deg); }
.flip .phone-sm { transform: rotate(2deg); }
.feature-copy h2 { margin-bottom: 18px; }
/* NaniTube: its own layout (build.mjs tubeFeature): the channel's mark big and centred (lab/talk/cinema.ts .cinema-logo),
   each letter rising in turn when it comes in, its words, then the shows by their own covers (each one's title card) */
.feature.tube { display: block; text-align: center; }
.tube-top { max-width: 760px; margin: 0 auto 44px; }
.tube-top p { margin: 0 auto; }
.tube-logo { display: inline-flex; margin: 0 0 22px; font: 800 clamp(64px, 11vw, 150px)/1 "Bricolage Grotesque", system-ui, sans-serif; text-transform: uppercase; letter-spacing: -.01em;
  filter: drop-shadow(0 10px 30px rgba(232,36,95,.4)); }
.tube-logo span { display: block; transform: scaleY(var(--arch, 1)); transform-origin: 50% 60%;
  background: linear-gradient(180deg, #ff6fae, #e8245f 52%, #8d1fd6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.js .feature.in .tube-logo span { animation: tube-rise .5s cubic-bezier(.2,1.2,.4,1) both; animation-delay: calc(.15s + var(--i) * .07s); }
@keyframes tube-rise { from { transform: scaleY(calc(var(--arch, 1) * .2)); opacity: 0; } to { transform: scaleY(var(--arch, 1)); opacity: 1; } }
/* "Play, design his look" (build.mjs lookFeature): the mirror's panels as the game draws them (lab/talk/index.html .drawer,
   mirror.ts, mirrortools.ts .mtools, paintjob.ts .swatches/.chips, pixelface.ts), at the game's own sizes */
.feature.look { display: block; text-align: center; }
.look-top { max-width: 760px; margin: 0 auto 48px; }
.look-top p { margin: 0 auto; }
.kit { display: grid; grid-template-columns: repeat(3, 340px); justify-content: center; gap: 26px; align-items: start; text-align: left; }
.kit .mpanel:nth-child(1) { transform: rotate(-1.5deg); } .kit .mpanel:nth-child(2) { transform: translateY(26px); } .kit .mpanel:nth-child(3) { transform: rotate(1.5deg); }
.mpanel { --soft: #b9c0d2; padding: 0 18px 18px; border-radius: 22px; background: linear-gradient(180deg, rgba(24,28,44,.96), rgba(12,15,25,.95)); border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 24px 60px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.07); color: #e9ecf5; font: 500 13px/1.4 "Inter", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
.mhead { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 0 12px; }
.mhead b { font: 800 19px/1 "Bricolage Grotesque", system-ui, sans-serif; }
.mhead .leave { background: #7c4dff; border: 1px solid #9b7bff; color: #fff; font-weight: 600; font-size: 12px; padding: 8px 14px; border-radius: 999px; }
.mpanel h3 { font: 700 15px/1.2 "Inter", system-ui, sans-serif; margin: 0 2px 10px; color: #fff; }
.mpanel h4 { margin: 16px 2px 8px; font: 600 12px/1 "Inter", system-ui, sans-serif; text-transform: uppercase; letter-spacing: .06em; opacity: .7; }
.mtools { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; padding: 4px; border-radius: 16px; background: rgba(28,30,48,.97); box-shadow: 0 6px 14px rgba(0,0,0,.35); }
.mtools .mt { display: grid; justify-items: center; gap: 3px; padding: 7px 2px 6px; border-radius: 12px; font-size: 11px; line-height: 1.1; border: 1px solid transparent; min-width: 0; text-align: center; }
.mtools .mt.on { background: #7c4dff; border-color: #9b7bff; color: #fff; }
.mtools .mt.off { opacity: .35; }
.mtools svg { width: 22px; height: 22px; margin: 2px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.mchips { display: flex; flex-wrap: wrap; gap: 8px; }
.mchips span { min-height: 36px; padding: 0 12px; display: inline-flex; align-items: center; border-radius: 999px; font-size: 13px; background: rgba(11,15,23,.7); border: 1px solid rgba(233,236,245,.14); }
.mchips span.on { border-color: #b27cff; box-shadow: 0 0 0 2px rgba(178,124,255,.35) inset; }
.swatches { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.swatches.px { grid-template-columns: repeat(8, 1fr); gap: 6px; }
.swatches i { aspect-ratio: 1; border-radius: 50%; border: 2px solid rgba(255,255,255,.25); }
.swatches i.on { border-color: #fff; box-shadow: 0 0 0 3px rgba(178,124,255,.6); }
.swatches i.rainbow { background: conic-gradient(#ff3b30, #ffd21a, #21c46b, #36c2ff, #9b5cff, #ff4fd8, #ff3b30); }
/* his visor: the faces take turns, as a child flipping through his starters */
.visor { position: relative; aspect-ratio: 64 / 50; margin: 0 0 12px; border-radius: 12px; background: #000; overflow: hidden; box-shadow: 0 0 0 1px rgba(255,255,255,.18); }
.visor img { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; opacity: 0; animation: visor 18s steps(1) infinite; animation-delay: calc(var(--i) * 3s); }
.visor img:first-child { opacity: 1; }
@keyframes visor { 0% { opacity: 1; } 16.66% { opacity: 0; } 100% { opacity: 0; } }
.stk { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stk span { aspect-ratio: 1; display: grid; place-items: center; padding: 8px; border-radius: 14px; background: rgba(255,255,255,.04); }
.stk span:nth-child(2) { border: 1px solid #b27cff; box-shadow: 0 0 0 2px rgba(178,124,255,.35) inset; background: rgba(178,124,255,.1); }
.stk img { width: 100%; height: 100%; object-fit: contain; }
.planet-shot { position: relative; margin: 90px auto 0; max-width: 1100px; border-radius: 26px; overflow: hidden; box-shadow: 0 0 0 3px rgba(60,245,160,.25), 0 30px 60px rgba(0,0,0,.5); }
.planet-shot img { display: block; width: 100%; height: auto; }
.planet-shot figcaption { position: absolute; left: 22px; bottom: 20px; font: 400 26px/1 var(--display); color: var(--plum); background: var(--gold); padding: 10px 16px 9px; border-radius: 999px; }
@media (max-width: 1140px) { .kit { grid-template-columns: repeat(2, 340px); } .kit .mpanel { transform: none !important; } }
@media (max-width: 760px) { .kit { grid-template-columns: minmax(0, 340px); } .planet-shot { margin-top: 50px; } .planet-shot figcaption { font-size: 18px; left: 12px; bottom: 12px; } }
.shows { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.shows figure { margin: 0; border-radius: 20px; overflow: hidden; box-shadow: 0 0 0 3px rgba(255,79,163,.25), 0 22px 44px rgba(0,0,0,.45); transition: transform .3s cubic-bezier(.2,1.3,.4,1); }
.shows li:hover figure { transform: translateY(-6px) scale(1.03); }
.shows img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.shows figcaption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.feature-copy p { font-size: 20px; color: rgba(255,255,255,.82); max-width: 560px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 26px 0 0; }
.chips li { font-weight: 600; font-size: 16px; padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.07); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.22); }

/* ---------- trailer ---------- */
.trailer { text-align: center; padding: 60px 20px 140px; background: radial-gradient(70% 60% at 50% 60%, rgba(217,70,143,.35), transparent 70%), var(--night); }
.trailer h2 { margin-bottom: 50px; }
/* the trailer's diorama (the owner's kit, 2026-11-14): the jungle behind, the friends standing on its grass around the phone. With the scroll they
   burst out of the phone and grow to these places, then drift by their data-depth with the pointer (landing.js) */
/* the section is tall and its stage stays on screen while the friends burst out, so the burst is seen whole */
.trailer { position: relative; isolation: isolate; overflow: clip; height: 260vh; padding: 0; }
.trailer-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 70px 20px 40px; box-sizing: border-box; }
.trailer-stage h2 { margin-bottom: 22px; }
.trailer-stage .phone-lg { width: min(380px, 84vw, calc((100svh - 250px) * 9 / 16)); flex: none; }
html:not(.js) .trailer { height: auto; }
@media (prefers-reduced-motion: reduce) { .trailer { height: auto; } }
.dio { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.dio > * { position: absolute; will-change: transform, opacity; transform-origin: 50% 100%; }
.dio > [data-air] { transform-origin: 50% 50%; }
.dio img.land { animation: k-land .75s cubic-bezier(.3,.7,.4,1); }
@keyframes k-land { 0% { scale: 1 1; } 18% { scale: 1.14 .84; } 42% { scale: .93 1.09; translate: 0 -22px; } 66% { scale: 1.04 .96; translate: 0 0; } 84% { scale: .99 1.01; } 100% { scale: 1 1; } }
.dio-bg { inset: -60px; background: center 72% / cover; }   /* its picture: --bg, --bg-sm (site/build.mjs), once near (landing.js) */
.trailer.near .dio-bg, html:not(.js) .dio-bg { background-image: var(--bg); }
@media (max-width: 760px) { .trailer.near .dio-bg, html:not(.js) .dio-bg { background-image: var(--bg-sm); } }
.dio::after { content: ""; position: absolute; inset: 0;
  background: radial-gradient(34% 22% at 50% 12%, rgba(18,10,51,.7), transparent 100%), /* behind the title only, so the dino's face shows */
              linear-gradient(180deg, var(--night) 0%, rgba(18,10,51,.45) 7%, rgba(18,10,51,0) 24%, rgba(18,10,51,0) 50%, rgba(18,10,51,.15) 85%, rgba(18,10,51,.7) 100%),
              radial-gradient(40% 55% at 50% 58%, rgba(18,10,51,.45), transparent 75%); }
.dio img { display: block; height: auto; filter: drop-shadow(0 18px 24px rgba(10,5,30,.35)); }
.dio .k-bronto { height: 80svh; width: auto; left: calc(50% - 250px - 39svh); bottom: 7svh; } /* stands further back: its feet above Nano's */
.dio .k-nano { width: clamp(180px, 16vw, 250px); left: calc(50% - 150px - clamp(180px, 16vw, 250px)); bottom: calc(clamp(180px, 16vw, 250px) * -.42); z-index: 5; } /* as close as Evil Starter */
.dio .k-evil { width: clamp(170px, 15.5vw, 245px); left: calc(50% + 180px); bottom: calc(clamp(170px, 15.5vw, 245px) * -.75); z-index: 5; } /* closest to the camera: bigger, feet out of frame */
.dio .k-misha { width: clamp(170px, 15vw, 240px); left: calc(50% + 250px); top: 11%; z-index: 6; transform-origin: 50% 50%;
  animation: k-float 6s ease-in-out infinite; } /* no gravity: up front; once everyone has landed it turns slowly (landing.js) */
.dio .k-isle { width: clamp(110px, 10vw, 160px); left: calc(50% - 640px); top: 22%; opacity: .9; animation: k-float 7s ease-in-out infinite reverse; }
.dio .k-plant { width: clamp(96px, 8.5vw, 135px); left: calc(50% + 560px); bottom: 10px; z-index: 4; }
@media (min-width: 1500px) { .dio .k-bronto { height: 90svh; left: calc(50% - 420px - 45svh); bottom: 8svh; } }
/* further back: smaller, softer and paler the further they are */
.dio .k-isle.i2 { width: clamp(80px, 7vw, 115px); left: calc(50% + 330px); top: 13%; opacity: .78; filter: blur(.6px) saturate(.85); animation-duration: 9s; animation-direction: normal; }
.dio .k-isle.i3 { width: clamp(46px, 4vw, 66px); left: calc(50% - 330px); top: 9%; opacity: .55; filter: blur(1.2px) saturate(.7); animation-duration: 11s; }
.dio .k-bplant { filter: blur(.8px) saturate(.75) brightness(.85); }
.dio .k-bplant.b1 { width: clamp(44px, 3.8vw, 60px); left: calc(50% - 560px); bottom: 27svh; opacity: .7; }
.dio .k-bplant.b2 { width: clamp(32px, 2.8vw, 44px); left: calc(50% + 250px); bottom: 31svh; opacity: .55; filter: blur(1.3px) saturate(.6) brightness(.8); }
.dio .k-bplant.b3 { width: clamp(60px, 5vw, 80px); left: calc(50% + 500px); bottom: 21svh; opacity: .85; filter: blur(.4px) saturate(.85) brightness(.9); }
@keyframes k-float { 50% { translate: 0 -16px; } }
@media (max-width: 1100px) {
  .dio .k-isle { display: none; }
  .dio .k-bronto { height: 66svh; left: -70px; bottom: -6svh; }
  .dio .k-misha { left: auto; right: 10px; }
  .dio .k-plant { display: none; }
}
@media (max-width: 760px) {
  .dio .k-bplant { display: none; }
  .dio .k-bronto { display: none; }
  .dio .k-nano { width: 120px; left: -6px; bottom: -50px; }
  .dio .k-evil { width: 115px; left: auto; right: -8px; bottom: -86px; }
  .dio .k-misha { width: 96px; right: 4px; top: 15%; }
}
@media (prefers-reduced-motion: reduce) { .dio > * { animation: none !important; } }
.phone-lg { width: min(380px, 84vw); margin: 0 auto; }
.trailer .phone::before { animation: none; } /* the turning glow read as a spinning rectangle behind the diorama (the owner, 2026-11-14) */
.big-play { position: absolute; inset: 0; margin: auto; width: 104px; height: 104px; border-radius: 50%; border: 0; cursor: pointer; color: var(--plum);
  background: linear-gradient(180deg, #ffe45c, var(--gold)); box-shadow: 0 8px 0 #c98400, 0 20px 50px rgba(0,0,0,.45); transition: transform .2s cubic-bezier(.3,1.6,.5,1); }
.big-play svg { width: 46px; height: 46px; margin-left: 6px; }
.big-play:hover { transform: scale(1.08); }
.phone-lg.playing .big-play { display: none; }

/* ---------- paper: parents, plans, FAQ ---------- */
.paper { color: var(--ink); background: var(--paper); }
.paper .lead { color: var(--ink-dim); }
.kicker.dark { color: var(--paper); background: var(--ink); box-shadow: none; }
#papas { padding: 120px 0 100px; border-radius: 48px 48px 0 0; margin-top: -40px; position: relative; }
.parents { display: grid; grid-template-columns: 1.15fr .85fr; gap: 70px; align-items: center; }
.parents h2 { margin-bottom: 18px; }
.promises { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 30px 34px; }
.promises li { display: flex; gap: 14px; }
.promises svg { width: 46px; height: 46px; padding: 10px; border-radius: 14px; background: var(--ink); stroke: var(--gold); stroke-width: 2; }
.promises h3 { font-size: 22px; margin: 4px 0 6px; }
.promises p { color: var(--ink-dim); font-size: 17px; }
.parents-photo { margin: 0; position: relative; }
.parents-photo img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 40%; border-radius: 28px; transform: rotate(2deg);
  box-shadow: 0 0 0 8px #fff, 0 30px 60px rgba(29,20,56,.25); }
.parents-photo::after { content: ""; position: absolute; width: 120px; height: 34px; top: -14px; left: 40%; background: rgba(255,210,26,.75); transform: rotate(-6deg); border-radius: 3px; }
.plans-wrap { padding: 40px 0 110px; text-align: center; }
.plans-wrap .lead { margin: 18px auto 0; }
.period { display: inline-flex; gap: 4px; margin: 34px 0 40px; padding: 5px; border-radius: 999px; background: var(--paper2); box-shadow: inset 0 0 0 2px var(--line); }
.period button { font: 600 16px/1 var(--body); color: var(--ink); background: none; border: 0; padding: 12px 20px; border-radius: 999px; cursor: pointer; }
.period button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.period em { font-style: normal; color: #0f8a68; font-weight: 800; }
.period button[aria-pressed="true"] em { color: var(--led); }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; align-items: stretch; text-align: left; }
.plan { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 34px 30px 30px; border-radius: 28px; background: #fff; box-shadow: 0 0 0 2px var(--line), 0 16px 34px rgba(29,20,56,.08); }
.plan.best { background: var(--ink); color: #fff; box-shadow: 0 30px 60px rgba(29,20,56,.3); transform: translateY(-12px); }
.plan-flag { position: absolute; top: -15px; left: 30px; font: 400 15px/1 var(--display); letter-spacing: .06em; text-transform: uppercase; color: var(--plum);
  background: var(--gold); padding: 8px 12px 7px; border-radius: 999px; }
.plan h3 { font-size: 32px; }
.plan-kids { font-weight: 600; color: var(--ink-dim); }
.plan.best .plan-kids, .plan.best .plan-credits, .plan.best .plan-plus, .plan.best .plan-year { color: rgba(255,255,255,.75); }
.plan-price { display: flex; align-items: baseline; gap: 4px; margin: 18px 0 0; }
.plan-price .cur { font: 400 22px/1 var(--display); }
.plan-price .amt { font: 400 64px/1 var(--display); }
.plan-price .per { color: var(--ink-dim); font-weight: 600; margin-left: 4px; }
.plan.best .plan-price .per { color: rgba(255,255,255,.7); }
.plan-year { font-size: 15px; color: var(--ink-dim); }
.plan-credits { margin-top: 10px; font-weight: 800; }
.plan-uses { margin: -4px 0 16px; padding: 12px 14px; border-radius: 14px; background: rgba(46,15,87,.06); font-size: 14px; }
.plan-uses p { margin: 0 0 6px; color: var(--ink-dim); }
.plan-uses ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.plan-uses li { display: flex; gap: 6px; align-items: baseline; }
.plan-uses li::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--gold2); transform: translateY(-2px); }
.plan-uses b { font-weight: 800; }
.plan-uses .or { margin: 6px 0 0; font-size: 13px; }
.plan.best .plan-uses { background: rgba(255,255,255,.08); } .plan.best .plan-uses p { color: rgba(255,255,255,.7); }
.plan-plus { font-size: 15px; color: var(--ink-dim); margin-bottom: 20px; }
.plan .btn { margin-top: auto; }
.plan-note { margin: 10px 0 0; font-size: 13px; color: var(--ink-dim); text-align: center; }
.plan.best .plan-note { color: rgba(255,255,255,.7); }
.plans-free { margin: 34px auto 0; font-size: 16px; color: var(--ink-dim); }
.plans-free a { color: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.plans-free a:hover { color: var(--ink); }
.plans-credits { margin: 40px auto 10px; max-width: 700px; font: 400 25px/1.3 var(--hand); color: var(--ink); }
.fine { font-size: 15px; color: var(--ink-dim); max-width: 700px; margin: 0 auto; }
.faq { padding: 40px 0 130px; }
.faq h2 { margin-bottom: 34px; }
details { border-bottom: 2px solid var(--line); }
summary { list-style: none; cursor: pointer; padding: 24px 50px 24px 0; position: relative; }
summary::-webkit-details-marker { display: none; }
summary h3 { font-size: 24px; }
summary::after { content: "+"; position: absolute; right: 6px; top: 50%; translate: 0 -50%; width: 36px; height: 36px; display: grid; place-items: center;
  font: 400 28px/1 var(--display); border-radius: 50%; background: var(--gold); color: var(--plum); transition: rotate .25s; }
details[open] summary::after { rotate: 45deg; }
details p { padding: 0 0 26px; color: var(--ink-dim); max-width: 700px; }

/* ---------- final call ---------- */
.final { position: relative; text-align: center; padding: 120px 20px 140px; overflow: hidden; isolation: isolate;
  background: radial-gradient(90% 70% at 50% 110%, var(--dusk), rgba(217,70,143,0) 60%), linear-gradient(180deg, var(--sky1), var(--sky2)); }
.final-logo { width: min(460px, 80vw); height: auto; margin: 0 auto 24px; filter: drop-shadow(0 10px 20px rgba(10,0,40,.5)); }
.final h2 { margin-bottom: 36px; }
.foot { background: var(--night); color: rgba(255,255,255,.6); text-align: center; padding: 34px 20px 44px; font-size: 15px; display: grid; gap: 6px; }
.foot a { color: #fff; }

/* ---------- reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(40px); transition: opacity .7s ease-out, transform .7s cubic-bezier(.2,1,.3,1); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- smaller screens ---------- */
@media (max-width: 980px) {
  .top nav { display: none; }
  .lang { margin-left: auto; }
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 110px; gap: 70px; }
  .logo { margin: 0 auto 22px; }
  .lead { margin-left: auto; margin-right: auto; }
  .ctas, .facts { justify-content: center; }
  .sticker.s1 { left: -30px; } .sticker.s2 { right: -24px; }
  .steps { grid-template-columns: 1fr; gap: 70px; max-width: 440px; margin-left: auto; margin-right: auto; }
  .chalk-arrow { right: auto; left: 50%; top: auto; bottom: -58px; transform: translateX(-50%) rotate(100deg); }
  .feature, .feature.flip { grid-template-columns: 1fr; gap: 44px; text-align: center; margin-bottom: 90px; }
  .feature.flip .feature-art { order: 0; }
  .feature-copy p { margin: 0 auto; }
  .shows { grid-template-columns: 1fr 1fr; gap: 14px; }
  .chips { justify-content: center; }
  .parents { grid-template-columns: 1fr; }
  .parents-photo { max-width: 460px; margin: 0 auto; }
  .plans { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .plan.best { transform: none; }
}
/* phones and tablets: the header's play button wrapped onto two lines beside the logo and the language link, and the
   hero already has one, so it leaves the header; past the hero a bar fixed to the bottom carries the trial button
   (landing.js shows it, and hides it while the trailer fills the screen). The footer is padded by the bar's height,
   so the page's end shows clear above it (the owner, 2026-11-15). */
.playbar { display: none; }
@media (max-width: 980px) {
  .top > .btn-gold { display: none; }
  .playbar { display: flex; justify-content: center; position: fixed; left: 0; right: 0; bottom: 0; z-index: 29;
    padding: 12px 16px calc(14px + env(safe-area-inset-bottom)); background: rgba(18,10,51,.88); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    box-shadow: 0 -1px 0 rgba(255,255,255,.1); transform: translateY(110%); visibility: hidden;
    transition: transform .35s cubic-bezier(.2,1,.3,1), visibility 0s linear .35s; }
  .playbar.on { transform: none; visibility: visible; transition: transform .35s cubic-bezier(.2,1,.3,1), visibility 0s; }
  .playbar .btn { width: min(420px, 100%); padding: 15px 20px; }
  .playbar .btn:hover { transform: none; }
  .foot { padding-bottom: calc(44px + 84px + env(safe-area-inset-bottom)); }
}
@media (max-width: 560px) {
  body { font-size: 17px; }
  .top { gap: 10px; } .brand img { height: 24px; }
  .btn-lg { font-size: 21px; padding: 18px 26px; }
  .promises { grid-template-columns: 1fr; }
  .sticker { font-size: 24px; } .sticker.s2 { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .chalk-arrow { stroke-dashoffset: 0; }
}

/* ---------- the scroll hero: the friends run as you scroll (landing.js draws site/media/run/ frames on #run) ---------- */
.scrolly { position: relative; height: 560vh; background: var(--night); }
.stage { position: sticky; top: 0; height: 100vh; height: 100lvh; overflow: hidden; isolation: isolate; }
/* the stage is always as tall as the window can get (lvh), so a phone's address bar hiding or coming back never
   resizes it: Chrome reports the new height only once the bar has finished moving, and the stage (and the progress
   line on its edge) jumped after it (the owner, 2026-11-15). The words keep the place they have with the bar showing,
   and the progress line is fixed to the screen's bottom (landing.js lifts it with the stage once the run lets go). */
#run, .run-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; }
#run { z-index: 1; }
.run-poster { z-index: 0; }
.shade { position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(90deg, rgba(18,10,51,.88) 0%, rgba(18,10,51,.62) 30%, rgba(18,10,51,.12) 55%, rgba(18,10,51,0) 70%),
              linear-gradient(180deg, rgba(18,10,51,.55) 0%, rgba(18,10,51,0) 22%, rgba(18,10,51,0) 72%, rgba(18,10,51,.75) 100%); }
.beat { position: absolute; z-index: 3; left: max(24px, 4.5vw); top: 50%; width: min(520px, 36vw);
  transform: translateY(-46%); opacity: 0; visibility: hidden; transition: opacity .45s ease, transform .6s cubic-bezier(.2,1,.3,1), visibility 0s linear .45s; }
.beat.on { opacity: 1; visibility: visible; transform: translateY(-50%); transition: opacity .45s ease, transform .6s cubic-bezier(.2,1,.3,1), visibility 0s; }
.beat-n { transform: translateY(-40%); }
.beat h1 { font-size: clamp(46px, 5.4vw, 86px); line-height: .92; margin-bottom: 20px; text-shadow: 0 6px 0 rgba(30,8,80,.55), 0 20px 40px rgba(20,0,60,.45); }
.beat h1 span { display: inline-block; animation: rise .7s cubic-bezier(.2,1.3,.4,1) calc(1.35s + var(--i) * .12s) both; }
.beat h1 span:last-child { color: var(--gold); }
.beat h2 { font-size: clamp(40px, 4.8vw, 72px); line-height: .95; margin-bottom: 18px; text-shadow: 0 5px 0 rgba(30,8,80,.5), 0 18px 36px rgba(20,0,60,.45); }
.beat-n.on h2 { animation: pop .55s cubic-bezier(.2,1.5,.4,1) both; }
@keyframes pop { from { transform: scale(.85) rotate(-2deg); opacity: 0; } to { transform: none; opacity: 1; } }
.beat .lead { color: rgba(255,255,255,.9); text-shadow: 0 2px 12px rgba(10,0,40,.6); }
.beat-0 .kicker { animation: rise .6s ease-out 1.25s both; }
.beat-0 .lead { animation: rise .6s ease-out 1.7s both; }
.beat-0 .ctas { animation: rise .6s ease-out 1.85s both; }
.beat-0 .facts { animation: rise .6s ease-out 2s both; }
.beat .logo { width: min(340px, 74%); }
.progress { position: fixed; z-index: 3; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255,255,255,.12); }
.progress i { display: block; height: 100%; width: 100%; transform-origin: left; transform: scaleX(var(--p, 0));
  background: linear-gradient(90deg, var(--led), var(--led2), #b26bff, var(--dusk), var(--gold)); }
.hint { position: absolute; z-index: 3; left: 50%; bottom: 26px; translate: -50% 0; font-weight: 600; font-size: 15px; color: rgba(255,255,255,.85);
  display: flex; flex-direction: column; align-items: center; gap: 8px; transition: opacity .4s; }
.hint span { width: 22px; height: 34px; border-radius: 12px; box-shadow: inset 0 0 0 2px rgba(255,255,255,.7); position: relative; }
.hint span::after { content: ""; position: absolute; left: 50%; top: 7px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: wheel 1.6s ease-in-out infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(-3px); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(9px); } }
.stage.moved .hint { opacity: 0; }
.no-scrolly .scrolly { height: auto; }
.no-scrolly .stage { position: relative; height: auto; min-height: 100svh; }
.no-scrolly .beat-n, .no-scrolly .progress, .no-scrolly .hint, .no-scrolly #run { display: none; }
.no-scrolly .beat-0 { position: relative; top: auto; transform: none; opacity: 1; visibility: visible; padding: 130px 0 90px; }
@media (max-width: 980px) {
  #run, .run-poster { object-position: 64% 50%; }
  .shade { background: linear-gradient(180deg, rgba(18,10,51,.35) 0%, rgba(18,10,51,0) 30%, rgba(18,10,51,.55) 55%, rgba(18,10,51,.94) 100%); }
  .beat { left: 20px; right: 20px; width: auto; top: auto; bottom: 64px; transform: translateY(20px); text-align: center; }
  .beat.on { transform: none; }
  .beat .logo { margin: 0 auto 16px; width: min(300px, 70%); }
  .beat h1 { font-size: clamp(44px, 12vw, 70px); }
  .beat h2 { font-size: clamp(38px, 10vw, 58px); }
  .beat .ctas, .beat .facts { justify-content: center; }
  .beat-0 .facts { display: none; }
  .hint { display: none; }
}

/* the beats sit between the header and the bottom bar, never above the header: centred in that band, compacted on
   short screens (the first beat, logo to facts, is taller than many laptops' windows) */
.beat { top: 84px; bottom: 36px; display: flex; flex-direction: column; justify-content: center; transform: translateY(16px); }
.beat.on { transform: none; }
.beat-n { transform: translateY(28px); }
.beat .logo { flex: none; margin-bottom: 18px; }
@media (max-height: 860px) and (min-width: 981px) {
  .beat .logo { width: min(270px, 60%); margin-bottom: 12px; }
  .beat h1 { font-size: clamp(40px, 4.6vw, 70px); margin-bottom: 14px; }
  .beat .kicker { margin-bottom: 12px; }
  .beat .lead { font-size: 17px; }
  .beat .ctas { margin: 20px 0 16px; }
}
@media (max-height: 720px) and (min-width: 981px) {
  .beat-0 .facts, .beat-0 .lead { display: none; }
}
@media (max-width: 980px) {
  .beat { top: 76px; bottom: 40px; bottom: calc(40px + 100lvh - 100svh); justify-content: flex-end; }
}
/* the still before the canvas paints (and the one that stays with reduced motion): pushed right like the canvas */
@media (min-width: 981px) { .run-poster { left: 12%; width: 88%; object-position: 0% 50%; } .stage { background: #120a33; } }
/* a phone's still stops 2 px short of the bottom (under the shade's darkest end, and the canvas covers it): Chrome does not
   count a picture that fills the whole screen as the page's largest paint, so the title's slow assembly was, 6.9 s on
   Lighthouse mobile (2026-11-15); desktop's still, pushed right, always counted */
@media (max-width: 980px) { .run-poster { height: calc(100vh - 2px); height: calc(100lvh - 2px); } .stage { background: #120a33; } }

/* NANO PLANET in its picture font (landing.js): two <nano-type> lines; until they load the drawn letters wait hidden,
   and come back as the fallback if the font fails. The runtime keeps room round its words for effects: taken back. */
.logo-font { aspect-ratio: auto !important; display: flex; flex-direction: column; }
.logo-font nano-type { display: block; margin-left: calc(var(--nano-bleed-x, 0px) * -1); margin-right: calc(var(--nano-bleed-x, 0px) * -1); }
.js .logo:not(.logo-font):not(.logo-fallback) > img { visibility: hidden; }
.final-logo { width: min(460px, 80vw); margin: 0 auto 24px; position: relative; }
.final-logo .logo-flat { width: 100%; height: auto; filter: drop-shadow(0 10px 20px rgba(10,0,40,.5)); }
.final-logo.logo-font { align-items: center; }
/* the titles' idle: each word bobs and tilts a hair, on its own beat */
.bob { display: inline-block; animation: bob-idle 3.4s ease-in-out calc(var(--b, 0) * -3.4s) infinite; transform-origin: 50% 90%; }
@keyframes bob-idle { 0%, 100% { translate: 0 0; rotate: 0deg; } 30% { translate: 0 -4px; rotate: -1.2deg; } 65% { translate: 0 2px; rotate: .9deg; } }
.beat h1 span.bob { animation: rise .7s cubic-bezier(.2,1.3,.4,1) calc(1.35s + var(--i) * .12s) both, bob-idle 3.4s ease-in-out calc(2.4s + var(--b, 0) * 1s) infinite; }
@media (max-width: 980px) { .beat .logo.logo-font nano-type { margin-left: auto; margin-right: auto; } }
.final-logo .logo-flat { position: static; animation: none; }
/* the cover's logo, bigger (the owner, 2026-11-13): wider than the text column, the sky above the friends is free */
.beat-0 .logo { width: min(620px, 44vw); }
@media (max-height: 860px) and (min-width: 981px) { .beat-0 .logo { width: min(500px, 38vw); } }
@media (max-width: 980px) { .beat-0 .logo { width: min(360px, 78vw); } }
/* phones: the first beat (logo, kicker, title, words, buttons) is taller than the band between the header and the bottom
   on most of them; aligned "safe" it starts under the header instead of spilling above it, and it compacts (the owner,
   2026-11-14: the logo was cut at the top) */
@media (max-width: 980px) {
  .beat { justify-content: safe flex-end; }
  .beat-0 .logo { margin-bottom: 8px; }
  .beat-0 h1 { font-size: clamp(38px, 10.5vw, 60px); margin-bottom: 12px; }
  .beat-0 .kicker { margin-bottom: 10px; }
  .beat-0 .lead { font-size: 16px; line-height: 1.45; margin-bottom: 0; }
  .beat-0 .ctas { margin: 16px 0 0; }
}
@media (max-width: 980px) and (max-height: 760px) {
  .beat-0 .logo { width: min(280px, 66vw); }
  .beat-0 .lead { display: none; }
}
@media (max-width: 980px) and (max-height: 620px) {
  .beat-0 .logo { width: min(220px, 56vw); }
  .beat-0 .kicker { display: none; }
}

/* ---------- Nano's friends: the game's models rendered as cut-outs (site/media/cut), the game's icons round them ---------- */
.friends { position: relative; overflow: hidden; padding: 120px 0 130px; text-align: center;
  background: radial-gradient(60% 50% at 50% 0%, rgba(75,34,176,.55), transparent 70%), radial-gradient(50% 40% at 50% 100%, rgba(217,70,143,.3), transparent 70%), var(--night); }
.friends .lead { margin: 18px auto 0; }
.deco { position: absolute; inset: 0; pointer-events: none; }
.deco img { position: absolute; height: auto; opacity: .9; filter: drop-shadow(0 10px 18px rgba(0,0,0,.35));
  transform: rotate(var(--r)); animation: deco-bob 5s ease-in-out var(--d) infinite; }
@keyframes deco-bob { 50% { translate: 0 -14px; rotate: 6deg; } }
.pals { list-style: none; padding: 0; margin: 64px 0 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 22px; position: relative; }
.pal { position: relative; padding: 0 6px 26px; border-radius: 28px; background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.02));
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.12); }
.pal img { width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; margin: -34px 0 6px; filter: drop-shadow(0 18px 22px rgba(0,0,0,.45));
  animation: pal-float 4.2s ease-in-out calc(var(--i) * -.8s) infinite; transition: scale .3s cubic-bezier(.3,1.6,.5,1); }
.pal:hover img { scale: 1.08; }
@keyframes pal-float { 50% { translate: 0 -10px; rotate: -2deg; } }
.pal h3 { font-size: 26px; margin-bottom: 8px; }
.pal p { font-size: 16px; color: rgba(255,255,255,.78); padding: 0 12px; }
@media (max-width: 1100px) { .pals { grid-template-columns: repeat(3, 1fr); row-gap: 50px; } }
@media (max-width: 640px) { .pals { grid-template-columns: repeat(2, 1fr); } .deco img { width: 48px !important; } }
.deco { z-index: 0; } .friends .wrap { position: relative; z-index: 1; }
.pal { background: linear-gradient(180deg, rgba(36,22,92,.92), rgba(22,13,60,.92)); }
@media (max-width: 1100px) { .deco img:nth-child(n+5) { display: none; } }
/* the beats are flex columns: the kicker and the buttons keep their own width instead of stretching to the column's */
.beat > .kicker, .beat > .ctas, .beat > .facts { align-self: flex-start; }
@media (max-width: 980px) { .beat > .kicker, .beat > .ctas, .beat > .facts { align-self: center; } }

/* ---------- inside the game: real stills from the owner's screen recordings (site/media/game) ---------- */
.gallery { padding: 40px 0 120px; text-align: center; background: var(--night); }
.gallery h2 { margin-bottom: 46px; }
.shots { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.shots figure { margin: 0; position: relative; border-radius: 22px; overflow: hidden; transform: rotate(var(--t, 0deg));
  box-shadow: 0 0 0 3px rgba(255,255,255,.14), 0 22px 44px rgba(0,0,0,.45); transition: transform .35s cubic-bezier(.2,1.3,.4,1); }
.shots li:nth-child(odd) figure { --t: -1deg; } .shots li:nth-child(even) figure { --t: 1deg; }
.shots figure:hover { transform: rotate(0) scale(1.03); }
.shots img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.shots figcaption { position: absolute; left: 12px; bottom: 12px; font: 400 18px/1 var(--display); color: var(--plum); background: var(--gold); padding: 8px 12px 7px; border-radius: 999px; }
@media (max-width: 980px) { .shots { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .shots { grid-template-columns: 1fr; } }

/* ---------- topic pages (site/guides.mjs): what educational AI for kids is, the homework helper, safe AI ---------- */
.guide-page .top { background: rgba(18,10,51,.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
/* hero: a game shot, full size, behind the title */
.g-hero { position: relative; display: flex; align-items: flex-end; min-height: min(92svh, 860px); padding: 140px 0 110px; overflow: hidden; isolation: isolate; background: var(--night); }
.g-hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; animation: g-zoom 18s ease-out both; }
.g-hero::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(18,10,51,.92) 0%, rgba(18,10,51,.7) 38%, rgba(18,10,51,.12) 70%, transparent),
              linear-gradient(0deg, rgba(18,10,51,.85) 0%, transparent 42%), linear-gradient(180deg, rgba(18,10,51,.6), transparent 22%); }
.g-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 70px; z-index: 0; background: var(--paper);
  -webkit-mask: radial-gradient(120% 140px at 50% 140px, #000 98%, transparent 100%); mask: radial-gradient(120% 140px at 50% 140px, #000 98%, transparent 100%); }
@keyframes g-zoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.g-hero-in { position: relative; z-index: 1; }
.g-hero-copy { max-width: 640px; }
.g-hero h1 { font-size: clamp(44px, 6vw, 84px); line-height: .95; margin: 16px 0 22px; text-shadow: 0 5px 0 rgba(30,8,80,.6), 0 18px 40px rgba(10,0,40,.5); }
.g-hero .lead { margin-bottom: 30px; font-size: 20px; color: rgba(255,255,255,.9); text-shadow: 0 2px 12px rgba(10,0,40,.6); }
.g-hero-float img { position: absolute; z-index: 1; width: clamp(90px, 9vw, 150px); height: auto; filter: drop-shadow(0 18px 24px rgba(10,0,40,.45)); animation: g-bob 6s ease-in-out infinite; }
.g-hero-float .f0 { right: 8%; top: 22%; --r: -8deg; }
.g-hero-float .f1 { right: 22%; top: 12%; width: clamp(70px, 6vw, 110px); --r: 10deg; animation-delay: -2.5s; }
@keyframes g-bob { 0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); } 50% { transform: translateY(-14px) rotate(calc(var(--r, 0deg) * -1)); } }
.crumbs { font-size: 15px; color: rgba(255,255,255,.65); margin-bottom: 18px; }
.crumbs a { color: rgba(255,255,255,.9); }

/* body: each point a row with its picture */
.g-body { padding: 70px 0 30px; }
.g-article { max-width: 1120px; }
.g-sec { margin-bottom: 120px; }
.g-sec h2 { font-size: clamp(32px, 3.6vw, 48px); line-height: 1.02; margin-bottom: 20px; }
.g-sec p { color: var(--ink-dim); font-size: 19px; margin: 0 0 16px; }
.g-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.g-row.flip .g-sec-copy { order: 2; }
.g-row .g-sec-art:empty { display: none; }
.g-wide .g-sec-head { max-width: 720px; margin: 0 auto 36px; text-align: center; }
.g-shot { position: relative; margin: 0; transform: rotate(-1.6deg); }
.g-row.flip .g-shot { transform: rotate(1.6deg); }
.g-shot > img:first-child { display: block; width: 100%; height: auto; border-radius: 24px; border: 8px solid #fff; box-shadow: 0 30px 60px rgba(29,20,56,.25); }
.g-shot.tall { max-width: 380px; margin: 0 auto; }
.g-pop { position: absolute; width: 120px; height: auto; filter: drop-shadow(0 14px 18px rgba(29,20,56,.3)); animation: g-bob 5s ease-in-out infinite; }
.g-pop.p0 { right: -34px; top: -40px; --r: 8deg; }
.g-pop.p1 { left: -40px; bottom: -34px; width: 96px; --r: -10deg; animation-delay: -2s; }
.g-phone { width: min(300px, 70%); margin: 0 auto; padding: 10px; border-radius: 42px; background: #1a1238; transform: rotate(2deg);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.12), 0 40px 70px rgba(29,20,56,.35); }
.g-phone img { display: block; width: 100%; height: auto; border-radius: 32px; }
.g-cutout { display: grid; place-items: center; }
.g-cutout img { width: min(300px, 70%); height: auto; filter: drop-shadow(0 30px 30px rgba(29,20,56,.3)); animation: g-bob 7s ease-in-out infinite; }
.g-badge { display: grid; place-items: center; width: min(320px, 80%); aspect-ratio: 1; margin: 0 auto; border-radius: 50%; color: var(--plum);
  background: radial-gradient(circle at 35% 30%, #fff6b0, var(--gold) 55%, var(--gold2)); box-shadow: 0 0 0 14px rgba(255,210,26,.18), 0 30px 60px rgba(29,20,56,.25); }
.g-badge svg { width: 52%; height: auto; }
.g-strip { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 16px; }
.g-strip img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 20px; box-shadow: 0 20px 40px rgba(29,20,56,.2); }
.g-strip img:nth-child(2) { transform: translateY(24px); }
.g-cast { position: relative; }
.g-cast-row { display: flex; justify-content: center; align-items: flex-end; margin-top: -40px; position: relative; }
.g-cast-row img { width: clamp(110px, 16vw, 210px); height: auto; margin: 0 -18px; filter: drop-shadow(0 20px 20px rgba(29,20,56,.3)); }
.g-cast-row img:nth-child(2) { transform: translateY(-20px) rotate(-5deg); }
.g-cast-row img:nth-child(3) { transform: rotate(4deg); }
.g-row .g-cast-row { margin-top: 0; }

/* lists: cards with a mark each */
.g-cards { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 16px; }
.g-wide .g-cards { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.g-wide .g-cards.n4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-cards li { position: relative; display: grid; grid-template-columns: 64px 1fr; gap: 16px; align-items: center; padding: 16px 20px 16px 16px; border-radius: 22px;
  background: #fff; box-shadow: 0 3px 0 var(--line), 0 14px 30px rgba(29,20,56,.07); }
.g-cards li p { margin: 0; color: var(--ink); font-size: 18px; line-height: 1.45; }
.g-wide .g-cards li { grid-template-columns: 1fr; align-content: start; padding: 26px 22px 24px; text-align: left; }
.g-mark { display: grid; place-items: center; width: 64px; height: 64px; }
.g-mark img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 6px 8px rgba(29,20,56,.2)); }
.g-wide .g-mark { width: 92px; height: 92px; }
.g-mark-pic img { object-fit: cover; border-radius: 16px; filter: none; box-shadow: 0 6px 14px rgba(29,20,56,.2); }
.g-mark-svg { border-radius: 20px; color: var(--plum); background: radial-gradient(circle at 35% 30%, #fff6b0, var(--gold) 60%, var(--gold2)); box-shadow: inset 0 -4px 0 rgba(150,90,0,.25); }
.g-mark-svg svg { width: 58%; height: auto; }
.g-wide .g-mark-svg { width: 76px; height: 76px; }
.g-answer { margin-top: 6px !important; padding-top: 14px; border-top: 2px dashed var(--line); font-size: 16px !important; color: var(--ink-dim) !important; }
.g-answer b { display: block; font: 400 13px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; color: #b0157a; margin-bottom: 6px; }
.g-cards.steps { counter-reset: s; margin: 14px 0 0; gap: 16px; max-width: none; }
.g-wide .g-cards.steps { gap: 20px; }
/* the home page's .steps grid (three wide columns) must not reach a guide's numbered cards beside a picture */
.g-row .g-cards.steps { grid-template-columns: 1fr; }
.g-cards.steps li { counter-increment: s; }
.g-cards.steps li::after { content: counter(s); position: absolute; left: 6px; top: 6px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  font: 400 16px/1 var(--display); color: #fff; background: var(--plum); }
.g-faq { padding-top: 10px; }
.g-cta { text-align: center; padding: 110px 0 120px; background: radial-gradient(60% 60% at 50% 40%, rgba(217,70,143,.3), transparent 70%), var(--night); }
.g-cta h2 { font-size: clamp(34px, 4vw, 54px); margin-bottom: 14px; }
.g-cta .lead { margin: 0 auto 34px; }
.g-more { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; max-width: 760px; margin: 70px auto 0; text-align: left; }
.g-more p { grid-column: 1 / -1; margin: 0; font: 400 15px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.6); }
.g-more a { display: grid; gap: 6px; padding: 20px 22px; border-radius: 20px; text-decoration: none; color: #fff; background: rgba(255,255,255,.06);
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.16); transition: background .2s, transform .2s; }
.g-more a:hover { background: rgba(255,255,255,.11); transform: translateY(-2px); }
.g-more b { font: 400 14px/1 var(--display); letter-spacing: .06em; text-transform: uppercase; color: var(--gold); }
.g-more span { font: 400 22px/1.15 var(--display); }
.foot-guides { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 8px; margin-bottom: 6px; }
.foot-guides span { color: rgba(255,255,255,.5); }
@media (max-width: 900px) {
  .g-hero { min-height: 88svh; padding: 110px 0 90px; }
  .g-hero::before { background: linear-gradient(0deg, rgba(18,10,51,.95) 0%, rgba(18,10,51,.75) 45%, rgba(18,10,51,.2) 75%), linear-gradient(180deg, rgba(18,10,51,.6), transparent 25%); }
  .g-hero-float .f0 { top: 15%; right: 6%; } .g-hero-float .f1 { display: none; }
  .g-sec { margin-bottom: 84px; }
  .g-row { grid-template-columns: 1fr; gap: 40px; }
  .g-row.flip .g-sec-copy { order: 0; }
  .g-wide .g-cards.n4 { grid-template-columns: 1fr 1fr; }
  .g-pop.p0 { right: -10px; } .g-pop.p1 { left: -10px; }
  .g-more { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .g-wide .g-cards.n4 { grid-template-columns: 1fr; }
  .g-wide .g-cards li { grid-template-columns: 64px 1fr; align-items: center; padding: 16px; }
  .g-wide .g-mark, .g-wide .g-mark-svg { width: 64px; height: 64px; }
  .g-wide .g-answer { grid-column: 1 / -1; }
  .g-strip { grid-template-columns: 1fr 1fr; } .g-strip img:first-child { grid-column: 1 / -1; } .g-strip img:nth-child(2) { transform: none; }
  .g-cast-row img { margin: 0 -12px; }
}
@media (prefers-reduced-motion: reduce) { .g-hero-bg, .g-hero-float img, .g-pop, .g-cutout img { animation: none; } }
.g-link { margin: 14px 0 0; font-weight: 600; }
.g-link a { color: var(--gold); text-underline-offset: 4px; }
.g-link.dark a { color: var(--plum); }

/* ---------- nav: guides under "For parents" ---------- */
.nav-drop { position: relative; }
.nav-drop > a { display: inline-flex; align-items: center; gap: 6px; }
.nav-drop > a svg { width: 11px; height: 8px; transition: transform .2s; }
.nav-drop:hover > a svg, .nav-drop:focus-within > a svg { transform: rotate(180deg); }
.nav-drop .drop { position: absolute; top: 100%; left: 50%; width: 300px; padding: 14px 10px 10px; margin-top: 8px; border-radius: 20px;
  background: #2a1466; box-shadow: 0 18px 40px rgba(10,0,40,.45), inset 0 0 0 2px rgba(255,255,255,.12);
  opacity: 0; visibility: hidden; transform: translate(-50%, -6px); transition: opacity .18s, transform .18s, visibility .18s; z-index: 20; }
.nav-drop .drop::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.nav-drop:hover .drop, .nav-drop:focus-within .drop { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.nav-drop .drop p { margin: 0 10px 6px; font: 700 12px/1 var(--body, inherit); letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.55); }
.top nav .drop a { display: block; padding: 10px 12px; border-radius: 14px; text-shadow: none; }
.top nav .drop a b { display: block; font: 400 18px/1.1 var(--display); color: var(--gold); }
.top nav .drop a span { display: block; margin-top: 3px; font: 500 14px/1.3 var(--body, inherit); color: rgba(255,255,255,.8); }
.top nav .drop a:hover { background: rgba(255,255,255,.08); }
.faq-more { white-space: nowrap; font-weight: 600; color: var(--plum); text-underline-offset: 3px; }
