/*
 * AMI Petz — Landing Page
 *
 * CSS unificado e otimizado para:
 * - manutenção
 * - organização semântica
 * - alta performance (sem bloqueio de renderização)
 * - responsividade fluida
 */

/* =========================================
   VARIÁVEIS
========================================= */
:root {
  --primary: #00B4FF;
  --secondary: #0088CC;
  --light: #E1F5FE;
  --dark: #173042;
  --text: #405563;
  --border: #dcecf4;
  --shadow: 0 18px 50px rgba(0, 77, 112, 0.12);
}

/* =========================================
   RESET E BASE
========================================= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: #fff;
}

img {
  display: block;
  width: 100%;
  height: auto;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin: auto;
}

/* =========================================
   TOPBAR OFERTA (FRETE GRÁTIS)
========================================= */
.topbar-offer {
  background-color: #219653; 
  color: #ffffff;
  text-align: center;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.5px;
  z-index: 30;
  position: relative;
}

.fade-text {
  transition: opacity 0.4s ease-in-out;
  display: inline-block;
  opacity: 1;
}

/* =========================================
   HEADER
========================================= */
header {
  padding: 16px 0;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid #edf5f8;
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  font-weight: 800;
  color: var(--secondary);
  font-size: 18px;
}

.header-cta,
.main-cta,
.product-button {
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  border-radius: 999px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.header-cta {
  padding: 10px 17px;
  font-size: 14px;
}

.header-cta:hover,
.main-cta:hover,
.product-button:hover {
  background: var(--secondary);
  transform: translateY(-1px);
}

/* =========================================
   HERO
========================================= */
.hero {
  background: radial-gradient(circle at 85% 20%, rgba(0, 180, 255, 0.16), transparent 35%), linear-gradient(180deg, #f8fdff, #fff);
  padding: 56px 0 48px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  align-items: center;
  gap: 48px;
}

.eyebrow {
  display: inline-block;
  color: var(--secondary);
  background: var(--light);
  border: 1px solid #c7edfb;
  border-radius: 999px;
  padding: 7px 13px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 18px;
}

h1 {
  color: var(--dark);
  font-size: clamp(36px, 5vw, 62px);
  line-height: 1.04;
  letter-spacing: -2px;
  margin-bottom: 20px;
}

.hero p {
  max-width: 600px;
  font-size: 19px;
  margin-bottom: 25px;
}

.hero-list,
.benefits {
  list-style: none;
  display: grid;
  gap: 9px;
  margin-bottom: 28px;
}

.hero-list li,
.benefits li {
  padding-left: 27px;
  position: relative;
}

.hero-list li::before,
.benefits li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--secondary);
  font-weight: 900;
}

.main-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 26px;
  box-shadow: 0 10px 24px rgba(0, 180, 255, 0.22);
}

