/* REVAGY — prototyp strony.
   Układ: białe tło, duże zaokrąglone kontenery z mediami, ciemne pasma dla opowieści,
   jeden gorący akcent. Jeden świat wizualny (bez trybu ciemnego), kolory tylko z tokenów. */

@font-face { font-family: "Onest"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/onest-latin-ext-wght-normal.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: "Onest"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/onest-latin-wght-normal.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; }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("../fonts/instrument-sans-latin-ext-wght-normal.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: "Instrument Sans"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("../fonts/instrument-sans-latin-wght-normal.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; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 100 800; font-display: swap;
  src: url("../fonts/jetbrains-mono-latin-ext-wght-normal.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: "JetBrains Mono"; font-style: normal; font-weight: 100 800; font-display: swap;
  src: url("../fonts/jetbrains-mono-latin-wght-normal.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 {
  color-scheme: light;
  /* kolor */
  --paper: #ffffff;
  --mist: #f4f1ee;
  --mist-2: #e9e4de;
  --line: #e1dbd4;
  --ink: #141114;
  --ink-2: #625c63;
  --accent: #ff5b14;
  --accent-deep: #c23d06;
  --rose: #ff2e7e;
  --plum: #3b1437;
  --night: #141114;
  --night-2: #221e23;
  --night-3: #2e2930;
  --night-line: rgba(255, 255, 255, .13);
  --on-night: #ffffff;
  --on-night-2: #b9b2bb;
  --glass: rgba(20, 17, 20, .56);
  --glass-light: rgba(255, 255, 255, .16);
  --ok: #19b77a;
  /* typografia */
  --font-display: "Onest", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-body: "Instrument Sans", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --fs-display: clamp(2.75rem, 6.6vw, 5.75rem);
  --fs-display-2: clamp(2.25rem, 5.2vw, 4.5rem);
  --fs-h2: clamp(2rem, 4.3vw, 3.5rem);
  --fs-h3: clamp(1.375rem, 2vw, 1.75rem);
  --fs-h4: 1.25rem;
  --fs-lead: clamp(1.0625rem, 1.35vw, 1.25rem);
  --fs-body: 1.0625rem;
  --fs-small: .875rem;
  /* układ */
  --gutter: clamp(16px, 3vw, 32px);
  --wrap: 1240px;
  --r-xl: clamp(24px, 3vw, 40px);
  --r-lg: clamp(22px, 2.4vw, 32px);
  --r-md: 18px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font-body); font-size: var(--fs-body); line-height: 1.5;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--paper); }
img, video, svg { display: block; max-width: 100%; }
h1, h2, h3, h4, p, ul, ol, fieldset { margin: 0; padding: 0; }
ul, ol { list-style: none; }
fieldset { border: 0; min-width: 0; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -80px; z-index: 100; background: var(--ink); color: var(--paper); padding: 12px 18px; border-radius: 999px; }
.skip:focus { top: calc(env(safe-area-inset-top, 0px) + 12px); }

.wrap {
  width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}

/* ---------- typografia ---------- */
.display, .display-2, .h2, .h3, .h4 { font-family: var(--font-display); text-wrap: balance; }
.display { font-size: var(--fs-display); font-weight: 750; line-height: .98; letter-spacing: -.04em; }
.display-2 { font-size: var(--fs-display-2); font-weight: 750; line-height: 1; letter-spacing: -.038em; }
.h2 { font-size: var(--fs-h2); font-weight: 720; line-height: 1.04; letter-spacing: -.034em; }
.h3 { font-size: var(--fs-h3); font-weight: 680; line-height: 1.12; letter-spacing: -.022em; }
.h4 { font-size: var(--fs-h4); font-weight: 680; line-height: 1.2; letter-spacing: -.015em; }
.lead { font-size: var(--fs-lead); color: var(--ink-2); max-width: 62ch; text-wrap: pretty; }
.fineprint { font-size: .8125rem; color: var(--on-night-2); }

