/* Classdesk landing page – its own CI, independent of app.css.
   Tafelgrün (board), Kreide (paper), Signalgelb (sun). Type: Gabarito. */

@font-face { font-family: "Gabarito"; src: url("../fonts/gabarito-regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Gabarito"; src: url("../fonts/gabarito-semibold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Gabarito"; src: url("../fonts/gabarito-bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Gabarito"; src: url("../fonts/gabarito-extrabold.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Gabarito"; src: url("../fonts/gabarito-black.woff2") format("woff2"); font-weight: 900; font-display: swap; }
/* Only for the "verspielt" preview card – the app's own kid font. */
@font-face { font-family: "Fredoka"; src: url("../fonts/fredoka-latin.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }

:root {
  --bg: #f6f2e9;
  --surface: #ffffff;
  --surface-2: #ece6d8;
  --ink: #0e1f19;
  --muted: #47574f;
  --line: #d9d1c0;
  --board: #123f31;
  --board-2: #0c2f24;
  --board-ink: #f6f2e9;
  --board-muted: #b9cbc2;
  --sun: #ffcb2e;
  --sun-ink: #0e1f19;
  --coral: #e8553b;
  --coral-ink: #b83a22;
  --sky: #7cc4f5;
  --focus: #1f6fd1;
  --dot: rgba(14, 31, 25, .13);
  --radius: 28px;
  --radius-s: 16px;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --logo-edge: #f6f2e9; --bg: #0a1612; --surface: #11221c; --surface-2: #172c25; --ink: #eef3ef; --coral-ink: #ff8a70; --muted: #a9bab2; --line: #24392f;
    --board: #174e3d; --board-2: #113c2f; --board-muted: #c3d5cc; --focus: #7db4ff; --dot: rgba(238, 243, 239, .09);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --logo-edge: #f6f2e9; --bg: #0a1612; --surface: #11221c; --surface-2: #172c25; --ink: #eef3ef; --coral-ink: #ff8a70; --muted: #a9bab2; --line: #24392f;
  --board: #174e3d; --board-2: #113c2f; --board-muted: #c3d5cc; --focus: #7db4ff; --dot: rgba(238, 243, 239, .09);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 1.125rem/1.55 "Gabarito", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 8px; }
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.i { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--sun); color: var(--sun-ink); padding: 12px 18px; border-radius: 12px; font-weight: 700; }
.skip:focus { left: 16px; }

/* ---------- Brand ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 1.5rem; letter-spacing: -.03em; }
.brand-mark { width: 38px; height: 38px; flex: none; }
.brand-dot { color: var(--coral); }

/* ---------- Header ---------- */
.top { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.top.scrolled { border-bottom-color: var(--line); }
.top .wrap { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { text-decoration: none; font-weight: 600; padding: 10px 14px; border-radius: 999px; color: var(--muted); }
.nav a:hover { color: var(--ink); background: var(--surface-2); }
.top-actions { display: flex; align-items: center; gap: 8px; }
/* Theme: collapsed it shows the active mode; a click slides out Auto / Hell / Dunkel, a choice slides back. */
.theme-slot { position: relative; width: 48px; height: 48px; flex: none; }
.theme-switch { position: absolute; top: 0; right: 0; z-index: 2; width: 48px; height: 48px; overflow: hidden; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); box-shadow: 0 0 0 rgba(0, 0, 0, 0); transition: width .38s cubic-bezier(.3, 1.35, .5, 1), box-shadow .3s; }
.theme-switch.open { width: 140px; box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .35); }
.ts-strip { display: flex; transform: translateX(calc(var(--i, 0) * -46px)); transition: transform .38s cubic-bezier(.3, 1.35, .5, 1); }
.theme-switch.open .ts-strip { transform: none; }
.ts-opt { flex: none; width: 46px; height: 46px; display: grid; place-items: center; border: 0; border-radius: 999px; background: none; color: var(--ink); cursor: pointer; font-size: 1.25rem; transition: background .2s, color .2s, transform .2s; }
.ts-opt:hover { background: var(--surface-2); }
.theme-switch.open .ts-opt { color: var(--muted); }
.theme-switch.open .ts-opt[aria-pressed="true"] { background: var(--sun); color: var(--sun-ink); transform: scale(.9); }
@media (prefers-reduced-motion: reduce) { .theme-switch, .ts-strip, .ts-opt { transition: none; } }
@media (max-width: 860px) { .nav { display: none; } .top-actions { margin-left: auto; } }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 999px; font: 700 1.1rem/1 "Gabarito", sans-serif; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .15s, box-shadow .2s, background .2s; }
.btn:hover { transform: translateY(-1px); }
.btn.sun { background: var(--sun); color: var(--sun-ink); box-shadow: 0 0 0 0 rgba(255, 203, 46, .0), 0 10px 30px -8px rgba(255, 190, 0, .75); }
.btn.sun:hover { box-shadow: 0 0 0 4px rgba(255, 203, 46, .2), 0 12px 28px -10px rgba(255, 190, 0, .6); }
.btn.ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn.ghost:hover { background: var(--ink); color: var(--bg); }
.btn.small { min-height: 48px; padding: 0 20px; font-size: 1rem; }
.btn.big { min-height: 64px; padding: 0 36px; font-size: 1.3rem; }
@media (prefers-reduced-motion: reduce) { .btn, .btn:hover { transition: none; transform: none; } }

/* ---------- Type ---------- */
.kicker { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: .95rem; letter-spacing: .08em; text-transform: uppercase; padding: 8px 16px 8px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); }
.kicker::before { content: ""; width: 12px; height: 12px; border-radius: 4px; background: var(--coral); }
h1, h2, h3 { margin: 0; letter-spacing: -.035em; line-height: .98; }
h1 { font-weight: 900; font-size: clamp(3rem, 8.4vw, 7.6rem); }
h2 { font-weight: 900; font-size: clamp(2.4rem, 5.8vw, 5rem); }
h3 { font-weight: 800; font-size: clamp(1.4rem, 2.2vw, 1.9rem); line-height: 1.1; letter-spacing: -.02em; }
.lead { font-size: clamp(1.2rem, 1.9vw, 1.55rem); line-height: 1.45; color: var(--muted); max-width: 40ch; }
.hl { position: relative; white-space: nowrap; }
.hl::after { content: ""; position: absolute; left: -.06em; right: -.06em; bottom: .04em; height: .3em; background: var(--sun); z-index: -1; border-radius: .08em; transform: skew(-8deg); }
.section { padding-block: clamp(80px, 12vw, 160px); }
.section-head { display: grid; gap: 20px; justify-items: start; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head .lead { max-width: 52ch; }

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: clamp(40px, 7vw, 96px); isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0 0 30% 0; z-index: -2; background: radial-gradient(var(--dot) 1.6px, transparent 1.8px) 0 0 / 26px 26px; mask-image: linear-gradient(180deg, #000 30%, transparent); }
.hero-text { display: grid; gap: 28px; justify-items: start; }

/* Chalk layer: doodles are written stroke by stroke (landing.js), then a few sponge wipes take them away
   (16.5 s loop).
   Without JS or with reduced motion they simply stand on the board. */
.chalk { position: absolute; inset: 0 0 auto 0; height: min(100vh, 980px); z-index: -1; pointer-events: none; overflow: hidden; --chalk: rgba(14, 31, 25, .26); --chalk-sun: rgba(214, 150, 0, .6); --sponge: rgba(255, 196, 40, .5); }
:root[data-theme="dark"] .chalk { --chalk: rgba(238, 243, 239, .3); --chalk-sun: rgba(255, 210, 70, .6); --sponge: rgba(255, 203, 46, .4); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .chalk { --chalk: rgba(238, 243, 239, .3); --chalk-sun: rgba(255, 210, 70, .6); --sponge: rgba(255, 203, 46, .4); } }
.chalk svg { width: 100%; height: 100%; fill: none; stroke: var(--chalk); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.chalk .d { filter: url(#chalkf); }
.chalk text { font: 600 46px "Gabarito", sans-serif; fill: var(--chalk); stroke: none; letter-spacing: .02em; }
.chalk text.tiny { font-size: 17px; font-weight: 700; }
.chalk text.small { font-size: 26px; }
.chalk .thin { stroke-width: 2; }
.chalk .dot { fill: var(--chalk); stroke: none; }
.chalk .rays { stroke: var(--chalk-sun); }
.chalk .tool { opacity: 0; transition: opacity .25s; stroke: none; }
.chalk .sponge { fill: var(--sponge); }
/* Joining in: chalk and sponge for visitors, quiet until hovered. */
.chalk-tools { position: absolute; right: 18px; top: calc(min(100vh, 980px) - 140px); z-index: 2; display: flex; gap: 2px; padding: 3px;
  border-radius: 999px; border: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 70%, transparent); opacity: .5; transition: opacity .2s; }
.chalk-tools[hidden] { display: none; }
.chalk-tools:hover, .chalk-tools:focus-within, .chalk-tools:has([aria-pressed="true"]) { opacity: 1; }
.chalk-tools button { display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 50%; background: none; color: var(--muted); cursor: pointer; }
.chalk-tools button:hover { color: var(--ink); }
.chalk-tools button[aria-pressed="true"] { background: color-mix(in srgb, var(--ink) 12%, transparent); color: var(--ink); }
.chalk-tools svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hero[data-tool="chalk"] { cursor: crosshair; }
.hero[data-tool="sponge"].over-board { cursor: none; }
.hero[data-tool] :is(a, button) { cursor: pointer; }
.hero[data-tool=""] { cursor: auto; }
@media (max-width: 860px) { .chalk { opacity: .6; } .chalk .d3, .chalk .d4 { display: none; } .chalk-tools { display: none; } }
.hero h1 { max-width: 14ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.facts { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 4px 0 0; padding: 0; list-style: none; color: var(--muted); font-weight: 600; }
.facts li { display: inline-flex; align-items: center; gap: 8px; }
.facts .i { color: var(--ink); font-size: 1.2rem; }

/* Demo board – a big flat green surface with live mini widgets */
.demo { margin-top: clamp(48px, 7vw, 88px); }
.board { position: relative; background: var(--board); color: var(--board-ink); border-radius: clamp(24px, 3vw, 40px); padding: clamp(18px, 3vw, 36px); box-shadow: 0 40px 80px -40px rgba(12, 47, 36, .65); overflow: hidden; }
.board::before { content: ""; position: absolute; inset: 0; background: radial-gradient(rgba(255, 255, 255, .06) 1.4px, transparent 1.6px) 0 0 / 22px 22px; pointer-events: none; }
.board-bar { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: clamp(14px, 2vw, 24px); color: var(--board-muted); font-weight: 600; }
.board-bar b { color: var(--board-ink); font-weight: 800; font-size: clamp(1.1rem, 2vw, 1.5rem); }
.board-grid { position: relative; display: grid; gap: clamp(12px, 1.6vw, 20px); grid-template-columns: 1.25fr 1fr .62fr; grid-template-areas: "hello timer light" "pick symbol light"; }
.tile { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--radius-s); padding: clamp(16px, 2vw, 26px); display: grid; align-content: space-between; gap: 12px; min-height: clamp(140px, 16vw, 210px); }
.tile .label { font-size: .95rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--board-muted); }
.t-hello { grid-area: hello; background: var(--sun); color: var(--sun-ink); border: 0; }
.t-hello .label { color: rgba(14, 31, 25, .7); }
.t-hello p { margin: 0; font-weight: 900; font-size: clamp(2rem, 4.4vw, 3.8rem); line-height: .95; letter-spacing: -.035em; }
.t-timer { grid-area: timer; }
.t-timer .time { font-weight: 900; font-size: clamp(2.6rem, 5.6vw, 4.8rem); line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
.timer-bar { height: 12px; border-radius: 999px; background: rgba(255, 255, 255, .14); overflow: hidden; }
.timer-bar span { display: block; height: 100%; width: 100%; background: var(--sun); border-radius: inherit; transform-origin: left; }
.t-light { grid-area: light; grid-template-columns: auto auto; grid-template-rows: 1fr auto; align-content: center; justify-content: center; align-items: center; column-gap: clamp(12px, 1.6vw, 22px); row-gap: 10px; background: #0b241c; }
.t-light .lamps { display: grid; gap: clamp(10px, 1.4vw, 16px); }
/* Loudness meter beside the light: it follows the simulated room, the light follows the meter. */
.meter { position: relative; display: flex; flex-direction: column-reverse; gap: 4px; width: 14px; }
.meter i { height: clamp(10px, 1.3vw, 16px); border-radius: 4px; background: rgba(255, 255, 255, .1); transition: background .12s; }
.meter i.on { background: #3ddc84; }
.meter i.on.mid { background: var(--sun); }
.meter i.on.hi { background: #ff5a4a; }
.meter .limit { position: absolute; left: -6px; right: -6px; bottom: 70%; border-top: 2px dashed rgba(255, 255, 255, .55); }
.t-light .mic { grid-column: 1 / -1; justify-self: center; color: var(--board-muted); font-size: 1.1rem; }
.lamp { width: clamp(44px, 6vw, 76px); aspect-ratio: 1; border-radius: 50%; background: rgba(255, 255, 255, .1); transition: background .4s, box-shadow .4s; }
.lamp.on.red { background: #ff5a4a; box-shadow: 0 0 34px #ff5a4a; }
.lamp.on.yellow { background: var(--sun); box-shadow: 0 0 34px var(--sun); }
.lamp.on.green { background: #3ddc84; box-shadow: 0 0 34px #3ddc84; }
.t-pick { grid-area: pick; }
.t-pick .name { font-weight: 900; font-size: clamp(2rem, 4.4vw, 3.6rem); line-height: 1; letter-spacing: -.03em; }
.t-symbol { grid-area: symbol; grid-template-columns: auto 1fr; align-items: center; align-content: center; gap: 18px; }
.t-symbol .sym { width: clamp(56px, 6vw, 80px); height: clamp(56px, 6vw, 80px); border-radius: 22px; background: var(--sky); color: var(--board-2); display: grid; place-items: center; font-size: clamp(1.8rem, 3vw, 2.6rem); }
.t-symbol p { margin: 0; font-weight: 800; font-size: clamp(1.4rem, 2.4vw, 2rem); line-height: 1.05; }
.t-symbol .label { grid-column: 1 / -1; }
@media (max-width: 760px) {
  .board-grid { grid-template-columns: 1fr 1fr; grid-template-areas: "hello hello" "timer light" "pick light" "symbol symbol"; }
}
@media (max-width: 460px) { .board-bar span:last-child { display: none; } }

/* ---------- Spotlights (Förderung, Aufgaben, Wunschbox, Umfragen) ---------- */
.spot { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: center; padding-block: clamp(36px, 5vw, 64px); border-top: 1px solid var(--line); }
.spot.flip .spot-text { order: 2; }
.spot-text { display: grid; gap: 18px; justify-items: start; }
.spot-text h3 { font-weight: 900; font-size: clamp(2rem, 3.8vw, 3.2rem); line-height: 1; letter-spacing: -.035em; }
.spot-text p { margin: 0; color: var(--muted); font-size: 1.15rem; }
.spot-tag { font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: .9rem; color: var(--coral-ink); }
:root[data-theme="dark"] .spot-tag { color: #ff9a85; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .spot-tag { color: #ff9a85; } }
.ticks { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 34px; font-weight: 600; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .2em; width: 22px; height: 22px; border-radius: 7px; background: var(--sun) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230e1f19' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 16px no-repeat; }
.spot-demo { position: relative; background: var(--surface-2); border-radius: var(--radius); padding: clamp(20px, 3vw, 40px); min-height: 380px; display: grid; align-content: center; overflow: hidden; }
.spot-demo::before { content: ""; position: absolute; inset: 0; background: radial-gradient(var(--dot) 1.4px, transparent 1.6px) 0 0 / 22px 22px; }
.spot-demo > * { position: relative; }
.m-card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 24px; display: grid; gap: 16px; box-shadow: 0 24px 48px -32px rgba(14, 31, 25, .45); }
.m-card.dark { background: var(--board); color: var(--board-ink); border-color: var(--board); }
.m-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 1.2rem; }
.m-pill, .m-chip { padding: 5px 12px; border-radius: 999px; background: var(--surface-2); font-size: .9rem; font-weight: 700; }
.m-ico { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: var(--surface-2); flex: none; }
.m-ico.big { width: 46px; height: 46px; background: var(--sun); color: var(--sun-ink); font-size: 1.4rem; }
.m-progress { height: 12px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.m-progress span { display: block; height: 100%; width: 0; background: var(--board); border-radius: inherit; transition: width .6s ease; }
.m-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.m-steps li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; font-weight: 600; transition: background .3s; }
.m-steps li.now { background: color-mix(in srgb, var(--sun) 30%, transparent); }
.m-state { margin-left: auto; width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line); transition: background .3s, border-color .3s; }
.m-steps li.done .m-state { background: var(--board) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f6f2e9' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 16px no-repeat; border-color: var(--board); }
.m-kanban { grid-template-columns: repeat(3, 1fr); gap: 12px; align-content: start; align-items: start; }
.m-col { background: var(--surface); border-radius: 18px; padding: 14px; display: grid; gap: 10px; min-height: 260px; align-content: start; }
.m-col > b { font-size: .95rem; color: var(--muted); }
.m-k { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 12px; font-weight: 600; font-size: .95rem; line-height: 1.25; display: grid; gap: 6px; }
.m-k small { color: var(--muted); font-weight: 600; }
.m-k.done { color: var(--muted); text-decoration: line-through; }
.m-k.pop { animation: pop .5s ease; box-shadow: 0 0 0 3px var(--sun); }
/* Drag & drop: the card is picked up (ghost follows the pointer), a dashed hole shows where it will land. */
.m-kanban .m-k { cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; }
.m-kanban .m-k:hover { border-color: var(--ink); }
.m-k.m-hole { opacity: .35; border-style: dashed; box-shadow: none; }
.m-ghost { position: fixed; z-index: 90; margin: 0; pointer-events: none; cursor: grabbing; transform: rotate(3deg) scale(1.04); box-shadow: 0 24px 40px -12px rgba(14, 31, 25, .45); }
@keyframes pop { from { transform: translateY(-14px) rotate(-3deg); opacity: 0; } to { transform: none; opacity: 1; } }
.lb { display: block; width: 36px; height: 6px; border-radius: 999px; }
.lb.red { background: var(--coral); } .lb.yellow { background: var(--sun); } .lb.blue { background: var(--sky); } .lb.green { background: #3ddc84; }
.m-type { margin: 0; min-height: 4.2em; font-size: 1.5rem; font-weight: 700; line-height: 1.3; background: var(--bg); border-radius: 14px; padding: 16px; }
.caret { display: inline-block; width: 3px; height: 1.1em; vertical-align: -.15em; background: var(--ink); margin-left: 2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.m-row { display: flex; justify-content: space-between; align-items: center; }
.m-send { padding: 10px 20px; border-radius: 999px; background: var(--board); color: var(--board-ink); font-weight: 800; transition: transform .2s, background .2s; }
.m-send.hit { transform: scale(.94); background: var(--sun); color: var(--sun-ink); }
.m-note { margin: 16px 0 0; text-align: center; font-weight: 700; opacity: 0; transform: translateY(8px); transition: opacity .4s, transform .4s; }
.m-note.show { opacity: 1; transform: none; }
.m-qr { width: 58px; height: 58px; border-radius: 10px; flex: none; background:
  conic-gradient(from 90deg at 30% 30%, #0e1f19 25%, transparent 0) 0 0 / 14px 14px, #f6f2e9; border: 6px solid #f6f2e9; }
.m-bars { display: grid; gap: 14px; }
.m-bar { display: grid; grid-template-columns: 7.5em 1fr 2.2em; align-items: center; gap: 12px; font-weight: 700; }
.m-bar i { height: 30px; border-radius: 10px; background: var(--sun); width: calc(var(--v) * 1%); min-width: 6px; transition: width .6s cubic-bezier(.3, 1.4, .5, 1); }
.m-bar:nth-child(2) i { background: var(--sky); } .m-bar:nth-child(3) i { background: #3ddc84; }
.m-bar em { font-style: normal; font-variant-numeric: tabular-nums; text-align: right; }
.m-foot { color: var(--board-muted); font-weight: 600; font-size: .95rem; }
@media (max-width: 900px) { .spot { grid-template-columns: 1fr; } .spot.flip .spot-text { order: 0; } }
/* Churer Modell: the Lernlandschaft widget in miniature */
.m-inputs { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.m-inputs li { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 10px 12px; border-radius: 14px; background: var(--surface-2); font-weight: 600; }
.m-inputs time { font-weight: 800; font-variant-numeric: tabular-nums; }
.m-inputs small { display: block; color: var(--muted); font-weight: 600; font-size: .85rem; }
.m-inputs em { font-style: normal; font-size: .9rem; color: var(--muted); }
.m-help { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding-top: 4px; border-top: 1px solid var(--line); }
.m-help b { margin-right: 4px; }
.m-help span { padding: 6px 12px; border-radius: 999px; background: color-mix(in srgb, var(--sun) 35%, transparent); font-weight: 700; }
.m-help small { margin-left: 6px; font-weight: 600; color: var(--muted); }
@media (max-width: 560px) { .m-kanban { grid-template-columns: 1fr; } .m-col { min-height: 0; } .spot-demo { min-height: 0; } .m-bar { grid-template-columns: 6.5em 1fr 2em; } }

/* ---------- Teacher organisation ---------- */
.orga-sec, .spot-sec { padding-top: 0; }
.orga { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.orga .section-head { position: sticky; top: 110px; margin: 0; }
.orga-list { border-top: 2px solid var(--ink); }
.orga-row { display: grid; grid-template-columns: auto 1fr; gap: 22px; padding: 30px 0; border-bottom: 1px solid var(--line); }
.orga-row .ico { width: 60px; height: 60px; border-radius: 18px; background: var(--sun); color: var(--sun-ink); display: grid; place-items: center; font-size: 1.6rem; }
.orga-row h3 { margin-bottom: 8px; }
.orga-row p { margin: 0; color: var(--muted); }
@media (max-width: 900px) { .orga { grid-template-columns: 1fr; } .orga .section-head { position: static; } }

/* ---------- Three places band ---------- */
.band { background: var(--sun); color: var(--sun-ink); }
.band .lead { color: rgba(14, 31, 25, .78); }
.band .kicker { background: rgba(255, 255, 255, .55); border-color: rgba(14, 31, 25, .15); color: var(--sun-ink); }
.band .kicker::before { background: var(--board); }
.places { display: grid; gap: clamp(16px, 2vw, 24px); grid-template-columns: repeat(3, 1fr); }
.place { background: #fff7d6; color: var(--sun-ink); border: 3px solid transparent; border-radius: var(--radius); padding: clamp(24px, 3vw, 40px); display: grid; gap: 16px; align-content: start; justify-items: start; text-align: left; font: inherit; cursor: pointer; transition: border-color .25s, transform .25s, box-shadow .25s; }
.place:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -22px rgba(14, 31, 25, .45); }
.place[aria-selected="true"] { border-color: var(--sun-ink); }
.place-go { margin-top: auto; font-weight: 800; display: inline-flex; align-items: center; gap: 8px; }
.place-go::after { content: "→"; transition: transform .25s; }
.place:hover .place-go::after { transform: translateX(5px); }
.place .ico { width: 72px; height: 72px; border-radius: 22px; background: var(--board); color: var(--board-ink); display: grid; place-items: center; font-size: 2rem; }
.place p { margin: 0; color: rgba(14, 31, 25, .78); }
@media (max-width: 900px) { .places { grid-template-columns: 1fr; } }

/* ---------- Feature grid ---------- */
.features { display: grid; gap: clamp(12px, 1.6vw, 20px); grid-template-columns: repeat(4, 1fr); }
.feat { position: relative; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-s); padding: 26px; display: grid; gap: 12px; align-content: start;
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--lift, 0)); transition: transform .35s ease-out, border-color .2s, box-shadow .25s; }
/* Light that follows the pointer */
.feat::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--sun) 16%, transparent), transparent 70%); }
.feat:hover { --lift: -3px; border-color: color-mix(in srgb, var(--ink) 45%, var(--line)); box-shadow: 0 16px 32px -24px rgba(14, 31, 25, .35); }
.feat:hover::before, .feat.play::before { opacity: 1; }
.feat > * { position: relative; }
.feat-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; }
.feat .ico { font-size: 2rem; color: var(--ink); transition: transform .35s cubic-bezier(.3, 1.6, .5, 1); }
.feat:hover .ico { transform: rotate(-4deg) scale(1.05); }
.feat h3 { font-size: 1.35rem; }
.feat p { margin: 0; color: var(--muted); font-size: 1rem; line-height: 1.45; }
.feat.wide { grid-column: span 2; background: var(--board); color: var(--board-ink); border-color: var(--board); }
.feat.wide p, .feat.wide .ico { color: var(--board-muted); }
.feat.wide h3 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.feat.wide:hover { border-color: var(--sun); }
@media (max-width: 1000px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .features { grid-template-columns: 1fr; } .feat.wide { grid-column: auto; } }

/* Mini animations: a calm resting state, they play on hover (or .play from JS on touch devices). */
.fx { display: block; position: relative; color: var(--ink); --on: var(--sun); }
.wide .fx { color: var(--board-ink); }
.fx i { display: block; font-style: normal; }
:is(.feat:hover, .feat.play) .fx { --p: running; }
.fx * { animation-play-state: var(--p, paused); }

.fx-roll { display: grid; grid-template-columns: repeat(9, 14px); gap: 6px; }
.fx-roll i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; opacity: .45; transition: background .25s, opacity .25s, transform .3s cubic-bezier(.3, 1.8, .5, 1); transition-delay: calc(var(--k) * 70ms); }
:is(.feat:hover, .feat.play) .fx-roll i:not(.miss) { background: var(--sun); border-color: var(--sun); opacity: 1; transform: scale(1.15); }
:is(.feat:hover, .feat.play) .fx-roll i.miss { border-color: var(--coral); opacity: 1; animation: blink .8s .7s infinite alternate; }
@keyframes blink { to { transform: scale(1.3); } }

.fx-ring svg { width: 48px; height: 48px; transform: rotate(-90deg); fill: none; stroke-width: 6; stroke-linecap: round; }
.fx-ring .bg { stroke: var(--line); }
.fx-ring .fg { stroke: var(--sun); stroke-dasharray: 120; animation: ring 3s linear infinite; }
@keyframes ring { to { stroke-dashoffset: 120; } }

.fx-lights { display: grid; gap: 4px; padding: 5px; border-radius: 12px; background: var(--ink); }
.fx-lights i { width: 13px; height: 13px; border-radius: 50%; background: rgba(255, 255, 255, .16); }
.fx-lights .g { background: #3ddc84; }
.fx-lights .r { animation: lr 2.4s steps(1) infinite; } .fx-lights .y { animation: ly 2.4s steps(1) infinite; } .fx-lights .g { animation: lg 2.4s steps(1) infinite; }
@keyframes lg { 0% { background: #3ddc84; } 33% { background: rgba(255, 255, 255, .16); } }
@keyframes ly { 0% { background: rgba(255, 255, 255, .16); } 33% { background: var(--sun); } 66% { background: rgba(255, 255, 255, .16); } }
@keyframes lr { 0% { background: rgba(255, 255, 255, .16); } 66% { background: var(--coral); } }

.fx-names { height: 1.4em; overflow: hidden; font-weight: 800; font-size: 1.15rem; line-height: 1.4; padding: 0 12px; border-radius: 10px; background: var(--sun); color: var(--sun-ink); }
.fx-names span { display: block; }
:is(.feat:hover, .feat.play) .fx-names span { animation: names 2.6s cubic-bezier(.2, .7, .3, 1) infinite; }
@keyframes names { 0% { transform: translateY(0); } 70%, 100% { transform: translateY(-7em); } }

.fx-groups { width: 66px; height: 50px; }
.fx-groups i { position: absolute; width: 11px; height: 11px; border-radius: 50%; background: currentColor; opacity: .5; left: calc(var(--x) * 22px + 5px); top: calc(var(--y) * 17px + 2px); transition: left .5s cubic-bezier(.3, 1.4, .5, 1), top .5s cubic-bezier(.3, 1.4, .5, 1), background .3s, opacity .3s; transition-delay: calc(var(--k) * 40ms); }
:is(.feat:hover, .feat.play) .fx-groups i { opacity: 1; left: calc(var(--g) * 23px + var(--m) * 4px + 1px); top: calc(var(--m) * 12px + 4px); }
:is(.feat:hover, .feat.play) .fx-groups .g0 { background: var(--sun); } :is(.feat:hover, .feat.play) .fx-groups .g1 { background: var(--sky); } :is(.feat:hover, .feat.play) .fx-groups .g2 { background: var(--coral); }

.fx-clock { width: 48px; height: 48px; border-radius: 50%; border: 3px solid currentColor; }
.fx-clock i { position: absolute; left: 50%; bottom: 50%; width: 3px; margin-left: -1.5px; border-radius: 3px; background: currentColor; transform-origin: 50% 100%; }
.fx-clock .h { height: 11px; transform: rotate(60deg); animation: spin 18s linear infinite; }
.fx-clock .m { height: 17px; background: var(--coral); animation: spin 1.5s linear infinite; }
@keyframes spin { from { rotate: 0deg; } to { rotate: 360deg; } }

.fx-smiles { display: flex; gap: 6px; }
.fx-smiles svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
:is(.feat:hover, .feat.play) .fx-smiles svg { animation: smile-pop 1.8s cubic-bezier(.3, 1.8, .5, 1) infinite; }
.fx-smiles svg:nth-child(2) { animation-delay: .2s !important; } .fx-smiles svg:nth-child(3) { animation-delay: .4s !important; }
@keyframes smile-pop { 0%, 60%, 100% { transform: none; } 20% { transform: scale(1.3) rotate(-8deg); fill: var(--sun); } }

.fx-phases { display: grid; grid-template-columns: 2fr 3fr 2fr 1fr; gap: 6px; width: min(260px, 42vw); }
.fx-phases i { height: 14px; border-radius: 7px; background: rgba(255, 255, 255, .18); position: relative; overflow: hidden; }
.fx-phases i::after { content: ""; position: absolute; inset: 0; background: var(--sun); transform: scaleX(0); transform-origin: left; }
:is(.feat:hover, .feat.play) .fx-phases i::after { animation: fill 4s linear infinite; animation-delay: calc(var(--k) * 1s - .0s); }
@keyframes fill { 0% { transform: scaleX(0); } 25%, 92% { transform: scaleX(1); } 100% { transform: scaleX(0); } }

.fx-qr { display: grid; grid-template-columns: repeat(5, 9px); gap: 2px; padding: 4px; background: #fff; border-radius: 6px; }
.fx-qr i { width: 9px; height: 9px; background: #0e1f19; border-radius: 1px; }
.fx-qr i:nth-child(3n+2), .fx-qr i:nth-child(7n) { background: transparent; }
:is(.feat:hover, .feat.play) .fx-qr i { animation: qr .9s steps(1) infinite; animation-delay: calc(var(--k) * -137ms); }
@keyframes qr { 50% { background: transparent; } }

.fx-plan { display: grid; gap: 4px; width: 70px; }
.fx-plan i { height: 9px; border-radius: 5px; background: currentColor; opacity: .3; transition: transform .45s cubic-bezier(.3, 1.4, .5, 1), opacity .3s, background .3s; transition-delay: calc(var(--k) * 90ms); transform: translateX(14px); }
:is(.feat:hover, .feat.play) .fx-plan i { transform: none; opacity: .55; }
:is(.feat:hover, .feat.play) .fx-plan i:nth-child(2) { background: var(--sun); opacity: 1; }

.fx-duties { width: 84px; height: 30px; }
.fx-duties i { position: absolute; top: 0; left: 0; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-weight: 800; font-size: .8rem; background: var(--sun); color: var(--sun-ink); }
.fx-duties i:nth-child(1) { animation: duty 3s cubic-bezier(.5, 0, .3, 1) infinite; }
.fx-duties i:nth-child(2) { background: var(--sky); animation: duty 3s cubic-bezier(.5, 0, .3, 1) -1s infinite; }
.fx-duties i:nth-child(3) { background: var(--coral); color: #fff; animation: duty 3s cubic-bezier(.5, 0, .3, 1) -2s infinite; }
@keyframes duty { 0%, 25% { transform: translateX(0); } 33%, 58% { transform: translateX(29px); } 66%, 91% { transform: translateX(58px); } 100% { transform: translateX(0); } }

.fx-draw svg { width: 80px; height: 48px; fill: none; stroke: var(--coral); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 160; stroke-dashoffset: 0; }
:is(.feat:hover, .feat.play) .fx-draw path { animation: draw 2s ease-in-out infinite; }
@keyframes draw { 0% { stroke-dashoffset: 160; } 60%, 100% { stroke-dashoffset: 0; } }

.fx-dice { display: grid; grid-template-columns: repeat(3, 8px); gap: 4px; padding: 7px; border-radius: 11px; background: var(--surface); border: 2px solid currentColor; }
.fx-dice i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; visibility: hidden; }
.fx-dice[data-face="1"] i:nth-child(5),
.fx-dice[data-face="2"] i:is(:nth-child(1), :nth-child(9)),
.fx-dice[data-face="3"] i:is(:nth-child(1), :nth-child(5), :nth-child(9)),
.fx-dice[data-face="4"] i:is(:nth-child(1), :nth-child(3), :nth-child(7), :nth-child(9)),
.fx-dice[data-face="5"] i:is(:nth-child(1), :nth-child(3), :nth-child(5), :nth-child(7), :nth-child(9)),
.fx-dice[data-face="6"] i:is(:nth-child(1), :nth-child(3), :nth-child(4), :nth-child(6), :nth-child(7), :nth-child(9)) { visibility: visible; }
.fx-dice.roll { animation: roll .5s cubic-bezier(.3, 1.4, .5, 1); }
@keyframes roll { 0% { transform: rotate(0) scale(1); } 50% { transform: rotate(200deg) scale(.8); } 100% { transform: rotate(360deg) scale(1); } }

.fx-score { display: flex; align-items: center; gap: 6px; font-weight: 900; font-size: 1.7rem; line-height: 1; }
.fx-score b { min-width: 1.3em; text-align: center; padding: 6px 4px; border-radius: 10px; background: var(--sky); color: #0e1f19; }
.fx-score b:last-child { background: var(--coral); color: #fff; }
.fx-score em { font-style: normal; opacity: .5; }
.fx-score b.bump { animation: bump .4s cubic-bezier(.3, 1.8, .5, 1); }
@keyframes bump { 50% { transform: scale(1.35) translateY(-4px); } }

@media (prefers-reduced-motion: reduce) {
  .feat, .feat:hover { transition: none; transform: none; }
  .feat:hover .ico { transform: none; }
  .fx *, .fx { animation: none !important; transition: none !important; }
}

/* ---------- Two looks ---------- */
.looks { display: grid; gap: clamp(16px, 2vw, 24px); grid-template-columns: 1fr 1fr; }
.look { border-radius: var(--radius); padding: clamp(24px, 3.4vw, 44px); display: grid; gap: 22px; align-content: start; min-height: 420px; }
.look p { margin: 0; }
.look-play { background: #ffe9f1; color: #2a1330; }
.look-calm { background: var(--surface); border: 1px solid var(--line); }
.look-calm p { color: var(--muted); }
.look .mini { border-radius: 20px; padding: 22px; display: grid; gap: 12px; }
.look-play .mini { background: #fff; box-shadow: 0 8px 0 #f6b9cf; font-family: "Fredoka", "Gabarito", sans-serif; }
.look-play .mini strong { font-size: 2.2rem; line-height: 1; font-weight: 700; background: linear-gradient(90deg, #e8553b, #f5a524, #30a46c, #3e63dd, #8e4ec6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.look-calm .mini { background: var(--surface-2); }
.look-calm .mini strong { font-size: 2.2rem; line-height: 1; font-weight: 800; letter-spacing: -.02em; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span { padding: 6px 14px; border-radius: 999px; font-weight: 600; font-size: .95rem; }
.look-play .chips span { background: #ffd1e1; }
.look-play .chips span:nth-child(2) { background: #d6e4ff; }
.look-play .chips span:nth-child(3) { background: #d8ffe6; }
.look-calm .chips span { background: var(--bg); border: 1px solid var(--line); }
@media (max-width: 860px) { .looks { grid-template-columns: 1fr; } .look { min-height: 0; } }

/* ---------- Privacy ---------- */
.privacy { background: var(--board); color: var(--board-ink); }
.privacy .lead { color: var(--board-muted); }
.privacy .kicker { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .16); color: var(--board-ink); }
.privacy .kicker::before { background: var(--sun); }
.promises { display: grid; gap: 0; grid-template-columns: 1fr 1fr; border-top: 1px solid rgba(255, 255, 255, .16); }
.promise { padding: 32px 32px 32px 0; border-bottom: 1px solid rgba(255, 255, 255, .16); display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: start; }
.promise:nth-child(odd) { border-right: 1px solid rgba(255, 255, 255, .16); }
.promise:nth-child(even) { padding-left: 32px; }
.promise .ico { font-size: 1.8rem; color: var(--sun); margin-top: 2px; }
.promise h3 { font-size: 1.45rem; margin-bottom: 8px; }
.promise p { margin: 0; color: var(--board-muted); }
@media (max-width: 860px) {
  .promises { grid-template-columns: 1fr; }
  .promise, .promise:nth-child(even) { padding: 28px 0; border-right: 0; }
  .promise:nth-child(odd) { border-right: 0; }
}

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq-list { border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 26px 0; font-weight: 800; font-size: clamp(1.2rem, 1.8vw, 1.5rem); letter-spacing: -.01em; min-height: 48px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .i { flex: none; font-size: 1.4rem; transition: transform .2s; }
.faq details[open] summary .i { transform: rotate(180deg); }
.faq details p { margin: 0 0 26px; color: var(--muted); max-width: 60ch; }
@media (max-width: 860px) { .faq { grid-template-columns: 1fr; } }

/* ---------- Final CTA ---------- */
.final { padding-bottom: clamp(64px, 9vw, 120px); }
.final-box { position: relative; overflow: hidden; background: var(--board-2); color: var(--board-ink); border-radius: clamp(28px, 4vw, 48px); padding: clamp(40px, 8vw, 110px) clamp(24px, 6vw, 88px); display: grid; gap: 30px; justify-items: start; }
.final-box::before { content: ""; position: absolute; inset: 0; background: radial-gradient(rgba(255, 255, 255, .08) 1.6px, transparent 1.8px) 0 0 / 26px 26px; pointer-events: none; }
.final-box > * { position: relative; }
.final-box h2 { max-width: 14ch; }
.final-box .lead { color: var(--board-muted); }

/* ---------- Footer ---------- */
.foot { border-top: 1px solid var(--line); padding-block: 40px 56px; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; justify-content: space-between; }
.foot nav { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.foot nav a { color: var(--muted); text-decoration: none; font-weight: 600; padding: 12px 0; }
.foot nav a:hover { color: var(--ink); text-decoration: underline; }
.foot small { color: var(--muted); font-size: .95rem; }

/* ---------- Reveal on scroll ---------- */
/* Uses `translate`, so components keep `transform` for their own motion (tilt of the tiles). */
.js .reveal { opacity: 0; translate: 0 28px; transition: opacity .7s ease, translate .7s ease; }
.js .reveal.in { opacity: 1; translate: none; }
.js .feat.reveal { transition: opacity .7s ease, translate .7s ease, transform .25s ease-out, border-color .2s, box-shadow .25s; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; translate: none; transition: none; } }

/* Header login link and the light ghost button on dark surfaces */
.top-login { font-weight: 700; text-decoration: none; padding: 12px 10px; border-radius: 999px; }
.top-login:hover { text-decoration: underline; }
.btn.ghost-light { border-color: var(--board-ink); color: var(--board-ink); background: transparent; }
.btn.ghost-light:hover { background: var(--board-ink); color: var(--board-2); }
@media (max-width: 420px) { .top .btn.small { padding: 0 14px; } .brand { font-size: 1.3rem; } .top .wrap { gap: 10px; } }
.btn { white-space: nowrap; }
.have-account { margin: -8px 0 0; color: var(--muted); font-weight: 600; }
.have-account a { color: var(--ink); }
@media (max-width: 560px) { .top-login { display: none; } }
@media (max-width: 400px) { .brand { font-size: 1.1rem; gap: 8px; } .brand-mark { width: 32px; height: 32px; } .top .btn.small { padding: 0 12px; font-size: .95rem; } .top-actions { gap: 6px; } }

/* ---------- Cursor light (same mechanic as naumenko-multimedia.de / brandbill: soft circle follows the pointer) ---------- */
.cursor-glow { position: fixed; left: 0; top: 0; width: 480px; height: 480px; margin: -240px 0 0 -240px; border-radius: 50%; pointer-events: none; z-index: 60; opacity: 0; transition: opacity .45s ease;
  background: radial-gradient(circle closest-side, rgba(255, 203, 46, .14) 0%, rgba(255, 203, 46, .07) 46%, rgba(255, 203, 46, .02) 70%, rgba(255, 203, 46, 0) 100%);
  -webkit-mask: radial-gradient(circle closest-side, #000 40%, transparent 100%); mask: radial-gradient(circle closest-side, #000 40%, transparent 100%);
  will-change: transform; mix-blend-mode: multiply; }
.cursor-glow.is-active { opacity: .6; }
:root[data-theme="dark"] .cursor-glow { mix-blend-mode: screen; background: radial-gradient(circle closest-side, rgba(255, 203, 46, .09) 0%, rgba(255, 203, 46, .045) 46%, rgba(255, 203, 46, .015) 70%, rgba(255, 203, 46, 0) 100%); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .cursor-glow { mix-blend-mode: screen; background: radial-gradient(circle closest-side, rgba(255, 203, 46, .09) 0%, rgba(255, 203, 46, .045) 46%, rgba(255, 203, 46, .015) 70%, rgba(255, 203, 46, 0) 100%); }
}
/* In the hero the dot grid lights up under the pointer. */
.hero::after { content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none; opacity: calc(var(--glow-on, 0) * .55); transition: opacity .45s;
  background: radial-gradient(color-mix(in srgb, var(--sun) 85%, var(--ink)) 2.2px, transparent 2.6px) 0 0 / 26px 26px;
  -webkit-mask: radial-gradient(170px circle at var(--gx, -999px) var(--gy, -999px), #000, transparent 100%); mask: radial-gradient(170px circle at var(--gx, -999px) var(--gy, -999px), #000, transparent 100%); }
@media (prefers-reduced-motion: reduce) { .cursor-glow, .hero::after { display: none; } }

/* ---------- Slider (scenes, games) ---------- */
.slider { margin-top: clamp(28px, 4vw, 48px); border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.slides { position: relative; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; overscroll-behavior-x: contain; }
.slides::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; scroll-snap-align: start; display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(24px, 4vw, 64px); align-items: center; padding: clamp(24px, 4vw, 56px); min-height: 440px; }
.slide-text { display: grid; gap: 16px; justify-items: start; }
.slide-text h3 { font-weight: 900; font-size: clamp(1.8rem, 3.2vw, 2.8rem); line-height: 1.02; letter-spacing: -.03em; }
.slide-text p { margin: 0; font-size: 1.15rem; color: var(--muted); max-width: 46ch; }
.slide-tag { font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: .9rem; color: var(--coral-ink); }
.slide-demo { display: grid; place-items: center; min-height: 320px; }
.slider-nav { display: flex; justify-content: center; align-items: center; gap: 14px; padding: 0 16px 24px; }
.sl-btn { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: inherit; display: grid; place-items: center; font-size: 1.2rem; cursor: pointer; transition: background .2s, transform .2s; }
.sl-btn:hover { background: var(--surface-2); transform: scale(1.06); }
.sl-dots { display: flex; gap: 8px; }
.sl-dots button { position: relative; width: 12px; height: 12px; padding: 0; border: 0; border-radius: 999px; background: var(--line); cursor: pointer; overflow: hidden; transition: width .35s cubic-bezier(.3, 1.3, .5, 1); }
.sl-dots button::before { content: ""; position: absolute; inset: -16px -2px; } /* bigger touch target */
.sl-dots button[aria-current="true"] { width: 48px; }
.sl-dots button[aria-current="true"]::after { content: ""; position: absolute; inset: 0; background: var(--coral); border-radius: inherit; transform-origin: left; transform: scaleX(1); }
.slider.running .sl-dots button[aria-current="true"]::after { animation: sl-progress var(--dur, 8s) linear both; }
@keyframes sl-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
/* Entering slide: text and demo rise in one after another */
.slide .slide-text > *, .slide .slide-demo { transition: opacity .5s, translate .5s cubic-bezier(.2, .8, .3, 1); }
.slide:not(.active) .slide-text > *, .slide:not(.active) .slide-demo { opacity: 0; translate: 0 18px; }
.slide.active .slide-text > :nth-child(2) { transition-delay: .08s; } .slide.active .slide-text > :nth-child(3) { transition-delay: .16s; } .slide.active .slide-demo { transition-delay: .2s; }
@media (max-width: 860px) { .slide { grid-template-columns: 1fr; min-height: 0; } .slide-demo { min-height: 0; } }

/* Scenes on the yellow band: a dark board */
.scenes { background: var(--board-2); color: var(--board-ink); border-color: transparent; box-shadow: 0 30px 60px -30px rgba(14, 31, 25, .6); }
.scenes .slide-text p { color: var(--board-muted); }
.scenes .slide-tag { color: var(--sun); }
.scenes .sl-btn { border-color: rgba(255, 255, 255, .2); }
.scenes .sl-btn:hover { background: rgba(255, 255, 255, .1); }
.scenes .sl-dots button { background: rgba(255, 255, 255, .22); }
.scenes .sl-dots button[aria-current="true"]::after { background: var(--sun); }

.sc-pair { width: min(100%, 440px); justify-items: start; }
.sc-code { display: flex; gap: 8px; }
.sc-code i { width: clamp(38px, 5vw, 54px); height: clamp(50px, 6.4vw, 68px); border-radius: 12px; background: rgba(255, 255, 255, .1); display: grid; place-items: center; font: 900 clamp(1.4rem, 2.6vw, 2rem)/1 "Gabarito", sans-serif; font-style: normal; }
.slide.active .sc-code i { animation: key .35s cubic-bezier(.3, 1.6, .5, 1) both; animation-delay: calc(.5s + var(--n, 0) * .18s); }
.sc-code i:nth-child(2) { --n: 1; } .sc-code i:nth-child(3) { --n: 2; } .sc-code i:nth-child(4) { --n: 3; } .sc-code i:nth-child(5) { --n: 4; } .sc-code i:nth-child(6) { --n: 5; }
@keyframes key { from { opacity: 0; transform: translateY(10px) scale(.7); } }
.sc-ok { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; background: var(--sun); color: var(--sun-ink); font-weight: 800; }
.slide.active .sc-ok { animation: key .4s cubic-bezier(.3, 1.6, .5, 1) 1.8s both; }

.sc-phone { width: 250px; border-radius: 36px; border: 9px solid #0e1f19; background: #f6f2e9; color: #0e1f19; padding: 22px 16px; display: grid; gap: 10px; box-shadow: 0 30px 50px -24px rgba(0, 0, 0, .7); }
.sc-ph-title { font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; color: #47574f; }
.sc-ph-time { font: 900 3rem/1 "Gabarito", sans-serif; letter-spacing: -.03em; margin-bottom: 6px; }
.sc-ph-row { display: flex; gap: 8px; }
.sc-ph-row span { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 12px 8px; border-radius: 14px; background: #ece6d8; font-weight: 700; font-size: .95rem; }
.sc-ph-row span.on { background: var(--sun); }
.slide.active .sc-ph-row span.on { animation: tap 2.4s ease-in-out 1s infinite; }
@keyframes tap { 0%, 70%, 100% { transform: none; } 80% { transform: scale(.92); } }

.sc-attend { width: min(100%, 460px); color: var(--ink); }
.sc-names { display: flex; flex-wrap: wrap; gap: 8px; }
.sc-names span { padding: 10px 16px; border-radius: 14px; background: var(--surface-2); font-weight: 700; transition: background .3s, color .3s, transform .3s cubic-bezier(.3, 1.6, .5, 1); }
.sc-names span.in { background: #1f9d55; color: #fff; }
.sc-names span.pop { transform: scale(1.12); }
.sc-left { font-style: normal; display: inline-block; }

.sc-chat { width: min(100%, 470px); display: grid; gap: 12px; }
.sc-chat p { margin: 0; padding: 14px 18px; font-size: 1.02rem; line-height: 1.4; max-width: 92%; }
.sc-chat .you { justify-self: end; background: var(--sun); color: var(--sun-ink); border-radius: 20px 20px 6px 20px; font-weight: 600; }
.sc-chat .ai { background: rgba(255, 255, 255, .1); border-radius: 20px 20px 20px 6px; }
.sc-result { display: grid; gap: 8px; }
.sc-result span { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 14px; background: var(--board-ink); color: var(--board-2); font-weight: 700; }
.slide .sc-chat > *, .slide .sc-result span { opacity: 0; }
.slide.active .sc-chat > *, .slide.active .sc-result span { animation: bubble .45s cubic-bezier(.3, 1.4, .5, 1) both; }
.slide.active .sc-chat > :nth-child(1) { animation-delay: .4s; }
.slide.active .sc-chat > :nth-child(2) { animation-delay: 1.3s; }
.slide.active .sc-chat > :nth-child(3) { animation-delay: 2s; }
.slide.active .sc-result span:nth-child(1) { animation-delay: 2.1s; } .slide.active .sc-result span:nth-child(2) { animation-delay: 2.35s; } .slide.active .sc-result span:nth-child(3) { animation-delay: 2.6s; }
@keyframes bubble { from { opacity: 0; transform: translateY(12px) scale(.96); } to { opacity: 1; transform: none; } }

/* Games */
.games-slider { background: var(--surface-2); border-color: transparent; }
.gm-duel { position: relative; width: min(100%, 480px); display: grid; grid-template-columns: auto 1fr auto; align-items: end; gap: 18px; background: var(--board); color: var(--board-ink); border-radius: 24px; padding: 28px 22px 22px; }
.gm-team { display: grid; justify-items: center; gap: 10px; font-size: .9rem; }
.gm-tower { display: flex; flex-direction: column-reverse; gap: 4px; }
.gm-tower i { width: 46px; height: 16px; border-radius: 5px; background: var(--c); transition: opacity .4s, transform .5s cubic-bezier(.5, -0.4, .7, 1); }
.gm-team.a { --c: #6e8cff; } .gm-team.b { --c: #f06bbf; }
.gm-tower i.gone { opacity: 0; transform: translate(30px, 40px) rotate(40deg); }
.gm-team.turn b { color: var(--sun); }
.gm-word { display: flex; justify-content: center; gap: 6px; align-self: center; }
.gm-word span { width: clamp(26px, 3.4vw, 40px); height: clamp(38px, 4.6vw, 52px); border-bottom: 4px solid var(--board-muted); display: grid; place-items: center; font: 900 clamp(1.3rem, 2.4vw, 2rem)/1 "Gabarito", sans-serif; }
.gm-word span.hit { animation: key .4s cubic-bezier(.3, 1.6, .5, 1); }
.gm-guess { position: absolute; top: -18px; left: 50%; translate: -50% 0; padding: 8px 16px; border-radius: 999px; background: var(--sun); color: var(--sun-ink); font-weight: 800; white-space: nowrap; opacity: 0; transition: opacity .2s; }
.gm-guess.show { opacity: 1; }
.gm-guess.miss { background: var(--coral); color: #fff; }
.gm-score { width: min(100%, 460px); display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.gm-score div { background: var(--c); color: #fff; border-radius: 22px; padding: 20px 16px; display: grid; gap: 8px; justify-items: center; }
.gm-score em { font: 900 clamp(2.6rem, 5vw, 3.6rem)/1 "Gabarito", sans-serif; font-style: normal; }
.gm-score em.bump { animation: bump .45s cubic-bezier(.3, 1.8, .5, 1); }
.gm-quiz { width: min(100%, 480px); display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.gm-quiz > div { background: var(--board); color: var(--board-ink); border-radius: 20px; padding: 18px; display: grid; gap: 8px; }
.gm-quiz > div:last-child { grid-column: 1 / -1; }
.gm-quiz .label { font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--board-muted); }
.gm-quiz b { font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 900; }
.q-bar { height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .14); overflow: hidden; }
.q-bar i { display: block; height: 100%; background: var(--sun); transform-origin: left; }

@media (prefers-reduced-motion: reduce) {
  .slides { scroll-behavior: auto; }
  .slide .slide-text > *, .slide .slide-demo, .slide .sc-chat > *, .slide .sc-result span { opacity: 1 !important; translate: none !important; animation: none !important; transition: none !important; }
  .slide.active .sc-code i, .slide.active .sc-ok, .slide.active .sc-ph-row span.on { animation: none; }
}

/* Feature requests from teachers */
.wish-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: wish; }
.wish-steps li { counter-increment: wish; background: rgba(255, 255, 255, .55); border: 1px solid rgba(14, 31, 25, .15); border-radius: var(--radius); padding: 28px; display: grid; gap: 10px; align-content: start; }
.wish-steps li::before { content: counter(wish); width: 44px; height: 44px; border-radius: 14px; background: var(--board); color: var(--board-ink); display: grid; place-items: center; font-weight: 900; font-size: 1.3rem; }
.wish-steps b { font-size: 1.35rem; }
.wish-steps p { margin: 0; color: rgba(14, 31, 25, .78); }
@media (max-width: 860px) { .wish-steps { grid-template-columns: 1fr; } }
@media (max-width: 1180px) { .nav a.nav-opt { display: none; } }
