/* ==========================================================================
   ATOMIC DESIGN TOKENS - O PROTOCOLO DE PAPEL (By UX Uma & Dev Dex)
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800;900&display=swap');

:root {
  /* Cores - A Paleta Premium Infantil (Pensada para Mães) */
  --color-primary: #FF9F1C; /* Laranja/Pêssego Vibrante (Energia, Conversão) */
  --color-primary-hover: #E88E14;
  --color-secondary: #2EC4B6; /* Azul Tífani/Teal (Calma, Desenvolvimento, Confiança) */
  --color-secondary-hover: #25A599;
  
  --color-bg-base: #FDFBF7; /* Cream/Off-White descansado */
  --color-bg-card: #FFFFFF;
  
  --color-text-main: #2B2D42; /* Escuro sólido mas não preto absoluto */
  --color-text-muted: #6B708D;
  --color-danger: #E71D36; /* Chamativa de Escassez (Ops...) */
  
  /* Tipografia */
  --font-family-base: 'Nunito', sans-serif;
  --text-base: 16px;
  --text-sm: 14px;
  --text-lg: 18px;
  --text-xl: 22px;
  --text-2xl: 28px;
  --text-3xl: 36px;
  
  /* Estrutura e Sombras */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-pill: 9999px;
  --shadow-soft: 0 4px 6px -1px rgba(43, 45, 66, 0.05), 0 2px 4px -1px rgba(43, 45, 66, 0.03);
  --shadow-hover: 0 10px 15px -3px rgba(43, 45, 66, 0.1), 0 4px 6px -2px rgba(43, 45, 66, 0.05);
  --shadow-btn: 0 8px 20px rgba(255, 159, 28, 0.3);
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   RESET & BASE ATOMS
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-family-base);
  background-color: var(--color-bg-base);
  color: var(--color-text-main);
  line-height: 1.6;
  font-size: var(--text-base);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--color-text-main);
}

p {
  margin-bottom: 1.25rem;
}

b, strong {
  font-weight: 800;
  color: var(--color-secondary);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-secondary);
  text-decoration: underline;
  transition: var(--transition-smooth);
}

a:hover {
  color: var(--color-primary);
}

/* ==========================================================================
   LAYOUT MOLECULES (Grid & Containers)
   ========================================================================== */
.container {
  width: 100%;
  max-width: 600px; /* Funil focado no foco único (mobile -> tablet) */
  margin: 0 auto;
  padding: 0 24px;
}

.header {
  padding: 24px 0;
  text-align: center;
  margin-bottom: 16px;
}

.logo {
  max-height: 120px;
  margin: 0 auto;
}

/* ==========================================================================
   UI ORGANISMS
   ========================================================================== */

/* Cartões (Containers de Oferta) */
.card {
  background: var(--color-bg-card);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  box-shadow: var(--shadow-soft);
  margin-bottom: 32px;
  border: 1px solid rgba(43, 45, 66, 0.05); /* Premium borda fina */
}

/* Blocos de Aviso / Alertas Ligeiros */
.alert-box {
  background-color: rgba(231, 29, 54, 0.05);
  border-left: 4px solid var(--color-danger);
  padding: 16px 20px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 24px;
}

.alert-box h3 {
  color: var(--color-danger);
  margin-bottom: 8px;
  font-size: var(--text-lg);
}

.alert-box p {
  margin-bottom: 0;
  color: var(--color-text-main);
  font-size: var(--text-sm);
  font-weight: 600;
}

/* Header Text (Headlines) */
.headline {
  font-size: var(--text-2xl);
  text-align: center;
  margin-bottom: 24px;
  letter-spacing: -0.5px;
}

.subheadline {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  text-align: center;
  margin-bottom: 32px;
  font-weight: 600;
}

/* CTA Buttons */
.btn-wrapper {
  margin: 32px 0 16px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 18px 32px;
  background-color: var(--color-primary);
  color: #FFF;
  font-size: var(--text-lg);
  font-weight: 800;
  text-decoration: none;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-btn);
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
  text-align: center;
  animation: pulse-soft 3s infinite alternate;
}

.btn:hover {
  background-color: var(--color-primary-hover);
  transform: translateY(-3px);
  box-shadow: 0 12px 25px rgba(255, 159, 28, 0.4);
  color: #FFF;
}

.btn-secondary {
  background-color: var(--color-secondary);
  box-shadow: 0 8px 20px rgba(46, 196, 182, 0.3);
  animation: none;
}

.btn-secondary:hover {
  background-color: var(--color-secondary-hover);
  box-shadow: 0 12px 25px rgba(46, 196, 182, 0.4);
}

/* Escapes Seguros (Links de Consolação) */
.link-escape {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  font-weight: 600;
  text-align: center;
  display: block;
  text-decoration: none;
  border-bottom: 1px dashed var(--color-text-muted);
  padding-bottom: 2px;
}

.link-escape:hover {
  color: var(--color-danger);
  border-color: var(--color-danger);
}

/* ==========================================================================
   EXIT INTENT MODAL (POP-UP)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(43, 45, 66, 0.8);
  backdrop-filter: blur(4px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: var(--color-bg-card);
  padding: 40px 32px;
  border-radius: var(--radius-md);
  max-width: 90%;
  width: 480px;
  text-align: center;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  transform: translateY(20px) scale(0.95);
  transition: var(--transition-smooth);
  position: relative;
}

.modal-overlay.active .modal-content {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 24px;
  color: var(--color-text-muted);
  cursor: pointer;
  background: none;
  border: none;
  font-weight: 700;
  transition: color 0.2s;
}

.modal-close:hover {
  color: var(--color-danger);
}

.modal-icon {
  font-size: 48px;
  margin-bottom: 16px;
  animation: bounce 2s infinite ease-in-out;
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */
@keyframes pulse-soft {
  0% { box-shadow: 0 0 0 0 rgba(255, 159, 28, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(255, 159, 28, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 159, 28, 0); }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Responsive Overrides */
@media (max-width: 480px) {
  .headline { font-size: var(--text-xl); }
  .card { padding: 24px 16px; }
  .modal-content { padding: 32px 20px; width: 95%; }
  .btn { font-size: var(--text-base); padding: 16px 24px; }
}
