/* ===== Fontes ===== */
@font-face {
  font-family: "Riffic";
  src: url("../assets/fonts/RifficFree-Bold.ttf") format("truetype");
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Quicksand";
  src: url("../assets/fonts/Quicksand-VariableFont_wght.ttf") format("truetype");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

/* ===== Variáveis ===== */
:root {
  --bg: #CC0045;
  --white: #FFFFFF;
  --gold: #FFFEA0;
  --lavender: #D9ABED;
}

/* ===== Reset ===== */
*,
*::before,
*::after { box-sizing: border-box; }

html, body { height: 100%; }
html { overflow-x: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--white);
  font-family: "Quicksand", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
}

img { display: block; }

/* ===== Decorações de fundo ===== */
.decor {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden; /* recorta as estrelas das bordas; fixed ignora overflow do body */
  z-index: 0;
}
.star {
  position: absolute;
  transform: translate(-50%, -50%);
  width: auto;
}
.star--white { height: clamp(70px, 12vw, 150px); }
.star--yellow { height: clamp(34px, 5vw, 64px); }

/* Posições (% detectadas da referência 852×480) */
.s-y1 { left: 22.9%; top: 12.7%; }
.s-y2 { left: 77.1%; top: 12.5%; }
.s-w1 { left: 94.5%; top: 11.9%; }
.s-w2 { left: 14.4%; top: 28.8%; }
.s-w3 { left: 85.7%; top: 71.9%; }
.s-w4 { left: 7.7%;  top: 87.3%; }

/* ===== Página / coluna central ===== */
.page {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 760px;
  padding: clamp(24px, 5vw, 48px) clamp(16px, 5vw, 40px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* ===== Header pill ===== */
.header-pill {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.5vw, 26px);
  padding: clamp(8px, 1.4vw, 12px) clamp(18px, 3vw, 30px);
  border: 2px solid var(--white);
  border-radius: 999px;
  text-decoration: none;
  color: var(--white);
  margin-bottom: clamp(28px, 6vw, 56px);
  transition: background-color .2s ease;
}
.header-pill:hover { background-color: rgba(255, 255, 255, .08); }

.header-pill__logo {
  height: clamp(34px, 5.5vw, 52px);
  width: auto;
}
.header-pill__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
}
.header-pill__line1 {
  font-size: clamp(.72rem, 1.6vw, .95rem);
  font-weight: 500;
}
.header-pill__line2 {
  font-size: clamp(.9rem, 2vw, 1.2rem);
  font-weight: 700;
}
.header-pill__ig {
  height: clamp(30px, 4.5vw, 44px);
  width: auto;
}

/* ===== Título (Riffic) ===== */
.hero-title {
  font-family: "Riffic", sans-serif;
  font-weight: bold;
  color: var(--white);
  font-size: clamp(2rem, 6.8vw, 3.6rem);
  line-height: 1.12;
  margin: 0 0 clamp(16px, 3vw, 26px);
  letter-spacing: .5px;
}
.hero-title__rocket {
  display: inline-block;
  height: clamp(1.6rem, 5.5vw, 3rem);
  width: auto;
  vertical-align: -.35em;
}

/* ===== Subtítulo (Quicksand) ===== */
.hero-subtitle {
  font-size: clamp(1rem, 2.8vw, 1.45rem);
  font-weight: 600;
  line-height: 1.4;
  margin: 0 0 clamp(28px, 6vw, 52px);
}
.destaque { color: var(--gold); }

/* ===== Label do contador ===== */
.countdown-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: clamp(6px, 1.2vw, 10px) clamp(16px, 3vw, 26px);
  border: 2px solid var(--white);
  border-radius: 999px;
  font-size: clamp(.78rem, 2vw, 1rem);
  font-weight: 600;
  margin: 0 0 clamp(18px, 3.5vw, 30px);
}
.countdown-label__icon { font-size: 1.05em; }

/* ===== Contador ===== */
.countdown {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: clamp(8px, 1.8vw, 16px);
}
.countdown__unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(6px, 1.2vw, 10px);
}
.countdown__box {
  min-width: clamp(74px, 14vw, 104px);
  padding: clamp(8px, 1.6vw, 14px) clamp(10px, 2vw, 18px);
  border: 2px solid var(--lavender);
  border-radius: 16px;
  font-family: "Riffic", sans-serif;
  font-weight: bold;
  font-size: clamp(2.2rem, 7vw, 3.4rem);
  line-height: 1;
  color: var(--white);
}
.countdown__caption {
  color: var(--lavender);
  font-weight: 700;
  font-size: clamp(.78rem, 2vw, 1.05rem);
}
.countdown__sep {
  color: var(--lavender);
  font-family: "Riffic", sans-serif;
  font-weight: bold;
  font-size: clamp(2rem, 6vw, 3rem);
  line-height: 1;
  margin-top: clamp(8px, 1.8vw, 16px);
}

/* ===== Responsivo / mobile ===== */
@media (max-width: 560px) {
  .header-pill {
    flex-direction: column;
    gap: 8px;
    border-radius: 28px;
  }
  .header-pill__text { align-items: center; }
  .s-w1, .s-w3 { display: none; }

  /* Mantém a quebra de 2 linhas da referência, mas reduz a fonte
     para que "A Super Live de Vendas" caiba mesmo nas telas estreitas */
  .hero-title { font-size: clamp(1.25rem, 6vw, 2rem); }

  /* Label do contador encolhe e pode quebrar, sem nunca estourar a largura */
  .countdown-label {
    max-width: 100%;
    flex-wrap: wrap;
    justify-content: center;
    font-size: clamp(.68rem, 3.2vw, .9rem);
  }
  .countdown-label__text { white-space: normal; }
}

@media (max-width: 380px) {
  .countdown__box { min-width: 62px; }
}
