/*
=================================
Cigana Esmeralda — Estilos Principais
=================================
Cores principais:
  - Fundo: #16295c / #122452 / #1a2f66 / #24407e
  - Rosa destaque: #ec4899 / #e11d48 / #f9a8c9 / #db2777
  - Verde CTA: #128a3e / #0c6e30
  - Texto: #fff / #374151 / #b9c4de
*/

/* ============ RESET / BASE ============ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  min-height: 100vh;
  color: #fff;
  background-color: #1a0b2e;
  background-image:
    radial-gradient(ellipse 90% 55% at 15% 20%, rgba(255,255,255,.10), transparent 60%),
    radial-gradient(ellipse 70% 45% at 85% 35%, rgba(244,114,182,.10), transparent 60%),
    radial-gradient(ellipse 100% 60% at 50% 90%, rgba(192,132,252,.16), transparent 65%),
    radial-gradient(ellipse 60% 40% at 70% 75%, rgba(255,255,255,.07), transparent 60%),
    linear-gradient(180deg, #180929 0%, #280e40 55%, #3c1461 100%);
  background-attachment: fixed;
  overflow-x: hidden;
}

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 28px 16px 60px;
  text-align: center;
}

/* ============ LOGO ============ */
.logo {
  display: flex;
  justify-content: center;
  margin-bottom: 26px;
  user-select: none;
}

.logo-img {
  width: 190px;
  height: auto;
  display: block;
  filter: drop-shadow(0 0 16px rgba(255,255,255,.30));
}

/* ============ TIPOGRAFIA ============ */
.headline {
  font-size: clamp(28px, 4.6vw, 46px);
  font-weight: 800;
  line-height: 1.18;
  color: #f9a8c9;
  text-shadow: 0 2px 18px rgba(0,0,0,.35);
  max-width: 860px;
  margin: 0 auto 22px;
}

.subheadline {
  font-size: clamp(16px, 2.2vw, 22px);
  font-weight: 600;
  color: #ec4899;
  text-shadow: 0 1px 10px rgba(0,0,0,.3);
  max-width: 720px;
  margin: 0 auto 30px;
  line-height: 1.45;
}

/* ============ PÍLULA / CONTADOR ============ */
.pill {
  display: inline-block;
  background: rgba(255,255,255,.94);
  color: #db2777;
  font-size: clamp(14px, 1.8vw, 17px);
  font-weight: 600;
  padding: 12px 26px;
  border-radius: 999px;
  border: 2px dashed #ec4899;
  box-shadow: 0 4px 18px rgba(0,0,0,.25);
  margin-bottom: 34px;
  transition: transform .25s ease;
}

.pill.bump {
  animation: bump .4s ease;
}

@keyframes bump {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.08); }
  100% { transform: scale(1); }
}

/* ============ CARTAS ============ */
.cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  max-width: 960px;
  margin: 0 auto 30px;
  perspective: 1200px;
}

.card {
  width: 136px;
  aspect-ratio: 1 / 1.7;
  cursor: pointer;
  position: relative;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), filter .4s ease, opacity .4s ease;
  border-radius: 12px;
}

.card:not(.flipped):not(.dimmed):hover {
  transform: translateY(-12px) scale(1.05);
}

.card-inner {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transition: transform .75s cubic-bezier(.34, 1.3, .64, 1);
  border-radius: 12px;
}

.card.flipped .card-inner {
  transform: rotateY(180deg);
}

.card-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 28px -4px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(212, 175, 55, 0.45);
  transition: box-shadow .35s ease;
}

.card-back {
  background: #140728;
  position: relative;
}

.card-back svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Reflexo metálico suave ao passar o cursor */
.card-back::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    115deg,
    transparent 35%,
    rgba(255, 245, 200, 0.18) 48%,
    rgba(255, 255, 255, 0.35) 50%,
    rgba(255, 245, 200, 0.18) 52%,
    transparent 65%
  );
  transform: rotate(-25deg) translateY(-120%);
  transition: transform .7s ease;
  pointer-events: none;
  opacity: 0;
}

.card:not(.flipped):not(.dimmed):hover .card-face {
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.85), 0 0 0 1.5px #fbf5b7, 0 0 24px rgba(212, 175, 55, 0.6), 0 0 40px rgba(168, 85, 247, 0.35);
}

.card:not(.flipped):not(.dimmed):hover .card-back::after {
  transform: rotate(-25deg) translateY(120%);
  opacity: 1;
}

