/* BLACK VIP NICOLLI COSTA — estilos (mobile-first) */

:root {
  --ink: #0f0e0e;          /* preto fosco */
  --ink-2: #171515;
  --ink-3: #221f1f;
  --blush: #F1D3B8;        /* champanhe (padrão da arte da Black Week) */
  --blush-70: rgba(241, 211, 184, .7);
  --blush-45: rgba(241, 211, 184, .45);
  --blush-18: rgba(241, 211, 184, .18);
  --blush-08: rgba(241, 211, 184, .08);

  --serif: "Cormorant Garamond", "Cormorant", "Playfair Display", Georgia, serif;
  --sans: "Jost", "Futura", "Avenir Next", system-ui, -apple-system, "Segoe UI", sans-serif;

  --ease: cubic-bezier(.2, .7, .2, 1);
  --pad: clamp(22px, 6vw, 40px);
  --safe-b: env(safe-area-inset-bottom, 0px);
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  background:
    radial-gradient(120% 60% at 50% -10%, #1d1a1a 0%, transparent 60%),
    radial-gradient(90% 50% at 50% 110%, #191616 0%, transparent 70%),
    var(--ink);
  color: var(--blush);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Textura fosca sutil (SVG inline, sem requisição extra) */
.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .07;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

.page {
  position: relative; z-index: 1;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: calc(28px + env(safe-area-inset-top, 0px)) var(--pad) calc(36px + var(--safe-b));
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
}

/* ---------- Intro ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 22px;
  font-size: 11px; font-weight: 400; letter-spacing: .32em; text-transform: uppercase;
  color: var(--blush-70);
}
.eyebrow__line { width: 28px; height: 1px; background: var(--blush-45); }
.dot { opacity: .5; }

.title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  line-height: .86;
  display: flex; flex-direction: column; align-items: center;
}
.title__black, .title__vip {
  font-size: clamp(72px, 23vw, 112px);
  letter-spacing: .01em;
  text-transform: uppercase;
}
.title__name {
  display: flex; align-items: center; gap: 14px;
  margin-top: 20px;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 13px;
  line-height: 1;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--blush);
}
.title__name { padding-left: .34em; } /* compensa o tracking para centralizar */
.title__line { display: block; width: 36px; height: 1px; background: var(--blush-45); }
.title__sub {
  margin-top: 10px;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 10.5px;
  line-height: 1;
  letter-spacing: .5em;
  padding-left: .5em;
  text-transform: uppercase;
  color: var(--blush-70);
}

.subtitle {
  margin: 22px auto 0;
  max-width: 34ch;
  font-size: 15.5px;
  color: var(--blush-70);
}
.subtitle em { font-family: var(--serif); font-style: italic; font-weight: 500; color: var(--blush); font-size: 1.15em; }

/* ---------- Vídeo ---------- */
.media { width: 100%; margin-top: 30px; }

.frame {
  position: relative;
  padding: 10px;
  border: 1px solid var(--blush-18);
  border-radius: 22px;
  background: linear-gradient(180deg, var(--blush-08), transparent 40%);
}
.corner { position: absolute; width: 14px; height: 14px; border-color: var(--blush-70); border-style: solid; border-width: 0; }
.corner--tl { top: -1px; left: -1px; border-top-width: 1px; border-left-width: 1px; border-top-left-radius: 22px; }
.corner--tr { top: -1px; right: -1px; border-top-width: 1px; border-right-width: 1px; border-top-right-radius: 22px; }
.corner--bl { bottom: -1px; left: -1px; border-bottom-width: 1px; border-left-width: 1px; border-bottom-left-radius: 22px; }
.corner--br { bottom: -1px; right: -1px; border-bottom-width: 1px; border-right-width: 1px; border-bottom-right-radius: 22px; }

.player {
  position: relative;
  aspect-ratio: 9 / 16;
  width: 100%;
  max-height: 72svh;
  margin: 0 auto;
  border-radius: 14px;
  overflow: hidden;
  background: var(--ink-2) url("../img/poster.jpg") center / cover no-repeat;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.8);
}
@supports (max-height: 72svh) {
  .player { width: min(100%, calc(72svh * 9 / 16)); }
}
.player__video {
  display: block; width: 100%; height: 100%;
  object-fit: cover; background: transparent;
}
.player__cover {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  border: 0; padding: 0; margin: 0;
  background: linear-gradient(180deg, rgba(15,14,14,.05) 40%, rgba(15,14,14,.55));
  color: var(--blush);
  font: inherit; cursor: pointer;
  transition: opacity .5s var(--ease), visibility .5s;
  -webkit-tap-highlight-color: transparent;
}
.player__play {
  display: grid; place-items: center;
  width: 74px; height: 74px; border-radius: 50%;
  background: rgba(241, 211, 184,.12);
  border: 1px solid var(--blush-45);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  padding-left: 4px;
  transition: transform .4s var(--ease), background .4s var(--ease);
  animation: breathe 3.2s var(--ease) infinite;
}
.player__hint { font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--blush-70); }
.player__cover:hover .player__play,
.player__cover:focus-visible .player__play { transform: scale(1.06); background: rgba(241, 211, 184,.2); }
.player.is-playing .player__cover { opacity: 0; visibility: hidden; }

@keyframes breathe {
  0%, 100% { box-shadow: 0 0 0 0 rgba(241, 211, 184,.18); }
  50%      { box-shadow: 0 0 0 12px rgba(241, 211, 184,0); }
}

/* ---------- CTA ---------- */
.cta { width: 100%; margin-top: 30px; }

.btn {
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center; gap: 12px;
  width: 100%; min-height: 62px;
  padding: 18px 22px;
  border-radius: 999px;
  background: var(--blush);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 14px 34px -14px rgba(241, 211, 184,.45), inset 0 0 0 1px rgba(255,255,255,.6);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 18px 40px -14px rgba(241, 211, 184,.55), inset 0 0 0 1px rgba(255,255,255,.7); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn:focus-visible { outline: 2px solid var(--blush); outline-offset: 4px; }
.btn__icon { flex: none; }
.btn__label { position: relative; z-index: 1; }
.btn__shine {
  position: absolute; top: 0; bottom: 0; left: -40%; width: 30%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.75), transparent);
  transform: skewX(-18deg);
  animation: shine 5.5s var(--ease) 2.2s infinite;
}
@keyframes shine {
  0%   { left: -40%; }
  22%  { left: 130%; }
  100% { left: 130%; }
}

