/* CardioFlush — VSL page. Tema breaking news, escuro.
   O player VTurb roda em teste A/B e revela o bloco .esconder no pitch, então
   tudo aqui é construído em volta de dois estados: ANTES do pitch a página é
   uma matéria (cabeçalho, régua de seções, headline, olho, linha de crédito);
   DEPOIS do pitch a matéria sai de cena e sobra vídeo + CTA. */

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

:root {
  --bg: #0a0b0d;
  --panel: #131519;
  --panel-2: #1a1d23;
  --line: #262a31;
  --line-soft: rgba(255, 255, 255, 0.08);

  --fg: #f3f5f8;
  --fg-soft: #98a1ac;
  --fg-dim: #6b747f;

  --red: #e0242f;
  --red-deep: #b8161f;

  --sans: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;
  --serif: "Source Serif 4", Georgia, serif;

  --wrap: 760px;
  --pad: clamp(16px, 4.5vw, 28px);
}

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

body.article {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--pad);
}

img {
  max-width: 100%;
  display: block;
}

/* ---- Masthead ------------------------------------------------------------ */

.masthead {
  position: relative;
  z-index: 5;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.masthead__top {
  border-bottom: 1px solid var(--line);
}

.masthead__bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  min-height: 58px;
}

.masthead__date {
  margin: 0;
  color: var(--fg-dim);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.masthead__logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--fg);
  font-size: clamp(17px, 3.6vw, 21px);
  font-weight: 800;
  letter-spacing: -0.028em;
  text-decoration: none;
  white-space: nowrap;
}

/* Traço de batimento — mesma ideia da marca no rótulo, reduzida a um glifo. */
.masthead__logo-mark {
  width: 21px;
  height: 12px;
  flex: none;
  background: var(--red);
  clip-path: polygon(0 55%, 26% 55%, 36% 8%, 52% 96%, 64% 42%, 74% 55%, 100% 55%, 100% 68%, 68% 68%, 62% 82%, 50% 22%, 40% 92%, 22% 68%, 0 68%);
}

.masthead__search {
  justify-self: end;
  display: inline-flex;
  padding: 6px;
  border: 0;
  background: none;
  color: var(--fg-soft);
  cursor: pointer;
}

.masthead__search svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

/* ---- Régua de seções ----------------------------------------------------- */

.sections {
  background: var(--bg);
}

/* Rola na horizontal no celular em vez de quebrar linha — é o comportamento
   dos portais de verdade e evita um cabeçalho de duas alturas. */
.sections__inner {
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.sections__inner::-webkit-scrollbar {
  display: none;
}

.sections ul {
  display: flex;
  gap: clamp(14px, 3.4vw, 26px);
  margin: 0;
  padding: 0;
  list-style: none;
  white-space: nowrap;
}

.sections a {
  display: inline-block;
  padding: 13px 0;
  border-bottom: 2px solid transparent;
  color: var(--fg-soft);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.sections a:hover {
  color: var(--fg);
}

.sections a[aria-current="page"] {
  color: var(--fg);
  border-bottom-color: var(--red);
}

/* ---- Story --------------------------------------------------------------- */

.story {
  padding-top: clamp(18px, 4vw, 30px);
}

.headline-block {
  padding-bottom: 4px;
}

/* Kicker: selo vermelho + trilha da seção, como em página de notícia. */
.kicker {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
  color: var(--fg-dim);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.kicker__flag {
  position: relative;
  padding: 4px 9px 4px 20px;
  background: var(--red);
  color: #fff;
  letter-spacing: 0.1em;
}

.kicker__flag::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 50%;
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border-radius: 50%;
  background: #fff;
  animation: blink 1.4s steps(1, end) infinite;
}

@keyframes blink {
  0%, 55%  { opacity: 1; }
  56%, 100% { opacity: 0.25; }
}

.kicker__path {
  color: var(--fg);
}

.kicker__sep {
  color: var(--line);
}

.headline-block h1 {
  margin: 0 0 14px;
  font-size: clamp(25px, 6.4vw, 40px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.032em;
  text-wrap: balance;
}

.headline-block h1 .hl {
  color: var(--red);
}

/* O olho em serifa dá o contraste editorial que faltava — é o que separa
   "página de notícia" de "headline solta numa landing". */
.standfirst {
  margin: 0 0 18px;
  max-width: 62ch;
  color: var(--fg-soft);
  font-family: var(--serif);
  font-size: clamp(15px, 2.6vw, 18px);
  line-height: 1.55;
}

.byline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--fg-dim);
  font-size: 12px;
  letter-spacing: 0.03em;
}

.byline__desk {
  color: var(--fg);
  font-weight: 600;
}

.byline__sep {
  color: var(--line);
}

/* ---- LIVE ---------------------------------------------------------------- */

.live-viewers {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 14px 0 12px;
}

.live-viewers__status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--red);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.live-viewers__dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--red);
  animation: pulse 1.4s ease-out infinite;
}

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(224, 36, 47, 0.55); }
  70%  { box-shadow: 0 0 0 7px rgba(224, 36, 47, 0); }
  100% { box-shadow: 0 0 0 0 rgba(224, 36, 47, 0); }
}

.live-viewers__copy {
  margin: 0;
  color: var(--fg-dim);
  font-size: 12px;
}