.card-front {
  transform: rotateY(180deg);
  background: #fdf6e7;
  border: 2px solid #d4af37;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-front img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #fdf6e7;
}

.card-front .ph {
  font-weight: 700;
  color: #8a6d3b;
  font-size: 15px;
  padding: 8px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.card.flipped {
  cursor: default;
}

.card.flipped .card-face {
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.8), 0 0 0 2px #d4af37, 0 0 28px rgba(212, 175, 55, 0.55), 0 0 40px rgba(236, 72, 153, 0.45);
}

.card.dimmed {
  opacity: .32;
  filter: grayscale(.8) brightness(.65);
  pointer-events: none;
  transform: scale(0.97);
}

/* ============ ETAPA 2 — ALERTA ============ */
.stage2 {
  display: none;
  margin-top: 38px;
}

.stage2.show {
  display: block;
  animation: fadeUp .8s ease both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

.alert-box {
  background: #f7f7fa;
  color: #374151;
  border: 2px solid #ec4899;
  border-radius: 22px;
  max-width: 640px;
  margin: 0 auto 30px;
  padding: 34px 30px 30px;
  box-shadow: 0 10px 40px rgba(0,0,0,.35);
  text-align: center;
}

.alert-box .warn {
  font-size: 42px;
  line-height: 1;
  margin-bottom: 14px;
}

.alert-box h2 {
  color: #e11d48;
  font-size: clamp(19px, 2.6vw, 24px);
  font-weight: 800;
  letter-spacing: .02em;
  margin-bottom: 18px;
  text-transform: uppercase;
}

.alert-box p {
  font-size: clamp(15px, 1.9vw, 17px);
  line-height: 1.6;
  margin-bottom: 16px;
}

.alert-box p:last-child {
  margin-bottom: 0;
}

.alert-box b {
  color: #e11d48;
}

/* ============ BOTÃO CTA ROSA ============ */
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #ec4899 0%, #e11d48 100%);
  color: #fff;
  font-size: clamp(16px, 2.2vw, 20px);
  font-weight: 800;
  letter-spacing: .03em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 20px 44px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  box-shadow: 0 0 34px rgba(236,72,153,.65), 0 8px 22px rgba(0,0,0,.3);
  transition: transform .2s ease, box-shadow .2s ease;
  animation: pulse 2.2s ease-in-out infinite;
}

.cta-btn:hover {
  transform: scale(1.04);
  box-shadow: 0 0 46px rgba(236,72,153,.85), 0 10px 26px rgba(0,0,0,.35);
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 26px rgba(236,72,153,.5), 0 8px 22px rgba(0,0,0,.3); }
  50%      { box-shadow: 0 0 46px rgba(236,72,153,.85), 0 8px 22px rgba(0,0,0,.3); }
}

/* ============ ETAPA 3 — VSL ============ */
.vsl-headline {
  margin-bottom: 16px;
}

.vsl-sub {
  margin-bottom: 28px;
}

.vsl-container {
  max-width: 420px;
  margin: 0 auto 30px;
}

.vsl-container > * {
  max-width: 100%;
}

/* --- Placeholder do player de vídeo --- */
.video-placeholder {
  position: relative;
  width: 100%;
  padding-top: 177.78%; /* Proporção 9:16 (vertical) */
  background: #000;
  border-radius: 12px;
  overflow: hidden;
}

.video-placeholder iframe,
.video-placeholder video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-placeholder-msg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #888;
  font-size: 16px;
  text-align: center;
  padding: 20px;
  line-height: 1.5;
}

.video-placeholder-msg .icon {
  font-size: 48px;
  display: block;
  margin-bottom: 12px;
}

/* --- Botão verde (CTA final) --- */
.cta-green {
  display: none;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #128a3e 0%, #0c6e30 100%);
  color: #fff;
  font-size: clamp(17px, 2.3vw, 21px);
  font-weight: 700;
  letter-spacing: .01em;
  text-decoration: none;
  padding: 19px 42px;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  box-shadow:
    0 0 0 0 rgba(52,211,153,0),
    0 0 26px rgba(52,211,153,.38),
    0 6px 18px rgba(0,0,0,.35);
  animation: greenBreath 2.8s ease-in-out infinite;
  transition: transform .2s ease, box-shadow .2s ease;
  margin-top: 6px;
}

.cta-green.show {
  display: inline-flex;
  animation: fadeUp .7s ease both, greenBreath 2.8s ease-in-out .7s infinite;
}

