/* ================================================
   MELHORIAS UI/UX — Nail Designer Landing Page
   Aplicadas sobre style.css e variables.css
   Prioridade: Mobile, Legibilidade, Conversão
   ================================================ */

/* ─── 1. TIPOGRAFIA GLOBAL ─────────────────────── */

/* Tamanho base ligeiramente maior para conforto de leitura */
html {
  font-size: 16px;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Títulos de seção com escala responsiva */
.section-title {
  font-size: clamp(1.65rem, 4.5vw, 2.5rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.section-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.125rem);
  line-height: 1.65;
  max-width: 560px;
  color: #555555;
}

/* ─── 1.5 HERO BANNERS ────────────────────────── */
.hero-mockup-banner {
  width: 114% !important;
  max-width: 114% !important;
  height: auto !important;
  display: block !important;
  position: relative !important;
  left: 50% !important;
  transform: translateX(-55.26%) !important; /* 13% cortado à esquerda */
  margin: 0 !important;
}

@media (max-width: 480px) {
  .hero-mockup-banner {
    width: 114% !important;
    max-width: 114% !important;
    transform: translateX(-55.26%) !important;
  }
}

/* ─── 1.6 FEATURED BADGE (⭐ Mais Escolhido) ───────── */
.featured-badge {
  white-space: nowrap;       /* força uma linha só */
  font-size: 0.75rem;        /* menor no mobile sem quebrar */
  padding: 4px 10px;
  letter-spacing: 0.5px;
}

/* ─── 2. FEATURES OVERVIEW (cards de stats) ─────── */

/* Corrige variável inexistente --color-text-dark */
.features-overview [style*="color: var(--color-text-dark)"] {
  color: #1a1a1a !important;
}

/* Cards da grade de destaques: quadrados compactos e otimizados (letras preservadas) */
.features-overview {
  padding: 1.5rem 0.75rem 1rem 0.75rem !important;
  margin-bottom: 1.25rem !important;
}

.features-overview .container > div {
  gap: 0.85rem !important;
}

.features-overview .container > div > div {
  padding: 1rem 0.85rem !important;
  gap: 0.25rem !important;
  min-width: 0;
  flex: 1 1 170px !important;
  max-width: 250px !important;
  background: #ffffff !important;
  border: 1.5px solid #ffccd9 !important; /* Borda demarcada em rosa nítido */
  border-radius: 16px !important;
  box-shadow: 0 4px 16px rgba(232, 62, 140, 0.07), 0 2px 5px rgba(0, 0, 0, 0.03) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.features-overview .container > div > div:hover {
  transform: translateY(-2px);
  border-color: #E83E8C !important;
  box-shadow: 0 8px 20px rgba(232, 62, 140, 0.14) !important;
}

/* Ícone moderado e sem margem inferior desperdiçada */
.features-overview i {
  font-size: 2.1rem !important;
  margin-bottom: 0 !important;
}

/* Número/destaque mantido com tamanho grande e legível */
.features-overview span:nth-child(2) {
  font-size: 2.3rem !important;
  line-height: 1.05 !important;
}

/* Rótulo em caixa alta preservado */
.features-overview span:nth-child(3) {
  color: #111111 !important;
  font-size: 0.95rem !important;
  letter-spacing: 1px !important;
  font-weight: 800 !important;
  margin-top: 0 !important;
}

/* Descrição legível e nítida com entrelinha compacta */
.features-overview span:nth-child(4) {
  color: #4a4a4a !important;
  font-size: 0.94rem !important;
  line-height: 1.35 !important;
  margin-top: 0 !important;
}

/* ─── 3. SEÇÃO QUEBRA DE OBJEÇÕES (MESMO QUE...) ─ */

.objections {
  position: relative;
  background: linear-gradient(180deg, rgba(252, 228, 236, 0.45) 0%, #FFFFFF 35%, #FFFFFF 85%, rgba(250, 250, 250, 0.7) 100%);
  padding: 4.5rem 0 4rem 0;
}

.objections-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
  position: relative;
}

.objection-item {
  background: #FFFFFF;
  padding: 2.2rem 1.6rem 2rem 1.6rem;
  border-radius: 20px;
  border: 1px solid rgba(232, 62, 140, 0.12);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04), 0 1px 4px rgba(232, 62, 140, 0.06);
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Linha superior com gradiente rosa que dá sofisticação e conexão */
.objection-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #E83E8C, #F48FB1);
  opacity: 0.85;
  transition: height 0.25s ease, opacity 0.25s ease;
}

.objection-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(232, 62, 140, 0.14), 0 2px 8px rgba(0, 0, 0, 0.04);
  border-color: rgba(232, 62, 140, 0.35);
}

