/* ==========================================================================
   NIS2Panel — custom styles (uzupełnienie Tailwind Play CDN)
   ========================================================================== */

:root {
  --navy-900: #000f41;
  --navy-800: #012150;
  --navy-950: #0d133d;
  --green:     #4d9c2d;
  --green-light: #7cb342;
}

/* --- Hero background banner -------------------------------------------------- */
.hero {
  background-image: url("../assets/hero_baner.png");
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
}
/* warstwa przyciemniająca — rozjaśnia lewą stronę (czytelność tekstu)
   i wygasza dół do bieli (płynne przejście do kolejnej sekcji) */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.10) 0%, transparent 30%, transparent 55%, rgba(255, 255, 255, 0.9) 90%, #ffffff 100%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.94) 0%, rgba(255, 255, 255, 0.82) 30%, rgba(255, 255, 255, 0.45) 52%, rgba(255, 255, 255, 0.08) 72%, rgba(255, 255, 255, 0) 85%);
}
/* na małych ekranach tekst jest pełnej szerokości — mocniejsza zasłona */
@media (max-width: 1023px) {
  .hero::before {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0.35) 40%, rgba(255, 255, 255, 0.75) 80%, #ffffff 100%),
      linear-gradient(90deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.7) 45%, rgba(255, 255, 255, 0.5) 100%);
  }
}

/* --- Eyebrow pill ----------------------------------------------------------- */
.eyebrow {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  background: rgba(1, 33, 80, 0.06);
  color: #012150;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* --- Floating stats card ---------------------------------------------------- */
.stats-card {
  /* wielowarstwowy, miękki cień zewnętrzny — pełny również u dołu */
  box-shadow:
    0 2px 6px -2px rgba(1, 33, 80, 0.10),
    0 18px 40px -12px rgba(1, 33, 80, 0.22),
    0 40px 80px -24px rgba(1, 33, 80, 0.28);
}

/* --- Stat icon (hero card) -------------------------------------------------- */
.stat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.75rem;
  width: 2.75rem;
  border-radius: 0.9rem;
  background: rgba(77, 156, 45, 0.10);
  color: var(--green);
}

/* --- Donut chart ------------------------------------------------------------ */
.donut {
  position: relative;
  height: 92px;
  width: 92px;
  border-radius: 50%;
  background: conic-gradient(
    var(--green) 0turn 0.55turn,
    var(--navy-800) 0.55turn 0.92turn,
    var(--green-light) 0.92turn 1turn
  );
}
.donut-hole {
  position: absolute;
  inset: 14px;
  border-radius: 50%;
  background: #ffffff;
}

/* --- Feature icon (Jak działa platforma) ------------------------------------ */
.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 3rem;
  width: 3rem;
  flex-shrink: 0;
  border-radius: 1rem;
}

/* --- Module cards ----------------------------------------------------------- */
.module-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid rgba(1, 33, 80, 0.08);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 4px 20px -8px rgba(1, 33, 80, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.module-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px -14px rgba(1, 33, 80, 0.22);
  border-color: rgba(77, 156, 45, 0.35);
}
.module-card .m-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 3rem;
  width: 3rem;
  border-radius: 0.85rem;
  margin-bottom: 1rem;
}
.module-card h4 {
  font-family: "Poppins", "Inter", sans-serif;
  font-weight: 700;
  color: var(--navy-900);
  line-height: 1.25;
  font-size: 1rem;
}
.module-card p {
  margin-top: 0.6rem;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: rgba(0, 15, 65, 0.62);
  flex: 1 1 auto;
}
.module-card .m-link {
  margin-top: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--navy-800);
}
.module-card .m-link:hover { color: var(--green); }

/* --- Process steps ---------------------------------------------------------- */
.step-node {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 5rem;
  width: 5rem;
  border-radius: 9999px;
  background: #ffffff;
  border: 1px solid rgba(1, 33, 80, 0.10);
  box-shadow: 0 8px 26px -12px rgba(1, 33, 80, 0.20);
}
.step-icon { color: var(--navy-800); }
.step-badge {
  position: absolute;
  top: -0.55rem;
  right: -0.35rem;
  height: 1.6rem;
  width: 1.6rem;
  border-radius: 9999px;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px -3px rgba(1, 33, 80, 0.35);
}
/* (łącznik/strzałka między krokami usunięty na życzenie) */

/* --- Area cards ------------------------------------------------------------- */
.area-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid rgba(1, 33, 80, 0.08);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 4px 20px -8px rgba(1, 33, 80, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.area-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px -14px rgba(1, 33, 80, 0.20); }
.area-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 3rem;
  width: 3rem;
  border-radius: 0.85rem;
  margin-bottom: 1rem;
}
.area-card h4 {
  font-family: "Poppins", "Inter", sans-serif;
  font-weight: 700;
  color: var(--navy-900);
  font-size: 1rem;
  line-height: 1.25;
}
.area-card p {
  margin-top: 0.55rem;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: rgba(0, 15, 65, 0.62);
  flex: 1 1 auto;
}
.area-link {
  margin-top: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--green);
}

