/* ============================================================================
   RADAR SÃO JOSÉ - PREVIEW TEASER, BLUR & STICKY SALES CARD
   Aplicável a Pesquisa Quantitativa, Report Exclusivo e Inteligência de Mídia
   Design otimizado para Alto Contraste no Modo Claro e Modo Escuro
   ============================================================================ */

.pesquisa-preview,
.pesquisa-preview-container,
.pesquisa-preview *,
.pesquisa-preview-container * {
  box-sizing: border-box;
}

.pesquisa-preview,
.pesquisa-preview-container {
  position: relative;
  isolation: isolate;
  margin-top: 24px;
  width: 100%;
  padding-bottom: 60px;
}

.pesquisa-preview:not(.is-unlocked),
.pesquisa-preview-container:not(.is-unlocked) {
  cursor: pointer;
}

/* Cortina suave de degradê sobre o desfoque */
.pesquisa-preview:not(.is-unlocked)::before,
.pesquisa-preview-container:not(.is-unlocked)::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0) 0%, rgba(248, 250, 252, 0.45) 180px, rgba(248, 250, 252, 0.25) 100%);
  pointer-events: none;
}

/* Conteúdo desfocado */
.pesquisa-preview-content {
  display: flex;
  flex-direction: column;
  gap: 32px;
  filter: blur(8px);
  opacity: 0.52;
  pointer-events: none;
  user-select: none;
  transition: filter 0.35s ease, opacity 0.35s ease;
}

/* Wrapper Sticky - Desce e acompanha a tela do usuário perfeitamente */
.pesquisa-preview-sticky-wrap {
  position: sticky;
  top: 96px;
  z-index: 35;
  width: 100%;
  pointer-events: none;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  margin-bottom: -540px;
  overflow: visible;
}

/* Caixinha de Venda Flutuante - Padrão Modo Claro (Card Elegante, 100% Legível) */
.pesquisa-preview-notice {
  pointer-events: auto;
  width: calc(100% - 24px);
  max-width: 620px;
  margin: 16px auto;
  padding: 36px 40px;
  border-radius: 24px;
  background: #FFFFFF;
  color: #0F172A;
  text-align: center;
  box-shadow: 0 20px 50px -10px rgba(11, 37, 69, 0.18), 0 0 25px rgba(6, 182, 212, 0.08);
  border: 1px solid #CBD5E1;
  font-family: inherit;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: auto !important;
  opacity: 1 !important;
  visibility: visible !important;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
}

.pesquisa-preview:not(.is-unlocked):hover .pesquisa-preview-notice,
.pesquisa-preview-container:not(.is-unlocked):hover .pesquisa-preview-notice {
  box-shadow: 0 26px 60px -12px rgba(11, 37, 69, 0.25), 0 0 35px rgba(6, 182, 212, 0.15);
  transform: translateY(-2px);
}

/* Badge Neon / Destaque */
.pesquisa-preview-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #0891b2;
  background: #ecfeff;
  border: 1px solid #a5f3fc;
  border-radius: 9999px;
  padding: 6px 14px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.pesquisa-preview-badge::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #06b6d4;
  box-shadow: 0 0 6px #06b6d4;
}

/* Ícone de Cadeado */
.pesquisa-preview-lock {
  font-size: 24px;
  margin: 14px 0 10px;
  line-height: 1;
}

/* Título */
.pesquisa-preview-notice h2 {
  font-size: clamp(20px, 2.2vw, 25px);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.5px;
  margin: 10px 0 12px;
  color: #0B2545;
}

/* Descrição / Copy */
.pesquisa-preview-notice p {
  font-size: 13.5px;
  line-height: 1.6;
  color: #475569;
  margin: 0 auto 18px;
  max-width: 500px;
}

/* Lista de Benefícios */
.pesquisa-preview-notice ul {
  display: grid;
  gap: 8px;
  text-align: left;
  margin: 0 auto 20px;
  max-width: 460px;
  font-size: 13px;
  list-style: none;
  padding: 0;
  color: #1E293B;
}

.pesquisa-preview-notice li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.pesquisa-preview-notice li::before {
  content: '✓';
  color: #0891b2;
  font-weight: 900;
  font-size: 13px;
  line-height: 1.2;
}

/* Área de Ação */
.pesquisa-preview-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  align-items: center;
  margin-top: 10px;
}

.pesquisa-preview-notice button,
.btn-open-plans-checkout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  max-width: 380px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, #0284c7 0%, #06b6d4 50%, #059669 100%);
  color: #ffffff;
  padding: 14px 20px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(2, 132, 199, 0.28);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.pesquisa-preview-notice button:hover,
