/* ════════════════════════════════════════════════════════════════
   biblioteka-wdrozen-ai.css — wizualne elementy unikalne dla Biblioteki
   Niezależny plik dołączany TYLKO na podstronie /biblioteka-wdrozen-ai.html
   Zero modyfikacji głównego styles.css
   ════════════════════════════════════════════════════════════════ */


/* ──────────────────────────────────────────────────────────────
   0) HERO - dwukolumnowy układ z dedykowanym visual scenariusza
   Layout: lewa = content, prawa = podgląd scenariusza AI (od 1024px)
   Kolory AI: gradient granat→fiolet jak w .ai-banner z głównego CSS
   ────────────────────────────────────────────────────────────── */

/* H1 - kontroluję łamanie linii przez dwa spans-bloki */
.hero h1 .hero-h1-main {
  display: block;
}
.hero h1 .hero-h1-sub {
  display: block;
  margin-top: 6px;
  font-size: 0.78em;
  font-weight: 700;
  background: linear-gradient(90deg, hsl(221, 83%, 75%) 0%, hsl(265, 70%, 75%) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.015em;
  line-height: 1.25;
}
@media (min-width: 1024px) {
  .hero h1 .hero-h1-sub { margin-top: 8px; font-size: 0.72em; }
}

/* Hero visual - domyślnie ukryty na mobile (<1024px) */
.bw-hero-visual {
  display: none;
}

@media (min-width: 1024px) {
  /* Aktywuję visual i layout dwukolumnowy */
  .bw-hero-visual {
    display: block;
    position: relative;
    flex: 0 0 380px;
    margin-left: auto;
    align-self: center;
  }

  /* Glow ambient za kartą - identyczny manewr jak .hero-mockup::before */
  .bw-hero-visual::before {
    content: '';
    position: absolute;
    inset: -50px -40px -60px -50px;
    background: radial-gradient(ellipse at 35% 50%,
      hsla(265, 70%, 50%, 0.22) 0%,
      hsla(265, 60%, 45%, 0.08) 35%,
      transparent 65%);
    filter: blur(28px);
    pointer-events: none;
    z-index: 0;
  }

  /* Streak akcentowy pod kartą - gradient blue→purple→green */
  .bw-hero-visual::after {
    content: '';
    position: absolute;
    left: -10px;
    right: 50px;
    bottom: -22px;
    height: 44px;
    background: linear-gradient(90deg,
      transparent,
      hsla(221, 83%, 60%, 0.45),
      hsla(265, 70%, 60%, 0.35),
      hsla(142, 65%, 55%, 0.22),
      transparent);
    filter: blur(18px);
    pointer-events: none;
    z-index: 0;
  }
}

/* ── Karta scenariusza ── */
.bw-hero-card {
  position: relative;
  z-index: 1;
  padding: 24px 22px 22px;
  background: linear-gradient(135deg,
    hsl(245, 50%, 12%) 0%,
    hsl(225, 60%, 18%) 60%,
    hsl(265, 55%, 22%) 100%);
  border: 1px solid hsl(245, 40%, 28%);
  border-radius: var(--r-md);
  box-shadow: 0 20px 60px hsla(245, 60%, 5%, 0.5),
              0 4px 12px hsla(245, 60%, 5%, 0.3);
  overflow: hidden;
}

/* Akcent left-stripe (jak w .ai-banner::before) */
.bw-hero-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg,
    hsl(221, 83%, 60%) 0%,
    hsl(280, 70%, 60%) 100%);
}

/* Subtelny radial glow w prawym górnym rogu karty */
.bw-hero-card::after {
  content: '';
  position: absolute;
  top: -30%;
  right: -15%;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle,
    hsla(280, 70%, 55%, 0.16) 0%,
    transparent 60%);
  pointer-events: none;
  border-radius: 50%;
}