.cta__note { margin: 14px 0 0; font-size: 12.5px; letter-spacing: .04em; color: var(--blush-45); }
.cta__warning {
  margin: 14px 0 0; padding: 10px 14px; border-radius: 10px;
  border: 1px dashed var(--blush-45); font-size: 12.5px; color: var(--blush-70);
}
.cta__warning code { font-size: 12px; }

/* ---------- Rodapé ---------- */
.footer { margin-top: 44px; width: 100%; }
.footer__rule { display: block; width: 40px; height: 1px; margin: 0 auto 18px; background: var(--blush-45); }
.footer__offer {
  margin: 0; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--blush-70);
  line-height: 2;
}
.footer__brand {
  margin: 10px 0 0; font-family: var(--serif); font-style: italic; font-size: 14px; color: var(--blush-45);
}

/* ---------- Barra fixa (mobile) ---------- */
.sticky {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
  padding: 12px var(--pad) calc(12px + var(--safe-b));
  background: linear-gradient(180deg, rgba(15,14,14,0), rgba(15,14,14,.92) 35%);
  transform: translateY(110%);
  transition: transform .45s var(--ease);
  pointer-events: none;
}
.sticky.is-visible { transform: translateY(0); pointer-events: auto; }
.btn--sticky { max-width: 480px; margin: 0 auto; min-height: 54px; padding: 14px 20px; font-size: 13px; }

/* ---------- Animação de entrada ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); }
.js .is-ready .reveal {
  opacity: 1; transform: none;
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  transition-delay: calc(var(--d, 0) * 110ms);
}

/* Telas estreitas: mantém o botão em uma linha */
@media (max-width: 420px) {
  .btn { font-size: 13px; letter-spacing: .09em; gap: 10px; padding: 18px 16px; }
  .btn__icon { width: 20px; height: 20px; }
}

/* Destaque quando o vídeo termina ("clique no botão abaixo") */
.cta.is-highlight .btn { animation: nudge 1.4s var(--ease) 2; }
@keyframes nudge {
  0%, 100% { box-shadow: 0 14px 34px -14px rgba(241, 211, 184,.45), inset 0 0 0 1px rgba(255,255,255,.6); }
  50% { box-shadow: 0 0 0 8px rgba(241, 211, 184,.16), 0 18px 44px -12px rgba(241, 211, 184,.7), inset 0 0 0 1px rgba(255,255,255,.8); }
}

/* Não cobre o vídeo enquanto ele está tocando */
.video-active .sticky { transform: translateY(110%); pointer-events: none; }

/* ---------- Desktop / tablet ---------- */
@media (min-width: 900px) {
  .page {
    max-width: 1040px;
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "intro  media"
      "intro  cta"
      "footer footer";
    column-gap: 80px;
    align-content: center;
    align-items: center;
    text-align: left;
    padding-top: 56px;
  }
  .intro  { grid-area: intro; align-self: center; }
  .media  { grid-area: media; margin-top: 0; }
  .cta    { grid-area: cta; align-self: start; text-align: center; margin-top: 22px; }
  .footer { grid-area: footer; text-align: center; margin-top: 56px; }
  .title { align-items: flex-start; }
  .title__black, .title__vip { font-size: 132px; }
  .title__name { padding-left: 0; }
  .title__name .title__line:first-child { display: none; }
  .title__sub { padding-left: 0; }
  .subtitle { margin-left: 0; }
  .sticky { display: none; }
  .media  { justify-self: center; width: auto; }
  .player { max-height: none; width: clamp(280px, calc(64vh * 9 / 16), 380px); }
  .cta    { justify-self: center; width: calc(clamp(280px, calc(64vh * 9 / 16), 380px) + 22px); }
}

/* ---------- Acessibilidade: movimento reduzido ---------- */
@media (prefers-reduced-motion: reduce) {
  .js .reveal, .js .is-ready .reveal { opacity: 1; transform: none; transition: none; }
  .btn__shine, .player__play, .cta.is-highlight .btn { animation: none; }
  .sticky { transition: none; }
}
