/* ── Antes x Depois ── */
.before-after-section {
  padding: 8rem 0;
  background-color: #FFFFFF;
  background-image: radial-gradient(circle at 1px 1px, rgba(15,61,76,0.06) 1px, transparent 0);
  background-size: 28px 28px;
  border-bottom: 1px solid #E5E7EB;
}

.ba-layout {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1.5rem;
  align-items: start;
}

.ba-card {
  border-radius: 16px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
}

/* Before card: light red tint */
.ba-before {
  background: #FFF5F5;
  border: 1px solid #fca5a5;
}

/* After card: light green tint */
.ba-after {
  background: #F0FFF4;
  border: 1px solid #86efac;
}

.ba-label {
  display: inline-block;
  font-size: 1rem;
  font-weight: 700;
  padding: 0.3rem 1.2rem;
  border-radius: 50px;
  margin-bottom: 1rem;
}

.ba-label-before {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}

.ba-label-after {
  background: #0F3D4C;
  color: #fff;
}

.ba-subtitle {
  font-size: 1.3rem;
  color: #0B2E3A;
  margin: 0 0 1.5rem;
  font-weight: 500;
}

.ba-list {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.ba-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1rem;
  color: #475569;
}

.ba-icon {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 900;
  flex-shrink: 0;
}

/* Red X for before, green check for after (user spec: "ícones de check verdes") */
.ba-no  { background: #ef4444; color: #fff; }
.ba-yes { background: #25D366; color: #fff; }

/* Phone mockups */
.ba-phone {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
}

.ba-phone-frame {
  width: 160px;
  background: #E5E7EB;
  border-radius: 28px;
  padding: 8px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
  position: relative;
}

.ba-phone-dark {
  background: #0B2E3A;
}

.ba-phone-screen {
  border-radius: 22px;
  overflow: hidden;
  background: #ece5dd;
}

.ba-screen-light {
  background: #F8FAFC;
}

.ba-phone-header {
  padding: 0.5rem 0.65rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.ba-wpp-green { background: #075e54; }

.ba-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #94a3b8;
  flex-shrink: 0;
}

.ba-header-info { display: flex; flex-direction: column; }
.ba-header-info span { color: #fff; font-size: 0.65rem; font-weight: 600; }
.ba-header-info small { color: rgba(255, 255, 255, 0.6); font-size: 0.55rem; }

.ba-messages-chaos {
  padding: 0.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.ba-contact-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.35rem;
  background: #fff;
  border-radius: 6px;
}

.ba-c-avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #cbd5e1;
  flex-shrink: 0;
}

.ba-c-info { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.ba-c-info span { font-size: 0.6rem; font-weight: 600; color: #0B2E3A; }
.ba-c-info small { font-size: 0.55rem; color: #94a3b8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.ba-badge {
  background: #25D366;
  color: #fff;
  border-radius: 50%;
  width: 14px;
  height: 14px;
  font-size: 0.55rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* After phone */
.ba-wpp-badge-after {
  position: absolute;
  top: -8px;
  left: -8px;
  background: #fff;
  border-radius: 20px;
  padding: 0.2rem 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.6rem;
  font-weight: 700;
  color: #0B2E3A;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  z-index: 2;
  white-space: nowrap;
}

.ba-cerebrax-header {
  background: #0F3D4C;
  padding: 0.5rem 0.65rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.ba-cerebrax-logo {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  object-fit: cover;
}

.ba-cerebrax-header strong { color: #fff; font-size: 0.62rem; display: block; }
.ba-cerebrax-header small  { color: rgba(255, 255, 255, 0.7); font-size: 0.52rem; }

.ba-cerebrax-body {
  padding: 0.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.ba-ai-block {
  background: #fff;
  border-radius: 8px;
  padding: 0.4rem 0.5rem;
  border-left: 3px solid #D4AF37;
}

.ba-ai-block small { font-size: 0.58rem; color: #0B2E3A; }
.ba-ai-block ul { margin: 0.2rem 0 0; padding-left: 0.8rem; font-size: 0.55rem; color: #475569; line-height: 1.6; }

.ba-ai-msg {
  background: #d9fdd3;
  border-radius: 8px 8px 0 8px;
  padding: 0.4rem 0.5rem;
  align-self: flex-end;
  max-width: 95%;
}

.ba-ai-msg p { margin: 0; font-size: 0.58rem; color: #0B2E3A; line-height: 1.4; }
.ba-msg-time { font-size: 0.52rem; color: #94a3b8; display: block; text-align: right; margin-top: 0.15rem; }

.ba-chat-input-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border-radius: 20px;
  padding: 0.3rem 0.5rem;
  font-size: 0.55rem;
  color: #94a3b8;
}

.ba-send-btn-green { color: #25D366; font-size: 0.75rem; }

/* Arrow */
.ba-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 5rem;
  filter: drop-shadow(0 2px 6px rgba(212, 175, 55, 0.3));
}

/* Responsive */
@media (max-width: 1024px) {
  .ba-layout {
    grid-template-columns: 1fr;
  }

  .ba-arrow {
    transform: rotate(90deg);
    padding-top: 0;
  }
}