.bw-hero-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}
.bw-hero-card-tag {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  background: linear-gradient(135deg,
    hsl(280, 75%, 55%) 0%,
    hsl(221, 83%, 55%) 100%);
  border-radius: 999px;
  box-shadow: 0 2px 10px hsla(280, 70%, 50%, 0.45);
}
.bw-hero-card-area {
  font-size: 11px;
  font-weight: 600;
  color: hsl(221, 30%, 75%);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.bw-hero-card-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.018em;
  line-height: 1.3;
  margin: 0 0 14px;
  position: relative;
  z-index: 1;
}

.bw-hero-card-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
}
.bw-hero-tool {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px 4px 8px;
  font-size: 11.5px;
  font-weight: 600;
  color: hsl(221, 25%, 88%);
  background: hsla(245, 40%, 30%, 0.5);
  border: 1px solid hsla(245, 40%, 40%, 0.6);
  border-radius: 999px;
  line-height: 1.4;
}
.bw-hero-tool-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.bw-hero-tool-dot--make { background: hsl(265, 70%, 60%); }
.bw-hero-tool-dot--gpt { background: hsl(160, 50%, 55%); }
.bw-hero-tool-dot--sheets { background: hsl(142, 65%, 55%); }

/* Kroki procesu */
.bw-hero-card-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative;
  z-index: 1;
}
.bw-hero-card-steps li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  font-size: 13px;
  color: hsl(221, 25%, 82%);
  border-top: 1px solid hsla(245, 40%, 30%, 0.5);
}
.bw-hero-card-steps li:first-child {
  border-top: none;
  padding-top: 6px;
}
.bw-hero-card-steps li.is-result {
  color: var(--white);
  margin-top: 2px;
  padding-top: 10px;
  border-top: 1px solid hsla(265, 70%, 50%, 0.4);
}
.bw-hero-card-steps li.is-result strong {
  color: var(--white);
  font-weight: 700;
}
.bw-hero-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  font-size: 10.5px;
  font-weight: 700;
  color: hsl(221, 83%, 75%);
  background: hsla(221, 83%, 50%, 0.18);
  border: 1px solid hsla(221, 83%, 50%, 0.35);
  border-radius: 6px;
  letter-spacing: 0.02em;
}
.bw-hero-card-steps li.is-result .bw-hero-step-num {
  color: hsl(280, 70%, 80%);
  background: hsla(280, 70%, 55%, 0.22);
  border-color: hsla(280, 70%, 55%, 0.45);
  font-size: 14px;
}
.bw-hero-step-text {
  flex: 1;
  line-height: 1.45;
}

/* Pływający badge "Biblioteka stale rośnie" - prawy górny róg */
.bw-hero-badge {
  position: absolute;
  top: -14px;
  right: -8px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--white);
  background: linear-gradient(135deg,
    hsl(142, 60%, 35%) 0%,
    hsl(160, 60%, 35%) 100%);
  border: 1px solid hsl(142, 50%, 45%);
  border-radius: 999px;
  box-shadow: 0 6px 20px hsla(142, 60%, 25%, 0.45),
              0 0 0 4px hsla(245, 50%, 12%, 0.4);
  white-space: nowrap;
}
.bw-hero-badge svg {
  width: 13px;
  height: 13px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Pływający counter "140+ scenariuszy" - lewy dolny róg */
.bw-hero-counter {
  position: absolute;
  left: -22px;
  bottom: -18px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: 0 12px 32px hsla(245, 60%, 5%, 0.35),
              0 0 0 4px hsla(245, 50%, 12%, 0.4);
}
.bw-hero-counter-num {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg,
    hsl(221, 83%, 53%) 0%,
    hsl(265, 70%, 55%) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}
.bw-hero-counter-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--slate-700);
  line-height: 1.35;
  letter-spacing: -0.005em;
}


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

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


/* ──────────────────────────────────────────────────────────────
   1b) GRID 3-KOLUMNOWY - dla obszarów i ścieżek dostępu
   (gates-grid w głównym styles.css ma tylko --2 i --4, więc 3 kol
   definiujemy lokalnie - konwencja jak rd-3col / kd-3col)
   ────────────────────────────────────────────────────────────── */