/* ---------- przyciski ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: 999px; border: 1.5px solid transparent;
  font-family: var(--font-display); font-weight: 620; font-size: .9375rem; letter-spacing: -.01em; white-space: nowrap;
  transition: transform .25s var(--ease), background-color .2s, color .2s, border-color .2s, box-shadow .25s;
}
.btn svg { width: 16px; height: 16px; flex: none; }
.btn:active { transform: scale(.97); }
.btn-lg { height: 56px; padding: 0 28px; font-size: 1.0625rem; }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { background: var(--night-3); }
.btn-light { background: var(--paper); color: var(--ink); }
.btn-light:hover { background: var(--mist); }
.btn-ghost { color: var(--ink); }
.btn-ghost:hover { background: var(--mist); }
.btn-glass { background: var(--glass-light); color: var(--on-night); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.btn-glass:hover { background: rgba(255, 255, 255, .26); }
.btn-accent { background: var(--accent); color: var(--ink); }
.btn-accent:hover { box-shadow: 0 10px 30px -8px var(--accent); transform: translateY(-1px); }
.btn-outline { border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--paper); }

.chip { display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border-radius: 999px; font-size: var(--fs-small); font-weight: 600; }
.chip-glass { background: var(--glass-light); color: var(--on-night); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }

/* ---------- nagłówek ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: color-mix(in srgb, var(--paper) 84%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(18px); backdrop-filter: saturate(1.4) blur(18px);
  border-bottom: 1px solid transparent; transition: border-color .3s, background-color .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header.menu-open { background: var(--paper); }
.header-row { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); flex: none; }
.logo-mark { width: 30px; height: 30px; }
.logo-word { font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; letter-spacing: -.02em; }
.main-nav { display: flex; align-items: center; gap: 2px; margin-inline: auto; }
.nav-item { position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border-radius: 999px;
  font-weight: 560; font-size: .9375rem; color: var(--ink); transition: background-color .2s;
}
.nav-link:hover, .nav-link[aria-expanded="true"] { background: var(--mist); }
.nav-link svg { width: 12px; height: 12px; transition: transform .3s var(--ease); }
.nav-link[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav-panel {
  position: absolute; top: calc(100% + 10px); left: 50%; width: 360px; padding: 10px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 24px;
  box-shadow: 0 30px 60px -24px rgba(20, 17, 20, .28);
  opacity: 0; visibility: hidden; transform: translate(-50%, 8px) scale(.98); transform-origin: top center;
  transition: opacity .22s, transform .3s var(--ease), visibility .22s;
}
.nav-item.is-open .nav-panel { opacity: 1; visibility: visible; transform: translate(-50%, 0) scale(1); }
.nav-panel a { display: grid; gap: 2px; padding: 12px 14px; border-radius: 16px; transition: background-color .2s; }
.nav-panel a:hover { background: var(--mist); }
.nav-panel strong { font-family: var(--font-display); font-weight: 650; font-size: 1rem; }
.nav-panel span { font-size: var(--fs-small); color: var(--ink-2); }
.header-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.menu-toggle { display: none; width: 44px; height: 44px; border-radius: 50%; background: var(--mist); position: relative; }
.menu-toggle span { position: absolute; left: 13px; right: 13px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease), top .3s var(--ease); }
.menu-toggle span:first-child { top: 17px; }
.menu-toggle span:last-child { top: 25px; }
.menu-toggle[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }
.mobile-menu { border-top: 1px solid var(--line); background: var(--paper); height: calc(100dvh - var(--header-h)); overflow-y: auto; }
.mobile-menu nav { display: grid; gap: 4px; padding-block: 20px 40px; }
.mobile-menu a:not(.btn) { font-family: var(--font-display); font-size: 1.75rem; font-weight: 700; letter-spacing: -.03em; padding: 12px 0; border-bottom: 1px solid var(--line); animation: menu-in .45s var(--ease) both; }
.mobile-menu a:nth-child(2) { animation-delay: 40ms; } .mobile-menu a:nth-child(3) { animation-delay: 80ms; }
.mobile-menu a:nth-child(4) { animation-delay: 120ms; } .mobile-menu a:nth-child(5) { animation-delay: 160ms; }
.mobile-menu a:nth-child(6) { animation-delay: 200ms; }
.mobile-menu .btn { margin-top: 24px; }
@keyframes menu-in { from { opacity: 0; transform: translateY(14px); } }

@media (max-width: 1020px) {
  .main-nav { display: none; }
  .header-actions { margin-left: auto; }
  .menu-toggle { display: block; }
}
@media (max-width: 560px) {
  :root { --header-h: 64px; }
  .header-actions .btn-ghost { display: none; }
  .header-actions .btn-dark { height: 40px; padding: 0 16px; }
}

/* ---------- hero ---------- */
.hero-outer { padding-left: max(12px, env(safe-area-inset-left, 0px)); padding-right: max(12px, env(safe-area-inset-right, 0px)); }
.hero {
  position: relative; isolation: isolate; overflow: hidden; border-radius: var(--r-xl);
  background: var(--night); color: var(--on-night);
  min-height: clamp(620px, 30vw + 400px, 820px);
  display: flex; align-items: flex-end; justify-content: space-between; gap: 32px;
  padding: clamp(24px, 4.4vw, 64px);
}
/* poświata tła pod filmem */
.hero-shade { position: absolute; inset: -25%; z-index: -3; filter: blur(60px); opacity: .7;
  background: radial-gradient(30% 36% at 20% 78%, var(--plum), transparent 70%), radial-gradient(24% 30% at 62% 84%, color-mix(in srgb, var(--accent) 55%, transparent), transparent 70%);
  animation: drift 18s ease-in-out infinite alternate; }
