/* =================================================================
   Welcome page. Builds on style.css (tokens, buttons, nav, footer).
   Sections: hero scene, two audiences, word band, island tour (pinned),
   how a level works (pinned), schools, pricing, quotes, questions, close.
   ================================================================= */

body.page-welcome { background: var(--paper); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

main.welcome-page { padding: 0; min-height: 0; overflow-x: clip; }
.welcome-page > .flash-messages { position: fixed; top: calc(var(--header-h) + 4px); left: 50%; z-index: 60; width: min(560px, calc(100% - 32px)); transform: translateX(-50%); }

.welcome-page .wrap { width: min(var(--page-max), 100%); margin: 0 auto; padding: 0 var(--gutter); }
.welcome-page .h2 { margin: 0; font-size: clamp(26px, min(2.6vw, 4.6vh), 38px); line-height: 1.1; letter-spacing: -0.03em; }
.welcome-page .lead { margin: 0; color: var(--mute); font-size: clamp(16px, min(1.25vw, 2.2vh), 18px); line-height: 1.6; }
.welcome-page h1, .welcome-page h2, .welcome-page h3 { font-weight: 700; }

.kw { color: #7FB8F5; } .fn { color: #8DD8B4; } .st { color: #F2C67D; } .nu { color: #E9A37B; } .cm { color: #8295A7; }
.caret { display: inline-block; width: 2px; height: 1.1em; background: #8DD8B4; vertical-align: -3px; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
@keyframes bob { 50% { transform: translateY(-14px); } }
@keyframes shade { 50% { transform: scale(0.9); opacity: 0.75; } }

/* ---------- 1. Hero ---------- */
.hero { position: relative; display: grid; align-items: center; min-height: 100svh; padding-top: calc(var(--header-h) + clamp(16px, 4vh, 40px)); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, #fff 0%, #F7FBFD 60%, #fff 100%); }
.hero__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 4vw, 64px); align-items: center; padding-block: clamp(16px, 4vh, 48px); }
.hero__title { margin: 0; font-size: clamp(36px, min(4vw, 6.8vh), 56px); line-height: 1.03; letter-spacing: -0.035em; }
.checks { display: grid; gap: clamp(8px, 1.4vh, 12px); margin: clamp(20px, 3.4vh, 32px) 0 0; padding: 0; list-style: none; color: var(--ink-2); font-size: clamp(15.5px, min(1.2vw, 2.1vh), 17.5px); }
.checks li { display: flex; align-items: flex-start; gap: 12px; }
.checks svg { flex: none; width: 22px; height: 22px; margin-top: 1px; }
.checks circle { fill: var(--ok-soft); }
.checks path { fill: none; stroke: var(--ok); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 14; stroke-dashoffset: 0; }
.checks b { color: var(--ink); font-weight: 600; }
.hero__acts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(24px, 4.4vh, 40px); }
.hero__note { margin: 16px 0 0; color: var(--mute); font-size: 14px; }
/* Students with a class code: straight to the join page. */
.hero__code { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 18px 0 0; color: var(--ink); font-size: 15px; }
.hero__code > i { color: var(--brand); font-size: 14px; }
.hero__code a { display: inline-flex; align-items: center; gap: 6px; color: var(--brand); font-weight: 600; text-decoration: none; }
.hero__code a i { font-size: 12px; transition: transform 0.35s var(--ease); }
.hero__code a:hover i { transform: translateX(3px); }

/* The scene: island 1 floating, two far islands for depth; every layer moves at its own depth. */
.scene { position: relative; height: clamp(400px, 70vh, 660px); }
.scene__sky { position: absolute; inset: 0; overflow: hidden; border-radius: 28px; background: radial-gradient(120% 90% at 50% 0%, #F8FCFE 0%, #E9F4FA 46%, #D3E8F3 100%); outline: 1px solid rgba(10, 111, 163, 0.08); }
.layer { position: absolute; will-change: transform; }
.far { opacity: 0.88; }
.far--a { top: 12%; right: 9%; width: 20%; filter: blur(1.2px) saturate(0.85); }
.far--b { top: 22%; left: 9%; width: 13%; filter: blur(1.4px) saturate(0.85); opacity: 0.8; }
.main-isle { top: 10%; left: 23%; width: 54%; }
.main-isle img { display: block; width: 100%; height: auto; animation: bob 7s var(--ease-io) infinite; }
.scene__shadow { top: 77%; left: 30%; width: 40%; height: 6%; border-radius: 50%; background: radial-gradient(closest-side, rgba(14, 26, 38, 0.22), rgba(14, 26, 38, 0)); animation: shade 7s var(--ease-io) infinite; }

.chip { position: absolute; z-index: 2; display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 12px; border-radius: 14px; background: rgba(255, 255, 255, 0.94); box-shadow: var(--shadow-card); outline: 1px solid rgba(14, 26, 38, 0.05); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.chip__icon { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); font-size: 15px; }
.chip__icon--ok { background: var(--ok-soft); color: var(--ok); }
.chip b { display: block; font-size: 14.5px; font-weight: 600; line-height: 1.3; }
.chip small { display: block; color: var(--mute); font-size: 12.5px; line-height: 1.3; }
.chip--island { top: 7%; left: -5%; }
.chip--tests { top: 44%; right: -4%; }

.ed { position: absolute; z-index: 3; bottom: 7%; left: -6%; width: min(330px, 62%); overflow: hidden; border-radius: 14px; background: var(--night); box-shadow: var(--shadow-frame); }
.ed__bar { display: flex; align-items: center; gap: 6px; padding: 10px 12px; border-bottom: 1px solid rgba(255, 255, 255, 0.07); color: #8D9DAD; font-size: 12px; }
.ed__bar i { width: 8px; height: 8px; border-radius: 50%; background: #2A3B4C; }
.ed__bar span { margin-left: 6px; }
.ed__code { min-height: 76px; margin: 0; padding: 14px 16px; color: #D9E2EA; font: 400 13.5px/1.7 var(--font-mono); white-space: pre; }
.ed__out { min-height: 48px; padding: 10px 16px 12px; border-top: 1px solid rgba(255, 255, 255, 0.07); color: #7ED3A9; font: 400 12.5px/1.6 var(--font-mono); white-space: pre; }
.ed__out small { display: block; color: #8295A7; font: 400 11px/1.6 var(--font-main); letter-spacing: 0.02em; }

/* ---------- 2. Two audiences ---------- */
.aud { padding: clamp(64px, 11vh, 120px) 0 clamp(40px, 7vh, 72px); }
.aud__head { display: flex; align-items: end; justify-content: space-between; gap: 32px; }
.aud__head .lead { max-width: 420px; }
.aud__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: clamp(28px, 5vh, 48px); }
.who { display: flex; flex-direction: column; overflow: hidden; border-radius: 24px; background: var(--surface); color: inherit; text-decoration: none; isolation: isolate; transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease); }
.who:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.who__media { position: relative; height: clamp(250px, 38vh, 360px); overflow: hidden; }
.who__media--solo { background: radial-gradient(90% 90% at 30% 20%, #F7FBFD 0%, #DDEEF6 70%, #CBE4F0 100%); }
.who__media--class { background: radial-gradient(90% 90% at 70% 20%, #F6FAF6 0%, #E2EFE5 70%, #D2E6D7 100%); }
.who__isle { position: absolute; right: 6%; bottom: -10%; width: 44%; transform: translateY(var(--py, 0px)); transition: transform 0.9s var(--ease); }
.who__isle--b { right: auto; left: 4%; width: 46%; }
.who:hover .who__isle { transform: translateY(calc(var(--py, 0px) - 8px)) rotate(-2deg); }
.mock-next { position: absolute; top: 50%; left: 8%; width: min(300px, 62%); padding: 16px 18px; border-radius: 16px; background: #fff; box-shadow: var(--shadow-frame); translate: 0 -50%; display: grid; gap: 4px; transition: transform 0.9s var(--ease); }
.who:hover .mock-next { transform: translateY(-6px); }
.mock-next__top { display: flex; justify-content: space-between; gap: 10px; color: var(--mute); font-size: 12.5px; }
.mock-next__streak { display: inline-flex; align-items: center; gap: 5px; color: var(--ink-2); font-weight: 600; }
.mock-next__streak i { color: #E4572E; }
.mock-next b { margin-top: 6px; font: 700 19px/1.2 var(--font-display); letter-spacing: -0.015em; }
.mock-next small { color: var(--mute); font-size: 13px; }
.mock-next__bar { height: 6px; margin-top: 12px; overflow: hidden; border-radius: 6px; background: var(--surface); }
.mock-next__bar i { display: block; width: 100%; height: 100%; border-radius: 6px; background: var(--brand); transform: scaleX(var(--p)); transform-origin: 0 50%; }
.mock-next__foot { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; color: var(--mute); font-size: 12.5px; }
.mock-next__go { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 8px; background: var(--brand); color: #fff; font-weight: 600; }
.mock-next__go i { font-size: 11px; }
.mock-card { position: absolute; top: 18%; right: 9%; width: min(270px, 56%); padding: 16px 18px; border-radius: 14px; background: #fff; box-shadow: var(--shadow-frame); display: grid; gap: 8px; rotate: 3deg; transition: transform 0.9s var(--ease); }
.who:hover .mock-card { transform: translateY(-6px) rotate(-1deg); }
.mock-card--back { top: 24%; right: 13%; height: 150px; rotate: -5deg; background: #F4F8F5; box-shadow: var(--shadow-card); }
.mock-card__brand { display: flex; align-items: center; gap: 8px; font: 700 14px/1 var(--font-display); }
.mock-card small { color: var(--mute); font-size: 12px; }
.mock-card__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 8px; border-top: 1px dashed var(--line-2); color: var(--mute); font-size: 12.5px; }
.mock-card__row code { color: var(--ink); font-size: 13px; }
.mock-join { position: absolute; bottom: 12%; right: 12%; display: inline-flex; align-items: center; gap: 10px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); color: var(--mute); font-size: 12px; box-shadow: var(--shadow-card); }
.mock-join code { color: var(--ink); font-size: 14px; letter-spacing: 0.08em; }
.who__body { display: flex; flex: 1; flex-direction: column; align-items: flex-start; gap: 10px; padding: clamp(22px, 3.4vh, 32px) clamp(22px, 2.4vw, 32px); }
.who h3 { margin: 4px 0 0; font-size: clamp(22px, 1.9vw, 26px); letter-spacing: -0.02em; }
.who p { margin: 0; max-width: 470px; color: var(--mute); font-size: 15.5px; line-height: 1.6; }
.who .link-arrow { margin-top: auto; padding-top: 10px; }
.who:hover .link-arrow i { transform: translateX(4px); }

/* ---------- 3. Word band ---------- */

/* ---------- 4. Island tour (pinned) ---------- */
.tour { --tint: #0084B4; position: relative; height: calc(var(--n, 9) * 38vh + 100svh); }
.tour__pin { position: sticky; top: 0; height: 100svh; overflow: hidden; padding-top: calc(var(--header-h) + 16px); background: color-mix(in srgb, var(--tint) 8%, #fff); transition: background-color 1s var(--ease); }
.tour__grid { position: relative; display: grid; grid-template-columns: minmax(340px, 5fr) 7fr; grid-template-rows: 1fr auto; gap: 0 clamp(24px, 3vw, 48px); height: 100%; padding-bottom: clamp(18px, 3vh, 32px); }
.tour__text { align-self: center; }
.tour__kicker { display: flex; align-items: center; gap: 10px; margin: 0; color: var(--ink-2); font: 600 14px/1.3 var(--font-main); letter-spacing: 0; }
.tour__kicker i { width: 24px; height: 2px; background: var(--tint); transition: background-color 1s; }
.tour__num { display: flex; align-items: flex-start; height: 1em; margin-top: clamp(8px, 2vh, 20px); overflow: hidden; font: 700 clamp(56px, min(6vw, 10vh), 96px)/1 var(--font-display); letter-spacing: -0.05em; font-variant-numeric: tabular-nums; }
.odo { display: flex; flex-direction: column; transition: transform 0.9s var(--ease); }
.odo span { height: 1em; line-height: 1; }
.tour__num .of { align-self: flex-end; margin: 0 0 0.5em 14px; color: var(--mute); font: 600 clamp(16px, 1.4vw, 20px)/1 var(--font-main); letter-spacing: 0; }
.isles { display: grid; margin-top: clamp(10px, 2vh, 18px); }
.isle { grid-area: 1 / 1; align-self: start; transition: opacity 0.55s var(--ease), transform 0.8s var(--ease), filter 0.55s; }
.isle:not(.on) { opacity: 0; transform: translateY(20px); filter: blur(6px); pointer-events: none; }
.isle.was { transform: translateY(-20px); }
.isle h3 { margin: 0; font-size: clamp(24px, min(2.4vw, 4vh), 34px); line-height: 1.08; letter-spacing: -0.03em; }
.isle > p { max-width: 440px; margin: 12px 0 0; color: var(--ink-2); font-size: clamp(15.5px, min(1.2vw, 2.1vh), 17.5px); line-height: 1.55; }
.topics { display: flex; flex-wrap: wrap; gap: 8px; max-width: 460px; margin-top: clamp(16px, 2.8vh, 24px); }
.topics span { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px; border-radius: 9px; background: rgba(255, 255, 255, 0.85); outline: 1px solid rgba(14, 26, 38, 0.07); color: var(--ink-2); font-size: 13.5px; }
.topics span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--c); }
.isle.on .topics span { animation: pop 0.7s var(--ease) both; animation-delay: calc(var(--k) * 60ms + 160ms); }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(0.96); } }
.isle .isle__count { display: flex; align-items: center; gap: 10px; margin: 14px 0 0; color: var(--mute); font-size: 14px; }
.tour__stage { position: relative; min-height: 0; }
.tour__shadow { position: absolute; top: 78%; left: 22%; right: 22%; height: 7%; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--tint) 30%, rgba(14, 26, 38, 0.28)), transparent); transition: background 1s; animation: shade 7s var(--ease-io) infinite; }
.tour__img { position: absolute; inset: 4% 6% 14%; display: grid; place-items: center; transition: opacity 0.7s var(--ease), transform 1s var(--ease), filter 0.7s var(--ease); }
.tour__img img { width: auto; max-width: 100%; max-height: 100%; object-fit: contain; animation: bob 7s var(--ease-io) infinite; }
.tour__img.before { opacity: 0; transform: translateY(70px) scale(0.84); filter: blur(12px); }
.tour__img.after { opacity: 0; transform: translateY(-60px) scale(0.9); filter: blur(12px); }
.tour__img.on { transform: translateY(var(--drift, 0px)); }
.rail { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(9, 1fr); gap: 8px; align-items: end; }
.rail button { display: grid; justify-items: center; gap: 8px; padding: 6px 4px 0; border: 0; border-radius: 12px; background: none; cursor: pointer; font: inherit; }
.rail button:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.rail img { width: auto; height: clamp(28px, 4.4vh, 44px); opacity: 0.55; filter: grayscale(0.6); transform: translateY(4px) scale(0.9); transition: opacity 0.5s, filter 0.5s, transform 0.6s var(--ease); }
.rail button:hover img { opacity: 0.9; filter: none; }
.rail button.on img { opacity: 1; filter: none; transform: translateY(-2px) scale(1.12); }
.rail b { color: var(--mute); font: 600 12px/1 var(--font-main); transition: color 0.4s; }
.rail button.on b { color: var(--ink); }
.rail i { display: block; width: 100%; height: 3px; overflow: hidden; border-radius: 3px; background: rgba(14, 26, 38, 0.1); }
.rail i::after { content: ""; display: block; width: 100%; height: 100%; background: var(--c); transform: scaleX(var(--f, 0)); transform-origin: 0 50%; }

/* ---------- 5. How a level works (pinned) ---------- */
.how { position: relative; height: 300vh; }
.how__pin { position: sticky; top: 0; display: flex; align-items: center; height: 100svh; padding-top: calc(var(--header-h) + 16px); }
.how__pin > .wrap { width: min(var(--page-max), 100%); }
.how__box { width: 100%; padding: clamp(24px, 4.5vh, 48px) clamp(24px, 3.5vw, 48px); border-radius: 28px; background: var(--surface); }
.how__head { display: flex; align-items: end; justify-content: space-between; gap: 32px; }
.how__head .lead { max-width: 420px; }
.how__grid { display: grid; grid-template-columns: minmax(280px, 4fr) 7fr; gap: clamp(24px, 3vw, 48px); margin-top: clamp(20px, 3.5vh, 36px); }
.steps { display: grid; align-content: center; gap: 6px; }
.step { position: relative; display: block; width: 100%; padding: 18px 20px 22px; border: 0; border-radius: 14px; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; transition: background-color 0.35s var(--ease), box-shadow 0.35s; }
.step:hover { background: rgba(255, 255, 255, 0.6); }
.step:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.step__top { display: flex; align-items: center; gap: 10px; color: var(--mute); font: 600 17px/1.3 var(--font-display); transition: color 0.3s; }
.step__top i { width: 20px; text-align: center; font-size: 16px; }
.step p { max-height: 0; margin: 0; overflow: hidden; opacity: 0; color: var(--mute); font-size: 15px; line-height: 1.55; transition: max-height 0.6s var(--ease), opacity 0.45s, margin 0.45s; }
.step__bar { position: absolute; left: 20px; right: 20px; bottom: 10px; height: 2px; overflow: hidden; border-radius: 2px; background: var(--line); opacity: 0; transition: opacity 0.3s; }
.step__bar i { display: block; width: 100%; height: 100%; background: var(--brand); transform: scaleX(0); transform-origin: 0 50%; }
.step.is-on { background: #fff; box-shadow: var(--shadow-card); }
.step.is-on .step__top { color: var(--ink); }
.step.is-on .step__top i { color: var(--brand); }
.step.is-on p { max-height: 120px; margin-top: 8px; opacity: 1; }
.step.is-on .step__bar { opacity: 1; }
.panel { position: relative; height: clamp(320px, 50vh, 500px); }
.view { position: absolute; inset: 0; opacity: 0; transform: translateY(14px) scale(0.985); filter: blur(6px); pointer-events: none; transition: opacity 0.55s var(--ease), transform 0.8s var(--ease), filter 0.55s var(--ease); }
.view.is-on { opacity: 1; transform: none; filter: none; pointer-events: auto; }

/* The lesson, as the theory pages show it (text from the real lesson). */
.lesson { position: relative; height: 100%; overflow: hidden; padding: clamp(20px, 3vh, 32px) clamp(22px, 2.6vw, 36px); border-radius: 14px; background: #fff; box-shadow: var(--shadow-card); }
.lesson::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 64px; background: linear-gradient(transparent, #fff); }
.lesson__meta { display: flex; justify-content: space-between; gap: 12px; color: var(--mute); font-size: 13px; }
.lesson__meta b { color: var(--brand-hover); font-weight: 600; }
.lesson h3 { margin: 12px 0 0; font-size: clamp(22px, 2vw, 28px); letter-spacing: -0.02em; }
.lesson__lead { margin: 14px 0 0; color: var(--ink-2); font-size: 15px; }
.lesson pre { margin: 12px 0 0; padding: 14px 18px; border-radius: 12px; background: var(--night); color: #D9E2EA; font: 400 13.5px/1.7 var(--font-mono); }
.lesson__out { display: flex; align-items: center; gap: 10px; margin: 8px 0 0; color: var(--mute); font-size: 13px; }
.lesson__out code { padding: 3px 8px; border-radius: 6px; background: var(--surface); color: var(--ink); }
.lesson ol { display: grid; gap: 10px; margin: 16px 0 0; padding: 14px 0 0; border-top: 1px solid var(--line); color: var(--ink-2); font-size: 14.5px; line-height: 1.55; list-style: none; }
.lesson ol li { display: grid; grid-template-columns: 64px 1fr; gap: 10px; align-items: start; }
.lesson ol b { margin-top: 1px; padding: 6px 8px; border-radius: 6px; background: var(--night); color: #D9E2EA; font: 500 12px/1 var(--font-mono); text-align: center; white-space: nowrap; }
.lesson ol code { padding: 1px 6px; border-radius: 5px; background: var(--brand-soft); color: var(--brand-hover); }

.editor { display: grid; grid-template-rows: auto 1fr auto; height: 100%; overflow: hidden; border-radius: 14px; background: var(--night); box-shadow: var(--shadow-frame); }
.editor__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid rgba(255, 255, 255, 0.07); color: #9FB0BF; font-size: 13px; }
.editor__bar b { color: #E8EEF3; font-weight: 600; }
.run { display: inline-flex; flex: none; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 7px; background: #1E7B58; color: #fff; font-size: 13px; font-weight: 600; white-space: nowrap; transition: transform 0.15s, background-color 0.2s; }
.run i { font-size: 10px; }
.run.is-pressed { transform: scale(0.94); background: #17664A; }
.code { margin: 0; padding: 20px 20px 20px 0; overflow: hidden; color: #D9E2EA; font: 400 14.5px/1.8 var(--font-mono); white-space: pre; }
.code .ln { display: inline-block; width: 44px; padding-right: 18px; color: #7A8D9F; text-align: right; user-select: none; }
.tests { min-height: 128px; padding: 14px 20px 16px; border-top: 1px solid rgba(255, 255, 255, 0.07); color: #9FB0BF; font-size: 13.5px; }
.tests__title { display: flex; justify-content: space-between; margin-bottom: 8px; color: #E8EEF3; font-weight: 600; }
.tests__title span { color: #7ED3A9; opacity: 0; transition: opacity 0.4s; }
.tests__title span.on { opacity: 1; }
.test { display: flex; align-items: center; gap: 10px; padding: 4px 0; opacity: 0; transform: translateX(-6px); font-family: var(--font-mono); font-size: 13px; transition: opacity 0.35s var(--ease), transform 0.5s var(--ease); }
.test.on { opacity: 1; transform: none; }
.test > i { display: grid; place-items: center; flex: none; width: 18px; height: 18px; border-radius: 50%; background: #1E7B58; color: #fff; font-size: 9px; }

.quiz { display: flex; flex-direction: column; height: 100%; padding: clamp(22px, 3vw, 36px); border-radius: 14px; background: #fff; box-shadow: var(--shadow-card); }
.quiz__meta { display: flex; justify-content: space-between; color: var(--mute); font-size: 13px; }
.quiz__meta i { position: relative; display: block; width: 120px; height: 4px; margin-top: 8px; overflow: hidden; border-radius: 4px; background: var(--line); }
.quiz__meta i::after { content: ""; position: absolute; inset: 0 66% 0 0; background: var(--brand); }
.quiz h3 { margin: clamp(16px, 3vh, 28px) 0 0; font-size: clamp(19px, 1.7vw, 24px); line-height: 1.3; letter-spacing: -0.015em; }
.quiz h3 code { padding: 2px 8px; border-radius: 6px; background: var(--surface); }
.opts { display: grid; gap: 10px; margin-top: clamp(14px, 2.6vh, 24px); }
.opt { display: flex; align-items: center; gap: 14px; padding: clamp(11px, 1.8vh, 15px) 16px; border: 1px solid var(--line-2); border-radius: 10px; font: 500 15px var(--font-mono); font-variant-ligatures: none; transition: border-color 0.3s, background-color 0.3s, box-shadow 0.3s; }
.opt b { display: grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 7px; background: var(--surface); color: var(--mute); font: 600 13px var(--font-main); transition: background-color 0.3s, color 0.3s; }
.opt.is-right { border-color: var(--ok); background: var(--ok-soft); box-shadow: 0 0 0 3px rgba(19, 128, 91, 0.12); }
.opt.is-right b { background: var(--ok); color: #fff; }
.quiz__fb { display: flex; align-items: center; gap: 10px; margin: auto 0 0; padding-top: 16px; color: var(--ok); font-size: 15px; font-weight: 600; opacity: 0; transform: translateY(6px); transition: opacity 0.4s, transform 0.5s var(--ease); }
.quiz__fb.on { opacity: 1; transform: none; }

/* ---------- 6. For schools (on the hub's pale sky) ---------- */
.schools { display: grid; align-items: center; padding: calc(var(--header-h) + 24px) 0 clamp(48px, 8vh, 96px); background: linear-gradient(180deg, #EAF5FA 0%, #F6FAFC 100%); color: var(--mute); }
.schools__grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.schools .h2 { color: var(--ink); }
.schools .lead { max-width: 480px; margin-top: 18px; color: var(--mute); }
.points { display: grid; gap: clamp(14px, 2.4vh, 20px); margin: clamp(24px, 4vh, 36px) 0 0; padding: 0; list-style: none; }
.points li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; }
.points li > span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; background: var(--paper); outline: 1px solid var(--line); color: var(--brand); font-size: 16px; box-shadow: var(--shadow-xs); }
.points b { display: block; color: var(--ink); font-size: 16px; font-weight: 600; }
.points p { margin: 2px 0 0; color: var(--mute); font-size: 14.5px; line-height: 1.5; }
.schools__acts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(24px, 4vh, 36px); }
.schools__acts .btn--secondary i { color: var(--brand); }
.dash { overflow: hidden; border-radius: 20px; background: var(--paper); outline: 1px solid var(--line); box-shadow: 0 40px 80px -36px rgba(14, 50, 72, 0.35); }
.dash__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.dash__top b { color: var(--ink); font: 600 16px var(--font-display); }
.dash__top small { display: block; color: var(--mute); font-size: 12.5px; }
.joincode { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 12px; border-radius: 10px; background: var(--canvas); color: var(--mute); font-size: 12.5px; white-space: nowrap; }
.joincode code { color: var(--ink); font-size: 14px; letter-spacing: 0.08em; }
.joincode span { padding: 5px 9px; border-radius: 7px; background: var(--brand-soft, #E6F1F8); color: var(--brand); font-size: 12px; font-weight: 600; }
.dash table { width: 100%; border-collapse: collapse; font-size: 14px; }
.dash th { padding: 12px 22px 8px; color: var(--mute); font-size: 12px; font-weight: 500; text-align: left; white-space: nowrap; }
.dash td { padding: clamp(9px, 1.5vh, 12px) 22px; border-top: 1px solid var(--line); color: var(--ink); }
.dash td small { color: var(--mute); font-size: 12.5px; white-space: nowrap; }
.person { display: flex; align-items: center; gap: 10px; }
.person i { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--c); color: var(--night); font: 600 11.5px var(--font-main); font-style: normal; }
.isl { display: inline-flex; align-items: center; gap: 6px; color: var(--mute); font-size: 13px; white-space: nowrap; }
.isl::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.bar { width: 96px; height: 6px; overflow: hidden; border-radius: 6px; background: rgba(14, 26, 38, 0.07); }
.bar i { display: block; width: 100%; height: 100%; border-radius: 6px; background: linear-gradient(90deg, #2E8FC0, #7CC3E6); transform: scaleX(0); transform-origin: 0 50%; transition: transform 1.4s var(--ease); transition-delay: calc(var(--r) * 90ms + 200ms); }
.dash.on .bar i { transform: scaleX(var(--p)); }
.dash__foot { padding: 12px 22px 16px; border-top: 1px solid var(--line); color: var(--mute); font-size: 12px; }

/* ---------- 7. Pricing ---------- */
.pricing { display: grid; align-items: center; padding: calc(var(--header-h) + 16px) 0 clamp(40px, 6vh, 72px); }
.pricing__head { text-align: center; }
.pricing__head .lead { margin-top: 14px; }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 880px; margin: clamp(28px, 5vh, 48px) auto 0; }
.plan { position: relative; display: flex; flex-direction: column; overflow: hidden; padding: clamp(24px, 4vh, 34px); border: 1px solid var(--line-2); border-radius: 20px; background: #fff; isolation: isolate; transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease); }
.plan::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 0%), rgba(10, 111, 163, 0.08), transparent 60%); opacity: 0; transition: opacity 0.4s; }
.plan:hover::before { opacity: 1; }
.plan:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.plan--premium { border-color: var(--ink); box-shadow: var(--shadow-frame); }
.plan--premium:hover { box-shadow: var(--shadow-frame); }
.plan__name { display: flex; align-items: center; justify-content: space-between; font: 600 18px var(--font-display); }
.price { display: flex; align-items: baseline; gap: 8px; margin-top: clamp(10px, 2vh, 18px); }
.price b { font: 700 clamp(36px, 6vh, 46px)/1 var(--font-display); letter-spacing: -0.03em; }
.price span { color: var(--mute); font-size: 15px; }
.plan > p { margin: 8px 0 0; color: var(--mute); font-size: 15px; }
.plan ul { display: grid; gap: clamp(8px, 1.5vh, 12px); margin: clamp(16px, 3vh, 26px) 0 clamp(20px, 3.4vh, 30px); padding: clamp(16px, 3vh, 24px) 0 0; border-top: 1px solid var(--line); font-size: 15px; list-style: none; }
.plan li { display: flex; align-items: baseline; gap: 12px; line-height: 1.45; }
.plan li i { width: 14px; color: var(--ok); font-size: 13px; }
.plan li.no { color: var(--mute); }
.plan li.no i { color: #A3AEB8; }
.plan .btn { margin-top: auto; }
.pricing__org { margin: 24px 0 0; color: var(--mute); font-size: 15px; text-align: center; }
.pricing__org a { border-bottom: 1px solid rgba(10, 111, 163, 0.3); color: var(--brand); font-weight: 600; text-decoration: none; }

/* ---------- 8. Quotes ---------- */
.quotes { padding: clamp(56px, 10vh, 112px) 0; background: var(--surface); }
.quotes__track { margin-top: clamp(28px, 5vh, 48px); -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent); }
.quotes__row { display: flex; gap: 16px; width: max-content; animation: drift 80s linear infinite; }
.quotes__track:hover .quotes__row { animation-play-state: paused; }
@keyframes drift { to { transform: translateX(-50%); } }
.q { display: flex; flex: none; flex-direction: column; gap: 20px; width: 400px; margin: 0; padding: 28px; border-radius: 20px; background: #fff; outline: 1px solid var(--line); }
.q p { margin: 0; color: var(--ink); font: 500 18px/1.55 var(--font-display); letter-spacing: -0.01em; }
.q footer { display: flex; align-items: center; gap: 12px; margin-top: auto; color: var(--mute); font-size: 14px; }
.q footer i { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 50%; background: var(--sea-2); color: var(--brand-hover); font: 700 14px var(--font-display); font-style: normal; }

/* ---------- 9. Questions ---------- */
.faq { padding: clamp(64px, 12vh, 128px) 0; }
.faq__grid { display: grid; grid-template-columns: 1fr 1.8fr; gap: clamp(40px, 6vw, 96px); }
.faq__grid .lead { margin-top: 16px; }
.faq__grid .lead a { color: var(--brand); font-weight: 600; text-decoration: none; }
.qa { border-top: 1px solid var(--line); }
.qa:last-child { border-bottom: 1px solid var(--line); }
.qa button { display: flex; align-items: center; justify-content: space-between; gap: 24px; width: 100%; padding: 20px 0; border: 0; background: none; color: var(--ink); font: 600 17px/1.4 var(--font-display); letter-spacing: -0.01em; text-align: left; cursor: pointer; }
.qa button:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
.qa button i { position: relative; flex: none; width: 28px; height: 28px; border: 1px solid var(--line-2); border-radius: 50%; transition: transform 0.5s var(--ease), background-color 0.3s; }
.qa button i::before, .qa button i::after { content: ""; position: absolute; top: 50%; left: 50%; width: 10px; height: 1.6px; border-radius: 2px; background: var(--ink); translate: -50% -50%; }
.qa button i::after { rotate: 90deg; transition: rotate 0.5s var(--ease); }
.qa.open button i { transform: rotate(180deg); background: var(--surface); }
.qa.open button i::after { rotate: 0deg; }
.qa__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.6s var(--ease); }
.qa.open .qa__a { grid-template-rows: 1fr; }
.qa__a > div { overflow: hidden; }
.qa__a p { margin: 0; padding: 0 48px 22px 0; color: var(--mute); font-size: 15.5px; line-height: 1.65; }
.qa__a a { color: var(--brand); font-weight: 600; }

/* ---------- 10. Close: the archipelago ---------- */
.close { position: relative; overflow: hidden; padding: clamp(72px, 14vh, 140px) 0 clamp(64px, 10vh, 110px); background: linear-gradient(180deg, #fff 0%, #EEF6FA 45%, #DCEDF6 100%); text-align: center; }
.close h2 { margin: 0; font-size: clamp(30px, min(3.4vw, 5.6vh), 44px); line-height: 1.04; letter-spacing: -0.035em; text-wrap: balance; }
.close p { margin: 18px 0 0; color: var(--ink-2); font-size: clamp(16px, 1.3vw, 18px); }
/* Pick a world: one card per language, the next ones announced */
.worlds { display: grid; grid-template-columns: 1.15fr 1fr 0.75fr; gap: 20px; margin-top: clamp(32px, 6vh, 56px); text-align: left; }
.world { display: flex; flex-direction: column; overflow: hidden; border-radius: 22px; background: var(--paper); box-shadow: var(--shadow-card); color: var(--ink); text-decoration: none; transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease); }
.world:hover { transform: translateY(-6px); box-shadow: var(--shadow-frame); }
.world__art { display: grid; place-items: center; height: clamp(190px, 28vh, 260px); overflow: hidden; background: radial-gradient(80% 90% at 50% 100%, #CFE6F2 0%, #EAF4F9 72%); }
.world__art img { width: auto; max-width: 86%; max-height: 84%; filter: drop-shadow(0 18px 22px rgba(14, 26, 38, 0.18)); transform: translateY(var(--ay, 0px)); transition: transform 0.8s var(--ease); }
.world:hover .world__art img { transform: translateY(-6px) scale(1.03); }
.world__body { display: grid; align-content: start; gap: 8px; padding: 22px 24px 24px; }
.world__name { display: flex; align-items: center; gap: 10px; font: 700 22px/1.1 var(--font-display); letter-spacing: -0.02em; }
.world__name i { color: var(--mute); font-size: 22px; }
.world__summary { color: var(--ink-2); font-size: 15.5px; line-height: 1.55; }
.world__meta { color: var(--mute); font-size: 13.5px; }
.world .link-arrow { margin-top: 6px; }
.world--soon { justify-content: center; border: 1.5px dashed var(--line-2); background: transparent; box-shadow: none; }
.world--soon:hover { transform: none; box-shadow: none; }

.close .close__org { margin-top: 28px; font-size: 15px; }
.close__org a { color: var(--brand); font-weight: 600; }
@media (max-width: 900px) { .worlds { grid-template-columns: 1fr; } }

/* Code never merges >= or != into one glyph (declared after the font shorthands above, which reset it). */
.ed__code, .code, .lesson pre, .lesson code, .opt, .quiz h3 code, .test { font-variant-ligatures: none; font-feature-settings: "calt" 0, "liga" 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
    .hero__grid { grid-template-columns: 1fr; padding-top: 16px; }
    .scene { height: clamp(340px, 50vh, 480px); }
    .aud__head { flex-direction: column; align-items: start; gap: 12px; }
    .tour__grid { grid-template-columns: 1fr; grid-template-rows: auto 1fr auto; }
    .tour__text { align-self: start; padding-top: 8px; }
    .tour__num { font-size: 52px; }
    .isle > p { display: none; }
    .how__head { flex-direction: column; align-items: start; gap: 8px; }
    .how__grid { grid-template-columns: 1fr; }
    .steps { grid-template-columns: repeat(3, 1fr); }
    .step p { display: none; }
    .schools__grid { grid-template-columns: 1fr; }
    .faq__grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .hero { min-height: 0; }
    .hero__grid { gap: 28px; padding-top: 28px; }
    .hero__acts .btn { width: 100%; }
    .scene { height: 420px; }
    .far--b { display: none; }
    .main-isle { top: 14%; left: 18%; width: 64%; }
    .chip--island { top: 12px; left: 8px; }
    .chip--tests { top: auto; right: 8px; bottom: 36%; }
    .ed { bottom: 12px; left: 8px; width: 236px; }
    .ed__code { min-height: 60px; font-size: 12px; }
    .chip { padding: 9px 12px 9px 9px; }
    .chip__icon { width: 28px; height: 28px; }
    .aud__grid { grid-template-columns: 1fr; }
    .rail { gap: 2px; }
    .rail b { display: none; }
    .topics span { height: 28px; font-size: 12.5px; }
    .how__head .lead { display: none; }
    .how__box { padding: 18px 14px; border-radius: 20px; }
    .step { padding: 12px 10px 16px; }
    .step__top { flex-direction: column; align-items: flex-start; gap: 6px; font-size: 14px; }
    .step__bar { left: 10px; right: 10px; bottom: 7px; }
    .panel { height: 52vh; }
    .lesson ol li { grid-template-columns: 1fr; gap: 6px; }
    .lesson ol b { justify-self: start; }
    .code { font-size: 12.5px; }
    .code .ln { width: 30px; padding-right: 12px; }
    .editor__bar span:first-child { font-size: 12px; }
    .dash th:nth-child(4), .dash td:nth-child(4) { display: none; }
    .dash td, .dash th { padding-left: 14px; padding-right: 14px; }
    .dash__top { flex-direction: column; align-items: start; }
    .bar { width: 70px; }
    .plans { grid-template-columns: 1fr; }
    .q { width: 300px; padding: 22px; }
    .q p { font-size: 16px; }
}

/* ---------- Motion on load (everything is visible without it) ---------- */
.motion .hero__title .w { display: inline-block; opacity: 0; transform: translateY(0.35em); filter: blur(10px); transition: opacity 0.9s var(--ease), transform 1.1s var(--ease), filter 0.9s var(--ease); transition-delay: calc(var(--i) * 55ms + 150ms); }
.motion .rise { opacity: 0; transform: translateY(14px); transition: opacity 0.9s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d); }
.motion .checks path { stroke-dashoffset: 14; transition: stroke-dashoffset 0.7s var(--ease); transition-delay: calc(var(--d) + 0.25s); }
.motion .scene { opacity: 0; transform: translateY(28px) scale(0.98); transition: opacity 1.2s var(--ease) 0.3s, transform 1.4s var(--ease) 0.3s; }
.motion .scene .chip, .motion .scene .ed { opacity: 0; translate: 0 12px; transition: opacity 0.9s var(--ease), translate 1s var(--ease); }
.motion.loaded .scene .chip--island { transition-delay: 0.9s; }
.motion.loaded .scene .chip--tests { transition-delay: 1.05s; }
.motion.loaded .scene .ed { transition-delay: 1.2s; }
.motion.loaded .hero__title .w, .motion.loaded .rise, .motion.loaded .scene { opacity: 1; transform: none; filter: none; }
.motion.loaded .scene .chip, .motion.loaded .scene .ed { opacity: 1; translate: 0 0; }
.motion.loaded .checks path { stroke-dashoffset: 0; }
.motion .who .who__media { clip-path: inset(12% 6% 0 6% round 24px); transition: clip-path 1.3s var(--ease); }
.motion .who.in .who__media { clip-path: inset(0 0 0 0 round 0); }
.motion .who .mock-next, .motion .who .mock-card:not(.mock-card--back), .motion .who .mock-join { opacity: 0; transition: opacity 0.9s var(--ease) 0.4s, transform 0.9s var(--ease); }
.motion .who.in .mock-next, .motion .who.in .mock-card, .motion .who.in .mock-join { opacity: 1; }
