/* =========================================================================
   Fluinty — system nowej strony (przeniesiony z design canvas, runda 20)
   Kolejnosc: tokeny, reset, typografia, uklad, komponenty, ruch, responsywnosc
   ========================================================================= */

/* --- tokeny --- */
:root {
  /* ciemne */
  --ink:        #091626;   /* tlo hero i nav */
  --ink-deep:   #060F1D;   /* ciemniejszy pas */
  --surface:    #0E2036;   /* karta na ciemnym */
  --panel:      #0C2340;   /* dashboard, konsola */
  --navy:       #0B3D70;   /* CTA */
  --footer:     #082444;

  /* akcent */
  --teal:       #00C4B4;
  --teal-2:     #2DD4BF;
  --teal-text:  #007A70;   /* teal jako TEKST tylko na jasnym tle */

  /* jasne */
  --white:      #FFFFFF;
  --gray:       #F8FAFC;
  --mint:       #F0FDFC;
  --line:       #E2E8F0;
  --line-soft:  #EDF2F7;
  --line-input: #8291A6;   /* ramka pol formularza: 3.2:1 na bialym (WCAG 1.4.11) */

  /* tekst */
  --text:       #0F172A;
  --text-2:     #475569;
  --text-3:     #64748B;
  --on-dark:    #F4F8FC;
  --on-dark-2:  #C9D8E8;
  --on-dark-3:  #9AAEC4;   /* 5.3:1 na granacie CTA, 8.8:1 na ink (bylo #9AAEC4: 4.8:1 na granacie) */

  /* typografia */
  --display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --body:    "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --mono:    "IBM Plex Mono", Consolas, monospace;

  /* uklad */
  --wrap: 1200px;
  --pad: clamp(20px, 5vw, 120px);
  --section: clamp(56px, 7vw, 104px);
  --radius: 18px;
  --radius-sm: 12px;

  /* skala pisma */
  --fs-h1: clamp(34px, 5.4vw, 64px);
  --fs-h2: clamp(28px, 3.6vw, 46px);
  --fs-h3: clamp(19px, 1.6vw, 22px);
  --fs-lead: clamp(15.5px, 1.35vw, 17.5px);
  --fs-body: 16px;
  --fs-small: 14px;
  --fs-label: 11.5px;
}

