/* NAALAI landing: a day that turns into "tomorrow" as you scroll.
   Sky, balloons, problem, story film, parents, pricing motion, about. Loaded after naalai.css. */

@property --sky-a { syntax: "<color>"; inherits: true; initial-value: #9fcdf5; }
@property --sky-b { syntax: "<color>"; inherits: true; initial-value: #dcecfb; }
@property --sky-c { syntax: "<color>"; inherits: true; initial-value: #fff1de; }
@property --sun-x { syntax: "<length-percentage>"; inherits: true; initial-value: 82vw; }
@property --sun-y { syntax: "<length-percentage>"; inherits: true; initial-value: 17vh; }
@property --sun-hot { syntax: "<color>"; inherits: true; initial-value: #ffe39a; }
@property --sun-rim { syntax: "<color>"; inherits: true; initial-value: #ffb547; }
@property --moon-y { syntax: "<length-percentage>"; inherits: true; initial-value: 120vh; }
@property --night { syntax: "<number>"; inherits: true; initial-value: 0; }

/* Sky palette per time of day. Top, middle and horizon colours, sun colour and path. */
body[data-page="landing"] {
  --sky-a: #9fcdf5; --sky-b: #dcecfb; --sky-c: #fff1de;
  --sun-x: 82vw; --sun-y: 17vh; --sun-hot: #ffe39a; --sun-rim: #ffb547; --moon-y: 120vh; --night: 0;
  --cloud-filter: none;
  transition: --sky-a 1.6s ease, --sky-b 1.6s ease, --sky-c 1.6s ease, --sun-x 2.2s cubic-bezier(.45, 0, .2, 1), --sun-y 2.2s cubic-bezier(.45, 0, .2, 1),
    --sun-hot 1.6s, --sun-rim 1.6s, --moon-y 2s cubic-bezier(.45, 0, .2, 1), --night 1.6s ease;
  background: var(--sky-c);
}
body[data-time="day"] { --sky-a: #74b6f0; --sky-b: #c3e1fb; --sky-c: #eef7ff; --sun-x: 74vw; --sun-y: 9vh; --sun-hot: #fff3c4; --sun-rim: #ffd36b; }
body[data-time="afternoon"] { --sky-a: #8cc2f2; --sky-b: #d6e9f8; --sky-c: #fff0d9; --sun-x: 80vw; --sun-y: 22vh; --sun-hot: #ffe7a8; --sun-rim: #ffb13d; }
body[data-time="evening"] {
  --sky-a: #8d86d6; --sky-b: #ffb896; --sky-c: #ffdcb0; --sun-x: 78vw; --sun-y: 66vh; --sun-hot: #fff0c2; --sun-rim: #ff6a3d;
  --cloud-filter: sepia(.45) saturate(2.2) hue-rotate(-22deg) brightness(.98);
}
body[data-time="night"] {
  --sky-a: #070b2a; --sky-b: #151c55; --sky-c: #2f2a6e; --sun-y: 140vh; --moon-y: 10vh; --night: 1;
  --cloud-filter: brightness(.55) sepia(1) hue-rotate(190deg) saturate(1.3) opacity(.32);
}

.sky { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; background: linear-gradient(180deg, var(--sky-a) 0%, var(--sky-b) 58%, var(--sky-c) 100%); }
.sky > * { position: absolute; }

/* A real-looking sun: white-hot core, warm rim, wide soft bloom, slow rays and a faint lens flare. */
.sun { left: var(--sun-x); top: var(--sun-y); width: 0; height: 0; }
.sun > span { position: absolute; left: 0; top: 0; border-radius: 50%; translate: -50% -50%; }
.sun-glow { width: 640px; height: 640px; background: radial-gradient(circle, color-mix(in srgb, var(--sun-hot) 70%, transparent) 0%, color-mix(in srgb, var(--sun-rim) 26%, transparent) 22%, color-mix(in srgb, var(--sun-rim) 8%, transparent) 46%, transparent 70%); }
.sun-rays { width: 520px; height: 520px; opacity: calc(.5 - var(--night) * .5);
  background: repeating-conic-gradient(from 0deg, rgba(255, 246, 214, .34) 0deg 2.2deg, transparent 2.2deg 11deg);
  -webkit-mask: radial-gradient(circle, #000 12%, rgba(0, 0, 0, .35) 32%, transparent 62%); mask: radial-gradient(circle, #000 12%, rgba(0, 0, 0, .35) 32%, transparent 62%);
  animation: sun-spin 140s linear infinite; }
.sun-core { width: 116px; height: 116px;
  background: radial-gradient(circle at 50% 50%, #fffef8 0 48%, var(--sun-hot) 68%, var(--sun-rim) 100%);
  box-shadow: 0 0 22px 8px color-mix(in srgb, var(--sun-hot) 90%, transparent), 0 0 80px 34px color-mix(in srgb, var(--sun-rim) 45%, transparent), 0 0 180px 90px color-mix(in srgb, var(--sun-rim) 18%, transparent);
  animation: sun-breathe 6s ease-in-out infinite alternate; }
.flare { background: radial-gradient(circle, rgba(255, 255, 255, .0) 40%, rgba(255, 236, 190, .28) 70%, rgba(255, 236, 190, 0) 72%); opacity: calc(.8 - var(--night)); }
.flare.f1 { width: 70px; height: 70px; margin: 150px 0 0 -170px; }
.flare.f2 { width: 26px; height: 26px; margin: 230px 0 0 -270px; background: rgba(170, 220, 255, .22); }
.flare.f3 { width: 120px; height: 120px; margin: 330px 0 0 -400px; background: radial-gradient(circle, rgba(255, 200, 150, .12), transparent 70%); }
@keyframes sun-spin { to { rotate: 360deg; } }
@keyframes sun-breathe { to { scale: 1.04; filter: brightness(1.04); } }

.moon { right: 13vw; top: var(--moon-y); width: 84px; height: 84px; border-radius: 50%;
  background: radial-gradient(circle at 36% 34%, #fffdf0, #f4efd8 55%, #d9d4bd); box-shadow: 0 0 40px 10px rgba(255, 250, 220, .28), 0 0 140px 40px rgba(170, 180, 255, .18); }
.moon::before, .moon::after { content: ""; position: absolute; border-radius: 50%; background: rgba(170, 160, 130, .28); }
.moon::before { width: 18px; height: 18px; left: 44px; top: 20px; }
.moon::after { width: 11px; height: 11px; left: 22px; top: 50px; }
.stars { inset: 0; opacity: var(--night);
  background-image: radial-gradient(1.4px 1.4px 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 76% 12%, #fff 50%, transparent 51%), radial-gradient(1.5px 1.5px at 88% 34%, #fff 50%, transparent 51%), radial-gradient(1.8px 1.8px at 22% 42%, #fff 50%, transparent 51%), radial-gradient(1.2px 1.2px at 46% 52%, #fff 50%, transparent 51%), radial-gradient(1.2px 1.2px at 66% 44%, #fff 50%, transparent 51%), radial-gradient(1.6px 1.6px at 8% 62%, #fff 50%, transparent 51%), radial-gradient(1.2px 1.2px at 94% 58%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 40% 30%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 70% 30%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 52% 6%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 16% 30%, #fff 50%, transparent 51%);
  animation: twinkle-sky 4s ease-in-out infinite alternate; }
@keyframes twinkle-sky { to { filter: brightness(1.7); } }

/* Clouds: three depth layers. JS builds them and moves each layer at its own speed as you scroll,
   so you feel like you are coming down through the sky. */
.cloud-layer { left: 0; top: 0; width: 100%; height: 300vh; will-change: transform; filter: var(--cloud-filter); transition: filter 1.6s ease; }
.cloud { position: absolute; left: 0; top: var(--y); width: var(--w); translate: var(--x0) 0; animation: cloud-drift var(--dur) linear var(--delay) infinite; opacity: var(--o, 1); }
.cloud svg { display: block; width: 100%; height: auto; overflow: visible; }
.cloud-layer.near .cloud { filter: blur(1.5px); }
@keyframes cloud-drift { from { translate: calc(-1 * var(--w)) 0; } to { translate: 100vw 0; } }

/* A jet high up with its contrail, only near the top of the page. */
.airliner-layer { left: 0; top: 0; width: 100%; height: 40vh; will-change: transform, opacity; }
.airliner { position: absolute; top: 11vh; left: 0; width: 170px; animation: jet 46s linear -12s infinite; }
.airliner svg { position: relative; width: 100%; display: block; animation: jet-bob 5s ease-in-out infinite alternate; }
.contrail { position: absolute; right: 88%; top: 50%; width: 60vw; height: 5px; border-radius: 3px; background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .85)); filter: blur(1.4px); }
.contrail::after { content: ""; position: absolute; left: 30%; right: 0; top: 9px; height: 3px; border-radius: 2px; background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .6)); }
@keyframes jet { from { translate: -220px 0; } to { translate: calc(100vw + 60vw) -6vh; } }
@keyframes jet-bob { to { transform: translateY(4px) rotate(-.6deg); } }

/* Crows flapping lower down, as the ground gets near. */
.birds-layer { left: 0; top: 0; width: 100%; height: 50vh; will-change: transform; }
.flock { position: absolute; left: 0; top: 10vh; width: 260px; height: 140px; animation: flock 38s linear -8s infinite; }
.crow { position: absolute; width: 46px; }
.crow .crow-w, .crow .crow-w2 { transform-box: fill-box; transform-origin: 50% 100%; animation: flap .5s ease-in-out infinite alternate; }
.crow .crow-w2 { animation-delay: -.05s; }
.crow.c1 { left: 0; top: 40px; } .crow.c2 { left: 60px; top: 10px; width: 40px; } .crow.c3 { left: 110px; top: 58px; width: 50px; }
.crow.c4 { left: 170px; top: 22px; width: 36px; } .crow.c5 { left: 214px; top: 70px; width: 32px; } .crow.c6 { left: 36px; top: 96px; width: 38px; } .crow.c7 { left: 140px; top: 104px; width: 30px; }
.crow.c2 .crow-w, .crow.c2 .crow-w2 { animation-duration: .44s; } .crow.c4 .crow-w, .crow.c4 .crow-w2 { animation-duration: .56s; animation-delay: -.2s; }
.crow.c6 .crow-w, .crow.c6 .crow-w2 { animation-duration: .48s; animation-delay: -.3s; }
@keyframes flap { from { transform: scaleY(1); } to { transform: scaleY(-.55); } }
@keyframes flock { from { translate: -300px 0; } 50% { translate: 50vw 3vh; } to { translate: calc(100vw + 40px) -2vh; } }

/* Landing on the ground at the end of the page: hills, the school and homes at night.
   Three layers scroll at different speeds; the footer is the ground itself. */
.landfall { position: relative; height: clamp(220px, 30vw, 400px); margin-top: -40px; overflow: hidden; pointer-events: none; }
.lf { position: absolute; left: 0; bottom: 0; width: 100%; height: 100%; will-change: transform; }
.lf-far { fill: #28306a; height: 92%; } .lf-far .lf-dark { fill: #1e2556; }
.lf-mid { fill: #1c2552; } .lf-mid .lf-dark { fill: #131a3f; }
.lf-near { fill: #0f1433; height: 70%; } .lf-road { fill: #242a55; } .lf-post { fill: #080b22; }
.landfall .wall { fill: #3b3f78; } .landfall .roof-r { fill: #c9553d; }
.landfall .win rect, .landfall .lit { fill: #ffd98a; }
.landfall .win rect { filter: drop-shadow(0 0 6px rgba(255, 217, 138, .8)); }
.landfall .flag { transform-box: fill-box; transform-origin: 0 50%; animation: flag 1.6s ease-in-out infinite alternate; }
@keyframes flag { to { transform: skewY(-5deg) scaleX(.94); } }
.fireflies { position: absolute; left: 0; right: 0; bottom: 0; height: 70%;
  background-image: radial-gradient(2px 2px at 20% 60%, #fff2a8 50%, transparent 51%), radial-gradient(2px 2px at 36% 80%, #fff2a8 50%, transparent 51%), radial-gradient(2px 2px at 62% 70%, #fff2a8 50%, transparent 51%), radial-gradient(2px 2px at 80% 86%, #fff2a8 50%, transparent 51%), radial-gradient(2px 2px at 90% 64%, #fff2a8 50%, transparent 51%), radial-gradient(1.6px 1.6px at 48% 90%, #fff2a8 50%, transparent 51%);
  animation: twinkle-sky 2.4s ease-in-out infinite alternate; }
.footer.night { background: #0f1433; }

@media (max-width: 700px) {
  .sun-core { width: 76px; height: 76px; }
  .sun-glow { width: 420px; height: 420px; }
  .sun-rays { width: 340px; height: 340px; }
  .flare { display: none; }
  body[data-page="landing"] { --sun-x: 84vw; }
  .airliner { width: 110px; top: 9vh; }
  .crow { width: 34px; }
  .moon { width: 60px; height: 60px; }
}
@media (prefers-reduced-motion: reduce) {
  .sun-rays, .sun-core, .cloud, .airliner, .airliner svg, .flock, .crow *, .stars, .fireflies, .landfall .flag { animation: none !important; }
  .airliner-layer, .birds-layer { display: none; }
}

/* the hero no longer needs the old colour blobs */
.hero .ambient { display: none; }
.hero { background: transparent; }

/* Lenis smooth scroll */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

/* ---------- balloons ---------- */
.balloons { position: fixed; inset: 0; z-index: 30; pointer-events: none; overflow: hidden; }
.balloon { position: absolute; bottom: -140px; left: var(--x); width: var(--size); height: calc(var(--size) * 1.5); padding: 0; border: 0; background: none; cursor: pointer; pointer-events: auto; animation: rise var(--dur) linear var(--delay) forwards; }
.balloon svg { width: 100%; height: 100%; animation: sway calc(var(--dur) / 5) ease-in-out infinite alternate; transform-origin: 50% 90%; filter: drop-shadow(0 8px 10px rgba(28, 26, 46, .14)); }
.balloon:hover svg { filter: drop-shadow(0 8px 10px rgba(28, 26, 46, .2)) brightness(1.05); }
.balloon.popped { animation: none; pointer-events: none; }
.balloon.popped svg { animation: popped .22s ease-out forwards; }
@keyframes rise { to { transform: translateY(calc(-100vh - 280px)); } }
@keyframes sway { from { transform: translateX(calc(var(--sway) * -1)) rotate(-4deg); } to { transform: translateX(var(--sway)) rotate(4deg); } }
@keyframes popped { to { transform: scale(1.5); opacity: 0; } }
.pop-word { position: fixed; z-index: 31; pointer-events: none; font-family: var(--font-display); font-weight: 800; font-size: 22px; color: var(--ink); text-shadow: 0 2px 0 #fff; animation: pop-word .8s var(--ease) forwards; }
@keyframes pop-word { from { transform: translate(-50%, -50%) scale(.6); opacity: 1; } to { transform: translate(-50%, -140%) scale(1.1); opacity: 0; } }

/* ---------- shared bits ---------- */
.kicker { font-family: var(--font-display); font-weight: 800; font-size: 15px; letter-spacing: .02em; color: var(--coral); margin-bottom: 10px; }
.lead { font-size: clamp(17px, 1.5vw, 20px); color: var(--ink-2); margin-top: 16px; }
.section-head .kicker { margin-bottom: 12px; }

/* ---------- problem ---------- */
.problem { padding: 60px 0 40px; }
.problem-pin { min-height: 100vh; display: grid; align-items: center; }
.problem-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: center; }
.problem-copy h2 { font-size: clamp(2.2rem, 4.6vw, 3.8rem); font-weight: 800; line-height: 1.02; }
.scroll-hint { display: flex; align-items: center; gap: 12px; margin-top: 30px; font-weight: 700; color: var(--ink-3); }
.mouse { width: 22px; height: 34px; border: 2.5px solid var(--ink-3); border-radius: 14px; position: relative; flex: none; }
.mouse::after { content: ""; position: absolute; left: 50%; top: 6px; width: 4px; height: 7px; margin-left: -2px; border-radius: 2px; background: var(--ink-3); animation: wheel 1.6s ease-in-out infinite; }
@keyframes wheel { 60% { transform: translateY(9px); opacity: 0; } }
.chaos { position: relative; height: min(520px, 70vh); }
.chat { position: absolute; left: var(--x); top: var(--y); max-width: 250px; padding: 11px 15px; border-radius: 18px 18px 18px 4px; background: #fff; box-shadow: var(--shadow-1); font-weight: 700; font-size: 15px; transform: rotate(var(--r)); }
.chat::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 8px; border-radius: 50%; background: #25d366; vertical-align: 1px; }
.chat-me { background: #dcf8c6; border-radius: 18px 18px 4px 18px; }
.chat-alert { background: #ff5b5b; color: #fff; }
.chat-alert::before { background: #fff; }
.chat-photo { background: #f2eee6; font-style: italic; color: var(--ink-2); }
.order-card { position: absolute; left: 50%; top: 50%; width: min(360px, 90%); transform: translate(-50%, -50%); background: #fff; border-radius: 26px; padding: 18px; box-shadow: var(--shadow-2), 0 0 0 4px rgba(255, 201, 60, .5); z-index: 2; }
.order-top { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.order-top img { border-radius: 8px; }
.order-top strong { font-family: var(--font-display); font-size: 18px; }
.order-badge { margin-left: auto; font-size: 12px; font-weight: 900; padding: 4px 10px; border-radius: 999px; background: var(--mint-soft); color: #1b7543; white-space: nowrap; }
.order-card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.order-card li { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 14px; background: #faf7f1; font-weight: 700; }
.solves { padding-top: 60px; }
.solve-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.solve { display: grid; gap: 12px; padding: 22px; border-radius: 24px; background: rgba(255, 255, 255, .86); backdrop-filter: blur(6px); border: 1px solid rgba(255, 255, 255, .9); box-shadow: var(--shadow-1); transition: transform .35s var(--spring); }
.solve:hover { transform: translateY(-4px) rotate(-.4deg); }
.before { color: var(--ink-3); font-weight: 700; text-decoration: line-through; text-decoration-color: rgba(214, 69, 69, .6); text-decoration-thickness: 2px; }
.arrow { width: 34px; height: 34px; border-radius: 50%; background: var(--sun); position: relative; }
.arrow::after { content: ""; position: absolute; left: 50%; top: 45%; width: 10px; height: 10px; border-right: 3px solid var(--ink); border-bottom: 3px solid var(--ink); transform: translate(-50%, -50%) rotate(45deg); }
.after { font-family: var(--font-display); font-size: 20px; font-weight: 800; line-height: 1.2; }

/* ---------- story film ---------- */
.story { padding: 90px 0 40px; }
.story-head { text-align: center; max-width: 780px; }
.story-head h2 { font-size: clamp(2.2rem, 4.8vw, 4rem); font-weight: 800; line-height: 1.02; }
.skip-story { display: inline-block; margin-top: 16px; font-weight: 800; color: var(--blue); }
.story-pin { position: relative; }
.story-dots { display: none; }
.scenes { width: min(1200px, calc(100% - 40px)); margin: 40px auto 0; display: grid; gap: 40px; }
.scene { display: grid; grid-template-columns: 1.4fr 1fr; gap: 36px; align-items: center; }
.scene-art { position: relative; width: 100%; aspect-ratio: 8 / 5; border-radius: 30px; overflow: hidden; box-shadow: var(--shadow-2); background: #fff; }
.art { position: absolute; top: 0; left: 0; width: 800px; height: 500px; transform: scale(var(--k, 1)); transform-origin: 0 0; }
.art-bg { position: absolute; inset: 0; width: 800px; height: 500px; }
.scene-cap { max-width: 440px; }
.time { display: inline-block; font-family: var(--font-display); font-weight: 800; font-size: 14px; padding: 6px 12px; border-radius: 999px; background: var(--ink); color: #fff; }
.scene-cap h3 { font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 800; line-height: 1.08; margin: 14px 0 12px; }
.scene-cap p { font-size: 18px; color: var(--ink-2); }

/* scene parts (positions in the 800×500 art) */
.person { position: absolute; }
.teacher { left: 610px; top: 238px; width: 150px; }
.laptop-mini { position: absolute; left: 250px; top: 196px; width: 330px; }
.lm-screen { height: 190px; border-radius: 16px 16px 6px 6px; background: #fff; border: 7px solid #15172a; padding: 10px 12px; display: grid; gap: 8px; align-content: start; font-size: 14px; }
.lm-base { height: 14px; margin: 0 -18px; border-radius: 0 0 14px 14px; background: #c7ccd8; border: 3px solid #15172a; border-top: 0; }
.lm-bar { display: flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 800; color: var(--ink-3); }
.lm-bar i { width: 8px; height: 8px; border-radius: 50%; background: #ff6b6b; }
.lm-bar i:nth-child(2) { background: var(--sun); }
.lm-bar i:nth-child(3) { background: var(--mint); margin-right: 6px; }
.lm-row { display: flex; gap: 6px; }
.lm-title { font-family: var(--font-display); font-weight: 800; font-size: 20px; background: #f7f3ec; border-radius: 10px; padding: 6px 10px; overflow: hidden; white-space: nowrap; }
.typed { display: inline-block; overflow: hidden; vertical-align: bottom; clip-path: inset(0 var(--clip, 0%) 0 0); }
.lm-publish { justify-self: end; margin-top: -4px; background: var(--blue); color: #fff; font-weight: 800; border-radius: 999px; padding: 6px 16px; }
.plane { position: absolute; width: 56px; height: 56px; left: 540px; top: 150px; filter: drop-shadow(0 6px 6px rgba(28, 26, 46, .2)); }
.houses .house { position: absolute; left: var(--x); top: var(--y); width: 110px; display: grid; justify-items: center; }
.house .roof { width: 110px; height: 44px; background: #b7a8ea; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.house .body { width: 90px; height: 60px; background: #fff; border: 4px solid #1c1a2e; border-top: 0; display: flex; justify-content: space-around; align-items: center; }
.house .body i { width: 20px; height: 20px; border-radius: 4px; background: #d7dbe6; border: 3px solid #1c1a2e; }
.house b { margin-top: 6px; font-family: var(--font-display); font-size: 20px; background: #fff; border-radius: 10px; padding: 0 10px; border: 3px solid #1c1a2e; }
.house { opacity: .55; }
.house.hot { opacity: 1; }
.house.hot .roof { background: var(--blue); }
.house.hot .body i { background: #ffd34d; box-shadow: 0 0 18px 6px rgba(255, 211, 77, .7); }
.house.hot b { background: var(--blue); color: #fff; }
.house-ping { position: absolute; top: 40px; width: 150px; height: 150px; border-radius: 50%; border: 4px solid var(--sun); animation: house-ping 1.8s ease-out infinite; }
@keyframes house-ping { from { transform: scale(.5); opacity: 1; } to { transform: scale(1.4); opacity: 0; } }
.plane-2 { left: 382px; top: 176px; width: 50px; height: 50px; }
.only-badge { position: absolute; right: 28px; top: 28px; font-family: var(--font-display); font-weight: 800; font-size: 20px; background: #fff; border: 3px solid #1c1a2e; border-radius: 999px; padding: 8px 18px; box-shadow: 0 5px 0 #1c1a2e; }
.phone-art { position: absolute; left: 430px; top: 16px; transform: scale(.82); transform-origin: top left; }
.phone-art .phone-screen { min-height: 540px; }
.notif-drop { display: flex; gap: 10px; align-items: center; background: #fff; border-radius: 16px; padding: 10px 12px; box-shadow: var(--shadow-2); margin-bottom: 12px; font-size: 14px; font-weight: 700; line-height: 1.3; }
.notif-drop img { width: 32px; height: 32px; border-radius: 9px; }
.notif-drop strong { display: block; font-size: 12px; color: var(--ink-3); }
.art-tasks li { display: flex; gap: 10px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px; font-weight: 700; font-size: 15px; }
.phone-kid { left: 60px; top: 20px; }
.kid-hi { font-family: var(--font-display); font-weight: 800; font-size: 30px; margin: 8px 4px 12px; }
.kid-card { display: grid; gap: 6px; background: #fff; border: 2px solid var(--line); border-radius: 20px; padding: 14px; margin-bottom: 10px; }
.kid-card .tag { justify-self: start; }
.kid-card strong { font-size: 18px; }
.kid-tick { justify-self: start; font-weight: 900; font-size: 15px; background: var(--mint); color: #fff; border-radius: 999px; padding: 6px 14px; }
.kid-lock { display: block; text-align: center; margin-top: 16px; font-size: 13px; font-weight: 800; color: var(--ink-3); }
.child { left: 520px; top: 110px; width: 200px; }
.flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.snap { position: absolute; left: 470px; top: 268px; width: 110px; height: 90px; background: #fff; padding: 6px 6px 18px; border-radius: 6px; box-shadow: var(--shadow-2); transform: rotate(-8deg); }
.snap span { display: block; height: 100%; border-radius: 3px; background: repeating-linear-gradient(#fffdf6 0 12px, #cfe0f5 12px 14px); }
.review-laptop { position: absolute; left: 150px; top: 60px; width: 440px; }
.rl-screen { position: relative; height: 290px; border-radius: 18px 18px 6px 6px; background: #fff; border: 8px solid #15172a; padding: 12px; }
.rl-photo { margin-top: 10px; height: 200px; border-radius: 10px; padding: 18px 20px; display: grid; gap: 16px; align-content: start; background: repeating-linear-gradient(#fffdf6 0 34px, #cfe0f5 34px 36px); border: 1px solid var(--line); }
.rl-photo span { height: 10px; border-radius: 5px; background: #26356a; opacity: .7; }
.rl-photo span:nth-child(1) { width: 70%; } .rl-photo span:nth-child(2) { width: 85%; } .rl-photo span:nth-child(3) { width: 60%; } .rl-photo span:nth-child(4) { width: 40%; }
.stamp { position: absolute; right: 14px; bottom: 26px; font-family: var(--font-display); font-weight: 800; font-size: 26px; color: #d64545; border: 4px solid #d64545; border-radius: 14px; padding: 6px 14px; transform: rotate(-10deg); background: rgba(255, 255, 255, .9); }
.phone-review { left: 120px; top: 16px; }
.phone-review .phone-screen { position: relative; }
.phone-review .rl-photo { height: 210px; }
.phone-review .stamp { top: 250px; bottom: auto; right: 12px; font-size: 22px; }
.note-bubble { position: absolute; left: 520px; top: 30px; width: 250px; font-size: 16px; }
.mini-status { position: absolute; left: 520px; top: 330px; width: 250px; display: flex; gap: 10px; align-items: center; background: #fff; border-radius: 18px; padding: 12px; box-shadow: var(--shadow-2); font-weight: 700; font-size: 14px; line-height: 1.3; }
.mini-status img { width: 34px; height: 34px; border-radius: 9px; }
.mini-status strong { display: block; font-size: 12px; color: var(--ink-3); }
.bag-art { position: absolute; left: 90px; top: 150px; width: 200px; }
.ready-list { position: absolute; left: 330px; top: 200px; list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ready-list li { background: rgba(255, 255, 255, .95); border-radius: 999px; padding: 8px 18px; font-weight: 900; font-size: 18px; color: #1b7543; }
.tamil { position: absolute; left: 330px; top: 60px; display: grid; color: #fff4c2; font-weight: 800; }
.tamil span { font-size: 64px; line-height: 1.1; }
.tamil small { font-family: var(--font-display); font-size: 20px; color: #cfd3ff; }
.sleepy-kuru { position: absolute; right: 30px; bottom: 30px; width: 120px; transform: rotate(-12deg); }

/* cinema mode (pinned, scrubbed by GSAP) */
.story.cinema .story-pin { height: 100vh; height: 100svh; overflow: hidden; }
.story.cinema .scenes { position: relative; height: 100%; margin: 0 auto; display: block; }
.story.cinema .scene { position: absolute; inset: 0; padding: 90px 0 40px; }
.story.cinema .scene-art { width: min(100%, calc((100svh - 150px) * 1.6)); justify-self: center; }
.story.cinema .story-dots { display: grid; gap: 10px; position: absolute; left: max(12px, calc(50% - 640px)); top: 50%; transform: translateY(-50%); list-style: none; padding: 0; margin: 0; z-index: 3; }
.story-dots li { width: 10px; height: 10px; border-radius: 50%; background: rgba(28, 26, 46, .2); transition: height .3s var(--ease), background .3s; }
.story-dots li.on { height: 28px; border-radius: 6px; background: var(--ink); }

/* ---------- parents ---------- */
.pgrid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pcard { padding: 26px; border-radius: 26px; background: rgba(255, 255, 255, .9); border: 1px solid #fff; box-shadow: var(--shadow-1); transition: transform .4s var(--spring), box-shadow .3s; }
.pcard:hover { transform: translateY(-6px) rotate(.5deg); box-shadow: var(--shadow-2); }
.picon { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 18px; margin-bottom: 16px; transition: transform .45s var(--spring); }
.pcard:hover .picon { transform: rotate(-10deg) scale(1.1); }
.picon svg { width: 38px; height: 38px; }
.p1 { background: var(--blue-soft); } .p2 { background: var(--mint-soft); } .p3 { background: var(--sun-soft); } .p4 { background: var(--lilac-soft); } .p5 { background: var(--coral-soft); } .p6 { background: #ffe1ee; }
.pcard h3 { font-size: 22px; font-weight: 800; }
.pcard p { margin-top: 8px; color: var(--ink-2); }
.evening { position: relative; margin-top: 40px; padding: 30px; border-radius: 28px; background: var(--ink); color: #fff; overflow: hidden; }
.evening h3 { font-size: 24px; font-weight: 800; }
.evening ol { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; position: relative; z-index: 1; }
.evening li { display: grid; gap: 6px; padding-top: 30px; position: relative; }
.evening li::before { content: ""; position: absolute; top: 0; left: 0; width: 18px; height: 18px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 5px rgba(255, 201, 60, .25); }
.evening b { font-family: var(--font-display); font-size: 22px; color: var(--sun); }
.evening span { color: rgba(255, 255, 255, .82); }
.evening-line { position: absolute; left: 30px; right: 30px; top: 101px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .15); }
.evening-line i { display: block; height: 100%; width: 100%; border-radius: inherit; background: var(--sun); transform-origin: left; transform: scaleX(var(--fill, 1)); }
.schools { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-top: 24px; padding: 28px 30px; border-radius: 28px; background: rgba(255, 255, 255, .9); box-shadow: var(--shadow-1); }
.schools h3 { font-size: 26px; font-weight: 800; margin: 4px 0 8px; }
.schools p:not(.kicker) { color: var(--ink-2); max-width: 46em; }

/* ---------- pricing motion ---------- */
.journey { position: relative; list-style: none; padding: 0; margin: 0 auto 36px; max-width: 900px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; text-align: center; }
.journey li { position: relative; z-index: 1; display: grid; justify-items: center; gap: 4px; }
.jdot { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-1); margin-bottom: 8px; }
.jdot svg { width: 36px; height: 36px; }
.jlock { color: var(--mint); }
.journey strong { font-family: var(--font-display); font-size: 20px; }
.journey small { color: var(--ink-2); font-weight: 600; font-size: 14.5px; }
.jline { position: absolute; left: 16.6%; right: 16.6%; top: 31px; height: 4px; border-radius: 2px; background: rgba(28, 26, 46, .12); }
.jline i { display: block; height: 100%; background: linear-gradient(90deg, var(--sun), var(--mint)); border-radius: inherit; transform-origin: left; transform: scaleX(var(--fill, 1)); }
.price-copy h3 { font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 800; }
.piggy-wrap { position: relative; width: 160px; height: 150px; margin-top: 18px; }
.piggy { position: absolute; bottom: 0; width: 160px; }
.piggy.wiggle { animation: wiggle .5s var(--spring); }
@keyframes wiggle { 30% { transform: rotate(-6deg) scale(1.05); } 60% { transform: rotate(4deg); } }
.coin { position: absolute; left: 66px; top: -10px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--sun); border: 3px solid #1c1a2e; font-weight: 900; opacity: 0; }
.coin.drop { animation: coin-drop .6s cubic-bezier(.5, 0, .75, 0); }
@keyframes coin-drop { 0% { transform: translateY(-40px) rotate(0); opacity: 1; } 85% { opacity: 1; } 100% { transform: translateY(46px) rotate(200deg) scaleX(.2); opacity: 0; } }
.calc { transition: transform .5s var(--ease); transform: perspective(900px) rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg)); }
.save-badge { font-size: 13px; font-weight: 900; padding: 6px 12px; border-radius: 999px; background: var(--mint); color: #fff; opacity: 0; transform: scale(.5) rotate(-8deg); transition: opacity .3s, transform .5s var(--spring); }
.calc.is-annual .save-badge { opacity: 1; transform: rotate(-4deg); }
.odo { display: inline-flex; font-family: var(--font-display); font-weight: 800; font-size: clamp(3rem, 5.6vw, 4.3rem); line-height: 1; letter-spacing: -.04em; }
.odo-sym { margin-right: 2px; }
.odo-d { display: inline-block; height: 1em; overflow: hidden; }
.odo-col { display: flex; flex-direction: column; transition: transform .9s cubic-bezier(.2, .9, .25, 1.15); transition-delay: var(--dd, 0s); }
.odo-col span { height: 1em; line-height: 1; }
.cal b.flip { animation: cal-flip .3s ease; }
@keyframes cal-flip { 50% { transform: rotateX(90deg); } }
.saving { min-height: 1.5em; margin-top: 4px; font-weight: 800; color: #5436c4; }
.btn-accent-coral { margin-top: 18px; background: var(--coral); color: #fff; box-shadow: 0 10px 22px -10px var(--coral); }
.btn-accent-coral:hover { background: #ff6d45; }

/* ---------- about + night ---------- */
.night { color: #eef0ff; }
.night .kicker { color: var(--sun); }
.about { padding: 120px 0 60px; }
.about-hero { max-width: 860px; }
.about-hero h2 { font-size: clamp(2.6rem, 6.4vw, 5.4rem); font-weight: 800; line-height: 1; }
.about-hero .ta { color: var(--sun); }
.about-hero em { font-style: normal; color: #b9c2ff; }
.night .lead { color: rgba(238, 240, 255, .8); max-width: 38em; }
.values { list-style: none; padding: 0; margin: 60px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.value { padding: 24px; border-radius: 24px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); backdrop-filter: blur(6px); transition: transform .35s var(--spring), background .3s; }
.value:hover { transform: translateY(-5px); background: rgba(255, 255, 255, .11); }
.vnum { font-family: var(--font-display); font-weight: 800; font-size: 14px; color: var(--sun); }
.value h3 { font-size: 21px; font-weight: 800; margin: 8px 0; }
.value p { color: rgba(238, 240, 255, .75); font-size: 15.5px; }
.roadmap { margin-top: 60px; }
.roadmap h3 { font-size: 26px; font-weight: 800; margin-bottom: 20px; }
.roadmap ol { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; position: relative; }
.roadmap ol::before { content: ""; position: absolute; left: 0; right: 0; top: 11px; height: 3px; background: rgba(255, 255, 255, .18); }
.roadmap li { position: relative; padding-top: 34px; display: grid; gap: 4px; }
.roadmap li::before { content: ""; position: absolute; top: 3px; left: 0; width: 18px; height: 18px; border-radius: 50%; background: #2a2566; border: 3px solid rgba(255, 255, 255, .5); }
.roadmap li.now::before { background: var(--sun); border-color: var(--sun); box-shadow: 0 0 0 6px rgba(255, 201, 60, .25); }
.roadmap b { font-family: var(--font-display); font-size: 20px; }
.roadmap span { color: rgba(238, 240, 255, .75); }
.contact-card { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 60px; padding: 32px; border-radius: 30px; background: linear-gradient(135deg, rgba(255, 201, 60, .18), rgba(123, 92, 230, .25)); border: 1px solid rgba(255, 255, 255, .18); }
.contact-card h3 { font-size: 28px; font-weight: 800; }
.contact-card p { color: rgba(238, 240, 255, .8); margin-top: 6px; max-width: 40em; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn-light { background: #fff; color: var(--ink); }
.btn-ghost-light { background: rgba(255, 255, 255, .08); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .4); }
.btn-ghost-light:hover { background: rgba(255, 255, 255, .16); }
.footer.night { color: rgba(238, 240, 255, .78); }
.footer.night .brand { color: #fff; }
.footer.night .footer-grid { border-color: rgba(255, 255, 255, .14); }
.footer.night h2 { color: var(--sun); }
.footer.night nav a:hover { color: #fff; }
.footer .small { font-size: 14px; }

/* at night the story captions and the nav switch to light text */
.story .scene-cap, .story .scene-cap p, .story-head, .nav.is-scrolled, .nav-links a:not(.btn) { transition: color .8s, background .8s; }
body[data-time="night"] .story .scene-cap { color: #eef0ff; }
body[data-time="night"] .story .scene-cap p { color: rgba(238, 240, 255, .82); }
body[data-time="night"] .story .time { background: var(--sun); color: var(--ink); }
body[data-time="night"] .story-dots li { background: rgba(255, 255, 255, .3); }
body[data-time="night"] .story-dots li.on { background: #fff; }
body[data-time="night"] .nav.is-scrolled { background: rgba(20, 26, 69, .86); box-shadow: 0 1px 0 rgba(255, 255, 255, .08); }
body[data-time="night"] .nav .brand { color: #fff; }
body[data-time="night"] .nav-links a:not(.btn) { color: rgba(238, 240, 255, .85); }
body[data-time="night"] .nav-links .btn-primary { background: var(--sun); color: var(--ink); }
body[data-time="night"] .nav-toggle { background: rgba(255, 255, 255, .12); color: #fff; }
@media (max-width: 900px) { body[data-time="night"] .nav-links a:not(.btn) { color: var(--ink-2); } }

/* on the evening/night sky, section text stays readable */
#faq .faq-list details { border-color: rgba(28, 26, 46, .14); }

/* ---------- responsive ---------- */
@media (max-width: 1040px) {
  .problem-grid { grid-template-columns: 1fr; gap: 24px; }
  .problem-pin { min-height: 0; }
  .solve-grid, .pgrid { grid-template-columns: repeat(2, 1fr); }
  .scene { grid-template-columns: 1fr; gap: 18px; }
  .scene-cap { max-width: none; }
  .values { grid-template-columns: repeat(2, 1fr); }
  .roadmap ol { grid-template-columns: repeat(2, 1fr); }
  .roadmap ol::before { display: none; }
  .story.cinema .scene { padding: 104px 0 24px; align-content: center; }
  .story.cinema .scene-art { width: min(100%, calc((100svh - 330px) * 1.6)); }
  .story.cinema .scene-cap { text-align: center; margin: 0 auto; max-width: 560px; }
  .story.cinema .scene-cap h3 { font-size: clamp(1.4rem, 5vw, 2rem); margin: 10px 0 8px; }
  .story.cinema .scene-cap p { font-size: 16px; }
  .story.cinema .story-dots { grid-auto-flow: column; left: 50%; top: 84px; transform: translateX(-50%); }
  .story.cinema .story-dots li.on { width: 28px; height: 10px; }
}
@media (max-width: 640px) {
  .solve-grid, .pgrid, .values, .evening ol { grid-template-columns: 1fr; }
  .evening-line { display: none; }
  .journey { grid-template-columns: 1fr; text-align: left; }
  .journey li { grid-template-columns: 64px 1fr; justify-items: start; column-gap: 14px; }
  .journey li .jdot { grid-row: span 2; margin: 0; }
  .jline { display: none; }
  .chaos { height: 460px; }
  .chat { font-size: 13px; max-width: 190px; padding: 9px 12px; }
  .roadmap ol { grid-template-columns: 1fr; }
  .contact-actions .btn { width: 100%; }
  .scenes { gap: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .balloons { display: none; }
}

/* ---------- hero: teacher laptop, flying post, parent phone ---------- */
.hero-stage .hero-phone { left: 334px; top: 6px; translate: 0 calc(var(--hs, 0) * -30px); transform: rotateY(calc(var(--ry, -6deg) - var(--hs, 0) * 18deg)) rotateX(calc(var(--rx, 3deg) + var(--hs, 0) * 8deg)) rotateZ(-2deg); }
.hero-stage .hero-kuru { left: 14px; top: 132px; right: auto; bottom: auto; }
.hero-laptop { position: absolute; left: 0; top: 318px; width: 344px; z-index: 1; transform: perspective(1100px) rotateY(calc(18deg + var(--hs, 0) * 14deg)) rotateX(4deg); transform-origin: 100% 60%; translate: calc(var(--hs, 0) * -40px) calc(var(--hs, 0) * 20px); }
.hl-screen { height: 206px; border-radius: 16px 16px 6px 6px; background: #fff; border: 9px solid #15172a; padding: 10px 12px; display: grid; gap: 10px; align-content: start; box-shadow: 0 30px 60px -30px rgba(28, 26, 46, .5); }
.hl-bar { display: flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 800; color: var(--ink-3); }
.hl-bar i { width: 8px; height: 8px; border-radius: 50%; background: #ff6b6b; }
.hl-bar i:nth-child(2) { background: var(--sun); } .hl-bar i:nth-child(3) { background: var(--mint); margin-right: 6px; }
.hl-chips { display: flex; gap: 6px; }
.hl-title { font-family: var(--font-display); font-weight: 800; font-size: 19px; background: #f7f3ec; border-radius: 10px; padding: 8px 10px; white-space: nowrap; overflow: hidden; display: flex; align-items: center; }
.hl-title span { display: inline-block; overflow: hidden; clip-path: inset(0 var(--clip, 0%) 0 0); transition: clip-path 1.1s steps(18); }
.hero-laptop.typing .hl-title span { --clip: 100%; transition: none; }
.caret { width: 2px; height: 20px; margin-left: 2px; background: var(--blue); animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.hl-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 2px; }
.hl-publish { background: var(--blue); color: #fff; font-weight: 800; border-radius: 999px; padding: 7px 18px; font-size: 14px; transition: transform .15s, background .2s; }
.hero-laptop.press .hl-publish { transform: scale(.9); background: #1d4587; }
.hl-sent { font-size: 12.5px; font-weight: 900; color: #1b7543; opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s var(--spring); }
.hero-laptop.sent .hl-sent { opacity: 1; transform: none; }
.hl-base { height: 16px; margin: 0 -22px; border-radius: 0 0 16px 16px; background: linear-gradient(#d9dde6, #aab1c2); border: 3px solid #15172a; border-top: 0; }
.hero-route { position: absolute; inset: 0; width: 640px; height: 620px; z-index: 1; overflow: visible; pointer-events: none; }
.hero-route path { fill: none; stroke: rgba(40, 87, 166, .35); stroke-width: 3; stroke-dasharray: 2 10; stroke-linecap: round; animation: route 1.2s linear infinite; }
@keyframes route { to { stroke-dashoffset: -24; } }
.hero-stage .post-card { left: 110px; top: 282px; transform: none; opacity: 0; transition: opacity .3s; }
.hero-stage .post-card.show { opacity: 1; animation: post-fly 1.7s cubic-bezier(.5, 0, .3, 1) forwards; }
@keyframes post-fly { 0% { transform: translate(0, 0) scale(.7); } 12% { transform: translate(6px, -30px) scale(1); } 40% { transform: translate(60px, -150px) scale(1) rotate(-3deg); } 70% { transform: translate(160px, -214px) scale(.9) rotate(2deg); opacity: 1; } 100% { transform: translate(236px, -234px) scale(.6); opacity: 0; } }
.hero-notif { position: absolute; left: 10px; right: 10px; top: 44px; z-index: 4; display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 18px; background: rgba(255, 255, 255, .96); box-shadow: 0 12px 30px -10px rgba(28, 26, 46, .35); font-size: 13px; line-height: 1.25; transform: translateY(-90px); opacity: 0; transition: transform .5s var(--spring), opacity .3s; }
.hero-notif.show { transform: none; opacity: 1; }
.hero-notif img { width: 30px; height: 30px; border-radius: 9px; }
.hero-notif strong { display: block; font-size: 11px; color: var(--ink-3); }
.hero-notif em { font-style: normal; font-weight: 800; }
.hero-float { position: absolute; z-index: 3; width: 60px; height: 60px; display: grid; place-items: center; border-radius: 20px; background: rgba(255, 255, 255, .9); box-shadow: 0 16px 30px -14px rgba(28, 26, 46, .4); animation: float 6s ease-in-out infinite; translate: calc(var(--px, 0) * var(--d, 1)) calc(var(--py, 0) * var(--d, 1)); }
.hero-float svg { width: 38px; height: 38px; }
.hero-float.f1 { left: 250px; top: 12px; rotate: -10deg; --d: 1.4; }
.hero-float.f2 { left: 268px; top: 212px; width: 50px; height: 50px; rotate: 8deg; animation-delay: -2s; --d: .8; }
.hero-float.f2 svg { width: 30px; height: 30px; }
.hero-float.f3 { left: 578px; top: 520px; rotate: 12deg; animation-delay: -4s; --d: 1.2; }
.hero-float.f4 { left: 290px; top: 548px; width: 52px; height: 52px; rotate: -6deg; animation-delay: -1s; --d: 1.6; }
.hero-float.f4 svg { width: 32px; height: 32px; }
.hero-floor { position: absolute; left: 30px; right: 20px; bottom: 6px; height: 40px; border-radius: 50%; background: radial-gradient(closest-side, rgba(28, 26, 46, .18), transparent); z-index: 0; }
@media (prefers-reduced-motion: reduce) {
  .hero-stage .post-card.show { animation: none; opacity: 1; }
  .hero-float, .hero-route path, .caret { animation: none; }
}

/* ---------- problem: six apps collapse into one poster ---------- */
body[data-page="landing"] .hero { min-height: 100vh; min-height: 100svh; display: grid; align-content: center; padding-bottom: 70px; }
.chaos { height: min(560px, 74vh); }
.funnel { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.funnel { overflow: hidden; }
.funnel circle { fill: none; stroke: rgba(40, 87, 166, .16); stroke-width: 2; stroke-dasharray: 4 10; }
.app { position: absolute; left: var(--x); top: var(--y); z-index: 1; display: grid; justify-items: center; gap: 6px; }
.app-ico { position: relative; width: 72px; height: 72px; border-radius: 22px; display: grid; place-items: center; box-shadow: 0 14px 26px -12px rgba(28, 26, 46, .45), inset 0 -4px 0 rgba(0, 0, 0, .12), inset 0 2px 0 rgba(255, 255, 255, .35); animation: app-bob 3.6s ease-in-out infinite; }
.app:nth-child(3) .app-ico { animation-delay: -1s; } .app:nth-child(4) .app-ico { animation-delay: -2s; } .app:nth-child(5) .app-ico { animation-delay: -.5s; } .app:nth-child(6) .app-ico { animation-delay: -1.6s; } .app:nth-child(7) .app-ico { animation-delay: -2.6s; }
@keyframes app-bob { 50% { transform: translateY(-6px) rotate(-3deg); } }
.app-ico svg { width: 46px; height: 46px; }
.app-ico b { position: absolute; top: -8px; right: -10px; min-width: 28px; height: 28px; padding: 0 7px; border-radius: 14px; display: grid; place-items: center; background: #ff3b30; color: #fff; font-size: 13px; font-weight: 900; border: 3px solid #fff; animation: badge-pulse 1.6s ease-in-out infinite; }
@keyframes badge-pulse { 50% { transform: scale(1.12); } }
.app small { font-size: 12.5px; font-weight: 800; color: var(--ink-2); background: rgba(255, 255, 255, .8); border-radius: 999px; padding: 1px 9px; }
.a-wa .app-ico { background: linear-gradient(160deg, #5be38e, #1fae57); }
.a-sms .app-ico { background: linear-gradient(160deg, #6cc4ff, #2582d8); }
.a-mail .app-ico { background: linear-gradient(160deg, #ff8a78, #e0443a); }
.a-diary .app-ico { background: linear-gradient(160deg, #e7b27a, #b07436); }
.a-note .app-ico { background: linear-gradient(160deg, #a58bff, #6545d6); }
.a-call .app-ico { background: linear-gradient(160deg, #62d68f, #269a5a); }
.chat { z-index: 1; font-size: 14px; max-width: 220px; }
.order-card.poster { width: min(380px, 94%); padding: 0; overflow: hidden; border-radius: 28px; box-shadow: 0 40px 80px -30px rgba(28, 26, 46, .55), 0 0 0 5px rgba(255, 201, 60, .55); }
.poster-top { display: flex; align-items: center; gap: 12px; padding: 16px 18px; background: linear-gradient(120deg, #2857a6, #7b5ce6); color: #fff; }
.poster-top img { border-radius: 12px; background: #fff; }
.poster-top small { display: block; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; opacity: .8; }
.poster-top strong { font-family: var(--font-display); font-size: 21px; }
.poster-top .order-badge { background: var(--sun); color: var(--ink); }
.poster ul { padding: 14px; gap: 8px; }
.poster li { display: grid; grid-template-columns: 46px 1fr; gap: 12px; align-items: center; padding: 8px 10px; border-radius: 16px; background: #faf7f1; }
.poster li b { display: block; font-size: 15.5px; }
.poster li small { font-size: 12.5px; color: var(--ink-3); font-weight: 700; }
.pi { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; }
.pi svg { width: 32px; height: 32px; }
.pi-do { background: var(--coral-soft); } .pi-bring { background: var(--mint-soft); } .pi-sign { background: var(--sun-soft); } .pi-know { background: var(--lilac-soft); }
.poster-foot { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 0 14px 14px; font-weight: 800; color: var(--ink-3); }
.poster-foot strong { color: var(--mint); font-family: var(--font-display); font-size: 17px; }

/* ---------- six headaches: before/after flip cards ---------- */
.flip-hint { margin-top: 10px; color: var(--ink-3); font-weight: 700; }
.solve-grid { gap: 18px; }
.solve { perspective: 1100px; padding: 0; background: none; border: 0; box-shadow: none; backdrop-filter: none; min-height: 264px; cursor: pointer; outline: none; }
.solve:hover { transform: none; }
.solve:focus-visible .face { box-shadow: 0 0 0 4px var(--blue); }
.flip { position: relative; height: 100%; min-height: 264px; transform-style: preserve-3d; transition: transform .9s cubic-bezier(.3, 1.4, .5, 1); }
.solve.flipped .flip { transform: rotateY(180deg); }
.face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 26px; padding: 14px; display: grid; grid-template-rows: 1fr auto; gap: 12px; }
.before-face { background: #f3efea; border: 1px solid #e6e0d8; }
.after-face { transform: rotateY(180deg); background: #fff; box-shadow: var(--shadow-2); }
.face p { display: flex; gap: 10px; align-items: center; font-family: var(--font-display); font-weight: 800; font-size: 19px; line-height: 1.15; padding: 0 4px 4px; }
.before-face p { color: var(--ink-3); }
.face .x, .face .ok { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; color: #fff; }
.face .x { background: #e25b4f; } .face .ok { background: var(--mint); }
.sv { position: relative; display: grid; place-items: center; border-radius: 18px; overflow: hidden; min-height: 160px; }
.before-face .sv { background: repeating-linear-gradient(-45deg, #ece6de 0 10px, #f3eee8 10px 20px); }
.after-face .sv { background: linear-gradient(160deg, #e9f8ef, #eaf2ff); }
.sv-ico { width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; background: #fff; box-shadow: var(--shadow-1); }
.sv-ico svg { width: 38px; height: 38px; }
.sv-ico.gone { opacity: .35; border: 2px dashed #b9b1a6; box-shadow: none; background: transparent; }
.sv .badge { position: absolute; top: 14px; right: 16px; background: #ff3b30; color: #fff; font-weight: 900; font-size: 14px; border-radius: 999px; padding: 3px 10px; border: 3px solid #fff; }
.sv .q { position: absolute; right: 22px; bottom: 12px; font-family: var(--font-display); font-size: 44px; color: #e25b4f; transform: rotate(12deg); }
.sv .yes { position: absolute; right: 18px; top: 12px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--mint); color: #fff; font-size: 18px; }
.sv-stack { display: grid; gap: 6px; transform: rotate(-4deg); }
.sv-stack i { font-style: normal; font-weight: 800; font-size: 13px; background: #fff; border-radius: 14px 14px 14px 4px; padding: 6px 12px; box-shadow: var(--shadow-1); }
.sv-stack i:nth-child(2) { background: #dcf8c6; margin-left: 30px; transform: rotate(5deg); }
.sv-mini, .sv-digest { width: 82%; display: grid; gap: 8px; background: #fff; border-radius: 16px; padding: 12px; box-shadow: var(--shadow-1); }
.sv-row { display: flex; gap: 8px; align-items: center; font-weight: 800; font-size: 14px; }
.sv-bag { position: relative; width: 150px; height: 118px; display: flex; gap: 8px; align-items: center; justify-content: center; border-radius: 34px; background: #2857a6; box-shadow: inset 0 -8px 0 rgba(0, 0, 0, .15); margin-top: 16px; }
.sv-bag::before { content: ""; position: absolute; top: -18px; left: 50%; width: 46px; height: 24px; margin-left: -23px; border: 6px solid #1c1a2e; border-bottom: 0; border-radius: 24px 24px 0 0; }
.sv-bag.empty { background: #8a96ad; }
.sv-bag .sv-ico { width: 48px; height: 48px; }
.sv-bag .sv-ico svg { width: 32px; height: 32px; }
.sv-bag .q { right: -30px; bottom: -8px; }
.sv-bag .yes { right: -14px; top: -14px; }
.sv-send .sv-ico, .sv-pings .sv-ico { width: 76px; height: 76px; }
.sv-send .sv-ico svg { width: 44px; height: 44px; color: var(--ink-3); }
.sv-send .q { right: -34px; bottom: -14px; }
.sv-send { position: relative; }
.sv-photo { position: relative; width: 70%; height: 120px; border-radius: 10px; background: repeating-linear-gradient(#fffdf6 0 22px, #cfe0f5 22px 24px); padding: 18px; display: grid; gap: 10px; align-content: start; box-shadow: var(--shadow-1); transform: rotate(-3deg); }
.sv-photo i { height: 7px; border-radius: 4px; background: #26356a; opacity: .6; }
.sv-photo i:nth-child(2) { width: 80%; } .sv-photo i:nth-child(3) { width: 55%; }
.stamp-mini { position: absolute; right: -10px; bottom: 8px; font-family: var(--font-display); font-size: 16px; color: #d64545; border: 3px solid #d64545; border-radius: 10px; padding: 2px 8px; transform: rotate(-12deg); background: rgba(255, 255, 255, .92); }
.sv-pings { position: relative; }
.sv-pings em { position: absolute; left: 50%; top: 50%; width: 80px; height: 80px; margin: -40px 0 0 -40px; border-radius: 50%; border: 3px solid #ff3b30; opacity: 0; animation: pings 1.8s ease-out infinite; }
.sv-pings em:nth-of-type(2) { animation-delay: .6s; } .sv-pings em:nth-of-type(3) { animation-delay: 1.2s; }
@keyframes pings { from { transform: scale(.8); opacity: .8; } to { transform: scale(2.2); opacity: 0; } }
.sv-pings .badge { top: -12px; right: -18px; }
.sv-digest { position: relative; }
.moon-mini { position: absolute; right: -12px; top: -22px; width: 40px; height: 40px; border-radius: 50%; box-shadow: inset -10px 4px 0 0 #ffd34d; }
.sv-digest .sv-row b { color: var(--blue); }
.sv-repeat { display: grid; gap: 6px; }
.sv-repeat i { font-style: normal; font-weight: 800; font-size: 13px; background: #fff; border-radius: 12px; padding: 6px 12px; box-shadow: var(--shadow-1); }
.sv-repeat i:nth-child(2) { margin-left: 16px; } .sv-repeat i:nth-child(3) { margin-left: 32px; }
.sv-fan { position: relative; width: 100%; height: 140px; }
.sv-fan .sv-post { position: absolute; left: 50%; top: 18px; transform: translateX(-50%); font-weight: 900; background: #fff; border-radius: 12px; padding: 8px 14px; box-shadow: var(--shadow-1); white-space: nowrap; }
.sv-fan .pill { position: absolute; top: 92px; }
.sv-fan .pill:nth-of-type(2) { left: 16%; } .sv-fan .pill:nth-of-type(3) { left: 50%; transform: translateX(-50%); } .sv-fan .pill:nth-of-type(4) { right: 16%; }
.sv-fan::before { content: ""; position: absolute; left: 24%; right: 24%; top: 56px; height: 34px; border: 3px dashed rgba(40, 87, 166, .45); border-bottom: 0; border-radius: 30px 30px 0 0; }
.kid-face { width: 86px; height: 86px; border-radius: 50%; display: grid; place-items: center; background: #b97a52; color: #1c1a2e; font-weight: 900; font-size: 22px; box-shadow: inset 0 -6px 0 rgba(0, 0, 0, .12); }
.kid-face.happy { background: #ffc93c; }
.sv-kid { position: relative; }
.sv-kid .q { right: -40px; bottom: -6px; }
.sv-kidmode { display: grid; justify-items: center; gap: 10px; }
.sv-tick { font-weight: 900; background: var(--mint); color: #fff; border-radius: 999px; padding: 6px 14px; }
@media (max-width: 640px) {
  .app-ico { width: 54px; height: 54px; border-radius: 17px; }
  .app-ico svg { width: 34px; height: 34px; }
  .app small { display: none; }
  .chat { font-size: 12.5px; max-width: 170px; }
  .solve, .flip { min-height: 240px; }
}
@media (prefers-reduced-motion: reduce) {
  .flip { transition: none; }
  .app-ico, .app-ico b, .sv-pings em, .funnel circle { animation: none; }
}
@media (max-width: 640px) { .chat:nth-of-type(n+6) { display: none; } }

/* ---------- the story in 3D (story3d.js) ---------- */
.story-gl { display: none; }
.story.cinema.gl .story-gl { display: block; position: absolute; inset: 0; z-index: 0; background: #cfe6fb; }
.story-gl canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; display: block; }
.gl-flash { position: absolute; inset: 0; background: #fff; opacity: var(--flash, 0); pointer-events: none; z-index: 1; }
.gl-tamil { position: absolute; left: 58%; top: 16%; z-index: 1; display: grid; justify-items: center; color: #fff; opacity: var(--dawn, 0); transform: translateY(calc((1 - var(--dawn, 0)) * 24px)); text-shadow: 0 4px 40px rgba(255, 120, 50, .75); pointer-events: none; }
.gl-tamil span { font-size: clamp(64px, 9vw, 132px); font-weight: 800; line-height: 1.05; }
.gl-tamil small { font-family: var(--font-display); font-weight: 800; font-size: 20px; letter-spacing: .35em; text-transform: uppercase; }
.story.cinema.gl .scenes { z-index: 1; width: min(1240px, calc(100% - 40px)); }
.story.cinema.gl .scene-art { display: none; }
.story.cinema.gl .scene { display: flex; align-items: center; padding: 80px 0 30px 34px; pointer-events: none; }
.story.cinema.gl .scene-cap { max-width: 370px; padding: 22px 24px 24px; border-radius: 26px; background: rgba(16, 18, 42, .6); -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3); color: #fff; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .55), inset 0 0 0 1px rgba(255, 255, 255, .12); pointer-events: auto; }
.story.cinema.gl .scene-cap h3 { font-size: clamp(1.5rem, 2.4vw, 2.1rem); margin: 12px 0 8px; }
.story.cinema.gl .scene-cap p { color: rgba(255, 255, 255, .82); font-size: 16px; }
.story.cinema.gl .time { background: var(--sun); color: var(--ink); }
.story.cinema.gl .story-dots { left: max(10px, calc(50% - 640px)); }
.story.cinema.gl .story-dots li { background: rgba(255, 255, 255, .5); box-shadow: 0 0 0 1px rgba(28, 26, 46, .15); }
.story.cinema.gl .story-dots li.on { background: #fff; }
@media (max-width: 1040px) {
  .story.cinema.gl .scene { align-items: flex-end; justify-content: center; padding: 100px 0 22px; }
  .story.cinema.gl .scene-cap { max-width: 560px; width: 100%; padding: 16px 18px; text-align: left; }
  .story.cinema.gl .scene-cap h3 { font-size: clamp(1.25rem, 4.6vw, 1.7rem); margin: 8px 0 4px; }
  .story.cinema.gl .scene-cap p { font-size: 14.5px; }
  .gl-tamil { left: 50%; top: 14%; transform: translate(-50%, calc((1 - var(--dawn, 0)) * 24px)); }
  .story.cinema.gl .story-dots { left: 50%; }
}
@media (max-height: 700px) {
  .story.cinema.gl .scene-cap p { display: none; }
}

/* ---------- parents: pictures first ---------- */
.pgrid { gap: 18px; }
.pcard { padding: 14px 14px 22px; display: grid; align-content: start; }
.pcard h3 { font-size: 21px; margin: 16px 8px 0; }
.pcard p { margin: 4px 8px 0; font-weight: 600; }
.pviz { position: relative; height: 150px; border-radius: 20px; display: grid; place-items: center; overflow: hidden; transition: transform .5s var(--spring); }
.pcard:hover .pviz { transform: scale(1.03); }
.v-list { background: linear-gradient(160deg, #eaf2ff, #f4f0ff); }
.v-bag { background: linear-gradient(160deg, #e6f7ec, #f3fbef); }
.v-digest { background: linear-gradient(160deg, #2a2f6e, #4a3f8f); }
.v-pin { background: linear-gradient(160deg, #f1ecff, #ffeef5); }
.v-hand { background: linear-gradient(160deg, #fff1e8, #fff8e2); }
.v-kids { background: linear-gradient(160deg, #ffeef5, #eef6ff); }
.mini-phone { width: 128px; height: 170px; margin-top: 44px; border-radius: 22px 22px 0 0; background: #fff; border: 6px solid #15172a; border-bottom: 0; padding: 12px 10px; display: grid; gap: 7px; align-content: start; box-shadow: 0 20px 30px -18px rgba(28, 26, 46, .5); }
.mp-head { font-family: var(--font-display); font-weight: 800; font-size: 12px; }
.mini-phone i { display: flex; align-items: center; gap: 6px; height: 24px; border-radius: 8px; background: #faf7f1; padding: 0 6px; }
.mini-phone i::after { content: ""; flex: 1; height: 5px; border-radius: 3px; background: #d9d4ea; }
.mini-phone .tag { font-size: 9px; padding: 1px 6px; }
.pcard:hover .mini-phone i { animation: row-in .5s var(--spring) both; }
.pcard:hover .mini-phone .r2 { animation-delay: .08s; } .pcard:hover .mini-phone .r3 { animation-delay: .16s; }
@keyframes row-in { from { transform: translateX(24px); opacity: 0; } }
.vb-bag { position: relative; display: flex; gap: 8px; padding: 22px 18px 16px; border-radius: 30px; background: #2857a6; box-shadow: inset 0 -7px 0 rgba(0, 0, 0, .15); margin-top: 14px; }
.vb-bag::before { content: ""; position: absolute; top: -16px; left: 50%; width: 40px; height: 22px; margin-left: -20px; border: 6px solid #1c1a2e; border-bottom: 0; border-radius: 22px 22px 0 0; }
.vb-bag svg { width: 40px; height: 40px; background: #fff; border-radius: 12px; padding: 4px; }
.vb-check { position: absolute; right: 18px; top: 16px; font-weight: 900; color: #fff; background: var(--mint); border-radius: 999px; padding: 3px 10px; font-size: 13px; letter-spacing: .1em; }
.vd-moon { position: absolute; right: 24px; top: 16px; width: 34px; height: 34px; border-radius: 50%; box-shadow: inset -9px 4px 0 0 #ffd34d; }
.vd-note { display: flex; gap: 10px; align-items: center; background: #fff; border-radius: 16px; padding: 10px 14px; box-shadow: 0 16px 30px -12px rgba(0, 0, 0, .5); font-size: 13.5px; font-weight: 700; animation: note-drop 3.2s var(--spring) infinite; }
.vd-note img { width: 30px; height: 30px; border-radius: 9px; }
.vd-note b { display: block; color: var(--blue); font-size: 12px; }
@keyframes note-drop { 0%, 12% { transform: translateY(-80px); opacity: 0; } 24%, 86% { transform: none; opacity: 1; } 100% { transform: translateY(-10px); opacity: 0; } }
.vp-lock { width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; background: #fff; color: var(--lilac); box-shadow: var(--shadow-1); }
.vp-lock svg { width: 30px; height: 30px; }
.vp-dots { position: absolute; bottom: 22px; display: flex; gap: 10px; }
.vp-dots i { width: 14px; height: 14px; border-radius: 50%; border: 2.5px solid var(--lilac); animation: pin-fill 2.4s steps(1) infinite; }
.vp-dots i:nth-child(2) { animation-delay: .3s; } .vp-dots i:nth-child(3) { animation-delay: .6s; } .vp-dots i:nth-child(4) { animation-delay: .9s; }
@keyframes pin-fill { 0% { background: transparent; } 40%, 80% { background: var(--lilac); } }
.vp-lock { margin-bottom: 26px; }
.vh-photo { width: 92px; height: 72px; border-radius: 8px; background: repeating-linear-gradient(#fffdf6 0 14px, #cfe0f5 14px 16px); box-shadow: var(--shadow-1); padding: 12px; display: grid; gap: 6px; align-content: start; transform: rotate(-6deg); margin-right: 80px; }
.vh-photo i { height: 5px; border-radius: 3px; background: #26356a; opacity: .6; }
.vh-photo i:nth-child(2) { width: 70%; }
.vh-plane { position: absolute; left: 50%; top: 40%; width: 36px; height: 36px; color: var(--blue); animation: plane-go 2.6s ease-in-out infinite; }
.vh-plane svg { width: 100%; height: 100%; }
@keyframes plane-go { 0% { transform: translate(-40px, 20px) scale(.6); opacity: 0; } 20% { opacity: 1; } 70% { transform: translate(30px, -26px) scale(1); opacity: 1; } 100% { transform: translate(50px, -36px) scale(.8); opacity: 0; } }
.vh-ok { position: absolute; right: 16px; bottom: 16px; font-family: var(--font-display); font-weight: 800; font-size: 15px; color: #d64545; border: 3px solid #d64545; border-radius: 10px; padding: 2px 8px; transform: rotate(-8deg); background: #fff; }
.v-kids { grid-auto-flow: row; gap: 10px; align-content: center; }
.vk { display: flex; align-items: center; gap: 10px; width: 180px; padding: 8px 12px; border-radius: 999px; background: #fff; font-weight: 800; font-size: 14px; box-shadow: var(--shadow-1); transition: transform .3s var(--spring); }
.vk b { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #ffd9a0; }
.vk.on { outline: 3px solid var(--blue); }
.pcard:hover .vk:first-child { transform: translateX(-8px); } .pcard:hover .vk:last-child { transform: translateX(8px); }

/* the evening, as three moments */
.evening { padding: 28px 30px 30px; background: radial-gradient(120% 140% at 100% 0%, #3a3f8f 0%, #1c1a2e 60%); }
.evening-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.evening-total { font-weight: 900; font-size: 14px; color: var(--ink); background: var(--sun); border-radius: 999px; padding: 6px 14px; }
.evening ol { margin-top: 26px; gap: 22px; }
.evening li { padding-top: 0; justify-items: center; text-align: center; gap: 12px; }
.evening li::before { display: none; }
.ev-clock { display: flex; align-items: center; gap: 10px; position: relative; z-index: 1; padding: 0 10px; background: transparent; }
.ev-clock b { font-size: 22px; }
.clock { width: 64px; height: 64px; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .35)); }
.clock .m { transform-box: view-box; transform-origin: 40px 40px; transform: rotate(0deg); transition: transform 1.6s cubic-bezier(.3, 1.3, .5, 1) .3s; }
.evening.is-in .clock .m { transform: rotate(var(--m)); }
.ev-phone { width: min(230px, 100%); height: 176px; border-radius: 26px; background: #fffbf5; border: 7px solid #0b0c18; padding: 14px 12px; display: grid; gap: 8px; align-content: start; color: var(--ink); text-align: left; box-shadow: 0 24px 40px -20px rgba(0, 0, 0, .7); transform: translateY(16px); opacity: .0; transition: transform .7s var(--spring), opacity .5s; }
.evening.is-in .ev-phone { transform: none; opacity: 1; }
.evening.is-in li:nth-child(2) .ev-phone { transition-delay: .25s; } .evening.is-in li:nth-child(3) .ev-phone { transition-delay: .5s; }
.ev-notif { display: flex; gap: 8px; align-items: center; background: #fff; border-radius: 14px; padding: 8px; box-shadow: var(--shadow-1); font-size: 12.5px; font-weight: 700; line-height: 1.2; }
.ev-notif img { width: 26px; height: 26px; border-radius: 8px; }
.ev-notif strong { display: block; font-size: 11px; color: var(--blue); }
.ev-row { display: flex; gap: 8px; align-items: center; font-size: 13px; font-weight: 800; padding: 6px 8px; background: #fff; border-radius: 10px; border: 1px solid var(--line); }
.ev-row .tag { font-size: 10px; }
.ev-phone.kid { background: #fff6dc; }
.ev-hi { font-family: var(--font-display); font-weight: 800; font-size: 22px; }
.ev-kid { display: grid; gap: 8px; justify-items: start; background: #fff; border-radius: 14px; padding: 10px; font-weight: 800; font-size: 14px; border: 2px solid var(--line); }
.ev-kid i { font-style: normal; font-size: 12.5px; color: #fff; background: var(--mint); border-radius: 999px; padding: 3px 10px; }
.ev-lock { font-size: 11.5px; font-weight: 800; color: var(--ink-3); text-align: center; }
.ev-phone.done { place-content: center; justify-items: center; background: linear-gradient(160deg, #e6f7ec, #fffbf5); }
.ev-bag { display: flex; gap: 6px; padding: 16px 14px 12px; border-radius: 22px; background: #2857a6; }
.ev-bag svg { width: 32px; height: 32px; background: #fff; border-radius: 9px; padding: 3px; }
.ev-all { font-weight: 900; color: #1b7543; font-size: 14px; }
.ev-cap { font-weight: 800; color: rgba(255, 255, 255, .85); }
.evening-line { top: 124px; left: 16%; right: 16%; }
.schools { display: grid; grid-template-columns: .8fr 1.2fr; gap: 26px; align-items: center; padding: 26px 28px; }
.sc-copy h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin: 4px 0 18px; }
.sc-flow { display: grid; grid-template-columns: 1fr auto 1fr; gap: 14px; align-items: center; }
.sc-sheet { display: grid; gap: 0; border-radius: 14px; overflow: hidden; background: #fff; border: 1.5px solid #cfe3d6; box-shadow: var(--shadow-1); font-size: 13.5px; }
.sc-file { font-size: 12px; font-weight: 900; color: #1b7543; background: #e6f7ec; padding: 6px 10px; }
.sc-sheet i { display: grid; grid-template-columns: 1fr 1fr; font-style: normal; border-top: 1px solid #e6efe9; transition: background .3s; }
.sc-sheet i b { padding: 7px 10px; font-weight: 700; } .sc-sheet i b + b { border-left: 1px solid #e6efe9; color: var(--ink-3); }
.sc-sheet i.hd b { font-weight: 900; color: var(--ink-3); font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; background: #f7faf8; }
.schools.is-in .sc-sheet i:nth-child(3) { animation: row-hi 3.6s ease 0s infinite; } .schools.is-in .sc-sheet i:nth-child(4) { animation: row-hi 3.6s ease .4s infinite; } .schools.is-in .sc-sheet i:nth-child(5) { animation: row-hi 3.6s ease .8s infinite; }
@keyframes row-hi { 0%, 30% { background: transparent; } 10%, 20% { background: #fff6d6; } }
.sc-arrow { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--sun); }
.sc-arrow svg { width: 22px; height: 22px; }
.schools.is-in .sc-arrow { animation: nudge 1.2s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateX(5px); } }
.sc-cards { display: grid; gap: 8px; }
.sc-card { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 14px; background: #fff; box-shadow: var(--shadow-1); font-weight: 800; font-size: 14px; transform: translateX(-20px) scale(.9); opacity: 0; transition: transform .6s var(--spring), opacity .4s; }
.schools.is-in .sc-card { transform: none; opacity: 1; }
.schools.is-in .sc-card:nth-child(2) { transition-delay: .4s; } .schools.is-in .sc-card:nth-child(3) { transition-delay: .8s; }
.schools.is-in .sc-card:nth-child(1) { transition-delay: .1s; }
.sc-card b { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--c); }
.sc-card i { margin-left: auto; font-style: normal; font-size: 12px; color: #1b7543; background: #e6f7ec; border-radius: 999px; padding: 2px 8px; }
@media (max-width: 1040px) {
  .schools { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .evening ol { grid-template-columns: 1fr; }
  .evening li { grid-template-columns: auto 1fr; text-align: left; justify-items: start; align-items: center; }
  .evening li .ev-cap { grid-column: 2; }
  .ev-clock { flex-direction: column; gap: 4px; grid-row: span 2; }
  .ev-clock b { font-size: 16px; }
  .ev-phone { width: 100%; height: auto; }
  .sc-flow { grid-template-columns: 1fr; justify-items: stretch; }
  .sc-arrow { justify-self: center; transform: rotate(90deg); }
}
@media (prefers-reduced-motion: reduce) {
  .vd-note, .vp-dots i, .vh-plane, .sc-arrow, .sc-sheet i { animation: none !important; }
}

/* ---------- kids' corner: four games ---------- */
.games { border-radius: 32px; background: rgba(255, 255, 255, .72); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: var(--shadow-2); padding: 14px; }
.game-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.game-tab { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 14px; border-radius: 20px; border: 2px solid transparent; background: #fff; font: inherit; font-weight: 900; font-size: 15.5px; color: var(--ink-2); cursor: pointer; box-shadow: 0 4px 0 #ece6dc; transition: transform .25s var(--spring), box-shadow .2s, border-color .2s, background .2s; }
.game-tab:hover { transform: translateY(-2px); }
.game-tab[aria-selected="true"] { color: var(--ink); border-color: var(--ink); background: #fffaf0; box-shadow: 0 4px 0 var(--ink); }
.gt-ico { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: var(--sun-soft); }
.game-tab:nth-child(2) .gt-ico { background: var(--lilac-soft); } .game-tab:nth-child(3) .gt-ico { background: var(--blue-soft); } .game-tab:nth-child(4) .gt-ico { background: var(--coral-soft); }
.gt-ico svg { width: 26px; height: 26px; }
.game-panel { margin-top: 14px; border-radius: 24px; background: #fffdf8; padding: 22px; min-height: 440px; }
.game-panel[hidden] { display: none; }
.games .bag-panel { margin: 0; box-shadow: none; background: transparent; padding: 0; }
.game-title { font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 800; }
.game-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.game-head .game-status { margin-left: auto; font-weight: 800; color: var(--ink-2); }
.mem-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; perspective: 900px; }
.mem-card { aspect-ratio: 3 / 4; padding: 0; border: 0; background: none; cursor: pointer; }
.mem-inner { position: relative; display: block; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .55s var(--spring); }
.mem-card.open .mem-inner, .mem-card.done .mem-inner { transform: rotateY(180deg); }
.mem-back, .mem-front { position: absolute; inset: 0; border-radius: 18px; display: grid; place-items: center; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.mem-back { background: repeating-linear-gradient(45deg, #2857a6 0 12px, #3565b8 12px 24px); color: #fff; font-family: var(--font-display); font-weight: 800; font-size: 34px; box-shadow: 0 5px 0 #1c3f7e; }
.mem-front { transform: rotateY(180deg); background: #fff; border: 2px solid var(--line); align-content: center; gap: 4px; }
.mem-front svg { width: 54%; height: auto; aspect-ratio: 1; }
.mem-front small { font-weight: 900; font-size: 13px; color: var(--ink-2); }
.mem-card.done .mem-front { border-color: var(--mint); background: #effaf3; }
.mem-card:focus-visible .mem-inner { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 18px; }
.catch-field { position: relative; height: 380px; border-radius: 22px; overflow: hidden; background: linear-gradient(180deg, #bfe3ff 0%, #e8f5ff 70%, #bfe6c9 70%, #9fd6ad 100%); touch-action: manipulation; user-select: none; }
.catch-field.miss { animation: miss .35s ease; }
@keyframes miss { 30% { box-shadow: inset 0 0 0 6px rgba(226, 91, 79, .6); } }
.catch-house { position: absolute; left: 50%; bottom: 14px; width: 110px; height: 70px; margin-left: -55px; background: #fff; border: 4px solid #1c1a2e; border-radius: 6px; display: grid; place-items: center; }
.catch-house::before { content: ""; position: absolute; left: -12px; right: -12px; top: -46px; height: 46px; background: var(--blue); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.catch-house b { font-family: var(--font-display); font-size: 22px; background: var(--blue); color: #fff; border-radius: 10px; padding: 0 10px; }
.catch-hud { position: absolute; left: 12px; right: 12px; top: 10px; display: flex; gap: 10px; justify-content: flex-end; }
.catch-hud span { background: rgba(255, 255, 255, .9); border-radius: 999px; padding: 4px 12px; font-weight: 800; font-size: 14px; }
.drop { position: absolute; left: 0; top: 0; display: flex; align-items: center; gap: 8px; padding: 8px 12px 8px 8px; border-radius: 16px; border: 0; background: #fff; box-shadow: 0 10px 20px -10px rgba(28, 26, 46, .45); font: inherit; font-weight: 800; font-size: 14px; cursor: pointer; will-change: transform; }
.drop svg { width: 34px; height: 34px; }
.drop b { display: block; font-size: 12px; color: #fff; background: #9aa0ad; border-radius: 8px; padding: 0 6px; width: max-content; }
.drop.good b { background: var(--blue); }
.drop span { display: grid; text-align: left; line-height: 1.25; }
.drop.hit { transition: opacity .3s, scale .3s; opacity: 0; scale: 1.3; }
.drop.no { background: #ffe1dc; }
.sort-cards { display: flex; flex-wrap: wrap; gap: 10px; min-height: 64px; margin-bottom: 18px; }
.sort-card { display: flex; align-items: center; gap: 8px; padding: 8px 14px 8px 8px; border-radius: 16px; border: 2px solid var(--line); background: #fff; font: inherit; font-weight: 800; font-size: 15px; cursor: grab; touch-action: none; transition: transform .2s var(--spring), border-color .2s, box-shadow .2s; }
.sort-card svg { width: 34px; height: 34px; }
.sort-card.picked { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(40, 87, 166, .2); transform: translateY(-4px); }
.sort-card.dragging { position: relative; z-index: 5; box-shadow: var(--shadow-2); transition: none; cursor: grabbing; }
.sort-card.shake, .sort-bin.shake { animation: shake .4s ease; }
@keyframes shake { 25% { translate: -6px 0; } 50% { translate: 6px 0; } 75% { translate: -3px 0; } }
.sort-bins { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.sort-bin { min-height: 200px; border-radius: 22px; border: 3px dashed var(--line-2); padding: 14px; display: grid; align-content: start; gap: 10px; cursor: pointer; transition: border-color .2s, background .2s, transform .25s var(--spring); }
.sort-bin .tag { justify-self: start; font-size: 14px; padding: 4px 12px; }
.sort-bin.over, .sort-bin:focus-visible { border-color: var(--blue); background: #eef4ff; transform: scale(1.02); outline: none; }
.sort-bin.gulp { animation: gulp .4s var(--spring); }
@keyframes gulp { 40% { transform: scale(1.05); } }
.b-do { background: #fff5f1; } .b-bring { background: #f1fbf5; } .b-sign { background: #fffaea; }
.bin-in { display: grid; gap: 8px; }
.bin-chip { display: flex; align-items: center; gap: 8px; padding: 6px 10px 6px 6px; border-radius: 12px; background: #fff; font-weight: 800; font-size: 14px; box-shadow: var(--shadow-1); animation: pop .4s var(--spring); }
.bin-chip svg { width: 26px; height: 26px; }
@media (max-width: 900px) {
  .game-tabs { grid-template-columns: repeat(2, 1fr); }
  .mem-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 640px) {
  .games { padding: 10px; border-radius: 24px; }
  .game-tab { font-size: 13.5px; padding: 10px; gap: 6px; }
  .gt-ico { width: 30px; height: 30px; }
  .game-panel { padding: 14px; }
  .mem-grid { gap: 8px; grid-template-columns: repeat(3, 1fr); }
  .sort-bins { grid-template-columns: 1fr; }
  .sort-bin { min-height: 110px; }
  .catch-field { height: 420px; }
  .game-head .game-status { margin-left: 0; width: 100%; order: 3; }
}

/* evening fixes: phone text dark, labels under the clocks */
.evening .ev-phone, .evening .ev-phone span { color: var(--ink); }
.evening .ev-phone .ev-lock { color: var(--ink-3); }
.evening .ev-phone .ev-all { color: #1b7543; }
.evening .ev-phone .ev-notif strong { color: var(--blue); }
.evening .ev-cap { color: rgba(255, 255, 255, .85); }
.ev-clock { flex-direction: column; gap: 6px; }
.ev-clock b { font-size: 18px; }
.evening-line { top: 118px; left: calc(16.6% + 10px); right: calc(16.6% + 10px); }
#bag { padding-top: 40px; }

/* post as a teacher: form, route, phone in one centred row */
#try .try-grid { grid-template-columns: minmax(0, 540px) 120px 300px; justify-content: center; gap: 22px; }
.try-route { position: relative; height: 220px; }
.try-route svg { width: 100%; height: 100%; overflow: visible; }
.try-route .tr-line { fill: none; stroke: rgba(40, 87, 166, .45); stroke-width: 3; stroke-dasharray: 3 10; stroke-linecap: round; animation: route 1.2s linear infinite; }
.tr-plane { position: absolute; left: 44px; top: 42px; width: 34px; height: 34px; color: var(--blue); animation: tr-fly 2.8s ease-in-out infinite; }
.tr-plane svg { width: 100%; height: 100%; }
@keyframes tr-fly { 0% { transform: translate(-40px, 90px) rotate(-10deg); opacity: 0; } 20% { opacity: 1; } 80% { transform: translate(52px, -8px) rotate(10deg); opacity: 1; } 100% { transform: translate(64px, 0) rotate(20deg); opacity: 0; } }
.tr-tag { position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); white-space: nowrap; font-weight: 900; font-size: 13px; color: #fff; background: var(--blue); border-radius: 999px; padding: 4px 12px; }
.tr-tag.other { background: var(--lilac); }
.try-right { display: grid; justify-items: center; }
@media (max-width: 1040px) {
  #try .try-grid { grid-template-columns: 1fr; }
  .try-route { display: none; }
}
@media (prefers-reduced-motion: reduce) { .tr-plane, .try-route .tr-line { animation: none; } }

/* ---------- pricing: pictures, not paragraphs ---------- */
.price-panel { align-items: center; }
.price-copy h3 { margin-bottom: 18px; }
.plan-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.pt { display: grid; justify-items: center; text-align: center; gap: 2px; padding: 16px 10px 14px; border-radius: 22px; background: #fff; box-shadow: 0 6px 0 rgba(84, 54, 196, .12); transition: transform .35s var(--spring); }
.pt:hover { transform: translateY(-4px) rotate(-1deg); }
.pt-ico { display: flex; height: 44px; align-items: center; margin-bottom: 6px; }
.pt-ico svg { width: 42px; height: 42px; }
.pt-ico.two svg + svg { margin-left: -12px; }
.pt b { font-family: var(--font-display); font-size: 26px; line-height: 1.1; }
.pt small { font-size: 13px; font-weight: 700; color: var(--ink-2); line-height: 1.25; }
.pt-year { background: linear-gradient(160deg, #e6f7ec, #fff); }
.pt-year b { color: #1b7543; }
.trial-row { display: flex; align-items: center; gap: 16px; margin-top: 18px; }
.trial-row .trial { flex: 1; margin-top: 0; }
.trial-row .piggy-wrap { margin-top: 0; flex: none; width: 130px; height: 120px; }
.trial-row .piggy { width: 130px; }
.trial-row .coin { left: 52px; }
@media (max-width: 640px) {
  .plan-tiles { grid-template-columns: 1fr 1fr; }
  .pt-year { grid-column: span 2; }
  .trial-row { flex-direction: column; align-items: stretch; }
  .trial-row .piggy-wrap { align-self: center; }
}

/* ---------- about: icons and a road to the future ---------- */
.value { display: grid; align-content: start; gap: 6px; }
.v-ico { width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center; background: rgba(255, 255, 255, .92); box-shadow: 0 10px 20px -10px rgba(0, 0, 0, .5); margin-bottom: 8px; transition: transform .45s var(--spring); }
.value:hover .v-ico { transform: rotate(-8deg) scale(1.08); }
.v-ico svg { width: 40px; height: 40px; }
.value h3 { margin: 4px 0 0; }
.roadmap .road { position: relative; padding-top: 110px; }
.road-svg { position: absolute; left: 0; top: 0; width: 100%; height: 120px; overflow: visible; }
.road-base { fill: none; stroke: #2e3470; stroke-width: 26; stroke-linecap: round; }
.road-dash { fill: none; stroke: #ffd98a; stroke-width: 3; stroke-dasharray: 14 14; stroke-linecap: round; opacity: .8; }
.road-bus { position: absolute; top: 18px; left: calc(var(--fill, 0) * (100% - 80px)); width: 80px; transform: translateY(calc(sin(var(--fill, 0) * 6.2rad) * -22px)); transition: left .2s linear; z-index: 1; }
.road-bus svg { width: 100%; animation: bus-bob .5s ease-in-out infinite alternate; }
@keyframes bus-bob { to { transform: translateY(-2px); } }
.roadmap ol::before { display: none; }
.roadmap li { padding-top: 0; justify-items: start; }
.roadmap li::before { display: none; }
.stop { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: rgba(255, 255, 255, .1); border: 1.5px solid rgba(255, 255, 255, .25); margin-bottom: 8px; }
.stop svg { width: 38px; height: 38px; }
.roadmap li.now .stop { background: rgba(255, 201, 60, .2); border-color: var(--sun); box-shadow: 0 0 0 6px rgba(255, 201, 60, .15); }
.roadmap li.now b { color: var(--sun); }
@media (max-width: 1040px) { .roadmap .road { padding-top: 0; } .road-svg, .road-bus { display: none; } }
@media (max-width: 1040px) {
  .roadmap ol { grid-template-columns: 1fr; gap: 18px; }
  .roadmap ol::after { content: ""; position: absolute; left: 26px; top: 30px; bottom: 30px; border-left: 3px dashed rgba(255, 217, 138, .45); }
  .roadmap li { grid-template-columns: 54px 1fr; column-gap: 14px; align-items: center; position: relative; z-index: 1; }
  .roadmap li .stop { grid-row: span 2; margin: 0; background: #262b66; }
}
.story.cinema.gl .story-gl { -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 110px); mask-image: linear-gradient(to bottom, transparent 0, #000 110px); }

/* problem: icons stay on the side columns, messages stay in the middle */
.chat { max-width: 190px; }
@media (max-width: 640px) { .chat { max-width: 140px; } .app { --x-fix: 0; } .app.a-sms, .app.a-mail, .app.a-call { left: calc(100% - 58px); } }
.v-ico { position: relative; width: 66px; height: 66px; }
.v-ico svg { width: 46px; height: 46px; }
.v-badge { position: absolute; right: -10px; bottom: -8px; font-style: normal; font-family: var(--font-display); font-weight: 800; font-size: 13px; color: var(--ink); background: var(--sun); border: 2px solid #fff; border-radius: 999px; padding: 1px 8px; }
.stop { width: 60px; height: 60px; background: rgba(255, 255, 255, .92); }
.stop svg { width: 44px; height: 44px; }
.roadmap li.now .stop { background: #fff6d6; }
@media (max-width: 1040px) { .roadmap li .stop { background: #fff; } }

/* ---------- hero devices, drawn properly ---------- */
.ps-icons { display: inline-flex; align-items: center; gap: 4px; color: var(--ink); }
.ps-icons svg { height: 11px; width: auto; fill: currentColor; }
.hero-stage .hero-phone::before, .hero-stage .hero-phone::after { content: ""; position: absolute; width: 4px; border-radius: 3px; background: #2a2d40; }
.hero-stage .hero-phone::before { right: -4px; top: 130px; height: 64px; }
.hero-stage .hero-phone::after { left: -4px; top: 110px; height: 40px; box-shadow: 0 56px 0 #2a2d40; }
.hero-laptop { left: 18px; top: 300px; width: 330px; transform: none; transform-origin: 50% 100%; translate: calc(var(--hs, 0) * -40px) calc(var(--hs, 0) * 24px); rotate: calc(var(--hs, 0) * -3deg); }
.hl-lid { position: relative; padding: 16px 12px 14px; border-radius: 18px 18px 6px 6px; background: #1a1c28; box-shadow: inset 0 0 0 1.5px #3b3e52, 0 30px 50px -28px rgba(28, 26, 46, .55); }
.hl-cam { position: absolute; top: 6px; left: 50%; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: #3f455c; box-shadow: 0 0 0 1.5px #262838; }
.hero-laptop .hl-screen { height: 190px; border: 0; border-radius: 5px; box-shadow: none; padding: 10px 12px; }
.hl-deck { position: relative; height: 30px; margin: 0 -22px; background: linear-gradient(180deg, #eef0f5, #c9ced9); clip-path: polygon(4% 0, 96% 0, 100% 100%, 0 100%); }
.hl-keys { position: absolute; left: 13%; right: 13%; top: 4px; height: 15px;
  background:
    repeating-linear-gradient(90deg, #a9b0c1 0 10px, transparent 10px 12.5px) 0 0 / 100% 3.5px no-repeat,
    repeating-linear-gradient(90deg, #a9b0c1 0 10.5px, transparent 10.5px 13px) 2px 5.5px / 100% 3.5px no-repeat,
    repeating-linear-gradient(90deg, #a9b0c1 0 11px, transparent 11px 13.5px) 4px 11px / 100% 3.5px no-repeat; }
.hero-laptop.keying .hl-keys { animation: keys .18s steps(2) infinite; }
@keyframes keys { 50% { filter: brightness(.8); } }
.hl-pad { position: absolute; left: 50%; bottom: 3px; width: 30%; height: 7px; margin-left: -15%; border-radius: 3px; background: rgba(28, 26, 46, .08); box-shadow: inset 0 0 0 1px rgba(28, 26, 46, .12); }
.hl-lip { position: relative; height: 9px; margin: 0 -24px; border-radius: 0 0 14px 14px; background: linear-gradient(180deg, #c3c8d4, #8e95a8); }
.hl-lip::after { content: ""; position: absolute; left: 50%; top: 0; width: 64px; height: 4px; margin-left: -32px; border-radius: 0 0 6px 6px; background: #a5acbd; }
.hero-laptop .hl-title span { clip-path: none; transition: none; }
.hero-laptop .caret { height: 22px; }

/* post as a teacher: make the typing spot obvious */
.title-field .input { transition: box-shadow .3s, border-color .3s; }
.title-field:not(.used) .input { animation: type-here 1.8s ease-in-out infinite; border-color: var(--blue); }
@keyframes type-here { 50% { box-shadow: 0 0 0 6px rgba(40, 87, 166, .18); } }
.type-hint { display: inline-flex; align-items: center; gap: 5px; margin-left: 8px; font-style: normal; font-size: 12.5px; font-weight: 900; color: #fff; background: var(--blue); border-radius: 999px; padding: 2px 10px; vertical-align: 1px; }
.type-hint svg { filter: brightness(10); }
.title-field.used .type-hint { opacity: 0; transition: opacity .3s; }
.title-field:not(.used) .type-hint svg { animation: pencil 0.8s ease-in-out infinite alternate; }
@keyframes pencil { to { transform: translateX(3px) rotate(-10deg); } }
.phone-draft { display: grid; gap: 4px; margin-bottom: 8px; padding: 10px 12px; border-radius: 14px; border: 2px dashed rgba(40, 87, 166, .45); background: #eef4ff; opacity: 0; max-height: 0; overflow: hidden; transform: translateY(-6px); transition: opacity .25s, max-height .3s, transform .3s; }
.phone-draft.show { opacity: 1; max-height: 90px; transform: none; }
.phone-draft small { display: flex; align-items: center; gap: 3px; font-size: 11.5px; font-weight: 800; color: var(--blue); }
.phone-draft small i { width: 5px; height: 5px; border-radius: 50%; background: var(--blue); animation: dots 1s ease-in-out infinite; }
.phone-draft small i:nth-child(2) { animation-delay: .15s; } .phone-draft small i:nth-child(3) { animation-delay: .3s; margin-right: 4px; }
@keyframes dots { 50% { transform: translateY(-3px); opacity: .5; } }
.phone-draft strong { font-size: 14px; overflow-wrap: anywhere; }
.phone-draft strong::after { content: ""; display: inline-block; width: 2px; height: 15px; margin-left: 2px; vertical-align: -2px; background: var(--blue); animation: caret 1s steps(1) infinite; }
/* evening clocks: the second hand ticks */
.clock .s { transform-box: view-box; transform-origin: 40px 40px; animation: tick 60s steps(60) infinite; }
.evening li:nth-child(2) .clock .s { animation-delay: -20s; } .evening li:nth-child(3) .clock .s { animation-delay: -40s; }
@keyframes tick { to { transform: rotate(360deg); } }
.clock .m { transition-duration: 2.4s; }
@media (prefers-reduced-motion: reduce) { .title-field .input, .clock .s, .type-hint svg { animation: none !important; } }
.games .bag-item { width: 20%; } .games .backpack { width: 40%; }

/* ---------- drop at 1B ---------- */
.drop-field { position: relative; height: 400px; border-radius: 22px; overflow: hidden; background: linear-gradient(180deg, #8cc8f5 0%, #d6ecff 62%, #9fd6ad 62%, #86c996 100%); touch-action: manipulation; user-select: none; cursor: pointer; }
.drop-field.miss { animation: miss .35s ease; }
.dg-sun { position: absolute; right: 40px; top: 30px; width: 56px; height: 56px; border-radius: 50%; background: radial-gradient(circle, #fffbe0 40%, #ffd66b 72%); box-shadow: 0 0 40px 14px rgba(255, 214, 107, .5); }
.dg-cloud { position: absolute; width: 120px; height: 34px; border-radius: 30px; background: #fff; opacity: .9; animation: dg-cloud 24s linear infinite; }
.dg-cloud::before { content: ""; position: absolute; left: 24px; top: -20px; width: 50px; height: 50px; border-radius: 50%; background: #fff; }
.dg-cloud.c1 { top: 60px; left: 10%; } .dg-cloud.c2 { top: 120px; left: 60%; animation-duration: 34s; transform: scale(.7); }
@keyframes dg-cloud { from { translate: 0 0; } to { translate: -60vw 0; } }
.dg-plane { position: absolute; left: 50%; top: 38px; width: 110px; margin-left: -55px; z-index: 3; animation: dg-bob 1.6s ease-in-out infinite alternate; }
.dg-plane svg { width: 100%; display: block; filter: drop-shadow(0 10px 10px rgba(28, 26, 46, .2)); }
.dg-plane.toss svg { animation: toss .3s ease; }
@keyframes dg-bob { to { transform: translateY(8px) rotate(-2deg); } }
@keyframes toss { 50% { transform: translateY(-8px) rotate(6deg); } }
.dg-letter-held { position: absolute; left: 44px; top: 50px; width: 26px; height: 18px; border-radius: 3px; background: #fff; border: 2.5px solid #1c1a2e; }
.dg-letter-held::after, .dg-letter::after { content: ""; position: absolute; left: 3px; right: 3px; top: 2px; height: 8px; border-left: 2px solid #1c1a2e; border-bottom: 2px solid #1c1a2e; transform: skewY(-24deg) rotate(-45deg) scale(.7); transform-origin: 0 0; }
.dg-letter { position: absolute; top: 96px; width: 28px; height: 20px; border-radius: 3px; background: #fff; border: 2.5px solid #1c1a2e; z-index: 2; box-shadow: 0 4px 0 rgba(28, 26, 46, .15); }
.dg-aim { position: absolute; left: calc(50% + 74px); transition: none; bottom: 150px; width: 40px; height: 12px; margin-left: -20px; border-radius: 50%; border: 2px dashed rgba(28, 26, 46, .35); z-index: 1; transition: border-color .15s, background .15s; }
.dg-aim.on-1b { border-color: var(--blue); background: rgba(40, 87, 166, .18); }
.dg-town { position: absolute; left: 0; right: 0; bottom: 42px; height: 150px; }
.dg-house { position: absolute; left: 0; bottom: 0; width: 104px; height: 128px; display: grid; justify-items: center; align-content: end; will-change: transform; }
.dg-roof { width: 104px; height: 46px; background: var(--roof); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.dg-wall { position: relative; width: 86px; height: 60px; background: #fff7e8; border: 3px solid #1c1a2e; border-top: 0; display: block; }
.dg-win { position: absolute; left: 12px; top: 14px; width: 20px; height: 18px; border-radius: 3px; background: #cfe3f5; border: 2.5px solid #1c1a2e; }
.dg-door { position: absolute; right: 12px; bottom: 0; width: 20px; height: 32px; border-radius: 6px 6px 0 0; background: #8a5a3c; border: 2.5px solid #1c1a2e; border-bottom: 0; }
.dg-house b { position: absolute; top: 20px; font-family: var(--font-display); font-size: 17px; color: var(--ink); background: #fff; border: 2.5px solid #1c1a2e; border-radius: 9px; padding: 0 7px; }
.dg-house.is-1b b { background: var(--blue); color: #fff; }
.dg-house.got .dg-win { background: #ffd34d; box-shadow: 0 0 16px 6px rgba(255, 211, 77, .8); }
.dg-house.got::after { content: "✓"; position: absolute; top: -18px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--mint); color: #fff; font-weight: 900; animation: pop .4s var(--spring); }
.dg-house.wrong::after { content: "✕"; position: absolute; top: -18px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #e25b4f; color: #fff; font-weight: 900; animation: pop .4s var(--spring); }
.drop-field .catch-hud { z-index: 4; }
.dg-drop { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); z-index: 4; display: inline-flex; align-items: center; gap: 8px; padding: 8px 22px; border: 0; border-radius: 999px; background: var(--ink); color: #fff; font: inherit; font-weight: 900; font-size: 16px; cursor: pointer; box-shadow: 0 5px 0 #000; }
.dg-drop:active { transform: translate(-50%, 3px); box-shadow: 0 2px 0 #000; }
.dg-drop:disabled { opacity: .45; cursor: default; }
.dg-drop kbd { font: inherit; font-size: 11px; background: rgba(255, 255, 255, .18); border-radius: 6px; padding: 1px 6px; }
@media (max-width: 640px) { .drop-field { height: 380px; } .dg-drop kbd { display: none; } }
@media (prefers-reduced-motion: reduce) { .dg-plane, .dg-cloud { animation: none; } }

/* landing ground, rebuilt: everything stands on one ground line */
.lf-far { height: 100%; }
.lf-main { height: 100%; }
.lf-hill { fill: #1c2552; }
.lf-tree { fill: #131a3f; }
.lf-walk { fill: #2c3368; }
.lf-road { fill: #171d45; }
.lf-grass { fill: #0f1433; }
.landfall .win-lit rect { fill: #ffd98a; filter: drop-shadow(0 0 6px rgba(255, 217, 138, .85)); }
.landfall .lf-lamp .lit { fill: #fff3c4; }
.landfall .lf-lamp circle { animation: lamp-glow 3s ease-in-out infinite alternate; }
@keyframes lamp-glow { to { opacity: .7; } }
/* crows: bigger, real silhouette, both wings beat */
.crow { width: 58px; }
.crow .crow-w, .crow .crow-w2 { transform-box: fill-box; transform-origin: 50% 100%; animation: flap .42s ease-in-out infinite alternate; }
.crow .crow-w2 { animation-delay: -.06s; }
.crow.c2 { width: 50px; } .crow.c3 { width: 62px; } .crow.c4 { width: 46px; } .crow.c5 { width: 40px; } .crow.c6 { width: 48px; } .crow.c7 { width: 38px; }
@keyframes flap { from { transform: scaleY(1); } to { transform: scaleY(-.7); } }

/* ---------- Kuru says hello when the page opens ---------- */
.kuru-intro { display: none; }
html.intro .kuru-intro { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; pointer-events: none; background: radial-gradient(120% 90% at 50% 40%, #fff6e0 0%, #cfe6ff 55%, #9fcdf5 100%); clip-path: circle(150% at var(--kx, 50%) var(--ky, 50%)); transition: clip-path .85s cubic-bezier(.7, 0, .3, 1); }
html.intro .kuru-intro.open { clip-path: circle(0 at var(--kx, 50%) var(--ky, 50%)); }
.ki-inner { display: grid; justify-items: center; gap: 14px; }
.ki-kuru { width: min(200px, 44vw); height: auto; animation: ki-pop .7s var(--spring) both, ki-wave 1.2s ease-in-out .7s 2 alternate; }
@keyframes ki-pop { from { transform: translateY(80px) scale(.3); opacity: 0; } }
@keyframes ki-wave { to { transform: rotate(-8deg) translateY(-6px); } }
.ki-bubble { position: relative; display: grid; justify-items: center; gap: 2px; padding: 14px 24px; border-radius: 22px; background: #fff; box-shadow: var(--shadow-2); animation: ki-pop .6s var(--spring) .35s both; }
.ki-bubble::before { content: ""; position: absolute; top: -10px; left: 50%; width: 20px; height: 20px; margin-left: -10px; background: #fff; transform: rotate(45deg); border-radius: 4px; }
.ki-bubble span { position: relative; font-family: var(--font-display); font-weight: 800; font-size: clamp(26px, 4vw, 38px); }
.ki-bubble small { position: relative; font-weight: 700; color: var(--ink-2); font-size: 15px; }
.kuru-intro.open .ki-inner { transform: scale(.6); opacity: 0; transition: transform .6s ease, opacity .5s ease; }
/* the hero bubble can offer the tour */
.hero-stage .hero-kuru .bubble.kuru-hi { width: 210px; bottom: 150px; left: 0; right: auto; }
.kuru-hi p { margin: 0; }
.kuru-hi-actions { display: flex; gap: 6px; margin-top: 10px; }
.kuru-hi-actions[hidden] { display: none; }
.kuru-hi-actions button { flex: 1; border: 0; border-radius: 999px; padding: 7px 10px; font: inherit; font-size: 13px; font-weight: 900; cursor: pointer; }
.hi-go { background: var(--blue); color: #fff; animation: hi-pulse 1.6s ease-in-out infinite; }
.hi-later { background: #f1ede6; color: var(--ink-2); }
@keyframes hi-pulse { 50% { box-shadow: 0 0 0 6px rgba(40, 87, 166, .2); } }
.hero-kuru .bubble.kuru-hi.hide { opacity: 0; transform: translateY(6px) scale(.9); pointer-events: none; }

/* hero Kuru turns toward the pointer too */
.hero-kuru .kuru { transform: perspective(500px) rotateY(var(--ly, 0deg)) rotateX(var(--lx, 0deg)); transition: transform .3s ease-out; }
.dg-drop { left: 14px; top: 12px; bottom: auto; transform: none; }
.dg-drop:active { transform: translateY(3px); }
.phone-draft:not(.show) { padding: 0 12px; border-width: 0; margin-bottom: 0; }

/* pricing: illustrative comparison price, crossed out, with the discount */
.was-line { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.was { font-family: var(--font-display); font-weight: 800; font-size: 26px; color: var(--ink-3); text-decoration-thickness: 3px; text-decoration-color: #e25b4f; }
.off-badge { font-weight: 900; font-size: 13px; color: #fff; background: #e25b4f; border-radius: 999px; padding: 4px 10px; transform: rotate(-4deg); }
.price-line { margin-top: 0; }
.pt b s { display: block; font-size: 15px; color: var(--ink-3); text-decoration-color: #e25b4f; text-decoration-thickness: 2px; }
/* trial: a real week */
.trial { display: grid; gap: 12px; padding: 14px 16px; }
.trial-text strong { display: block; font-family: var(--font-display); font-size: 18px; }
.trial-text span { color: var(--ink-2); font-size: 14px; font-weight: 600; }
.trial-text b { color: var(--ink); }
.trial-days { display: grid; grid-template-columns: repeat(8, 1fr); gap: 5px; }
.td { display: grid; justify-items: center; padding: 5px 0 6px; border-radius: 10px; background: #f3effa; border: 1.5px solid transparent; line-height: 1.1; opacity: .45; transform: translateY(6px); transition: opacity .3s, transform .4s var(--spring), background .3s; }
.td.on { opacity: 1; transform: none; background: #e6f7ec; border-color: #bfe6cc; }
.td.today.on { background: var(--mint); border-color: var(--mint); color: #fff; }
.td.today.on small, .td.today.on i { color: rgba(255, 255, 255, .85); }
.td.paid.on { background: #fff6d6; border-color: #ffe08a; }
.td small { font-size: 10px; font-weight: 800; color: var(--ink-3); text-transform: uppercase; }
.td b { font-family: var(--font-display); font-size: 17px; }
.td i { font-style: normal; font-size: 10px; font-weight: 800; color: var(--ink-3); }
.trial-row .trial { flex: 1 1 auto; min-width: 0; }
@media (max-width: 640px) { .trial-days { grid-template-columns: repeat(4, 1fr); } }

/* problem: every message looks like the app it came from */
.chat[class*="m-"] { max-width: 230px; font-size: 14px; line-height: 1.3; }
.chat[class*="m-"]::before { display: none; }
.chat .who { display: block; font-style: normal; font-size: 11.5px; font-weight: 900; margin-bottom: 2px; }
.chat .meta { display: inline-flex; align-items: center; gap: 3px; float: right; margin: 6px 0 -4px 10px; font-style: normal; font-size: 10.5px; font-weight: 700; color: #8a8f98; }
.chat .ticks { width: 16px; height: 10px; }
.m-wa { background: #fff; border-radius: 4px 16px 16px 16px; box-shadow: 0 1px 1px rgba(0, 0, 0, .12), var(--shadow-1); }
.m-wa.m-out { background: #d9fdd3; border-radius: 16px 4px 16px 16px; }
.m-sms { background: #e9e9eb; color: #111; border-radius: 18px 18px 18px 5px; }
.m-sms .who { color: #6b6f78; letter-spacing: .05em; }
.m-list, .m-mail, .m-call { display: flex !important; align-items: center; gap: 10px; background: #fff; border-radius: 14px; padding: 9px 12px !important; }
.m-list .ln, .m-mail .ln, .m-call .ln { display: grid; line-height: 1.2; min-width: 0; }
.m-list b, .m-mail b, .m-call b { font-size: 13.5px; }
.m-list small, .m-mail small, .m-call small { font-size: 11.5px; color: #6b6f78; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-list .av { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #25d366; color: #fff; font-size: 12px; font-weight: 900; }
.m-list .cnt { margin-left: auto; flex: none; background: #25d366; color: #fff; font-size: 11px; font-weight: 900; border-radius: 999px; padding: 2px 7px; }
.m-mail { border-left: 4px solid #ea4a3c; }
.m-mail .env { flex: none; width: 30px; height: 22px; border-radius: 4px; background: linear-gradient(160deg, transparent 49%, #ea4a3c 50%, transparent 56%) top / 100% 60% no-repeat, linear-gradient(20deg, transparent 49%, #ea4a3c 50%, transparent 56%) top / 100% 60% no-repeat, #ffe3df; border: 2px solid #ea4a3c; }
.m-call .ph { flex: none; width: 32px; height: 32px; border-radius: 50%; background: #ffe3e3 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23e53935' d='M20 15.4c-1.2 0-2.4-.2-3.5-.6a1 1 0 0 0-1 .2l-1.6 2c-2.8-1.4-5.5-3.9-6.9-6.8l2-1.7c.3-.3.3-.7.2-1-.4-1.1-.6-2.3-.6-3.5 0-.5-.4-1-1-1H4.2C3.6 3 3 3.2 3 4c0 9.3 7.7 17 17 17 .7 0 1-.6 1-1.2v-3.4c0-.5-.5-1-1-1Z'/%3E%3C/svg%3E") center / 18px no-repeat; }
.m-call b { color: #e53935; }
.m-circ { background: #fffdf5; border: 1px solid #e5dcc4; border-radius: 4px; padding: 12px 14px 10px !important; box-shadow: 2px 3px 0 #efe6cf, var(--shadow-1); font-family: Georgia, serif; font-weight: 700; }
.m-circ .stamp-c { display: inline-block; font-style: normal; font-family: var(--font-body); font-size: 10.5px; font-weight: 900; letter-spacing: .08em; color: #7b5ce6; border: 1.5px solid #7b5ce6; border-radius: 4px; padding: 1px 6px; margin-bottom: 6px; }
.m-circ .sig { display: block; text-align: right; font-size: 11px; color: #8a7f66; margin-top: 4px; }
.m-diary { position: relative; background: repeating-linear-gradient(#fffef6 0 21px, #bcd3ee 21px 22px); border-left: 3px solid #f1a1a1; border-radius: 3px; padding: 8px 14px 10px 16px !important; box-shadow: var(--shadow-1); overflow: hidden; }
.m-diary .hand { font-family: "Segoe Print", "Comic Sans MS", cursive; font-weight: 700; font-size: 15px; color: #25408f; filter: blur(.6px); }
.m-diary .smudge { position: absolute; right: 10px; bottom: 6px; width: 60px; height: 26px; border-radius: 50%; background: radial-gradient(closest-side, rgba(60, 90, 160, .28), transparent); }
@media (max-width: 640px) { .chat[class*="m-"] { max-width: 150px; font-size: 12px; } .m-list small, .m-mail small, .m-call small { display: none; } }

/* the jet climbs out from behind the clouds, levels off and eases down again */
.airliner { top: 0; width: 190px; animation: jet-path 46s linear -9s infinite; }
.airliner svg { animation: none; transform-origin: 60% 50%; }
@keyframes jet-path {
  0% { translate: -260px 24vh; rotate: -9deg; scale: .78; }
  18% { translate: 14vw 13vh; rotate: -6deg; scale: .86; }
  40% { translate: 42vw 7vh; rotate: -1.5deg; scale: .95; }
  62% { translate: 70vw 6vh; rotate: 1deg; scale: 1; }
  82% { translate: 92vw 9vh; rotate: 3.5deg; scale: 1.05; }
  100% { translate: calc(100vw + 260px) 14vh; rotate: 5deg; scale: 1.1; }
}
.contrail { right: 90%; top: 52%; width: 55vw; height: 4px; background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .9) 85%, rgba(255, 255, 255, .5)); filter: blur(1.2px); transform-origin: 100% 50%; animation: trail 3s ease-in-out infinite alternate; }
.contrail::after { left: 25%; top: 7px; height: 3px; }
@keyframes trail { to { transform: scaleY(1.6); opacity: .85; } }
.airliner .strobe { animation: strobe 1.4s steps(1) infinite; }
.airliner .strobe.s2 { animation-delay: -.7s; }
@keyframes strobe { 0%, 70% { opacity: 1; } 71%, 100% { opacity: .15; } }
@media (max-width: 700px) { .airliner { width: 120px; } }
@media (prefers-reduced-motion: reduce) { .airliner, .contrail, .airliner .strobe { animation: none !important; } .airliner { translate: 30vw 9vh; } }

/* hero Kuru in 3D (kuru3d.js); the SVG stays as the fallback */
.kuru-btn { position: relative; }
.kuru-btn .kuru-3d { display: block; width: 100%; height: auto; }
.kuru-btn.is-3d > svg.kuru { display: none; }
.m-circ .stamp-c { display: table; }
.m-wa .meta { float: none; display: flex; justify-content: flex-end; margin: 2px 0 -4px; }

/* drop at 1B: each drop is a little school message */
.dg-string { position: absolute; left: 54px; top: 46px; width: 2px; height: 22px; background: #1c1a2e; }
.dg-note, .dg-letter { display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px 4px 4px; border-radius: 10px; background: #fff; border: 2.5px solid #1c1a2e; box-shadow: 0 4px 0 rgba(28, 26, 46, .15); white-space: nowrap; }
.dg-note { position: absolute; left: 10px; top: 66px; animation: note-sway 1.2s ease-in-out infinite alternate; transform-origin: 50% 0; }
@keyframes note-sway { from { rotate: -5deg; } to { rotate: 5deg; } }
.dg-note svg, .dg-letter svg { width: 22px; height: 22px; flex: none; }
.dg-note span, .dg-letter span { display: grid; line-height: 1.05; font-size: 11.5px; font-weight: 800; color: var(--ink); }
.dg-note b, .dg-letter b { font-size: 9px; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; color: var(--coral); }
.dg-letter { position: absolute; top: 100px; z-index: 2; width: auto; height: auto; }
.dg-letter::after { display: none; }
.dg-pop { position: absolute; bottom: 196px; z-index: 3; transform: translateX(-50%); font-weight: 900; font-size: 13px; color: #fff; background: var(--mint); border-radius: 999px; padding: 4px 12px; white-space: nowrap; box-shadow: var(--shadow-1); animation: dg-pop 1.4s ease-out forwards; }
.dg-pop.bad { background: #e25b4f; }
@keyframes dg-pop { 0% { opacity: 0; translate: 0 10px; scale: .7; } 15% { opacity: 1; translate: 0 0; scale: 1; } 75% { opacity: 1; } 100% { opacity: 0; translate: 0 -40px; } }
@media (prefers-reduced-motion: reduce) { .dg-note { animation: none; } }

/* the jet flies above the page (below the menu) so its naalai banner can be clicked */
.airliner-layer { position: fixed; left: 0; top: 0; width: 100%; height: 40vh; z-index: 40; pointer-events: none; overflow: hidden; --jy: 1; }
.airliner-layer.gone .jet-banner { pointer-events: none; }
@keyframes jet-path {
  0% { translate: -560px calc(24vh * var(--jy)); rotate: -9deg; scale: .78; }
  18% { translate: 14vw calc(13vh * var(--jy)); rotate: -6deg; scale: .86; }
  40% { translate: 42vw calc(7vh * var(--jy)); rotate: -1.5deg; scale: .95; }
  62% { translate: 70vw calc(6vh * var(--jy)); rotate: 1deg; scale: 1; }
  82% { translate: 92vw calc(9vh * var(--jy)); rotate: 3.5deg; scale: 1.05; }
  100% { translate: calc(100vw + 560px) calc(14vh * var(--jy)); rotate: 5deg; scale: 1.1; }
}
.airliner:hover { animation-play-state: paused; }
.airliner:hover .jet-hi { animation-play-state: paused; }
.airliner .contrail { top: 70%; width: 45vw; }
.jet-banner { position: absolute; right: 96%; top: 6%; display: flex; align-items: center; pointer-events: auto; text-decoration: none; }
.jb-rope { width: 70px; height: 2px; background: repeating-linear-gradient(90deg, #6b7080 0 5px, transparent 5px 8px); order: 2; transform: rotate(8deg); transform-origin: 100% 50%; }
.jb-cloth { order: 1; display: flex; align-items: center; gap: 7px; padding: 5px 12px 5px 6px; border-radius: 4px 12px 12px 4px; background: #fff; border: 2px solid #2857a6; box-shadow: 0 8px 18px -8px rgba(28, 26, 46, .5); white-space: nowrap; font-size: 13px; transform-origin: 100% 50%; animation: flutter .9s ease-in-out infinite alternate; }
.jb-cloth img { border-radius: 7px; }
.jb-cloth b { font-family: var(--font-display); font-weight: 800; color: var(--ink); }
.jb-cloth em { font-style: normal; font-weight: 900; color: #fff; background: var(--coral); border-radius: 999px; padding: 2px 9px; font-size: 12px; }
.jet-banner:hover .jb-cloth, .jet-banner:focus-visible .jb-cloth { border-color: var(--coral); transform: scale(1.06); animation-play-state: paused; }
@keyframes flutter { 0% { transform: skewY(-2deg) translateY(-1px); } 50% { transform: skewY(1.5deg); } 100% { transform: skewY(-1deg) translateY(1px); } }
.jet-hi { position: absolute; left: 78%; top: -40%; padding: 5px 11px; border-radius: 14px 14px 14px 4px; background: #fff; color: var(--ink); font-weight: 900; font-size: 13px; white-space: nowrap; box-shadow: var(--shadow-1); pointer-events: none; animation: jet-hi 5s ease-in-out infinite; }
@keyframes jet-hi { 0%, 8% { opacity: 0; transform: translateY(6px) scale(.6); } 16%, 60% { opacity: 1; transform: none; } 70%, 100% { opacity: 0; transform: translateY(-4px) scale(.9); } }
@media (max-width: 700px) {
  .airliner-layer { --jy: .5; height: 22vh; }
  .jb-rope { width: 36px; }
  .jb-cloth { font-size: 11px; padding: 3px 8px 3px 4px; }
  .jb-cloth img { width: 20px; height: 20px; }
  .jb-cloth em { display: none; }
  .jet-hi { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) { .jet-hi, .jb-cloth { animation: none !important; } .jet-hi { opacity: 1; } }

/* photos of Ayaan's notebook show his handwriting, not grey bars */
.hw { font-family: "Segoe Print", "Comic Sans MS", cursive; color: #26356a; line-height: 1.15; }
.hw em, .hw i { display: block; height: auto; background: none; opacity: 1; font-style: normal; font-weight: 700; white-space: nowrap; }
.hw em { color: #c2185b; }
.sv-photo.hw { padding: 12px 14px; gap: 4px; background: repeating-linear-gradient(#fffdf6 0 21px, #cfe0f5 21px 22px); background-position: 0 6px; }
.sv-photo.hw em, .sv-photo.hw i { font-size: 13px; }
.vh-photo.hw { padding: 8px 9px; gap: 2px; background-position: 0 3px; }
.vh-photo.hw em, .vh-photo.hw i { font-size: 9.5px; width: auto; }

/* ---------- hero headline: letters drop in, wave now and then, hop on hover ---------- */
.hero-title { position: relative; }
.hero-title .wd { display: inline-block; white-space: nowrap; }
.hero-title .ch { display: inline-block; transform-origin: 50% 90%; animation: ch-in .7s var(--spring) both; animation-delay: calc(.25s + var(--i, 0) * 38ms); transition: transform .3s var(--spring), color .3s; }
@keyframes ch-in { from { opacity: 0; transform: translateY(-.6em) rotate(-12deg) scale(.6); } }
.hero-title.wave .ch { animation: ch-wave .9s ease-in-out both; animation-delay: calc(var(--i, 0) * 45ms); }
@keyframes ch-wave { 30% { transform: translateY(-.16em) rotate(-4deg); } 60% { transform: translateY(.03em); } }
.hero-title .ch:hover { transform: translateY(-.14em) rotate(-6deg) scale(1.08); color: var(--coral); }
.hero-title .hl .ch { color: var(--blue); }
.hero-title .hl .ch:hover { color: var(--coral); }
.ht-pop { position: absolute; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 16px; background: #fff; box-shadow: var(--shadow-1); pointer-events: none; animation: ht-pop 7s ease-in-out 1.6s infinite; opacity: 0; }
.ht-pop svg { width: 32px; height: 32px; }
.ht-pop { right: 4%; top: -34px; }
.ht-pop.p2 { right: auto; left: 54%; top: auto; bottom: -.1em; width: 40px; height: 40px; animation-delay: 5s; }
.ht-pop.p2 svg { width: 26px; height: 26px; }
@keyframes ht-pop { 0%, 60%, 100% { opacity: 0; transform: translateY(10px) scale(.4) rotate(-20deg); } 66%, 90% { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .hero-title .ch, .hero-title.wave .ch, .ht-pop { animation: none !important; } .ht-pop { display: none; } }
/* "school" turns through the 9 languages the phone app speaks; the words share one grid cell */
.hero-title .rot { display: inline-grid; transition: width .55s var(--spring); }
.hero-title .rot-w { grid-area: 1 / 1; justify-self: start; white-space: nowrap; color: var(--blue); transition: opacity .35s ease, transform .55s var(--spring), filter .35s ease; }
.hero-title .rot-w:not(.is-on) { opacity: 0; transform: translateY(.5em) rotateX(-70deg) scale(.9); filter: blur(5px); pointer-events: none; }
.hero-title .rot-w.is-out { transform: translateY(-.5em) rotateX(70deg) scale(.9); }
.hero-title .rot-w:not([lang="en"]) { font-family: "Nirmala UI", "Noto Sans Tamil", "Noto Sans Devanagari", "Noto Sans Gujarati", "Noto Sans Telugu", "Noto Sans Kannada", "Noto Sans Malayalam", "Noto Sans Bengali", "Kohinoor Devanagari", "Tamil Sangam MN", system-ui, sans-serif; font-size: .8em; font-weight: 700; letter-spacing: 0; }
.hero-langs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 10px 0 18px; font-size: 14px; }
.hero-langs b { font-weight: 800; margin-right: 4px; }
.lang-list { display: flex; flex-wrap: wrap; gap: 6px; }
.lang-list span { padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .7); border: 1.5px solid rgba(28, 26, 46, .12); font-weight: 700; line-height: 1.3; transition: background .3s, color .3s, transform .3s var(--spring); }
.lang-list span.on { background: var(--blue); border-color: var(--blue); color: #fff; transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) { .hero-title .rot, .hero-title .rot-w, .lang-list span { transition: none; } }
@media (max-width: 760px) { .hero-langs, .lang-list { justify-content: center; } }


/* ---------- the jet's cloth banner ---------- */
.jet-banner { right: 94%; top: -8%; width: 230px; }
.jb-svg { width: 100%; display: block; overflow: visible; filter: drop-shadow(0 8px 10px rgba(28, 26, 46, .25)); transform-origin: 100% 50%; transition: transform .25s var(--spring); }
.jet-banner:hover .jb-svg { transform: scale(1.06); }
.jb-rope { display: none; }
@media (max-width: 700px) { .jet-banner { width: 150px; } }

/* ---------- the problem: each message sits by its app, one card style ---------- */
.chat.mc { max-width: 205px; padding: 8px 12px 10px !important; border-radius: 14px; background: #fff; box-shadow: 0 10px 22px -12px rgba(28, 26, 46, .35), 0 0 0 1px rgba(28, 26, 46, .04); border-left: 4px solid var(--app); font-size: 14px; line-height: 1.3; font-weight: 700; color: var(--ink); }
.chat.mc.r { left: auto; right: var(--rx); }
.chat.mc::before { display: none; }
.mc-top { display: flex; align-items: center; gap: 6px; margin-bottom: 3px; font-style: normal; font-size: 11px; font-weight: 900; color: var(--app); }
.mc-top small { margin-left: auto; font-size: 10px; font-weight: 700; color: #8a8f98; white-space: nowrap; }
.mc-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--app); flex: none; }
.mc-strong { font-weight: 900; }
.c-wa { --app: #1fae57; } .c-sms { --app: #2582d8; } .c-mail { --app: #e0443a; } .c-diary { --app: #b07436; } .c-circ { --app: #6545d6; } .c-call { --app: #269a5a; }
.c-wa { background: linear-gradient(#fff, #f3fcf5); }
.c-diary .hand { font-family: "Segoe Print", "Comic Sans MS", cursive; color: #25408f; font-size: 13.5px; }
.c-diary { background: repeating-linear-gradient(#fffef6 0 19px, #d6e3f3 19px 20px); }
.c-circ { background: #fffdf5; font-family: Georgia, serif; }
.c-circ .mc-top { font-family: var(--font-body); }
.c-call .mc-strong { color: #e53935; }
@media (max-width: 640px) { .chat.mc { max-width: 132px; font-size: 11.5px; padding: 6px 8px 7px !important; } .mc-top small { display: none; } .chat.mc.r { right: 58px; } .chat.mc:not(.r) { left: 58px; } }

/* ---------- post as a teacher: a proper arrow ---------- */
.try-route .tr-line { fill: none; stroke: #2857a6; stroke-width: 3; stroke-dasharray: 2 9; stroke-linecap: round; animation: route 1.2s linear infinite; }
.try-route .tr-plane, .try-route > svg > path:not(.tr-line) { display: none; }
@media (prefers-reduced-motion: reduce) { .tr-plane-svg { display: none; } }

/* the trial path's lock: shut shackle swaps for an open one, and the lock gives a little hop */
.jlock .shackle { transition: opacity .35s, transform .5s var(--spring); transform-box: fill-box; transform-origin: 0 100%; }
.jlock .shackle.open { opacity: 0; transform: translateY(2px); }
.journey.unlocked .jlock .shackle.shut { opacity: 0; transform: translateY(-2px); }
.journey.unlocked .jlock .shackle.open { opacity: 1; transform: none; }
.journey.unlocked .jlock { animation: unlock-hop .6s var(--spring); box-shadow: 0 0 0 6px rgba(47, 168, 102, .18), var(--shadow-1); }
@keyframes unlock-hop { 40% { transform: translateY(-6px) rotate(-6deg); } }
.jlock svg { width: 38px; height: 38px; }
/* the title types itself: a blinking caret while it types */
.title-field.typing .input { caret-color: transparent; background-image: linear-gradient(var(--blue), var(--blue)); background-repeat: no-repeat; background-size: 2px 22px; background-position: var(--caret-x, 16px) 50%; animation: caret-blink .9s steps(1) infinite; }
@keyframes caret-blink { 50% { background-size: 0 0; } }
.title-field .input::placeholder { color: #9b98ad; }
