/* =========================================================
   Mentoria Raissa Hamad – Upsell (Hero)
   Conceito: "Ouro no escuro"
   ========================================================= */

/* ---------- Fontes (self-hosted: Playfair Display, Montserrat, Inter – subset latin/PT-BR) ---------- */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 600; font-display: swap; src: url('../assets/fonts/inter-normal.woff2') format('woff2'); }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 600 900; font-display: swap; src: url('../assets/fonts/montserrat-normal.woff2') format('woff2'); }
@font-face { font-family: 'Playfair Display'; font-style: normal; font-weight: 700 900; font-display: swap; src: url('../assets/fonts/playfair-display-normal.woff2') format('woff2'); }
@font-face { font-family: 'Playfair Display'; font-style: italic; font-weight: 700 800; font-display: swap; src: url('../assets/fonts/playfair-display-italic.woff2') format('woff2'); }

:root {
  --bg: #0B0806;
  --bg-card: #17100B;
  --gold: #D4A24C;
  --gold-light: #F3D58C;
  --gold-dark: #8A5A1E;
  --red: #B3121F;
  --text: #F4ECE1;
  --text-muted: #A89C8C;
  --gold-gradient: linear-gradient(135deg, #8A5A1E 0%, #D4A24C 35%, #F3D58C 50%, #D4A24C 65%, #8A5A1E 100%);

  --font-title: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-label: "Montserrat", "Segoe UI", Arial, sans-serif;
  --font-body: "Inter", "Segoe UI", Arial, sans-serif;

  --glow: rgba(212, 162, 76, 0.18);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
h1, p { margin: 0; }
a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- Granulação + vinheta ---------- */
body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 90;
}
body::before { opacity: 0.04; }
/* ruído aplicado só depois do load (fora do caminho crítico) */
.is-loaded body::before {
  background: url("../assets/noise.png") repeat;
  background-size: 96px 96px;
}
body::after {
  background: radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, 0.55) 100%);
}

/* ---------- Texto com gradiente dourado ---------- */
.gold-text {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: var(--gold-light);
  -webkit-text-fill-color: transparent;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  padding-right: 0.08em;
}

/* =========================================================
   BARRA DE PROGRESSO (topo da Hero)
   ========================================================= */
.progress {
  position: relative;
  width: 100%;
  max-width: 520px;
  height: 26px;
  margin: 0 auto 20px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(212, 162, 76, 0.4);
}
.progress__fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 80%;
  border-radius: inherit;
  background-color: var(--gold);
  background-image: var(--gold-gradient);
  overflow: hidden;
  transform-origin: left center;
  animation:
    progress-in 1.6s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both,
    progress-glow 2.5s ease-in-out 1.8s infinite;
}
/* listras diagonais animadas */
.progress__fill::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -24px;
  right: 0;
  background: repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.18) 0 8px, transparent 8px 16px);
  animation: progress-stripes 1s linear infinite;
}
.progress__label {
  position: absolute;
  inset: 0 auto 0 0;
  width: 80%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 8px;
  font: 800 13px/1 var(--font-label);
  color: #0B0806;
  animation: fade-in 0.4s ease 1.5s both;
}
@keyframes progress-in {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}
@keyframes progress-stripes {
  to { transform: translateX(22.63px); } /* 16px ÷ cos 45° = 1 período da listra */
}
@keyframes progress-glow {
  0%, 100% { box-shadow: 0 0 4px rgba(243, 213, 140, 0.25); }
  50%      { box-shadow: 0 0 14px rgba(243, 213, 140, 0.7); }
}
@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  text-align: center;
  padding: 48px 32px 72px;
}
.hero__bg {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: -2;
}
.hero__bg img { width: 100%; }
/* degradê para o fundo na metade de baixo da imagem */
.hero__bg::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 50%;
  background: linear-gradient(to bottom, rgba(11, 8, 6, 0), var(--bg));
}
.hero__bokeh {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}
/* ---------- Headline ---------- */
.hero__title {
  position: relative;
  isolation: isolate;
  max-width: 1000px;
  margin: 0 auto;
  font: 900 clamp(2.5rem, 6.2vw, 5rem)/1.05 var(--font-title);
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: #fff;
  animation: title-in 0.6s ease-out 0.35s both;
}
/* glow radial escuro atrás da headline, separando o texto das fotos */
.hero__title::before {
  content: "";
  position: absolute;
  inset: -18% -8%;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.35) 55%, transparent);
  pointer-events: none;
}
@keyframes title-in {
  from { opacity: 0; transform: scale(0.96); }
  to   { opacity: 1; transform: scale(1); }
}
.hero__alert {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.18em;
}
.hero__alert-word {
  color: #E0182A;
  text-shadow: 0 0 24px rgba(224, 24, 42, 0.55);
  animation: alert-glow 2s ease-in-out infinite;
}
.hero__alert-icon {
  flex: 0 0 auto;
  width: 0.62em;
  height: 0.62em;
  fill: none;
  stroke: var(--gold);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  animation: soft-pulse 2s ease-in-out infinite;
}
@keyframes alert-glow {
  0%, 100% { text-shadow: 0 0 24px rgba(224, 24, 42, 0.55); }
  50%      { text-shadow: 0 0 34px rgba(224, 24, 42, 0.85), 0 0 8px rgba(224, 24, 42, 0.5); }
}
.hero__line {
  display: block;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.8);
  text-wrap: balance;
}
/* "100% CONCLUÍDA." – gradiente dourado claro + brilho passando a cada 4s */
.hero__gold {
  display: inline-block;
  white-space: nowrap;
  font-style: normal;
  background-image:
    linear-gradient(110deg, transparent 42%, rgba(255, 255, 255, 0.9) 50%, transparent 58%),
    linear-gradient(135deg, #D4A24C 0%, #F3D58C 40%, #FFF1C9 50%, #F3D58C 60%, #D4A24C 100%);
  background-size: 250% 100%, 100% 100%;
  background-repeat: no-repeat;
  background-position: 160% 0, 0 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: #F3D58C;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 18px rgba(0, 0, 0, 0.7));
  animation: text-shine 4s ease-in-out 1.2s infinite;
}
@keyframes text-shine {
  0%        { background-position: 160% 0, 0 0; }
  35%, 100% { background-position: -60% 0, 0 0; }
}

/* ---------- Selo de aviso ---------- */
.seal {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 10px;
  margin: 24px auto 0;
  padding: 10px 22px;
  border-radius: 8px;
  background: rgba(179, 18, 31, 0.12);
  border: 1px solid rgba(212, 162, 76, 0.6);
  font: 600 14px/1.35 var(--font-label);
  color: var(--gold-light);
}
.seal strong { font-weight: 800; }
.seal__icon {
  flex: 0 0 auto;
  fill: none;
  stroke: var(--gold);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  animation: soft-pulse 2s ease-in-out infinite;
}
@keyframes soft-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.15); opacity: 0.7; }
}