.btn-open-plans-checkout:hover {
  background: linear-gradient(135deg, #0369a1 0%, #0891b2 50%, #047857 100%);
  transform: translateY(-1.5px);
  box-shadow: 0 14px 30px rgba(2, 132, 199, 0.4);
}

.pesquisa-preview-notice button:active,
.btn-open-plans-checkout:active {
  transform: scale(0.98);
}

.pesquisa-preview-guarantee {
  font-size: 11.5px;
  font-weight: 600;
  color: #64748B;
  margin-top: 4px;
}

/* Estado Desbloqueado */
.pesquisa-preview.is-unlocked,
.pesquisa-preview-container.is-unlocked {
  cursor: default;
  padding-bottom: 0;
  margin-top: 0;
}

.is-unlocked .pesquisa-preview-sticky-wrap {
  display: none !important;
}

.is-unlocked .pesquisa-preview-content {
  filter: none !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  user-select: auto !important;
  padding: 0 !important;
}

.is-unlocked::before {
  display: none !important;
}

/* Harmonização no Dark Mode */
html.dark .pesquisa-preview-notice {
  background: radial-gradient(120% 120% at 50% 10%, #0F172A 0%, #020617 100%);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.7), 0 0 35px rgba(6, 182, 212, 0.2);
}

html.dark .pesquisa-preview:not(.is-unlocked):hover .pesquisa-preview-notice,
html.dark .pesquisa-preview-container:not(.is-unlocked):hover .pesquisa-preview-notice {
  box-shadow: 0 30px 70px -15px rgba(0, 0, 0, 0.85), 0 0 45px rgba(6, 182, 212, 0.35);
}

html.dark .pesquisa-preview-badge {
  color: #22d3ee;
  background: rgba(34, 211, 238, 0.1);
  border-color: rgba(34, 211, 238, 0.3);
}

html.dark .pesquisa-preview-badge::before {
  background: #22d3ee;
  box-shadow: 0 0 8px #22d3ee;
}

html.dark .pesquisa-preview-notice h2 {
  color: #ffffff;
}

html.dark .pesquisa-preview-notice p {
  color: #cbd5e1;
}

html.dark .pesquisa-preview-notice ul {
  color: #e2e8f0;
}

html.dark .pesquisa-preview-notice li::before {
  color: #22d3ee;
}

html.dark .pesquisa-preview-notice button,
html.dark .btn-open-plans-checkout {
  background: linear-gradient(135deg, #06b6d4 0%, #22d3ee 50%, #10b981 100%);
  color: #041324;
  box-shadow: 0 10px 25px rgba(6, 182, 212, 0.35);
}

html.dark .pesquisa-preview-notice button:hover,
html.dark .btn-open-plans-checkout:hover {
  background: linear-gradient(135deg, #22d3ee 0%, #38bdf8 50%, #34d399 100%);
  box-shadow: 0 14px 30px rgba(6, 182, 212, 0.5);
}

html.dark .pesquisa-preview-guarantee {
  color: #94a3b8;
}

html.dark .pesquisa-preview:not(.is-unlocked)::before,
html.dark .pesquisa-preview-container:not(.is-unlocked)::before {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0) 0%, rgba(15, 23, 42, 0.55) 180px, rgba(15, 23, 42, 0.3) 100%);
}

/* Responsividade Mobile */
@media (max-width: 640px) {
  .pesquisa-preview-sticky-wrap {
    top: 72px;
    margin-bottom: -460px;
  }
  .pesquisa-preview-notice {
    padding: 24px 20px;
    max-width: calc(100% - 16px);
    margin-top: 10px;
    border-radius: 20px;
  }
  .pesquisa-preview-notice h2 {
    font-size: 19px;
    margin-bottom: 10px;
  }
  .pesquisa-preview-notice p {
    font-size: 12.5px;
    margin-bottom: 14px;
  }
  .pesquisa-preview-notice ul {
    font-size: 12px;
    gap: 6px;
    margin-bottom: 16px;
  }
  .pesquisa-preview-notice button,
  .btn-open-plans-checkout {
    padding: 13px 18px;
    font-size: 13px;
  }
}

@media print {
  .pesquisa-preview:not(.is-unlocked) .pesquisa-preview-content,
  .pesquisa-preview-container:not(.is-unlocked) .pesquisa-preview-content {
    visibility: hidden;
  }
}
