/* arquivo: assets/css/style.css */
/* PreviPro — Design System */

/* ══════════════════════════════════════════
   TOKENS & RESET
══════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,600;0,9..144,700;1,9..144,400&family=DM+Sans:wght@400;500;600&display=swap');

:root {
  /* Cores */
  --brand-green:   #1a7a4a;
  --brand-green-d: #145e39;
  --brand-green-l: #e8f5ee;
  --accent-gold:   #d4891a;
  --accent-gold-l: #fef3e0;
  --text-dark:     #1a1f1b;
  --text-mid:      #3d4a40;
  --text-light:    #6b7c70;
  --border:        #d0dbd3;
  --surface:       #f5f8f5;
  --white:         #ffffff;
  --danger:        #c0392b;
  --shadow-sm:     0 2px 8px rgba(0,0,0,.07);
  --shadow-md:     0 8px 32px rgba(0,0,0,.12);
  --shadow-lg:     0 20px 60px rgba(0,0,0,.18);
  --radius-sm:     8px;
  --radius-md:     14px;
  --radius-lg:     22px;
  --radius-xl:     32px;

  /* Tipografia */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  /* Transições */
  --ease: cubic-bezier(.4,0,.2,1);
  --dur: 220ms;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 18px; }

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a  { color: var(--brand-green); text-decoration: none; }

/* ══════════════════════════════════════════
   UTILITÁRIOS
══════════════════════════════════════════ */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}
.text-center { text-align: center; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}

/* ══════════════════════════════════════════
   HEADER / NAV
══════════════════════════════════════════ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  background: rgba(26,31,27,.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.08);
  padding: 14px 0;
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
}
.logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--brand-green);
  letter-spacing: -.01em;
}
.logo span { color: var(--accent-gold); }

.logo-img {
  display: inline-flex;
  align-items: center;
  font-size: 0; /* oculta texto residual */
}
.logo-img img {
  display: block;
  width: auto;
}


.nav-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #25D366;
  color: var(--white) !important;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: .9rem;
  transition: background var(--dur) var(--ease);
  white-space: nowrap;
}
.nav-whatsapp:hover { background: #1ebe5b; }
.nav-whatsapp svg { flex-shrink: 0; }

/* Nav direita — agrupa os dois botões */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

@media (max-width: 600px) {
  .nav-whatsapp span.nav-label { display: none; }
  .nav-whatsapp { padding: 10px 14px; }
}

/* ══════════════════════════════════════════
   HERO
══════════════════════════════════════════ */
.hero {
  padding-top: 100px;
  background:
    linear-gradient(165deg, rgba(14,74,42,.88) 0%, rgba(26,122,74,.78) 50%, rgba(34,160,92,.72) 100%),
    url('https://previpro.com.br/imagens/banner.jpg') center center / cover no-repeat;
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 30% 100%, rgba(212,137,26,.22) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 100% 0%, rgba(0,0,0,.15) 0%, transparent 55%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  width: 100%;
  padding: 80px 0;
}

.hero-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.18;
  margin-bottom: 20px;
}

.hero-copy h1 em {
  font-style: italic;
  color: #ffe99a;
}

.hero-copy p {
  font-size: 1.15rem;
  color: rgba(255,255,255,.85);
  margin-bottom: 36px;
  max-width: 480px;
}

.hero-microcopy {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 20px;
}
.hero-microcopy span {
  color: rgba(255,255,255,.8);
  font-size: .95rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-microcopy .checkmark {
  color: #ffe99a;
  font-weight: 700;
}

/* Card de captura no hero */
.hero-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.hero-card::before {
  content: '';
  position: absolute;
  top: -2px; left: 24px; right: 24px;
  height: 4px;
  background: linear-gradient(90deg, var(--brand-green), var(--accent-gold));
  border-radius: 0 0 4px 4px;
}

.hero-card h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 24px;
  text-align: center;
}

