/* ==========================================================================
   ED Disfunção TTK — VSL 01
   Clone de https://new.lifebetter.live/ed/vsl01
   Paleta, tipografia e layout idênticos ao original. Adições marcadas com
   [NOVO] são apenas o que o smartplayer da Vturb fazia em JS (poster,
   overlay de retomada, destaque do CTA no pitch).
   ========================================================================== */

:root {
  color-scheme: dark;
  --background: #090909;
  --surface: #141414;
  --red: #ed2438;
  --red-dark: #d81b2e;
  --text: #f5f5f5;
  --muted: #aaa;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    radial-gradient(ellipse at 50% 15%, #56101a40, transparent 60%),
    var(--background);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

.topbar {
  padding: 12px 20px;
  border-bottom: 1px solid #ffffff12;
  background: #080808;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.topbar span {
  color: var(--red);
}

main {
  width: min(100% - 40px, 960px);
  margin: auto;
  padding: 64px 0 48px;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 22px;
  padding: 6px 14px;
  border: 1px solid #ed243845;
  border-radius: 100px;
  background: #ed24380c;
  color: #ff7785;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

h1 {
  max-width: 850px;
  margin: 0 auto 20px;
  font-size: clamp(32px, 5.5vw, 58px);
  line-height: 1.12;
  letter-spacing: -1.8px;
}

h1 span {
  color: var(--red);
}

.subtitle {
  max-width: 640px;
  margin: 0 auto 32px;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 18px);
}

/* --- Vídeo ---------------------------------------------------------------
   [NOVO] O original largava o shell em 960px com aspect-ratio 16/9 e o
   player Vturb se Auto-estrangulava em 400px. Aqui o shell já é vertical
   (o vídeo é 404x720), então o enquadramento fica correto sem gambiarra.
   -------------------------------------------------------------------------- */

.video-shell {
  overflow: hidden;
  width: min(100%, 420px);
  margin: 0 auto;
  border: 1px solid #ed243860;
  border-radius: 14px;
  background: #000;
  box-shadow: 0 24px 80px #0009, 0 0 50px #ed243810;
}

.video-label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid #ffffff12;
  background: var(--surface);
  color: #ccc;
  text-align: left;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
}

.video-stage {
  position: relative;
}

video {
  display: block;
  width: 100%;
  aspect-ratio: 404 / 720;
  background: #080808;
  object-fit: contain;
}

/* [NOVO] Overlay de retomada (resume do Vturb) */
.resume {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 24px;
  background: #090909e6;
}

.resume[hidden] {
  display: none;
}

.resume-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}

.resume-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.resume-btn {
  padding: 12px 18px;
  border: 1px solid #ffffff2a;
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 180ms ease;
}

.resume-btn:hover {
  background: #1f1f1f;
}

.resume-btn--primary {
  border-color: #ff5868;
  background: var(--red);
  box-shadow: 0 6px 24px #ed243825;
}

.resume-btn--primary:hover {
  background: var(--red-dark);
}

/* [NOVO] Mensagem de falha de carregamento */
.video-error {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 24px;
  background: #090909f2;
  color: var(--muted);
  font-size: 14px;
}

.video-error[hidden] {
  display: none;
}

.video-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.offer {
  margin: 34px auto 0;
  max-width: 540px;
}

.cta {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  width: 100%;
  min-height: 60px;
  padding: 16px 24px;
  border: 1px solid #ff5868;
  border-radius: 8px;
  background: var(--red);
  box-shadow: 0 8px 32px #ed243825;
  color: white;
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
  transition: background 180ms ease, transform 180ms ease;
}

.cta:hover {
  transform: translateY(-2px);
  background: var(--red-dark);
}

/* [NOVO] Destaque quando o vídeo atinge o pitch (28:26) */
.cta.is-hot {
  animation: cta-pulse 1.4s ease-in-out 3;
}

@keyframes cta-pulse {
  0%, 100% { box-shadow: 0 8px 32px #ed243825; }
  50%      { box-shadow: 0 8px 44px #ed243880; }
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid white;
  outline-offset: 5px;
}

.offer-note {
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
}

footer {
  max-width: 760px;
  margin: 52px auto 0;
  padding-top: 24px;
  border-top: 1px solid #ffffff14;
  color: #999;
  font-size: 12px;
}

footer p {
  margin: 0 0 12px;
}

@media (max-width: 600px) {
  main {
    width: min(100% - 28px, 960px);
    padding-top: 38px;
  }

  h1 {
    letter-spacing: -1px;
  }

  .video-shell {
    border-radius: 9px;
  }

  .cta {
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cta,
  .resume-btn {
    transition: none;
  }

  .cta.is-hot {
    animation: none;
  }
}