.cta-green:hover {
  transform: scale(1.03);
  box-shadow: 0 0 44px rgba(52,211,153,.65), 0 8px 22px rgba(0,0,0,.4);
}

@keyframes greenBreath {
  0%, 100% { transform: scale(1);    box-shadow: 0 0 18px rgba(52,211,153,.28), 0 6px 18px rgba(0,0,0,.35); }
  50%      { transform: scale(1.02); box-shadow: 0 0 38px rgba(52,211,153,.55), 0 6px 18px rgba(0,0,0,.35); }
}

/* ============ RODAPÉ ============ */
.footer {
  margin-top: 44px;
  font-size: 14px;
  color: #d8b4fe;
}

/* ============ UTILITÁRIOS ============ */
.hidden {
  display: none !important;
}

/* ============ MODAL DE SAÍDA COM DESCONTO ============ */
.exit-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(10, 3, 22, 0.84);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: exitFadeIn 0.3s ease-out;
}

.exit-modal {
  position: relative;
  width: 100%;
  max-width: 480px;
  background: linear-gradient(180deg, #250d3d 0%, #150624 100%);
  border: 1.5px solid rgba(212, 175, 55, 0.55);
  border-radius: 20px;
  padding: 32px 22px 24px;
  text-align: center;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85), 0 0 35px rgba(168, 85, 247, 0.35);
  animation: exitScaleUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.exit-close-btn {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 34px;
  height: 34px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #d8b4fe;
  font-size: 24px;
  line-height: 1;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.exit-close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  transform: scale(1.08);
}

.exit-badge {
  display: inline-block;
  background: #dc2626;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 5px 14px;
  border-radius: 999px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 14px;
  box-shadow: 0 2px 10px rgba(220, 38, 38, 0.45);
}

.exit-title {
  font-size: clamp(20px, 4vw, 24px);
  font-weight: 800;
  line-height: 1.25;
  color: #f9a8c9;
  margin-bottom: 12px;
}

.exit-subtitle {
  font-size: 14px;
  line-height: 1.5;
  color: #e9d5ff;
  margin-bottom: 18px;
}

.exit-subtitle b {
  color: #fef08a;
}

.exit-price-box {
  background: rgba(0, 0, 0, 0.42);
  border: 1px dashed rgba(212, 175, 55, 0.5);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 20px;
}

.exit-price-old {
  display: block;
  font-size: 13px;
  color: #9ca3af;
  text-decoration: line-through;
  margin-bottom: 2px;
}

.exit-price-now {
  font-size: clamp(24px, 5vw, 32px);
  font-weight: 900;
  color: #4ade80;
  text-shadow: 0 0 16px rgba(74, 222, 128, 0.45);
}

.exit-price-installments {
  display: block;
  font-size: 12px;
  color: #cbd5e1;
  margin-top: 4px;
}

.exit-cta-btn {
  display: block;
  width: 100%;
  padding: 16px 18px;
  border-radius: 12px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.45);
  animation: exitPulseGreen 2.2s infinite;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}

.exit-cta-btn:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 28px rgba(16, 185, 129, 0.65);
}

.exit-dismiss-link {
  display: inline-block;
  margin-top: 14px;
  background: none;
  border: none;
  font-size: 12px;
  color: #94a3b8;
  text-decoration: underline;
  cursor: pointer;
  padding: 4px;
  transition: color 0.2s;
  font-family: inherit;
}

.exit-dismiss-link:hover {
  color: #e2e8f0;
}

@keyframes exitFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes exitScaleUp {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes exitPulseGreen {
  0%, 100% { transform: scale(1); box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4); }
  50% { transform: scale(1.02); box-shadow: 0 8px 30px rgba(16, 185, 129, 0.65); }
}

/* ============ RESPONSIVO — MOBILE ============ */
@media (max-width: 640px) {
  .wrap {
    padding: 20px 12px 48px;
  }
  .logo-img {
    width: 150px;
  }
  .cards {
    gap: 10px;
    max-width: 400px;
  }
  .card {
    width: calc((100% - 20px) / 3);
  }
  .alert-box {
    padding: 26px 20px 24px;
  }
  .cta-btn {
    width: 100%;
    padding: 18px 20px;
  }
  .cta-green.show {
    width: 100%;
    padding: 18px 20px;
  }
}

/* ============ ACESSIBILIDADE ============ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition-duration: .01ms !important;
  }
}
