/* =========================================================
   C'est la Vie — LP Black Friday (Grupo VIP)
   RHZ Agência · nov/2026

   Um objetivo só: entrar no Grupo VIP. Mobile first: o botão
   aparece inteiro sem rolar, inclusive em 360×560 (celular
   pequeno dentro do navegador do Instagram).
   Mesma fonte e o mesmo off-white da bio, invertidos para o preto
   da Black. O botão off-white é o elemento mais claro da tela.
   ========================================================= */

:root {
  color-scheme: only dark;

  --preto:   #0E0E0D;   /* fundo                                  */
  --preto-2: #1A1A18;   /* cartões                                */
  --off:     #F6F3EE;   /* texto e botão (o off-white da marca)   */
  --cinza:   #A9A49B;   /* texto secundário (7,6:1 no fundo)      */
  --linha:   rgba(246, 243, 238, .10);

  --font: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --maxw: 460px;
  --pad: 18px;
  --sobra: 24px;     /* quanto a folha sobe por cima do vídeo */
  --medalha: 64px;   /* logo na emenda */
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  min-height: 100dvh;
  font-family: var(--font);
  color: var(--off);
  background: var(--preto);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

button { font: inherit; color: inherit; }

.pagina {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  /* espaço para a barra fixa não cobrir o rodapé */
  padding-bottom: calc(92px + env(safe-area-inset-bottom));
}

/* ============ VÍDEO ============ */
.video {
  position: relative;
  /* Teto de altura: o botão precisa caber na 1ª dobra (50svh), e o teto
     pela largura (88vw) garante que o recorte nunca chegue nos letreiros
     do anúncio, que começam a ~60% da altura do vídeo */
  height: clamp(200px, min(50vh, 88vw), 400px);
  height: clamp(200px, min(50svh, 88vw), 400px);
  overflow: hidden;
  background: #1F1E1C;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.video video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Recorte pelo alto: rosto e peça na tela, letreiros do anúncio
     (que ficam a ~60–73% da altura) de fora */
  object-position: 50% 10%;
}
/* Sombra leve na base para a pílula e a emenda */
.video::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 38%;
  pointer-events: none;
  background: linear-gradient(to top, rgba(14, 14, 13, .55), rgba(14, 14, 13, 0));
}

.video__som {
  position: absolute;
  z-index: 2;
  left: 12px;
  bottom: calc(var(--sobra) + 12px);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px 7px 9px;
  border: 0;
  border-radius: 999px;
  background: rgba(246, 243, 238, .94);
  color: var(--preto);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.video__som svg { width: 15px; height: 15px; }
.video__som .icone-som { display: none; }
.video.is-som .video__som .icone-som { display: block; }
.video.is-som .video__som .icone-mudo { display: none; }
.video__som:focus-visible { outline: 2px solid var(--off); outline-offset: 3px; }

/* ============ FOLHA (oferta + botão) ============ */
.folha {
  position: relative;
  z-index: 3;
  margin-top: calc(-1 * var(--sobra));
  padding: calc(var(--medalha) / 2 + 12px) var(--pad) 8px;
  border-radius: 24px 24px 0 0;
  background: var(--preto);
  text-align: center;
}

.folha__marca {
  position: absolute;
  left: 50%;
  top: calc(var(--medalha) / -2);
  width: var(--medalha);
  height: var(--medalha);
  margin-left: calc(var(--medalha) / -2);
  border-radius: 50%;
  background: #FFFFFF;
  box-shadow: 0 0 0 4px var(--preto);
}
.folha__marca img { display: block; width: 100%; height: 100%; }

.kicker {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--cinza);
}

.oferta {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
  margin-top: 4px;
  font-weight: 700;
  line-height: 1;
}
.oferta__num { font-size: clamp(46px, 14.5vw, 60px); letter-spacing: -.02em; }
.oferta__pix { font-size: clamp(20px, 6vw, 25px); font-weight: 600; }

.oferta__cartao {
  margin-top: 8px;
  font-size: 15px;
  color: var(--cinza);
}
.oferta__cartao strong { font-weight: 600; color: var(--off); }

/* ---------- O botão (o único destino da página) ---------- */
.vip {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 400px;
  min-height: 58px;
  margin: 18px auto 0;
  padding: 12px 20px;
  border-radius: 999px;
  /* Verde do WhatsApp: o único elemento colorido da página */
  background: linear-gradient(180deg, #3BE67F 0%, #25D366 55%, #1EBE5A 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, .18) inset,
    0 10px 30px -6px rgba(37, 211, 102, .55),
    0 0 42px rgba(37, 211, 102, .25);
  color: var(--preto);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -.01em;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  animation: respira 2.4s ease-in-out infinite;
  transition: filter .2s ease;
}
/* Ícone num círculo preto, para o verde aparecer dos dois lados */
.vip__icone {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  margin-left: -8px;
  padding: 6px;
  border-radius: 50%;
  background: var(--preto);
  color: #25D366;
}
.vip__texto { position: relative; z-index: 1; }
.vip__seta {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  animation: seta 1.2s ease-in-out infinite;
}
.vip:hover { filter: brightness(1.06); }
.vip:active { filter: brightness(.94); }
.vip:focus-visible { outline: 2px solid var(--off); outline-offset: 4px; }

/* Brilho que atravessa o botão a cada 3 s */
.vip__brilho {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
  pointer-events: none;
}
.vip__brilho::before {
  content: "";
  position: absolute;
  top: -20%;
  bottom: -20%;
  left: 0;
  width: 38%;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .7) 50%, rgba(255, 255, 255, 0) 100%);
  transform: translateX(-140%) skewX(-18deg);
  animation: brilho 3s ease-in-out infinite;
}