/* --- reset --- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--gray); color: var(--text);
  font-family: var(--body); font-size: var(--fs-body); line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }

/* fokus: ciemny teal na jasnym (5.2:1), jasny teal na ciemnym (5.9:1 na granacie); sam --teal na bialym ma 2.2:1 */
:focus-visible { outline: 2px solid var(--teal-text); outline-offset: 3px; border-radius: 4px; }
.sec-dark :focus-visible, .sec-navy :focus-visible, .nav :focus-visible, .footer :focus-visible,
.card-dark :focus-visible, .flow :focus-visible, .console :focus-visible { outline-color: var(--teal-2); }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--teal); color: var(--navy); font-weight: 700;
  padding: 12px 20px; border-radius: 0 0 10px 0;
}
.skip:focus { left: 0; }
#main:focus { outline: none; } /* cel skip linku ma tabindex="-1", zeby fokus wchodzil do tresci takze w Safari */
.vh { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

/* --- uklad --- */
.wrap { max-width: calc(var(--wrap) + 2 * var(--pad)); margin-inline: auto; padding-inline: var(--pad); }
.sec { padding-block: var(--section); position: relative; overflow: hidden; }
.sec-white { background: var(--white); }
.sec-gray  { background: var(--gray); }
.sec-mint  { background: var(--mint); }
.sec-dark  { background: var(--ink); color: var(--on-dark); }
.sec-navy  { background: var(--navy); color: var(--on-dark); }
.sec-white + .sec-white, .sec-gray + .sec-gray { border-top: 1px solid var(--line); }

.stack   { display: flex; flex-direction: column; gap: 18px; }
.stack-s { display: flex; flex-direction: column; gap: 10px; }
.row     { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.grid    { display: grid; gap: clamp(16px, 2vw, 24px); }
.grid-2  { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3  { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-4  { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.grid-hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.sec-head { display: flex; flex-direction: column; gap: 16px; max-width: 720px; margin-bottom: clamp(28px, 3.5vw, 48px); }

/* --- typografia --- */
.eyebrow {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--teal-text);
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: var(--teal); flex: none; animation: pulse 2.6s ease-in-out infinite; }
.sec-dark .eyebrow, .sec-navy .eyebrow { color: var(--teal-2); }

h1, .h1 { font-family: var(--display); font-weight: 700; font-size: var(--fs-h1); line-height: 1.06; letter-spacing: -0.03em; text-wrap: balance; }
h2, .h2 { font-family: var(--display); font-weight: 700; font-size: var(--fs-h2); line-height: 1.1;  letter-spacing: -0.03em; text-wrap: balance; }
h3, .h3 { font-family: var(--display); font-weight: 600; font-size: var(--fs-h3); line-height: 1.25; letter-spacing: -0.015em; }
.lead { font-size: var(--fs-lead); color: var(--text-2); line-height: 1.65; max-width: 62ch; }
.sec-dark .lead, .sec-navy .lead { color: var(--on-dark-3); }
.small { font-size: var(--fs-small); color: var(--text-3); line-height: 1.55; }
.sec-dark .small, .sec-navy .small { color: var(--on-dark-3); }
.label { font-family: var(--mono); font-size: var(--fs-label); letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); }
.sec-dark .label, .sec-navy .label { color: var(--on-dark-3); }
.body-2 { color: var(--text-2); }
.accent-bar { width: 64px; height: 3px; border-radius: 2px; background: linear-gradient(90deg, var(--teal), var(--teal-2)); }
.mark { background: linear-gradient(90deg, var(--teal), #5FE9D7, var(--teal)); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }

/* --- przyciski i linki --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-weight: 700; font-size: 15.5px; padding: 15px 28px; border-radius: var(--radius-sm);
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--teal); color: var(--navy); box-shadow: 0 10px 28px -12px rgba(0,196,180,.55); }
.btn-primary:hover { background: var(--teal-2); }
.btn-ghost { border: 1px solid var(--line); color: var(--text); background: var(--white); }
.sec-dark .btn-ghost, .sec-navy .btn-ghost { border-color: rgba(148,190,233,.35); color: var(--on-dark); background: transparent; }
.btn-sm { padding: 10px 18px; font-size: 14px; }
.link-more { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; font-size: 14px; color: var(--teal-text); }
.link-more svg { flex: none; transition: transform .15s ease; }
.link-more:hover svg { transform: translateX(3px); }
.sec-dark .link-more, .sec-navy .link-more { color: var(--teal-2); }

/* --- karty --- */
.card {
  position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(20px, 2.2vw, 30px); display: flex; flex-direction: column; gap: 12px;
  box-shadow: 0 1px 2px rgba(15,23,42,.04);
}
a.card { transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
a.card:hover { transform: translateY(-2px); border-color: rgba(0,196,180,.5); box-shadow: 0 1px 2px rgba(15,23,42,.04), 0 18px 40px -24px rgba(11,61,112,.35); }
.card-hi { background: linear-gradient(180deg, var(--mint), var(--white)); border-color: rgba(0,196,180,.55); }
.card-dark { background: var(--surface); border-color: rgba(148,190,233,.14); color: var(--on-dark); }
.card-dark .metric-lab, .card-dark .small { color: var(--on-dark-3); }
.badge {
  position: absolute; top: -12px; left: 22px; background: var(--teal); color: var(--navy);
  font-family: var(--mono); font-size: 11px; letter-spacing: .1em; padding: 4px 12px; border-radius: 99px; white-space: nowrap;
}

/* --- metryki --- */
.metrics { display: grid; gap: clamp(14px, 2vw, 24px); }
.metric { display: flex; flex-direction: column; gap: 6px; }
.metric-num { font-family: var(--display); font-weight: 700; font-size: clamp(28px, 3vw, 44px); letter-spacing: -.03em; line-height: 1; color: var(--teal-text); }
.metric-lab { font-size: 13.5px; color: var(--text-3); line-height: 1.45; }
.sec-dark .metric-num, .sec-navy .metric-num { color: var(--teal-2); }
.sec-dark .metric-lab, .sec-navy .metric-lab { color: var(--on-dark-3); }
.metric-bordered { border-left: 1px solid var(--line); padding-left: 16px; }
.sec-dark .metric-bordered { border-left-color: rgba(148,190,233,.18); }

/* --- chipy --- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 99px; padding: 7px 14px; font-size: 13px; color: var(--text-2); background: var(--white); }
.chip-hi { border-color: rgba(0,196,180,.5); background: var(--mint); color: var(--teal-text); font-weight: 600; }
.sec-dark .chip, .sec-navy .chip { border-color: rgba(148,190,233,.18); background: rgba(148,190,233,.05); color: var(--on-dark-3); }
.chip-mono { font-family: var(--mono); font-size: var(--fs-label); letter-spacing: .08em; text-transform: uppercase; }

/* --- konsola --- */
.console { background: rgba(11,26,44,.92); border: 1px solid rgba(148,190,233,.12); border-radius: var(--radius); overflow: hidden; box-shadow: 0 24px 64px -24px rgba(2,8,18,.8); }
.console-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; border-bottom: 1px solid rgba(148,190,233,.09); background: rgba(148,190,233,.03); font-family: var(--mono); font-size: 12.5px; color: var(--on-dark-3); }
.console-body { padding: 20px 20px 22px; display: flex; flex-direction: column; gap: 11px; font-family: var(--mono); font-size: 13px; line-height: 1.5; color: var(--on-dark-2); }
.log-line { display: flex; gap: 14px; opacity: 0; color: #9AAEC4; animation: logLine 1.4s linear both; }
.log-line-ok { animation-name: logLineOk; }
@keyframes logLine { 0% { opacity: 0; transform: translateY(6px); color: #5FE9D7; } 28% { opacity: 1; transform: none; color: #5FE9D7; } 100% { opacity: 1; transform: none; color: #9AAEC4; } }
@keyframes logLineOk { 0% { opacity: 0; transform: translateY(6px); color: #5FE9D7; } 28% { opacity: 1; transform: none; color: #5FE9D7; } 100% { opacity: 1; transform: none; color: #2DD4BF; } }
.log-line .ts { color: var(--on-dark-3); flex: none; }
.log-line-ok .ts { color: var(--teal-2); }
.caret { width: 8px; height: 15px; background: var(--teal-2); display: inline-block; flex: none; animation: blink 1.1s step-end infinite; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal-2); display: inline-block; animation: pulse 1.8s ease-in-out infinite; }
.status-square { width: 7px; height: 7px; border-radius: 2px; background: var(--teal-2); display: inline-block; opacity: .7; }

/* --- schemat przeplywu --- */
.flow { background: var(--surface); border: 1px solid rgba(148,190,233,.14); border-radius: var(--radius); padding: clamp(20px, 2.4vw, 32px); }
.flow-head { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.flow-scroll { overflow-x: auto; }
.flow svg { display: block; width: 100%; min-width: 1090px; height: auto; }
.flow-cap { font-size: 13.5px; color: var(--on-dark-3); margin-top: 14px; }
.flow-orb { filter: drop-shadow(0 0 6px rgba(45,212,191,.9)); }

/* --- FAQ --- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0; cursor: pointer; font-family: var(--display); font-weight: 600; font-size: 18px; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::marker { content: ""; }
.faq .chev { flex: none; transition: transform .2s ease; }
.faq details[open] .chev { transform: rotate(180deg); }
.faq .answer { padding: 0 0 22px; color: var(--text-2); max-width: 72ch; }

/* --- formularz --- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13.5px; font-weight: 600; color: var(--text-2); }
.field input, .field textarea {
  font: inherit; color: var(--text); background: var(--white);
  border: 1px solid var(--line-input); border-radius: 10px; padding: 13px 15px; width: 100%;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:not([type="range"]):focus, .field textarea:focus { border-color: var(--teal-text); outline: none; box-shadow: 0 0 0 3px rgba(0,122,112,.22); }
/* suwak kalkulatora zostaje przy globalnym :focus-visible (obwodka), bo sama ramka i cien go nie wyroznia */
input[type="range"] { width: 100%; accent-color: var(--teal-text); }

/* --- nawigacja --- */
.nav { position: sticky; top: 0; z-index: 50; background: var(--ink); border-bottom: 1px solid rgba(148,190,233,.09); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 28px; width: auto; }
.brand-word { font-family: var(--display); font-weight: 700; font-size: 24px; letter-spacing: -.04em; background: linear-gradient(90deg, var(--teal), var(--teal-2)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.nav-links a, .nav-cta { white-space: nowrap; }
.nav-links { display: flex; align-items: center; gap: clamp(14px, 2vw, 30px); font-size: 14.5px; font-weight: 500; color: var(--on-dark-3); }
.nav-links a:hover { color: var(--on-dark); }
.nav-links a[aria-current="page"] { color: var(--white); border-bottom: 2px solid var(--teal); padding-bottom: 3px; }
.nav-side { display: flex; align-items: center; gap: 14px; }
.nav-lang { font-size: 13.5px; font-weight: 500; color: var(--on-dark-3); }
.nav-cta { border: 1px solid rgba(45,212,191,.45); color: var(--teal-2); font-size: 14px; font-weight: 600; padding: 10px 20px; border-radius: 10px; }
.nav-cta:hover { background: rgba(45,212,191,.1); }
.nav-burger { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; color: var(--on-dark-2); }
.nav-pill { display: none; background: var(--teal); color: var(--navy); font-weight: 700; font-size: 13px; padding: 9px 16px; border-radius: 99px; }
.nav-drawer { display: none; }
.nav-drawer a[aria-current="page"] { color: var(--teal-2); }

/* --- stopka --- */
.footer { background: var(--footer); color: var(--on-dark-2); padding-block: 56px 40px; }
.footer-grid { display: grid; grid-template-columns: minmax(230px, 1.2fr) repeat(3, minmax(150px, 1fr)); gap: clamp(24px, 3vw, 56px); }
.footer h2 { font-family: var(--mono); font-size: var(--fs-label); letter-spacing: .12em; color: #7D9DBF; font-weight: 400; text-transform: uppercase; }
.footer ul { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; font-size: 14px; color: #AFC6DC; }
.footer a:hover { color: var(--white); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 44px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.07); font-size: 13px; color: #7D9DBF; }

/* --- karuzela logotypow --- */
.marquee { overflow: hidden; position: relative; }
.marquee-track { display: flex; gap: 16px; width: max-content; animation: marquee 36s linear infinite; }
/* bez :focus-within: przycisk pauzy sam steruje stanem, inaczej "Wznow" nie dzialalby, poki ma fokus */
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-pause {
  position: absolute; right: 8px; bottom: 8px; z-index: 2;
  width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 99px; background: var(--white); color: var(--text-3);
  box-shadow: 0 1px 2px rgba(15,23,42,.06);
}
.marquee-pause:hover { color: var(--teal-text); border-color: rgba(0,196,180,.5); }
.logo-tile { display: flex; align-items: center; justify-content: center; height: 62px; min-width: 150px; padding: 12px 22px; border-radius: 12px; background: var(--white); border: 1px solid var(--line); }
.logo-tile-navy { background: var(--navy); border-color: rgba(148,190,233,.2); }
.logo-tile img { max-height: 26px; width: auto; max-width: none; flex: none; }
.logo-tile span { font-family: var(--display); font-weight: 700; font-size: 17px; color: var(--text-2); letter-spacing: -.02em; }
.logo-tile-navy span { color: var(--on-dark); }
/* pasek "Pracujemy dla": jednakowe biale kafle, znaki w jednym kolorze (--text-2) z assets/klienci/pasek */
.marquee .logo-tile { flex: none; width: 176px; min-width: 0; height: 64px; padding: 10px 18px; }
.marquee .logo-tile img { max-height: none; }
.logo-lockup { display: inline-flex; align-items: center; gap: 8px; }
.marquee .logo-tile .logo-lockup span { font-size: 15px; }

/* --- tla --- */
.bg-grid { background-image: repeating-linear-gradient(90deg, rgba(148,190,233,.028) 0 1px, transparent 1px 90px), repeating-linear-gradient(0deg, rgba(148,190,233,.02) 0 1px, transparent 1px 90px); }
.bg-glow { background-image: radial-gradient(820px 480px at 78% -8%, rgba(0,196,180,.13), transparent 68%); }
.bg-grid.bg-glow { background-image: radial-gradient(820px 480px at 78% -8%, rgba(0,196,180,.13), transparent 68%), repeating-linear-gradient(90deg, rgba(148,190,233,.028) 0 1px, transparent 1px 90px), repeating-linear-gradient(0deg, rgba(148,190,233,.02) 0 1px, transparent 1px 90px); }

/* --- ruch --- */
@keyframes pulse   { 0%, 100% { opacity: 1 } 50% { opacity: .35 } }
@keyframes blink   { 0%, 49% { opacity: 1 } 50%, 100% { opacity: 0 } }
@keyframes logIn   { from { opacity: 0; transform: translateY(6px) } to { opacity: 1; transform: none } }
@keyframes marquee { from { transform: translateX(0) } to { transform: translateX(-50%) } }
@keyframes shimmer { 0% { background-position: 200% 0 } 100% { background-position: -200% 0 } }
@keyframes btnGlow { 0%, 100% { box-shadow: 0 8px 32px -8px rgba(0,196,180,.45) } 50% { box-shadow: 0 10px 40px -6px rgba(0,196,180,.6) } }
.mark { animation: shimmer 7s linear infinite; }
.glow { animation: btnGlow 3.2s ease-in-out infinite; }

.sr { opacity: 0; transform: translateY(22px); }
.js .sr { transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.js .sr.in { opacity: 1; transform: none; }
html:not(.js) .sr { opacity: 1; transform: none; }
.sr-grid > * { transition-delay: calc(var(--i, 0) * 70ms); }

/* animacje stoja, kiedy sekcja jest poza ekranem (bateria na telefonie) */
.paused, .paused * { animation-play-state: paused !important; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; transition-delay: 0s !important; }
  .marquee-track, .mark, .glow, .eyebrow::before, .status-dot, .caret { animation: none !important; }
  .sr, .log-line { opacity: 1 !important; transform: none !important; }
  /* SMIL w SVG (<animate>, <animateMotion>) nie slucha tej reguly; zatrzymuje je site.js przez pauseAnimations() */
}

/* --- responsywnosc --- */
@media (max-width: 1100px) {
  .nav-links, .nav-cta, .nav-lang { display: none; }
  .nav-burger, .nav-pill { display: inline-flex; }
  .nav-inner { height: 62px; }
  /* visibility: hidden wyrzuca zamkniete menu z kolejnosci Tab i z drzewa dostepnosci; sama opacity tego nie robi */
  .nav-drawer { display: block; position: fixed; inset: 62px 0 0; background: var(--ink); padding: 8px var(--pad) 32px; overflow-y: auto; transform: translateY(-8px); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s; z-index: 49; }
  .nav-drawer[data-open="true"] { opacity: 1; transform: none; visibility: visible; pointer-events: auto; transition-delay: 0s; }
  .nav-drawer a { display: flex; align-items: center; min-height: 56px; font-size: 18px; color: var(--white); border-bottom: 1px solid rgba(148,190,233,.1); }
  .nav-drawer .drawer-foot { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; }
  .nav-drawer .drawer-foot a { min-height: 44px; font-size: 14px; color: var(--on-dark-3); border-bottom: 0; }
  body[data-menu="open"] { overflow: hidden; }
}
@media (max-width: 900px) {
  .grid-hero { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
}
@media (max-width: 640px) {
  .btn { width: 100%; padding: 17px 20px; font-size: 16px; }
  .metric-bordered { border-left: 0; padding-left: 0; }
}

/* --- demo na stronie glownej (zmyslony przyklad: faktura z maila do arkusza) --- */
.demo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr) minmax(0, 1.35fr); gap: clamp(14px, 2vw, 22px); }
.demo-col { background: var(--gray); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(16px, 2vw, 24px); display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.demo-list { display: flex; flex-direction: column; gap: 10px; }
.demo-item { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; font-size: 13.5px; }
.demo-from { color: var(--text-3); font-family: var(--mono); font-size: 12px; overflow-wrap: anywhere; }
.demo-file { font-weight: 600; color: var(--text); overflow-wrap: anywhere; }
.demo-steps ol { display: flex; flex-direction: column; gap: 12px; counter-reset: krok; }
.demo-steps li { counter-increment: krok; display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--text-2); }
.demo-steps li::before { content: counter(krok); flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--mint); color: var(--teal-text); font: 600 12px/22px var(--mono); text-align: center; }
.demo-scroll { overflow-x: auto; }
.demo-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.demo-table th { text-align: left; font: 400 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); padding: 0 10px 8px 0; white-space: nowrap; }
.demo-table td { padding: 10px 10px 10px 0; border-top: 1px solid var(--line); vertical-align: top; }
.demo-ok { color: var(--teal-text); font-weight: 600; }
.demo-warn { color: #8A4B00; font-weight: 600; }
.js .demo [style*="--d"] { opacity: 0; }
.js .demo.run [style*="--d"] { animation: logIn .5s ease-out forwards; animation-delay: calc(var(--d) * .6s + .2s); }
@media (max-width: 900px) { .demo { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .js .demo [style*="--d"] { opacity: 1 !important; animation: none !important; } }

/* --- kalendarz Calendly na stronie kontaktu --- */
.calendly { display: block; width: 100%; height: 720px; border: 0; background: var(--white); }
@media (max-width: 640px) { .calendly { height: 1060px; } }

/* --- poprawki po QA 29.09 --- */
svg[hidden], [hidden] { display: none !important; }
@media (max-width: 1100px) {
  .nav-drawer .drawer-foot a.btn-primary { color: var(--navy); font-size: 16px; font-weight: 700; min-height: 54px; justify-content: center; }
}
.console-bar .row, .console-bar > span { flex-wrap: nowrap; }
.chips .chip-mono { display: inline-block; }
.metrics > .metric { align-self: start; }
.grid-5 { display: grid; gap: clamp(14px, 1.6vw, 20px); grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1100px) { .grid-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) { .grid-5 { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .console-body { font-size: 11.5px; gap: 9px; padding: 16px 16px 18px; }
  .console-bar { font-size: 11.5px; padding: 12px 16px; }
  .log-line { gap: 10px; }
}
/* schemat na telefonie: przewija sie w bok, z podpowiedzia */
@media (max-width: 640px) {
  .flow-scroll { scroll-snap-type: x proximity; -webkit-mask-image: linear-gradient(90deg, #000 82%, transparent); mask-image: linear-gradient(90deg, #000 82%, transparent); }
  .flow-scroll + .flow-cap::before { content: "← przesuń schemat w bok →"; display: block; margin-bottom: 6px; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; color: var(--teal-2); }
  :lang(en) .flow-scroll + .flow-cap::before { content: "← swipe to see the whole flow →"; }
}

/* --- dekoracje tla z makiety: rury, kulki, poswiaty --- */
.bg-deco { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; overflow: visible; }
.sec > .wrap { position: relative; z-index: 1; }
.glow-bottom::before { content: ""; position: absolute; left: 50%; bottom: -45%; width: 120%; height: 90%; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(0,196,180,.22), transparent 70%); pointer-events: none; animation: ambient 7s ease-in-out infinite; z-index: 0; }
.hero-flow { position: absolute; left: 0; right: 0; bottom: -6px; height: 270px; opacity: .85; pointer-events: none; z-index: 0; }
.hero-flow svg { display: block; width: 100%; height: 100%; }
.hero-flow-m { display: none; }
@media (max-width: 900px) { .hero-flow { display: none; } .hero-flow-m { display: block; margin-top: 18px; } .hero-flow-m svg { display: block; width: 100%; height: auto; } }
@keyframes ambient { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
@keyframes barGrow { 0% { width: 6%; } 55% { width: 78%; } 85% { width: 78%; } 100% { width: 6%; } }
@keyframes growUp { from { transform: scaleY(.08); } to { transform: scaleY(1); } }
@keyframes breatheBar { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(.86); } }
@keyframes procOrb { 0% { left: 0%; opacity: 0; } 8% { opacity: 1; } 92% { opacity: 1; } 100% { left: 99%; opacity: 0; } }

/* --- naglowki na podstronach (makieta: case 50 px, produkty 52 px, blog 46 px) --- */
.page-case main h1 { font-size: clamp(32px, 3.9vw, 50px); }
.page-product main h1 { font-size: clamp(32px, 4vw, 52px); }
.page-blog main h1, .page-contact main h1 { font-size: clamp(30px, 3.6vw, 46px); }
.page-case main h2, .page-product main h2, .page-blog main h2, .page-contact main h2 { font-size: clamp(26px, 3vw, 40px); }

/* --- poprawki po weryfikacji 29.09 --- */
@media (max-width: 1100px) {
  .flow-scroll { scroll-snap-type: x proximity; -webkit-mask-image: linear-gradient(90deg, #000 84%, transparent); mask-image: linear-gradient(90deg, #000 84%, transparent); }
  .flow-scroll + .flow-cap::before { content: "← przesuń schemat w bok →"; display: block; margin-bottom: 6px; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; color: var(--teal-2); }
  :lang(en) .flow-scroll + .flow-cap::before { content: "← swipe to see the whole flow →"; }
}
@media (min-width: 1101px) { .flow svg { min-width: 0; } }
/* cele dotyku min. 44 px na telefonie */
.brand { min-height: 44px; }
.nav-pill { min-height: 44px; align-items: center; }
.footer ul { gap: 4px; }
.footer ul a { display: inline-block; padding: 10px 0; }
/* przycisk pauzy karuzeli pod kaflami, nie na nich */
.marquee { padding-bottom: 42px; }
.marquee-pause { top: auto; bottom: 0; transform: none; }
