/* Strona reklamowa Mój dzień. Panel logowania siedzi w arkuszu (dialog). */
:root { --pad: clamp(16px, 5vw, 40px); }
html { scroll-behavior: smooth; scroll-padding-top: 70px; -webkit-text-size-adjust: 100%; }
body.login { display: block; padding: 0; overflow-x: hidden; }
body.login:has(dialog[open]) { overflow: hidden; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--accent); color: var(--accent-ink); padding: 10px 14px; border-radius: 12px; font-weight: 700; z-index: 50; }
.skip:focus { top: 12px; }
.topbar, .hero, .lp { font-family: var(--sans); }
.topbar :focus-visible, .hero :focus-visible, .lp :focus-visible, .sheet :focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* Nawigacja */
.topbar { width: 100%; position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 80%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.tb-in { width: min(1120px, 100%); margin: 0 auto; padding: 10px var(--pad); padding-top: max(10px, env(safe-area-inset-top)); display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 18px; letter-spacing: -.01em; }
.mk { width: 28px; height: 28px; color: var(--accent); }
.tb-btn { min-height: 42px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--edge); background: transparent; color: var(--ink); font: 700 15px var(--sans); cursor: pointer; transition: border-color .15s, background .15s; }
.tb-btn:hover { border-color: var(--accent); background: var(--glow); }