/* ══════════════════════════════════════════
   FORMULÁRIOS
══════════════════════════════════════════ */
.form-group {
  margin-bottom: 18px;
}
.form-group label {
  display: block;
  font-weight: 600;
  font-size: .95rem;
  color: var(--text-mid);
  margin-bottom: 7px;
}
.form-group select,
.form-group textarea,
.form-group input[type="text"],
.form-group input[type="tel"] {
  width: 100%;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-dark);
  background: var(--white);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  -webkit-appearance: none;
  appearance: none;
}
.form-group select:focus,
.form-group textarea:focus,
.form-group input:focus {
  outline: none;
  border-color: var(--brand-green);
  box-shadow: 0 0 0 4px rgba(26,122,74,.12);
}
.form-group textarea {
  min-height: 110px;
  resize: vertical;
}
.form-group .select-wrapper {
  position: relative;
}
.form-group .select-wrapper::after {
  content: '▾';
  position: absolute; right: 14px; top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  pointer-events: none;
}

/* ══════════════════════════════════════════
   BOTÕES
══════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  border-radius: var(--radius-md);
  transition: all var(--dur) var(--ease);
  text-decoration: none;
  letter-spacing: .01em;
}
.btn-primary {
  background: var(--accent-gold);
  color: var(--white);
  padding: 16px 28px;
  width: 100%;
  font-size: 1.1rem;
  box-shadow: 0 4px 20px rgba(212,137,26,.35);
}
.btn-primary:hover {
  background: #b8770e;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(212,137,26,.45);
}
.btn-primary:active { transform: translateY(0); }

.btn-primary:disabled {
  opacity: .65;
  cursor: not-allowed;
  transform: none;
}

.btn-green {
  background: var(--brand-green);
  color: var(--white);
  padding: 16px 28px;
  width: 100%;
  font-size: 1.05rem;
  box-shadow: 0 4px 20px rgba(26,122,74,.3);
}
.btn-green:hover {
  background: var(--brand-green-d);
  transform: translateY(-2px);
}

.btn-whatsapp {
  background: #25D366;
  color: var(--white);
  padding: 18px 32px;
  border-radius: var(--radius-md);
  font-size: 1.1rem;
  gap: 12px;
  box-shadow: 0 6px 24px rgba(37,211,102,.35);
}
.btn-whatsapp:hover {
  background: #1ebe5b;
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--text-mid);
  border: 2px solid var(--border);
  padding: 12px 20px;
  font-size: .95rem;
}
.btn-outline:hover { border-color: var(--brand-green); color: var(--brand-green); }

/* ══════════════════════════════════════════
   LOADER
══════════════════════════════════════════ */
.loader {
  display: inline-block;
  width: 20px; height: 20px;
  border: 3px solid rgba(255,255,255,.3);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ══════════════════════════════════════════
   DOR — SEÇÃO IDENTIFICAÇÃO
══════════════════════════════════════════ */
.dor-section {
  padding: 80px 0;
  background: var(--surface);
}
.section-label {
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brand-green);
  margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.2;
  margin-bottom: 16px;
}
.section-sub {
  font-size: 1.05rem;
  color: var(--text-light);
  max-width: 560px;
  margin: 0 auto;
}

.dor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 48px;
}
.dor-card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.dor-card:hover {
  border-color: var(--brand-green);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.dor-icon {
  font-size: 2.2rem;
  margin-bottom: 16px;
}
.dor-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 10px;
}
.dor-card p {
  font-size: .95rem;
  color: var(--text-light);
  line-height: 1.55;
}

/* ══════════════════════════════════════════
   COMO FUNCIONA
══════════════════════════════════════════ */
.como-section {
  padding: 80px 0;
}
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0;
  margin-top: 56px;
  position: relative;
}
.steps-grid::before {
  content: '';
  position: absolute;
  top: 40px; left: 10%; right: 10%;
  height: 2px;
  background: linear-gradient(90deg, var(--brand-green), var(--accent-gold));
  z-index: 0;
}
.step {
  text-align: center;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}
.step-num {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: var(--brand-green);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 0 0 8px var(--brand-green-l);
}
.step:nth-child(even) .step-num { background: var(--accent-gold); box-shadow: 0 0 0 8px var(--accent-gold-l); }
.step h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-dark);
}
.step p { font-size: .92rem; color: var(--text-light); }

