/* Landing SKILEMA. Paleta marki jak w login.html/listing.html; czerwień, żółć i zieleń
   rysunków to domyślne kolory narzędzi telestracji (telestration/core.js) — na tej
   stronie występują wyłącznie w narysowanych scenach, nigdy jako ozdoba interfejsu.

   Ruch: stan spoczynkowy każdego elementu to stan KOŃCOWY (gotowy rysunek, widoczna
   treść). Stany startowe animacji wejścia istnieją tylko pod `.js` (flag.js) i tylko
   gdy system nie prosi o ograniczenie ruchu — bez JS i z reduced-motion strona jest
   kompletna i nieruchoma. */

/* Archivo (OFL) — krój nagłówków; zmienna szerokość 62–125% i grubość 100–900. */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url(/static/fonts/Archivo-var-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url(/static/fonts/Archivo-var-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --pitch: #061A11;
  --pitch-stripe: #0A2418;
  --pitch-panel: #0C2419;
  --chalk: #E8F5EE;
  --chalk-dim: #97B8A7;
  --turf: #00D181;
  --line-dim: #1E4331;
  --ink-red: #ff3b30;
  --ink-yellow: #ffcc00;
  --ink-green: #3DD68C;
  --display: "Archivo", Inter, system-ui, sans-serif;
  --ui: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Code", Consolas, monospace;
  --page: 1180px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --loop: 16s;
  --ease: cubic-bezier(.2, .7, .2, 1);
  interpolate-size: allow-keywords;   /* płynne rozwijanie <details> do wysokości auto */
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body {
  margin: 0;
  background: var(--pitch);
  color: var(--chalk);
  font-family: var(--ui);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
p { margin: 0 0 1em; max-width: 62ch; }
h1, h2, h3 { margin: 0; font-family: var(--display); color: var(--chalk); }
h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.7rem);
  font-weight: 750;
  font-stretch: 112%;
  line-height: 1.08;
  letter-spacing: -0.012em;
  max-width: 18ch;
  text-wrap: balance;
}
h3 { font-size: 1.15rem; font-weight: 700; font-stretch: 106%; line-height: 1.25; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--turf); outline-offset: 3px; border-radius: 4px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

kbd, .timecode { font-family: var(--mono); font-variant-numeric: tabular-nums; }
kbd {
  display: inline-grid; place-items: center;
  width: 1.55rem; height: 1.55rem; flex: none;
  border: 1px solid var(--line-dim); border-bottom-width: 2px; border-radius: 5px;
  background: var(--pitch); color: var(--chalk-dim);
  font-size: .72rem; font-weight: 500;
}

/* --- przyciski --- */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 2.9rem; padding: .6rem 1.35rem;
  border: 1.5px solid transparent; border-radius: 10px;
  font: 600 1rem/1.2 var(--ui); text-decoration: none; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s, transform .15s, box-shadow .2s;
}
.btn--primary { background: var(--turf); color: var(--pitch); box-shadow: 0 10px 30px -12px rgba(0, 209, 129, .7); }
.btn--primary:hover { background: #2BE39A; transform: translateY(-1px); box-shadow: 0 14px 34px -12px rgba(0, 209, 129, .85); }
.btn--primary::after {   /* błysk przesuwający się po przycisku przy najechaniu */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .45) 50%, transparent 65%);
  transform: translateX(-120%);
}
.btn--primary:hover::after { transform: translateX(120%); transition: transform .6s var(--ease); }
.btn--ghost { border-color: var(--line-dim); color: var(--chalk); }
.btn--ghost:hover { border-color: var(--turf); background: rgba(0, 209, 129, .08); }

/* --- nagłówek --- */
.nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 2rem;
  padding: .8rem max(var(--gutter), calc((100vw - var(--page)) / 2));
  background: rgba(6, 26, 17, .86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(30, 67, 49, .7);
}
.nav__logo img { height: 36px; width: auto; }
.nav__links { display: flex; gap: 1.6rem; margin-left: auto; font-size: .95rem; }
.nav__links a { position: relative; color: var(--chalk-dim); text-decoration: none; padding: .3rem 0; transition: color .15s; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--turf); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
}
.nav__links a:hover { color: var(--chalk); }
.nav__links a:hover::after { transform: scaleX(1); }
.nav__enter { min-height: 2.5rem; padding: .45rem 1.05rem; font-size: .95rem; }

/* --- hero --- */
.hero-wrap {
  position: relative; overflow: hidden;
  background:
    radial-gradient(60% 46% at 16% 0%, rgba(21, 232, 131, .16), transparent 70%),
    radial-gradient(44% 38% at 88% 6%, rgba(116, 243, 97, .09), transparent 70%);
}
.hero-wrap::before, .hero-wrap::after {   /* koło środkowe i linia — echo strony logowania */
  content: ""; position: absolute; pointer-events: none;
}
.hero-wrap::before {
  width: 760px; aspect-ratio: 1; right: -230px; top: -300px;
  border: 1.5px solid var(--line-dim); border-radius: 50%; opacity: .75;
}
.hero-wrap::after {
  right: 150px; top: 0; width: 1.5px; height: 460px;
  background: linear-gradient(var(--line-dim), transparent);
}
.hero {
  position: relative; z-index: 1;
  max-width: var(--page); margin: 0 auto;
  padding: clamp(2.5rem, 7vw, 5.5rem) var(--gutter) clamp(3rem, 7vw, 6rem);
}
.hero__copy { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 1.5rem 3.5rem; align-items: end; }
.hero h1 {
  grid-row: span 2;
  font-size: clamp(2.3rem, 5vw, 4.1rem);
  font-weight: 800;
  font-stretch: 120%;
  line-height: 1.02;
  letter-spacing: -0.022em;
  text-wrap: balance;
}
.hero__lead { margin: 0; color: var(--chalk-dim); font-size: 1.14rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; }