.bw-3col { grid-template-columns: 1fr; }
@media (min-width: 700px) {
  .bw-3col { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .bw-3col { grid-template-columns: repeat(3, 1fr); }
}


/* ──────────────────────────────────────────────────────────────
   2) ANATOMIA SCENARIUSZA - kluczowy wyróżnik produktu
   Sekcja 4-kafelkowa pokazująca z czego składa się scenariusz.
   Wzorzec: gradient w tle (jak rd-positioning), 4 kroki w siatce.
   ────────────────────────────────────────────────────────────── */

.bw-anatomy {
  background: linear-gradient(135deg,
    hsla(221, 83%, 53%, 0.04) 0%,
    hsla(221, 50%, 60%, 0.02) 50%,
    hsla(221, 83%, 53%, 0.04) 100%
  );
  position: relative;
  overflow: hidden;
  padding: 56px 0;
  border-bottom: 1px solid var(--border);
}
.bw-anatomy::before {
  content: '';
  position: absolute;
  top: -20%;
  left: -8%;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.07) 0%, transparent 60%);
  pointer-events: none;
  border-radius: 50%;
}
.bw-anatomy::after {
  content: '';
  position: absolute;
  bottom: -25%;
  right: -8%;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.05) 0%, transparent 60%);
  pointer-events: none;
  border-radius: 50%;
}
.bw-anatomy .container { position: relative; z-index: 1; }

.bw-anatomy-header { max-width: 720px; margin: 0 0 32px; }
.bw-anatomy-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--navy-900);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 10px 0 12px;
}
.bw-anatomy-desc {
  font-size: 15px;
  color: var(--slate-700);
  line-height: 1.6;
  margin: 0;
}

/* Lista 4 kroków - desktop: 4 kolumny ze strzałkami między, mobile: pion */
.bw-anatomy-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  counter-reset: bw-step;
}
@media (min-width: 640px) {
  .bw-anatomy-steps { grid-template-columns: repeat(2, 1fr); gap: 14px; }
}
@media (min-width: 1024px) {
  .bw-anatomy-steps {
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    position: relative;
  }
  /* Subtelny dotted connector między kafelkami na desktop */
  .bw-anatomy-steps::before {
    content: '';
    position: absolute;
    top: 36px;
    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.55;
  }
}

.bw-step {
  position: relative;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 22px 20px 20px;
  z-index: 1;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}
.bw-step:hover {
  border-color: rgba(37, 99, 235, 0.25);
  box-shadow: 0 8px 24px -8px rgba(15, 23, 42, 0.10);
  transform: translateY(-2px);
}
.bw-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: var(--slate-100);
  color: var(--slate-700);
  font-size: 12px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  border-radius: 8px;
  margin-bottom: 12px;
}
.bw-step:first-child .bw-step-num {
  background: linear-gradient(135deg, var(--accent), hsl(221, 70%, 60%));
  color: var(--white);
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
}
.bw-step-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--navy-900);
  letter-spacing: -0.015em;
  line-height: 1.3;
  margin: 0 0 6px;
}
.bw-step-desc {
  font-size: 13px;
  color: var(--slate-500);
  line-height: 1.6;
  margin: 0;
}
.bw-step-desc strong { color: var(--navy-900); font-weight: 700; }


/* ──────────────────────────────────────────────────────────────
   3) NAGŁÓWKI SEKCJI - dot prefix przy section-label w sekcji alt
   (spójnie z rd-/pl-)
   ────────────────────────────────────────────────────────────── */

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


/* ──────────────────────────────────────────────────────────────
   4) PRZYKŁADOWE SCENARIUSZE - siatka kart 'case'
   Karty mniej formalne niż gate-card: tag obszaru, tytuł, opis,
   chips z narzędziami. 3 kolumny na desktop, 2 na tablet, 1 na mobile.
   ────────────────────────────────────────────────────────────── */

.bw-cases-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 20px;
}
@media (min-width: 700px) {
  .bw-cases-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
}
@media (min-width: 1024px) {
  .bw-cases-grid { grid-template-columns: repeat(3, 1fr); }
}

