/* Otimizações adicionais para velocidade de carregamento */

/* Compressão de fontes */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap; /* Melhora a performance de carregamento de fontes */
  src: local('Poppins Regular'), local('Poppins-Regular');
}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: local('Poppins Bold'), local('Poppins-Bold');
}

/* Otimizações para dispositivos móveis */
@media (max-width: 480px) {
  /* Reduzir padding e margens em dispositivos pequenos */
  .container {
    padding: 0 15px;
  }
  
  section {
    padding: 30px 0;
  }
  
  /* Ajustar tamanho de texto para melhor legibilidade em telas pequenas */
  body {
    font-size: 15px;
  }
  
  h1 {
    font-size: 1.8rem !important;
  }
  
  h2 {
    font-size: 1.5rem !important;
  }
  
  h3 {
    font-size: 1.2rem !important;
  }
  
  /* Melhorar áreas clicáveis para touch */
  .copy-button, 
  .courses-button, 
  .access-button, 
  .final-cta-button {
    padding: 15px 20px;
    min-height: 48px; /* Tamanho mínimo recomendado para áreas touch */
  }
}

/* Melhorias de acessibilidade adicionais */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Melhorias para SEO local */
.local-info {
  display: none;
}

/* Otimizações para carregamento de imagens */
img {
  max-width: 100%;
  height: auto;
}

img[data-src] {
  opacity: 0;
  transition: opacity 0.3s;
}

img.loaded {
  opacity: 1;
}

/* Melhorias para contraste e legibilidade */
.feature-item p,
.step-content p {
  color: rgba(0, 0, 0, 0.8);
  line-height: 1.7;
}

@media (prefers-color-scheme: dark) {
  .feature-item p,
  .step-content p {
    color: rgba(255, 255, 255, 0.8);
  }
}

/* Melhorias para botões e interações */
button, 
.copy-button, 
.courses-button, 
.access-button, 
.final-cta-button {
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

button:active, 
.copy-button:active, 
.courses-button:active, 
.access-button:active, 
.final-cta-button:active {
  transform: scale(0.98);
}

/* Efeito de ripple para botões */
.ripple {
  position: absolute;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transform: scale(0);
  animation: ripple 0.6s linear;
  pointer-events: none;
}

@keyframes ripple {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* Melhorias para impressão */
@media print {
  body {
    font-size: 12pt;
    line-height: 1.5;
  }
  
  .coupon-code {
    border: 2px solid #000;
    padding: 10px;
    text-align: center;
    font-size: 16pt;
    font-weight: bold;
  }
  
  .step-item {
    page-break-inside: avoid;
    margin-bottom: 20pt;
  }
  
  .feature-item {
    page-break-inside: avoid;
  }
  
  a::after {
    content: " (" attr(href) ")";
    font-size: 10pt;
    font-style: italic;
  }
}
