/* ============================================================
   OrderPilot — landing
   Powściągliwy, „rzemieślniczy" system: wąska paleta, jeden akcent
   (pomarańcz) z znaczeniem, mocna typografia, dużo światła.
   ============================================================ */

:root {
  /* JASNY motyw — ciepła biel, markowy pomarańcz jako akcent */
  --bg:        #FAF9F6;
  --surface:   #FFFFFF;
  --surface-2: #F3F1EC;
  --line:      rgba(26,23,20,0.09);
  --line-2:    rgba(26,23,20,0.15);

  --text:      #1A1714;
  --muted:     #6B645B;
  --faint:     #6E675D;   /* WCAG AA: ciemniejszy niż dawne #9C958B (2.8:1 → 5.3:1) */

  --accent:    #EE5A1E;
  --accent-2:  #FF7A3D;
  --on-accent: #FFFFFF;
  --accent-text: #C7480F; /* ciemniejszy akcent do MAŁEGO tekstu/obrysu fokusu (4.6:1) */

  --green:  #1A9D54;
  --yellow: #C77F08;
  --red:    #D63E32;
  --green-text:  #147B42; /* zielony do małego tekstu etykiet (5.3:1) */
  --yellow-text: #9A6305; /* żółty do małego tekstu etykiet (4.8:1) */

  --sans: 'Hanken Grotesk', system-ui, -apple-system, sans-serif;
  --display: 'Bricolage Grotesque', 'Hanken Grotesk', system-ui, sans-serif;
  --mono: ui-monospace, 'SF Mono', 'JetBrains Mono', Menlo, monospace;

  --r-sm: 8px;
  --r:    12px;
  --r-lg: 16px;
  --r-xl: 22px;

  /* cienie — ciepłe, warstwowe, niski opacity (nie czarne) */
  --shadow-sm: 0 1px 2px hsl(25 20% 18% / .05), 0 2px 6px hsl(25 20% 18% / .05);
  --shadow-md: 0 2px 4px hsl(25 20% 18% / .05), 0 10px 24px -8px hsl(25 20% 18% / .11);
  --shadow-lg: 0 4px 10px hsl(25 20% 18% / .06), 0 28px 56px -18px hsl(25 20% 18% / .16);

  --maxw: 1120px;
  --ease: cubic-bezier(.2,.6,.2,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 17px;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

::selection { background: rgba(255,106,43,.28); color: #fff; }

:where(a, button, summary, .btn, .chip, .shots):focus-visible {
  outline: 3px solid var(--accent-text);
  outline-offset: 2px;
  box-shadow: 0 0 0 2px #fff;
  border-radius: var(--r-sm);
}
/* skip-link — pominięcie nawigacji (WCAG 2.4.1) */
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 200;
  background: #fff; color: var(--text); padding: 10px 16px; border-radius: var(--r-sm);
  box-shadow: var(--shadow-md); font-weight: 600; }
.skip-link:focus { left: 12px; top: 12px; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

/* ---------- TYPOGRAFIA ---------- */
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.05; letter-spacing: -0.022em; text-wrap: balance; }
.accent { color: var(--accent); }
.data { font-family: var(--mono); color: var(--accent); font-weight: 600; font-size: .92em; letter-spacing: 0; vertical-align: -.012em; }
.muted  { color: var(--muted); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--faint); margin-bottom: 20px;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); display: inline-block; flex: none; }
.dot--live { box-shadow: 0 0 0 3px rgba(47,191,107,.18); }

.hl { font-weight: 600; }
.hl--g { color: var(--green); } .hl--y { color: var(--yellow); } .hl--r { color: var(--red); }

.ic { width: 1.05em; height: 1.05em; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.section-head { max-width: 680px; margin: 0 auto 60px; text-align: center; }
.section-head h2 { font-size: clamp(1.85rem, 4vw, 2.7rem); }
.section-head--left { text-align: left; max-width: 30ch; margin: 0 0 44px; }

section { position: relative; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--sans); font-weight: 600; font-size: .96rem; letter-spacing: -.01em;
  padding: 12px 20px; border-radius: var(--r); cursor: pointer; white-space: nowrap;
  border: 1px solid transparent; transition: background .18s var(--ease), border-color .18s, transform .18s var(--ease), color .18s;
}
.btn__play { width: 16px; height: 16px; fill: currentColor; }
.btn--primary { background: var(--accent); color: var(--on-accent); font-weight: 700; box-shadow: 0 1px 2px hsl(18 80% 28% / .25), 0 8px 20px -6px hsl(18 85% 40% / .35); }
.btn--primary:hover { background: var(--accent); transform: translateY(-1px); box-shadow: 0 3px 6px hsl(18 80% 26% / .3), 0 16px 34px -6px hsl(18 85% 38% / .46); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn--ghost:hover { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.22); }
.btn--lg { padding: 15px 26px; font-size: 1.18rem; }
.btn--sm { padding: 9px 16px; font-size: .9rem; }

