/* =========================================================
   Pro Cennik Nowy – Final CSS z grid layout kart
   Font: Plus Jakarta Sans
   Accent: #f17732
   ========================================================= */

/* 1. Import font */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;700&display=swap');

/* 2. Scoped typography */
.pcnn-switch-wrap,
.pcnn-switch-btn,
.pcnn-switch-slider,
.pcnn-container,
.pcnn-card,
.pcnn-header,
.pcnn-title,
.pcnn-price,
.pcnn-currency,
.pcnn-subtitle,
.pcnn-features,
.pcnn-feature,
.pcnn-feature span,
.pcnn-btn {
  font-family: 'Plus Jakarta Sans', Helvetica, Arial, sans-serif;
}

/* 3. SWITCHER – full width, centered pill */
.pcnn-switch-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: 600px;
  margin: 40px auto 24px;
  padding: 4px;
  background: #fff;
  border: 2px solid #f17732;
  border-radius: 40px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  box-sizing: border-box;
}
.pcnn-switch-btn {
  flex: 1;
  padding: 10px 0;
  background: transparent;
  border: none;
  color: #f17732;
  cursor: pointer;
  z-index: 1;
  transition: color 0.3s ease;
  text-align: center;
}
.pcnn-switch-btn.active {
  color: #fff;
}
.pcnn-switch-slider {
  position: absolute;
  top: 4px; bottom: 4px; left: 4px;
  width: calc(50% - 4px);
  background: #f17732;
  border-radius: 32px;
  transition: transform 0.35s cubic-bezier(0.22,1,0.36,1),
              width 0.35s cubic-bezier(0.22,1,0.36,1);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  z-index: 0;
}

/* 4. GRID KART – wyrównane wiersze */
.pcnn-container {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  grid-auto-rows: 1fr;
  gap: 24px;
  padding: 0 16px 40px;
  box-sizing: border-box;
}
@media (max-width:1024px) {
  .pcnn-container { grid-template-columns: repeat(2,1fr); }
}
@media (max-width:600px) {
  .pcnn-container { grid-template-columns: 1fr; }
}

/* 5. KARTA PAKIETU jako GRID */
.pcnn-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  border: 1px solid #ddd;
  border-radius: 16px;
  padding: 24px;
  transition: transform 0.3s ease,
              box-shadow 0.3s ease,
              border-color 0.3s ease,
              background 0.3s ease;
  box-sizing: border-box;
}
.pcnn-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 12px 24px rgba(0,0,0,0.1);
  background: linear-gradient(135deg, rgba(241,119,50,0.05), rgba(241,119,50,0));
  border-color: #f17732;
}

/* 6. NAGŁÓWEK KARTY – stały odstęp */
.pcnn-header {
  margin: 0 0 16px;
  flex-shrink: 0;
}
.pcnn-title {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
  color: #f17732;
  line-height: 1.2;
}
.pcnn-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 700;
  color: #f17732;
}
.pcnn-currency {
  font-size: 14px;
  color: #555;
  margin-left: 4px;
}
.pcnn-subtitle {
  margin: 0 0 16px;
  font-size: 13px;
  color: #666;
  line-height: 1.3;
}

/* 7. BENEFITY – kafelki wyrównane */
.pcnn-features {
  display: grid;
  gap: 12px;
  /* margin-top removed – grid auto-places below header */
}
.pcnn-feature {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 10px;
  transition: background 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
}
.pcnn-feature:hover {
  background: rgba(241,119,50,0.1);
  border-color: #f17732;
}
.pcnn-icon {
  width: 18px;
  height: 18px;
  margin-right: 8px;
  stroke: #f17732;
}

/* 8. PRZYCISK ZAMÓW TERAZ */
.pcnn-btn {
  text-align: center;
  margin-top: 16px;
  padding: 10px 0;
  background: #f17732;
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 500;
  transition: background 0.3s ease, transform 0.3s ease;
  box-sizing: border-box;
}
.pcnn-btn:hover {
  background: #d6632d;
  transform: translateY(-2px);
}

/* 9. RESPONSYWNE */
@media (max-width:600px){
  .pcnn-switch-wrap {
    width: 90vw;
    max-width: none;
    padding: 4px;
  }
  .pcnn-switch-btn {
    padding: 10px 0;
  }
  .pcnn-card {
    padding: 20px;
  }
  .pcnn-title {
    font-size: 18px;
  }
  .pcnn-price {
    font-size: 24px;
  }
  .pcnn-subtitle {
    font-size: 12px;
  }
  .pcnn-features {
    gap: 10px;
  }
  .pcnn-feature span {
    font-size: 13px;
  }
  .pcnn-btn {
    margin-top: 12px;
    padding: 8px 0;
  }
}