/* film jest kadrowany na sieć węzłów (prawa górna część kadru), brzegi wygasza maska */
.hero-media { position: absolute; inset: 0; z-index: -2; overflow: hidden; will-change: transform; }
.hero-video {
  position: absolute; top: 0; right: 0; --vw: max(78%, 860px); width: var(--vw); max-width: none; height: auto; aspect-ratio: 16 / 9; object-fit: cover;
  -webkit-mask-image: linear-gradient(to right, transparent 4%, #000 40%), linear-gradient(to top, transparent 2%, #000 46%);
  mask-image: linear-gradient(to right, transparent 4%, #000 40%), linear-gradient(to top, transparent 2%, #000 46%);
  -webkit-mask-composite: source-in; mask-composite: intersect;
}
.hero-content { max-width: 620px; display: grid; gap: 24px; justify-items: start; }
.hero-lead { font-size: var(--fs-lead); color: rgba(255, 255, 255, .84); max-width: 48ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

.hero-feed {
  flex: 0 0 340px; align-self: flex-end; background: var(--glass); border: 1px solid var(--night-line);
  -webkit-backdrop-filter: blur(22px) saturate(1.3); backdrop-filter: blur(22px) saturate(1.3);
  border-radius: 26px; padding: 18px; overflow: hidden;
}
.feed-head { display: flex; align-items: center; gap: 10px; font-size: var(--fs-small); font-weight: 600; margin-bottom: 12px; }
.feed-tag { margin-left: auto; font-family: var(--font-mono); font-size: .6875rem; text-transform: uppercase; letter-spacing: .08em; color: var(--on-night-2); border: 1px solid var(--night-line); border-radius: 999px; padding: 2px 8px; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 var(--ok); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.feed-list { display: grid; gap: 8px; }
.feed-list li { display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center; padding: 10px; border-radius: 16px; background: rgba(255, 255, 255, .08); font-size: .8125rem; line-height: 1.3; color: rgba(255, 255, 255, .78); }
.feed-list li b { display: block; color: var(--on-night); font-weight: 600; }
.feed-list li time { font-family: var(--font-mono); font-size: .6875rem; color: var(--on-night-2); }
.feed-list li.enter { animation: feed-in .7s var(--ease) both; }
@keyframes feed-in { from { opacity: 0; transform: translateY(-18px) scale(.96); } }
.feed-ico { width: 34px; height: 34px; border-radius: 11px; background: var(--accent); position: relative; }
.feed-ico::after { content: ""; position: absolute; inset: 10px; border-radius: 3px; background: var(--ink); }
.feed-ico.i-lead { background: var(--rose); } .feed-ico.i-lead::after { border-radius: 50%; }
.feed-ico.i-mail { background: var(--on-night); } .feed-ico.i-mail::after { inset: 11px 8px; }
.feed-ico.i-box { background: var(--ok); } .feed-ico.i-box::after { transform: rotate(45deg); }

.load-in { animation: load-in .9s var(--ease) both; animation-delay: var(--d, 0ms); }
@keyframes load-in { from { opacity: 0; transform: translateY(26px); } }

@media (max-width: 1100px) {
  .hero { flex-direction: column; align-items: stretch; justify-content: flex-end; min-height: 0; padding-top: 300px; }
  .hero-content { max-width: 680px; }
  .hero-feed { flex: none; align-self: stretch; }
  /* środek sieci (72% szerokości kadru) ustawiony na środku hero */
  .hero-video {
    --vw: clamp(700px, 190%, 900px); right: auto; left: calc(50% - .71875 * var(--vw)); top: -12px;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 16%, #000 95%, transparent), linear-gradient(to top, transparent 4%, #000 42%);
    mask-image: linear-gradient(to right, transparent, #000 16%, #000 95%, transparent), linear-gradient(to top, transparent 4%, #000 42%);
  }
}
@media (max-width: 560px) {
  .hero { padding-top: 236px; }
  /* na telefonie film wychodzi poza oba brzegi, więc wygaszamy tylko dół */
  .hero-video { -webkit-mask-image: linear-gradient(to top, transparent 4%, #000 42%); mask-image: linear-gradient(to top, transparent 4%, #000 42%); }
  .hero-cta .btn { flex: 1 1 100%; }
  .feed-list li:nth-child(n+3) { display: none; }
}

/* ---------- sekcje ---------- */
.section { padding-block: clamp(64px, 9vw, 132px); }
.section-tight { padding-block: clamp(32px, 4vw, 56px) clamp(48px, 6vw, 88px); }
.section-head { display: grid; gap: 20px; justify-items: center; text-align: center; max-width: 880px; margin-inline: auto; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head.wrap { max-width: calc(880px + 2 * var(--gutter)); }
.section-head.left { justify-items: start; text-align: left; margin-inline: 0; }

/* pojawianie się przy scrollu — bez JS wszystko jest widoczne */
.js-motion .reveal { opacity: .16; transform: translateY(30px); }
.js-motion .reveal.is-in { opacity: 1; transform: none; transition: opacity .9s var(--ease) var(--d, 0ms), transform .9s var(--ease) var(--d, 0ms); }

/* ---------- liczby ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding-block: clamp(40px, 6vw, 80px) 0; }
.stat { border-top: 2px solid var(--ink); padding-top: 18px; display: grid; gap: 8px; align-content: start; }
.stat-num { font-family: var(--font-display); font-weight: 750; font-size: clamp(2.25rem, 4.4vw, 3.75rem); line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.stat-label { color: var(--ink-2); font-size: .9375rem; max-width: 26ch; }
@media (max-width: 820px) { .stats { grid-template-columns: repeat(2, 1fr); gap: 28px 20px; } }

/* ---------- bento ---------- */
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; }
.span-7 { grid-column: span 7; } .span-5 { grid-column: span 5; }
.card {
  position: relative; overflow: hidden; border-radius: var(--r-lg); min-height: 500px; min-width: 0;
  padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; gap: 28px;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), opacity .9s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: 0 34px 60px -34px rgba(20, 17, 20, .4); }
.js-motion .card.reveal.is-in:hover { transform: translateY(-6px); transition-delay: 0ms; }
.card-copy { display: grid; gap: 12px; max-width: 46ch; }
.card-copy p { color: var(--ink-2); }
.card-mist { background: var(--mist); }
.card-night { background: var(--night); color: var(--on-night); }
.card-night .card-copy p { color: var(--on-night-2); }
.card-accent { background: var(--accent); color: var(--ink); }
.card-accent .card-copy p { color: var(--ink); opacity: .82; }
.card-video { background: var(--night); color: var(--on-night); justify-content: flex-end; }
.card-video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.card-video:hover video { transform: scale(1.04); }
.card-video::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(20, 17, 20, .92) 4%, rgba(20, 17, 20, .35) 46%, rgba(20, 17, 20, 0) 70%); }
.card-copy.on-video { position: relative; z-index: 1; }
.card-copy.on-video p { color: rgba(255, 255, 255, .82); }
.mock { margin-top: auto; position: relative; font-family: var(--font-mono); font-size: .75rem; }

@media (max-width: 900px) {
  .span-7, .span-5 { grid-column: 1 / -1; }
  .card { min-height: 0; }
  .card-video { min-height: 440px; }
}

/* makieta: lejek */
.mock-pipeline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3%; }
.pipe-col { background: var(--paper); border-radius: 16px; padding: 12px; min-height: 210px; display: grid; gap: 8px; align-content: start; }
.pipe-title { color: var(--ink-2); font-size: .6875rem; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pipe-col i { display: block; height: 30px; border-radius: 9px; background: var(--mist); }
.pipe-card {
  position: absolute; left: 0; bottom: 14px; width: 31.333%; padding: 0 10px;
  animation: pipe-move 9s var(--ease) infinite;
}
.pipe-card > span { display: block; }
.pipe-card::before { content: ""; position: absolute; inset: 0 8px; background: var(--ink); border-radius: 14px; box-shadow: 0 16px 30px -14px rgba(20, 17, 20, .6); z-index: -1; }
.pipe-card { color: var(--on-night); padding: 12px 18px; display: grid; gap: 4px; z-index: 1; }
.pc-name { font-family: var(--font-display); font-weight: 650; font-size: .875rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-meta { color: var(--on-night-2); font-size: .6875rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-badges { position: relative; height: 22px; margin-top: 4px; }
.pc-badges em { position: absolute; left: 0; top: 0; font-style: normal; font-size: .6875rem; padding: 2px 8px; border-radius: 999px; background: var(--night-3); opacity: 0; white-space: nowrap; }
.pc-badges .b1 { animation: badge-1 9s infinite; }
.pc-badges .b2 { animation: badge-2 9s infinite; background: var(--accent); color: var(--ink); }
.pc-badges .b3 { animation: badge-3 9s infinite; background: var(--ok); color: var(--ink); }
@keyframes pipe-move {
  0%, 22% { transform: translateX(0); }
  32%, 56% { transform: translateX(109.6%); }
  66%, 92% { transform: translateX(219.2%); opacity: 1; }
  97% { transform: translateX(219.2%); opacity: 0; }
  98% { transform: translateX(0); opacity: 0; }
  100% { transform: translateX(0); opacity: 1; }
}
@keyframes badge-1 { 0%, 26% { opacity: 1; } 30%, 100% { opacity: 0; } }
@keyframes badge-2 { 0%, 28% { opacity: 0; } 32%, 60% { opacity: 1; } 64%, 100% { opacity: 0; } }
@keyframes badge-3 { 0%, 62% { opacity: 0; } 66%, 96% { opacity: 1; } 100% { opacity: 0; } }

/* makieta: czat */
.mock-chat { display: grid; gap: 10px; font-family: var(--font-body); font-size: .9375rem; line-height: 1.4; }
.chat-slot { display: grid; }
.chat-slot > * { grid-area: 1 / 1; }
.bubble { max-width: 86%; padding: 12px 16px; border-radius: 20px; }
.bubble.in { background: var(--night-3); color: var(--on-night); border-bottom-left-radius: 6px; justify-self: start; animation: chat-1 10s infinite; }
.bubble.out { background: var(--paper); color: var(--ink); border-bottom-right-radius: 6px; justify-self: end; animation: chat-3 10s infinite; }
.bubble.note { justify-self: center; max-width: 100%; text-align: center; font-family: var(--font-mono); font-size: .6875rem; color: var(--on-night-2); border: 1px dashed var(--night-line); border-radius: 999px; padding: 6px 12px; animation: chat-4 10s infinite; }
.bubble.typing { justify-self: end; align-self: start; display: inline-flex; gap: 5px; background: var(--paper); border-bottom-right-radius: 6px; padding: 16px; opacity: 0; animation: chat-2 10s infinite; }
.bubble.typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-2); animation: dot 1s infinite; }
.bubble.typing span:nth-child(2) { animation-delay: .15s; } .bubble.typing span:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 60%, 100% { transform: none; opacity: .4; } 30% { transform: translateY(-4px); opacity: 1; } }
@keyframes chat-1 { 0%, 2% { opacity: 0; transform: translateY(10px); } 6%, 94% { opacity: 1; transform: none; } 98%, 100% { opacity: 0; } }
@keyframes chat-2 { 0%, 14% { opacity: 0; } 17%, 32% { opacity: 1; } 34%, 100% { opacity: 0; } }
@keyframes chat-3 { 0%, 34% { opacity: 0; transform: translateY(10px); } 38%, 94% { opacity: 1; transform: none; } 98%, 100% { opacity: 0; } }
@keyframes chat-4 { 0%, 54% { opacity: 0; transform: scale(.94); } 58%, 94% { opacity: 1; transform: none; } 98%, 100% { opacity: 0; } }

/* makieta: dokument */
.mock-doc { display: grid; grid-template-columns: minmax(0, 150px) minmax(0, 1fr); gap: 18px; align-items: end; }
.doc { position: relative; overflow: hidden; background: var(--paper); border-radius: 14px; padding: 16px 14px; display: grid; gap: 9px; align-content: start; min-height: 196px; box-shadow: 0 18px 30px -18px rgba(20, 17, 20, .55); transform: rotate(-3deg); }
.doc-title { font-family: var(--font-display); font-weight: 700; font-size: .8125rem; margin-bottom: 4px; }
.doc-line { height: 7px; border-radius: 4px; background: var(--mist-2); }
.doc-line.strong { background: var(--ink); margin-top: 10px; height: 9px; }
.w30 { width: 30%; } .w45 { width: 45%; } .w60 { width: 60%; } .w70 { width: 70%; } .w85 { width: 85%; }
.scan { position: absolute; left: 0; right: 0; top: 0; height: 44px; background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--accent) 55%, transparent)); border-bottom: 2px solid var(--accent); animation: scan 7s ease-in-out infinite; }
@keyframes scan { 0% { transform: translateY(-50px); } 38%, 100% { transform: translateY(210px); } }
.doc-fields { display: grid; gap: 7px; }
.doc-fields li { display: flex; justify-content: space-between; gap: 10px; background: var(--ink); color: var(--on-night); border-radius: 12px; padding: 9px 12px; animation: field 7s infinite both; }
.doc-fields li span { color: var(--on-night-2); }
.doc-fields li b { font-weight: 500; white-space: nowrap; }
.doc-fields .f2 { animation-name: field-2; } .doc-fields .f3 { animation-name: field-3; } .doc-fields .f4 { animation-name: field-4; }
.doc-fields .ok { background: var(--paper); color: var(--ink); justify-content: center; }
.doc-fields .ok b { font-weight: 700; }
@keyframes field { 0%, 10% { opacity: 0; transform: translateX(-12px); } 15%, 94% { opacity: 1; transform: none; } 99%, 100% { opacity: 0; } }
@keyframes field-2 { 0%, 20% { opacity: 0; transform: translateX(-12px); } 25%, 94% { opacity: 1; transform: none; } 99%, 100% { opacity: 0; } }
@keyframes field-3 { 0%, 30% { opacity: 0; transform: translateX(-12px); } 35%, 94% { opacity: 1; transform: none; } 99%, 100% { opacity: 0; } }
@keyframes field-4 { 0%, 44% { opacity: 0; transform: scale(.9); } 50%, 94% { opacity: 1; transform: none; } 99%, 100% { opacity: 0; } }
@media (max-width: 420px) { .mock-doc { grid-template-columns: 1fr; } .doc { max-width: 150px; } }
@media (max-width: 560px) { .pipe-col { padding: 8px; } .pipe-card { padding: 10px 14px; } .pc-name { font-size: .75rem; } .pipe-card::before { inset: 0 4px; } }

