/* ============================================================
   strona na wymiar — Proces (podstrona)
   Recreated from Proces.dc.html design prototype.
   Stack: vanilla HTML/CSS/JS. Light theme: #F4F7FB bg, #0E1A2B text, #2563EB accent.
   ============================================================ */

*{ box-sizing:border-box; }

html,body{
  margin:0;
  padding:0;
  background:#F4F7FB;
  color:#0E1A2B;
}

body{
  font-family:'Space Grotesk', system-ui, sans-serif;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}

::selection{ background:#2563EB; color:#fff; }

a{ color:inherit; }

.snw-root{
  position:relative;
  background:#F4F7FB;
}

/* ---------- Custom selection cursor ---------- */
@media (pointer:fine){
  html.snw-cur, html.snw-cur *{ cursor:none !important; }
}
.snw-cursor{
  position:fixed; left:0; top:0;
  pointer-events:none;
  z-index:99999;
  border:1.4px solid rgba(37,99,235,.9);
  border-radius:3px;
  will-change:transform, width, height;
}
.snw-cursor i{
  position:absolute;
  width:6px; height:6px;
  background:#2563EB;
  border:1px solid #fff;
  border-radius:1px;
}
.snw-cursor i:nth-child(1){ left:-3px; top:-3px; }
.snw-cursor i:nth-child(2){ right:-3px; top:-3px; }
.snw-cursor i:nth-child(3){ left:-3px; bottom:-3px; }
.snw-cursor i:nth-child(4){ right:-3px; bottom:-3px; }

@keyframes snw-blink{ 0%,100%{ opacity:1 } 50%{ opacity:.25 } }

/* ---------- Reactive dot grid (canvas) ---------- */
.snw-grid{
  position:absolute; inset:0;
  width:100%; height:100%;
  pointer-events:none;
  z-index:0;
}

/* ---------- Scroll reveal ---------- */
.rv{
  opacity:0;
  transform:translateY(var(--ty,28px));
  transition:opacity var(--dur,.8s) ease var(--d,0s),
             transform var(--dur,.8s) ease var(--d,0s);
}

/* ============================================================
   Header / nav
   ============================================================ */
.site-header{
  position:fixed; top:0; left:0; right:0;
  z-index:80;
  display:flex; justify-content:center;
  padding:18px 24px;
  pointer-events:none;
}
/* mobile: przycisk powrotu plynie ze strona (nie zaslania tresci) */
@media(max-width:880px){ .site-header{ position:absolute; } }
.nav{
  pointer-events:auto;
  display:flex; align-items:center; gap:14px;
  background:rgba(255,255,255,.82);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
  border:1px solid rgba(14,26,43,.08);
  box-shadow:0 8px 26px -16px rgba(14,26,43,.4);
  border-radius:14px;
  padding:9px 12px 9px 16px;
}
.nav-home{
  display:inline-flex; align-items:center; gap:8px;
  text-decoration:none;
  font-size:13.5px; font-weight:500;
  color:#0E1A2B;
  padding:8px 13px;
  border-radius:9px;
}
.nav-home-arrow{ font-size:16px; }
.nav-tag{
  font-family:'Space Mono', monospace;
  font-size:12.5px;
  color:#5A6B85;
}
.nav-cta{
  text-decoration:none;
  font-size:13.5px; font-weight:500;
  color:#fff;
  background:#2563EB;
  padding:9px 16px;
  border-radius:9px;
  margin-left:6px;
}

/* ============================================================
   Hero (dark section)
   ============================================================ */
.hero{
  position:relative;
  background:#0B1521;
  color:#fff;
  padding:clamp(130px,20vh,200px) clamp(24px,5vw,72px) clamp(70px,10vh,110px);
  overflow:hidden;
  
}
.hero-inner{
  position:relative;
  max-width:1180px;
  margin:0 auto;
}
.hero-kicker{
  font-family:'Space Mono', monospace;
  font-size:12px; letter-spacing:1.5px;
  color:#5FA0FF;
  margin-bottom:20px;
}
.hero-title{
  margin:0;
  font-size:clamp(44px,7.5vw,104px);
  line-height:.94;
  letter-spacing:-.03em;
  font-weight:600;
  color:#fff;
  text-wrap:balance;
}
.hero-sub{
  margin:22px 0 0;
  max-width:480px;
  font-size:16.5px; line-height:1.6;
  color:#94A6C0;
}
.hero-stats{
  display:flex; flex-wrap:wrap; gap:14px;
  margin-top:38px;
}
.stat{
  border:1px solid rgba(255,255,255,.14);
  border-radius:12px;
  padding:16px 22px;
  min-width:0;
}
.stat-num{
  font-size:clamp(24px,3vw,34px);
  font-weight:600;
  color:#fff;
  line-height:1;
}
.stat-label{
  font-family:'Space Mono', monospace;
  font-size:11.5px;
  color:#94A6C0;
  margin-top:7px;
}

/* ============================================================
   Steps section (light)
   ============================================================ */
.steps-section{
  position:relative;
  background:#F4F7FB;
  padding:clamp(80px,12vh,130px) clamp(24px,5vw,72px);
}
.steps-inner{
  max-width:1080px;
  margin:0 auto;
  display:flex; flex-direction:column;
  gap:clamp(28px,4vw,48px);
}

/* ---------- Step row ---------- */
.step-row{
  display:grid;
  grid-template-columns:56px 1fr;
  gap:clamp(16px,2vw,28px);
}
.step-row > *{ min-width:0; }

/* Timeline column */
.step-timeline{
  display:flex; flex-direction:column; align-items:center;
}
.step-num{
  width:46px; height:46px; border-radius:50%;
  border:1.5px solid;
  display:flex; align-items:center; justify-content:center;
  font-family:'Space Mono', monospace; font-size:14px; font-weight:700;
  background:#fff;
  flex-shrink:0;
}
.step-num--blue{ border-color:#2563EB; color:#2563EB; }
.step-num--green{ border-color:#127A3F; color:#127A3F; }

/* Pigułka z numerem etapu — widoczna TYLKO na mobile (oś czasu jest tam zwinięta).
   Globalnie ukryta, więc desktop/tablet renderują oryginalną oś czasu bez zmian. */
.step-num-inline{ display:none; }

.step-line{
  flex:1; width:1.5px;
  background:rgba(37,99,235,.25);
  margin-top:8px;
}

/* Card */
.step-card{
  background:#fff;
  border:1.5px solid #0E1A2B;
  border-radius:18px;
  overflow:hidden;
  box-shadow:0 30px 60px -40px rgba(14,26,43,.4);
  display:grid;
  grid-template-columns:1.15fr .85fr;
  min-width:0;
}
.step-card > *{ min-width:0; }

/* Body (left pane) */
.step-body{
  padding:clamp(26px,3vw,40px);
  min-width:0;
}
.step-head{
  display:flex; align-items:baseline; gap:14px;
  flex-wrap:wrap;
  margin-bottom:14px;
}
.step-title{
  margin:0;
  font-size:clamp(26px,3.2vw,40px);
  line-height:1;
  letter-spacing:-.02em;
  font-weight:600;
  color:#0E1A2B;
}
.step-duration{
  font-family:'Space Mono', monospace;
  font-size:12px;
  flex-shrink:0;
}
.step-duration--blue{ color:#2563EB; }
.step-duration--green{ color:#127A3F; }

.step-desc{
  margin:0 0 22px;
  font-size:15.5px; line-height:1.65;
  color:#52617A;
}
.step-section-label{
  font-family:'Space Mono', monospace;
  font-size:11px; letter-spacing:1px;
  color:#5A6B85;
  margin-bottom:11px;
}
.step-section-label + .step-tags{ margin-top:0; }

/* Bullets */
.step-bullets{
  display:flex; flex-direction:column; gap:9px;
  margin-bottom:24px;
}
.step-bullet{
  display:flex; gap:11px; align-items:flex-start;
}
.step-arrow{
  font-family:'Space Mono', monospace;
  font-size:12px;
  flex-shrink:0;
}
.step-arrow--blue{ color:#2563EB; }
.step-arrow--green{ color:#127A3F; }
.step-bullet-text{
  font-size:13.5px; line-height:1.5;
  color:#52617A;
  min-width:0;
}

/* Tags */
.step-tags{
  display:flex; flex-wrap:wrap; gap:8px;
  margin-bottom:0;
}
.step-tag{
  font-family:'Space Mono', monospace;
  font-size:12px;
  color:#0E1A2B;
  border:1px solid rgba(14,26,43,.14);
  border-radius:8px;
  padding:7px 12px;
  max-width:100%;
}

/* Visual (right pane) */
.step-visual{
  background:#F4F7FB;
  border-left:1px solid rgba(14,26,43,.08);
  display:flex; align-items:center; justify-content:center;
  padding:26px;
  min-width:0;
}

/* Mock browser window */
.mock-window{
  width:100%; max-width:240px;
  border:1.5px solid #0E1A2B;
  border-radius:11px;
  overflow:hidden;
  background:#fff;
}
.mock-window--live{
  box-shadow:0 14px 30px -18px rgba(37,99,235,.5);
}
.mock-titlebar{
  display:flex; align-items:center; gap:5px;
  padding:10px 12px;
  border-bottom:1.5px solid #0E1A2B;
}
.mock-dot{
  display:inline-block;
  width:6px; height:6px; border-radius:50%;
  background:#0E1A2B;
}
.mock-filename{
  margin-left:6px;
  font-family:'Space Mono', monospace;
  font-size:8px; color:#5A6B85;
}
.mock-live{
  margin-left:6px;
  display:inline-flex; align-items:center; gap:5px;
}
.mock-live-dot{
  width:5px; height:5px; border-radius:50%;
  background:#1B9E54;
  animation:snw-blink 1.3s ease-in-out infinite;
}
.mock-content{
  padding:14px;
  display:flex; flex-direction:column; gap:10px;
}

/* Mock line (header bar) */
.mock-line--tall{ height:34px; border-radius:6px; }
.mock-line--dashed{
  border:1.5px dashed #B7C4D4;
  background:transparent;
}
.mock-line--filled{ background:#E2E8F1; }
.mock-line--gradient{ background:linear-gradient(110deg,#0E1A2B,#2563EB); }

/* Two-col layout inside mock */
.mock-two-col{
  display:flex; gap:10px;
}
.mock-block{
  width:46%; height:54px; border-radius:6px;
  flex-shrink:0;
}
.mock-block--dashed{ border:1.5px dashed #B7C4D4; }
.mock-block--filled{ background:#D8E0EA; }
.mock-block--blue{ background:#2563EB; }

.mock-text-lines{
  flex:1; display:flex; flex-direction:column; gap:7px;
  min-width:0;
}
.mock-tl{ border-radius:3px; }
.mock-tl--dashed{ height:7px; border-bottom:1.5px dashed #B7C4D4; }
.mock-tl--filled{ height:9px; background:#E2E8F1; }
.mock-tl--dark{ height:10px; background:#0E1A2B; }
.mock-tl--light{ height:7px; background:#D8E0EA; }
.mock-tl--75{ width:75%; }
.mock-tl--80{ width:80%; }
.mock-tl--55{ width:55%; }
.mock-tl--50{ width:50%; }
.mock-tl-cta{
  margin-top:3px;
  width:60%; height:16px;
  background:#2563EB;
  border-radius:5px;
}

/* ============================================================
   CTA section (dark)
   ============================================================ */
.cta-section{
  position:relative;
  background:#0B1521;
  color:#fff;
  padding:clamp(90px,16vh,170px) clamp(24px,5vw,72px);
  overflow:hidden;
  
}
.cta-inner{
  position:relative;
  max-width:900px;
  margin:0 auto;
  text-align:center;
}
.cta-badge{
  display:inline-flex; align-items:center; gap:10px;
  max-width:100%;
  font-family:'Space Mono', monospace;
  font-size:11.5px; letter-spacing:1.5px;
  color:#5FA0FF;
  margin-bottom:30px;
  border:1px solid rgba(95,160,255,.3);
  border-radius:100px;
  padding:8px 16px;
}
.cta-badge-dot{
  width:6px; height:6px; border-radius:50%;
  background:#5FA0FF;
  flex-shrink:0;
  animation:snw-blink 1.6s infinite;
}
.cta-title{
  margin:0 0 28px;
  font-size:clamp(36px,6vw,80px);
  line-height:.98;
  letter-spacing:-.03em;
  font-weight:600;
  color:#fff;
  text-wrap:balance;
}
.cta-title-accent{ color:#2563EB; }
.cta-actions{
  display:flex; justify-content:center;
  flex-wrap:wrap; gap:16px;
  max-width:560px; margin-left:auto; margin-right:auto;
}
.cta-primary{
  display:inline-flex; align-items:center; justify-content:center; gap:10px; flex:1 1 0; min-width:0; box-sizing:border-box;
  background:#2563EB; color:#fff;
  text-decoration:none;
  font-size:16px; font-weight:500;
  padding:18px 34px;
  border-radius:13px;
  box-shadow:0 18px 44px -14px rgba(37,99,235,.8);
}
.cta-secondary{
  display:inline-flex; align-items:center; justify-content:center; gap:10px; flex:1 1 0; min-width:0; box-sizing:border-box;
  background:transparent; color:#fff;
  text-decoration:none;
  font-size:16px; font-weight:500;
  padding:18px 30px;
  border-radius:13px;
  border:1px solid rgba(255,255,255,.18);
}

/* primary bywa owinięty przez calendly-newtab.js (.snw-cal-wrap = kolumna: przycisk + podpis) — traktuj owijkę jak przycisk, żeby oba były równej szerokości */
.cta-actions > .snw-cal-wrap{ flex:1 1 0; min-width:0; display:flex !important; flex-direction:column !important; align-items:stretch !important; }
.cta-actions > .snw-cal-wrap > a{ width:auto !important; flex:0 0 auto !important; justify-content:center; box-sizing:border-box; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer{
  position:relative;
  background:#0B1521;
  color:#93A7C4;
  padding:34px clamp(24px,5vw,72px);
  border-top:1px solid rgba(255,255,255,.08);
  display:flex; justify-content:space-between; align-items:center;
  flex-wrap:wrap; gap:14px;
  font-family:'Space Mono', monospace;
  font-size:12px; letter-spacing:.4px;
}
.footer-link{ color:#94A6C0; text-decoration:none; }
.footer-accent{ color:#2563EB; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width:780px){
  .step-card{
    grid-template-columns:1fr;
  }
  /* dekoracyjne mockupy okien dokładają dużo pustego scrolla na wąskich ekranach —
     chowamy je, ZOSTAWIAMY tylko ostatni (etap 04 = „launch”, gotowa strona na żywo) */
  .step-visual{ display:none; }
  .step-row:last-child .step-visual{
    display:flex;
    border-left:none;
    border-top:1px solid rgba(14,26,43,.08);
    padding:18px;
  }
}

@media (max-width:600px){
  .nav-cta{ display:none; }

  /* --- ETAPY: zwinięcie pionowej osi czasu, numer jako pigułka przy tytule --- */
  .step-row{ display:block; }            /* znosi grid z kolumną osi czasu */
  .step-timeline{ display:none; }         /* chowamy kółko + pionową linię (na telefonie bez wartości) */
  .step-head{ align-items:center; }       /* pigułka w jednej linii z tytułem */
  .step-num-inline{
    display:inline-flex; align-items:center; justify-content:center;
    font-family:'Space Mono', monospace; font-size:12px; font-weight:700;
    padding:5px 9px; border:1.5px solid; border-radius:8px;
    line-height:1; flex-shrink:0;
  }
  .step-num-inline--blue{ border-color:#2563EB; color:#2563EB; }
  .step-num-inline--green{ border-color:#127A3F; color:#127A3F; }

  /* --- karta: mniejszy padding oddaje szerokość treści (26px -> 18px) --- */
  .step-body{ padding:20px 18px; }

  /* --- typografia: większa i ciaśniejsza interlinia w odzyskanej szerokości --- */
  .step-desc{ font-size:16px; line-height:1.55; margin-bottom:18px; text-wrap:pretty; hyphens:auto; -webkit-hyphens:auto; }
  .step-bullets{ gap:11px; margin-bottom:18px; }
  .step-bullet-text{ font-size:14px; line-height:1.55; text-wrap:pretty; hyphens:auto; -webkit-hyphens:auto; }
  .step-tags{ gap:6px; }
  .step-tag{ font-size:11px; padding:6px 10px; line-height:1.2; }
  .step-section-label{ font-size:12px; color:#5A6B85; }   /* parytet z .step-duration + lepszy kontrast */

  /* --- HERO: statystyki 2 w rzędzie + trzecia na całą szerokość (koniec sieroty 2+1) --- */
  .hero-stats{ display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-top:30px; }
  .stat{ min-width:0; padding:14px 16px; }
  .stat:last-child{ grid-column:1 / -1; }

  /* --- rytm pionowy: skrócenie desktopowych paddingów na telefonie --- */
  .hero{ padding-top:104px; padding-bottom:52px; }
  .steps-section{ padding-top:56px; padding-bottom:56px; }
  .steps-inner{ gap:24px; }
  .cta-section{ padding-top:60px; padding-bottom:60px; }
  /* sekcje Współpraca + FAQ mają padding INLINE (data-grid="light" bez klasy .steps-section) */
  section[data-grid="light"]:not(.steps-section){ padding-top:52px !important; padding-bottom:52px !important; }

  /* --- CTA: przyciski na pełną szerokość w kciuk-zonie --- */
  .cta-actions{ flex-direction:column; gap:14px; }
  .cta-primary,
  .cta-secondary{ width:100%; flex:0 0 auto; box-sizing:border-box; justify-content:center; }

  /* --- STOPKA: układ pionowy, touch-targety 44px, lepszy kontrast linków --- */
  .site-footer{
    flex-direction:column; align-items:flex-start; text-align:left;
    gap:14px; font-size:13px; line-height:1.5;
  }
  .site-footer a{ display:inline-flex; align-items:center; min-height:44px; padding:4px 0; }
  .footer-legal a{ color:#94A6C0; }   /* z odziedziczonego #5C6E88 (3.4:1) -> ~6.8:1, zdaje WCAG AA */
  .footer-copy{ opacity:.85; }
}

@media (prefers-reduced-motion: reduce){
  *{ transition-duration:.001ms !important; }
  .snw-grid{ display:none; }
  .rv{ opacity:1; transform:none; }
  .cta-badge-dot{ animation:none; }
}

/* === Równe przyciski CTA — deterministyczna równa szerokość (owijka Calendly nie psuje układu) === */
.cta-actions > .cta-primary,
.cta-actions > .cta-secondary,
.cta-actions > .snw-cal-wrap{ flex:0 0 auto !important; width:calc(50% - 8px) !important; box-sizing:border-box; }
.cta-actions > .snw-cal-wrap{ display:flex !important; flex-direction:column !important; align-items:stretch !important; }
.cta-actions > .snw-cal-wrap > a{ width:100% !important; flex:0 0 auto !important; justify-content:center; box-sizing:border-box; }
@media (max-width:600px){
  .cta-actions > .cta-primary,
  .cta-actions > .cta-secondary,
  .cta-actions > .snw-cal-wrap{ width:100% !important; }
}