.live-viewers__copy strong {
  display: inline-block;
  min-width: 34px;
  color: var(--fg);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.live-viewers__copy strong.is-changing {
  animation: pop 0.42s ease;
}

@keyframes pop {
  0%   { transform: translateY(0) scale(1); }
  45%  { transform: translateY(-1px) scale(1.07); color: #ffd9db; }
  100% { transform: translateY(0) scale(1); }
}

/* ---- Player -------------------------------------------------------------- */

/* O vídeo ganha um poço mais escuro: separa o 9:16 da matéria e evita a
   sensação de "vídeo jogado no meio do texto". */
.player-well {
  padding: clamp(14px, 3vw, 22px) 0 clamp(16px, 3.5vw, 26px);
  background: var(--panel);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.video_vturb vturb-smartplayer {
  max-width: 400px;
  margin: 0 auto;
  transition: max-width 0.5s ease;
}

.vturb-player-placeholder {
  position: relative;
  z-index: 0;
  width: 100%;
  padding: 177.7777% 0 0;
  background-color: #000;
}

/* ---- Revelação no pitch --------------------------------------------------- */

.esconder {
  display: none;
}

/* Quando a oferta entra, a matéria sai: cabeçalho, headline, olho, crédito e
   a faixa LIVE somem, e o player abre espaço para o botão caber na tela. */
.article.is-revealed .headline-block,
.article.is-revealed .live-viewers,
.article.is-revealed .sections {
  display: none;
}

.article.is-revealed .player-well {
  border-top: 0;
  padding-top: 10px;
}

.article.is-revealed .video_vturb vturb-smartplayer {
  max-width: 300px;
}

.article.is-revealed .cta-block {
  padding: 10px 0 16px;
}

/* ---- CTA ----------------------------------------------------------------- */

.cta-block {
  padding: 20px 0 30px;
  text-align: center;
}

.cta-block__button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 560px;
  min-height: 74px;
  margin: 0 auto;
  padding: 14px 20px;
  overflow: hidden;
  border-radius: 10px;
  background: linear-gradient(180deg, #35d46f, #159c48);
  color: #fff;
  font-size: clamp(21px, 5.4vw, 29px);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  text-wrap: balance;
  text-shadow: 0 2px 6px rgba(6, 68, 30, 0.35);
  animation: cta 1.6s ease-in-out infinite;
}

/* O brilho é filho para varrer o rótulo sem herdar o transform do pulso. */
.cta-block__button::after {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 42%;
  height: 100%;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.45) 50%, rgba(255, 255, 255, 0) 100%);
  transform: skewX(-18deg);
  animation: sheen 3.2s ease-in-out infinite;
}

.cta-block__button:hover,
.cta-block__button:focus-visible {
  background: linear-gradient(180deg, #3ee07a, #17ac4f);
}

@keyframes cta {
  0%, 100% { transform: scale(1);     box-shadow: 0 8px 20px rgba(21, 156, 72, 0.28); }
  50%      { transform: scale(1.028); box-shadow: 0 16px 34px rgba(53, 212, 111, 0.5); }
}

@keyframes sheen {
  0%        { left: -60%; }
  55%, 100% { left: 125%; }
}

.cta-block__stock {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 14px 0 0;
  color: #ff7b7b;
  font-size: clamp(16px, 4.4vw, 21px);
  font-weight: 600;
}

.cta-block__stock strong {
  display: inline-block;
  min-width: 1.6em;
  color: var(--fg);
  font-size: 1.12em;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.cta-block__stock strong.is-dropping {
  animation: drop 0.34s ease-out;
}

.cta-block__stock-dot {
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--red);
  animation: pulse 1.7s ease-out infinite;
}

/* Uma unidade vendida deve registrar, não comemorar. */
@keyframes drop {
  0%   { transform: translateY(-3px); color: #ff5c5c; }
  55%  { transform: translateY(0); }
  100% { transform: translateY(0); color: var(--fg); }
}

/* ---- Footer -------------------------------------------------------------- */

.page-footer {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 22px var(--pad) 40px;
  border-top: 1px solid var(--line);
  color: var(--fg-dim);
  font-size: 11.5px;
  line-height: 1.55;
  text-align: center;
}

.page-footer p {
  margin: 0 0 8px;
}

.page-footer__copy {
  margin: 0;
}

/* ---- Telas estreitas ------------------------------------------------------ */

@media (max-width: 560px) {
  .masthead__bar {
    grid-template-columns: auto 1fr auto;
    min-height: 52px;
  }

  .masthead__date {
    font-size: 0;
  }

  /* No celular a data vira só o dia — o nome do veículo é o que importa. */
  .masthead__date::after {
    content: "Live";
    color: var(--red);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }

  .masthead__logo {
    justify-self: center;
  }

  .byline {
    font-size: 11px;
  }
}

@media (max-width: 720px) and (max-height: 760px) {
  /* Safari com as duas barras: o player cede mais largura para vídeo + botão
     dividirem a mesma tela depois da revelação. */
  .article.is-revealed .video_vturb vturb-smartplayer {
    max-width: 268px;
  }

  .article.is-revealed .cta-block__button {
    min-height: 56px;
    font-size: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cta-block__button,
  .cta-block__button::after,
  .cta-block__stock-dot,
  .live-viewers__dot,
  .kicker__flag::before,
  .cta-block__stock strong.is-dropping {
    animation: none;
  }

  .cta-block__button {
    box-shadow: 0 10px 22px rgba(21, 156, 72, 0.35);
  }

  .cta-block__button::after {
    display: none;
  }
}