/* ---------- kalkulator ---------- */
.calc { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); border-radius: var(--r-xl); overflow: hidden; background: var(--mist); }
.calc-form { padding: clamp(24px, 4.4vw, 60px); display: grid; gap: 26px; align-content: start; }
.calc-form .lead { margin-top: -10px; }
.field { display: grid; gap: 12px; }
.field label { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; font-weight: 560; }
.field output { font-family: var(--font-display); font-weight: 720; font-size: 1.375rem; letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; cursor: pointer; margin: 0; }
input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--ink) var(--p, 50%), var(--mist-2) var(--p, 50%)); }
input[type="range"]::-moz-range-track { height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--ink) var(--p, 50%), var(--mist-2) var(--p, 50%)); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; margin-top: -11px; border-radius: 50%; background: var(--paper); border: 7px solid var(--ink); box-shadow: 0 4px 12px -2px rgba(20, 17, 20, .4); transition: transform .2s var(--ease); }
input[type="range"]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--paper); border: 7px solid var(--ink); box-shadow: 0 4px 12px -2px rgba(20, 17, 20, .4); }
input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.15); }
.seg { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.seg legend { font-weight: 560; margin-bottom: 12px; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label, .seg button { height: 44px; min-width: 76px; padding: 0 20px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 620; background: var(--paper); color: var(--ink); border: 1.5px solid var(--line); cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; }
.seg input:checked + label, .seg button[aria-selected="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.seg input:focus-visible + label { outline: 3px solid var(--accent); outline-offset: 3px; }
.seg-center { justify-content: center; margin-top: 8px; background: var(--mist); padding: 5px; border-radius: 999px; }
.seg-center button { border-color: transparent; background: transparent; }

.calc-result { background: var(--night); color: var(--on-night); padding: clamp(24px, 4.4vw, 60px); display: grid; gap: 22px; align-content: center; justify-items: start; position: relative; overflow: hidden; isolation: isolate; }
.calc-result::before { content: ""; position: absolute; z-index: -1; width: 520px; height: 520px; right: -220px; top: -240px; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 70%, transparent), transparent); opacity: .7; animation: drift 14s ease-in-out infinite alternate; }
.calc-kicker { font-size: var(--fs-small); color: var(--on-night-2); font-weight: 560; }
.calc-big { font-family: var(--font-display); font-weight: 780; font-size: clamp(4rem, 9vw, 7.5rem); line-height: .9; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.calc-mid { font-family: var(--font-display); font-weight: 720; font-size: clamp(1.5rem, 2.6vw, 2.125rem); letter-spacing: -.03em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.calc-bars { display: grid; gap: 10px; width: 100%; }
.bar-row { display: grid; grid-template-columns: 96px 1fr 56px; gap: 12px; align-items: center; font-size: var(--fs-small); color: var(--on-night-2); }
.bar-row b { color: var(--on-night); font-family: var(--font-mono); font-weight: 500; text-align: right; white-space: nowrap; }
.bar { height: 12px; border-radius: 12px; background: var(--night-3); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 12px; background: var(--on-night-2); transition: width .6s var(--ease); }
.bar i.hot { background: var(--accent); }
.calc-split { display: flex; flex-wrap: wrap; gap: 14px 40px; padding-top: 6px; border-top: 1px solid var(--night-line); width: 100%; padding-block: 20px 4px; }
@media (max-width: 900px) { .calc { grid-template-columns: 1fr; } }

/* ---------- pasmo: proces ---------- */
.band { padding-block: clamp(64px, 9vw, 132px); }
.band-night { background: var(--night); color: var(--on-night); border-radius: var(--r-xl); margin-inline: max(12px, env(safe-area-inset-left, 0px)) max(12px, env(safe-area-inset-right, 0px)); }
.band-night .lead { color: var(--on-night-2); }
.story { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.story-steps { display: grid; }
.story-step { min-height: clamp(340px, 62vh, 540px); display: grid; gap: 14px; align-content: center; opacity: .32; transition: opacity .5s; }
.story-step.is-active { opacity: 1; }
.step-no { font-family: var(--font-mono); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.story-step .h3 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
.story-step p { color: var(--on-night-2); max-width: 44ch; }
.story-step .step-meta { color: var(--on-night); font-weight: 600; font-size: .9375rem; padding-left: 14px; border-left: 2px solid var(--accent); }
.story-stage { position: sticky; top: max(calc(var(--header-h) + 24px), calc(50vh - 240px)); }
.device { background: var(--night-2); border: 1px solid var(--night-line); border-radius: 26px; overflow: hidden; box-shadow: 0 50px 100px -40px rgba(0, 0, 0, .8); }
.device-bar { display: flex; align-items: center; gap: 7px; padding: 14px 18px; border-bottom: 1px solid var(--night-line); font-family: var(--font-mono); font-size: .75rem; color: var(--on-night-2); }
.device-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--night-3); flex: none; }
.device-bar em { font-style: normal; margin-left: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.device-bar em b { color: var(--on-night); font-weight: 500; }
.device-bar i { font-style: normal; margin-left: auto; white-space: nowrap; font-size: .6875rem; border: 1px solid var(--night-line); border-radius: 999px; padding: 2px 8px; }
.device-screen { position: relative; height: clamp(300px, 34vw, 440px); }
.pane { position: absolute; inset: 0; padding: clamp(16px, 2.4vw, 30px); display: grid; gap: 16px; align-content: start; grid-template-rows: auto 1fr auto; opacity: 0; visibility: hidden; transform: translateY(18px) scale(.985); transition: opacity .5s var(--ease), transform .6s var(--ease), visibility .5s; }
.pane.is-active { opacity: 1; visibility: visible; transform: none; }
.pane-title { font-family: var(--font-mono); font-size: .75rem; color: var(--on-night-2); }
.pane-foot { font-size: .9375rem; color: var(--on-night-2); }
.pane-foot b { font-family: var(--font-display); font-size: 1.5rem; color: var(--accent); letter-spacing: -.02em; margin-right: 6px; }

.audit-list { display: grid; gap: 10px; align-content: center; }
.audit-list li { display: grid; grid-template-columns: minmax(0, 11em) 1fr 3.2em; gap: 12px; align-items: center; font-size: .875rem; }
.audit-list span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.audit-list b { font-family: var(--font-mono); font-weight: 500; text-align: right; }
.meter { height: 10px; border-radius: 10px; background: var(--night-3); overflow: hidden; }
.meter i { display: block; height: 100%; width: var(--w); border-radius: 10px; background: linear-gradient(90deg, var(--rose), var(--accent)); transform: scaleX(0); transform-origin: left; transition: transform 1s var(--ease); }
.pane.is-active .meter i { transform: scaleX(1); }
.audit-list li:nth-child(2) .meter i { transition-delay: .08s; } .audit-list li:nth-child(3) .meter i { transition-delay: .16s; }
.audit-list li:nth-child(4) .meter i { transition-delay: .24s; } .audit-list li:nth-child(5) .meter i { transition-delay: .32s; }

.flow { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 0; align-self: center; }
.node { padding: 10px 14px; border-radius: 14px; background: var(--night-3); font-size: .8125rem; font-weight: 600; white-space: nowrap; opacity: 0; transform: translateY(8px); transition: opacity .5s, transform .5s var(--ease); }
.node.hot { background: var(--accent); color: var(--ink); }
.link { flex: 1 1 14px; min-width: 14px; max-width: 44px; height: 2px; background: linear-gradient(90deg, var(--on-night-2) 50%, transparent 50%) 0 0 / 8px 2px; animation: dash 1s linear infinite; }
@keyframes dash { to { background-position: 8px 0; } }
.pane.is-active .node { opacity: 1; transform: none; }
.pane.is-active .node:nth-of-type(3) { transition-delay: .15s; } .pane.is-active .node:nth-of-type(5) { transition-delay: .3s; } .pane.is-active .node:nth-of-type(7) { transition-delay: .45s; }
.roi { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: end; background: var(--night); border-radius: 18px; padding: 16px 18px; }
.roi span { display: block; font-size: .8125rem; color: var(--on-night-2); }
.roi b { font-family: var(--font-display); font-size: clamp(1.125rem, 2vw, 1.5rem); letter-spacing: -.02em; }
.roi-chart { display: flex; gap: 6px; align-items: flex-end; height: 72px; }
.roi-chart i { width: 14px; height: var(--h); border-radius: 5px; background: var(--night-3); transform: scaleY(0); transform-origin: bottom; transition: transform .7s var(--ease); }
.roi-chart i.hot { background: var(--accent); }
.pane.is-active .roi-chart i { transform: scaleY(1); }
.roi-chart i:nth-child(2) { transition-delay: .06s; } .roi-chart i:nth-child(3) { transition-delay: .12s; } .roi-chart i:nth-child(4) { transition-delay: .18s; } .roi-chart i:nth-child(5) { transition-delay: .24s; } .roi-chart i:nth-child(6) { transition-delay: .3s; }

.checks { display: grid; gap: 8px; align-content: center; }
.checks li { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 14px; background: var(--night); font-size: .875rem; min-width: 0; }
.checks li::before { content: ""; flex: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--night-3); }
.checks li.done::before { border-color: var(--ok); background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='m3 7.4 2.6 2.6L11 4.6' fill='none' stroke='%23141114' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; }
.checks li.run::before { border-color: var(--accent); border-right-color: transparent; animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.checks em { margin-left: auto; font-style: normal; font-family: var(--font-mono); font-size: .6875rem; color: var(--on-night-2); white-space: nowrap; }
.progress { height: 8px; border-radius: 8px; background: var(--night-3); overflow: hidden; }
.progress i { display: block; height: 100%; width: 66%; border-radius: 8px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 1.2s var(--ease) .2s; }
.pane.is-active .progress i { transform: scaleX(1); }

.spark { width: 100%; height: 100%; min-height: 80px; align-self: stretch; overflow: visible; }
.spark-area { fill: color-mix(in srgb, var(--accent) 22%, transparent); opacity: 0; transition: opacity 1s .6s; }
.spark-line { fill: none; stroke: var(--accent); stroke-width: 3; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.6s var(--ease); }
.pane.is-active .spark-line { stroke-dashoffset: 0; } .pane.is-active .spark-area { opacity: 1; }
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.kpis div { background: var(--night); border-radius: 14px; padding: 12px 14px; display: grid; gap: 2px; }
.kpis b { font-family: var(--font-display); font-size: clamp(1.125rem, 2vw, 1.5rem); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.kpis span { font-size: .75rem; color: var(--on-night-2); line-height: 1.25; }

@media (max-width: 900px) {
  .story { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .story-stage { order: -1; top: calc(env(safe-area-inset-top, 0px) + var(--header-h)); z-index: 2; background: var(--night); padding-block: 12px 16px; margin-inline: -4px; padding-inline: 4px; }
  .device-screen { height: clamp(292px, 76vw, 360px); }
  .device-bar { padding: 10px 14px; }
  .story-step { min-height: 0; padding-block: 44px; align-content: start; }
  .story-step:last-child { padding-bottom: 8px; }
  .audit-list { gap: 7px; } .audit-list li { grid-template-columns: minmax(0, 9em) 1fr 2.8em; font-size: .8125rem; }
  .checks { gap: 6px; } .checks li { padding: 7px 12px; font-size: .8125rem; }
  .kpis span { font-size: .6875rem; }
}

/* ---------- karuzela ---------- */
.carousel-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(28px, 4vw, 48px); }
.carousel-head > div:first-child { display: grid; gap: 16px; max-width: 760px; }
.carousel-nav { display: flex; gap: 10px; flex: none; }
.round-btn { width: 52px; height: 52px; border-radius: 50%; background: var(--mist); display: grid; place-items: center; transition: background-color .2s, transform .2s var(--ease), opacity .2s; }
.round-btn svg { width: 20px; height: 20px; }
.round-btn:hover { background: var(--ink); color: var(--paper); }
.round-btn:active { transform: scale(.92); }
.round-btn:disabled { opacity: .35; pointer-events: none; }
.carousel {
  --edge: max(var(--gutter), calc((100vw - var(--wrap)) / 2));
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--edge);
  padding: 8px var(--edge) 28px; scrollbar-width: none; -webkit-overflow-scrolling: touch; cursor: grab;
}
.carousel::-webkit-scrollbar { display: none; }
.carousel.is-drag { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; }
.carousel.is-drag .use { pointer-events: none; }
.use {
  flex: 0 0 min(82vw, 384px); min-height: 500px; scroll-snap-align: start; border-radius: var(--r-lg);
  padding: 30px; display: flex; flex-direction: column; gap: 16px; position: relative; overflow: hidden; user-select: none;
  transition: transform .5s var(--ease);
}
.use:hover { transform: translateY(-6px); }
.use-tag { align-self: flex-start; font-size: var(--fs-small); font-weight: 600; padding: 6px 12px; border-radius: 999px; background: color-mix(in srgb, currentColor 12%, transparent); }
.use ul { display: grid; gap: 8px; font-size: .9375rem; }
.use li { padding-left: 18px; position: relative; opacity: .84; }
.use li::before { content: ""; position: absolute; left: 0; top: .6em; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.use-art { position: absolute; right: -14px; bottom: -14px; width: 190px; height: 190px; opacity: .92; transition: transform .7s var(--ease); }
.use:hover .use-art { transform: translate(-8px, -8px) rotate(-5deg) scale(1.05); }
.use-night { background: var(--night); color: var(--on-night); } .use-night .use-art { color: var(--accent); }
.use-mist { background: var(--mist); color: var(--ink); } .use-mist .use-art { color: var(--ink); }
.use-accent { background: var(--accent); color: var(--ink); } .use-accent .use-art { color: var(--ink); }
.use-plum { background: var(--plum); color: var(--on-night); } .use-plum .use-art { color: var(--rose); }
@media (max-width: 640px) { .carousel-head { flex-direction: column; align-items: flex-start; } .use { min-height: 460px; } .use-art { width: 150px; height: 150px; } }

/* ---------- marquee ---------- */
.marquee { display: grid; gap: 14px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-row { display: flex; gap: 14px; width: max-content; animation: marquee 48s linear infinite; }
.marquee-row.reverse { animation-direction: reverse; }
.marquee:hover .marquee-row { animation-play-state: paused; }
.marquee-row li { flex: none; height: 68px; padding: 0 30px; border-radius: 999px; background: var(--mist); display: inline-flex; align-items: center; font-family: var(--font-display); font-weight: 650; font-size: clamp(1.125rem, 2vw, 1.5rem); letter-spacing: -.02em; white-space: nowrap; }
.marquee-row li:nth-child(4n+2) { background: var(--ink); color: var(--paper); }
.marquee-row li:nth-child(7n+4) { background: var(--accent); color: var(--ink); }
@keyframes marquee { to { transform: translateX(calc(-50% - 7px)); } }

/* ---------- film ---------- */
.film-outer { padding-left: max(12px, env(safe-area-inset-left, 0px)); padding-right: max(12px, env(safe-area-inset-right, 0px)); }
.film { position: relative; overflow: hidden; border-radius: var(--r-xl); background: var(--night); max-width: 1480px; margin-inline: auto; aspect-ratio: 16 / 9; transform: scale(var(--s, 1)); transform-origin: center top; will-change: transform; }
.film video { width: 100%; height: 100%; object-fit: cover; }
.film-toggle { position: absolute; right: clamp(12px, 2vw, 24px); bottom: clamp(12px, 2vw, 24px); width: 52px; height: 52px; border-radius: 50%; background: var(--glass); color: var(--on-night); border: 1px solid var(--night-line); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); display: grid; place-items: center; transition: transform .2s var(--ease), background-color .2s; }
.film-toggle:hover { background: var(--ink); transform: scale(1.06); }
.film-toggle svg { width: 18px; height: 18px; grid-area: 1 / 1; }
.film-toggle .ic-play, .film-toggle[aria-pressed="true"] .ic-pause { display: none; }
.film-toggle[aria-pressed="true"] .ic-play { display: block; }

/* ---------- pakiety ---------- */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.plan { position: relative; background: var(--mist); border-radius: var(--r-lg); padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; gap: 14px; transition: transform .5s var(--ease), opacity .9s var(--ease); }
.plan:hover { transform: translateY(-6px); }
.plan-featured { background: var(--night); color: var(--on-night); }
.plan-flag { align-self: flex-start; background: var(--accent); color: var(--ink); font-size: .8125rem; font-weight: 650; padding: 5px 12px; border-radius: 999px; }
.plan .h3 { font-size: clamp(1.75rem, 2.6vw, 2.25rem); }
.plan-for { color: var(--ink-2); min-height: 3em; }
.plan-featured .plan-for { color: var(--on-night-2); }
.plan-price { font-family: var(--font-display); font-weight: 680; font-size: 1.125rem; padding-block: 14px; border-block: 1px solid var(--line); }
.plan-featured .plan-price { border-color: var(--night-line); }
.ticks { display: grid; gap: 10px; font-size: .9375rem; margin-bottom: 10px; }
.ticks li { padding-left: 28px; position: relative; animation: tick-in .5s var(--ease) both; }
.ticks li:nth-child(2) { animation-delay: 40ms; } .ticks li:nth-child(3) { animation-delay: 80ms; } .ticks li:nth-child(4) { animation-delay: 120ms; } .ticks li:nth-child(5) { animation-delay: 160ms; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .2em; width: 18px; height: 18px; border-radius: 50%; background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='m3 7.4 2.6 2.6L11 4.6' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; }
.plan-featured .ticks li::before { background-color: var(--accent); }
@keyframes tick-in { from { opacity: 0; transform: translateX(-8px); } }
.plans[data-mode="projekt"] .m-opieka, .plans[data-mode="opieka"] .m-projekt { display: none; }
.plan .btn { margin-top: auto; align-self: flex-start; }
.plan-featured .btn-outline { border-color: var(--on-night); color: var(--on-night); }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; } .plan-for { min-height: 0; } }

/* ---------- bezpieczeństwo ---------- */
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.trust { border: 1.5px solid var(--line); border-radius: var(--r-lg); padding: clamp(24px, 3vw, 36px); display: grid; gap: 12px; align-content: start; transition: border-color .3s, transform .5s var(--ease), opacity .9s var(--ease); }
.trust:hover { border-color: var(--ink); transform: translateY(-4px); }
.trust svg { width: 44px; height: 44px; color: var(--accent-deep); margin-bottom: 8px; }
.trust p { color: var(--ink-2); }
@media (max-width: 900px) { .trio { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq-section { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(24px, 6vw, 96px); align-items: start; }
.faq-section .section-head { position: sticky; top: calc(var(--header-h) + 32px); margin-bottom: 0; }
.faq { border-top: 1.5px solid var(--ink); }
.qa { border-bottom: 1px solid var(--line); }
.qa h3 { font: inherit; }
.qa button { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; text-align: left; padding: 24px 0; font-family: var(--font-display); font-weight: 650; font-size: clamp(1.125rem, 1.7vw, 1.375rem); letter-spacing: -.02em; line-height: 1.25; }
.plus { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--mist); position: relative; transition: background-color .3s, transform .5s var(--ease); }
.plus::before, .plus::after { content: ""; position: absolute; left: 11px; right: 11px; top: 17px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .5s var(--ease), background-color .3s; }
.plus::after { transform: rotate(90deg); }
.qa.is-open .plus { background: var(--ink); transform: rotate(180deg); }
.qa.is-open .plus::before, .qa.is-open .plus::after { background: var(--paper); }
.qa.is-open .plus::after { transform: rotate(0deg); }
.qa-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease); }
.qa-body > div { overflow: hidden; }
.qa-body p { color: var(--ink-2); max-width: 62ch; padding-bottom: 26px; opacity: 0; transform: translateY(-6px); transition: opacity .4s, transform .5s var(--ease); }
.qa.is-open .qa-body { grid-template-rows: 1fr; }
.qa.is-open .qa-body p { opacity: 1; transform: none; }
@media (max-width: 900px) { .faq-section { grid-template-columns: 1fr; } .faq-section .section-head { position: static; } }

/* ---------- CTA ---------- */
#kontakt { padding-left: max(12px, env(safe-area-inset-left, 0px)); padding-right: max(12px, env(safe-area-inset-right, 0px)); padding-bottom: clamp(24px, 4vw, 48px); }
.cta { position: relative; isolation: isolate; overflow: hidden; border-radius: var(--r-xl); background: var(--night); color: var(--on-night); padding: clamp(56px, 10vw, 140px) clamp(20px, 4vw, 64px); }
.cta-glow { position: absolute; inset: -30%; z-index: -1; filter: blur(50px);
  background: radial-gradient(34% 40% at 22% 70%, var(--accent), transparent 70%), radial-gradient(30% 36% at 78% 28%, var(--rose), transparent 70%), radial-gradient(26% 30% at 62% 86%, var(--plum), transparent 70%);
  opacity: .78; animation: drift 16s ease-in-out infinite alternate; }
@keyframes drift { from { transform: translate3d(-3%, 2%, 0) rotate(-4deg) scale(1); } to { transform: translate3d(4%, -3%, 0) rotate(5deg) scale(1.12); } }
.cta-inner { display: grid; gap: 22px; justify-items: center; text-align: center; max-width: 900px; margin-inline: auto; }
.cta .lead { color: rgba(255, 255, 255, .86); }
.cta-form { display: flex; gap: 8px; width: min(100%, 540px); background: var(--glass); border: 1px solid var(--night-line); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); border-radius: 999px; padding: 7px; margin-top: 10px; }
.cta-mail { flex: 1; min-width: 0; display: flex; align-items: center; padding: 0 20px; border-radius: 999px; font-family: var(--font-display); font-weight: 620; font-size: clamp(1rem, 2.4vw, 1.1875rem); letter-spacing: -.01em; color: var(--on-night); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cta-mail:hover { text-decoration: underline; text-underline-offset: 4px; }
.cta-form:hover { border-color: rgba(255, 255, 255, .5); }
.form-msg { min-height: 1.5em; font-size: .9375rem; color: var(--on-night); }
.link-btn { font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.link-btn:hover { text-decoration-thickness: 2px; }
@media (max-width: 520px) { .cta-form { flex-direction: column; border-radius: 30px; padding: 10px; } .cta-mail { height: 52px; justify-content: center; } }

/* ---------- stopka ---------- */
.site-footer { padding-block: clamp(40px, 6vw, 80px) 40px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(4, minmax(0, 1fr)); gap: 32px 24px; }
.footer-brand { display: grid; gap: 14px; align-content: start; justify-items: start; }
.footer-brand p { color: var(--ink-2); max-width: 30ch; }
.site-footer nav { display: grid; gap: 10px; align-content: start; font-size: .9375rem; }
.site-footer h4 { font-family: var(--font-display); font-weight: 680; font-size: 1rem; margin: 0 0 6px; }
.site-footer nav a { color: var(--ink-2); transition: color .2s; justify-self: start; }
.site-footer nav a:hover { color: var(--ink); }
.footer-legal { margin-top: clamp(36px, 5vw, 64px); padding-top: 24px; border-top: 1px solid var(--line); display: grid; gap: 10px; font-size: .8125rem; color: var(--ink-2); max-width: 92ch; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-brand { grid-column: 1 / -1; } }

.footer-legal a { text-decoration: underline; text-underline-offset: 3px; }
.footer-legal a:hover, .footer-legal .link-btn:hover { color: var(--ink); }

/* ---------- baner zgody na analitykę ---------- */
.consent {
  position: fixed; z-index: 80; left: max(16px, env(safe-area-inset-left, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  width: min(420px, calc(100vw - 32px)); background: var(--night); color: var(--on-night); border: 1px solid var(--night-line);
  border-radius: 26px; padding: 22px; display: grid; gap: 14px; box-shadow: 0 30px 70px -20px rgba(20, 17, 20, .55);
  animation: consent-in .6s var(--ease) both;
}
@keyframes consent-in { from { opacity: 0; transform: translateY(24px); } }
.consent h2 { font-family: var(--font-display); font-size: 1.125rem; font-weight: 680; letter-spacing: -.015em; }
.consent p { font-size: .875rem; line-height: 1.45; color: var(--on-night-2); }
.consent p a { color: var(--on-night); text-decoration: underline; text-underline-offset: 3px; }
.consent-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.consent-actions .btn { padding: 0 12px; }
.consent .btn-quiet { background: var(--night-3); color: var(--on-night); }
.consent .btn-quiet:hover { background: var(--ink-2); }

/* ---------- strony tekstowe i 404 ---------- */
.doc-page { padding-block: clamp(40px, 6vw, 88px) clamp(56px, 8vw, 120px); max-width: calc(780px + 2 * var(--gutter)); }
.doc-page h1 { font-family: var(--font-display); font-size: var(--fs-h2); font-weight: 720; line-height: 1.04; letter-spacing: -.034em; text-wrap: balance; margin-bottom: 14px; }
.doc-page .lead { margin-bottom: clamp(28px, 4vw, 48px); }
.doc-page h2 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 680; letter-spacing: -.02em; line-height: 1.2; margin: 44px 0 14px; }
.doc-page p, .doc-page li { color: var(--ink-2); max-width: 68ch; }
.doc-page p + p { margin-top: 12px; }
.doc-page ul { list-style: disc; padding-left: 22px; display: grid; gap: 8px; margin-top: 12px; }
.doc-page .doc-table + p, .doc-page ul + p { margin-top: 16px; }
.doc-page strong { color: var(--ink); font-weight: 600; }
.doc-page a { color: var(--accent-deep); text-decoration: underline; text-underline-offset: 3px; }
.doc-table { overflow-x: auto; margin-top: 16px; border: 1px solid var(--line); border-radius: var(--r-md); }
.doc-table table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: .9375rem; }
.doc-table th, .doc-table td { text-align: left; vertical-align: top; padding: 12px 16px; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.doc-table th { font-family: var(--font-display); font-weight: 650; color: var(--ink); background: var(--mist); }
.doc-table tr:last-child td { border-bottom: 0; }
.doc-table code { font-family: var(--font-mono); font-size: .8125rem; color: var(--ink); }
.lost-outer { padding: 0 max(12px, env(safe-area-inset-right, 0px)) clamp(24px, 4vw, 48px) max(12px, env(safe-area-inset-left, 0px)); }
.lost { position: relative; isolation: isolate; overflow: hidden; border-radius: var(--r-xl); background: var(--night); color: var(--on-night); padding: clamp(64px, 12vw, 160px) clamp(20px, 4vw, 64px); display: grid; gap: 20px; justify-items: center; text-align: center; }
.lost-code { font-family: var(--font-mono); font-size: .875rem; letter-spacing: .12em; color: var(--accent); }
.lost .lead { color: rgba(255, 255, 255, .84); }
.lost-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 8px; }

/* ---------- ograniczony ruch ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .js-motion .reveal { opacity: 1; transform: none; }
  .bubble.typing { display: none; }
  .film { transform: none; }
  .meter i, .roi-chart i, .progress i { transform: none; }
  .node { opacity: 1; transform: none; }
  .spark-line { stroke-dashoffset: 0; } .spark-area { opacity: 1; }
  .scan { display: none; }
}