/* —— Oficjalna odznaka „Pobierz z Google Play" (ciemna, z kolorową ikoną sklepu) —— */
.gplay { display: inline-flex; align-items: center; gap: 11px; padding: 9px 17px 9px 15px;
  background: #16130F; color: #fff; border: 1px solid rgba(255,255,255,.10); border-radius: 13px;
  text-decoration: none; white-space: nowrap; box-shadow: 0 1px 2px rgba(20,17,12,.25), 0 10px 24px -10px rgba(20,17,12,.5);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s; }
.gplay:hover { transform: translateY(-1px); background: #211c16; box-shadow: 0 3px 6px rgba(20,17,12,.3), 0 18px 36px -10px rgba(20,17,12,.55); }
.gplay__icon { width: 24px; height: 24px; flex: none; filter: drop-shadow(0 1px 2px rgba(0,0,0,.35)); }
.gplay__txt { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.04; text-align: left; }
.gplay__txt small { font-family: var(--sans); font-size: .58rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; opacity: .82; }
.gplay__txt strong { font-family: var(--sans); font-size: 1.06rem; font-weight: 600; letter-spacing: .01em; }
/* duża (sekcja końcowa) */
.gplay--lg { gap: 13px; padding: 12px 24px 12px 20px; border-radius: 15px; }
.gplay--lg .gplay__icon { width: 30px; height: 30px; }
.gplay--lg .gplay__txt small { font-size: .64rem; }
.gplay--lg .gplay__txt strong { font-size: 1.32rem; }

/* ---------- NAV ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 100; border-bottom: none; background: none; }
.nav.scrolled { background: none; backdrop-filter: none; border-bottom: none; }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 70px; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; padding: 8px 6px 8px 0; min-height: 44px; font-family: var(--display); font-weight: 700; font-size: 1.12rem; letter-spacing: -.02em; }
.nav__links { display: flex; gap: 30px; }
.nav__links a { color: var(--muted); font-size: .94rem; font-weight: 500; transition: color .18s; }
.nav__links a:hover { color: var(--text); }

/* ---------- HERO ---------- */
.hero { padding: 150px 0 96px; }
.hero__ambient {
  position: absolute; top: -15%; right: 0; width: 70vw; max-width: 760px; height: 80%; z-index: 0; pointer-events: none;
  background: radial-gradient(circle at 70% 35%, rgba(238,90,30,.10), transparent 72%);
  filter: blur(55px); opacity: .55;
}
.hero__inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero__title { font-size: clamp(2.6rem, 5.6vw, 4.05rem); max-width: 13ch; margin-bottom: 24px; text-wrap: pretty; }
.hero__sub { font-size: 1.14rem; color: var(--muted); max-width: 500px; margin-bottom: 34px; }
.hero__sub strong { color: var(--text); font-weight: 600; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 36px; }
.trust { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 24px; color: var(--muted); font-size: .94rem; font-weight: 500; }
.trust li { display: flex; align-items: center; gap: 8px; }
.trust .ic { color: var(--faint); width: 17px; height: 17px; }

/* ---------- HERO DEVICE (realny zrzut) ---------- */
.hero__device { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.device { position: relative; isolation: isolate; }
.device__glow {
  position: absolute; inset: -16% -14%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(58% 46% at 64% 26%, rgba(255,106,43,.18), transparent 70%),
    radial-gradient(48% 40% at 28% 82%, rgba(47,191,107,.12), transparent 72%);
}
.phone {
  width: 300px; max-width: 78vw; padding: 8px;
  background: linear-gradient(158deg, #232228, #0a090c);
  border-radius: 44px;
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 52px 92px -34px rgba(0,0,0,.85), 0 2px 8px rgba(0,0,0,.5);
  animation: float 7.5s var(--ease) infinite;
  will-change: transform;
}
.phone__shot { width: 100%; height: auto; border-radius: 36px; display: block; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-11px); } }

/* pływające adnotacje decyzji (zielony = bierz, czerwony = odpuść) */
.vpill {
  position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 14px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--line-2);
  box-shadow: 0 18px 34px -16px rgba(0,0,0,.75);
  font-family: var(--mono); font-weight: 600; font-size: .82rem; white-space: nowrap;
  animation: float 7.5s var(--ease) infinite;
}
.vpill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; flex: none; }
.vpill__v { font-family: var(--sans); font-weight: 700; letter-spacing: -.01em; }
.vpill--good { top: 15%; right: -30px; animation-delay: .4s; }
.vpill--good::before { background: var(--green); box-shadow: 0 0 0 0 rgba(47,191,107,.5); animation: pulse 2.6s var(--ease) infinite; }
.vpill--good .vpill__k { color: #54db8d; }
.vpill--good .vpill__v { color: #54db8d; }
.vpill--bad { bottom: 19%; left: -26px; animation-delay: .9s; }
.vpill--bad::before { background: var(--red); }
.vpill--bad .vpill__k, .vpill--bad .vpill__v { color: #ff7068; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(47,191,107,.5); } 70%, 100% { box-shadow: 0 0 0 9px rgba(47,191,107,0); } }

.device-caption { font-size: .82rem; color: var(--faint); text-align: center; max-width: 280px; }

/* ---------- PLATFORMS ---------- */
/* podciągnięcie pod hero: kasuje 100svh „trailingu" przypiętego hero (telefon nie zjeżdża ponownie) */
/* płynne przejście: platformy podjeżdżają o pełny ekran NAD gasnący telefon (crossfade sterowany w JS pozycją
   tej sekcji). Nieprzezroczyste + z-index nad telefonem (z:0) → tam gdzie zakrywają, telefon jest już przezroczysty. */
.platforms { padding: 30px 0 10px; margin-top: -100svh; position: relative; z-index: 2; background: var(--bg); }
.platforms__label { text-align: center; color: var(--faint); font-size: .82rem; font-weight: 500; letter-spacing: .03em; margin-bottom: 20px; }
.platforms__list { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.chip { display: inline-flex; align-items: center; gap: 9px; padding: 8px 17px 8px 9px; border-radius: 999px; font-weight: 700; font-size: .95rem; letter-spacing: -.01em; background: rgba(255,255,255,.05); border: 1px solid var(--line-2); color: var(--brand, var(--text)); transition: border-color .18s, background .18s, transform .18s var(--ease); }
.chip__logo { width: 24px; height: 24px; border-radius: 7px; object-fit: cover; flex: none; }
.chip__logo--svg { object-fit: contain; padding: 4px; background: #16151b; }
.chip:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--brand) 55%, transparent); background: color-mix(in srgb, var(--brand) 12%, rgba(255,255,255,.05)); }
.chip--glovo    { --brand: #FFC23D; }
.chip--wolt     { --brand: #15C7E8; }
.chip--bolt     { --brand: #34D186; }
.chip--ubereats { --brand: #06C167; }

/* ---------- BRIDGE ---------- */
.bridge { padding: 124px 0; }
.bridge__head { max-width: 680px; margin: 0 auto 54px; text-align: center; }
.bridge__head h2 { font-size: clamp(1.9rem, 4.4vw, 2.9rem); margin-bottom: 18px; }
.bridge__head p { color: var(--muted); font-size: 1.1rem; }
.bridge__head em { color: var(--text); font-style: normal; font-weight: 600; }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; max-width: 860px; margin: 0 auto; }
.compare__col { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 30px 28px; transition: border-color .2s; }
.compare__col:hover { border-color: var(--line-2); }
.compare__col--good { background: linear-gradient(180deg, rgba(255,106,43,.06), transparent); border-color: rgba(255,106,43,.22); }
.compare__badge { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 5px 11px; border-radius: var(--r-sm); margin-bottom: 20px; }
.compare__col--bad .compare__badge { background: rgba(229,86,75,.12); color: #f08980; }
.compare__col--good .compare__badge { background: rgba(255,106,43,.14); color: var(--accent-2); }
.compare__col ul { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.compare__col li { position: relative; padding-left: 28px; color: var(--muted); font-size: 1rem; }
.compare__col li strong { color: var(--text); font-weight: 600; }
.compare__col--bad li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 11px; height: 1.6px; background: #e5564b; border-radius: 2px; }
.compare__col--good li::before { content: ""; position: absolute; left: 3px; top: .28em; width: 6px; height: 11px; border: solid var(--accent); border-width: 0 1.8px 1.8px 0; transform: rotate(45deg); }

/* ---------- LIQUID GLASS (tylko na elementach NAD treścią/obrazem) ---------- */
.glass { background: rgba(255,255,255,.74); border: 1px solid rgba(26,23,20,.10); box-shadow: 0 12px 30px -8px rgba(26,23,20,.14), inset 0 1px 0 rgba(255,255,255,.7); }
@supports ((backdrop-filter: blur(2px)) or (-webkit-backdrop-filter: blur(2px))) {
  .glass { background: rgba(255,255,255,.58); -webkit-backdrop-filter: blur(16px) saturate(150%); backdrop-filter: blur(16px) saturate(150%); }
}
@media (prefers-reduced-transparency: reduce) {
  .glass { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* ---------- FILM (scrub wideo scrollem + kinetyczny tekst) ---------- */
.film { position: relative; }
.film__sticky { min-height: 100vh; display: flex; align-items: center; padding: 70px 0; overflow: hidden; }
.film__inner { display: grid; grid-template-columns: 1fr .92fr; gap: 56px; align-items: center; width: 100%; }

/* lewa — kinetyczny tekst, 1 beat naraz */
.film__copy { position: relative; }
.film__caps { position: relative; min-height: 240px; margin-top: 10px; }
.film__cap { position: absolute; inset: 0; opacity: 0; transform: translateY(28px); filter: blur(7px);
  transition: opacity .5s var(--ease-out), transform .6s var(--ease-out), filter .5s var(--ease-out); pointer-events: none; }
.film__cap.is-active { opacity: 1; transform: none; filter: none; }
.film__num { font-family: var(--mono); font-weight: 600; color: var(--accent); letter-spacing: .1em; display: block; margin-bottom: 16px; }
.film__cap h3 { font-size: clamp(2rem, 4.4vw, 3.3rem); line-height: 1.02; margin-bottom: 16px; }
.film__cap p { font-size: clamp(1.1rem, 1.7vw, 1.45rem); color: var(--muted); max-width: 20ch; }
.film__cap p .data { font-size: 1em; }
.film__dots { display: flex; gap: 8px; margin-top: 40px; }
.film__dots i { width: 26px; height: 4px; border-radius: 2px; background: var(--line-2); transition: background .4s var(--ease), width .4s var(--ease); }
.film__dots i.is-active { background: var(--accent); width: 44px; }

/* prawa — telefon z filmem (jak w hero) */
.film__stage { position: relative; display: flex; justify-content: center; }
.phone--film { position: relative; width: 300px; max-width: 80%; padding: 8px;
  background: linear-gradient(158deg, #2b2a31, #100f13); border-radius: 46px; border: 1px solid rgba(0,0,0,.2);
  box-shadow: 0 40px 80px -34px rgba(26,23,20,.38); transform-style: preserve-3d; will-change: transform; }
.film__video { width: 100%; height: auto; aspect-ratio: 600 / 1298; object-fit: cover; display: block; border-radius: 38px; background: #0c0b0e; }

/* duży podpis synchronizowany z filmem — zajmuje wszystkie warianty w jednej komórce (krzyżowo) */
.film__caps { display: grid; }
.film__cap { grid-area: 1 / 1; margin: 0; font-family: var(--display); font-weight: 600;
  font-size: clamp(1.5rem, 2.5vw, 2.45rem); line-height: 1.08; letter-spacing: -.025em; color: var(--text);
  opacity: 0; transform: translateY(16px); filter: blur(4px); pointer-events: none;
  transition: opacity .65s var(--ease-out), transform .65s var(--ease-out), filter .65s var(--ease-out); }
.film__cap.is-active { opacity: 1; transform: none; filter: blur(0); transition-delay: .08s; }
.film__cap-step { display: block; font-family: var(--mono); font-weight: 600; font-size: .62rem; letter-spacing: .28em;
  color: var(--accent-text); opacity: .8; margin-bottom: 14px; }
.film__cap-big { display: block; font-size: clamp(2.6rem, 5vw, 4.4rem); line-height: 1; letter-spacing: -.04em;
  color: var(--accent-text); margin-top: 6px; }
.film__cap-sub { display: block; font-family: var(--sans); font-weight: 500; font-size: .82rem; letter-spacing: 0;
  color: var(--muted); margin-top: 12px; }
.film__cap .g { color: var(--green-text); }
.film__cap .r { color: var(--red); }

/* --- HERO: telefon-bohater (duży, wyśrodkowany, główna warstwa) --- */
.hero.film { padding: 0; }
.hero.film .film__sticky { height: 100svh; min-height: 560px; padding: 0; display: block; overflow: hidden; background: var(--bg); z-index: 0; }
.hero .film__center { position: relative; height: 100%; display: grid;
  grid-template-rows: auto minmax(0,1fr); align-items: center; justify-items: center;
  gap: clamp(8px, 1.6vh, 20px); padding: clamp(20px,4vh,40px) 16px clamp(14px,2.4vh,28px); text-align: center; }
.hero__head { position: relative; z-index: 6; width: 100%; max-width: 760px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.hero .eyebrow { margin: 0; }
.hero__title { font-size: clamp(1.5rem, 2.6vw, 2.35rem); line-height: 1.08; letter-spacing: -.025em; max-width: 22ch; margin: 0; }
html.js .hero__title { opacity: 0; }                 /* FOUC-guard: ukryty do animacji (inline-script dorzuca .js + 1.4s safety) */
.hero__title .line { overflow: clip; padding-bottom: .04em; }
.hero .film__stage { position: relative; width: max-content; max-width: 100%; height: 100%; min-height: 0;
  margin: 0 auto; display: flex; align-items: center; justify-content: center; perspective: 1300px; perspective-origin: 50% 42%; }
/* ograniczamy telefon WYSOKOŚCIĄ (proporcje same trzymają szerokość ≤ ~340 → zawsze równy bezel
   i strefa podpisu obok zawsze pewna); NIE max-width — to rozjeżdżało ramkę */
.hero .phone--film { width: auto; height: 100%; max-height: min(100%, 720px); max-width: none; }
.hero .film__video { width: auto; height: 100%; aspect-ratio: 600 / 1298; }
/* CTA jako nakładka u dołu — odsłaniane na finale (beat 3) */
.hero__cta { position: absolute; bottom: clamp(10px, 2.4vh, 30px); left: 50%; z-index: 7; margin: 0;
  transform: translateX(-50%) translateY(12px); opacity: 0; pointer-events: none;
  transition: opacity .5s var(--ease-out), transform .5s var(--ease-out); }
.hero__cta.is-revealed { opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto; }
/* mini-CTA w nawigacji — trwała ścieżka do pobrania */
.nav__cta { white-space: nowrap; }
/* halo pod telefonem — premium „unoszenie się" */
.hero .device__glow { position: absolute; inset: -10% -22%; z-index: -1; pointer-events: none;
  background: radial-gradient(50% 44% at 50% 47%, rgba(238,90,30,.16), transparent 72%); filter: blur(44px); }

/* podpis w lewej strefie obok telefonu — duży, prawym do telefonu, wyśrodkowany w pionie */
.hero .film__caps { position: absolute; z-index: 6; top: 0; bottom: 0;
  left: clamp(16px, 4vw, 48px); right: calc(50% + 188px);
  grid-template-columns: minmax(0, 320px);
  align-content: center; justify-content: end; text-align: right; }

/* —— Reflektor uwagi na stawce (beat 2): box ustawia JS = DOKŁADNIE nad wideo (w telefonie → jedzie z przechyłem) —— */
.hero .film__focus { position: absolute; z-index: 2; pointer-events: none; opacity: 0; overflow: hidden; border-radius: 34px; }
/* SCRIM — ciepły welon z jasną strefą wokół belki (środek czysty), reszta ekranu łagodnie przygasa */
.hero .film__focus-scrim { position: absolute; inset: 0; opacity: 0;
  background: radial-gradient(ellipse var(--hrx, 72%) var(--hry, 25%) at 50% var(--hcy, 11.7%),
    rgba(26,23,20,0) 0%, rgba(26,23,20,0) 60%, rgba(26,23,20,.12) 80%, rgba(26,23,20,.32) 100%); }
/* HALO — miękka poświata + lift DOKŁADNIE na belce (% wideo, ustawiane przez JS) */
.hero .film__focus-halo { position: absolute; opacity: 0;
  left: var(--bl, 0%); top: var(--bt, 5.1%); width: var(--bw, 100%); height: var(--bh, 13.3%);
  border-radius: 15px;
  box-shadow: 0 0 24px 2px rgba(238,90,30,.48), 0 7px 16px -12px rgba(0,0,0,.16); }
@media (prefers-reduced-motion: reduce) { .hero .film__focus { display: none !important; } }

/* ---------- FEATURES (bento) ---------- */
.features { padding: 130px 0; border-top: 1px solid var(--line); }
.feature-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 26px; box-shadow: var(--shadow-sm); transition: border-color .25s, box-shadow .3s var(--ease), transform .3s var(--ease); }
.feature:hover { border-color: var(--line-2); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.feature--wide { grid-column: span 2; display: flex; flex-direction: column; }
.feature__top { display: flex; align-items: center; gap: 14px; margin-bottom: 4px; }
.feature__top h3 { margin: 0; }
.feature__ic { width: 42px; height: 42px; flex: none; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--line); color: var(--accent); margin-bottom: 16px; }
.feature__top .feature__ic { margin-bottom: 0; }
.feature__ic .ic { width: 20px; height: 20px; }
.feature__ic--lights { gap: 5px; }
.feature__ic--lights span { width: 9px; height: 9px; border-radius: 50%; }
.feature__ic--lights span:nth-child(1){ background: var(--green); }
.feature__ic--lights span:nth-child(2){ background: var(--yellow); }
.feature__ic--lights span:nth-child(3){ background: var(--red); }
.feature h3 { font-size: 1.12rem; margin-bottom: 8px; letter-spacing: -.02em; }
.feature p { color: var(--muted); font-size: .96rem; }
.feature__viz { margin-top: auto; padding-top: 22px; display: flex; gap: 9px; flex-wrap: wrap; align-items: center; }
.viz-pill { font-family: var(--mono); font-weight: 600; font-size: .92rem; padding: 7px 12px; border-radius: var(--r-sm); background: rgba(26,23,20,.05); border: 1px solid var(--line); color: var(--text); }
.viz-pill--g { background: rgba(26,157,84,.12); border-color: rgba(26,157,84,.32); color: var(--green-text); }
.feature__viz--lights { gap: 14px; }
.big-light { width: 26px; height: 26px; border-radius: 50%; }
.big-light--g { background: var(--green); box-shadow: 0 0 18px -2px var(--green); animation: blink 3.6s var(--ease) infinite; }
.big-light--y { background: var(--yellow); opacity: .9; animation: blink 3.6s var(--ease) .4s infinite; }
.big-light--r { background: var(--red); opacity: .85; animation: blink 3.6s var(--ease) .8s infinite; }
@keyframes blink { 0%,70%,100% { transform: scale(1); } 12% { transform: scale(1.18); } }
/* mini-karty: ikona + krótka etykieta, zero akapitu */
.feature--mini { display: flex; flex-direction: column; }
.feature--mini h3 { margin-bottom: 0; font-size: 1.05rem; }
/* płaska kreskowa ikona zamiast kwadratu z tłem (łamie wzorzec „4 klony z ikoną") */
.feature--mini .feature__ic { width: auto; height: auto; background: none; border: none;
  border-radius: 0; justify-content: flex-start; margin-bottom: 12px; color: var(--accent); }
.feature--mini .feature__ic .ic { width: 23px; height: 23px; stroke-width: 1.6; }
/* delikatna poświata pod szkło w sekcji Funkcje */
.features { position: relative; }
.features::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(46% 38% at 22% 26%, rgba(238,90,30,.06), transparent 70%),
              radial-gradient(40% 34% at 80% 30%, rgba(26,157,84,.05), transparent 72%); }

/* ---------- GALLERY (czyste karty-zdjęcia, jak hero231) ---------- */
.gallery { padding: 92px 0 96px; }
.gallery .section-head { margin: 0 auto 34px; }
/* coverflow-karuzel (jak shadcnblocks hero231): sterowany indeksem, karty 3D, płynne slajdy */
.gallery .container { max-width: 1320px; }
.shots { position: relative; height: clamp(500px, 72vh, 740px); perspective: 2400px; margin-top: 4px; outline: none; --slide-dur: .6s;
  transform: scale(var(--zoom, 1)); transform-origin: 50% 46%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%); }
/* subtelna poświata-scena za kartami (premium „muted panel" jak w hero231) */
.shots::before { content: ""; position: absolute; left: 50%; top: 50%; width: min(80%, 820px); height: 80%;
  transform: translate(-50%,-50%); border-radius: 44px; z-index: 0; pointer-events: none;
  background: radial-gradient(58% 60% at 50% 42%, rgba(238,90,30,.07), transparent 72%); filter: blur(22px); }
.shot { position: absolute; left: 50%; top: 50%; height: 95%; width: auto;
  border-radius: 30px; overflow: hidden; border: 1px solid var(--line); background: #fff;
  box-shadow: 0 34px 70px -34px rgba(26,23,20,.32); transform-style: preserve-3d; cursor: pointer;
  transform: translate(-50%,-50%); backface-visibility: hidden;
  transition: transform var(--slide-dur) var(--ease-out), opacity .5s var(--ease), box-shadow .4s var(--ease), filter .5s var(--ease);
  will-change: transform; }
.shot img { display: block; height: 100%; width: auto; }
/* sloty coverflow — wyższa specyficzność (.shots .shot[...]) niż .reveal.in, by transform nie zniknął */
.shots .shot[data-pos="0"]  { transform: translate(-50%,-50%) translateZ(0) rotateY(0deg) scale(1); z-index: 5; filter: none;
  box-shadow: 0 2px 6px rgba(26,23,20,.05), 0 10px 24px rgba(26,23,20,.07), 0 26px 52px rgba(26,23,20,.11), 0 50px 92px -24px rgba(26,23,20,.24); }
.shots .shot[data-pos="1"]  { transform: translate(-50%,-50%) translateX(86%)   translateZ(-95px)  rotateY(-19deg) scale(.80); z-index: 4; filter: brightness(.95) blur(1.1px); }
.shots .shot[data-pos="-1"] { transform: translate(-50%,-50%) translateX(-86%)  translateZ(-95px)  rotateY(19deg)  scale(.80); z-index: 4; filter: brightness(.95) blur(1.1px); }
.shots .shot[data-pos="2"]  { transform: translate(-50%,-50%) translateX(158%)  translateZ(-200px) rotateY(-25deg) scale(.60); z-index: 3; filter: brightness(.86) blur(2.4px); }
.shots .shot[data-pos="-2"] { transform: translate(-50%,-50%) translateX(-158%) translateZ(-200px) rotateY(25deg)  scale(.60); z-index: 3; filter: brightness(.86) blur(2.4px); }
.shots .shot[data-pos="hide"] { opacity: 0; pointer-events: none; z-index: 1;
  transform: translate(-50%,-50%) scale(.6); }
.shot:hover { box-shadow: 0 64px 110px -34px rgba(26,23,20,.42); }
/* dynamiczny podpis pod aktywnym ekranem — liquid glass, zmienia się z karuzelą */
.shots__cap { width: max-content; max-width: 86%; margin: 22px auto 0; padding: 11px 22px; border-radius: 999px;
  font-family: var(--sans); font-weight: 600; font-size: 1.02rem; letter-spacing: -.01em; color: var(--text);
  text-align: center; opacity: 0; transform: translateY(8px);
  transition: opacity .4s var(--ease-out), transform .4s var(--ease-out); }
.shots__cap.is-in { opacity: 1; transform: none; }
/* kropki nawigacji */
.shots__dots { display: flex; justify-content: center; gap: 9px; margin-top: 28px; }
.shots__dots button { width: 9px; height: 9px; padding: 0; border: none; border-radius: 50%;
  background: var(--line-2); cursor: pointer; transition: background .3s var(--ease), width .3s var(--ease), transform .2s var(--ease); }
.shots__dots button:hover { transform: scale(1.25); }
.shots__dots button.is-active { background: var(--accent); width: 26px; border-radius: 5px; }

/* ---------- PROOF ---------- */
.proof { padding: 80px 0; }
.proof__inner { text-align: center; border: 1px solid var(--line); border-radius: var(--r-xl); padding: 60px 32px; background: var(--surface); box-shadow: var(--shadow-md); }
.proof__inner h2 { font-size: clamp(1.8rem,4vw,2.5rem); margin-bottom: 12px; }
.proof__sub { color: var(--muted); max-width: 560px; margin: 0 auto 46px; }
.proof__stats { list-style: none; display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; max-width: 760px; margin: 0 auto; }
.proof__stats li { display: flex; flex-direction: column; gap: 6px; }
.proof__stats li:not(:last-child) { border-right: 1px solid var(--line); }
.proof__big { font-family: var(--mono); font-weight: 700; font-size: clamp(1.9rem,3.6vw,2.6rem); color: var(--text); letter-spacing: -.02em; }
.proof__big--live { display: inline-flex; align-items: center; justify-content: center; gap: 9px; color: var(--green); }
.proof__big--live .dot { width: 9px; height: 9px; }
.proof__cap { color: var(--faint); font-size: .88rem; }

/* ---------- FAQ ---------- */
.faq { padding: 104px 0; border-top: 1px solid var(--line); }
.faq__list { max-width: 740px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.qa { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 2px 22px; transition: border-color .2s, box-shadow .25s; }
.qa:hover { border-color: var(--line-2); box-shadow: var(--shadow-md); }
.qa summary { cursor: pointer; list-style: none; padding: 19px 0; font-weight: 600; font-size: 1.04rem; letter-spacing: -.01em; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.qa summary::-webkit-details-marker { display: none; }
.qa__chev { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--faint); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--ease), stroke .2s; }
.qa[open] .qa__chev { transform: rotate(180deg); stroke: var(--accent); }
.qa p { color: var(--muted); padding: 0 0 20px; font-size: 1rem; max-width: 64ch; }

/* ---------- END CTA ---------- */
.endcta { padding: 100px 0 110px; }
.endcta__inner { text-align: center; border-radius: var(--r-xl); padding: 72px 32px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.endcta__inner h2 { font-size: clamp(2rem,4.6vw,3rem); margin-bottom: 14px; }
.endcta__inner p { color: var(--muted); font-size: 1.12rem; margin-bottom: 32px; }

/* ---------- FOOTER ---------- */
.footer { border-top: 1px solid var(--line); padding: 40px 0; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; }
.footer__brand { display: flex; align-items: center; gap: 9px; font-weight: 700; letter-spacing: -.02em; }
.footer__made { color: var(--muted); font-size: .94rem; }
.footer__made strong { color: var(--text); font-weight: 600; }
.footer__copy { color: var(--faint); font-size: .86rem; }

/* ---------- RUCH (zróżnicowany, nie „ten sam fade wszędzie") ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .55s var(--ease-out), transform .55s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
/* karty: dłuższy dystans + lekki stagger w obrębie siatki */
.feature, .step, .shot { transform: translateY(26px); }
.feature-grid .feature:nth-child(2){ transition-delay: .05s; }
.feature-grid .feature:nth-child(3){ transition-delay: .10s; }
.feature-grid .feature:nth-child(4){ transition-delay: .13s; }
.feature-grid .feature:nth-child(5){ transition-delay: .16s; }
.feature-grid .feature:nth-child(6){ transition-delay: .19s; }
.steps .step:nth-child(2){ transition-delay: .08s; }
.steps .step:nth-child(3){ transition-delay: .16s; }
/* hero: osobne, „ręczne" wejście ze staggerem (inny ruch niż reszta) */
.hero__copy > * { animation: rise .7s var(--ease-out) both; }
.hero__copy > :nth-child(2){ animation-delay: .08s; }
.hero__copy > :nth-child(3){ animation-delay: .15s; }
.hero__copy > :nth-child(4){ animation-delay: .22s; }
.hero__copy > :nth-child(5){ animation-delay: .29s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .platforms { margin-top: 0; }   /* mobile: brak pinu → brak trailingu do skasowania */
  .hero { padding: 124px 0 80px; }
  .hero__inner { grid-template-columns: 1fr; gap: 52px; text-align: center; }
  .hero__copy { display: flex; flex-direction: column; align-items: center; }
  .hero__title { max-width: 16ch; }
  .hero__sub { margin-left: auto; margin-right: auto; }
  .hero__cta, .trust { justify-content: center; }
  .nav__links { display: none; }
  .steps, .feature-grid { grid-template-columns: 1fr 1fr; }
  .feature--wide { grid-column: span 2; }
  .proof__stats { grid-template-columns: repeat(2,1fr); gap: 20px 0; }
  .proof__stats li:nth-child(2n) { border-right: none; }
  .proof__stats li:nth-child(-n+2) { padding-bottom: 24px; border-bottom: 1px solid var(--line); }
  .shots { position: static; height: auto; display: flex; overflow-x: auto; align-items: stretch; gap: 14px; padding: 0 0 18px; perspective: none; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
  .shots .shot, .shots .shot[data-pos] {
    position: relative; left: auto; top: auto; height: auto; flex: 0 0 66%; width: auto; max-width: 260px;
    opacity: 1; transform: none; margin: 0; scroll-snap-align: center; }
  .shots .shot img { width: 100%; height: auto; }
  .shots__dots, .shots__cap { display: none; }
  /* film: na mobile bez pinu/scrubu — film gra autoplay-loop, podpis wyśrodkowany pod telefonem */
  .film__sticky { min-height: 0; padding: 64px 0; }
  .phone--film { width: 250px; order: -1; }
  .hero .film__caps { position: static; inset: auto; left: auto; right: auto;
    grid-template-columns: minmax(0, 1fr); justify-content: stretch; justify-items: center; text-align: center; }
  .film__cap { transform: none; filter: none; transition: opacity .4s var(--ease-out); }
  .film__cap-step { margin-bottom: 8px; }

  /* HERO na mobile: płynna wysokość, jeden nagłówek, telefon + CTA pod spodem */
  .hero.film .film__sticky { height: auto; min-height: 100svh; padding: 96px 0 44px; overflow: visible; }
  .hero .film__center { height: auto; grid-template-rows: none; gap: 26px; padding: 0 22px; }
  .hero__head { gap: 10px; }
  .hero__title { font-size: clamp(1.75rem, 6.4vw, 2.3rem); max-width: 18ch; }
  .hero .film__stage { height: auto; min-height: 0; }
  .hero .phone--film { width: min(74vw, 250px); height: auto; max-height: 66svh; }
  .hero .film__video { width: 100%; height: auto; }
  .hero__cta { position: static; transform: none; opacity: 1; pointer-events: auto; justify-self: center; }
}
@media (max-width: 600px) {
  .container { padding: 0 20px; }
  .hero { padding: 108px 0 64px; }
  .bridge, .how, .features, .gallery, .faq { padding: 78px 0; }
  .compare, .steps, .feature-grid { grid-template-columns: 1fr; }
  .feature--wide { grid-column: auto; }
  .hero__cta .btn { width: 100%; }
  .proof__inner, .endcta__inner { padding: 48px 24px; }
  .footer__inner { flex-direction: column; text-align: center; }
  /* adnotacje na krawędziach zrzutu, nie poza ekranem */
  .vpill { font-size: .76rem; padding: 8px 11px; }
  .vpill--good { right: 2px; top: 12%; }
  .vpill--bad { left: 2px; bottom: 16%; }
}

/* ---------- REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .story--js .story__step, .story--js .story__step.is-active { opacity: 1 !important; }
  html { scroll-behavior: auto; }
}

/* ===================================================================
   TELEFON — uproszczony, czysty HERO (≤900px).
   Powód: na desktopie hero to scrubowany scrollem „film" z podpisami
   układanymi ABSOLUTNIE obok telefonu. Na telefonie (bez pinu/scrubu)
   te podpisy zostawały position:absolute i NACHODZIŁY na tytuł — hero
   „rozjeżdżał się". Tu sprowadzamy hero do prostego, pionowego stosu:
   tytuł → telefon → jeden podpis („34 zł/h"). Reguły wyłącznie ≤900px,
   więc widok na komputerze (≥901px) pozostaje BEZ ZMIAN.
   =================================================================== */
@media (max-width: 900px) {
  /* hero rośnie naturalnie zamiast wymuszać pełną wysokość ekranu (było ~1050px z pustką) */
  .hero.film .film__sticky { height: auto; min-height: 0; padding: 88px 0 48px; overflow: visible; }
  .hero .film__center { gap: 20px; padding-left: 22px; padding-right: 22px; }

  /* warstwa podpisów wraca do NORMALNEGO przepływu pod telefonem; pokazujemy tylko jeden, aktywny */
  .hero .film__caps { position: static; inset: auto; display: block;
    width: 100%; max-width: 340px; margin: 0 auto; min-height: 0; }
  .hero .film__cap { position: static; inset: auto; grid-area: auto; margin: 0;
    opacity: 1; transform: none; filter: none; text-align: center; }
  .hero .film__cap:not(.is-active) { display: none; }   /* tylko aktywny podpis → zero nakładania */
  .hero .film__cap-step { display: none; }               /* numer kroku („03") bez sensu bez animacji */
  .hero .film__cap-big { margin: 4px 0 0; }
  .hero .film__cap-sub { margin-top: 4px; }

  /* telefon: równy rozmiar, niezależny od wysokości ekranu */
  .hero .film__stage { height: auto; min-height: 0; }
  .hero .phone--film { width: min(70vw, 230px); height: auto; max-height: none; }
  .hero .film__video { width: 100%; height: auto; }

  /* reflektor/halo na belce liczy JS tylko pod desktop — na telefonie zbędne */
  .hero .film__focus { display: none; }
}
