/* ════════════════════════════════════════════════════════════════
   pula-licencji.css — dodatkowe ulepszenia wizualne
   Niezależny plik dołączany TYLKO na podstronie /pula-licencji.html
   Zero modyfikacji głównego styles.css
   ════════════════════════════════════════════════════════════════ */

/* ──────────────────────────────────────────────────────────────
   1) RYTM SEKCJI - alternatywne tła slate-50
   ────────────────────────────────────────────────────────────── */

/* Co obejmuje pula licencji - slate */
.pl-section--alt { background: var(--slate-50) !important; }
.pl-section--alt + .section-divider,
.pl-section--alt.section-divider::after {
  background: linear-gradient(90deg, transparent, var(--slate-300), transparent);
}

/* Override: "Kiedy wybrać / Dla kogo" wraca do białego, żeby nie zlewało się
   z poprzedzającą sekcją "Co zyskuje firma" (też slate-50) */
.pl-audience--white { background: var(--white) !important; }

/* ──────────────────────────────────────────────────────────────
   2) PRZYKŁAD ZAKUPU - akcentowana ramka z gradientem
   ────────────────────────────────────────────────────────────── */

.pl-example {
  background: linear-gradient(135deg,
    hsla(221, 83%, 53%, 0.04) 0%,
    hsla(221, 83%, 53%, 0.01) 50%,
    hsla(280, 70%, 60%, 0.03) 100%
  ) !important;
  position: relative;
  overflow: hidden;
}
.pl-example::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(37,99,235,0.06) 0%, transparent 60%);
  pointer-events: none;
  border-radius: 50%;
}
.pl-example .program-intro-inner {
  position: relative;
  z-index: 1;
  background: var(--white);
  border: 1px solid rgba(37, 99, 235, 0.14);
  border-radius: 12px;
  padding: 28px 24px;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 8px 24px -8px rgba(37, 99, 235, 0.10);
  max-width: 760px;
}
.pl-example .program-intro-inner::before {
  content: '★';
  position: absolute;
  top: -14px;
  left: 24px;
  width: 28px;
  height: 28px;
  background: var(--accent);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}
.pl-example .section-label { color: var(--accent); }

@media (min-width: 768px) {
  .pl-example .program-intro-inner { padding: 36px 32px; }
}

/* ──────────────────────────────────────────────────────────────
   3) JAK DZIAŁA - connector między krokami (na desktop)
   ────────────────────────────────────────────────────────────── */

.pl-steps { position: relative; }

@media (min-width: 768px) {
  .pl-steps .gates-grid--4 {
    position: relative;
  }
  /* delikatna kropkowana linia za kafelkami - tylko desktop */
  .pl-steps .gates-grid--4::before {
    content: '';
    position: absolute;
    top: 38px;
    left: 8%;
    right: 8%;
    height: 2px;
    background-image: linear-gradient(
      90deg,
      var(--slate-300) 0,
      var(--slate-300) 4px,
      transparent 4px,
      transparent 12px
    );
    background-size: 12px 2px;
    background-repeat: repeat-x;
    z-index: 0;
    pointer-events: none;
    opacity: 0.6;
  }
  .pl-steps .gate-card { position: relative; z-index: 1; background: var(--white); }
}

/* numerki kroków bardziej wyróżnione */
.pl-steps .gate-num {
  font-size: 14px;
  font-weight: 800;
  background: var(--slate-100);
  color: var(--slate-500);
  padding: 4px 10px;
  border-radius: 999px;
  top: 14px;
  right: 14px;
}
.pl-steps .gate-num--accent {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
}

/* ──────────────────────────────────────────────────────────────
   4) CO ZYSKUJE FIRMA - subtelny dot pattern w tle
   ────────────────────────────────────────────────────────────── */

.pl-benefits {
  position: relative;
}
.pl-benefits::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, var(--slate-200) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.5;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at top, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at top, black 0%, transparent 70%);
}
.pl-benefits .container { position: relative; z-index: 1; }

/* lekkie wyróżnienie kart benefitów - subtelny lift na hover */
.pl-benefits .gate-card { transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease; }
.pl-benefits .gate-card:hover {
  border-color: rgba(37, 99, 235, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -8px rgba(15, 23, 42, 0.10);
}

/* ──────────────────────────────────────────────────────────────
   5) PANEL MANAGERA - subtelny accent w tle nagłówka
   ────────────────────────────────────────────────────────────── */

.pl-panel .gates-header--lg {
  position: relative;
}
.pl-panel .gates-header--lg::before {
  content: '';
  position: absolute;
  top: -8px;
  left: -8px;
  width: 48px;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), transparent);
  border-radius: 2px;
}

/* ──────────────────────────────────────────────────────────────
   6) PRZYPISANIE A/B - mocniejszy kontrast między dwoma wariantami
   ────────────────────────────────────────────────────────────── */

.pl-assignment .gate-card {
  position: relative;
  overflow: hidden;
}
.pl-assignment .gate-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--slate-300);
}
.pl-assignment .gate-card:first-child::after {
  background: linear-gradient(90deg, var(--accent), hsla(221, 83%, 53%, 0.4));
}
.pl-assignment .gate-card:last-child::after {
  background: linear-gradient(90deg, hsl(280, 70%, 60%), hsla(280, 70%, 60%, 0.4));
}

/* ──────────────────────────────────────────────────────────────
   7) ZAKUP I WSPARCIE - mocniejszy B2B akcent przed CTA
   ────────────────────────────────────────────────────────────── */

.pl-purchase {
  background: linear-gradient(180deg, var(--slate-50) 0%, var(--white) 100%) !important;
  position: relative;
}
.pl-purchase::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--slate-300), transparent);
}
.pl-purchase .gate-card {
  background: var(--white);
  border-color: var(--slate-200);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

/* ──────────────────────────────────────────────────────────────
   8) ZASTOSOWANIA - kafelki z lekkim akcentem segmentu
   ────────────────────────────────────────────────────────────── */

.pl-uses .gate-card { transition: border-color 0.25s ease, transform 0.25s ease; }
.pl-uses .gate-card:hover {
  border-color: rgba(37, 99, 235, 0.3);
  transform: translateY(-1px);
}
.pl-uses .gate-segment {
  display: inline-block;
  padding: 3px 8px;
  background: var(--slate-100);
  border-radius: 999px;
  color: var(--slate-600);
}
.pl-uses-helper { margin-top: 16px; }

/* ──────────────────────────────────────────────────────────────
   9) NAGŁÓWKI SEKCJI - subtelne label z dot prefix
   ────────────────────────────────────────────────────────────── */

.pl-section--alt .section-label,
.pl-purchase .section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.pl-section--alt .section-label::before,
.pl-purchase .section-label::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* ──────────────────────────────────────────────────────────────
   10) Mobile fine-tuning
   ────────────────────────────────────────────────────────────── */

@media (max-width: 600px) {
  .pl-example .program-intro-inner { padding: 24px 20px; }
  .pl-example .program-intro-inner::before { left: 20px; }
}