.bw-case {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 20px 20px 18px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}
.bw-case:hover {
  border-color: rgba(37, 99, 235, 0.25);
  box-shadow: 0 8px 24px -8px rgba(15, 23, 42, 0.10);
  transform: translateY(-2px);
}
.bw-case-tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 9px;
  background: rgba(37, 99, 235, 0.08);
  border-radius: 999px;
  margin-bottom: 12px;
  line-height: 1.4;
}
.bw-case-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--navy-900);
  letter-spacing: -0.015em;
  line-height: 1.35;
  margin: 0 0 8px;
}
.bw-case-desc {
  font-size: 13px;
  color: var(--slate-500);
  line-height: 1.6;
  margin: 0 0 14px;
  flex-grow: 1;
}
.bw-case-desc strong { color: var(--navy-900); font-weight: 700; }

/* Chips z narzędziami pod opisem */
.bw-case-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.bw-case-tools span {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: var(--slate-700);
  padding: 3px 8px;
  background: var(--slate-100);
  border-radius: 5px;
  letter-spacing: -0.005em;
}

/* Footer-note pod siatką case'ów */
.bw-cases-note {
  margin-top: 4px;
  padding: 14px 16px;
  background: linear-gradient(135deg, hsla(221, 83%, 53%, 0.05), hsla(221, 50%, 60%, 0.03));
  border: 1px solid rgba(37, 99, 235, 0.14);
  border-radius: var(--r-md);
  font-size: 13px;
  color: var(--slate-700);
  line-height: 1.55;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.bw-cases-note svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-top: 1px;
}
.bw-cases-note a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition: color var(--t);
}
.bw-cases-note a:hover { color: var(--accent-hover); }


/* ──────────────────────────────────────────────────────────────
   5) ZAKUP I WSPARCIE - mocniejszy B2B akcent przed CTA
   (analogicznie do rd-purchase)
   ────────────────────────────────────────────────────────────── */

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


/* ──────────────────────────────────────────────────────────────
   6) PADDING SEKCJI - kompaktowy, spójny z resztą stron-modeli
   ────────────────────────────────────────────────────────────── */

@media (min-width: 768px) {
  .bw-anatomy,
  .bw-benefits,
  .bw-areas,
  .bw-cases,
  .bw-audience,
  .bw-access,
  .bw-purchase,
  .bw-problem,
  .bw-security {
    padding: 48px 0;
  }
}
@media (min-width: 1024px) {
  .bw-anatomy,
  .bw-benefits,
  .bw-areas,
  .bw-cases,
  .bw-audience,
  .bw-access,
  .bw-purchase,
  .bw-problem,
  .bw-security {
    padding: 56px 0;
  }
}

/* ──────────────────────────────────────────────────────────────
   PROBLEM - mostek pod 3 kartami: zdanie wyjaśniające produkt
   ────────────────────────────────────────────────────────────── */
.bw-problem-bridge {
  margin-top: 32px;
  padding: 20px 24px;
  background: var(--accent-glow);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  max-width: 820px;
}
.bw-problem-bridge p {
  margin: 0;
  font-size: 15px;
  color: var(--navy-900);
  line-height: 1.55;
  letter-spacing: -0.005em;
}
.bw-problem-bridge strong {
  color: var(--navy-900);
  font-weight: 700;
}
@media (min-width: 640px) {
  .bw-problem-bridge { margin-top: 40px; padding: 22px 28px; }
  .bw-problem-bridge p { font-size: 16px; }
}


/* ──────────────────────────────────────────────────────────────
   MID-PAGE CTA - dyskretny banner z przyciskiem
   Wstawiany po PRZYKŁADACH dla zmniejszenia tarcia
   ────────────────────────────────────────────────────────────── */
