/* ════════════════════════════════════════════════════════════════
   kody-dostepu.css — kompaktowy, spójny rytm sekcji
   Niezależny plik dołączany TYLKO na podstronie /kody-dostepu.html
   Zero modyfikacji głównego styles.css
   ════════════════════════════════════════════════════════════════ */

/* ──────────────────────────────────────────────────────────────
   1) PADDING SEKCJI - kompaktowo, bez marnowania pionowej przestrzeni
   ────────────────────────────────────────────────────────────── */

@media (min-width: 768px) {
  .kd-steps,
  .kd-cases,
  .kd-features-section,
  .kd-compare,
  .kd-purchase {
    padding: 48px 0;
  }
}
@media (min-width: 1024px) {
  .kd-steps,
  .kd-cases,
  .kd-features-section,
  .kd-compare,
  .kd-purchase {
    padding: 56px 0;
  }
}

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

.kd-section--alt { background: var(--slate-50) !important; }

/* ──────────────────────────────────────────────────────────────
   3) SPÓJNE NUMERKI W KARTACH (steps, cases, purchase)
   Pillule slate-100 z akcentem na pierwszym numerze
   ────────────────────────────────────────────────────────────── */

.kd-steps .gate-num,
.kd-cases .gate-num,
.kd-purchase .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;
}
.kd-steps .gate-num--accent,
.kd-cases .gate-num--accent,
.kd-purchase .gate-num--accent {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
}

/* ──────────────────────────────────────────────────────────────
   4) SPÓJNE SEGMENTY (kategorie nad h3) - bez uppercase, bez stretching
   Naturalny tekst zamiast napompowanej etykiety
   ────────────────────────────────────────────────────────────── */

.kd-cases .gate-segment,
.kd-purchase .gate-segment {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--slate-500);
  text-transform: none;
  letter-spacing: 0;
  margin-bottom: 6px;
  line-height: 1.3;
}

/* ──────────────────────────────────────────────────────────────
   5) JAK DZIAŁA - 3 kroki + connector między nimi (desktop)
   ────────────────────────────────────────────────────────────── */

.kd-steps { position: relative; }

@media (min-width: 768px) {
  .kd-steps .kd-3col {
    position: relative;
  }
  .kd-steps .kd-3col::before {
    content: '';
    position: absolute;
    top: 38px;
    left: 12%;
    right: 12%;
    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;
  }
  .kd-steps .gate-card {
    position: relative;
    z-index: 1;
    background: var(--white);
  }
}

/* ──────────────────────────────────────────────────────────────
   6) USE CASES - kompaktowe karty
   ────────────────────────────────────────────────────────────── */

.kd-cases .gate-card {
  background: var(--white);
  padding: 20px 18px;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.kd-cases .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);
}
.kd-cases .gate-card h3 {
  font-size: 16px;
  margin-bottom: 6px;
}
.kd-cases .gate-card .gate-lede {
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 0;
}

/* ──────────────────────────────────────────────────────────────
   7) CO DOSTAJE PRACOWNIK - chip grid z ikonami
   ────────────────────────────────────────────────────────────── */

.kd-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
@media (min-width: 600px) {
  .kd-features { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .kd-features { grid-template-columns: repeat(3, 1fr); gap: 12px; }
}

.kd-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.kd-feature:hover {
  border-color: rgba(37, 99, 235, 0.3);
  transform: translateY(-1px);
}
.kd-feature strong {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--navy-900);
  letter-spacing: -0.01em;
  line-height: 1.35;
}
.kd-feature-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: linear-gradient(135deg, hsla(221, 83%, 53%, 0.10), hsla(221, 83%, 53%, 0.04));
  color: var(--accent);
}
.kd-feature-icon svg {
  width: 18px;
  height: 18px;
  stroke-width: 2;
}

/* ──────────────────────────────────────────────────────────────
   8) PORÓWNANIE - 3 kolumny z topbarem akcentowym
   ────────────────────────────────────────────────────────────── */

.kd-compare .gate-card {
  position: relative;
  overflow: hidden;
}
.kd-compare .gate-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--slate-300);
}
.kd-compare .gate-card:nth-child(1)::after {
  background: linear-gradient(90deg, var(--accent), hsla(221, 83%, 53%, 0.4));
}
.kd-compare .gate-card:nth-child(2)::after {
  background: linear-gradient(90deg, hsl(160, 60%, 45%), hsla(160, 60%, 45%, 0.4));
}
.kd-compare .gate-card:nth-child(3)::after {
  background: linear-gradient(90deg, hsl(280, 70%, 60%), hsla(280, 70%, 60%, 0.4));
}
.kd-compare a.gate-card {
  text-decoration: none;
  color: inherit;
}
.kd-compare a.gate-card:hover {
  border-color: rgba(37, 99, 235, 0.3);
  transform: translateY(-2px);
}

/* ──────────────────────────────────────────────────────────────
   9) ZAKUP - akcent przed CTA
   ────────────────────────────────────────────────────────────── */

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

/* ──────────────────────────────────────────────────────────────
   10) Grid 3-kolumnowy (custom, używany w "jak działa" + porównanie)
   ────────────────────────────────────────────────────────────── */

.kd-3col { grid-template-columns: 1fr; }
@media (min-width: 768px) {
  .kd-3col { grid-template-columns: repeat(3, 1fr); }
}

/* ──────────────────────────────────────────────────────────────
   11) DOT PREFIX dla section-label - spójny mikro-akcent w kazdej kd-* sekcji
   ────────────────────────────────────────────────────────────── */

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

/* ──────────────────────────────────────────────────────────────
   12) MOBILE - drobne domknięcia odstępów
   ────────────────────────────────────────────────────────────── */

@media (max-width: 767px) {
  .kd-3col,
  .kd-cases .gates-grid,
  .kd-purchase .gates-grid {
    gap: 12px;
  }
  .kd-cases .gate-card { padding: 18px 16px; }
  .program-meta { gap: 8px; }
}
