/* ── 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 160px 1fr;
  gap: 1.5rem;
  align-items: start;
}

/* ── Cards ── */
.ba-card {
  border-radius: 20px;
  padding: 2rem;
  position: relative;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
}

.ba-before {
  background: #FEF2F2;
  border: 1px solid #fecaca;
  overflow: hidden;
}

.ba-after {
  background: #F0FFF4;
  border: 1px solid #86efac;
  overflow: visible;
  padding-bottom: 220px; /* space for phone mockup */
}

/* ── Envelope watermarks (Antes card) ── */
.ba-watermarks {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.ba-wm {
  position: absolute;
  display: block;
}

.ba-wm1 { width: 110px; bottom: 220px; right: 30px; transform: rotate(-10deg); opacity: 0.22; }
.ba-wm2 { width: 90px;  bottom: 120px; right: 10px; transform: rotate(6deg);   opacity: 0.18; }
.ba-wm3 { width: 75px;  bottom: 30px;  right: 40px; transform: rotate(-14deg); opacity: 0.14; }
.ba-wm4 { width: 100px; bottom: 170px; right: 130px; transform: rotate(4deg);  opacity: 0.16; }
.ba-wm5 { width: 80px;  bottom: 60px;  right: 140px; transform: rotate(-8deg); opacity: 0.13; }

/* ── Label + title ── */
.ba-label {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.3rem 1.1rem;
  border-radius: 50px;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.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;
  position: relative;
  z-index: 1;
}

/* ── List items ── */
.ba-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  z-index: 1;
}

.ba-list li {
  display: flex;
  align-items: flex-start;
  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.68rem;
  font-weight: 900;
  flex-shrink: 0;
  margin-top: 1px;
}

.ba-no  { background: #ef4444; color: #fff; }
.ba-yes { background: #25D366; color: #fff; }

.ba-item-text {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
}

.ba-item-text strong {
  font-size: 1rem;
  font-weight: 700;
  color: #0B2E3A;
  line-height: 1.3;
}

.ba-item-text span {
  font-size: 0.82rem;
  color: #94a3b8;
  line-height: 1.4;
}

/* ── Center: arc + transform card ── */
.ba-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 2rem;
  gap: 0.25rem;
}

.ba-arc-svg {
  width: 120px;
  height: 90px;
  overflow: visible;
}

.ba-transform-card {
  background: #fff;
  border-radius: 16px;
  padding: 1.1rem 1.25rem;
  text-align: center;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.10);
  border: 1px solid #E5E7EB;
  width: 155px;
}

.ba-transform-card p {
  margin: 0;
  font-size: 0.92rem;
  color: #0B2E3A;
  line-height: 1.5;
}

.ba-transform-card strong {
  color: #0B2E3A;
}

/* ── CRM Phone mockup (Depois card) ── */
.ba-crm-phone {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 3;
}

.ba-crm-frame {
  width: 168px;
  background: #0B2E3A;
  border-radius: 24px;
  padding: 8px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.22);
}

.ba-crm-header {
  background: #0F3D4C;
  border-radius: 18px 18px 0 0;
  padding: 0.55rem 0.65rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.ba-crm-logo-wrap {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: rgba(255,255,255,0.1);
}

.ba-crm-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ba-crm-header-text {
  display: flex;
  flex-direction: column;
}

.ba-crm-header-text strong {
  color: #fff;
  font-size: 0.68rem;
  display: block;
}

.ba-crm-header-text small {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.56rem;
}

.ba-crm-body {
  background: #F8FAFC;
  border-radius: 0 0 18px 18px;
  padding: 0.5rem 0.55rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

/* Contact card */
.ba-crm-contact {
  background: #fff;
  border-radius: 10px;
  padding: 0.4rem 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid #E5E7EB;
}

.ba-crm-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #E5E7EB;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ba-crm-contact-info {
  display: flex;
  flex-direction: column;
}

.ba-crm-contact-info span {
  font-size: 0.65rem;
  font-weight: 700;
  color: #0B2E3A;
}

.ba-crm-contact-info small {
  font-size: 0.55rem;
  color: #94a3b8;
}

/* Activity rows */
.ba-crm-row {
  background: #fff;
  border-radius: 8px;
  padding: 0.35rem 0.45rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid #F1F5F9;
}

.ba-crm-row-icon {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ba-crm-doc  { background: rgba(15, 61, 76, 0.08); }
.ba-crm-check { background: rgba(37, 211, 102, 0.10); }
.ba-crm-bar  { background: #F1F5F9; }

.ba-crm-row-content {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.ba-crm-row-content span {
  font-size: 0.62rem;
  font-weight: 600;
  color: #0B2E3A;
}

.ba-crm-row-content small {
  font-size: 0.54rem;
  color: #94a3b8;
}

.ba-crm-row-text {
  font-size: 0.62rem;
  color: #475569;
}

/* File row */
.ba-crm-file {
  background: #fff;
  border-radius: 8px;
  padding: 0.35rem 0.45rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid #F1F5F9;
}

.ba-crm-file span {
  flex: 1;
  font-size: 0.62rem;
  font-weight: 600;
  color: #0B2E3A;
}

.ba-crm-file-arrow {
  flex-shrink: 0;
}

/* Bottom row */
.ba-crm-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.2rem 0.1rem 0;
}

.ba-crm-bottom > span {
  font-size: 0.58rem;
  color: #94a3b8;
}

.ba-crm-btn {
  width: 26px;
  height: 20px;
  border-radius: 6px;
  background: #0F3D4C;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 2px;
}

.ba-crm-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

  /* Oculta envelopes decorativos — evita renderização quebrada no mobile */
  .ba-watermarks {
    display: none;
  }

  .ba-before {
    overflow: hidden;
  }

  .ba-center {
    flex-direction: row;
    padding-top: 0;
    justify-content: center;
    gap: 1rem;
  }

  .ba-arc-svg {
    transform: rotate(90deg);
  }

  /* Phone mockup sai do absolute e entra no fluxo normal */
  .ba-after {
    overflow: hidden;
    padding-bottom: 2rem;
  }

  .ba-crm-phone {
    position: static;
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
  }

  .ba-crm-frame {
    width: 100%;
    max-width: 300px;
  }

  /* Garante que item-text seja coluna */
  .ba-item-text {
    display: flex;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  /* Oculta o mockup CRM em telas muito pequenas */
  .ba-crm-phone {
    display: none;
  }

  .ba-center {
    flex-direction: column;
    align-items: center;
  }

  .ba-arc-svg {
    transform: rotate(90deg);
    width: 70px;
    height: 55px;
  }

  .ba-transform-card {
    width: 100%;
    max-width: 240px;
  }

  .ba-subtitle {
    font-size: 1.1rem;
  }

  .ba-item-text strong {
    font-size: 0.95rem;
  }
}