.objection-item:hover::before {
  height: 6px;
  opacity: 1;
}

/* Moldura e efeito circular no ícone para criar transição suave */
.objection-item i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(232, 62, 140, 0.12), rgba(244, 143, 177, 0.18));
  color: var(--color-primary-dark);
  font-size: 2rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 4px 14px rgba(232, 62, 140, 0.12);
  transition: transform 0.25s ease, background 0.25s ease;
}

.objection-item:hover i {
  transform: scale(1.08) rotate(3deg);
  background: linear-gradient(135deg, #E83E8C, #D81B60);
  color: #FFFFFF;
}

.objection-item h4 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.objection-item p {
  font-size: 1rem;
  color: #555555;
  line-height: 1.65;
  margin: 0;
}

/* ─── 4. SEÇÃO FATURAMENTO ──────────────────────── */

.revenue-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 540px;
  margin: 0 auto;
}

.revenue-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.35rem 1.6rem;
  border-radius: 16px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.04);
  border: 1px solid rgba(232, 62, 140, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.revenue-client {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.1rem;
}

.revenue-client i {
  font-size: 2.2rem;
  flex-shrink: 0;
}

.revenue-client span:first-child {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.25;
}

.revenue-client span:last-child {
  font-size: 0.95rem;
  color: #666;
}

.revenue-amount {
  text-align: right;
  flex-shrink: 0;
}

.revenue-amount div:first-child {
  font-size: 1.45rem !important;
  font-weight: 800;
  color: var(--color-primary-dark);
  line-height: 1.2;
}

.revenue-amount div:last-child {
  font-size: 0.92rem;
  color: #777;
}

/* Featured revenue legível */
.revenue-card.featured-revenue {
  box-shadow: 0 10px 24px rgba(216, 27, 96, 0.28);
}

.revenue-card.featured-revenue .revenue-client span {
  color: #fff !important;
}

.revenue-card.featured-revenue .revenue-amount div {
  color: #fff !important;
}

.earnings-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin: 2rem auto 1rem auto;
  max-width: 720px;
}

.earnings-badge {
  font-size: 0.94rem;
  font-weight: 600;
  padding: 0.65rem 1.25rem;
  background: rgba(232, 62, 140, 0.08);
  border: 1px solid rgba(232, 62, 140, 0.22);
  border-radius: 50px;
  color: var(--color-primary-dark);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
}

/* ─── 5. BOTÕES CTA — Touch Target 48px mínimo ──── */

.btn {
  min-height: 52px;
  padding: 0.95rem 2rem;
  font-size: 1.05rem;
  letter-spacing: 0.3px;
  border-radius: 50px;
  line-height: 1.3;
}

