/* Sekcja 5 – Jak działa Profilio
   Używamy wyłącznie klas z prefiksem .profilio-section5 / .profilio-howitworks / .profilio-personal-...
*/

.profilio-section5 {
  padding: 80px 0;
  background: #f1f5f9; /* bardzo jasny slate */
}

.profilio-section5__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* HEADER */

.profilio-section5__header {
  text-align: left;
  margin-bottom: 32px;
}

.profilio-section5__header--personal {
  margin-top: 72px;
}

.profilio-section5__badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 9999px;
  background: #ecfdf5;
  color: #047857;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.profilio-section5__badge--blue {
  background: #eff6ff;
  color: #1d4ed8;
}

.profilio-section5__badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background: currentColor;
  margin-right: 6px;
}

.profilio-section5__title {
  font-size: 30px;
  line-height: 1.2;
  margin: 0 0 10px;
  color: #0f172a;
  font-weight: 700;
}

.profilio-section5__lead {
  max-width: 720px;
  font-size: 15px;
  line-height: 1.6;
  color: #4b5563;
  margin: 0;
}

/* ORG – 5 kroków */

.profilio-section5-org {
  margin-top: 32px;
}

.profilio-section5-org__steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px;
}

.profilio-howitworks-step-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 18px 18px 20px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.03);
  transition: box-shadow 0.18s ease, transform 0.18s ease, border-color 0.18s ease,
    background-color 0.18s ease;
}

.profilio-howitworks-step-card__icon {
  width: 36px;
  height: 36px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  font-size: 18px;
}

.profilio-howitworks-step-card__icon--doc {
  background: #ecfdf5;
  color: #059669;
}

.profilio-howitworks-step-card__icon--team {
  background: #eef2ff;
  color: #4f46e5;
}

.profilio-howitworks-step-card__icon--shield {
  background: #fef3c7;
  color: #d97706;
}

.profilio-howitworks-step-card__icon--invoice {
  background: #eff6ff;
  color: #1d4ed8;
}

.profilio-howitworks-step-card__icon--scale {
  background: #f5f3ff;
  color: #7c3aed;
}

.profilio-howitworks-step-card__icon-glyph {
  line-height: 1;
}

.profilio-howitworks-step-card__meta {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9ca3af;
  margin-bottom: 6px;
}

.profilio-howitworks-step-card__step-label {
  font-weight: 600;
}

.profilio-howitworks-step-card__title {
  font-size: 15px;
  line-height: 1.4;
  margin: 0 0 8px;
  color: #111827;
  font-weight: 600;
}

.profilio-howitworks-step-card__text {
  font-size: 13px;
  line-height: 1.6;
  color: #4b5563;
  margin: 0;
}

/* hover */

.profilio-howitworks-step-card:hover,
.profilio-howitworks-step-card.is-hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
  border-color: #a7f3d0;
}

/* ORG – why better */

.profilio-section5-org__why {
  margin-top: 40px;
}

.profilio-section5-org__why-title {
  font-size: 18px;
  margin: 0 0 16px;
  color: #0f172a;
  font-weight: 600;
}

.profilio-section5-org__why-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.profilio-section5-org-whycard {
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid #e5e7eb;
  padding: 18px 18px 20px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.03);
}

.profilio-section5-org-whycard__title {
  font-size: 15px;
  margin: 0 0 8px;
  color: #0f172a;
  font-weight: 600;
}

.profilio-section5-org-whycard__text {
  font-size: 13px;
  line-height: 1.6;
  color: #4b5563;
  margin: 0;
}

/* Divider */

.profilio-section5__divider {
  margin: 64px 0 40px;
  border: 0;
  border-top: 1px solid #e5e7eb;
}

/* PERSONAL – dwa modele */

.profilio-section5-personal__columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.profilio-section5-personal__column-header {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.profilio-section5-personal__column-header--blue {
  background: #eff6ff;
  color: #1d4ed8;
}

.profilio-section5-personal__column-header--green {
  background: #ecfdf5;
  color: #047857;
}

.profilio-section5-personal__model-dot {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background: currentColor;
  margin-right: 6px;
}


/* Personal steps */

.profilio-personal-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.profilio-personal-step {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.profilio-personal-step__number {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
}

.profilio-personal-step__number--blue {
  background: #3b82f6;
}

.profilio-personal-step__number--green {
  background: #10b981;
}

.profilio-personal-step__card {
  flex: 1;
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  padding: 12px 14px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.03);
}

.profilio-personal-step__title {
  font-size: 14px;
  margin: 0 0 6px;
  color: #111827;
  font-weight: 600;
}

.profilio-personal-step__text {
  font-size: 13px;
  line-height: 1.6;
  color: #4b5563;
  margin: 0;
}

/* hover na kartach personalnych */

.profilio-personal-step__card:hover {
  border-color: #bfdbfe;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.07);
}

/* RESPONSYWNOŚĆ */

@media (max-width: 1100px) {
  .profilio-section5-org__steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 880px) {
  .profilio-section5-org__steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profilio-section5-org__why-grid {
    grid-template-columns: 1fr;
  }

  .profilio-section5-personal__columns {
    grid-template-columns: 1fr;
  }

  .profilio-section5__title {
    font-size: 26px;
  }
}

@media (max-width: 640px) {
  .profilio-section5 {
    padding: 56px 0;
  }

  .profilio-section5-org__steps {
    grid-template-columns: 1fr;
  }

  .profilio-section5__lead {
    font-size: 14px;
  }

  .profilio-section5__divider {
    margin: 48px 0 32px;
  }
}
/* domyślnie możesz mieć wszystko widoczne, ale tryb to nadpisze */

.profilio-section5[data-mode="org"] .profilio-section5-personal,
.profilio-section5[data-mode="org"] .profilio-section5__header--personal {
    display: none;
}

.profilio-section5[data-mode="personal"] .profilio-section5-org,
.profilio-section5[data-mode="personal"] .profilio-section5__header:not(.profilio-section5__header--personal) {
    display: none;
}