/* ══════════════════════════════════════════
   QUEBRA DE OBJEÇÃO
══════════════════════════════════════════ */
.objection-section {
  padding: 80px 0;
  background: var(--brand-green);
  position: relative;
  overflow: hidden;
}
.objection-section::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Ccircle cx='40' cy='40' r='3'/%3E%3C/g%3E%3C/svg%3E");
}
.objection-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.objection-text h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  color: var(--white);
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.15;
}
.objection-text p {
  color: rgba(255,255,255,.82);
  font-size: 1.05rem;
  margin-bottom: 16px;
}
.objection-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 28px;
}
.objection-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: rgba(255,255,255,.9);
  font-size: 1rem;
}
.objection-list .check {
  width: 22px; height: 22px; min-width: 22px;
  background: var(--accent-gold);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem;
  color: var(--white);
  margin-top: 2px;
}
.objection-visual {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.stat-card {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  backdrop-filter: blur(8px);
}
.stat-num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  color: #ffe99a;
  line-height: 1;
  margin-bottom: 6px;
}
.stat-desc { color: rgba(255,255,255,.75); font-size: .92rem; }

/* ══════════════════════════════════════════
   AUTORIDADE
══════════════════════════════════════════ */
.autoridade-section {
  padding: 80px 0;
  background: var(--surface);
}
.autoridade-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.badge-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 28px;
}
.badge-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
}
.badge-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
}
.badge-text strong {
  display: block;
  font-size: .98rem;
  color: var(--text-dark);
  margin-bottom: 3px;
}
.badge-text span {
  font-size: .87rem;
  color: var(--text-light);
}
.autoridade-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(135deg, var(--brand-green-l) 0%, #c8e6d8 100%);
  padding: 40px;
  text-align: center;
  box-shadow: var(--shadow-md);
}
.ai-badge {
  display: inline-block;
  background: var(--brand-green);
  color: var(--white);
  padding: 10px 20px;
  border-radius: 99px;
  font-size: .88rem;
  font-weight: 600;
  margin-bottom: 20px;
}
.autoridade-img h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--brand-green-d);
  font-weight: 700;
  margin-bottom: 12px;
}
.autoridade-img p {
  color: var(--text-mid);
  font-size: .96rem;
  line-height: 1.6;
}

/* ══════════════════════════════════════════
   CTA FINAL
══════════════════════════════════════════ */
.cta-final {
  padding: 100px 0;
  background: linear-gradient(160deg, #0e4a2a 0%, #1a7a4a 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-final::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 80% at 50% 120%, rgba(212,137,26,.25) 0%, transparent 60%);
}
.cta-final h2 {
  position: relative;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3rem);
  color: var(--white);
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.15;
}
.cta-final p {
  position: relative;
  color: rgba(255,255,255,.8);
  font-size: 1.1rem;
  max-width: 500px;
  margin: 0 auto 36px;
}
.cta-final .btn-primary {
  position: relative;
  max-width: 420px;
  margin: 0 auto;
  font-size: 1.15rem;
  padding: 18px 32px;
}

/* ══════════════════════════════════════════
   RODAPÉ
══════════════════════════════════════════ */
.site-footer {
  background: var(--text-dark);
  color: rgba(255,255,255,.55);
  padding: 40px 0;
  text-align: center;
  font-size: .88rem;
  line-height: 1.7;
}
.site-footer .logo { color: rgba(255,255,255,.7); margin-bottom: 16px; display: inline-block; }
.site-footer p { max-width: 640px; margin: 0 auto 8px; }
.site-footer a { color: rgba(255,255,255,.55); text-decoration: underline; }

