/* ==============================================================================
   ACHADOS MÃE & BEBÊ - DESIGN SYSTEM & ESTILOS PRINCIPAIS
   Paleta: Tons Neutros, Sálvia, Areia & Acentos Terracota / Esmeralda
   Mobile-First Architecture
   ============================================================================== */

:root {
  /* Cores de Fundo e Superfície */
  --bg-primary: #F7F6F2;
  --bg-surface: #FFFFFF;
  --bg-sage-light: #EBF2EE;
  --bg-sage-subtle: #F2F7F4;
  --bg-timer: #FDF5F8;
  --bg-timer-end: #FAECF2;

  /* Cores de Texto */
  --text-headline: #192C23;
  --text-body: #485D53;
  --text-muted: #74897F;
  --text-disclaimer: #8C9F96;

  /* Cores de Urgência / Timer (Rosa Seco e Azul Sereno da Foto de Perfil) */
  --urgency-primary: #C73266; /* Rosa seco da faixa Mãe e Bebê */
  --urgency-badge: #2B68AA;   /* Azul sereno da roupinha do bebê */
  --urgency-border: #F4D3DF;  /* Borda suave em tom blush */
  --urgency-gradient: linear-gradient(90deg, #2B68AA 0%, #D84174 100%);

  /* Vagas */
  --vacancies-track: #DFEAE4;
  --vacancies-gradient: linear-gradient(90deg, #E25B37, #F2A342);

  /* CTA WhatsApp */
  --cta-bg-start: #25D366;
  --cta-bg-end: #1BAA50;
  --cta-shadow: 0 12px 28px -6px rgba(37, 211, 102, 0.45);
  --cta-shadow-hover: 0 16px 36px -4px rgba(37, 211, 102, 0.55);

  /* Bordas e Raios */
  --radius-card: 26px;
  --radius-subcard: 18px;
  --radius-button: 16px;
  --radius-full: 9999px;

  /* Sombras */
  --shadow-card: 0 24px 48px -12px rgba(35, 56, 46, 0.14), 0 8px 18px -4px rgba(35, 56, 46, 0.06);
  --shadow-avatar: 0 14px 28px -6px rgba(45, 75, 60, 0.22);

  /* Fontes */
  --font-main: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

html, body {
  width: 100%;
  min-height: 100vh;
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 24px 16px 48px;
  position: relative;
  overflow-x: hidden;
  background: radial-gradient(circle at 50% 0%, #E7EFEA 0%, #F5F4EE 50%, #ECE9E1 100%);
  background-attachment: fixed;
}

/* Brilho e Partículas de Ambiente */
.ambient-glow {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(162, 196, 178, 0.28) 0%, rgba(247, 246, 242, 0) 70%);
  pointer-events: none;
  z-index: 0;
}

/* Container Central */
.landing-container {
  width: 100%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
  margin: 0 auto;
}

/* ==============================================================================
   CARD PRINCIPAL DE CONVERSÃO
   ============================================================================== */
.conversion-card {
  width: 100%;
  background: var(--bg-surface);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(255, 255, 255, 0.85);
  margin-top: 65px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 22px 28px;
}

/* Avatar Sobreposto */
.avatar-wrapper {
  position: relative;
  margin-top: -65px;
  margin-bottom: 16px;
}

.avatar-ring {
  width: 130px;
  height: 130px;
  border-radius: var(--radius-full);
  background: #FFFFFF;
  padding: 4px;
  box-shadow: var(--shadow-avatar);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.avatar-ring:hover {
  transform: scale(1.03);
}

.avatar-ring img {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-full);
  object-fit: cover;
  display: block;
  background-color: #F0F4F1;
}

/* Conteúdo do Card */
.card-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.main-title {
  font-size: 1.28rem;
  font-weight: 800;
  color: var(--text-headline);
  line-height: 1.34;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  padding: 0 4px;
}

.main-title .highlight-text {
  color: var(--urgency-primary);
  font-weight: 800;
}

.subtitle {
  font-size: 0.9375rem;
  color: var(--text-body);
  line-height: 1.5;
  margin-bottom: 14px;
  padding: 0 4px;
}

/* Categorias em Destaque */
.category-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-bottom: 20px;
  padding: 0 2px;
}

.category-tag {
  background-color: var(--bg-sage-subtle);
  border: 1px solid #DCE7E1;
  color: #2D483A;
  font-size: 0.78125rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  box-shadow: 0 1px 2px rgba(45, 75, 60, 0.04);
  transition: transform 0.2s ease;
}

.category-tag:hover {
  transform: translateY(-1px);
}

.category-tag.highlight {
  background-color: var(--bg-timer);
  border-color: var(--urgency-border);
  color: var(--urgency-primary);
}

/* ==============================================================================
   BLOCO 1: CRONÔMETRO DE URGÊNCIA
   ============================================================================== */
.urgency-timer-card {
  width: 100%;
  background: linear-gradient(180deg, var(--bg-timer) 0%, var(--bg-timer-end) 100%);
  border: 1px solid var(--urgency-border);
  border-radius: var(--radius-subcard);
  padding: 18px 16px 16px;
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.timer-badge {
  font-size: 0.71875rem; /* 11.5px */
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--urgency-badge);
  margin-bottom: 6px;
}

.timer-countdown {
  font-size: 2.75rem; /* 44px */
  font-weight: 800;
  line-height: 1;
  color: var(--urgency-primary);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
  text-shadow: 0 2px 4px rgba(199, 50, 102, 0.12);
}

/* Barras de Progresso */
.progress-track {
  width: 100%;
  height: 8px;
  background-color: rgba(199, 50, 102, 0.12);
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
}

.progress-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 1s linear;
}

.timer-fill {
  width: 100%;
  background: var(--urgency-gradient);
}

/* ==============================================================================
   BLOCO 2: ESCASSEZ DE VAGAS
   ============================================================================== */
.vacancies-card {
  width: 100%;
  background-color: var(--bg-sage-subtle);
  border: 1px solid #DCE7E1;
  border-radius: var(--radius-subcard);
  padding: 16px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
}

.vacancies-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.vacancies-label {
  font-size: 0.875rem; /* 14px */
  font-weight: 700;
  color: var(--text-headline);
}

.vacancies-percentage {
  font-size: 0.875rem;
  font-weight: 800;
  color: var(--urgency-primary);
  font-variant-numeric: tabular-nums;
}

.vacancies-card .progress-track {
  background-color: var(--vacancies-track);
  height: 9px;
  margin-bottom: 10px;
}

.vacancies-fill {
  width: 0%; /* Animado dinamicamente via JS */
  background: var(--vacancies-gradient);
  transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.vacancies-alert {
  font-size: 0.84375rem; /* 13.5px */
  color: var(--urgency-primary);
  text-align: left;
}

.vacancies-alert strong {
  font-weight: 800;
}

/* Chamada Pré-CTA */
.pre-cta-callout {
  font-size: 0.9375rem; /* 15px */
  font-weight: 700;
  color: var(--text-headline);
  line-height: 1.4;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
}

.down-arrow {
  display: inline-block;
  font-size: 1.15rem;
  animation: bounceDown 1.8s infinite ease-in-out;
}

@keyframes bounceDown {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(4px);
  }
}

/* ==============================================================================
   BOTÃO CTA PRINCIPAL & MICRO-INTERAÇÕES
   ============================================================================== */
.cta-wrapper {
  width: 100%;
  margin-bottom: 14px;
}

.cta-button {
  width: 100%;
  min-height: 58px;
  padding: 14px 20px;
  background: linear-gradient(135deg, var(--cta-bg-start) 0%, var(--cta-bg-end) 100%);
  color: #FFFFFF;
  border: none;
  border-radius: var(--radius-button);
  font-family: var(--font-main);
  font-size: 1.125rem; /* 18px */
  font-weight: 800;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: var(--cta-shadow);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, filter 0.2s ease;
  animation: pulseGlow 2.8s infinite ease-in-out;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--cta-shadow-hover);
  filter: brightness(1.04);
}