.btn-primary {
  background: linear-gradient(135deg, #F06292, #D81B60);
  box-shadow: 0 4px 18px rgba(216, 27, 96, 0.3);
}

.btn-primary:hover,
.btn-primary:focus {
  box-shadow: 0 8px 24px rgba(216, 27, 96, 0.45);
  transform: translateY(-2px);
}

/* Botão de checkout grande e destacado */
a[href*="lowify"].btn-pulse {
  font-size: 1.1rem !important;
  padding: 1.1rem 1.5rem !important;
  min-height: 56px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.5px;
}

/* ─── 6. SEÇÃO DE PREÇOS ────────────────────────── */

.pricing-card {
  border-radius: 20px;
  padding: 2rem 1.75rem;
}

.pricing-card.featured {
  border-width: 2px;
}

/* Preço mais legível */
.amount {
  font-size: 3.5rem;
}

.currency, .cents {
  font-size: 1.4rem;
  margin-top: 0.4rem;
}

/* Lista de features com melhor espaçamento */
.pricing-features li {
  margin-bottom: 0.65rem;
  font-size: 0.96rem !important;
  color: #222 !important;
  line-height: 1.4;
}

.pricing-features i {
  color: #D81B60 !important;
  font-size: 1.1rem !important;
  margin-top: 2px;
  flex-shrink: 0;
}

/* ─── 7. FAQ ─────────────────────────────────────── */

.faq-question {
  font-size: 1rem;
  padding: 1.25rem 1.5rem;
  line-height: 1.45;
  color: #1a1a1a;
  font-weight: 600;
}

/* Aumenta max-height para não cortar respostas */
.faq-item.active .faq-answer {
  max-height: 400px;
}

.faq-answer p {
  font-size: 0.97rem;
  color: #555;
  line-height: 1.65;
}

.faq-item {
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

/* ─── 8. SEÇÃO GARANTIA ─────────────────────────── */

.section[style*="color-background"] .container,
section.section > .container[style*="border: 2px dashed"] {
  padding: 2.5rem 1.5rem !important;
}

/* ─── 9. PROFESSORA ─────────────────────────────── */

/* Layout: coluna única, imagem borda-a-borda, texto centrado */
.teacher-container {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 0 !important;
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

.teacher-image {
  width: 100%;
  overflow: hidden;
}

.teacher-image img {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  display: block !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.teacher-content {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
  padding: 2.5rem 1.5rem 3rem;
}

.teacher-content h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  text-align: center;
}

.teacher-content h3 {
  font-size: 1.35rem;
  margin-bottom: 0.85rem;
  text-align: center;
  color: var(--color-primary);
}

.teacher-content p {
  font-size: 1rem;
  line-height: 1.7;
  color: #ccc;
  text-align: center;
}

.teacher-stats {
  justify-content: center;
  text-align: center;
  margin-top: 2rem;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: clamp(2rem, 6vw, 2.8rem);
  font-weight: 800;
  color: var(--color-primary);
  display: block;
  margin-bottom: 0.25rem;
}

.stat-item > span:last-child {
  color: #ffffff;
  font-size: 1rem;
}

/* ─── 10. RESPONSIVIDADE MOBILE ─────────────────── */

@media (max-width: 600px) {

  /* Aumento de fonte base no mobile para não ficar pequena */
  html {
    font-size: 16.5px;
  }

  body {
    font-size: 1.02rem;
  }

  p,
  .section-subtitle,
  .objection-item p,
  .faq-answer p,
  .teacher-content p,
  .revenue-disclaimer,
  .guarantee-box p {
    font-size: 1rem;
    line-height: 1.6 !important;
  }

  /* Announcement bar já existente — melhora padding */
  #announcement-bar {
    padding: 7px 10px !important;
  }

  /* Features: 2 colunas no mobile com quadrados compactos e otimizados (espaço reduzido, letras preservadas) */
  .features-overview {
    padding: 1.25rem 0.6rem 0.75rem 0.6rem !important;
    margin-bottom: 1rem !important;
  }

  .features-overview .container > div {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem !important;
  }

  .features-overview .container > div > div {
    max-width: 100% !important;
    flex: none !important;
    padding: 0.85rem 0.65rem !important;
    gap: 0.2rem !important;
    border: 1.5px solid #ffccd9 !important;
    border-radius: 14px !important;
  }

  .features-overview i {
    font-size: 1.85rem !important;
    margin-bottom: 0 !important;
  }

  .features-overview span:nth-child(2) {
    font-size: 2.3rem !important;
    line-height: 1.05 !important;
  }

  .features-overview span:nth-child(3) {
    font-size: 0.92rem !important;
    letter-spacing: 0.8px !important;
  }

  .features-overview span:nth-child(4) {
    font-size: 0.9rem !important;
    line-height: 1.35 !important;
  }

  /* Títulos de seção equilibrados e fáceis de ler */
  .section-title {
    font-size: 1.7rem;
    line-height: 1.3;
  }

  .section-subtitle {
    font-size: 1.05rem;
    line-height: 1.55;
    padding: 0 0.5rem;
  }

  /* Padding de seções reduzido */
  .section {
    padding: 3rem 0 !important;
  }

  /* Objections em 1 coluna no mobile */
  .objections-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .objection-item {
    padding: 1.6rem 1.4rem;
  }

  .objection-item h4 {
    font-size: 1.25rem;
  }

  .objection-item p {
    font-size: 1.02rem;
  }

  /* Seção Faturamento: Totalmente centralizada e harmoniosa no mobile */
  .revenue-grid {
    max-width: 100%;
    padding: 0 0.75rem;
    gap: 0.85rem;
  }

  .revenue-card {
    padding: 1.25rem 1.4rem;
    justify-content: space-between;
    align-items: center;
    border-radius: 14px;
  }

  .revenue-client {
    font-size: 1rem;
    gap: 0.85rem;
  }

  .revenue-client i {
    font-size: 2rem;
  }

  .revenue-client span:first-child {
    font-size: 1.08rem;
  }

  .revenue-client span:last-child {
    font-size: 0.92rem;
  }

  .revenue-amount div:first-child {
    font-size: 1.35rem !important;
  }

  .revenue-amount div:last-child {
    font-size: 0.88rem;
  }

  /* Botões full-width e confortáveis */
  .btn {
    width: 100%;
    font-size: 1.08rem;
    min-height: 56px;
    padding: 1rem 1.5rem;
  }

  /* Pricing card sem margem lateral */
  .pricing-card {
    padding: 1.8rem 1.4rem;
  }

  .pricing-header h2 {
    font-size: 1.65rem !important;
  }

  .pricing-features li {
    font-size: 1.02rem !important;
    margin-bottom: 0.8rem;
  }

  .pricing-grid.single-offer {
    margin-left: 0.75rem;
    margin-right: 0.75rem;
  }

  /* FAQ mais nítido e com toque fácil */
  .faq-question {
    font-size: 1.05rem;
    padding: 1.2rem 1.25rem;
  }

  .faq-answer p {
    font-size: 1rem;
  }

  /* Garantia compacta e proporcional */
  .guarantee-section {
    padding: 1.5rem 1rem !important;
  }

  .guarantee-box {
    max-width: 440px !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding: 1.25rem 1.4rem 1.2rem !important;
    border-width: 1.5px !important;
  }

  /* Preço grande no mobile */
  .amount {
    font-size: 3.4rem;
  }

  /* Teacher: sempre coluna única — já definido globalmente */
  .teacher-content h2 {
    font-size: 1.85rem;
  }

  /* Earnings badges em coluna ou cards centralizados */
  .earnings-container {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    padding: 0 0.75rem;
  }

  .earnings-badge {
    width: 100%;
    justify-content: center;
    font-size: 0.98rem;
    padding: 0.75rem 1rem;
  }

  .revenue-disclaimer {
    font-size: 0.92rem;
    padding: 0 1rem;
    line-height: 1.55;
  }
}

@media (max-width: 420px) {
  .section-title {
    font-size: 1.55rem;
  }

  .features-overview .container > div {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem !important;
  }

  .features-overview .container > div > div {
    padding: 0.75rem 0.5rem !important;
    gap: 0.15rem !important;
    border: 1.5px solid #ffccd9 !important;
    border-radius: 12px !important;
  }

  .features-overview span:nth-child(2) {
    font-size: 2.2rem !important;
    line-height: 1.05 !important;
  }

  .revenue-card {
    padding: 1rem 1.15rem;
  }

  .revenue-client span:first-child {
    font-size: 1rem;
  }

  .revenue-amount div:first-child {
    font-size: 1.25rem !important;
  }
}

/* ─── 11. ACESSIBILIDADE & FOCO ─────────────────── */

a:focus-visible,
button:focus-visible {
  outline: 3px solid #E83E8C;
  outline-offset: 3px;
  border-radius: 4px;
}

/* ─── 12. MELHORIAS GERAIS DE CONTRASTE ─────────── */

/* Garante mínimo WCAG AA em textos pequenos */
.section-subtitle,
.objection-item p,
.faq-answer p,
.teacher-content p,
.revenue-disclaimer {
  color: #505050;
}



@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

/* Desativa animações para usuários que preferem, mantendo o marquee visível e pausado */
@media (prefers-reduced-motion: reduce) {
  *:not(.marquee-track), *:not(.marquee-track)::before, *:not(.marquee-track)::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .marquee-track {
    animation-play-state: paused !important;
  }
}

/* Garante renderização imediata e visibilidade contínua do marquee */
.marquee-container {
  min-height: 280px;
}
.marquee-item {
  min-height: 180px;
}
