/* Componente: Faixa de diferenciais com ilustrações animadas em SVG/CSS */

.pro-diff-band {
  width: 100%;
  background: var(--primary, #4558d8);
  color: #fcfdfb;
  padding: 64px 5%;
}

.pro-diff-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.pro-diff-eyebrow {
  margin: 0 0 32px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(252, 253, 251, 0.8);
}

.pro-diff-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.pro-diff-item {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.pro-diff-stage {
  height: 156px;
  border-radius: 14px;
  background: rgba(252, 253, 251, 0.12);
  border: 1px solid rgba(252, 253, 251, 0.24);
  padding: 14px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.pro-diff-title {
  margin: 0 0 8px;
  font-family: Gloock, Georgia, serif;
  font-weight: 400;
  font-size: clamp(26px, 2.2vw, 32px);
  line-height: 1.15;
  color: #fcfdfb;
}

.pro-diff-copy {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: rgba(252, 253, 251, 0.88);
  max-width: 34ch;
}

/* --- 1. Ilustração: Sem comissão (recibo com linha riscada -> R$ 0,00) --- */
.pro-receipt-card {
  width: 100%;
  max-width: 244px;
  background: #fcfdfb;
  color: #1c3437;
  border-radius: 10px;
  padding: 13px 14px;
  box-shadow: 0 12px 26px rgba(15, 23, 66, 0.24);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pro-receipt-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12.5px;
  font-weight: 600;
}

.pro-receipt-row + .pro-receipt-row {
  padding-top: 9px;
  border-top: 1px dashed rgba(28, 52, 55, 0.16);
}

.pro-receipt-bar {
  width: 68px;
  height: 8px;
  border-radius: 999px;
  background: #d9e1df;
}

.pro-fee-label {
  position: relative;
  display: inline-block;
  color: #617173;
}

.pro-fee-strike {
  position: absolute;
  left: -2px;
  right: -2px;
  top: 52%;
  height: 2px;
  background: #d64545;
  border-radius: 2px;
  transform-origin: left center;
  transform: scaleX(1);
}

.pro-fee-zero {
  padding: 3px 9px;
  border-radius: 999px;
  background: #4558d8;
  color: #fcfdfb;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.pro-diff-band.is-in-view .pro-fee-strike {
  animation: proStrikeLoop 4.6s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

.pro-diff-band.is-in-view .pro-fee-zero {
  animation: proZeroLoop 4.6s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

@keyframes proStrikeLoop {
  0%, 16% {
    transform: scaleX(0);
  }
  34%, 86% {
    transform: scaleX(1);
  }
  96%, 100% {
    transform: scaleX(0);
  }
}

@keyframes proZeroLoop {
  0%, 24% {
    background: #edf2ef;
    color: #617173;
    transform: scale(0.95);
  }
  38% {
    background: #4558d8;
    color: #fcfdfb;
    transform: scale(1.07);
  }
  46%, 86% {
    background: #4558d8;
    color: #fcfdfb;
    transform: scale(1);
  }
  96%, 100% {
    background: #edf2ef;
    color: #617173;
    transform: scale(0.95);
  }
}

/* --- 2. Ilustração: Direto no seu WhatsApp (toque no botão -> mini conversa abre) --- */
.pro-wa-scene {
  width: 100%;
  max-width: 256px;
  height: 118px;
  position: relative;
}

.pro-mini-vitrine {
  width: 196px;
  background: #fcfdfb;
  color: #1c3437;
  border-radius: 10px;
  padding: 11px 12px;
  box-shadow: 0 12px 26px rgba(15, 23, 66, 0.22);
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.pro-mini-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pro-mini-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(69, 88, 216, 0.16);
  border: 1.5px solid #4558d8;
  flex-shrink: 0;
}

.pro-mini-lines {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
}

.pro-mini-line {
  height: 6px;
  border-radius: 999px;
  background: #d9e1df;
  width: 82%;
}

.pro-mini-line.is-short {
  width: 54%;
}

.pro-mini-wa-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 7px 10px;
  border-radius: 7px;
  background: #1f7a5c;
  color: #fcfdfb;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.pro-tap-ripple {
  position: absolute;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #fcfdfb;
  opacity: 0;
  pointer-events: none;
}

.pro-tap-cursor {
  position: absolute;
  right: 48px;
  bottom: 18px;
  width: 22px;
  height: 22px;
  pointer-events: none;
  z-index: 4;
  opacity: 0;
  filter: drop-shadow(0 3px 6px rgba(15, 23, 66, 0.35));
}

.pro-mini-chat {
  position: absolute;
  right: 0;
  bottom: 2px;
  width: 168px;
  background: #ffffff;
  color: #1c3437;
  border-radius: 10px;
  border: 1px solid rgba(28, 52, 55, 0.14);
  box-shadow: 0 14px 28px rgba(15, 23, 66, 0.28);
  padding: 9px 10px;
  z-index: 3;
}

.pro-mini-chat-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  font-weight: 700;
  color: #1f7a5c;
  margin-bottom: 6px;
}

.pro-mini-chat-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #1f7a5c;
}

.pro-mini-chat-msg {
  background: #e8f5ef;
  color: #1c3437;
  border-radius: 8px 8px 8px 3px;
  padding: 6px 8px;
  font-size: 11px;
  line-height: 1.3;
  font-weight: 600;
}

.pro-diff-band.is-in-view .pro-tap-cursor {
  animation: proCursorTap 4.6s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

.pro-diff-band.is-in-view .pro-mini-wa-btn {
  animation: proBtnTap 4.6s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

.pro-diff-band.is-in-view .pro-tap-ripple {
  animation: proRipple 4.6s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

.pro-diff-band.is-in-view .pro-mini-chat {
  animation: proChatOpen 4.6s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

@keyframes proCursorTap {
  0% {
    opacity: 0;
    transform: translate(18px, 16px) scale(1);
  }
  14% {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }
  24% {
    opacity: 1;
    transform: translate(0, 2px) scale(0.86);
  }
  34%, 44% {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }
  52%, 100% {
    opacity: 0;
    transform: translate(8px, 8px) scale(1);
  }
}

@keyframes proBtnTap {
  0%, 20% {
    transform: scale(1);
  }
  25% {
    transform: scale(0.95);
  }
  34%, 100% {
    transform: scale(1);
  }
}

@keyframes proRipple {
  0%, 22% {
    opacity: 0;
    transform: scale(0.4);
  }
  28% {
    opacity: 0.9;
    transform: scale(0.8);
  }
  42%, 100% {
    opacity: 0;
    transform: scale(2.1);
  }
}

@keyframes proChatOpen {
  0%, 30% {
    opacity: 0;
    transform: translateY(12px) scale(0.92);
  }
  44%, 86% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  96%, 100% {
    opacity: 0;
    transform: translateY(10px) scale(0.94);
  }
}

/* --- 3. Ilustração: Você aprova antes (prévia de página recebendo selo Aprovado) --- */
.pro-approve-card {
  width: 100%;
  max-width: 244px;
  background: #fcfdfb;
  color: #1c3437;
  border-radius: 10px;
  padding: 11px 13px;
  box-shadow: 0 12px 26px rgba(15, 23, 66, 0.24);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.pro-approve-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pro-approve-dots {
  display: flex;
  gap: 4px;
}

.pro-approve-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #cfd8d6;
}

.pro-approve-tag {
  font-size: 10px;
  font-weight: 700;
  color: #617173;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pro-approve-body {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pro-approve-thumb {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(69, 88, 216, 0.14);
  flex-shrink: 0;
}

.pro-approve-stamp {
  align-self: flex-end;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1.5px solid #4558d8;
  background: rgba(69, 88, 216, 0.1);
  color: #4558d8;
  font-size: 11.5px;
  font-weight: 700;
  transform: rotate(-2deg);
}

.pro-approve-check {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.pro-approve-check path {
  stroke-dasharray: 24;
  stroke-dashoffset: 0;
}

.pro-diff-band.is-in-view .pro-approve-stamp {
  animation: proStampLoop 4.6s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

.pro-diff-band.is-in-view .pro-approve-check path {
  animation: proCheckDraw 4.6s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

@keyframes proStampLoop {
  0%, 16% {
    opacity: 0;
    transform: scale(1.28) rotate(-8deg);
  }
  30% {
    opacity: 1;
    transform: scale(0.96) rotate(-2deg);
  }
  38%, 86% {
    opacity: 1;
    transform: scale(1) rotate(-2deg);
  }
  96%, 100% {
    opacity: 0;
    transform: scale(1.15) rotate(-5deg);
  }
}

@keyframes proCheckDraw {
  0%, 24% {
    stroke-dashoffset: 24;
  }
  42%, 86% {
    stroke-dashoffset: 0;
  }
  96%, 100% {
    stroke-dashoffset: 24;
  }
}

@media (max-width: 900px) {
  .pro-diff-band {
    padding: 52px 5%;
  }

  .pro-diff-eyebrow {
    margin-bottom: 22px;
  }

  .pro-diff-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pro-diff-band.is-in-view .pro-fee-strike,
  .pro-diff-band.is-in-view .pro-fee-zero,
  .pro-diff-band.is-in-view .pro-tap-cursor,
  .pro-diff-band.is-in-view .pro-mini-wa-btn,
  .pro-diff-band.is-in-view .pro-tap-ripple,
  .pro-diff-band.is-in-view .pro-mini-chat,
  .pro-diff-band.is-in-view .pro-approve-stamp,
  .pro-diff-band.is-in-view .pro-approve-check path {
    animation: none !important;
  }

  .pro-fee-strike {
    transform: scaleX(1);
  }

  .pro-fee-zero {
    background: #4558d8;
    color: #fcfdfb;
    transform: none;
  }

  .pro-tap-cursor,
  .pro-tap-ripple {
    opacity: 0;
  }

  .pro-mini-chat {
    opacity: 1;
    transform: none;
  }

  .pro-approve-stamp {
    opacity: 1;
    transform: rotate(-2deg);
  }

  .pro-approve-check path {
    stroke-dashoffset: 0;
  }
}