/* ---------- Texto de apoio ---------- */
.hero__support {
  display: grid;
  gap: 8px;
  max-width: 620px;
  margin: 20px auto 0;
  font-size: 17px;
  line-height: 1.55;
  color: var(--text-muted);
  text-wrap: pretty;
}
.hero__support strong { font-weight: 600; color: var(--text); }

/* ---------- Espaço do vídeo – 16:9 centralizado ---------- */
.video-frame {
  position: relative;
  width: 100%;
  max-width: 760px;
  aspect-ratio: 16 / 9;
  margin: 28px auto 0;
  border-radius: 16px;
  border: 1px solid rgba(212, 162, 76, 0.45);
  background: var(--bg-card);
  box-shadow: 0 0 60px rgba(212, 162, 76, 0.25), 0 24px 60px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  isolation: isolate;
}
/* embed que entrar depois ocupa 100% do container */
.video-frame iframe,
.video-frame video,
.video-frame > div:not(.video-cover) {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-cover {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 2vw, 20px);
  padding: 12px;
  text-align: center;
}
/* @Thumb-VSL: capa em cover; sem capa, fundo escuro com glow radial */
.video-cover__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-color: var(--bg-card);
  background-image: radial-gradient(ellipse at 50% 55%, rgba(212, 162, 76, 0.22), transparent 65%);
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease;
}
/* com capa: escurece os cantos para as chamadas ficarem legíveis */
.video-cover__bg[style*="background-image"]::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(0, 0, 0, 0.55), transparent 40%, transparent 60%, rgba(0, 0, 0, 0.6));
}
.video-cover__title {
  font: italic 800 clamp(1.5rem, 3.5vw, 2.5rem)/1.1 var(--font-title);
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.7));
}
.play {
  position: relative;
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  color: #0B0806;
  background-color: var(--gold);
  background-image: var(--gold-gradient);
  box-shadow: 0 0 30px rgba(212, 162, 76, 0.45);
  transition: transform 0.3s ease;
}
.play svg { margin-left: 3px; width: 28px; height: 28px; }
/* anel pulsante */
.play::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(243, 213, 140, 0.7);
  animation: ring 2s ease-out infinite;
}
@keyframes ring {
  0%   { transform: scale(0.9); opacity: 0.9; }
  100% { transform: scale(1.35); opacity: 0; }
}
.video-frame:hover .video-cover__bg { transform: scale(1.03); }
.video-frame:hover .play { transform: scale(1.08); }

