/* velang.app v4 (site/home.template.html, site/page.template.html).
   Owner: docs/features/main-website/SPEC.md
   Direction: concept 06 "character-led", user 2026-10-12 ("6 is almost perfect").
   Rules: white page (cream rejected), no gradients (rejected 2026-10-12), one dominant
   brand blue, Outfit 800 headlines, Lora for German lines and the quote, short copy. */

:root {
  --action: #2E7CB4;
  --deep: #1F5A86;
  --navy: #153357;
  --select: #E7F2FA;
  --logo: #4BA2D4;
  --sky: #CFE5F4;
  --gold: #F2C75C;
  --ink: #153357;
  --muted: #4A5F78;
  --line: #D5E4F0;
  --bad: #B3422F;
  --display: "Outfit", "Readex Pro", system-ui, sans-serif;
  --serif: "Lora", "Noto Naskh Arabic", Georgia, serif;
  --text: "Outfit", "Readex Pro", system-ui, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 24px; }
body { background: #fff; color: var(--ink); font-family: var(--text); font-size: 18px; line-height: 1.5; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--action); outline-offset: 3px; border-radius: 8px; }
[lang="de"] { direction: ltr; unicode-bidi: isolate; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.skip-link { position: absolute; inset-inline-start: 16px; top: 12px; z-index: 50; padding: 10px 16px; border-radius: 12px; background: var(--navy); color: #fff; font-weight: 600; transform: translateY(-200%); }
.skip-link:focus { transform: none; }

h1, h2 { font-family: var(--display); font-weight: 800; letter-spacing: -.025em; line-height: 1.04; text-wrap: balance; }
h1 { font-size: clamp(44px, 7.2vw, 88px); }
h2 { font-size: clamp(34px, 5vw, 60px); }
[dir="rtl"] h1, [dir="rtl"] h2 { letter-spacing: 0; line-height: 1.25; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 32px; border-radius: 18px; border: 0; font-family: var(--display); font-weight: 800; font-size: 17px; letter-spacing: .04em; text-transform: uppercase; text-decoration: none; text-align: center; cursor: pointer; transition: transform .12s; }
[dir="rtl"] .btn { letter-spacing: 0; }
.btn:active { transform: translateY(3px); }
.btn-primary { background: var(--action); color: #fff; box-shadow: 0 5px 0 var(--deep); }
.btn-primary:active { box-shadow: 0 2px 0 var(--deep); }
.btn-ghost { background: #fff; color: var(--action); border: 2px solid var(--line); box-shadow: 0 4px 0 var(--line); }
.btn-white { background: #fff; color: var(--deep); box-shadow: 0 5px 0 var(--sky); min-width: 260px; }
.android-only { display: none !important; }
.is-android .android-only { display: inline-flex !important; }
.is-android .not-android { display: none !important; }

/* nav */
.nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; font-size: 24px; text-decoration: none; color: var(--action); }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links > a { padding: 10px 14px; border-radius: 12px; font-weight: 600; font-size: 16px; text-decoration: none; color: var(--muted); }
.nav-links > a:hover, .nav-links > a[aria-current="page"] { background: var(--select); color: var(--ink); }
.nav-links .login { margin-inline-start: 6px; color: var(--action); font-family: var(--display); font-weight: 800; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; border: 2px solid var(--line); }
[dir="rtl"] .nav-links .login { letter-spacing: 0; }
.lang-switch { display: flex; gap: 2px; margin-inline-start: 6px; }
.lang-switch a { padding: 8px 10px; border-radius: 10px; font-size: 14px; font-weight: 600; text-decoration: none; color: var(--muted); }
.lang-switch a:hover { background: var(--select); }
.lang-switch a[aria-current] { color: var(--ink); background: var(--select); }
@media (max-width: 760px) { .nav-links .hide-s { display: none; } }
@media (max-width: 420px) { .brand span { display: none; } .lang-switch a { padding: 8px 7px; } .nav-links .login { padding: 9px 11px; } }

/* floating cast */
.float { position: absolute; border-radius: 50%; overflow: hidden; background: #fff; border: 4px solid #fff; box-shadow: 0 0 0 3px var(--sky); aspect-ratio: 1; animation: bob var(--d, 5s) ease-in-out var(--delay, 0s) infinite alternate; }
.float img { width: 100%; height: 100%; object-fit: cover; }
/* the two exam logos (owner 2026-10-26, choosing the real logos knowing they are used without permission) */
.float.is-logo { display: grid; place-items: center; }
.float.is-logo img { width: 72%; height: auto; object-fit: contain; }
.float.is-logo img[src*="goethe"] { width: 86%; }
.float.is-logo img[src*="telc"] { width: 60%; }
@keyframes bob { from { transform: translateY(-8px) rotate(-3deg); } to { transform: translateY(8px) rotate(3deg); } }

/* hero: the Chapter 1 cast frames the headline (Vel removed 2026-10-16, user) */
.hero { position: relative; text-align: center; padding: clamp(96px, 10vw, 136px) 0 80px; }
.cluster { position: absolute; inset: 0; width: min(1120px, 100%); margin: 0 auto; pointer-events: none; }
.hero > :not(.cluster) { position: relative; z-index: 1; }
.f1 { left: 4%; top: 9%; width: 128px; --d: 4.6s; }
.f2 { left: 10%; top: 45%; width: 96px; --d: 5.4s; --delay: -1s; }
.f3 { left: 3%; bottom: 8%; width: 100px; --d: 5s; --delay: -2s; }
.f4 { right: 4%; top: 7%; width: 128px; --d: 5.2s; --delay: -.5s; }
.f5 { right: 10%; top: 47%; width: 96px; --d: 4.8s; --delay: -3s; }
.f6 { left: 27%; top: 3%; width: 88px; --d: 5.6s; --delay: -1.5s; }
.f7 { right: 3%; bottom: 8%; width: 100px; --d: 6s; --delay: -2.5s; }
.hero h1 { max-width: 12ch; margin: 0 auto 12px; }
.hero .sub { color: var(--muted); font-size: 20px; margin-bottom: 28px; }
@media (max-width: 1000px) {
  .hero { padding-top: 8px; padding-bottom: 56px; }
  .cluster { position: relative; inset: auto; height: 176px; margin-bottom: 12px; }
  .f3, .f7 { display: none; }
  .f1, .f4 { top: 52px; width: 104px; }
  .f2, .f5 { top: 4px; width: 84px; }
  .f1 { left: 4%; } .f4 { right: 4%; } .f2 { left: 24%; } .f5 { right: 24%; }
  .f6 { left: calc(50% - 42px); top: 84px; width: 84px; }
}
@media (max-width: 560px) {
  .cluster { height: 132px; }
  .f6 { display: none; }
  .f1, .f4 { top: 40px; width: 80px; }
  .f2, .f5 { top: 0; width: 68px; }
  .f1 { left: 2%; } .f4 { right: 2%; } .f2 { left: 28%; } .f5 { right: 28%; }
}
.stack { display: flex; flex-direction: column; gap: 14px; width: min(360px, 100%); margin: 0 auto; }

/* exam strip: each exam board named once, its levels as keys (owner 2026-10-26) */
.strip { border-block: 2px solid var(--line); padding: 18px 0; }
.strip-in { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px clamp(24px, 4vw, 48px); }
.grp { display: flex; align-items: center; gap: 12px; }
.grp-h { display: flex; flex-direction: column; min-width: 64px; line-height: 1.15; }
.grp-h b { font-family: var(--display); font-weight: 800; font-size: 19px; }
.grp-h small { color: var(--muted); font-size: 13px; font-weight: 500; }
.grp-k { display: flex; gap: 8px; }
.grp-k a { display: grid; place-items: center; min-width: 56px; min-height: 48px; padding: 0 10px; border: 2px solid var(--line); border-radius: 14px; background: #fff; box-shadow: 0 3px 0 var(--line); font-family: var(--display); font-weight: 800; font-size: 17px; text-decoration: none; }
.grp-k a:hover { background: var(--select); }
.grp-k a.story { border-color: var(--logo); color: var(--deep); }
@media (max-width: 820px) {
  .strip-in { flex-direction: column; align-items: stretch; width: min(420px, 100% - 32px); }
  .grp { display: grid; grid-template-columns: 92px minmax(0, 1fr); }
  .grp-k { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .grp-k a { min-width: 0; }
}

/* the app parts in the rows (owner 2026-10-26: direction B, exam paper option 1, scores option 6); values from
   Velang_Frontend paper_led_style.dart (light), motion from paper_led_motion.dart */
.app { --ink: #222326; --muted: #5E6166; --blue: #2E7CB3; --blueDeep: #1F5F8F; --line: #ECEDEF;
  width: min(393px, 100%); padding: 18px 16px 16px; border: 2px solid #E1E2E5; border-radius: 30px; background: #fff; box-shadow: 0 6px 0 #E6E7E9;
  color: var(--ink); font-family: "Outfit", system-ui, sans-serif; text-align: start; line-height: 1.3; }
.app button { font: inherit; color: inherit; cursor: pointer; }
.app button:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.a-card { border: 1.5px solid #E1E2E5; border-radius: 18px; background: #fff; box-shadow: 0 3px 0 #E6E7E9; }
.tag { padding: 0 2px; border-radius: 4px; font-weight: 600; }
.tag.blue { background: #DCEBF8; color: #1F5A86; }
.tag.orange { background: #FBE3CC; color: #9C4A12; }
.badgeN.orange { background: #9C4A12; }
.badge3, .badgeN { display: inline-grid; place-items: center; width: 19px; height: 19px; margin-inline-start: 3px; border-radius: 50%; background: #1F5A86; color: #fff; font-size: 12px; font-weight: 700; vertical-align: 1px; }
.ok { color: #2F8F4E; font-weight: 700; }
.a-paper { margin-top: 12px; padding: 12px 12px 10px; border: 1px solid #CFCFCF; background: #fff; font-family: Arimo, Arial, Helvetica, sans-serif; color: #111; }
.a-paper .ph { display: flex; justify-content: space-between; padding-bottom: 6px; border-bottom: 2px solid #111; font-weight: 700; font-size: 15px; }
.a-paper .pi { margin: 8px 0 10px; color: #A6A9AE; font-size: 13px; }
.a-src { padding: 8px 10px; border-radius: 8px; background: #F1F6FB; font-size: 13.5px; line-height: 1.5; }
.a-src .lbl { font-size: 11px; font-weight: 700; letter-spacing: .04em; color: #444; }
.a-src .ttl { font-weight: 700; font-size: 14.5px; margin-bottom: 2px; }
.a-paper .cols { display: grid; grid-template-columns: minmax(0, 1fr) 52px 52px 16px; margin-top: 10px; text-align: center; font-size: 12px; font-weight: 700; color: #444; }
.a-paper .q { display: grid; grid-template-columns: 18px minmax(0, 1fr) 52px 52px 16px; align-items: center; padding: 6px 0; border-top: 1px solid #E2E2E2; font-size: 13.5px; color: #A6A9AE; }
.a-paper .q .box { border-color: #C9CCD0; }
.a-paper .q.on { margin: 0 -6px; padding: 6px; border-radius: 8px; background: #F1F6FB; color: #111; }
.a-paper .q.on .box { border-color: #111; }
.a-paper .q.on .box.right { border-color: #2F8F4E; }
.a-paper .q.on .box.wrong { border-color: #C8412F; }
.tray-q[hidden] { display: none; }
.box { justify-self: center; width: 22px; height: 22px; border: 1.5px solid #111; display: grid; place-items: center; color: #1F4E9A; font-size: 14px; font-weight: 700; line-height: 1; }
.box.right { border-color: #2F8F4E; }
.box.wrong { border-color: #C8412F; color: #C8412F; }
.a-vel { display: flex; align-items: flex-end; gap: 10px; margin: 14px 0 4px; }
.a-vel img { width: 54px; height: auto; flex: none; }
.a-bubble { flex: 1; padding: 12px 15px; border-radius: 20px; background: #F0F1F2; font-size: 16px; line-height: 1.45; }
.a-tray { margin: 12px -16px 0; padding: 12px 16px 0; border-top: 1px solid var(--line); }
.a-tray .kick { color: var(--muted); font-size: 14px; }
.a-tray .qq { margin: 4px 0 10px; font-weight: 600; font-size: 17px; }
.keys { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.key { min-height: 48px; border: 1.5px solid #D5D9DD; border-radius: 14px; background: #fff; box-shadow: 0 4px 0 #E5E5E5; font-weight: 600 !important; font-size: 16px !important; color: #23282E !important; display: flex; align-items: center; justify-content: center; gap: 8px; }
.key[aria-pressed="true"] { background: #CFE4F4; border-color: #8FBBDD; box-shadow: 0 4px 0 #8FBBDD; color: #1F5A86 !important; }
.key.right { background: #D3ECDC; border-color: #8CC7A2; box-shadow: 0 4px 0 #8CC7A2; color: #1F6B3E !important; }
.key svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.go { width: 100%; min-height: 50px; margin-top: 16px; border: 0; border-radius: 16px; background: var(--blue); box-shadow: 0 4px 0 var(--blueDeep); color: #fff !important; font-weight: 700 !important; font-size: 17px !important; }
.go:disabled { background: #D8DADD; box-shadow: 0 4px 0 #C3C6CA; color: #8A8D92 !important; cursor: default; }
.b-head { font-family: "Lora", Georgia, serif; font-weight: 600; font-size: 28px; line-height: 1.15; }
.b-sub { margin: 4px 0 12px; color: var(--muted); font-size: 15px; }
.b-card { overflow: hidden; }
.b-card .cap { padding: 9px 14px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12.5px; font-weight: 600; letter-spacing: .03em; }
.b-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; padding: 10px 14px 12px; border-top: 1px solid var(--line); }
.b-row:first-of-type { border-top: 0; }
.b-row.lit { background: #F1F6FB; }
.b-row b { font-weight: 600; font-size: 17px; }
.b-row > b { justify-self: start; }
.b-row small { color: var(--muted); font-size: 14px; }
.b-row .sc { grid-row: 1 / span 2; grid-column: 2; align-self: center; font-weight: 600; font-size: 16px; }
.b-row .sc.none { color: var(--muted); }
.b-row .sc::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-inline-start: 12px; border: solid #6B7370; border-width: 2px 2px 0 0; transform: rotate(45deg); vertical-align: 2px; }
.b-row .bar::after { content: none; }
.b-row .bar { position: static; grid-column: 1 / -1; height: 5px; margin-top: 6px; border-radius: 3px; background: #E5E5E5; overflow: hidden; }
.b-row .bar i { position: static; transform: none; border-radius: 0; display: block; height: 100%; width: var(--w); background: var(--blue); transition: width 1s ease .2s; }
.js-reveal .board:not(.is-in) .bar i { width: 0; }
.c-card { display: grid; grid-template-columns: minmax(0, 1fr) 48%; overflow: hidden; border: 1.5px solid #E1E2E5; border-radius: 20px; background: #fff; box-shadow: 0 4px 0 #E6E7E9; }
.c-txt { padding: 14px; }
.c-kick { color: #2E7CB4; font-size: 11.5px; font-weight: 700; letter-spacing: .03em; }
.c-ttl { margin-top: 2px; font-weight: 700; font-size: 19px; line-height: 1.15; }
.c-prog { display: flex; align-items: center; gap: 8px; margin-top: 10px; color: var(--muted); font-size: 12px; }
.c-bar { flex: 1; height: 5px; border-radius: 3px; background: #E5E5E5; }
.c-card > img { width: 100%; height: 100%; object-fit: cover; }
.c-nodes { direction: ltr; position: relative; display: grid; gap: 6px; width: 260px; margin: 22px auto 4px; }
.c-route { position: absolute; inset: 0; width: 260px; height: 264px; }
.c-node { position: relative; }
.c-node { width: 84px; height: 84px; padding: 4px; border-radius: 24px; background: #fff; box-shadow: 0 4px 0 #D5D7DB, 0 0 0 1.5px #E1E2E5; }
.c-node img { width: 100%; height: 100%; object-fit: cover; border-radius: 20px; filter: grayscale(1); opacity: .55; }
.c-node.now { box-shadow: 0 4px 0 #D5D7DB, 0 0 0 1.5px #E1E2E5, 0 0 0 7px #fff, 0 0 0 9px #C9CCD0; }
.c-node.now img { filter: none; opacity: 1; }
.c-node.r { justify-self: end; }
.c-line { padding: 16px; }
.c-pic { display: block; width: 100%; height: auto; border-radius: 22px; }
.c-bub { position: relative; width: fit-content; max-width: 88%; margin: -26px 0 0 -4px; padding: 10px 16px 12px; border-radius: 20px; background: #E5F2DE; box-shadow: 0 4px 0 #B9D9AE; }
.c-who { display: flex; align-items: center; gap: 10px; }
.c-who img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; object-position: 72% 18%; border: 2px solid #fff; }
.c-who b { color: #3D6B35; font-weight: 600; font-size: 15px; }
.c-spk { width: 30px; height: 30px; padding: 0; border: 0; background: none; }
.c-line [data-play] { cursor: pointer; }
.c-spk.playing svg path:last-child { animation: spk 0.9s ease-in-out infinite; }
@keyframes spk { 50% { opacity: .35; } }
.c-spk svg { width: 26px; height: 26px; }
.c-en { padding: 2px 9px; border: 0; border-radius: 8px; background: #DCEBF8; box-shadow: 0 2px 0 #A9CBE8; color: #1F5A86 !important; font-weight: 700 !important; font-size: 13px !important; }
.c-en[aria-pressed="true"] { background: #CFE4F4; }
.c-de { margin-top: 6px; font-size: 22px; font-weight: 500; }
.c-tr { color: var(--muted); font-size: 15px; }
/* motion: the app's lesson timeline (paper_led_motion.dart), 900 ms from a step change */
@keyframes velIn { from { opacity: 0; transform: translateY(10px) scale(.97); } }
@keyframes catIn { from { opacity: 0; transform: translateY(6px); } }
@keyframes trayUp { from { opacity: 0; transform: translateY(26px); } }
@keyframes tintIn { from { background-color: transparent; } }
@keyframes litIn { from { background-color: transparent; } }
@keyframes popIn { 0% { opacity: 0; transform: scale(.4); } 70% { opacity: 1; transform: scale(1.15); } 100% { transform: scale(1); } }
@keyframes scrIn { from { opacity: 0; transform: translateX(22px); } }
@keyframes scrBack { from { opacity: 0; transform: translateX(-22px); } }
.ok { display: inline-block; }
.m-enter .a-bubble, .m-soft .a-bubble { animation: velIn 340ms cubic-bezier(.2, .7, .2, 1) 100ms both; }
.m-enter .a-vel img { animation: catIn 380ms ease-out both; }
.m-enter .a-tray { animation: trayUp 320ms cubic-bezier(.2, .7, .2, 1) 60ms both; }
.m-enter .tag, .m-soft .tag { animation: tintIn 450ms ease-out 380ms both; }
.m-enter .q.on, .m-enter .mc.on, .m-enter .t-card.on, .m-enter .b-row.lit, .m-enter .r-rows .lit { animation: litIn 500ms ease-out 200ms both; }
.m-enter .badge3, .m-enter .badgeN, .m-enter .ok, .m-enter .box.right, .m-enter .key.right svg,
.m-soft .badge3, .m-soft .badgeN, .m-soft .box.wrong { animation: popIn 360ms cubic-bezier(.2, .7, .2, 1) 300ms both; }
.m-enter.view, .m-enter > .view:not([hidden]) { animation: scrIn 300ms cubic-bezier(.2, .7, .2, 1) both; }
.m-back.view { animation: scrBack 300ms cubic-bezier(.2, .7, .2, 1) both; }
.m-back .a-bubble { animation: velIn 340ms cubic-bezier(.2, .7, .2, 1) 100ms both; }
/* a part of the paper takes or loses its dimming over .35 s, no overshoot */
.a-paper .q, .mc, .t-card, .t-title, .a-src, .b-row, .r-rows p { transition: color .35s cubic-bezier(.2, .7, .2, 1), background-color .35s cubic-bezier(.2, .7, .2, 1); }
/* keys and buttons press down onto their lip */
.key, .go, .c-en { transition: transform .08s ease-out, box-shadow .08s ease-out; }
.key:active:not(:disabled), .go:active:not(:disabled) { transform: translateY(2px); box-shadow: 0 2px 0 var(--lip, #E5E5E5); }
.key { --lip: #E5E5E5; } .key[aria-pressed="true"] { --lip: #8FBBDD; } .key.right { --lip: #8CC7A2; } .go { --lip: var(--blueDeep); }
.c-tr:not([hidden]) { animation: velIn 340ms cubic-bezier(.2, .7, .2, 1) both; }
@media (prefers-reduced-motion: reduce) { [class*="m-"] *, [class*="m-"] { animation: none !important; } .key, .go { transition: none; } }
@media (prefers-reduced-motion: reduce) { .b-row .bar i, .a-player .track i { transition: none; } }
  
[dir="rtl"] .b-row .sc::after { transform: rotate(-135deg); }
.b-head + .a-card { margin-top: 12px; }

/* rows */
.row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 6vw, 88px); align-items: center; padding: clamp(40px, 6.5vw, 80px) 0; }
.rows { padding-block: clamp(16px, 3vw, 40px); }
.row.flip .vis { order: 2; }
.row h2 { margin-bottom: 14px; }
.row .txt p { color: var(--muted); font-size: 21px; max-width: 28ch; }
.vis { position: relative; display: flex; justify-content: center; }
.scene { width: 100%; border-radius: 32px; overflow: hidden; box-shadow: 0 0 0 3px var(--sky); aspect-ratio: 3 / 2; background: var(--select); }
.scene img { width: 100%; height: 100%; object-fit: cover; }
.dot { position: absolute; inset-inline-start: -10px; bottom: -18px; width: 84px; height: 84px; border-radius: 50%; border: 4px solid #fff; box-shadow: 0 0 0 3px var(--sky); overflow: hidden; background: #fff; animation: bob 5s ease-in-out infinite alternate; }
.dot img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 820px) {
  .row { grid-template-columns: minmax(0, 1fr); text-align: center; }
  .row.flip .vis { order: 0; }
  .row .txt p { margin-inline: auto; }
}

/* voice */
.voice { width: 100%; display: flex; flex-direction: column; gap: 18px; align-items: center; }
.voice .face { width: min(280px, 70%); aspect-ratio: 1; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 6px var(--select), 0 0 0 9px var(--sky); }
.voice .face img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; }
.line { display: flex; align-items: center; gap: 14px; width: min(440px, 100%); padding: 14px 18px; border: 2px solid var(--line); border-radius: 20px; background: #fff; box-shadow: 0 4px 0 var(--line); cursor: pointer; text-align: start; }
.line .p { flex: none; width: 48px; height: 48px; border-radius: 50%; background: var(--action); display: grid; place-items: center; }
.line .p svg { width: 20px; height: 20px; fill: #fff; }
.line.on { border-color: var(--logo); }
.line.on .p { background: var(--gold); }
.line.on .p svg { fill: var(--navy); }
.line em { display: block; font-family: var(--serif); font-style: normal; font-weight: 700; font-size: 22px; line-height: 1.2; }
.line .tr { font-size: 15px; color: var(--muted); }

/* ui cards: plan + mock */
.ui-card { width: min(420px, 100%); padding: 22px; border: 2px solid var(--line); border-radius: 28px; background: #fff; box-shadow: 0 6px 0 var(--line); text-align: start; }
.ui-card header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; font-family: var(--display); font-weight: 800; }
.ui-card header b { background: var(--select); color: var(--deep); border-radius: 10px; padding: 4px 10px; font-size: 14px; }
.paper-card { padding: 18px; }
.sheet { background: #fff; border: 1.5px solid #D9DEE3; border-radius: 6px; padding: 14px; font-family: Arial, "Helvetica Neue", sans-serif; font-size: 14px; line-height: 1.55; color: #23282E; text-align: left; }
.sheet-head { display: flex; justify-content: space-between; padding-bottom: 6px; margin-bottom: 10px; border-bottom: 2px solid #23282E; font-size: 15px; }
.player { display: flex; align-items: center; gap: 12px; width: 100%; margin-bottom: 10px; padding: 10px 12px; border: 0; border-radius: 10px; background: #EAF2FA; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.player .p { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--action); box-shadow: 0 3px 0 var(--deep); }
.player .p svg { width: 16px; height: 16px; fill: #fff; }
.wave { flex: 1; display: flex; align-items: center; gap: 3px; height: 34px; min-width: 0; }
.wave i { flex: 1; height: var(--h); border-radius: 2px; background: #9CC3E4; }
.player.on .wave i { background: var(--action); animation: wave .9s ease-in-out var(--d) infinite alternate; }
@keyframes wave { to { transform: scaleY(.35); } }
.plabel { display: grid; text-align: end; font-size: 12px; line-height: 1.25; color: #5B6570; }
.plabel b { font-size: 14px; color: #23282E; }
.heard { background: #F1F5F9; border-radius: 6px; padding: 10px 12px; }
.src-label { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #5B6570; }
.badge { display: inline-grid; place-items: center; width: 18px; height: 18px; margin-inline-start: 4px; border-radius: 50%; background: #1F4E79; color: #fff; font-size: 11px; font-weight: 700; vertical-align: 1px; }
.rf { display: flex; justify-content: flex-end; gap: 10px; margin: 10px 30px 4px 0; font-size: 12px; font-weight: 700; }
.item { display: grid; grid-template-columns: 18px minmax(0, 1fr) 22px 22px 16px; gap: 8px; align-items: center; background: #F1F5F9; border-radius: 6px; padding: 8px 10px; }
.item .n { font-weight: 700; }
.item .box { width: 20px; height: 20px; border: 1.5px solid #23282E; border-radius: 2px; display: grid; place-items: center; font-size: 13px; color: #1F5A86; }
.item .box.on { border-color: #2E8B57; }
.item .ok { color: #2E8B57; font-weight: 700; }
.item .no { font-style: normal; color: #C0392B; margin-inline-start: 3px; font-size: 12px; }
.hl { border-radius: 4px; padding: 0 3px; font-weight: 700; transition: background-color .5s ease, color .5s ease; }
.hl-src { background: #D6E8F7; color: #1F5A86; transition-delay: .3s; }
.hl-bad { background: #FBE1CC; color: #B4501E; transition-delay: .8s; }
.js-reveal .paper-card:not(.is-in) .hl { background: transparent; color: inherit; }
.tutor { display: flex; align-items: flex-end; gap: 10px; margin-top: 14px; }
.tutor img { width: 72px; height: 72px; flex: none; }
.bubble { flex: 1; background: #fff; border: 1.5px solid var(--line); border-radius: 16px; box-shadow: 0 4px 0 var(--line); padding: 10px 14px; font-size: 15px; line-height: 1.5; transition: opacity .5s ease 1.2s, transform .5s ease 1.2s; }
.js-reveal .paper-card:not(.is-in) .bubble { opacity: 0; transform: translateY(6px); }
.bubble .hl { font-weight: 600; white-space: nowrap; }
.mod { display: grid; grid-template-columns: 96px minmax(0, 1fr) 92px; gap: 12px; align-items: center; padding: 9px 0; font-weight: 600; }
.mod b { text-align: end; }
.mod b.marking { font-size: 12px; font-weight: 600; color: var(--muted); }
.bar { position: relative; height: 14px; border-radius: 9px; background: var(--select); }
.bar i { position: absolute; inset-block: 0; inset-inline-start: 0; width: var(--w); border-radius: 9px; background: var(--action); transform: scaleX(0); transform-origin: left; transition: transform 1s cubic-bezier(.22, 1, .36, 1) .2s; }
[dir="rtl"] .bar i { transform-origin: right; }
.bar::after { content: ""; position: absolute; inset-inline-start: 60%; top: -4px; bottom: -4px; width: 3px; border-radius: 2px; background: var(--navy); opacity: .35; }
.is-in .bar i { transform: none; }
.weak .bar i { background: var(--gold); }
.weak b { color: var(--bad); }
.note { margin-top: 10px; padding: 10px 14px; border-radius: 14px; background: var(--select); font-size: 15px; color: var(--muted); }

/* vel row */
.velrow { position: relative; width: min(380px, 100%); aspect-ratio: 1; }
.velrow .disc { position: absolute; inset: 6% 6% 0; border-radius: 50%; background: var(--select); }
.velrow img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }

/* devices */
.devices { position: relative; width: min(460px, 100%); aspect-ratio: 46 / 34; }
.browser { position: absolute; inset: 0 12% 10% 0; border: 3px solid var(--line); border-radius: 22px; background: var(--select); display: grid; place-items: center; box-shadow: 0 6px 0 var(--line); }
.browser .bar-dots { position: absolute; top: 14px; inset-inline-start: 16px; display: flex; gap: 6px; }
.browser .bar-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--sky); }
.browser .url { position: absolute; top: 9px; left: 50%; transform: translateX(-50%); padding: 3px 14px; border-radius: 8px; background: #fff; font-size: 13px; font-weight: 600; color: var(--muted); direction: ltr; }
.browser img { width: 22%; border-radius: 22%; }
.handset { position: absolute; right: 0; bottom: 0; width: 30%; aspect-ratio: 9 / 18; border: 3px solid var(--navy); border-radius: 22px; background: #fff; display: grid; place-items: center; box-shadow: 0 6px 0 var(--line); }
[dir="rtl"] .browser { inset: 0 0 10% 12%; }
[dir="rtl"] .handset { right: auto; left: 0; }
.handset img { width: 46%; border-radius: 22%; }

/* founder quote */
.quote { position: relative; text-align: center; padding: clamp(56px, 9vw, 110px) 0 clamp(64px, 10vw, 120px); }
.quote-objects .float { width: var(--s, 88px); }
.q1 { left: 2%; top: 8%; --s: 96px; --d: 5s; }
.q2 { right: 3%; top: 4%; --s: 100px; --d: 5.5s; --delay: -1s; }
.q3 { left: 12%; bottom: 6%; --s: 76px; --d: 6s; --delay: -2s; }
.q4 { right: 12%; bottom: 6%; --s: 84px; --d: 4.8s; --delay: -3s; }
.quote blockquote { position: relative; z-index: 2; max-width: 20em; margin: 0 auto 18px; font-family: var(--serif); font-weight: 700; font-size: clamp(26px, 3.6vw, 42px); line-height: 1.3; text-wrap: balance; }
.quote cite { font-style: normal; font-weight: 600; color: var(--muted); }
@media (max-width: 820px) {
  .quote-objects { display: flex; justify-content: center; gap: 14px; margin-bottom: 28px; }
  .quote-objects .float { position: static; width: 64px; }
}

/* faq */
.faq { padding: 0 0 clamp(56px, 8vw, 96px); }
.faq h2 { text-align: center; margin-bottom: 28px; }
.faq-list { max-width: 760px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { border: 2px solid var(--line); border-radius: 20px; background: #fff; box-shadow: 0 3px 0 var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 22px; font-family: var(--display); font-weight: 800; font-size: 19px; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--action); font-size: 24px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 22px 20px; color: var(--muted); }
.faq details a { color: var(--action); font-weight: 600; }

/* closing band */
.band { color: #fff; text-align: center; }
.band svg { display: block; width: 100%; height: clamp(40px, 8vw, 110px); fill: var(--action); }
.band-in { background: var(--action); padding: 24px 16px clamp(64px, 9vw, 110px); margin-top: -1px; }
.band h2 { max-width: 13ch; margin: 0 auto 28px; }

/* footer */
.site-footer { background: var(--navy); color: var(--sky); padding: 44px 0 36px; font-size: 15px; }
.site-footer .brand { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 28px; }
.footer-grid nav { display: flex; flex-direction: column; gap: 8px; }
.footer-grid strong { color: #fff; font-family: var(--display); font-weight: 800; }
.site-footer a { color: #fff; text-decoration: none; font-weight: 500; }
.site-footer a:hover { text-decoration: underline; }
.footer-note { margin-top: 32px; opacity: .85; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid .brand { grid-column: 1 / -1; } }

@media (prefers-reduced-motion: reduce) {
  .hl, .bubble { transition: none !important; }
  .player.on .wave i { animation: none; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .bar i { transform: none; }
  html { scroll-behavior: auto; }
}

/* homepage "one scene at a time" (owner approved 2026-10-27, design-memory-map.md), led by the exams (owner, same day:
   "lead with the exams, also the mobile version lacks the wows"): the exam fan hero with Vel, the pinned tour through the
   four app parts (exam paper and scores first), the Chapter 1 reel. Behaviour: site/home-scene.js */
:root { --ease: cubic-bezier(.2, .7, .2, 1); --lip: #D5E4F0; }
.rise { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--dl, 0s); }
.rise.is-in { opacity: 1; transform: none; }
html:not(.js) .rise { opacity: 1; transform: none; }

/* hero: the words, and the four exam screens fanning out */
.x-hero { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; gap: clamp(28px, 5vw, 72px);
  min-height: min(780px, calc(100svh - 72px)); padding: clamp(20px, 4vw, 48px) 0 clamp(48px, 6vw, 80px); }
.x-hero h1 { font-size: clamp(46px, 6.4vw, 84px); }
.x-hero h1 .ln { display: block; overflow: hidden; padding-bottom: .06em; }
.x-hero h1 .ln > span { display: inline-block; transform: translateY(105%); animation: lineUp .9s var(--ease) forwards; animation-delay: var(--dl); }
@keyframes lineUp { to { transform: none; } }
.x-hero .sub { margin: 20px 0 32px; color: var(--muted); font-size: clamp(19px, 1.9vw, 22px); max-width: 30ch; }
.x-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.x-boards { display: flex; align-items: center; gap: 22px; margin-top: 34px; }
.x-boards img { height: 34px; width: auto; opacity: .9; }
.x-boards img[src*="telc"] { height: 22px; }
.x-boards span { width: 2px; height: 26px; background: var(--line); border-radius: 1px; }

.x-scene { position: relative; }
.x-hfan { --s: 1; --w: 184px; --o1: 198px; --o2: 66px; --dy: 38px; position: relative; height: calc(var(--w) * 1.962 + 14px + 48px + var(--dy)); }
.x-dev { position: absolute; left: 50%; top: 0; width: var(--w); margin: 0 0 0 calc(var(--w) / -2); transform: translateY(40px) scale(.9); opacity: 0;
  transition: transform 1s var(--ease), opacity .5s var(--ease), filter .3s; }
[dir="rtl"] .x-hfan { --s: -1; }
.x-dev:nth-child(1) { z-index: 2; } .x-dev:nth-child(2) { z-index: 3; } .x-dev:nth-child(3) { z-index: 3; } .x-dev:nth-child(4) { z-index: 2; }
:is(.x-hfan.is-in, html:not(.js) .x-hfan) .x-dev { opacity: 1; }
:is(.x-hfan.is-in, html:not(.js) .x-hfan) .x-dev:nth-child(1) { transform: translateX(calc(var(--o1) * -1 * var(--s))) translateY(var(--dy)) rotate(calc(-9deg * var(--s))); transition-delay: .35s; }
:is(.x-hfan.is-in, html:not(.js) .x-hfan) .x-dev:nth-child(2) { transform: translateX(calc(var(--o2) * -1 * var(--s))) rotate(calc(-3deg * var(--s))); transition-delay: .25s; }
:is(.x-hfan.is-in, html:not(.js) .x-hfan) .x-dev:nth-child(3) { transform: translateX(calc(var(--o2) * var(--s))) translateY(-4px) rotate(calc(3deg * var(--s))); transition-delay: .3s; }
:is(.x-hfan.is-in, html:not(.js) .x-hfan) .x-dev:nth-child(4) { transform: translateX(calc(var(--o1) * var(--s))) translateY(var(--dy)) rotate(calc(9deg * var(--s))); transition-delay: .4s; }
.x-dev .fl { animation: drift 5s ease-in-out infinite alternate; animation-delay: calc(var(--k, 0) * -1.3s); }
.x-dev:nth-child(2) .fl { --k: 1; } .x-dev:nth-child(3) .fl { --k: 2; } .x-dev:nth-child(4) .fl { --k: 3; }
@keyframes drift { from { transform: translateY(-5px); } to { transform: translateY(5px); } }
.x-dev .scr { padding: 6px; border: 2px solid #D5D9DD; border-radius: 30px; background: #fff; box-shadow: 0 6px 0 #E5E5E5; transition: transform .35s var(--ease); }
.x-dev img { width: 100%; border-radius: 24px; aspect-ratio: 786 / 1542; object-fit: cover; }
.x-dev figcaption { margin-top: 14px; text-align: center; font-family: var(--display); font-weight: 800; font-size: 17px; }
.x-hfan.is-in .x-dev:hover { z-index: 5; }
.x-hfan.is-in .x-dev:hover .scr { transform: translateY(-14px); }
.x-hfan:has(.x-dev:hover) .x-dev:not(:hover) { filter: saturate(.6) opacity(.8); }

/* Vel: body, tail, lids and happy eyes are separate layers of the same cat (vel-is-mostly-cat) */
.x-vel { position: absolute; z-index: 6; width: var(--vw, 150px); aspect-ratio: 1; padding: 0; border: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.x-vel img { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.x-vel .tail { transform-origin: 63% 92%; animation: tail 3.6s ease-in-out infinite alternate; }
@keyframes tail { from { transform: rotate(-5deg); } to { transform: rotate(6deg); } }
.x-vel .lid { opacity: 0; animation: blink 5.2s steps(1) infinite; animation-delay: var(--bd, 1.6s); }
@keyframes blink { 0%, 95% { opacity: 0; } 96%, 99% { opacity: 1; } }
.x-vel .happy { opacity: 0; transition: opacity .12s; }
.x-vel.is-happy .happy { opacity: 1; }
.x-vel.is-happy .lid { animation: none; opacity: 0; }
.x-vel .body { transition: transform .25s var(--ease); }
.x-vel.is-happy .body, .x-vel.is-happy .tail, .x-vel.is-happy .happy { transform: translateY(-3px); }
.x-scene .x-vel { --vw: 136px; inset-inline-start: -70px; bottom: 58px; opacity: 0; animation: velUp .55s var(--ease) 1.2s forwards; }
@keyframes velUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* tour: the four app parts, pinned on wide screens */
.x-tour { position: relative; padding: clamp(56px, 8vw, 110px) 0 0; }
.x-tour-in { position: relative; }
.x-step { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 6vw, 88px); align-items: center; padding: 40px 0; }
.x-step .x-vis { display: flex; justify-content: center; }
.x-num { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; color: var(--action); font-family: var(--display); font-weight: 800; font-size: 15px; letter-spacing: .08em; }
.x-num::after { content: ""; width: 40px; height: 2px; border-radius: 1px; background: var(--sky); }
.x-step h2 { margin-bottom: 14px; }
.x-step .x-txt p:last-child { color: var(--muted); font-size: 21px; max-width: 28ch; }
.x-tour .app { --ink: #222326; }
.x-tour .app:not(.is-on) .bar i { width: 0; }

.x-stage { display: none; }
@media (min-width: 980px) {
  .x-tour.is-pinned .x-tour-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 6vw, 88px); }
  .x-tour.is-pinned .x-stage { display: flex; align-items: center; justify-content: center; position: sticky; top: 0; height: 100vh; }
  .x-tour.is-pinned .x-steps { grid-column: 2; grid-row: 1; }
  .x-tour.is-pinned .x-stage { grid-column: 1; grid-row: 1; }
  .x-tour.is-pinned .x-step { display: flex; min-height: 88vh; padding: 0; }
  /* first and last steps are as tall as the stage, so the phone is fully in view while their words are centred */
  .x-tour.is-pinned .x-step:first-child, .x-tour.is-pinned .x-step:last-child { min-height: 100vh; }
  .x-tour.is-pinned .x-step .x-vis { display: none; }
  .x-tour.is-pinned .x-txt { transition: opacity .45s var(--ease), transform .45s var(--ease); }
  .x-tour.is-pinned .x-step:not(.is-on) .x-txt { opacity: .28; transform: translateY(6px); }
}
.x-phone { position: relative; display: grid; place-items: center; width: 100%; }
.x-phone::before { content: ""; position: absolute; width: min(520px, 104%); aspect-ratio: 1; border-radius: 50%; background: var(--select); transform: scale(var(--disc, 1)); transition: transform .9s var(--ease); }
.x-phone > .app { grid-area: 1 / 1; position: relative; transition: opacity .32s var(--ease), visibility 0s .32s; }
.x-phone > .app:not(.is-on) { opacity: 0; visibility: hidden; }
.x-phone > .app.is-on { transition: opacity .32s var(--ease); }
.x-rail { position: absolute; inset-inline-end: 0; top: 50%; transform: translateY(-50%); display: grid; gap: 10px; }
.x-rail button { width: 10px; height: 34px; padding: 0; border: 0; border-radius: 5px; background: var(--line); cursor: pointer; transition: background .3s, height .3s var(--ease); }
.x-rail button[aria-current="true"] { height: 52px; background: var(--action); }

/* Chapter 1 reel: pinned while its pictures slide past, on every screen */
.x-reel { position: relative; background: var(--navy); color: #fff; }
.x-reel-pin { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); align-items: center; gap: 48px; padding: clamp(64px, 9vw, 110px) 0; overflow: hidden; }
.x-reel .kick { color: var(--sky); font-family: var(--display); font-weight: 800; font-size: 14px; letter-spacing: .1em; }
.x-reel h2 { margin: 10px 0 16px; color: #fff; }
.x-reel p.t { color: #CFE0F0; font-size: 21px; max-width: 24ch; margin-bottom: 30px; }
.x-track { display: flex; gap: 20px; will-change: transform; }
.x-shot { flex: none; width: clamp(280px, 33vw, 500px); aspect-ratio: 3 / 2; border-radius: 24px; overflow: hidden; box-shadow: 0 7px 0 #0D2440; background: #1D3F66; }
.x-shot img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 1.2s var(--ease); }
.x-shot.is-in img { transform: none; }
.x-shot.cover { width: clamp(300px, 34vw, 480px); aspect-ratio: 16 / 9; }
.x-reel-wrap { position: relative; }
.x-clip { min-width: 0; }
.x-reel-txt { position: relative; z-index: 2; }
.x-reel.is-pinned { height: 300vh; }
.x-reel.is-pinned .x-reel-wrap { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; align-items: center; overflow: hidden; }
.x-reel.is-pinned .x-reel-pin { overflow: visible; }
@media (min-width: 980px) {
  .x-reel.is-pinned .x-clip { clip-path: inset(-20px -100vw -20px 0); }
  [dir="rtl"] .x-reel.is-pinned .x-clip { clip-path: inset(-20px 0 -20px -100vw); }
}
@media (max-width: 979px) {
  .x-reel-pin { grid-template-columns: 1fr; gap: 28px; }
  .x-reel h2 { margin: 8px 0 10px; }
  .x-reel p.t { font-size: 18px; margin-bottom: 20px; }
  .x-reel:not(.is-pinned) .x-track { overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: -16px; padding: 0 16px 14px; scrollbar-width: none; }
  .x-track::-webkit-scrollbar { display: none; }
  .x-shot { width: 74vw; scroll-snap-align: center; }
  .x-shot.cover { width: 80vw; }
  .x-reel.is-pinned { height: 330vh; }
  .x-reel.is-pinned .x-reel-pin { padding: 0; }
}

/* closing band with Vel */
.x-band { position: relative; }
.x-band .x-vel { --vw: 128px; left: 50%; margin-left: -64px; top: clamp(-70px, -5vw, -40px); }
[dir="rtl"] .x-band .x-vel { left: auto; right: 50%; margin: 0 -64px 0 0; }
.x-band .band-in { padding-top: 48px; }

/* small screens */
@media (max-width: 1240px) and (min-width: 980px) { .x-hfan { --w: 156px; --o1: 150px; --o2: 52px; } }
@media (max-width: 979px) {
  .x-hero { grid-template-columns: 1fr; min-height: 0; padding-top: 12px; gap: 36px; }
  .x-hfan { --w: clamp(108px, 31vw, 150px); --o1: min(28vw, 200px); --o2: min(9.5vw, 66px); --dy: 22px; }
  .x-dev figcaption { margin-top: 10px; font-size: 14px; }
  .x-dev .scr { padding: 4px; border-radius: 20px; box-shadow: 0 4px 0 #E5E5E5; }
  .x-dev img { border-radius: 16px; }
  /* phones: no Vel in the hero (owner 2026-10-27) */
  .x-scene .x-vel { display: none; }
  .x-step { grid-template-columns: 1fr; gap: 28px; padding: 36px 0 52px; }
  .x-step .x-vis { order: 2; }
  .x-step .x-txt p:last-child { font-size: 19px; }
  /* each app part tilts up into place as it is reached, then plays the app's own motion */
  .js .x-tour:not(.is-pinned) .x-vis .app { opacity: 0; transform: perspective(1000px) rotateX(16deg) translateY(56px) scale(.93); transform-origin: 50% 100%;
    transition: opacity .7s var(--ease), transform 1.1s var(--ease); }
  .js .x-tour:not(.is-pinned) .x-vis.is-in .app { opacity: 1; transform: none; }
  .x-tour:not(.is-pinned) .m-enter.view { animation: none; }
}

@media (prefers-reduced-motion: reduce) {
  .rise, .x-hero h1 .ln > span, .x-scene .x-vel { animation: none !important; opacity: 1 !important; transform: none !important; transition: none !important; }
  .x-dev, .x-shot img, .js .x-tour .x-vis .app { transition: none !important; }
  .x-dev { opacity: 1; }
  .x-dev .fl, .x-vel .tail { animation: none; }
  .js .x-tour:not(.is-pinned) .x-vis .app { opacity: 1; transform: none; }
}

/* tap to open (owner 2026-10-27: "pressing the modules screenshots should open preview them, and similar intuitive stuff") */
button.scr { display: block; width: 100%; font: inherit; color: inherit; cursor: zoom-in; }
.x-shot button { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.x-tour .b-row[data-open] { cursor: pointer; transition: background-color .2s; }
.x-tour .b-row[data-open]:hover { background: #F6F9FC; }
.x-tour .b-row.lit[data-open]:hover { background: #E8F1F9; }
.x-tour .b-row[data-open]:focus-visible { outline: 3px solid var(--blue); outline-offset: -3px; }
.x-tour a.c-card { color: inherit; text-decoration: none; transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.x-tour a.c-card:hover { transform: translateY(-2px); box-shadow: 0 6px 0 #E6E7E9; }
.x-tour a.c-card:active { transform: translateY(3px); box-shadow: 0 1px 0 #E6E7E9; }

/* the exam paper scrolls inside its card, as in the app; its header stays */
.x-tour #app-lesson .a-paper { max-height: 300px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; padding-top: 0; }
.x-tour #app-lesson .a-paper .ph { position: sticky; top: 0; z-index: 1; padding-top: 12px; background: #fff; }
.x-tour #app-lesson .a-paper .ph::after { content: none; }

/* viewer: the tapped picture grows into it and goes back on close (site/home-scene.js); the page keeps its width */
.lb-open { overflow: hidden; }
.x-lb { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; color: #fff; overflow: hidden; }
.x-lb::backdrop { background: transparent; }
.x-lb[open] { display: grid; grid-template-rows: minmax(0, 1fr) auto; }
.lb-bg { position: absolute; inset: 0; background: rgba(13, 31, 56, .9); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.lb-stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 76px 96px 8px; touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; }
.lb-stage:active { cursor: grabbing; }
.lb-fig { margin: 0; will-change: transform; }
.lb-frame { position: relative; overflow: hidden; background: #fff; transform-origin: 50% 50%; will-change: transform; }
.lb-frame img { display: block; pointer-events: none; }
/* an exam screen keeps the phone frame it had on the page */
.x-lb[data-group="exam"] .lb-frame { padding: 8px; border: 2px solid #D5D9DD; border-radius: 34px; box-shadow: 0 8px 0 #B9C3CE; }
.x-lb[data-group="exam"] .lb-frame img { height: min(calc(100dvh - 210px), 860px); width: auto; aspect-ratio: 786 / 1542; border-radius: 26px; }
.x-lb[data-group="reel"] .lb-frame { border-radius: 24px; box-shadow: 0 8px 0 #0A1B31; }
.x-lb[data-group="reel"] .lb-frame img { width: auto; height: auto; max-width: min(1100px, calc(100vw - 192px)); max-height: calc(100dvh - 210px); }
.lb-meta { position: relative; display: grid; justify-items: center; gap: 12px; padding: 14px 24px 26px; text-align: center; }
.lb-cap { display: grid; gap: 4px; max-width: 46ch; }
.lb-cap b { font-family: var(--display); font-weight: 800; font-size: 20px; }
.lb-cap span { color: #C6D8EA; font-size: 15px; line-height: 1.4; }
.lb-dots { display: flex; gap: 6px; direction: ltr; }
[dir="rtl"] .lb-dots { direction: rtl; }
.lb-dots i { width: 8px; height: 8px; border-radius: 4px; background: rgba(207, 229, 244, .35); transition: width .3s var(--ease), background .3s; }
.lb-dots i.on { width: 24px; background: #fff; }
.x-lb button { position: absolute; z-index: 2; display: grid; place-items: center; width: 52px; height: 52px; padding: 0; border: 0; border-radius: 16px; background: #fff; color: var(--deep);
  box-shadow: 0 4px 0 var(--sky); cursor: pointer; transition: transform .08s ease-out, box-shadow .08s ease-out; }
.x-lb button svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.x-lb button:hover { background: #F3F8FC; }
.x-lb button:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--sky); }
.x-lb button:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.lb-x { top: 18px; inset-inline-end: 18px; }
.lb-p { top: calc(50% - 60px); inset-inline-start: 24px; }
.lb-n { top: calc(50% - 60px); inset-inline-end: 24px; }
@media (max-width: 760px) {
  .lb-stage { padding: 80px 14px 4px; }
  .x-lb[data-group="exam"] .lb-frame { padding: 5px; border-radius: 26px; }
  .x-lb[data-group="exam"] .lb-frame img { height: min(calc(100dvh - 268px), 700px); border-radius: 20px; }
  .x-lb[data-group="reel"] .lb-frame img { max-width: calc(100vw - 28px); }
  .lb-meta { padding: 12px 84px 28px; }
  .lb-cap span { font-size: 14px; }
  .lb-p, .lb-n { top: auto; bottom: 26px; width: 48px; height: 48px; }
  .lb-p { inset-inline-start: 16px; } .lb-n { inset-inline-end: 16px; }
  .lb-x { top: 14px; inset-inline-end: 14px; width: 48px; height: 48px; }
}
/* a phone on its side: the picture takes the height, the keys sit at the sides */
@media (max-height: 520px) and (min-width: 561px) {
  .lb-stage { padding: 12px 88px 2px; }
  .x-lb[data-group="exam"] .lb-frame { padding: 4px; border-radius: 20px; }
  .x-lb[data-group="exam"] .lb-frame img { height: calc(100dvh - 92px); border-radius: 16px; }
  .x-lb[data-group="reel"] .lb-frame img { max-height: calc(100dvh - 92px); max-width: calc(100vw - 176px); }
  .lb-meta { gap: 6px; padding: 6px 88px 10px; }
  .lb-cap { grid-auto-flow: column; gap: 10px; align-items: baseline; max-width: none; }
  .lb-cap b { font-size: 16px; } .lb-cap span { font-size: 14px; }
  .lb-p, .lb-n { top: calc(50% - 26px); bottom: auto; }
  .lb-x { top: 12px; inset-inline-end: 16px; }
}