/* Okno analizy: pasek narzędzi, kadr, oś czasu. */
.frame {
  display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "rail stage" "time time";
  margin: clamp(2.2rem, 5vw, 3.8rem) 0 0;
  border: 1px solid var(--line-dim); border-radius: 16px; overflow: hidden;
  background: var(--pitch-panel);
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .9), 0 0 0 6px rgba(12, 36, 25, .5), 0 0 120px -30px rgba(0, 209, 129, .28);
}
.frame__rail {
  grid-area: rail; display: flex; flex-direction: column; gap: .15rem;
  margin: 0; padding: .8rem .6rem; list-style: none;
  border-right: 1px solid var(--line-dim);
  font-size: .86rem; color: var(--chalk-dim);
}
.tool { display: flex; align-items: center; gap: .6rem; padding: .4rem .7rem .4rem .45rem; border-radius: 8px; }
.frame__stage { grid-area: stage; position: relative; min-width: 0; }
.hero-scene { width: 100%; height: 100%; aspect-ratio: 1200 / 560; }
.frame__moment {
  position: absolute; left: 1rem; top: 1rem; margin: 0;
  display: flex; align-items: center; gap: .65rem;
  padding: .4rem .8rem .4rem .55rem; border-radius: 8px;
  background: rgba(6, 26, 17, .82); border: 1px solid var(--line-dim);
  font-size: .9rem; font-weight: 500;
}
.timecode { font-size: .84rem; color: var(--turf); }
.timecode--dim { color: var(--chalk-dim); }
.frame__timeline {
  grid-area: time; display: flex; align-items: center; gap: 1rem;
  padding: .85rem 1.1rem; border-top: 1px solid var(--line-dim);
}
.track { position: relative; flex: 1; height: 22px; }
.track::before {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px;
  background: var(--line-dim); transform: translateY(-50%);
}
.tick { position: absolute; top: 50%; width: 2px; height: 10px; background: var(--chalk-dim); transform: translate(-50%, -50%); opacity: .7; }
.tick--cheer { height: 16px; background: var(--ink-yellow); opacity: .85; }
.tick--moment { width: 8px; height: 8px; border-radius: 2px; background: var(--turf); opacity: 1; transform: translate(-50%, -50%) rotate(45deg); }
.track__head {
  position: absolute; top: -3px; bottom: -3px; left: 39.4%; width: 2px;
  background: var(--chalk); box-shadow: 0 0 0 3px rgba(232, 245, 238, .16);
  transition: left .6s var(--ease);
}