/* ---------- Botão de compra ---------- */
.hero__cta {
  display: flex;
  justify-content: center;
  margin-top: 32px;
}
.btn {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 60px;
  padding: 20px 44px;
  border-radius: 999px;
  background-color: var(--gold);
  background-image: var(--gold-gradient);
  color: #0B0806;
  font: 800 17px/1.25 var(--font-label);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  text-wrap: balance;
  cursor: pointer;
  box-shadow: 0 6px 0 var(--gold-dark), 0 12px 30px rgba(212, 162, 76, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
/* pulso de glow (anima só opacidade → roda no compositor) */
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 0 6px rgba(212, 162, 76, 0.14), 0 6px 46px rgba(243, 213, 140, 0.55);
  opacity: 0;
  z-index: -1;
  animation: btn-pulse 2.5s ease-in-out infinite;
}
.btn__shine {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
  pointer-events: none;
}
.btn__shine::after {
  content: "";
  position: absolute;
  top: -10%;
  bottom: -10%;
  left: -60%;
  width: 40%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.7), transparent);
  transform: translateX(0) skewX(-20deg);
  animation: btn-shine 3.5s ease-in-out infinite;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 0 var(--gold-dark), 0 14px 36px rgba(212, 162, 76, 0.4);
  filter: brightness(1.05);
}
.btn:active {
  transform: translateY(4px);
  box-shadow: 0 2px 0 var(--gold-dark), 0 6px 18px rgba(212, 162, 76, 0.3);
}
@keyframes btn-pulse {
  0%, 100% { opacity: 0; }
  50%      { opacity: 1; }
}
@keyframes btn-shine {
  0%        { transform: translateX(0) skewX(-20deg); }
  35%, 100% { transform: translateX(420%) skewX(-20deg); }
}

.secure {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 7px;
  margin: 18px auto 0;
  font: 500 13px/1.3 var(--font-body);
  color: var(--text-muted);
}
.secure svg { fill: none; stroke: var(--gold); stroke-width: 1.6; stroke-linecap: round; }

/* ---------- Responsivo ---------- */
/* MOBILE: foto no topo (sem texto por cima) e, sem rolar, barra + headline + vídeo + botão */
@media (max-width: 767.98px) {
  .hero { padding: 0 0 24px; }
  /* @Banner-Mobile como faixa de imagem no topo */
  .hero__bg {
    position: relative;
    display: block;
    height: clamp(140px, 26svh, 230px);
    overflow: hidden;
  }
  .hero__bg img { height: 100%; object-fit: cover; object-position: center 2%; }
  .hero__bg::after { height: 35%; }

  /* barra mais grossa e com a largura da linha "SUA COMPRA NÃO ESTÁ" (12em no tamanho da headline) */
  .progress {
    font-size: clamp(1.35rem, 6.6vw, 1.75rem);
    width: min(12em, calc(100% - 32px));
    height: 24px;
    margin: -12px auto 10px;
  }
  .progress__label { font-size: 12px; }

  .hero__title {
    max-width: calc(100% - 32px);
    font-size: clamp(1.35rem, 6.6vw, 1.75rem);
    line-height: 1.1;
  }
  .hero__title::before { display: none; }
  /* "ATENÇÃO:" em pílula branca */
  .hero__alert {
    display: inline-flex;
    gap: 8px;
    margin-bottom: 8px;
    padding: 6px 16px;
    border-radius: 999px;
    background: #fff;
    color: #C8102E;
    font: 900 15px/1.2 var(--font-label);
    letter-spacing: 0.12em;
    animation: pill-glow 1.8s ease-out infinite;
  }
  .hero__alert-word { color: inherit; text-shadow: none; animation: none; }
  .hero__alert-icon { width: 15px; height: 15px; stroke: currentColor; animation: none; }
  .hero__line { white-space: nowrap; }

  .video-frame { width: calc(100% - 32px); margin-top: 14px; border-radius: 12px; }
  .video-cover { gap: 10px; }
  .video-cover__title { font-size: clamp(1rem, 5vw, 1.3rem); }
  .play { width: 48px; height: 48px; }
  .play svg { margin-left: 2px; width: 20px; height: 20px; }

  .hero__cta { margin-top: 14px; padding-inline: 16px; }
  .btn {
    width: 100%;
    min-height: 54px;
    padding: 0 10px;
    font-size: clamp(0.72rem, 3.5vw, 0.85rem);
    letter-spacing: 0.03em;
    white-space: nowrap;
  }

  .seal { margin-top: 20px; max-width: calc(100% - 32px); }
  .hero__support { font-size: 15px; padding-inline: 16px; }
}
@keyframes pill-glow {
  0%   { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.6); }
  100% { box-shadow: 0 0 0 10px rgba(255, 255, 255, 0); }
}
/* Desktop: banner horizontal */
@media (min-width: 1024px) {
  .hero__bg::after { height: 35%; }
}

/* ---------- Toast (aviso de link não configurado) ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 95;
  max-width: calc(100% - 32px);
  padding: 12px 18px;
  border-radius: 10px;
  background: var(--bg-card);
  border: 1px solid rgba(212, 162, 76, 0.45);
  color: var(--text);
  font-size: 0.875rem;
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Movimento reduzido ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .hero__bokeh { display: none; }
}