.cta { display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 30px; border-radius: 999px; border: 2px solid transparent; font: 800 17px var(--sans); text-decoration: none; cursor: pointer; transition: transform .15s, background .15s, border-color .15s; }
.cta:active { transform: scale(.98); }
.cta.main { background: var(--accent); color: var(--accent-ink); box-shadow: 0 10px 40px -10px color-mix(in srgb, var(--accent) 60%, transparent); }
.cta.main:hover { background: #d6fa84; }
.cta.ghost { min-height: 50px; padding: 0 24px; font-size: 16px; border-color: var(--edge); color: var(--ink); }
.cta.ghost:hover { border-color: var(--accent); }
.cta.dark { background: var(--accent-ink); color: var(--accent); min-height: 60px; padding: 0 38px; font-size: 18px; }
.cta.dark:hover { background: #000; }

/* Hero */
.hero { position: relative; overflow-x: clip; min-height: calc(100svh - 62px); display: grid; align-items: center; }
.hero-in { width: min(1120px, 100%); margin: 0 auto; padding: clamp(20px, 5vw, 56px) var(--pad) 56px; display: grid; gap: 40px; align-items: center; }
.hero h1 { margin: 0; font-size: clamp(60px, 17vw, 136px); line-height: .9; letter-spacing: -.055em; font-weight: 800; color: var(--ink); }
.hero h1 span { display: block; }
.hero h1 span:last-child { color: var(--accent); }
.hlead { margin: 22px 0 0; max-width: 29em; font-size: clamp(17px, 2.3vw, 21px); line-height: 1.5; color: var(--soft); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.stage { position: relative; display: flex; justify-content: center; padding: 20px 0 10px; transform: translate3d(0, var(--py, 0px), 0); will-change: transform; }
.glow { position: absolute; left: 50%; top: 50%; width: min(620px, 140vw); aspect-ratio: 1; margin: calc(min(620px, 140vw) / -2) 0 0 calc(min(620px, 140vw) / -2); border-radius: 50%; background: radial-gradient(closest-side, rgb(198 242 78 / .26), rgb(198 242 78 / .08) 55%, transparent); animation: glow 7s ease-in-out infinite; pointer-events: none; }
.phone { position: relative; width: min(290px, 74vw); aspect-ratio: 9 / 18.4; background: #060805; border: 2px solid var(--edge); border-radius: 46px; padding: 9px; box-shadow: 0 0 0 1px #000, 0 50px 90px -30px rgb(0 0 0 / .8), 0 0 60px -10px rgb(198 242 78 / .18); animation: float 7s ease-in-out infinite; }
.notch { position: absolute; top: 17px; left: 50%; width: 74px; height: 20px; border-radius: 99px; background: #000; transform: translateX(-50%); z-index: 2; }
.screen { height: 100%; border-radius: 38px; background: linear-gradient(180deg, #11150c, var(--bg) 40%); padding: 18px 14px 14px; display: flex; flex-direction: column; gap: 8px; overflow: hidden; }
.s-top { display: flex; justify-content: space-between; margin: 0 6px; font: 600 12px var(--sans); color: var(--soft); }
.go { text-align: center; margin: 22px 0 12px; }
.go-l { margin: 0; font: 600 12px var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--soft); }
.go-n { margin: 6px 0 0; font: 800 64px/1 var(--mono); letter-spacing: -.05em; color: var(--accent); font-variant-numeric: tabular-nums; text-shadow: 0 0 40px rgb(198 242 78 / .35); }
.go-bar { height: 5px; margin: 14px 16px 0; border-radius: 9px; background: var(--edge); overflow: hidden; }
.go-bar i { display: block; height: 100%; width: 100%; border-radius: 9px; background: var(--accent); transform-origin: left; transform: scaleX(.98); }
.prow { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; background: var(--card); border: 1px solid var(--edge); border-radius: 18px; padding: 10px 12px; }
.prow.dim { opacity: .75; }
.r-t b { display: block; font-size: 13px; line-height: 1.25; }
.r-t small { font-size: 11.5px; color: var(--soft); }
.at { font: 700 14px var(--mono); }
.r-ic { width: 22px; height: 22px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.late { font: 700 11px var(--mono); color: #2a0d08; background: var(--coral); border-radius: 99px; padding: 3px 8px; animation: latepop 7s ease-in-out infinite; }
.pkw { position: absolute; left: -34px; bottom: -14px; width: 104px; overflow: visible; filter: drop-shadow(0 10px 18px rgb(0 0 0 / .5)); }
.pk { fill: var(--amber); opacity: 0; animation: spark 2.6s ease-out infinite; }
/* Maskotka Lumek, wariant „Kreskówka”: jasny kontur (kolor tekstu), ciemny kontur, dwa tony limonki marki, jeden błysk, bez rozmycia i bez listka.
   Animacje tylko transform i opacity; rysunek bryły to jeden <g id="lk-body"> używany przez <use> w hero i w kafelku Lumek. */
.lk-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.lk-rim { fill: var(--ink); stroke: var(--ink); stroke-width: 19; stroke-linejoin: round; }
.lk-shade { fill: #95c02d; }
.lk-light { fill: var(--accent); }
.lk-shine { fill: none; stroke: #fff; stroke-width: 10.8; stroke-linecap: round; opacity: .85; }
.lk-line { fill: none; stroke: var(--accent-ink); stroke-width: 7; stroke-linejoin: round; }
.lk-blush { fill: #ff6f5e; opacity: .5; }
.lk-body { transform-box: fill-box; transform-origin: 50% 100%; animation: breathe 3.6s ease-in-out infinite; }
.lk-eyes { fill: var(--accent-ink); transform-box: fill-box; transform-origin: center; animation: blink 5s infinite; }
.lk-eyes .lk-eyeshine { fill: #fff; }
.lk-smile { fill: none; stroke: var(--accent-ink); stroke-width: 5.6; stroke-linecap: round; }
.lk-grin { fill: var(--accent-ink); opacity: 0; }
.d-lumek .lk-look { animation: lk-look 12s ease-in-out infinite; }
.d-lumek .lk-grin { animation: dx-grin 12s ease-in-out infinite; }
.d-lumek .lk-smile { animation: dx-smile 12s ease-in-out infinite; }
@keyframes lk-look { 0%, 6% { transform: none; } 10%, 44% { transform: translateX(8px); } 49%, 100% { transform: none; } }
.pk.s2 { animation-delay: .9s; } .pk.s3 { animation-delay: 1.7s; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(2deg); } 50% { transform: translateY(-12px) rotate(2deg); } }
@keyframes glow { 0%, 100% { opacity: .75; transform: scale(1); } 50% { opacity: 1; transform: scale(1.06); } }
@keyframes latepop { 0%, 30% { opacity: 0; transform: scale(.4); } 38%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes spark { 0% { opacity: 0; transform: translate(0, 12px) scale(.6); } 20% { opacity: 1; } 100% { opacity: 0; transform: translate(14px, -40px) scale(1); } }
@keyframes breathe { 0%, 100% { transform: scale(1, 1); } 50% { transform: scale(1.05, .95); } }
@keyframes blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }

@media (min-width: 900px) {
  .hero-in { grid-template-columns: 1.1fr .9fr; gap: 24px; }
  .phone { width: 304px; }
  .go-n { font-size: 72px; }
}

/* Pasek zalet */
.proof { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 14px; padding: 22px 0 !important; border-block: 1px solid var(--hair); }
.proof li { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; line-height: 1.25; }
.proof svg { flex: none; width: 36px; height: 36px; padding: 8px; border-radius: 50%; background: color-mix(in srgb, var(--accent) 14%, transparent); fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (min-width: 760px) { .proof { grid-template-columns: repeat(4, 1fr); } .proof li { font-size: 15px; } }

/* Końcowe wezwanie */
.final { margin-top: clamp(28px, 6vw, 56px); background: var(--accent); color: var(--accent-ink); border-radius: 32px; padding: clamp(32px, 7vw, 72px) clamp(20px, 5vw, 56px); text-align: center; display: grid; justify-items: center; gap: 14px; position: relative; overflow: hidden; }
.final::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; border: 36px solid rgb(21 27 5 / .08); }
.final h2 { font-size: clamp(30px, 6.5vw, 58px) !important; line-height: 1 !important; letter-spacing: -.04em !important; max-width: 12em; margin: 0; }
.final p { color: rgb(21 27 5 / .78) !important; max-width: 26em; font-size: 17px; }
.final .cta { margin-top: 10px; position: relative; z-index: 1; }

/* Arkusz logowania */
.sheet { border: 1px solid var(--edge); background: var(--tile); color: var(--ink); padding: 0; border-radius: 28px; width: min(460px, calc(100% - 24px)); max-height: min(90dvh, 780px); overflow-y: auto; overscroll-behavior: contain; font-family: var(--sans); box-shadow: 0 40px 100px rgb(0 0 0 / .6); }
.sheet::backdrop { background: rgb(5 7 3 / .74); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); }
.sheet[open] { animation: sheet-in .28s cubic-bezier(.2, .9, .3, 1); }
.sheet-grab { display: none; width: 44px; height: 5px; border-radius: 9px; background: var(--edge); margin: 10px auto 0; }
.sheet-x { position: absolute; right: 12px; top: 12px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--sunk); color: var(--ink); display: grid; place-items: center; cursor: pointer; z-index: 2; }
.sheet-x svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.sheet .landing { width: 100%; min-height: 0; padding: 26px 20px calc(24px + env(safe-area-inset-bottom)); justify-content: flex-start; }
.sheet-title { margin: 0; font-size: 28px; letter-spacing: -.03em; font-weight: 800; padding-right: 48px; }
.sheet .pitch { font-size: 15px; color: var(--soft); }
@keyframes sheet-in { from { opacity: 0; transform: translateY(24px) scale(.98); } to { opacity: 1; transform: none; } }
@media (max-width: 640px) {
  .sheet { width: 100%; max-width: 100%; margin: auto 0 0; border-radius: 28px 28px 0 0; border-bottom: 0; max-height: 92dvh; }
  .sheet[open] { animation-name: sheet-up; }
  .sheet-grab { display: block; }
  .sheet .landing { padding-top: 18px; }
}
@keyframes sheet-up { from { transform: translateY(100%); } to { transform: none; } }

.lp { --pad: clamp(16px, 5vw, 40px); width: min(1040px, 100%); margin: 0 auto; padding: 24px var(--pad) 0; color: var(--ink); overflow-x: clip; }
.lp h2, .lp h3, .lp p, .lp ul, .lp ol { margin: 0; padding: 0; list-style: none; }
.lp-sec { padding-block: clamp(24px, 5vw, 48px); }
.lp-sec > h2 { font-size: clamp(24px, 4.5vw, 36px); line-height: 1.08; letter-spacing: -.03em; font-weight: 800; max-width: 17em; text-wrap: balance; }
.sec-lead { margin-top: 12px; color: var(--soft); max-width: 36em; }

/* Kafelki funkcji: 1 kolumna na telefonie, 2 × 3 na tablecie, 3 × 2 na komputerze (sześć kafelków, zawsze symetrycznie) */
.tiles { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin-top: 24px; }
.tile { background: var(--card); border: 1px solid var(--edge); border-radius: 26px; padding: 18px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.tile h3 { margin-top: 12px; font-size: clamp(19px, 2.4vw, 22px); line-height: 1.15; letter-spacing: -.02em; font-weight: 800; }
.tile p { font-size: 15px; line-height: 1.4; color: var(--soft); }
.lp.js .tile:not(.in) { opacity: 0; }
.lp.js .tile.in { animation: rise .8s cubic-bezier(.2, .9, .3, 1) calc(var(--i, 0) * 110ms) backwards; }
@keyframes rise { from { opacity: 0; transform: translateY(34px) scale(.95); } to { opacity: 1; transform: none; } }
.demo { background: var(--bg); border: 1px solid var(--hair); border-radius: 18px; padding: 14px; height: 176px; display: grid; align-content: center; gap: 8px; overflow: hidden; position: relative; }
.demo b, .demo i { font-style: normal; font-family: var(--mono); }
.lp.js .demo:not(.on) *, .lp.js .demo:not(.on) *::before, .lp.js .demo:not(.on) *::after { animation-play-state: paused !important; }

/* 1. Budzik: wiersze wskakują, godzina w pasku odlicza 08:30 → 07:42 → 07:07, dopiero potem dzwoni dzwonek */
.d-alarm ul { display: grid; gap: 5px; }
.d-alarm li { display: flex; justify-content: space-between; font-size: 13px; color: var(--soft); padding: 5px 11px; background: var(--tile); border-radius: 10px; animation: pop 10s ease-in-out infinite backwards; }
.d-alarm li b { color: var(--ink); font-weight: 600; transform-origin: right center; }
.d-alarm li:nth-child(2) { animation-delay: .7s; } .d-alarm li:nth-child(3) { animation-delay: 1.4s; }
.dx-h2 { animation: dx-hl2 10s ease-in-out infinite 2.2s; }
.dx-h3 { animation: dx-hl3 10s ease-in-out infinite 2.2s; }
.d-alarm .ring { position: relative; display: flex; align-items: center; justify-content: space-between; background: var(--accent); color: var(--accent-ink); border-radius: 14px; padding: 6px 14px; animation: pop 10s ease-in-out infinite backwards 2.2s; }
.dx-rt { display: grid; justify-items: end; }
.dx-rt b { grid-area: 1 / 1; font-size: 26px; font-weight: 800; letter-spacing: -.03em; }
.dx-t1, .dx-t2 { opacity: 0; }
.dx-t1 { animation: dx-t1 10s ease-in-out infinite 2.2s; }
.dx-t2 { animation: dx-t2 10s ease-in-out infinite 2.2s; }
.dx-t3 { animation: dx-t3 10s ease-in-out infinite 2.2s; }
.bell { width: 37px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transform-origin: 50% 10%; animation: dx-bell 10s ease-in-out infinite 2.2s; }
.dx-snd { opacity: 0; animation: dx-snd 10s ease-in-out infinite 2.2s; }
.dx-s2 { animation-delay: 2.3s; }
@keyframes pop { 0% { opacity: 0; transform: translateY(8px); } 8%, 88% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; } }
@keyframes dx-t1 { 0% { opacity: 0; transform: translateY(6px); } 8%, 22% { opacity: 1; transform: none; } 27%, 100% { opacity: 0; } }
@keyframes dx-t2 { 0%, 22% { opacity: 0; transform: translateY(6px); } 28%, 47% { opacity: 1; transform: none; } 52%, 100% { opacity: 0; } }
@keyframes dx-t3 { 0%, 47% { opacity: 0; transform: translateY(6px); } 53%, 100% { opacity: 1; transform: none; } }
@keyframes dx-hl2 { 0%, 22% { transform: none; } 27% { transform: scale(1.22); } 34%, 100% { transform: none; } }
@keyframes dx-hl3 { 0%, 47% { transform: none; } 52% { transform: scale(1.22); } 59%, 100% { transform: none; } }
@keyframes dx-bell { 0%, 56% { transform: none; } 58% { transform: rotate(18deg); } 60% { transform: rotate(-18deg); } 62% { transform: rotate(18deg); } 64% { transform: rotate(-16deg); } 66% { transform: rotate(10deg); } 68% { transform: rotate(-5deg); } 70%, 100% { transform: none; } }
@keyframes dx-snd { 0%, 56% { opacity: 0; } 58%, 62%, 66% { opacity: 1; } 60%, 64% { opacity: .25; } 70%, 100% { opacity: 0; } }

/* 2. Dojazd: pojazd mija przystanki (zapalają się po kolei), na drugim staje, godzina zmienia się na 07:46 z odznaką +4, potem dojeżdża i „Uczelnia” się odhacza */
.d-top { display: flex; align-items: center; gap: 8px; }
.lchip { font: 700 14px var(--mono); background: var(--accent); color: var(--accent-ink); border-radius: 9px; padding: 4px 9px; }
.time { position: relative; display: inline-block; min-width: 3.4em; font: 700 18px var(--mono); }
.time i { display: block; }
.t-old { animation: oldt 11s infinite; }
.t-new { position: absolute; inset: 0; color: var(--coral); animation: newt 11s infinite; }
.lbadge { margin-left: auto; font: 700 13px var(--mono); color: #2a0d08; background: var(--coral); border-radius: 99px; padding: 3px 10px; animation: badge 11s infinite; }
.track { position: relative; height: 28px; margin: 10px 8px 0; }
.rail { position: absolute; left: 0; right: 0; top: 11px; height: 6px; border-radius: 6px; background: var(--edge); }
.stop { position: absolute; top: 5px; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: var(--bg); border: 3px solid var(--soft); }
.stop::before { content: ""; position: absolute; inset: -3px; border-radius: 50%; background: var(--accent); opacity: 0; animation: dx-lit 11s ease-out infinite; }
.s0 { left: 0; } .s1 { left: 33.3%; } .s2 { left: 66.6%; } .s3 { left: 100%; }
.s0::before { animation-name: dx-lit0; }
.s2::before, .s3::before { background: var(--coral); }
.s2::before { animation-name: dx-lit2; } .s3::before { animation-name: dx-lit3; }
.dx-run { position: absolute; left: 0; top: 4px; width: 100%; height: 20px; opacity: 0; animation: dx-ride 11s ease-in-out infinite; }
.veh { position: absolute; left: -10px; top: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--accent); }
.veh::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; background: inherit; opacity: .24; }
.dx-late { background: var(--coral); opacity: 0; animation: dx-lateon 11s ease-out infinite; }
.dx-late::after { animation: dx-halo 11s ease-in-out infinite; }
.stops { display: flex; justify-content: space-between; font-size: 13px; color: var(--soft); }
.stops span { display: inline-flex; align-items: center; gap: 4px; }
.dx-ok { width: 14px; height: 14px; fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 24; animation: dx-okdraw 11s ease-out infinite; }
@keyframes dx-ride { 0% { opacity: 0; transform: translateX(0); } 4% { opacity: 1; transform: translateX(0); } 20%, 40% { transform: translateX(33.3%); } 56% { transform: translateX(66.6%); } 72%, 94% { opacity: 1; transform: translateX(100%); } 98%, 100% { opacity: 0; transform: translateX(100%); } }
@keyframes dx-lateon { 0%, 26% { opacity: 0; } 30%, 94% { opacity: 1; } 98%, 100% { opacity: 0; } }
@keyframes dx-halo { 0%, 29% { transform: scale(1); } 32% { transform: scale(1.5); } 35% { transform: scale(1); } 37% { transform: scale(1.5); } 40%, 100% { transform: scale(1); } }
@keyframes dx-lit0 { 0% { opacity: 0; transform: scale(.3); } 5%, 94% { opacity: 1; transform: none; } 98%, 100% { opacity: 0; } }
@keyframes dx-lit { 0%, 19% { opacity: 0; transform: scale(.3); } 24%, 94% { opacity: 1; transform: none; } 98%, 100% { opacity: 0; } }
@keyframes dx-lit2 { 0%, 51% { opacity: 0; transform: scale(.3); } 56%, 94% { opacity: 1; transform: none; } 98%, 100% { opacity: 0; } }
@keyframes dx-lit3 { 0%, 67% { opacity: 0; transform: scale(.3); } 72%, 94% { opacity: 1; transform: none; } 98%, 100% { opacity: 0; } }
@keyframes dx-okdraw { 0%, 72% { stroke-dashoffset: 24; } 80%, 94% { stroke-dashoffset: 0; } 98%, 100% { stroke-dashoffset: 24; } }
@keyframes oldt { 0%, 26% { opacity: 1; } 30%, 94% { opacity: 0; } 100% { opacity: 1; } }
@keyframes newt { 0%, 26% { opacity: 0; } 30%, 94% { opacity: 1; } 100% { opacity: 0; } }
@keyframes badge { 0%, 26% { opacity: 0; transform: scale(.6); } 30%, 94% { opacity: 1; transform: none; } 100% { opacity: 0; } }

/* 3. Ekran blokady: powiadomienie z odliczaniem, potem drugie (opóźnienie +4 min) i licznik rośnie o 4 */
@property --n { syntax: "<integer>"; inherits: false; initial-value: 6; }
.d-lock { background: linear-gradient(160deg, #1b2a12, #0d0f0b 70%); justify-items: center; }
.lock { width: 100%; display: grid; gap: 6px; text-align: center; }
.l-clock { font: 300 36px/1.05 var(--sans); letter-spacing: -.03em; margin-bottom: 2px; }
.notif { display: flex; gap: 10px; align-items: center; text-align: left; background: color-mix(in srgb, var(--tile) 88%, transparent); border: 1px solid var(--edge); border-radius: 16px; padding: 7px 12px; animation: dx-n1 13s ease-out infinite backwards; }
.notif .mark { width: 22px; height: 22px; flex: none; color: var(--accent); }
.notif b { font: 700 15px var(--sans); }
.dx-n2 { animation-name: dx-n2; }
.dx-warn { color: var(--coral) !important; }
.dx-late2 { font: 700 15px var(--mono); color: var(--coral); }
.count { display: inline-block; font-family: var(--mono); color: var(--accent); font-size: 17px; animation: tick 13s linear infinite, dx-bump 13s ease-in-out infinite; counter-reset: c var(--n); }
.count::after { content: counter(c); }
@keyframes tick { 0%, 14% { --n: 12; animation-timing-function: steps(4, end); } 40% { --n: 8; animation-timing-function: steps(1, end); } 52% { --n: 12; animation-timing-function: steps(6, end); } 90%, 100% { --n: 6; } }
@keyframes dx-bump { 0%, 50% { transform: none; } 54% { transform: scale(1.3); } 60%, 100% { transform: none; } }
@keyframes dx-n1 { 0%, 4% { opacity: 0; transform: translateY(36px) scale(.96); } 12%, 94% { opacity: 1; transform: none; } 98%, 100% { opacity: 0; transform: translateY(-6px); } }
@keyframes dx-n2 { 0%, 42% { opacity: 0; transform: translateY(36px) scale(.96); } 50%, 94% { opacity: 1; transform: none; } 98%, 100% { opacity: 0; transform: translateY(-6px); } }

/* 4. Plan zajęć: bloki z nazwami spadają po kolei, „Ang” się podświetla jako „teraz”, a „Lab” przesuwa się na wtorek i dostaje nową salę; na końcu wszystko gaśnie razem */
.week { display: grid; grid-template-columns: repeat(5, 1fr); grid-template-rows: auto repeat(3, 29px); gap: 6px; }
.dh { font: 600 13px var(--mono); color: var(--soft); text-align: center; }
.blk { position: relative; display: grid; place-items: center; border-radius: 9px; background: var(--accent); opacity: 0; }
.blk i { grid-area: 1 / 1; font: 700 11px var(--mono); color: var(--accent-ink); }
.b1 { grid-column: 1; grid-row: 2; animation: dx-b1 12s infinite; }
.b2 { grid-column: 2; grid-row: 2 / span 2; background: var(--amber); animation: dx-b2 12s infinite; }
.b3 { grid-column: 3; grid-row: 3; animation: dx-b3 12s infinite; }
.b4 { grid-column: 4; grid-row: 2; animation: dx-b4 12s infinite; }
.b5 { grid-column: 5; grid-row: 3 / span 2; background: var(--amber); animation: dx-b5 12s infinite; }
.b6 { grid-column: 1; grid-row: 4; animation: dx-move 12s infinite; }
.b3::after { content: ""; position: absolute; inset: -4px; border: 2px solid var(--ink); border-radius: 12px; opacity: 0; animation: dx-ring2 12s ease-in-out infinite; }
.b6::after { content: ""; position: absolute; top: -3px; right: -3px; width: 9px; height: 9px; border-radius: 50%; background: var(--coral); opacity: 0; animation: dx-dot 12s ease-out infinite; }
.dx-sub { animation: dx-sub 12s ease-in-out infinite; }
.dx-now { opacity: 0; animation: dx-now 12s ease-in-out infinite; }
.dx-r1 { animation: dx-r1 12s ease-in-out infinite; }
.dx-r2 { opacity: 0; animation: dx-r2 12s ease-in-out infinite; }
@keyframes dx-b1 { 0%, 3% { opacity: 0; transform: translateY(-26px); animation-timing-function: cubic-bezier(.3, 1.4, .5, 1); } 11%, 94% { opacity: 1; transform: none; animation-timing-function: ease-in; } 98%, 100% { opacity: 0; transform: none; } }
@keyframes dx-b2 { 0%, 8% { opacity: 0; transform: translateY(-26px); animation-timing-function: cubic-bezier(.3, 1.4, .5, 1); } 16%, 94% { opacity: 1; transform: none; animation-timing-function: ease-in; } 98%, 100% { opacity: 0; transform: none; } }
@keyframes dx-b3 { 0%, 13% { opacity: 0; transform: translateY(-26px); animation-timing-function: cubic-bezier(.3, 1.4, .5, 1); } 21%, 94% { opacity: 1; transform: none; animation-timing-function: ease-in; } 98%, 100% { opacity: 0; transform: none; } }
@keyframes dx-b4 { 0%, 18% { opacity: 0; transform: translateY(-26px); animation-timing-function: cubic-bezier(.3, 1.4, .5, 1); } 26%, 94% { opacity: 1; transform: none; animation-timing-function: ease-in; } 98%, 100% { opacity: 0; transform: none; } }
@keyframes dx-b5 { 0%, 23% { opacity: 0; transform: translateY(-26px); animation-timing-function: cubic-bezier(.3, 1.4, .5, 1); } 31%, 94% { opacity: 1; transform: none; animation-timing-function: ease-in; } 98%, 100% { opacity: 0; transform: none; } }
@keyframes dx-move {
  0%, 28% { opacity: 0; transform: translateY(-26px); animation-timing-function: cubic-bezier(.3, 1.4, .5, 1); }
  36%, 60% { opacity: 1; transform: none; animation-timing-function: ease-in-out; }
  70%, 94% { opacity: 1; transform: translateX(calc(100% + 6px)); animation-timing-function: ease-in; }
  98%, 100% { opacity: 0; transform: translateX(calc(100% + 6px)); }
}
@keyframes dx-ring2 { 0%, 40% { opacity: 0; transform: scale(.88); } 45% { opacity: 1; transform: scale(1.06); } 49%, 58% { opacity: 1; transform: none; } 63%, 100% { opacity: 0; transform: none; } }
@keyframes dx-sub { 0%, 42% { opacity: 1; } 46%, 58% { opacity: 0; } 62%, 100% { opacity: 1; } }
@keyframes dx-now { 0%, 42% { opacity: 0; } 46%, 58% { opacity: 1; } 62%, 100% { opacity: 0; } }
@keyframes dx-r1 { 0%, 28% { opacity: 0; } 36%, 64% { opacity: 1; } 68%, 100% { opacity: 0; } }
@keyframes dx-r2 { 0%, 66% { opacity: 0; } 72%, 94% { opacity: 1; } 98%, 100% { opacity: 0; } }
@keyframes dx-dot { 0%, 68% { opacity: 0; transform: scale(.4); } 74%, 99% { opacity: 1; transform: none; } 100% { opacity: 0; } }

/* 5. Lumek: skacze przy każdej iskrze, słoik się napełnia, „+1”, kropki misji zapalają się po kolei, a na końcu odhaczenie i radosny podskok */
.d-lumek { gap: 6px; }
.lumek { width: 100%; max-width: 200px; margin: 0 auto; display: block; }
.dx-hop { animation: dx-hop 12s ease-in-out infinite; }
.fill { fill: var(--accent); opacity: .85; transform-box: fill-box; transform-origin: 50% 100%; animation: dx-fill 12s ease-in-out infinite; }
.sp { fill: var(--amber); opacity: 0; transform-box: fill-box; transform-origin: center; animation: fly 12s infinite; }
.dx-sx { animation: dx-sx 12s linear infinite; }
.dx-sx1, .sp1 { animation-delay: 1.2s; } .dx-sx2, .sp2 { animation-delay: 3s; } .dx-sx3, .sp3 { animation-delay: 4.8s; }
.jar { transform-box: fill-box; transform-origin: 50% 100%; animation: dx-jar 12s ease-in-out infinite; }
.dx-plus { fill: var(--accent); font: 800 13px var(--mono); opacity: 0; animation: dx-plus 12s ease-out infinite 1.2s; }
.dx-p2 { animation-delay: 3s; } .dx-p3 { animation-delay: 4.8s; }
.mission { display: flex; justify-content: space-between; align-items: center; font-size: 13px; background: var(--tile); border-radius: 11px; padding: 5px 11px; color: var(--soft); }
.dx-ml { display: flex; align-items: center; gap: 10px; }
.dx-pips { display: flex; gap: 5px; }
.dx-pips i { position: relative; display: block; width: 8px; height: 8px; border-radius: 50%; background: var(--edge); }
.dx-pips i::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--accent); animation: dx-pip1 12s ease-out infinite; }
.dx-pips i:nth-child(2)::after { animation-name: dx-pip2; } .dx-pips i:nth-child(3)::after { animation-name: dx-pip3; }
.mission svg { width: 20px; height: 20px; fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.tick { stroke-dasharray: 24; animation: check 12s ease-out infinite; }
@keyframes breathe { 0%, 100% { transform: scale(1, 1); } 50% { transform: scale(1.05, .96); } }
@keyframes blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }
@keyframes fly { 0% { opacity: 0; transform: translateY(0) scale(.5); } 2% { opacity: 1; transform: translateY(-4px) scale(1); animation-timing-function: ease-out; } 7.5% { opacity: 1; transform: translateY(-26px) scale(1.15); animation-timing-function: ease-in; } 13% { opacity: 1; transform: translateY(-2px) scale(1); } 16%, 100% { opacity: 0; transform: translateY(10px) scale(.4); } }
@keyframes dx-sx { 0% { transform: none; } 13%, 100% { transform: translateX(98px); } }
@keyframes dx-grin { 0%, 59% { opacity: 0; } 61%, 69% { opacity: 1; } 71%, 100% { opacity: 0; } }
@keyframes dx-smile { 0%, 59% { opacity: 1; } 61%, 69% { opacity: 0; } 71%, 100% { opacity: 1; } }
@keyframes dx-jar { 0%, 22% { transform: none; } 24% { transform: scale(1.07, .93); } 27% { transform: scale(.97, 1.03); } 30%, 37% { transform: none; } 39% { transform: scale(1.07, .93); } 42% { transform: scale(.97, 1.03); } 45%, 52% { transform: none; } 54% { transform: scale(1.07, .93); } 57% { transform: scale(.97, 1.03); } 60%, 100% { transform: none; } }
@keyframes dx-hop { 0%, 7% { transform: none; } 9% { transform: translateY(-8px); } 12% { transform: none; } 22% { transform: none; } 24% { transform: translateY(-8px); } 27% { transform: none; } 37% { transform: none; } 39% { transform: translateY(-8px); } 42% { transform: none; } 60% { transform: none; } 62% { transform: translateY(-13px); } 64% { transform: none; } 66% { transform: translateY(-13px); } 68%, 100% { transform: none; } }
@keyframes dx-fill { 0%, 22% { transform: scaleY(.2); } 26%, 38% { transform: scaleY(.5); } 42%, 53% { transform: scaleY(.75); } 57%, 94% { transform: scaleY(1); } 98%, 100% { transform: scaleY(.2); } }
@keyframes dx-plus { 0%, 11% { opacity: 0; transform: translateY(4px); } 13% { opacity: 1; transform: none; } 21% { opacity: 1; transform: translateY(-8px); } 24%, 100% { opacity: 0; transform: translateY(-12px); } }
@keyframes dx-pip1 { 0%, 22% { opacity: 0; transform: scale(.3); } 26%, 94% { opacity: 1; transform: none; } 98%, 100% { opacity: 0; } }
@keyframes dx-pip2 { 0%, 38% { opacity: 0; transform: scale(.3); } 42%, 94% { opacity: 1; transform: none; } 98%, 100% { opacity: 0; } }
@keyframes dx-pip3 { 0%, 53% { opacity: 0; transform: scale(.3); } 57%, 94% { opacity: 1; transform: none; } 98%, 100% { opacity: 0; } }
@keyframes check { 0%, 58% { stroke-dashoffset: 24; } 64%, 94% { stroke-dashoffset: 0; } 98%, 100% { stroke-dashoffset: 24; } }

/* 6. Terminy: wiersze wskakują, licznik dni odlicza (5 → 3), pasek kolokwium się domyka, na końcu „Cel na dziś” nabija minuty do 45 */
@property --d { syntax: "<integer>"; inherits: false; initial-value: 3; }
@property --g { syntax: "<integer>"; inherits: false; initial-value: 45; }
.d-due { gap: 6px; }
.d-due ul { display: grid; gap: 5px; }
.d-due li { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; align-items: center; font-size: 12.5px; line-height: 1.2; padding: 4px 10px 5px; background: var(--tile); border-radius: 10px; animation: pop 12s ease-in-out infinite backwards; }
.d-due li:nth-child(2) { animation-delay: .6s; } .d-due li:nth-child(3) { animation-delay: 1.2s; }
.dchip { font: 700 11px/1.2 var(--mono); color: var(--soft); }
.dchip.hot { color: #2a0d08; background: var(--coral); border-radius: 99px; padding: 1px 8px; transform-origin: right center; animation: dx-chip 12s ease-in-out infinite; }
.dx-days { display: inline-block; animation: dx-days 12s linear infinite; counter-reset: dd var(--d); }
.dx-days::after { content: counter(dd); }
.dbar { grid-column: 1 / -1; height: 4px; border-radius: 4px; background: var(--edge); overflow: hidden; }
.dbar u { display: block; height: 100%; width: var(--w); border-radius: 5px; background: var(--accent); transform-origin: left; animation: grow 12s cubic-bezier(.2, .8, .3, 1) infinite backwards .5s; }
.d-due li:nth-child(1) .dbar u { --w: 86%; background: var(--coral); animation: dx-bar1 12s cubic-bezier(.2, .8, .3, 1) infinite backwards; }
.d-due li:nth-child(2) .dbar u { --w: 48%; background: var(--amber); animation-delay: 1.1s; } .d-due li:nth-child(3) .dbar u { --w: 22%; animation-delay: 1.7s; }
.goal { display: flex; align-items: center; justify-content: space-between; background: var(--accent); color: var(--accent-ink); border-radius: 12px; padding: 4px 12px; font-size: 13px; font-weight: 700; animation: pop 12s ease-in-out infinite backwards 2.4s; }
.goal b { font-size: 17px; font-weight: 800; transform-origin: right center; animation: dx-gbump 12s ease-in-out infinite 2.4s; }
.dx-min { display: inline-block; animation: dx-goal 12s linear infinite 2.4s; counter-reset: gg var(--g); }
.dx-min::after { content: counter(gg); }
@keyframes grow { 0% { transform: scaleX(0); } 25%, 90% { transform: scaleX(1); } 100% { transform: scaleX(0); } }
@keyframes dx-bar1 { 0%, 6% { transform: scaleX(0); } 18%, 36% { transform: scaleX(.8); } 40%, 48% { transform: scaleX(.9); } 52%, 100% { transform: scaleX(1); } }
@keyframes dx-days { 0%, 24% { --d: 5; animation-timing-function: steps(2, end); } 48%, 100% { --d: 3; } }
@keyframes dx-chip { 0%, 35% { transform: none; } 38% { transform: scale(1.15); } 41%, 47% { transform: none; } 50% { transform: scale(1.15); } 53%, 100% { transform: none; } }
@keyframes dx-goal { 0%, 25% { --g: 0; animation-timing-function: steps(9, end); } 62%, 100% { --g: 45; } }
@keyframes dx-gbump { 0%, 60% { transform: none; } 64% { transform: scale(1.18); } 70%, 100% { transform: none; } }

/* Kroki */
.steps { margin-top: 24px; display: grid; gap: 12px; }
.steps li { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; background: var(--tile); border: 1px solid var(--edge); border-radius: 20px; padding: 12px 16px; }
.n { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font: 800 17px var(--mono); }
.steps h3 { font-size: 16px; letter-spacing: -.015em; }
.steps p { color: var(--soft); margin-top: 1px; font-size: 14px; }

/* Instalacja */
.install { margin-top: 24px; background: var(--card); border: 1px solid var(--edge); border-radius: 28px; padding: 20px 20px 24px; max-width: 620px; }
.tabs { display: inline-flex; background: var(--sunk); border-radius: 999px; padding: 4px; gap: 4px; }
.tab { font: 600 15px var(--sans); color: var(--soft); background: none; border: 0; padding: 10px 22px; min-height: 44px; border-radius: 999px; cursor: pointer; }
.tab[aria-selected="true"] { background: var(--accent); color: var(--accent-ink); }
.panel { margin-top: 18px; }
.panel ol { counter-reset: s; display: grid; gap: 12px; }
.panel li { counter-increment: s; display: grid; grid-template-columns: 28px 1fr; gap: 12px; }
.panel li::before { content: counter(s); font: 700 13px var(--mono); color: var(--accent); border: 1px solid var(--edge); border-radius: 50%; width: 28px; height: 28px; display: grid; place-items: center; margin-top: 2px; }
.note2 { margin-top: 14px; font-size: 14px; color: var(--soft); }
#install-btn { margin-top: 18px; }
.lp [hidden] { display: none !important; }
.lp .btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: 999px; font: 700 16px var(--sans); border: 0; cursor: pointer; }

.lp-foot { display: grid; gap: 6px; border-top: 1px solid var(--hair); margin-top: 24px; padding: 24px 0 calc(32px + env(safe-area-inset-bottom)); font-size: 13.5px; color: var(--soft); }

@media (min-width: 560px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 900px) {
  .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
  .tile { padding: 20px; }
  .demo { height: 196px; }
}
@media (min-width: 760px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
  .steps li { grid-template-columns: 1fr; gap: 10px; align-items: start; }
}
@media (prefers-reduced-motion: reduce) {
  .hero *, .hero *::before, .sheet, .sheet[open] { animation: none !important; }
  .stage { transform: none !important; }
  .pk { display: none; }
  .lp *, .lp *::before, .lp *::after { animation: none !important; }
  .time .t-old, .sp, .dx-t1, .dx-t2, .dx-r2, .dx-plus, .dx-snd, .veh:not(.dx-late) { display: none; }
  .lp.js .tile:not(.in) { opacity: 1; }
  .lbadge, .dx-late { opacity: 1; }
  .dx-run { opacity: 1; transform: translateX(100%); }
  .stop::before { opacity: 1; }
  .blk { opacity: 1; }
  .lk-grin { display: none; }
  .dx-sub { display: none; }
  .dx-now { opacity: 1; }
  html { scroll-behavior: auto; }
}
