/* ============================================================
   MAARTORI — Popup Simulador (exit intent)
   Visual: glass-blur 8px + fundo escuro + CTA outline com preenchimento leve
   v1 — substitui o popup antigo (CTA fill sólido, "dados não compartilhados")
   ============================================================ */

:root {
  --ei-deep:    #2A2C2F;
  --ei-deep-2:  #34373B;
  --ei-sage-l:  #97A579;
  --ei-sage-d:  #4A5532;
  --ei-sage:    #6E7B52;
  --ei-sage-15: rgba(110,123,82,0.15);
  --ei-sage-30: rgba(110,123,82,0.30);
  --ei-surface: #EFEDE5;
  --ei-muted:   #5E5F5C;
  --ei-text:    #2A2C2F;
  --ei-border:  rgba(94,95,92,0.3);
  --ei-radius:  20px;
}

/* ============ STANDALONE PAGE WRAPPER ============ */
.ps-standalone {
  min-height: 100vh;
  background: var(--ei-surface);
  font-family: 'Inter', 'DM Sans', -apple-system, sans-serif;
  color: var(--ei-text);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  position: relative;
}
.ps-back {
  position: absolute;
  top: 24px;
  left: 24px;
}
.ps-back-link {
  color: var(--ei-text);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  opacity: 0.6;
  transition: opacity 0.2s;
}
.ps-back-link:hover { opacity: 1; }
.ps-mock {
  background: rgba(0,0,0,0.04);
  padding: 80px 20px;
  border-radius: var(--ei-radius);
  text-align: center;
  max-width: 600px;
  width: 100%;
  position: relative;
}
.ps-mock-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ei-muted);
  margin-bottom: 8px;
}
.ps-mock-hint {
  font-size: 13px;
  color: var(--ei-muted);
  margin-bottom: 32px;
  line-height: 1.5;
}
.ps-foot {
  margin-top: 32px;
  font-size: 12px;
  color: var(--ei-muted);
  letter-spacing: 0.04em;
}

/* ============ UTILITY (text-balance global) ============ */
.text-balance {
  text-wrap: balance !important;
}

/* ============ POPUP OVERLAY ============ */
.ei-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(26,28,31,0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.ei-overlay.show {
  display: flex;
  opacity: 1;
  pointer-events: all;
}

/* ============ MODAL ============ */
.ei-modal {
  background: var(--ei-surface);
  border-radius: var(--ei-radius);
  overflow: hidden;
  max-width: 460px;
  width: 100%;
  position: relative;
  transform: translateY(16px);
  transition: transform 0.3s ease;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.ei-overlay.show .ei-modal {
  transform: translateY(0);
}

/* ============ CLOSE BUTTON ============ */
.ei-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 10;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255,255,255,0.12);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.85);
  cursor: pointer;
  transition: background 0.2s;
}
.ei-close:hover {
  background: rgba(255,255,255,0.2);
}

/* ============ HERO (DARK HEADER COM FOTO) ============
   !important na background-image garante que a foto sempre pinta,
   independente do components.css chegar depois no cascade. */
body .ei-hero {
  background-color: var(--ei-deep);
  padding: 48px 32px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
  background-image: url('/assets/img/hero.jpg') !important;
  background-size: cover !important;
  background-position: center !important;
  background-blend-mode: normal;
  border-top-left-radius: var(--ei-radius);
  border-top-right-radius: var(--ei-radius);
}
body .ei-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 0;
  border-radius: inherit;
}
body .ei-hero > * {
  position: relative;
  z-index: 1;
}
.ei-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ei-sage-l);
  margin: 0 auto 20px;
  justify-content: center;
}
.ei-label-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ei-sage-l);
  display: inline-block;
}
.ei-hero h2 {
  font-family: 'Fraunces', 'Times New Roman', serif;
  font-weight: 500;
  font-size: 32px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ei-sage-l);
  margin: 0 0 12px;
}
.ei-hero p {
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255,255,255,0.72);
  margin: 0;
  text-wrap: balance;
}

/* ============ BODY ============ */
.ei-body {
  padding: 32px;
  background: var(--ei-surface);
}

/* ============ FORM FIELD ============ */
.form-field {
  margin-bottom: 20px;
}
.form-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ei-muted);
  margin-bottom: 8px;
}
.form-input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--ei-border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 15px;
  color: var(--ei-text);
  background: #fff;
  transition: border-color 0.2s;
  box-sizing: border-box;
}
.form-input:focus {
  outline: none;
  border-color: var(--ei-sage);
}
.form-input::placeholder {
  color: var(--ei-muted);
  opacity: 0.6;
}

/* ============ CTA (PREENCHIDO VERDE DESTAQUE) ============ */
.ps-cta {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 24px;
  background: var(--ei-sage-d);
  border: 1.5px solid var(--ei-sage-d);
  border-radius: 999px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  transition: all 0.25s ease;
  margin-bottom: 16px;
}
.ps-cta:hover {
  background: var(--ei-sage);
  border-color: var(--ei-sage);
  transform: translateY(-1px);
}
.ps-cta:active {
  transform: translateY(0);
}
.ps-cta svg {
  flex-shrink: 0;
}

/* ============ RECUSAR ============ */
.ei-recusar {
  display: block;
  width: 100%;
  text-align: center;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 12px;
  color: var(--ei-muted);
  padding: 8px;
  cursor: pointer;
  transition: color 0.2s;
  text-decoration: underline;
  text-decoration-color: rgba(94,95,92,0.4);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.ei-recusar:hover {
  color: var(--ei-text);
  text-decoration-color: var(--ei-text);
}

/* ============ MOBILE ============ */
@media (max-width: 480px) {
  .ei-hero {
    padding: 40px 24px 32px;
  }
  .ei-hero h2 {
    font-size: 26px;
  }
  .ei-body {
    padding: 24px;
  }
  .ei-close {
    top: 12px;
    right: 12px;
  }
}