.bw-cta-mid {
  padding: 32px 0;
}
.bw-cta-mid-inner {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 28px 24px;
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-800) 100%);
  border-radius: var(--r-md);
  align-items: flex-start;
}
.bw-cta-mid-text {
  flex: 1;
}
.bw-cta-mid-title {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--white);
  line-height: 1.3;
  margin: 0 0 6px;
}
.bw-cta-mid-desc {
  font-size: 14px;
  color: rgba(241,245,249,0.75);
  line-height: 1.5;
  margin: 0;
}
.bw-cta-mid-inner .btn-primary {
  flex-shrink: 0;
  white-space: nowrap;
}
@media (min-width: 768px) {
  .bw-cta-mid { padding: 40px 0; }
  .bw-cta-mid-inner {
    flex-direction: row;
    align-items: center;
    padding: 24px 32px;
    gap: 32px;
  }
  .bw-cta-mid-title { font-size: 20px; }
}

/* Modyfikator: banner inline wewnątrz sekcji (bez własnego paddingu) */
.bw-cta-mid-inline {
  margin-top: 32px;
}
@media (min-width: 768px) {
  .bw-cta-mid-inline { margin-top: 40px; }
}


/* ──────────────────────────────────────────────────────────────
   PACZKA ZAKUPOWA - lista 'Co otrzymujesz w pakiecie'
   Krótka, na jednym screenie, przed sekcją JAK URUCHOMIĆ
   ────────────────────────────────────────────────────────────── */
.bw-package {
  padding: 40px 0;
  background: var(--slate-50);
}
.bw-package-header {
  max-width: 720px;
  margin: 0 0 28px;
}
.bw-package-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--navy-900);
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin: 8px 0 0;
}
.bw-package-grid {
  max-width: 880px;
}
.bw-package-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.bw-package-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  font-size: 14px;
  line-height: 1.55;
  color: var(--slate-700);
}
.bw-package-list li svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  stroke: var(--accent);
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-top: 2px;
}
.bw-package-list li strong {
  color: var(--navy-900);
  font-weight: 700;
}
@media (min-width: 768px) {
  .bw-package { padding: 48px 0; }
  .bw-package-title { font-size: 26px; }
  .bw-package-list { grid-template-columns: 1fr 1fr; gap: 12px 16px; }
  .bw-package-list li { font-size: 14px; }
}
@media (min-width: 1024px) {
  .bw-package { padding: 56px 0; }
  .bw-package-title { font-size: 28px; }
}


/* ══════════════════════════════════════════════════════════════════════
   WZBOGACENIA WIZUALNE PER SEKCJA
   Subtelne akcenty oparte na istniejącej palecie - bez nowych komponentów
   ══════════════════════════════════════════════════════════════════════ */


/* ──────────────────────────────────────────────────────────────
   OBSZARY - kolorowe markery per dział (data-area)
   Karta dostaje cienki 3px stripe z lewej + akcent na numerku
   Kolory: marketing=purple, sales=blue, ecommerce=amber,
           hr=teal, ops=slate, custom=gradient
   ────────────────────────────────────────────────────────────── */

.bw-area-card {
  position: relative;
  overflow: hidden;
}
.bw-area-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--area-color, var(--accent));
  opacity: 0;
  transition: opacity 0.25s ease;
}
.bw-area-card:hover::before {
  opacity: 1;
}

/* Kolory per area - subtelne kropki na gate-segment + accent na numerku */
.bw-area-card[data-area="marketing"] { --area-color: hsl(280, 70%, 55%); }
.bw-area-card[data-area="sales"]     { --area-color: hsl(221, 83%, 53%); }
.bw-area-card[data-area="ecommerce"] { --area-color: hsl(28, 90%, 55%); }
.bw-area-card[data-area="hr"]        { --area-color: hsl(160, 60%, 42%); }
.bw-area-card[data-area="ops"]       { --area-color: hsl(215, 25%, 45%); }
.bw-area-card[data-area="custom"]    { --area-color: hsl(265, 65%, 55%); }

/* Kropka przed gate-segment - znacznik wizualny obszaru */
.bw-area-card .gate-segment {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.bw-area-card .gate-segment::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--area-color, var(--accent));
  flex-shrink: 0;
  box-shadow: 0 0 0 3px hsla(0, 0%, 0%, 0.04);
}


