/* Seção "O Problema" — identificação emocional premium */

.section-problem {
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(255, 241, 245, 0.9) 0%, transparent 70%),
    linear-gradient(180deg, #fff8fa 0%, #fff 100%);
}

.section-problem__header {
  max-width: 680px;
  margin-inline: auto;
  margin-bottom: 48px;
}

/* Badge alerta */
.problem-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  margin-bottom: 20px;
  border-radius: 999px;
  background: rgba(255, 241, 245, 0.95);
  border: 1px solid rgba(217, 79, 112, 0.18);
  color: var(--coral);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.problem-badge__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(217, 79, 112, 0.12);
  font-size: 0.7rem;
  line-height: 1;
}

/* Título */
.section-title--problem {
  font-size: clamp(2rem, 5vw, 2.85rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.12;
  margin-bottom: 16px;
}

.text-gradient-coral {
  background: linear-gradient(135deg, var(--coral-dark) 0%, var(--coral) 55%, #ec7d97 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.section-lead--problem {
  margin-bottom: 0;
  font-size: clamp(1rem, 2.2vw, 1.125rem);
  line-height: 1.65;
  color: var(--muted);
}

.text-coral-emphasis {
  color: var(--coral);
  font-weight: 700;
}

.text-brand {
  color: var(--primary-dark);
  font-weight: 700;
}

/* Grid de cards */
.pain-story-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 40px;
  padding: 0;
  list-style: none;
}

/* Card história visual */
.pain-story-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  padding: 28px 24px 26px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 20px;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 6px 20px rgba(15, 23, 42, 0.05);
  transition:
    transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.pain-story-card:hover {
  transform: translateY(-5px);
  box-shadow:
    0 4px 8px rgba(15, 23, 42, 0.06),
    0 16px 40px rgba(217, 79, 112, 0.1);
}

.pain-story-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: linear-gradient(145deg, #fff5f8 0%, #fde8ef 100%);
  box-shadow:
    inset 0 2px 4px rgba(255, 255, 255, 0.8),
    0 4px 12px rgba(217, 79, 112, 0.12);
}

.pain-story-card__emoji {
  font-size: 2rem;
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(15, 23, 42, 0.12));
}

.pain-story-card__title {
  margin: 0 0 12px;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.35;
}

.pain-story-card__line {
  width: 36px;
  height: 3px;
  margin-bottom: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--coral) 0%, #ec7d97 100%);
}

.pain-story-card__desc {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--muted);
}

/* Jornada visual: dor → solução (desktop) */
.problem-journey {
  position: relative;
  max-width: 100%;
}

.problem-journey .pain-story-grid {
  margin-bottom: 0;
  position: relative;
  z-index: 1;
}

.problem-journey__bridge {
  display: none;
}

.problem-connect {
  position: relative;
  z-index: 1;
}

@media (min-width: 1025px) {
  .problem-journey__bridge {
    display: block;
    position: relative;
    max-width: 900px;
    height: 72px;
    margin: -6px auto -10px;
    padding: 0 12px;
    pointer-events: none;
    z-index: 0;
  }

  .problem-journey__svg {
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
  }

  .problem-connect {
    margin-top: 0;
  }

  .problem-connect::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow:
      0 0 0 4px rgba(18, 199, 184, 0.18),
      0 0 12px rgba(18, 199, 184, 0.35);
    z-index: 2;
  }
}

/* Bloco de conexão */
.problem-connect {
  max-width: 900px;
  margin-inline: auto;
  padding: 32px 36px 28px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255, 241, 245, 0.95) 0%, rgba(253, 232, 239, 0.5) 100%);
  border: 1px solid rgba(217, 79, 112, 0.12);
}

.problem-connect__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 24px;
}

.problem-connect__icon {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
}

.problem-connect__icon svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 4px 12px rgba(18, 199, 184, 0.2));
}

.problem-connect__text {
  margin: 0;
  font-size: clamp(1rem, 2vw, 1.125rem);
  font-weight: 500;
  line-height: 1.6;
  color: var(--navy);
  text-align: left;
}

/* Chips de segmentos */
.problem-segments__intro {
  margin: 0 0 14px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
  text-align: center;
  opacity: 0.85;
}

.problem-segments {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.problem-segments__chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--navy);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  white-space: nowrap;
}

.problem-segments__check {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(37, 211, 102, 0.15);
  color: #16a34a;
  font-size: 0.65rem;
  font-weight: 800;
  flex-shrink: 0;
}

/* Responsive */
@media (max-width: 1024px) {
  .pain-story-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 40px;
  }
}

@media (max-width: 640px) {
  .section-problem__header {
    margin-bottom: 36px;
  }

  .pain-story-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .problem-connect {
    padding: 24px 20px 20px;
  }

  .problem-connect__inner {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }

  .problem-connect__text {
    text-align: center;
  }

  .problem-connect__icon {
    width: 60px;
    height: 60px;
  }

  .problem-segments__chip {
    white-space: normal;
    text-align: center;
    justify-content: center;
    flex: 1 1 calc(50% - 10px);
    min-width: 140px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pain-story-card {
    transition: none;
  }

  .pain-story-card:hover {
    transform: none;
  }
}
