/* =========================================================
   NanoPolix — Presell de una dobra (Espanha)
   Paleta extraída da identidade visual oficial:
   - Amarelo da embalagem:  #F6C222
   - Preto do wordmark:     #171717
   - Azul do CTA oficial:   #1D4ED8
   - Fundo neutro:          #FFFFFF
   ========================================================= */

:root {
  --yellow: #F6C222;
  --yellow-soft: #FCE9A8;
  --ink: #171717;
  --ink-soft: #4B4B4B;
  --blue: #1D4ED8;
  --blue-dark: #163AA8;
  --white: #FFFFFF;
  --line: #EDEAE2;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--white);
  color: var(--ink);
  overflow: hidden; /* mantém a página em uma única dobra, sem scroll */
}

.page {
  min-height: 100dvh;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ---------- Barra de urgência ---------- */
.urgency-bar {
  background: var(--ink);
  color: var(--yellow);
  text-align: center;
  font-size: clamp(11px, 3vw, 13px);
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 7px 10px;
  flex-shrink: 0;
}

/* ---------- Cabeçalho ---------- */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  flex-shrink: 0;
}

.logo {
  font-size: clamp(18px, 5vw, 22px);
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.logo-accent {
  color: var(--blue);
}

.stock-pill {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink);
  background: var(--yellow-soft);
  border: 1px solid var(--yellow);
  padding: 4px 10px;
  border-radius: 100px;
  white-space: nowrap;
}

/* ---------- Hero ---------- */
.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(6px, 2vh, 16px);
  padding: 0 20px 16px;
  min-height: 0;
}

.hero-media {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-height: 38vh;
  overflow: hidden;
  border-radius: 10px;
}

.product-img {
  height: 100%;
  max-height: 38vh;
  width: auto;
  max-width: 60%;
  object-fit: contain;
  display: block;
  border-radius: 10px;
}

.hero-content {
  width: 100%;
  max-width: 460px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(6px, 1.4vh, 10px);
}

.eyebrow {
  font-size: clamp(14px, 4vw, 17px);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
}

.rating {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}

.stars {
  color: var(--yellow);
  font-size: 14px;
  letter-spacing: 1px;
}

.rating-text {
  font-size: 12px;
  color: var(--ink-soft);
  font-weight: 500;
}

/* ---------- Rótulo do pacote ---------- */
.package-label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-soft);
}

/* ---------- Bloco de preço (espelha o checkout oficial) ---------- */
.price-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  margin-top: 2px;
}

.price-old {
  font-size: 15px;
  color: var(--ink-soft);
  text-decoration: line-through;
  text-decoration-color: var(--ink-soft);
}

.price-final {
  font-size: clamp(30px, 8.5vw, 40px);
  font-weight: 800;
  color: var(--ink);
  line-height: 1.15;
}

.price-unit {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-soft);
}

.discount-label {
  font-size: 14px;
  font-weight: 800;
  color: #D42020;
  letter-spacing: 0.01em;
}

/* ---------- CTA ---------- */
.cta-button {
  display: block;
  width: 100%;
  max-width: 380px;
  background: var(--blue);
  color: var(--white);
  text-decoration: none;
  text-align: center;
  font-size: clamp(15px, 4.2vw, 17px);
  font-weight: 700;
  padding: 15px 20px;
  border-radius: 8px;
  margin-top: 6px;
}

.cta-button:active {
  background: var(--blue-dark);
}

.guarantee {
  font-size: 11.5px;
  color: var(--ink-soft);
  font-weight: 500;
  margin-top: 2px;
}

/* ---------- Responsivo: telas mais largas (tablet/desktop) ---------- */
@media (min-width: 720px) {
  .hero {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 48px;
    padding: 0 40px 24px;
  }

  .hero-media {
    max-height: 60vh;
    flex: 0 0 40%;
  }

  .product-img {
    max-height: 56vh;
    max-width: 90%;
  }

  .hero-content {
    text-align: left;
    align-items: flex-start;
    max-width: 420px;
  }

  .rating,
  .price-row {
    justify-content: flex-start;
  }

  .cta-button {
    max-width: 340px;
  }
}

/* ---------- Telas muito baixas (garante uma única dobra) ---------- */
@media (max-height: 560px) {
  .urgency-bar { padding: 5px 10px; }
  .header { padding: 8px 18px; }
  .hero-media { max-height: 26vh; }
  .product-img { max-height: 26vh; }
}