/* --- Footer helpers (jasna stopka) ------------------------------------------ */
.footer-head {
  color: var(--navy-900);
  font-family: "Poppins", "Inter", sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 1.1rem;
}
.footer-link { transition: color 0.15s ease; }
.footer-link:hover { color: var(--green); }
.social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.25rem;
  width: 2.25rem;
  border-radius: 0.6rem;
  background: rgba(1, 33, 80, 0.06);
  color: var(--navy-800);
  transition: background 0.15s ease, color 0.15s ease;
}
.social:hover { background: var(--green); color: #fff; }

/* ==========================================================================
   SZKIELETY PODSTRON — prymitywy współdzielone (podstrona / demo / kontakt / legal)
   ========================================================================== */

/* --- Skeleton (placeholder + shimmer) --------------------------------------- */
.sk {
  position: relative;
  overflow: hidden;
  background: #e6eaf3;
  border-radius: 0.5rem;
}
.sk::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.65), transparent);
  animation: sk-shimmer 1.5s infinite;
}
@keyframes sk-shimmer { 100% { transform: translateX(100%); } }

.sk-line { height: 0.75rem; }
.sk-title { height: 1.75rem; border-radius: 0.6rem; }
.sk-btn { height: 2.75rem; width: 11rem; border-radius: 0.75rem; }
.sk-box { border-radius: 1rem; }           /* obrazek / karta */
.sk-avatar { border-radius: 9999px; }
@media (prefers-reduced-motion: reduce) {
  .sk::after { animation: none; }
}

/* --- Breadcrumb ------------------------------------------------------------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: rgba(0, 15, 65, 0.55);
}
.breadcrumb a { color: rgba(0, 15, 65, 0.55); transition: color 0.15s; }
.breadcrumb a:hover { color: var(--green); }
.breadcrumb [aria-current="page"] { color: var(--navy-900); font-weight: 600; }
.breadcrumb .sep { color: rgba(0, 15, 65, 0.3); }

/* --- Formularze (demo / kontakt) -------------------------------------------- */
.form-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--navy-800);
  margin-bottom: 0.4rem;
}
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  border: 1px solid #d6ddee;
  border-radius: 0.75rem;
  padding: 0.7rem 0.9rem;
  font-size: 0.9rem;
  color: var(--navy-900);
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-textarea { min-height: 8rem; resize: vertical; }
.form-input::placeholder,
.form-textarea::placeholder { color: rgba(0, 15, 65, 0.35); }
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(77, 156, 45, 0.15);
}

/* --- Spis treści (legal) ---------------------------------------------------- */
.toc-link {
  display: block;
  padding: 0.4rem 0.75rem;
  border-left: 2px solid #d6ddee;
  font-size: 0.85rem;
  color: rgba(0, 15, 65, 0.6);
  transition: color 0.15s, border-color 0.15s;
}
.toc-link:hover { color: var(--green); border-color: var(--green); }

/* --- Proza dokumentów prawnych ---------------------------------------------- */
.legal-body h2 {
  font-family: "Poppins", "Inter", sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--navy-900);
  margin: 2rem 0 0.75rem;
  scroll-margin-top: 6rem;
}
.legal-body p { margin: 0.75rem 0; line-height: 1.7; color: rgba(0, 15, 65, 0.72); }

/* ==========================================================================
   CENNIK — przełącznik rozliczeń + FAQ
   ========================================================================== */
.bill-toggle {
  display: inline-flex;
  padding: 0.3rem;
  border-radius: 9999px;
  background: #eef1f8;
  border: 1px solid #d6ddee;
}
.bill-btn {
  border-radius: 9999px;
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(0, 15, 65, 0.6);
  transition: color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.bill-btn.is-active {
  background: #ffffff;
  color: var(--navy-900);
  box-shadow: 0 2px 8px -2px rgba(1, 33, 80, 0.18);
}

/* Karta planu — wariant wyróżniony */
.plan-featured {
  position: relative;
  border-color: var(--green) !important;
  box-shadow: 0 24px 60px -22px rgba(1, 33, 80, 0.30);
}

/* FAQ (natywne <details>) */
.faq-item {
  border: 1px solid #d6ddee;
  border-radius: 1rem;
  background: #fff;
  overflow: hidden;
}
.faq-item + .faq-item { margin-top: 0.75rem; }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  font-family: "Poppins", "Inter", sans-serif;
  font-weight: 600;
  color: var(--navy-900);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .chev { transition: transform 0.2s ease; color: var(--green); }
.faq-item[open] summary .chev { transform: rotate(180deg); }
.faq-item .faq-body {
  padding: 0 1.25rem 1.2rem;
  font-size: 0.9rem;
  line-height: 1.65;
  color: rgba(0, 15, 65, 0.68);
}

/* ==========================================================================
   jQuery Validation — error styling
   ========================================================================== */
.form-input.error,
.form-select.error,
.form-textarea.error {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.10);
}

label.error {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #dc2626;
  grid-column: 1 / -1;
  width: 100%;
}