/* Sceny SVG (landing_hero.svg, landing_tools.html — generuje tools/landing/build_scenes.py). */
.scene-lines { fill: none; stroke: rgba(232, 245, 238, .5); stroke-width: 1.6; }
.scene-goals { fill: none; stroke: rgba(232, 245, 238, .85); stroke-width: 2.2; }
.scene-player--a { fill: #F2F7F4; }
.scene-player--b { fill: #6FA8E8; }
.scene-player__shadow { fill: rgba(0, 0, 0, .38); }
.hero-runner, .demo-runner { transform: translate(var(--x0), var(--y0)) scale(var(--s0)); }
.hero-ball { transform: translate(var(--x0), var(--y0)); }
.hero-arrow, .demo-draw { stroke-dasharray: 1; stroke-dashoffset: 0; }

/* --- sekcje: naprzemienne pasy tła jak pasy koszenia murawy --- */
.band { position: relative; padding: clamp(4.5rem, 9vw, 7.5rem) var(--gutter); }
.band--alt {
  background:
    radial-gradient(50% 60% at 100% 0%, rgba(0, 209, 129, .07), transparent 70%),
    var(--pitch-stripe);
}
.split, .stack { max-width: var(--page); margin: 0 auto; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.split--flip .split__text { order: 2; }
.split--phone { grid-template-columns: minmax(0, 1.5fr) auto; }
.split--faq { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: start; }
.split--faq .split__text { position: sticky; top: 6.5rem; }
.split__text h2 { margin-bottom: 1.4rem; }
.split__text p { color: var(--chalk-dim); }
.split__text a { color: var(--turf); }
.stack__lead { margin: 1.2rem 0 0; color: var(--chalk-dim); }

/* Przejście między działami: linia boiska z motywem na styku pasów. */
.divider { position: relative; z-index: 2; height: 0; }
.divider::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1.5px;
  background: linear-gradient(90deg, transparent, rgba(232, 245, 238, .3) 18%, rgba(232, 245, 238, .3) 82%, transparent);
  transition: transform 1.1s var(--ease);
}
.divider__motif {
  position: absolute; left: 50%; top: 0; width: min(360px, 72vw); overflow: visible;
  transform: translate(-50%, -50%);
  fill: none; stroke: rgba(232, 245, 238, .34); stroke-width: 1.5;
}
.divider__motif [pathLength] { stroke-dasharray: 1; stroke-dashoffset: 0; transition: stroke-dashoffset 1.3s .25s var(--ease); }
.divider__dot { fill: var(--turf); stroke: none; transform-box: fill-box; transform-origin: center; transition: transform .5s 1.1s var(--ease); }

/* Schemat pola widzenia kamery. */
.fov { width: 100%; height: auto; overflow: visible; }
.fov__wide { fill: rgba(0, 209, 129, .13); transition: opacity .9s .7s; }
.fov__pitch { fill: none; stroke: rgba(232, 245, 238, .42); stroke-width: 1.4; }
.fov__narrow { fill: rgba(232, 245, 238, .05); stroke: var(--chalk-dim); stroke-width: 1.2; stroke-dasharray: 5 5; }
.fov__ray { stroke: var(--turf); stroke-width: 2; transform-box: view-box; transform-origin: 240px 306px; transition: transform 1.2s var(--ease); }
.fov__arc { fill: none; stroke: var(--turf); stroke-width: 2; stroke-dasharray: 1; stroke-dashoffset: 0; transition: stroke-dashoffset 1.2s var(--ease); }
.fov__cam { fill: var(--turf); stroke: var(--pitch); stroke-width: 3; }
.fov__label { fill: var(--chalk-dim); font: 500 14px var(--ui); }
.fov__label--wide { fill: var(--turf); font: 800 34px var(--display); font-stretch: 118%; }

/* --- karuzela narzędzi --- */
.showcase {
  display: grid; grid-template-columns: 13.5rem minmax(0, 1fr); margin: 2.6rem 0 0;
  border: 1px solid var(--line-dim); border-radius: 16px; overflow: hidden; background: var(--pitch-panel);
  box-shadow: 0 40px 90px -50px rgba(0, 0, 0, .9);
}
.showcase__tabs {
  position: relative; display: flex; flex-direction: column; gap: .15rem;
  padding: .8rem .6rem; border-right: 1px solid var(--line-dim);
}
.showcase__tab {
  display: flex; align-items: center; gap: .65rem; padding: .5rem .7rem .5rem .45rem;
  border-radius: 8px; color: var(--chalk-dim); text-decoration: none; font-size: .95rem; white-space: nowrap;
  transition: background-color .2s, color .2s;
}
.showcase__tab:hover { color: var(--chalk); }
.showcase__tab.is-active { background: var(--pitch); color: var(--chalk); box-shadow: inset 3px 0 0 var(--turf); }
.showcase__tab.is-active kbd { color: var(--turf); border-color: var(--turf); }
.showcase__stage { position: relative; min-width: 0; }
.showcase__track {
  position: relative; display: flex; margin: 0; padding: 0; list-style: none; height: 100%;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain;
}
.showcase__track::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; display: flex; flex-direction: column; scroll-snap-align: start; }
.slide__scene { flex: 1; width: 100%; min-height: 0; aspect-ratio: 16 / 9; }
.slide__cap { padding: 1.05rem 7.5rem 1.15rem 1.4rem; border-top: 1px solid var(--line-dim); }
.slide__cap h3 { display: flex; align-items: center; gap: .7rem; font-size: 1.35rem; }
.slide__cap p { margin: .3rem 0 0; color: var(--chalk-dim); }
.showcase__nav { position: absolute; right: 1.1rem; bottom: 1.1rem; display: flex; gap: .5rem; }
.showcase__btn {
  display: grid; place-items: center; width: 2.6rem; height: 2.6rem; padding: 0; cursor: pointer;
  border: 1.5px solid var(--line-dim); border-radius: 50%; background: rgba(6, 26, 17, .8); color: var(--chalk);
  transition: border-color .15s, background-color .15s;
}
.showcase__btn:hover { border-color: var(--turf); background: rgba(0, 209, 129, .14); }
.showcase__btn svg { width: 1.1rem; height: 1.1rem; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* --- lista momentów --- */
.moments { border: 1px solid var(--line-dim); border-radius: 14px; background: var(--pitch-panel); overflow: hidden; box-shadow: 0 40px 90px -50px rgba(0, 0, 0, .9); }
.moments__axis { display: flex; padding: 1rem 1.2rem; border-bottom: 1px solid var(--line-dim); }
.moments__list { margin: 0; padding: 0; list-style: none; }
.moments__list li {
  display: grid; grid-template-columns: 3.4rem minmax(0, 1fr) auto; align-items: center; gap: .9rem;
  padding: .95rem 1.2rem; border-bottom: 1px solid var(--line-dim); border-left: 3px solid transparent;
  cursor: pointer; transition: background-color .4s, border-color .4s;
}
.moments__list li:hover { background: rgba(232, 245, 238, .04); }
.moments__list li.is-current { background: rgba(0, 209, 129, .09); border-left-color: var(--turf); }
.moments__title { font-weight: 500; }
.moments__by { color: var(--chalk-dim); font-size: .88rem; }
.legend { display: flex; flex-wrap: wrap; gap: .5rem 1.6rem; margin: 0; padding: .85rem 1.2rem; list-style: none; color: var(--chalk-dim); font-size: .88rem; }
.legend li { display: flex; align-items: center; gap: .6rem; }
.legend .tick { position: static; transform: none; flex: none; }
.legend .tick--moment { transform: rotate(45deg); }

/* --- role --- */
.roles-wrap { margin: 2rem 0 0; overflow-x: auto; }
.roles { width: 100%; border-collapse: collapse; font-size: 1rem; }
.roles th, .roles td { padding: 1rem 1.2rem 1rem 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line-dim); }
.roles thead th { font-family: var(--display); font-weight: 700; font-stretch: 106%; font-size: 1.08rem; color: var(--chalk); }
.roles tbody th { font-weight: 500; color: var(--chalk-dim); width: 28%; }
.roles tbody tr { transition: background-color .2s; }
.roles tbody tr:hover { background: rgba(232, 245, 238, .035); }
.roles__none { color: var(--chalk-dim); }

/* Telefon zawodnika: co widzi po zalogowaniu. */
.phone {
  width: 250px; padding: 9px; border-radius: 38px;
  background: #03110B; border: 1.5px solid var(--line-dim);
  box-shadow: 0 50px 80px -40px rgba(0, 0, 0, .95), 0 0 90px -30px rgba(0, 209, 129, .35);
  rotate: 3deg;
}
.phone__screen {
  position: relative; overflow: hidden; aspect-ratio: 9 / 17.5; border-radius: 30px;
  padding: 2.2rem .9rem 1rem; background: var(--pitch);
}
.phone__screen::before {   /* wycięcie aparatu */
  content: ""; position: absolute; left: 50%; top: .6rem; width: 64px; height: 18px;
  border-radius: 10px; background: #03110B; transform: translateX(-50%);
}
.phone__title { margin: 0 0 .8rem; font: 700 1rem var(--display); font-stretch: 106%; }
.phone__list { display: grid; gap: .55rem; margin: 0; padding: 0; list-style: none; }
.phone__list li { display: flex; align-items: center; gap: .65rem; padding: .5rem; border: 1px solid var(--line-dim); border-radius: 12px; background: var(--pitch-panel); }
.phone__thumb {
  flex: none; width: 54px; aspect-ratio: 16 / 10; border-radius: 6px;
  background:
    linear-gradient(90deg, transparent calc(50% - .5px), rgba(232, 245, 238, .5) calc(50% - .5px), rgba(232, 245, 238, .5) calc(50% + .5px), transparent calc(50% + .5px)),
    radial-gradient(circle, transparent 6px, rgba(232, 245, 238, .5) 6.5px, rgba(232, 245, 238, .5) 7.5px, transparent 8px),
    repeating-linear-gradient(90deg, #0F4A30 0 9px, #0D422B 9px 18px);
}
.phone__list b { display: block; font-size: .82rem; font-weight: 600; line-height: 1.3; }
.phone__list small { color: var(--chalk-dim); font-size: .72rem; }
.phone__toast {
  position: absolute; left: .7rem; right: .7rem; bottom: .8rem; margin: 0;
  display: flex; align-items: center; gap: .7rem; padding: .6rem .8rem .6rem 1rem;
  border-radius: 12px; background: var(--turf); color: var(--pitch); font-size: .78rem; font-weight: 600; line-height: 1.3;
  transition: transform .7s 1s var(--ease), opacity .5s 1s;
}
.phone__toast .tick { position: static; flex: none; background: var(--pitch); transform: rotate(45deg); }

.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; max-width: var(--page); margin: clamp(3rem, 6vw, 4.5rem) auto 0; padding: 0; list-style: none; }
.facts li {
  padding: 1.5rem 1.5rem 1.4rem; border: 1px solid var(--line-dim); border-radius: 14px; background: rgba(6, 26, 17, .55);
  transition: border-color .25s, transform .25s var(--ease), background-color .25s;
}
.facts li:hover { border-color: var(--turf); background: rgba(0, 209, 129, .06); transform: translateY(-4px); }
.facts__icon { width: 2rem; height: 2rem; margin-bottom: 1rem; fill: none; stroke: var(--turf); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.facts p { margin: .5rem 0 0; color: var(--chalk-dim); font-size: .98rem; }

/* --- sprzęt: zestaw na statywie; numery na rysunku = numery listy obok --- */
.kit { width: 100%; max-width: 540px; height: auto; margin: 0 auto; overflow: visible; }
.kit__ground { fill: rgba(0, 0, 0, .4); }
.kit__tripod path { fill: none; stroke: #6F9282; stroke-width: 6; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; transition: stroke-dashoffset 1s var(--ease); }
.kit__tripod .kit__column { stroke: var(--chalk-dim); stroke-width: 8; transition-delay: .5s; }
.kit__hub { fill: var(--pitch-panel); stroke: var(--chalk-dim); stroke-width: 3; }
.kit__top { transition: opacity .7s .9s, transform .7s .9s var(--ease); }
.kit__mount { fill: #123122; stroke: var(--chalk-dim); stroke-width: 2; }
.kit__case { fill: rgba(0, 209, 129, .07); stroke: var(--turf); stroke-width: 2; stroke-dasharray: 7 6; }
.kit__cam, .kit__bank { fill: #123122; stroke: var(--chalk-dim); stroke-width: 2; }
.kit__lens { fill: var(--pitch); stroke: var(--chalk); stroke-width: 3; }
.kit__glass { fill: #0F4A30; stroke: var(--turf); stroke-width: 1.5; }
.kit__glint, .kit__cable { fill: none; stroke: var(--chalk); stroke-width: 2; stroke-linecap: round; }
.kit__cable { stroke: var(--chalk-dim); }
.kit__cell { fill: var(--turf); }
.kit__link { fill: none; stroke: var(--turf); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 3 9; transition: opacity .6s 1.5s; }
.kit__screen { transition: opacity .7s 1.7s, transform .7s 1.7s var(--ease); }
.kit__monitor { fill: var(--pitch-panel); stroke: var(--turf); stroke-width: 2.5; filter: drop-shadow(0 0 18px rgba(0, 209, 129, .45)); }
.kit__pitch { fill: #0F4A30; }
.kit__pitchlines { fill: none; stroke: rgba(232, 245, 238, .5); stroke-width: 1.2; }
.kit__ink { fill: none; stroke: var(--ink-yellow); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.kit__inkhead { fill: var(--ink-yellow); }
.kit__brand { fill: var(--turf); font: 800 15px var(--display); font-stretch: 118%; letter-spacing: .06em; text-anchor: middle; }
.kit__stand { fill: none; stroke: var(--chalk-dim); stroke-width: 4; stroke-linecap: round; }
.kit__marks circle { fill: var(--chalk); stroke: var(--pitch); stroke-width: 3; }
.kit__marks text { fill: var(--pitch); font: 800 15px var(--display); text-anchor: middle; }
.kit__marks .kit__mark--plus circle { fill: var(--turf); }
.kit__marks g { transform-box: fill-box; transform-origin: center; transition: transform .45s var(--ease); }
.kit__marks g:nth-child(1) { transition-delay: 1.3s; } .kit__marks g:nth-child(2) { transition-delay: 1.4s; }
.kit__marks g:nth-child(3) { transition-delay: 1.5s; } .kit__marks g:nth-child(4) { transition-delay: 1.6s; }
.kit__marks g:nth-child(5) { transition-delay: 1.7s; } .kit__marks g:nth-child(6) { transition-delay: 1.9s; }
.kit-core {
  display: flex; gap: 1rem; margin: 1.4rem 0 0; padding: 1.25rem 1.3rem;
  border: 1.5px solid var(--turf); border-radius: 14px;
  background: linear-gradient(120deg, rgba(0, 209, 129, .18), rgba(0, 209, 129, .05));
  box-shadow: 0 24px 60px -30px rgba(0, 209, 129, .6);
}
.kit-core__mark { flex: none; width: 2rem; height: 2rem; }
.kit-core h3 { font-size: 1.25rem; }
.split__text .kit-core p { margin: .3rem 0 0; color: var(--chalk); font-size: .98rem; }
.kit-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 2rem; margin: 1.5rem 0 0; padding: 0; list-style: none; counter-reset: kit; }
.kit-list li { position: relative; counter-increment: kit; padding: .85rem 0 .85rem 2.7rem; border-top: 1px solid var(--line-dim); }
.kit-list li::before {
  content: counter(kit); position: absolute; left: 0; top: .85rem;
  display: grid; place-items: center; width: 1.8rem; height: 1.8rem; border-radius: 50%;
  background: var(--chalk); color: var(--pitch); font: 800 .9rem var(--display);
}
.kit-list li:last-child { grid-column: 1 / -1; }
.kit-list h3 { font-size: 1.05rem; }
.split__text .kit-list p { margin: .15rem 0 0; font-size: .95rem; }
.kit-offer {
  display: flex; gap: 1rem; margin: .6rem 0 0; padding: 1.2rem 1.3rem;
  border: 1.5px dashed var(--turf); border-radius: 14px; background: rgba(0, 209, 129, .05);
}
.kit-offer__mark { flex: none; display: grid; place-items: center; width: 1.8rem; height: 1.8rem; border-radius: 50%; background: var(--turf); color: var(--pitch); font: 800 1.1rem/1 var(--display); }
.split__text .kit-offer p { margin: .3rem 0 0; font-size: .97rem; }

/* --- kroki: numeracja, bo to faktyczna kolejność --- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem 3rem; margin: 2.8rem 0 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { position: relative; counter-increment: step; padding-top: 1.2rem; border-top: 2px solid var(--line-dim); }
.steps li::after {   /* linia postępu dorysowywana przy wejściu w okno */
  content: ""; position: absolute; left: 0; right: 0; top: -2px; height: 2px;
  background: var(--turf); transform-origin: left; transition: transform .9s var(--ease); transition-delay: inherit;
}
.steps li::before {
  content: counter(step); display: block; margin-bottom: .5rem;
  font: 800 3rem/1 var(--display); font-stretch: 122%; color: var(--turf);
}
.steps p { margin: .5rem 0 0; color: var(--chalk-dim); font-size: .98rem; }

/* --- pytania --- */
.faq { border-top: 1px solid var(--line-dim); }
.faq details { border-bottom: 1px solid var(--line-dim); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 1.15rem .2rem; cursor: pointer; list-style: none;
  font: 700 1.12rem/1.3 var(--display); font-stretch: 106%; transition: color .15s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover, .faq details[open] summary { color: var(--turf); }
.faq summary::after {   /* plus, który obraca się w krzyżyk-minus */
  content: ""; flex: none; width: 1.9rem; height: 1.9rem; border: 1.5px solid var(--line-dim); border-radius: 50%;
  background:
    linear-gradient(currentColor, currentColor) center / .8rem 2px no-repeat,
    linear-gradient(currentColor, currentColor) center / 2px .8rem no-repeat;
  transition: rotate .35s var(--ease), border-color .2s, background-size .35s var(--ease);
}
.faq details[open] summary::after { rotate: 180deg; border-color: var(--turf); background-size: .8rem 2px, 2px 0; }
.faq details::details-content { block-size: 0; overflow: clip; transition: block-size .4s var(--ease), content-visibility .4s allow-discrete; }
.faq details[open]::details-content { block-size: auto; }
.faq__body { padding: 0 3.4rem 1.3rem .2rem; color: var(--chalk-dim); }
.faq__body p { margin: 0; }

/* --- kontakt: odwrócone barwy, jedyna jasna płaszczyzna strony --- */
.contact {
  position: relative; z-index: 3; margin-top: -2.5rem; border-radius: 2.5rem 2.5rem 0 0;
  background:
    radial-gradient(circle at 100% 0, transparent 118px, rgba(6, 26, 17, .1) 119px, rgba(6, 26, 17, .1) 120.5px, transparent 121.5px),
    var(--chalk);
  color: var(--pitch); padding: clamp(3.5rem, 8vw, 6.5rem) var(--gutter);
}
.contact__inner { max-width: var(--page); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.contact h2 { color: var(--pitch); margin-bottom: 1.4rem; }
.contact__text p { color: #2C4A3B; }
.form { display: grid; gap: 1.1rem; }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; }
.form label { display: grid; gap: .4rem; font-size: .92rem; font-weight: 600; color: var(--pitch); }
.form__opt { font-weight: 400; color: #4C6A5B; }
.form input, .form textarea {
  width: 100%; padding: .7rem .85rem;
  border: 1.5px solid #A9C6B7; border-radius: 9px; background: #fff; color: var(--pitch);
  font: 400 1rem/1.4 var(--ui); transition: border-color .15s, box-shadow .15s;
}
.form textarea { resize: vertical; }
.form input:focus-visible, .form textarea:focus-visible { outline: none; border-color: #02955A; box-shadow: 0 0 0 4px rgba(2, 149, 90, .18); }
.form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.4rem; }
.form__note { margin: 0; flex: 1 1 16rem; font-size: .85rem; color: #4C6A5B; }
.contact .btn--primary { background: var(--pitch); color: var(--chalk); box-shadow: 0 12px 30px -14px rgba(6, 26, 17, .8); }
.contact .btn--primary:hover { background: #0F3323; }
.contact .btn--primary:focus-visible { outline-color: #02955A; }
.notice { margin: 0; padding: .9rem 1.1rem; border-radius: 10px; font-weight: 500; }
.notice--ok { background: #CDEFDD; border: 1.5px solid #02955A; color: #064C30; font-size: 1.08rem; }
.notice--err { background: #FCE9E7; border: 1.5px solid #C4281C; color: #7A1810; }

/* --- stopka --- */
.foot {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem;
  padding: 2rem max(var(--gutter), calc((100vw - var(--page)) / 2));
  color: var(--chalk-dim); font-size: .92rem;
}
.foot p { margin: 0; }
.foot a { margin-left: auto; }

/* ============================ RUCH ============================ */
@media (prefers-reduced-motion: no-preference) {
  /* Wejście hero przy ładowaniu strony — jedna sekwencja. */
  .hero h1, .hero__lead, .hero__actions, .frame { animation: rise .9s var(--ease) both; }
  .hero__lead { animation-delay: .12s; }
  .hero__actions { animation-delay: .22s; }
  .frame { animation-delay: .34s; }
  .hero-wrap::before { animation: drift 18s ease-in-out infinite alternate; }

  /* Hero: trener rysuje po kolei, potem film rusza. */
  .hero-ring { animation: ink-ring var(--loop) infinite; }
  .hero-zone { animation: ink-zone var(--loop) infinite; }
  .hero-arrow { animation: ink-arrow var(--loop) infinite; }
  .hero-arrowhead { animation: ink-arrowhead var(--loop) infinite; }
  .hero-run { animation: ink-run var(--loop) infinite; }
  .hero-beam { animation: ink-beam var(--loop) infinite; }
  .hero-runner { animation: runner var(--loop) infinite; }
  .hero-ball { animation: ball var(--loop) infinite; }
  .track__head--playing { animation: playhead var(--loop) infinite; }
  .tool--ring { animation: tool-ring var(--loop) infinite; }
  .tool--zone { animation: tool-zone var(--loop) infinite; }
  .tool--arrow { animation: tool-arrow var(--loop) infinite; }
  .tool--line { animation: tool-line var(--loop) infinite; }
  .tool--beam { animation: tool-beam var(--loop) infinite; }

  .phone { animation: float 7s ease-in-out infinite alternate; }
  .kit__cell { animation: charge 2.8s ease-in-out infinite; }
  .kit__cell:nth-of-type(6) { animation-delay: .35s; }
  .kit__cell:nth-of-type(7) { animation-delay: .7s; }
  .kit__cell:nth-of-type(8) { animation-delay: 1.05s; }
  .kit__link { animation: flow 1.1s linear infinite; }
  .kit.is-in .kit__ink { animation: demo-draw 1.2s 2.3s var(--ease) both; }
  .kit.is-in .kit__inkhead { animation: demo-fade .3s 3.3s both; }

  /* Karuzela: rysunek powstaje, gdy slajd staje się aktywny (klasę nadaje carousel.js). */
  .js .slide:not(.is-active) :is(.demo-pop, .demo-draw, .demo-head, .demo-fade) { opacity: 0; }
  .slide.is-active .demo-pop { animation: demo-pop .55s .25s var(--ease) both; transform-box: fill-box; transform-origin: center; }
  .slide.is-active .demo-draw { animation: demo-draw 1.1s .25s var(--ease) both; }
  .slide.is-active .demo-head { animation: demo-fade .25s 1.15s both; }
  .slide.is-active .demo-fade { animation: demo-fade .7s .25s both; }
  .slide.is-active .demo-runner { animation: demo-run 4.8s .4s ease-in-out infinite; }

  /* Wejścia przy przewijaniu (klasę is-in nadaje reveal.js). */
  [data-reveal]:not([data-reveal="draw"], [data-reveal="stagger"]) { transition: opacity .8s var(--ease), transform .8s var(--ease); }
  .js [data-reveal]:not([data-reveal="draw"], [data-reveal="stagger"], .is-in) { opacity: 0; transform: translateY(26px); }
  [data-reveal="stagger"] > * { transition: opacity .7s var(--ease), transform .7s var(--ease), border-color .25s, background-color .25s; }
  [data-reveal="stagger"] > :nth-child(2) { transition-delay: .1s; }
  [data-reveal="stagger"] > :nth-child(3) { transition-delay: .2s; }
  [data-reveal="stagger"] > :nth-child(4) { transition-delay: .3s; }
  [data-reveal="stagger"] > :nth-child(5) { transition-delay: .4s; }
  [data-reveal="stagger"] > :nth-child(6) { transition-delay: .5s; }
  [data-reveal="stagger"] > :nth-child(7) { transition-delay: .6s; }
  .js [data-reveal="stagger"]:not(.is-in) > * { opacity: 0; transform: translateY(22px); }
  .js .steps:not(.is-in) li::after { transform: scaleX(0); }
  .js .divider:not(.is-in)::before { transform: scaleX(0); }
  .js .divider:not(.is-in) [pathLength] { stroke-dashoffset: 1; }
  .js .divider:not(.is-in) .divider__dot { transform: scale(0); }
  .js .fov:not(.is-in) .fov__ray--left { transform: rotate(53deg); }
  .js .fov:not(.is-in) .fov__ray--right { transform: rotate(-53deg); }
  .js .fov:not(.is-in) .fov__arc { stroke-dashoffset: 1; }
  .js .fov:not(.is-in) .fov__wide { opacity: 0; }
  .js .phone:not(.is-in) .phone__toast { transform: translateY(140%); opacity: 0; }
  .js .kit:not(.is-in) .kit__tripod path { stroke-dashoffset: 1; }
  .js .kit:not(.is-in) .kit__top { opacity: 0; transform: translateY(-18px); }
  .js .kit:not(.is-in) .kit__marks g { transform: scale(0); }
  .js .kit:not(.is-in) :is(.kit__link, .kit__screen, .kit__ink, .kit__inkhead) { opacity: 0; }
  .js .kit:not(.is-in) .kit__screen { transform: translateY(16px); }
}

@keyframes rise { from { opacity: 0; transform: translateY(28px); } }
@keyframes drift { to { transform: translate(-40px, 30px); } }
@keyframes float { to { translate: 0 -12px; } }
@keyframes charge { 0%, 100% { opacity: .25; } 45%, 70% { opacity: 1; } }
@keyframes flow { to { stroke-dashoffset: -12; } }
@keyframes demo-pop { from { opacity: 0; transform: scale(1.9); } }
@keyframes demo-draw { from { stroke-dashoffset: 1; } }
@keyframes demo-fade { from { opacity: 0; } }
@keyframes demo-run {
  0%, 14% { transform: translate(var(--x0), var(--y0)) scale(var(--s0)); }
  62%, 88% { transform: translate(var(--x1), var(--y1)) scale(var(--s1)); }
  100% { transform: translate(var(--x0), var(--y0)) scale(var(--s0)); }
}
@keyframes ink-ring { 0%, 5% { opacity: 0; } 8%, 93% { opacity: 1; } 97%, 100% { opacity: 0; } }
@keyframes ink-zone { 0%, 19% { opacity: 0; } 24%, 93% { opacity: 1; } 97%, 100% { opacity: 0; } }
@keyframes ink-arrow {
  0%, 32.9% { stroke-dashoffset: 1; opacity: 0; }
  33% { stroke-dashoffset: 1; opacity: 1; }
  43%, 93% { stroke-dashoffset: 0; opacity: 1; }
  97% { stroke-dashoffset: 0; opacity: 0; }
  100% { stroke-dashoffset: 1; opacity: 0; }
}
@keyframes ink-arrowhead { 0%, 42% { opacity: 0; } 44%, 93% { opacity: 1; } 97%, 100% { opacity: 0; } }
@keyframes ink-run { 0%, 49% { opacity: 0; } 54%, 93% { opacity: 1; } 97%, 100% { opacity: 0; } }
@keyframes ink-beam { 0%, 55% { opacity: 0; } 60%, 93% { opacity: 1; } 97%, 100% { opacity: 0; } }
@keyframes runner {
  0%, 62% { transform: translate(var(--x0), var(--y0)) scale(var(--s0)); }
  84%, 94% { transform: translate(var(--x1), var(--y1)) scale(var(--s1)); }
  100% { transform: translate(var(--x0), var(--y0)) scale(var(--s0)); }
}
@keyframes ball {
  0%, 64% { transform: translate(var(--x0), var(--y0)); }
  82%, 94% { transform: translate(var(--x1), var(--y1)); }
  100% { transform: translate(var(--x0), var(--y0)); }
}
@keyframes playhead { 0%, 62% { left: 39.4%; } 84%, 94% { left: 41.2%; } 100% { left: 39.4%; } }
@keyframes tool-ring { 0%, 4.9%, 19.1%, 100% { background: transparent; color: var(--chalk-dim); } 5%, 19% { background: var(--pitch); color: var(--chalk); } }
@keyframes tool-zone { 0%, 18.9%, 33.1%, 100% { background: transparent; color: var(--chalk-dim); } 19%, 33% { background: var(--pitch); color: var(--chalk); } }
@keyframes tool-arrow { 0%, 32.9%, 49.1%, 100% { background: transparent; color: var(--chalk-dim); } 33%, 49% { background: var(--pitch); color: var(--chalk); } }
@keyframes tool-line { 0%, 48.9%, 55.1%, 100% { background: transparent; color: var(--chalk-dim); } 49%, 55% { background: var(--pitch); color: var(--chalk); } }
@keyframes tool-beam { 0%, 54.9%, 93.1%, 100% { background: transparent; color: var(--chalk-dim); } 55%, 93% { background: var(--pitch); color: var(--chalk); } }

/* ===================== WĘŻSZE EKRANY ===================== */
@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__enter { margin-left: auto; }
  .hero__copy { grid-template-columns: minmax(0, 1fr); }
  .hero h1 { grid-row: auto; }
  .hero-wrap::before { width: 480px; right: -220px; top: -220px; }
  .hero-wrap::after { display: none; }
  .frame { grid-template-columns: minmax(0, 1fr); grid-template-areas: "stage" "rail" "time"; }
  .frame__rail { flex-direction: row; overflow: hidden; border-right: 0; border-top: 1px solid var(--line-dim); padding: .5rem; }
  .tool { flex: none; padding: .3rem .55rem .3rem .35rem; }
  .split, .split--phone, .split--faq, .contact__inner { grid-template-columns: minmax(0, 1fr); }
  .split--flip .split__text { order: 0; }
  .split--faq .split__text { position: static; }
  .phone { justify-self: center; }
  .showcase { grid-template-columns: minmax(0, 1fr); }
  .showcase__tabs { flex-direction: row; overflow-x: auto; scrollbar-width: none; border-right: 0; border-bottom: 1px solid var(--line-dim); padding: .5rem; }
  .showcase__tabs::-webkit-scrollbar { display: none; }
  .showcase__tab { flex: none; }
  .showcase__tab.is-active { box-shadow: inset 0 -3px 0 var(--turf); }
  .facts, .steps { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  body { font-size: 1rem; }
  .hero-scene { aspect-ratio: 4 / 3; }
  .slide__scene { aspect-ratio: 4 / 3; }
  .slide__cap { padding: .9rem 1rem 4.4rem; }
  .slide__cap h3 { font-size: 1.15rem; }
  .showcase__nav { right: auto; left: 1rem; bottom: .9rem; }
  .frame__moment { left: .6rem; top: .6rem; font-size: .8rem; }
  .form__row, .kit-list { grid-template-columns: minmax(0, 1fr); }
  .moments__list li { grid-template-columns: 3.2rem minmax(0, 1fr); }
  .moments__by { display: none; }
  .roles { font-size: .92rem; }
  .roles th, .roles td { padding-right: .7rem; }
  .faq__body { padding-right: 1rem; }
  .contact { border-radius: 1.6rem 1.6rem 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
