/* ====================================================================
   DESIGN SYSTEM & ESTILOS GLOBAIS - APOSTILAS LOW TICKET (R$ 1,00)
   ==================================================================== */

:root {
  /* Paleta de Cores Confeitaria Feminina & Moderna */
  --bg-main: #FFFDF9;
  --bg-cream: #FAF6F0;
  --bg-card: #FFFFFF;
  --bg-soft-pink: #FDF2F8;
  --bg-light-pink: #FCE7F3;
  --bg-rose-accent: #FFE4E6;
  
  --primary-rose: #D81B60;
  --primary-dark-rose: #BE185D;
  --primary-deep: #9D174D;
  
  --secondary-wine: #701A75;
  --secondary-dark-wine: #4A0E2E;
  --secondary-burgundy: #831843;
  
  --cta-green: #16A34A;
  --cta-green-hover: #15803D;
  --cta-green-light: #DCFCE7;
  --cta-green-shadow: rgba(22, 163, 74, 0.35);
  
  --urgency-bar-bg: #E11D48;
  --urgency-bar-text: #FFFFFF;
  
  --text-dark: #1F2937;
  --text-main: #27272A;
  --text-muted: #64748B;
  --text-light: #94A3B8;
  --text-white: #FFFFFF;
  
  --border-light: #F1E8DC;
  --border-pink: #FBCFE8;
  --border-gold: #FDE68A;
  
  --shadow-sm: 0 2px 8px rgba(112, 26, 117, 0.04);
  --shadow-md: 0 8px 24px rgba(112, 26, 117, 0.07);
  --shadow-lg: 0 16px 36px rgba(112, 26, 117, 0.10);
  --shadow-cta: 0 8px 24px var(--cta-green-shadow);
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;
  
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --max-width-container: 1140px;
  --max-width-narrow: 840px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  padding-bottom: 72px; /* Espaço para a barra fixa mobile */
}

@media (min-width: 768px) {
  body {
    padding-bottom: 0;
  }
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  border: none;
  cursor: pointer;
  background: none;
}

/* Container Responsivo */
.container {
  width: 100%;
  max-width: var(--max-width-container);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.container-narrow {
  width: 100%;
  max-width: var(--max-width-narrow);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* Utilitários Tipográficos & Seções */
.section {
  padding: 3.5rem 0;
  position: relative;
}

.section-cream {
  background-color: var(--bg-cream);
}

.section-pink {
  background: linear-gradient(180deg, var(--bg-soft-pink) 0%, var(--bg-main) 100%);
}

.section-wine {
  background: linear-gradient(135deg, var(--secondary-wine) 0%, var(--secondary-dark-wine) 100%);
  color: var(--text-white);
}

.section-header {
  text-align: center;
  margin-bottom: 2.25rem;
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.85rem;
  background-color: var(--bg-light-pink);
  color: var(--primary-rose);
  font-weight: 700;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius-full);
  margin-bottom: 0.75rem;
  box-shadow: 0 2px 6px rgba(216, 27, 96, 0.12);
}

.badge-gold {
  background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
  color: #92400E;
}

.badge-green {
  background-color: var(--cta-green-light);
  color: #166534;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--secondary-wine);
  line-height: 1.25;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.section-wine .section-title {
  color: var(--text-white);
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 650px;
  margin: 0 auto;
}

.section-wine .section-subtitle {
  color: #FCE7F3;
}

/* Botões de CTA Principais */
.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  width: 100%;
  max-width: 440px;
  background-color: var(--cta-green);
  color: var(--text-white);
  font-size: 1.15rem;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 1.15rem 1.75rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-cta);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  min-height: 58px;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-cta:hover, .btn-cta:focus-visible {
  background-color: var(--cta-green-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(22, 163, 74, 0.45);
}

.btn-cta:active {
  transform: translateY(1px);
  box-shadow: 0 4px 12px var(--cta-green-shadow);
}

.btn-cta-lg {
  font-size: 1.25rem;
  padding: 1.3rem 2rem;
  max-width: 500px;
}

.btn-pulse {
  animation: subtlePulse 2.8s infinite;
}

@keyframes subtlePulse {
  0% {
    box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.6);
  }
  70% {
    box-shadow: 0 0 0 14px rgba(22, 163, 74, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(22, 163, 74, 0);
  }
}

.btn-icon {
  font-size: 1.25em;
  line-height: 1;
}

.microcopy-secure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 0.75rem;
}

.section-wine .microcopy-secure {
  color: #E2E8F0;
}

/* Toast de Notificação e Feedback */
.toast-container {
  position: fixed;
  bottom: 84px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
  width: 90%;
  max-width: 380px;
}

.toast {
  background: #1E293B;
  color: #FFFFFF;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  gap: 0.65rem;
  animation: slideToast 0.3s ease forwards;
  pointer-events: auto;
  border-left: 4px solid var(--cta-green);
}

@keyframes slideToast {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsividade de Tipografia Geral */
@media (min-width: 768px) {
  .section {
    padding: 4.5rem 0;
  }
  .section-title {
    font-size: 2.25rem;
  }
  .section-subtitle {
    font-size: 1.15rem;
  }
  .toast-container {
    bottom: 24px;
    right: 24px;
    left: auto;
    transform: none;
  }
}