/* ──────────────────────────────────────────────────────────────
   PROBLEM sekcja - delikatny tilt linii pod nagłówkiem
   Akcent fioletowy/niebieski jako visual hook nad 3 kartami
   ────────────────────────────────────────────────────────────── */

.bw-problem .gates-header {
  position: relative;
}
.bw-problem .gates-header::after {
  content: '';
  display: block;
  width: 80px;
  height: 3px;
  margin-top: 16px;
  border-radius: 2px;
  background: linear-gradient(90deg,
    hsl(221, 83%, 53%) 0%,
    hsl(265, 70%, 55%) 100%);
}


/* ──────────────────────────────────────────────────────────────
   ANATOMIA - dla 4 kroków: subtelna linia "flow" pod numerkami
   Pozioma linia akcentowa między numerkami (desktop) - kierunek
   ────────────────────────────────────────────────────────────── */

@media (min-width: 1024px) {
  .bw-anatomy-steps {
    position: relative;
  }
  .bw-anatomy-steps::before {
    content: '';
    position: absolute;
    top: 28px;
    left: 8%;
    right: 8%;
    height: 2px;
    background: linear-gradient(90deg,
      transparent 0%,
      hsla(221, 83%, 53%, 0.18) 12%,
      hsla(221, 83%, 53%, 0.18) 88%,
      transparent 100%);
    z-index: 0;
    pointer-events: none;
  }
  .bw-step {
    position: relative;
    z-index: 1;
  }
}


/* ──────────────────────────────────────────────────────────────
   BEZPIECZEŃSTWO - subtle zielony akcent w nagłówku sekcji
   Bezpieczeństwo intuicyjnie zielone, ale nie krzykliwie
   ────────────────────────────────────────────────────────────── */

.bw-security .section-label {
  color: hsl(160, 60%, 35%);
}
.bw-security .section-label::before {
  background: hsl(160, 60%, 42%) !important;
}


/* ──────────────────────────────────────────────────────────────
   FAQ - subtelny lewy akcent na otwartym pytaniu (border-left)
   ────────────────────────────────────────────────────────────── */

.faq-item {
  position: relative;
  transition: background 0.2s ease;
}
.faq-item:has(.faq-question[aria-expanded="true"]) {
  background: linear-gradient(90deg,
    hsla(221, 83%, 53%, 0.025) 0%,
    transparent 60%);
  border-radius: var(--r-md);
}


/* ──────────────────────────────────────────────────────────────
   FINAL CTA - glow purple/blue pod sekcją (spójność z hero)
   Powtarza energię hero na końcu lejka
   ────────────────────────────────────────────────────────────── */

.cta-final {
  position: relative;
  overflow: hidden;
}
.cta-final::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse at center,
    hsla(265, 70%, 50%, 0.18) 0%,
    hsla(221, 83%, 50%, 0.12) 30%,
    transparent 65%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}
.cta-final::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(241,245,249,0.04) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
  z-index: 0;
}
.cta-final .container {
  position: relative;
  z-index: 1;
}


/* ──────────────────────────────────────────────────────────────
   CO OTRZYMUJESZ - akcent gradientowy na pierwszym punkcie
   "140+ scenariuszy" jako mocny anchor visual
   ────────────────────────────────────────────────────────────── */

.bw-package-list li:first-child {
  background: linear-gradient(135deg,
    hsla(221, 83%, 53%, 0.04) 0%,
    hsla(265, 70%, 55%, 0.03) 100%);
  border-color: hsla(221, 83%, 53%, 0.18);
}
.bw-package-list li:first-child svg {
  stroke: hsl(221, 83%, 53%);
}


/* ──────────────────────────────────────────────────────────────
   INTRO - delikatny lewy akcent na drugim paragrafie
   Wyróżnia kluczowy fragment "know-how zostaje w firmie"
   ────────────────────────────────────────────────────────────── */

.program-intro-inner p:last-child {
  position: relative;
  padding-left: 18px;
  border-left: 3px solid;
  border-image: linear-gradient(180deg,
    hsl(221, 83%, 53%) 0%,
    hsl(265, 70%, 55%) 100%) 1;
}