.hero-image {
  max-width: 510px;
  margin: auto;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-image img {
  aspect-ratio: 1;
  object-fit: cover;
}

/* =========================================
   ESTRUTURA DE SEÇÕES
========================================= */
section {
  padding: 72px 0;
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 40px;
  text-align: center;
}

.section-heading h2 {
  color: var(--dark);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  margin-bottom: 12px;
}

.section-heading p {
  font-size: 17px;
}

/* =========================================
   CUPOM DE DESCONTO
========================================= */
.coupon-section {
  padding: 0 0 32px; 
}

.coupon-banner {
  background: #f8fbf9;
  border: 1px solid #dceddd;
  border-radius: 16px;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(46, 125, 50, 0.06);
}

.coupon-text {
  font-weight: 900;
  color: #219653;
  font-size: 20px;
  letter-spacing: -0.5px;
}

.coupon-instruction {
  color: #546e7a;
  font-size: 15px;
  margin-bottom: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px; /* Espaço entre o texto e o botão */
}

.coupon-code {
  background: #e8f5e9;
  border: 2px dashed #4caf50;
  border-radius: 8px;
  padding: 10px 24px;
  color: #1b5e20;
  font-weight: 900;
  font-size: 18px;
  font-family: monospace, sans-serif;
  letter-spacing: 1.5px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.coupon-code:hover {
  background: #c8e6c9;
  border-color: #2e7d32;
  transform: scale(1.02);
}

.coupon-code:active {
  transform: scale(0.98);
}

.coupon-code.copiado {
  background: #2e7d32;
  color: #ffffff;
  border: 2px solid #2e7d32;
}

.copy-icon {
  font-size: 16px;
  opacity: 0.8;
}

/* =========================================
   PRODUTOS E PREÇOS
========================================= */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}

.product-card {
  border: 1px solid var(--border);
  border-radius: 22px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 35px rgba(0, 77, 112, 0.07);
  display: flex;
  flex-direction: column;
}

.product-image {
  padding: 14px;
  background: #f6fbfd;
}

.product-image img {
  border-radius: 16px;
  aspect-ratio: 1;
  object-fit: cover;
}

.product-content {
  padding: 26px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-tag {
  color: var(--secondary);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  margin-bottom: 8px;
}

.product-content h3 {
  color: var(--dark);
  font-size: 27px;
  line-height: 1.15;
  margin-bottom: 10px;
}

.benefits {
  margin: 0 0 24px;
}

/* GATILHOS DE CUSTO-BENEFÍCIO */
.yield-badge {
  background-color: #e8f5e9;
  color: #2e7d32;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
  padding: 6px 12px;
  border-radius: 8px;
  margin-bottom: 12px;
  border: 1px dashed #81c784;
}

.price-box {
  background: var(--light);
  border-radius: 16px;
  padding: 20px;
  margin-top: auto;
  margin-bottom: 18px;
  border: 1px solid #c7edfb;
}

.price-label {
  display: block;
  font-size: 13px;
}

.price {
  display: block;
  color: var(--dark);
  font-size: 31px;
  line-height: 1.1;
}

.installment {
  display: block;
  color: var(--secondary);
  font-size: 14px;
  font-weight: 700;
  margin-top: 5px;
}

.cost-benefit {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #c7edfb;
  font-size: 13px;
  color: var(--text);
  line-height: 1.4;
  text-align: center;
}

.cost-benefit strong {
  color: var(--secondary);
  font-weight: 800;
}

.product-button {
  width: 100%;
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.microcopy {
  text-align: center;
  font-size: 12px;
  color: #6e808a;
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

/* =========================================
   BENEFÍCIOS (Rotina 3 passos)
========================================= */
.benefits-section {
  background: var(--light);
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.benefit-card {
  background: #fff;
  border: 1px solid #d5edf7;
  border-radius: 18px;
  padding: 26px;
}

.benefit-number {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 900;
  margin-bottom: 17px;
}

.benefit-card h3 {
  color: var(--dark);
  font-size: 19px;
  margin-bottom: 8px;
}

/* =========================================
   PREVENÇÃO / CUSTO-BENEFÍCIO (Substitui Escolha)
========================================= */
.prevention-section {
  padding: 20px 0 60px;
}

.prevention-box {
  max-width: 900px;
  margin: auto;
  background: #f8fcfe;
  border: 1px solid var(--border);
  border-radius: 26px;
  padding: 42px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 77, 112, 0.04);
}

.prevention-box h2 {
  color: var(--dark);
  font-size: 32px;
  line-height: 1.2;
  margin-bottom: 16px;
}

.prevention-box p {
  max-width: 700px;
  margin: 0 auto 28px;
  font-size: 16.5px;
  color: var(--text);
}

.disease-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-bottom: 36px;
}

.disease-list li {
  background: #fff;
  border: 1px solid #dcecf4;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  color: #c62828; 
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.disease-list li::before {
  content: "🩺";
  font-size: 16px;
}

.comparison-points {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  text-align: left;
}

.comparison-point {
  border-radius: 16px;
  padding: 24px;
  border: 1px solid var(--border);
}

.comparison-point.prevention {
  border-color: #81c784;
  background: #f1f8f2;
}

.comparison-point.treatment {
  border-color: #ffcdd2;
  background: #fffafa;
}

.comparison-point strong {
  display: block;
  font-size: 19px;
  margin-bottom: 10px;
  color: var(--dark);
}

.comparison-point span {
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
  display: block;
}

/* =========================================
   FAQ
========================================= */
.faq {
  background: var(--light);
}

.faq-list {
  max-width: 850px;
  margin: auto;
  display: grid;
  gap: 12px;
}

details {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 15px;
  padding: 18px 20px;
}

summary {
  cursor: pointer;
  color: var(--dark);
  font-weight: 800;
}

details p {
  margin-top: 12px;
  font-size: 15px;
}

/* =========================================
   CTA FINAL
========================================= */
.final-cta {
  padding: 78px 0;
  background: linear-gradient(135deg, var(--secondary), var(--primary));
  color: #fff;
  text-align: center;
}

.final-cta h2 {
  color: #fff;
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1.1;
  margin-bottom: 13px;
}

.final-cta p {
  max-width: 680px;
  margin: 0 auto 25px;
  font-size: 18px;
}

.final-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: var(--secondary);
  padding: 14px 28px;
  min-height: 52px;
  border-radius: 999px;
  font-weight: 900;
}

/* =========================================
   FOOTER E FLUTUANTES
========================================= */
footer {
  text-align: center;
  padding: 26px 0 90px;
  color: #71838d;
  font-size: 13px;
}

.floating-cta {
  display: none;
}

/* WHATSAPP */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 58px;
  height: 58px;
  background-color: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.3);
  z-index: 100;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
}

.whatsapp-icon {
  width: 34px;
  height: 34px;
}

/* =========================================
   MEDIA QUERIES (Sempre no final)
========================================= */

/* TABLET E MOBILE GRANDE */
@media (max-width: 850px) {
  .hero {
    padding: 38px 0 35px;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .hero-copy {
    text-align: center;
  }
  .hero p, .hero-list {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-list {
    text-align: left;
    max-width: 360px;
  }
  
  .product-grid,
  .benefit-grid,
  .comparison-points {
    grid-template-columns: 1fr;
  }
  
  section {
    padding: 56px 0;
  }
  
  /* Ajuste do botão flutuante e WhatsApp para não sobreporem */
  .floating-cta {
    display: block;
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 30;
  }
  .floating-cta a {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 52px;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    font-weight: 900;
    box-shadow: 0 12px 30px rgba(0, 72, 105, 0.22);
  }
  
  .whatsapp-float {
    bottom: 84px; /* Sobe o botão do WhatsApp acima da CTA */
    right: 16px;
    width: 50px;
    height: 50px;
  }
  .whatsapp-icon {
    width: 28px;
    height: 28px;
  }
}

/* SMARTPHONE PEQUENO */
@media (max-width: 520px) {
  .container {
    width: calc(100% - 22px);
  }
  .brand {
    font-size: 15px;
  }
  .header-cta {
    padding: 9px 13px;
    font-size: 12px;
  }
  h1 {
    font-size: 38px;
  }
  .hero-image {
    border-radius: 20px;
  }
  .product-content {
    padding: 21px;
  }
  .price {
    font-size: 28px;
  }
  .prevention-box {
    padding: 32px 20px;
  }
  .disease-list {
    flex-direction: column;
    align-items: center;
  }
}