/* ===========================================================================
   [V27] fontes oficiais hospedadas por nós + banner de promoção composto +
   botão Conta no anônimo com a mesma caixa da ref logada.
   Carregado por último, depois de polish-v26.css.
   =========================================================================== */

/* Space Grotesk — SIL OFL 1.1 (Google Fonts / Florian Karsten). Subset latin, variável 400–700. */
@font-face {
  font-family: "Space Grotesk";
  src: url("/platform/fonts/space-grotesk-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

/* Cabinet Grotesk Bold — ITF Free Font License 2.0 (Fontshare). Arquivo oficial, SEM subset/conversão. */
@font-face {
  font-family: "Cabinet Grotesk";
  src: url("/platform/fonts/CabinetGrotesk-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Bangers — SIL OFL 1.1 (já em bangers-latin.woff2; família usada no título da promo / fallback). */
@font-face {
  font-family: "TH Bangers";
  src: url("/platform/fonts/bangers-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ---------- Conta no anônimo: mesma caixa 88,5×32 c/ ícone da ref logada ---------- */
html body .site-header .hd-btn-acct.is-logged {
  background: #f7f5f2; color: #000; padding: 8px 12px; gap: 8px;
  font: 700 14px/16px "Space Grotesk", sans-serif;
  display: inline-flex; align-items: center; justify-content: center;
  height: 32px; box-sizing: border-box; min-width: 88.5px;
}
html body .site-header .hd-btn-acct.is-logged .btn-icon--before { width: 16px; height: 16px; display: block; }

/* ---------- Banner de promoção composto (arte nossa + texto HTML no corpo) ---------- */
html body main.page-home .hf-promo.hf-promo-art {
  background: #140c28;
  position: relative;
  overflow: hidden;
}
html body main.page-home .hf-promo-art .hf-promo-pic,
html body main.page-home .hf-promo-art .hf-promo-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  display: block; object-fit: cover; object-position: center; z-index: 0; pointer-events: none;
}
html body main.page-home .hf-promo-art .hf-promo-l,
html body main.page-home .hf-promo-art .hf-promo-r,
html body main.page-home .hf-promo-art .hf-promo-moon { display: none; }

/* título vai desenhado na arte: some do fluxo, fica acessível p/ leitores de tela */
html body main.page-home .hf-promo-art .hf-promo-t,
html body main.page-home .hf-promo-art .hf-promo-t.hf-promo-t0 {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
  transform: none; font-size: 1px; line-height: 0; text-shadow: none; -webkit-text-stroke: 0;
}

/* corpo: Cabinet Grotesk Bold (é a fonte que o original carrega na home e que casa com "GANHE ATÉ -40%") */
html body main.page-home .hf-promo-art .hf-promo-txt {
  z-index: 1; gap: 0; align-items: center; text-align: center;
}
html body main.page-home .hf-promo-art .hf-promo-up,
html body main.page-home .hf-promo-art .hf-promo-off,
html body main.page-home .hf-promo-art .hf-promo-tall .hf-promo-s {
  display: block;
  color: #ffdb26;
  font-family: "Cabinet Grotesk", "Space Grotesk", sans-serif;
  font-weight: 700;
  font-style: normal;
  font-stretch: 100%;
  text-transform: uppercase;
  text-shadow: none;
  white-space: nowrap;
  letter-spacing: 0;
}
html body main.page-home .hf-promo-art .hf-promo-pct { color: #ff2a2a; font-style: normal; font-family: inherit; font-weight: inherit; }

/* mobile (390): linhas y=105–129 e 151–176, CTA y=244–293, alinhadas à esquerda */
@media (max-width: 767px) {
  html body main.page-home .hf-promo-art.hf-promo-tall .hf-promo-txt,
  html body main.page-home .hf-promo-art .hf-promo-txt {
    top: 100px; left: 20px; right: 16px; align-items: flex-start; text-align: left; gap: 0;
  }
  html body main.page-home .hf-promo-art .hf-promo-up,
  html body main.page-home .hf-promo-art .hf-promo-off,
  html body main.page-home .hf-promo-art .hf-promo-tall .hf-promo-s {
    font-size: 34px; line-height: 36px; font-stretch: 100%;
  }
  html body main.page-home .hf-promo-art .hf-promo-up { margin-top: 0; }
  html body main.page-home .hf-promo-art .hf-promo-off { margin-top: 20px; }
  html body main.page-home .hf-promo-art .hf-promo-cta {
    margin-top: 64px; margin-left: 0; height: 46px; padding: 0 16px;
    font: 700 14px/46px "Cabinet Grotesk", "Space Grotesk", sans-serif;
    font-stretch: 100%;
  }
}

/* desktop: linhas y=124–165 e 179–222 de 360, CTA y=256–312 */
@media (min-width: 768px) {
  html body main.page-home .hf-promo-art .hf-promo-txt,
  html body main.page-home .hf-promo-art.hf-promo-tall .hf-promo-txt {
    top: 118px; left: 18%; right: 18%; transform: none; align-items: center; text-align: center; gap: 0;
  }
  html body main.page-home .hf-promo-art .hf-promo-up,
  html body main.page-home .hf-promo-art .hf-promo-off,
  html body main.page-home .hf-promo-art .hf-promo-tall .hf-promo-s {
    font-size: 56px; line-height: 52px; font-stretch: 100%;
  }
  html body main.page-home .hf-promo-art .hf-promo-up { margin-top: 0; }
  html body main.page-home .hf-promo-art .hf-promo-off { margin-top: 14px; }
  html body main.page-home .hf-promo-art .hf-promo-cta {
    margin-top: 28px; height: 46px; padding: 0 20px;
    font: 700 14px/46px "Cabinet Grotesk", "Space Grotesk", sans-serif;
  }
}