/* ══════════════════════════════════════════════════════════════════════
   HOLISTYCZNY UPGRADE - TURA 2
   DLA KOGO + KIEDY, ZAKUP I WSPARCIE, hover effects, dot pattern
   ══════════════════════════════════════════════════════════════════════ */


/* ──────────────────────────────────────────────────────────────
   DLA KOGO + KIEDY - kontener box dla każdej kolumny
   Box z subtelnym tłem, ramką i ikonką w prawym górnym rogu
   Zachowuję istniejące program-list z głównego CSS - dorzucam wrapper
   ────────────────────────────────────────────────────────────── */

.bw-audience-box {
  position: relative;
  padding: 28px 24px 24px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.bw-audience-box:hover {
  border-color: hsla(221, 83%, 53%, 0.25);
  box-shadow: 0 4px 16px hsla(221, 50%, 30%, 0.06);
}
.bw-audience-box-icon {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r);
  background: hsla(221, 83%, 53%, 0.08);
}
.bw-audience-box-icon svg {
  width: 16px;
  height: 16px;
  stroke: hsl(221, 83%, 53%);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Kolorystyka per box - "Dla kogo" niebieskie, "Kiedy warto" fioletowe */
.bw-audience-box--who::before {
  content: '';
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 2px;
  background: linear-gradient(90deg,
    transparent 0%,
    hsla(221, 83%, 53%, 0.4) 50%,
    transparent 100%);
}
.bw-audience-box--when .bw-audience-box-icon {
  background: hsla(265, 70%, 55%, 0.08);
}
.bw-audience-box--when .bw-audience-box-icon svg {
  stroke: hsl(265, 70%, 55%);
}
.bw-audience-box--when::before {
  content: '';
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 2px;
  background: linear-gradient(90deg,
    transparent 0%,
    hsla(265, 70%, 55%, 0.4) 50%,
    transparent 100%);
}

@media (min-width: 768px) {
  .bw-audience-box {
    padding: 32px 28px 28px;
  }
}


/* ──────────────────────────────────────────────────────────────
   ZAKUP I WSPARCIE - akcent na gate-values listach
   Dodaję subtle markery zamiast plain text-list
   ────────────────────────────────────────────────────────────── */

.bw-purchase .gate-values li {
  position: relative;
  padding-left: 22px;
}
.bw-purchase .gate-values li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 14px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.5;
}


/* ──────────────────────────────────────────────────────────────
   PATTERN dla sekcji bw-section--alt
   Subtelny dot-pattern jak w hero, ale słabszy - rytm wizualny
   ────────────────────────────────────────────────────────────── */

.bw-section--alt {
  position: relative;
  overflow: hidden;
}
.bw-section--alt::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(15, 23, 42, 0.025) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  z-index: 0;
}
.bw-section--alt > .container {
  position: relative;
  z-index: 1;
}


/* ──────────────────────────────────────────────────────────────
   SECTION-LABEL - decorator po lewej (subtle visual marker)
   Linia akcentowa dla rytmu wizualnego sekcji
   Działa nadrzędnie do istniejącego ::before w głównym CSS,
   więc używam selektora wewnątrz mojego pliku
   ────────────────────────────────────────────────────────────── */

/* Brak override section-label - główny CSS już ma własny ::before
   Zamiast tego wzmacniam GATES-HEADER o akcent gradient pod nagłówkiem
   Ale tylko w wybranych sekcjach (PROBLEM ma już pod nagłówkiem) */

.bw-benefits .gates-header,
.bw-areas .gates-header,
.bw-purchase .gates-header,
.bw-security .gates-header {
  position: relative;
}
.bw-benefits .gates-header::after,
.bw-areas .gates-header::after,
.bw-purchase .gates-header::after,
.bw-security .gates-header::after {
  content: '';
  display: block;
  width: 60px;
  height: 2px;
  margin-top: 14px;
  border-radius: 2px;
  background: linear-gradient(90deg,
    hsl(221, 83%, 53%) 0%,
    hsla(265, 70%, 55%, 0.6) 100%);
  opacity: 0.55;
}
.bw-security .gates-header::after {
  background: linear-gradient(90deg,
    hsl(160, 60%, 42%) 0%,
    hsla(160, 60%, 42%, 0.4) 100%);
}