/* ══════════════════════════════════════════
   MODAL
══════════════════════════════════════════ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s var(--ease);
}
.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  max-width: 460px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  transform: translateY(24px) scale(.97);
  transition: transform .3s var(--ease);
  position: relative;
}
.modal-overlay.active .modal {
  transform: translateY(0) scale(1);
}
.modal-close {
  position: absolute; top: 16px; right: 16px;
  background: none; border: none;
  font-size: 1.5rem; cursor: pointer;
  color: var(--text-light);
  line-height: 1;
  transition: color var(--dur) var(--ease);
}
.modal-close:hover { color: var(--text-dark); }
.modal h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
}
.modal > p {
  color: var(--text-light);
  font-size: .97rem;
  margin-bottom: 26px;
}
.modal-privacy {
  margin-top: 14px;
  text-align: center;
  font-size: .85rem;
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* ══════════════════════════════════════════
   RESULTADO
══════════════════════════════════════════ */
.resultado-section {
  padding: 80px 0;
  background: var(--white);
  display: none;
}
.resultado-section.visible { display: block; }
.resultado-card {
  background: var(--white);
  border: 2px solid var(--brand-green);
  border-radius: var(--radius-lg);
  padding: 40px;
  max-width: 720px;
  margin: 0 auto;
  box-shadow: var(--shadow-md);
}
.resultado-card h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--text-dark);
  font-weight: 700;
  margin-bottom: 20px;
}
.resultado-alert {
  background: var(--accent-gold-l);
  border-left: 4px solid var(--accent-gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 14px 18px;
  font-size: .93rem;
  color: var(--text-mid);
  margin-bottom: 24px;
}
.resultado-texto {
  font-size: 1rem;
  color: var(--text-mid);
  line-height: 1.75;
  white-space: pre-wrap;
  margin-bottom: 32px;
}
.resultado-cta {
  text-align: center;
}

/* Indicador de digitação IA */
.typing-dots {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  padding: 8px 0;
}
.typing-dots span {
  width: 8px; height: 8px;
  background: var(--brand-green);
  border-radius: 50%;
  animation: bounce 1.2s infinite;
}
.typing-dots span:nth-child(2) { animation-delay: .2s; }
.typing-dots span:nth-child(3) { animation-delay: .4s; }
@keyframes bounce {
  0%, 80%, 100% { transform: translateY(0); }
  40%           { transform: translateY(-8px); }
}

/* ══════════════════════════════════════════
   NOTIFICAÇÕES TOAST
══════════════════════════════════════════ */
.toast {
  position: fixed; bottom: 24px; right: 24px; z-index: 2000;
  background: var(--text-dark);
  color: var(--white);
  padding: 14px 22px;
  border-radius: var(--radius-sm);
  font-size: .95rem;
  box-shadow: var(--shadow-lg);
  transform: translateY(80px);
  opacity: 0;
  transition: all .3s var(--ease);
  max-width: 340px;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast.error { background: var(--danger); }

/* ══════════════════════════════════════════
   ACESSIBILIDADE — FOCUS
══════════════════════════════════════════ */
:focus-visible {
  outline: 3px solid var(--accent-gold);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ══════════════════════════════════════════
   ANIMAÇÕES DE ENTRADA
══════════════════════════════════════════ */
[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}
[data-reveal-delay="1"] { transition-delay: .1s; }
[data-reveal-delay="2"] { transition-delay: .2s; }
[data-reveal-delay="3"] { transition-delay: .3s; }
[data-reveal-delay="4"] { transition-delay: .4s; }

/* ══════════════════════════════════════════
   MOBILE FIRST — BREAKPOINTS
══════════════════════════════════════════ */
@media (max-width: 768px) {
  html { font-size: 17px; }

  .hero-inner { grid-template-columns: 1fr; padding: 40px 0 60px; gap: 32px; }
  .hero-copy h1 { font-size: 1.9rem; }
  .hero-copy p { font-size: 1rem; }

  .objection-inner { grid-template-columns: 1fr; gap: 40px; }
  .objection-visual { display: none; }

  .autoridade-inner { grid-template-columns: 1fr; gap: 40px; }
  .autoridade-img { display: none; }

  .steps-grid::before { display: none; }
  .steps-grid { gap: 32px; }

  .modal { padding: 30px 24px; }

  .resultado-card { padding: 28px 20px; }
}

@media (max-width: 480px) {
  .hero-card { padding: 28px 20px; }
  .btn-primary { font-size: 1rem; }
  .dor-grid { grid-template-columns: 1fr; }
}