.cta-button:active {
  transform: scale(0.98);
  box-shadow: 0 6px 16px -2px rgba(37, 211, 102, 0.4);
}

.whatsapp-icon {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.15));
}

/* Animação Contínua de Pulso */
@keyframes pulseGlow {
  0% {
    box-shadow: 0 12px 28px -6px rgba(37, 211, 102, 0.45);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 16px 36px -2px rgba(37, 211, 102, 0.65);
    transform: scale(1.02);
  }
  100% {
    box-shadow: 0 12px 28px -6px rgba(37, 211, 102, 0.45);
    transform: scale(1);
  }
}

/* Desabilitar animações pesadas se o usuário tiver sensibilidade */
@media (prefers-reduced-motion: reduce) {
  .cta-button {
    animation: none;
  }
}

.trust-note {
  font-size: 0.8125rem; /* 13px */
  color: var(--text-muted);
  line-height: 1.4;
  padding: 0 10px;
}

/* ==============================================================================
   RODAPÉ DE COMPLIANCE (META ADS)
   ============================================================================== */
.page-footer {
  width: 100%;
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 10px;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.legal-link {
  background: none;
  border: none;
  font-family: var(--font-main);
  font-size: 0.8125rem; /* 13px */
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px 6px;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.legal-link:hover {
  color: var(--text-headline);
}

.divider {
  color: var(--text-muted);
  font-size: 0.8125rem;
}

.copyright {
  font-size: 0.78125rem; /* 12.5px */
  color: var(--text-muted);
  margin-bottom: 12px;
}

.disclaimer {
  font-size: 0.6875rem; /* 11px */
  color: var(--text-disclaimer);
  line-height: 1.45;
  max-width: 380px;
}

/* ==============================================================================
   MODAIS NATIVOS (<dialog>)
   ============================================================================== */
.legal-dialog {
  border: none;
  border-radius: var(--radius-card);
  padding: 0;
  max-width: 480px;
  width: 90%;
  margin: auto;
  box-shadow: 0 24px 60px -10px rgba(18, 32, 25, 0.35);
  background: #FFFFFF;
}

.legal-dialog::backdrop {
  background: rgba(20, 35, 27, 0.6);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.dialog-card {
  display: flex;
  flex-direction: column;
  max-height: 82vh;
}

.dialog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px 14px;
  border-bottom: 1px solid #ECEFEA;
}

.dialog-header h2 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-headline);
}

.close-dialog {
  background: #F1F5F2;
  border: none;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-full);
  font-size: 1.5rem;
  line-height: 1;
  color: var(--text-body);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.close-dialog:hover {
  background: #E2ECE5;
}

.dialog-body {
  padding: 20px 24px;
  overflow-y: auto;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--text-body);
}

.dialog-body h3 {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-headline);
  margin-top: 14px;
  margin-bottom: 4px;
}

.dialog-body p {
  margin-bottom: 10px;
}

.dialog-footer {
  padding: 14px 24px 20px;
  border-top: 1px solid #ECEFEA;
  display: flex;
  justify-content: flex-end;
}

.btn-dialog-close {
  background: #EBF2EE;
  color: var(--text-headline);
  border: none;
  padding: 10px 20px;
  border-radius: var(--radius-button);
  font-weight: 700;
  font-size: 0.875rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

.btn-dialog-close:hover {
  background: #DCE8E1;
}

/* Otimizações para Desktop */
@media (min-width: 600px) {
  body {
    padding-top: 40px;
  }

  .main-title {
    font-size: 1.5rem; /* 24px */
  }

  .conversion-card {
    padding: 0 28px 32px;
  }
}