/* ──────────────────────────────────────────────────────────────
   HOVER EFFECTS na kartach gate-card w sekcjach problem/benefits
   Subtle lift + shadow - sygnał interaktywności
   ────────────────────────────────────────────────────────────── */

.bw-problem .gate-card,
.bw-benefits .gate-card {
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.bw-problem .gate-card:hover,
.bw-benefits .gate-card:hover {
  transform: translateY(-2px);
  border-color: hsla(221, 83%, 53%, 0.28);
  box-shadow: 0 8px 24px hsla(221, 50%, 30%, 0.08);
}
/* Featured cards - mocniejszy lift */
.bw-problem .gate-card--featured:hover,
.bw-benefits .gate-card--featured:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px hsla(221, 83%, 50%, 0.15);
}


/* ──────────────────────────────────────────────────────────────
   MID-PAGE CTA w obszarach - dodaję glow purple pod kartą
   Spójność z hero - ten sam akcent fioletowy
   ────────────────────────────────────────────────────────────── */

.bw-cta-mid-inline {
  position: relative;
}
.bw-cta-mid-inline::before {
  content: '';
  position: absolute;
  inset: -20px -10px;
  background: radial-gradient(ellipse at 30% 50%,
    hsla(265, 70%, 50%, 0.12) 0%,
    transparent 60%);
  filter: blur(24px);
  pointer-events: none;
  z-index: -1;
}
/* Dodaję shimmer purple do gradient banner-mid */
.bw-cta-mid-inline.bw-cta-mid-inner {
  background: linear-gradient(135deg,
    hsl(245, 50%, 12%) 0%,
    hsl(225, 60%, 18%) 60%,
    hsl(265, 55%, 22%) 100%);
  border: 1px solid hsl(245, 40%, 28%);
  position: relative;
  overflow: hidden;
}
.bw-cta-mid-inline.bw-cta-mid-inner::after {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle,
    hsla(280, 70%, 55%, 0.18) 0%,
    transparent 60%);
  pointer-events: none;
  border-radius: 50%;
  z-index: 0;
}
.bw-cta-mid-inline .bw-cta-mid-text,
.bw-cta-mid-inline .btn-primary {
  position: relative;
  z-index: 1;
}


/* ──────────────────────────────────────────────────────────────
   OBSZARY KART - lekka modyfikacja kropki przy gate-segment
   Aktualnie kropka 8px - dodam subtle pulse na hover
   ────────────────────────────────────────────────────────────── */

.bw-area-card:hover .gate-segment::before {
  box-shadow: 0 0 0 4px hsla(0, 0%, 0%, 0.04),
              0 0 0 6px var(--area-color, var(--accent));
  transition: box-shadow 0.25s ease;
}
.bw-area-card .gate-segment::before {
  transition: box-shadow 0.25s ease;
}


/* ──────────────────────────────────────────────────────────────
   ANATOMIA - hover na step (subtle accent)
   ────────────────────────────────────────────────────────────── */

.bw-step {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.bw-step:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px hsla(221, 50%, 30%, 0.06);
}
.bw-step:hover .bw-step-num {
  background: linear-gradient(135deg,
    hsl(221, 83%, 53%) 0%,
    hsl(265, 70%, 55%) 100%);
  color: var(--white);
  border-color: transparent;
  transition: all 0.25s ease;
}
.bw-step .bw-step-num {
  transition: all 0.25s ease;
}


/* ──────────────────────────────────────────────────────────────
   FAQ - subtle hover na pytaniu (chevron rotacja already)
   Dodaję delikatny accent na hover
   ────────────────────────────────────────────────────────────── */

.faq-question {
  transition: color 0.2s ease;
}
.faq-question:hover {
  color: hsl(221, 83%, 53%);
}