/* Dois anéis verdes que se abrem em sequência */
.vip::before,
.vip::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 0 0 rgba(37, 211, 102, .6);
  animation: pulso 2.4s ease-out infinite;
  pointer-events: none;
}
.vip::after { animation-delay: .8s; }

@keyframes pulso {
  0%   { box-shadow: 0 0 0 0 rgba(37, 211, 102, .6); }
  80%  { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); }
}
@keyframes respira {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.035); }
}
@keyframes brilho {
  0%   { transform: translateX(-140%) skewX(-18deg); }
  45%  { transform: translateX(320%) skewX(-18deg); }
  100% { transform: translateX(320%) skewX(-18deg); }
}
@keyframes seta {
  0%, 100% { transform: translateX(0); }
  50%      { transform: translateX(4px); }
}

.vip__nota {
  margin-top: 10px;
  font-size: 13px;
  color: var(--cinza);
}

/* ============ ABAIXO DA DOBRA ============ */
.secao { margin-top: 40px; padding: 0 var(--pad); }
.secao__titulo {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-wrap: balance;
}

.itens { display: grid; gap: 10px; margin-top: 18px; list-style: none; }
.item {
  display: grid;
  grid-template-columns: 52px 1fr;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: 16px;
  background: var(--preto-2);
  box-shadow: inset 0 0 0 1px var(--linha);
}
.item__num {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--off);
  color: var(--preto);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -.01em;
}
.item__num--mais { font-size: 24px; font-weight: 600; }
.item__titulo { font-size: 16px; font-weight: 600; line-height: 1.25; }
.item__texto { margin-top: 3px; font-size: 14px; line-height: 1.45; color: var(--cinza); }

.citacao { margin: 36px var(--pad) 0; text-align: center; }
.citacao blockquote p {
  font-size: 19px;
  font-weight: 500;
  line-height: 1.4;
  text-wrap: balance;
}
.citacao blockquote .citacao__fim { margin-top: 10px; font-weight: 600; }
.citacao figcaption { margin-top: 10px; font-size: 13px; color: var(--cinza); }

.loja {
  margin: 32px var(--pad) 0;
  padding: 16px;
  border-radius: 16px;
  box-shadow: inset 0 0 0 1px var(--linha);
  text-align: center;
}
.loja__rotulo {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--cinza);
}
.loja__end { margin-top: 4px; font-size: 15px; }

.rodape {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  margin-top: 28px;
  font-size: 11.5px;
  color: var(--cinza);
}
/* A logo da RHZ é azul sobre transparente: num fundo preto, fica clara */
.rodape img { width: 88px; height: auto; margin-left: -7px; filter: brightness(0) invert(.75); }

/* ============ BARRA FIXA ============ */
.barra {
  position: fixed;
  z-index: 20;
  left: 50%;
  bottom: 0;
  width: 100%;
  max-width: var(--maxw);
  padding: 12px var(--pad) calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, var(--preto) 60%, rgba(14, 14, 13, 0));
  transform: translate(-50%, 110%);
  transition: transform .35s var(--ease);
  pointer-events: none;
}
.barra.is-visivel { transform: translate(-50%, 0); pointer-events: auto; }
.vip--barra { margin-top: 0; }

/* ============ TELAS BAIXAS ============ */
@media (max-height: 620px) {
  :root { --medalha: 56px; }
  .oferta__num { font-size: 46px; }
  .oferta__cartao { margin-top: 6px; font-size: 14px; }
  .vip { margin-top: 14px; min-height: 54px; }
}

/* ============ TELAS MAIORES ============ */
@media (min-width: 600px) {
  body { padding: 32px 16px; background: #050505; }
  .pagina {
    overflow: hidden;
    border-radius: 24px;
    background: var(--preto);
    box-shadow: 0 0 0 1px var(--linha);
    padding-bottom: 36px;
  }
  .video { height: 400px; }
  .barra { bottom: 16px; border-radius: 0 0 24px 24px; }
}

/* ============ MOVIMENTO REDUZIDO ============ */
@media (prefers-reduced-motion: reduce) {
  .vip, .vip::before, .vip::after, .vip__seta, .vip__brilho::before { animation: none; }
  * { transition-duration: .01ms !important; }
}
