/* ══════════════════════════════════════════════════════════════════
   Imersao do Zero ao 20K — preto + vermelho (referencia Behance que o
   Pedro escolheu). Escrito a partir do celular (390/360); o computador
   entra so nos @media (min-width) do fim de cada bloco.
   Vermelho em TEXTO so em valores de dinheiro e em letra grande (>=24px).
   ══════════════════════════════════════════════════════════════════ */

:root {
  --preto: #000;
  --noite: #0b0b0c;
  --vinho: #1c0406;
  --vermelho: #e50914;
  --vermelho-claro: #ff4a4a;
  --texto: #fff;
  --texto-2: #b9b3b3;
  --linha: rgba(255, 255, 255, .12);

  --titulo: 'Anton', 'Impact', 'Arial Narrow', sans-serif;
  --corpo: 'Barlow', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --estreita: 'Barlow Condensed', 'Arial Narrow', sans-serif;

  --raio: 10px;
  --lado: 20px;
  --saida: cubic-bezier(.23, 1, .32, 1);
  --folha: cubic-bezier(.32, .72, 0, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html.com-folha { overflow: hidden; }
body {
  margin: 0;
  background: var(--preto);
  color: var(--texto);
  font-family: var(--corpo);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
p, h1, h2, ul, ol { margin: 0; }
strong { font-weight: 700; }
button { font: inherit; color: inherit; }

/* ── botao ───────────────────────────────────────────────────── */
.botao {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 58px;
  padding: 14px 20px;
  border: 0;
  border-radius: var(--raio);
  background: var(--vermelho);
  color: #fff;
  font-family: var(--estreita);
  font-weight: 700;
  font-size: 21px;
  letter-spacing: .04em;
  line-height: 1.1;
  text-transform: uppercase;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 10px 30px -10px rgba(229, 9, 20, .6);
  transition: transform 160ms var(--saida), background-color 200ms ease;
  -webkit-tap-highlight-color: transparent;
}
.botao:active { transform: scale(.97); }
.botao:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.botao:disabled { opacity: .7; cursor: default; }
@media (hover: hover) and (pointer: fine) {
  .botao:hover { background: #ff1a25; }
}

.nota {
  margin-top: 10px;
  font-family: var(--estreita);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: .03em;
  color: var(--texto-2);
  text-align: center;
}

.titulo {
  font-family: var(--titulo);
  font-weight: 400;
  font-size: clamp(34px, 9.4vw, 40px);
  line-height: 1.02;
  text-transform: uppercase;
  letter-spacing: .005em;
  text-wrap: balance;
}
.titulo em { font-style: normal; color: var(--vermelho); }

/* ══════════ BLOCO 1 — HERO ══════════ */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 0 var(--lado) 28px;
  padding-top: env(safe-area-inset-top);
}
.hero-palco, .hero-palco img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
  z-index: -2;
}
/* "a luz acende": o palco comeca apagado e clareia */
.hero-luz {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(0,0,0,.25) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,.55) 58%, #000 86%);
}
.hero-luz::after {
  content: '';
  position: absolute;
  inset: 0;
  background: #000;
  opacity: 0;
  animation: acende 1200ms var(--saida) both;
}
@keyframes acende { from { opacity: .7; } to { opacity: 0; } }

.tarja {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 calc(var(--lado) * -1);
  padding: 9px 12px;
  background: rgba(0, 0, 0, .72);
  border-bottom: 1px solid var(--linha);
  font-family: var(--estreita);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .05em;
  text-transform: uppercase;
  line-height: 1.2;
}
.tarja i { font-style: normal; color: var(--vermelho); padding: 0 2px; }
.ao-vivo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  padding: 3px 8px 3px 7px;
  border-radius: 4px;
  background: var(--vermelho);
  font-weight: 700;
}
.ponto {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  animation: pisca 1.4s ease-in-out infinite;
}
@keyframes pisca { 50% { opacity: .25; } }
/* no celular a tarja ja diz "Aula ao vivo": o selo fica so com o ponto,
   e a frase cabe numa linha */
@media (max-width: 459px) {
  .ao-vivo { padding: 0; width: 22px; height: 22px; justify-content: center; }
  .ao-vivo-txt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .tarja { gap: 8px; font-size: 13.5px; letter-spacing: .03em; }
}
@media (max-width: 370px) { .tarja { font-size: 12.5px; letter-spacing: .02em; } }

.hero-grade { position: relative; }

.hero-foto {
  position: relative;
  width: min(78vw, 330px);
  height: clamp(190px, 34svh, 300px);
  margin: 6px auto 0;
  overflow: hidden;
  animation: sobe 600ms var(--saida) 200ms both;
}
.hero-foto img {
  width: 100%;
  height: auto;
  /* o rosto fica no alto: a foto e cortada por baixo, a logo cobre a cintura */
  -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 70%, transparent 100%);
}
@keyframes sobe { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.hero-texto { position: relative; text-align: center; }
.hero-logo {
  width: min(88vw, 360px);
  margin: -64px auto 0;
  font-size: 0;
  line-height: 0;
}
.promessa {
  margin-top: 12px;
  font-family: var(--titulo);
  font-weight: 400;
  font-size: clamp(22px, 6.3vw, 26px);
  line-height: 1.08;
  text-transform: uppercase;
  text-wrap: balance;
}
.promessa em { font-style: normal; color: var(--vermelho-claro); }

.sem {
  display: grid;
  gap: 4px;
  justify-content: center;
  margin: 14px 0 18px;
  padding: 0;
  list-style: none;
  font-weight: 500;
  font-size: 17px;
  line-height: 1.35;
  text-align: left;
}
.sem li { display: flex; align-items: center; gap: 10px; }
.sem li::before {
  content: '';
  flex: none;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: var(--vermelho) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 13px no-repeat;
}

/* ══════════ FAIXA ══════════ */
.faixa {
  overflow: clip;
  background: var(--vermelho);
  border-block: 1px solid rgba(0, 0, 0, .3);
}
.faixa-trilho {
  display: flex;
  width: max-content;
  animation: corre 40s linear infinite;
}
.faixa span, .faixa b {
  flex: none;
  padding: 11px 14px;
  font-family: var(--titulo);
  font-weight: 400;
  font-size: 20px;
  line-height: 1;
  letter-spacing: .03em;
  text-transform: uppercase;
  white-space: nowrap;
}
.faixa b { color: #000; font-size: 16px; padding-top: 13px; }
@keyframes corre { to { transform: translateX(-50%); } }

/* ══════════ BLOCO 2 ══════════ */
.descobrir {
  padding: 56px var(--lado) 64px;
  background: var(--noite);
}
/* celular: titulo, depois o celular, depois a lista (no computador o
   celular fica fixo na coluna da esquerda) */
@media (max-width: 899px) {
  .descobrir-grade { display: flex; flex-direction: column; }
  .descobrir-texto { display: contents; }
  .descobrir-texto > .titulo { order: -2; }
  .descobrir-foto { order: -1; margin-top: 24px; }
}
.descobrir-foto {
  margin: 0 auto 4px;
  width: min(100%, 340px);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--linha);
}
.descobrir-foto img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }

.lista {
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--linha);
}
.lista li {
  position: relative;
  padding: 16px 0 16px 42px;
  border-bottom: 1px solid var(--linha);
  color: #e9e5e5;
  line-height: 1.45;
}
.lista li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 18px;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: var(--vermelho) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 17px no-repeat;
}
.lista strong { color: #fff; }

.fecho {
  margin: 28px 0 22px;
  padding-left: 16px;
  border-left: 3px solid var(--vermelho);
  font-size: 20px;
  line-height: 1.4;
}

/* ══════════ BLOCO 3 ══════════ */
.jessica {
  background: var(--vinho);
  padding-bottom: 64px;
}
.jessica-foto img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.jessica-foto {
  position: relative;
}
/* a foto desce no vinho sem linha de corte */
.jessica-foto::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 30%;
  background: linear-gradient(180deg, rgba(28, 4, 6, 0), var(--vinho));
}
.jessica-texto { padding: 0 var(--lado); margin-top: -24px; position: relative; }
.jessica-sub {
  margin-top: 14px;
  font-weight: 500;
  font-size: 19px;
  color: var(--texto-2);
}
.numero {
  margin: 26px 0 24px;
  padding: 18px 0;
  border-block: 1px solid rgba(255, 255, 255, .14);
  font-size: 19px;
  line-height: 1.25;
}
.numero strong {
  display: block;
  margin-top: 4px;
  font-family: var(--titulo);
  font-weight: 400;
  font-size: clamp(48px, 14vw, 60px);
  line-height: 1;
  color: var(--vermelho-claro);
  letter-spacing: .01em;
}
.jessica-bio p + p { margin-top: 14px; }
.jessica-bio { margin-bottom: 28px; color: #ece7e7; }

/* ══════════ FECHO ══════════ */
.final {
  position: relative;
  isolation: isolate;
  padding: 72px var(--lado) 80px;
  text-align: center;
  background:
    linear-gradient(180deg, #000 0%, rgba(0,0,0,.55) 45%, rgba(0,0,0,.85) 100%),
    url('../img/palco-16x9-960.webp') 50% 100% / cover no-repeat;
}
.final-logo { width: min(90vw, 560px); margin: 0 auto; }
.final-data {
  margin-top: 18px;
  font-family: var(--estreita);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.final-data span { display: block; }
.final-dia { font-family: var(--titulo); font-weight: 400; font-size: 34px; letter-spacing: .02em; line-height: 1.1; margin-top: 2px; }
.final-falta {
  min-height: 1.4em;
  margin: 4px 0 24px;
  color: var(--texto-2);
  font-size: 17px;
}
.final .botao { max-width: 440px; margin: 0 auto; }

/* ══════════ RODAPE ══════════ */
.rodape {
  padding: 28px var(--lado) calc(104px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--linha);
  color: #8a8585;
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
}
.aviso-legal { margin: 8px auto 0; max-width: 620px; font-size: 13px; }

/* ══════════ BARRA FIXA (celular: embaixo) ══════════ */
.barra {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(0, 0, 0, .92);
  border-top: 1px solid var(--linha);
  transform: translateY(110%);
  transition: transform 300ms var(--folha);
}
@supports (backdrop-filter: blur(8px)) {
  .barra { background: rgba(0, 0, 0, .78); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
}
.barra.visivel { transform: none; }
.barra-logo { display: none; }
.barra-data {
  flex: 1;
  min-width: 0;
  font-family: var(--estreita);
  font-weight: 600;
  font-size: 15px;
  line-height: 1.15;
  color: var(--texto-2);
  letter-spacing: .02em;
}
.barra-data strong {
  display: block;
  font-family: var(--titulo);
  font-weight: 400;
  font-size: 22px;
  color: #fff;
  letter-spacing: .03em;
}
.botao-p {
  width: auto;
  flex: none;
  min-height: 50px;
  padding: 12px 18px;
  font-size: 19px;
}

/* ══════════ FORMULARIO (folha no celular) ══════════ */
.folha {
  position: fixed;
  inset: auto 0 0 0;
  width: 100%;
  max-width: none;
  max-height: 100dvh;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--texto);
  overflow: visible;
}
.folha::backdrop { background: rgba(0, 0, 0, .72); }
.folha[open] .folha-cartao { animation: folha-sobe 300ms var(--folha) both; }
@keyframes folha-sobe { from { transform: translateY(100%); } to { transform: none; } }

.folha-cartao {
  position: relative;
  padding: 14px var(--lado) calc(24px + env(safe-area-inset-bottom));
  background: #111;
  border-top: 2px solid var(--vermelho);
  border-radius: 20px 20px 0 0;
  max-height: 100dvh;
  overflow-y: auto;
}
.folha-alca {
  display: block;
  width: 44px;
  height: 4px;
  margin: 0 auto 16px;
  border-radius: 2px;
  background: rgba(255, 255, 255, .25);
}
.folha-fechar {
  position: absolute;
  top: 8px;
  right: 8px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--texto-2);
  cursor: pointer;
}
.folha-fechar:focus-visible { outline: 2px solid #fff; }
.folha-pre {
  font-family: var(--estreita);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--vermelho-claro);
}
.folha-titulo {
  margin-top: 2px;
  font-family: var(--titulo);
  font-weight: 400;
  font-size: 32px;
  line-height: 1.05;
  text-transform: uppercase;
}
.folha-sub { margin: 6px 0 18px; color: var(--texto-2); font-size: 16px; }

.campo { display: block; margin-bottom: 14px; }
.campo span {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  font-size: 15px;
  color: #ddd;
}
.campo input {
  width: 100%;
  height: 54px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: var(--raio);
  background: #000;
  color: #fff;
  font: 500 16px/1 var(--corpo);
  transition: border-color 160ms ease;
}
.campo input::placeholder { color: #6f6a6a; }
.campo input:focus { outline: none; border-color: #fff; }
.campo input.invalido { border-color: var(--vermelho-claro); }
.pote { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-erro {
  min-height: 22px;
  margin: -4px 0 8px;
  color: var(--vermelho-claro);
  font-size: 15px;
  font-weight: 500;
}

/* ══════════ ENTRADA AO ROLAR ══════════
   So liga com JS e sem "reduzir movimento" (classe .anima no <html>) */
.anima .surge {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 600ms var(--saida), transform 600ms var(--saida);
}
.anima .surge.visto { opacity: 1; transform: none; }

/* ══════════ 360px ══════════ */
@media (max-width: 370px) {
  :root { --lado: 16px; }
  .hero-logo { margin-top: -56px; }
  .sem { font-size: 16px; }
  .botao { font-size: 19px; }
  .botao-p { font-size: 17px; padding: 12px 14px; }
}

/* telas baixas (celular com barra do navegador grande): foto menor */
@media (max-height: 640px) and (max-width: 899px) {
  .hero-foto { height: clamp(170px, 30svh, 240px); }
  .sem { margin: 10px 0 14px; }
}

/* ══════════ COMPUTADOR ══════════ */
@media (min-width: 900px) {
  :root { --lado: 40px; }
  body { font-size: 19px; }

  .tarja { font-size: 16px; padding: 11px 16px; }

  .hero { padding-bottom: 0; }
  .hero-palco img { object-position: 50% 40%; }
  .hero-luz {
    background:
      linear-gradient(90deg, rgba(0,0,0,.9) 0%, rgba(0,0,0,.6) 38%, rgba(0,0,0,0) 62%),
      linear-gradient(180deg, rgba(0,0,0,0) 70%, #000 100%);
  }
  .hero-grade {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    align-items: end;
    gap: 24px;
    max-width: 1200px;
    min-height: min(calc(100vh - 44px), 820px);
    margin: 0 auto;
  }
  .hero-texto {
    grid-column: 1;
    grid-row: 1;
    align-self: center;
    padding: 48px 0 56px;
    text-align: left;
  }
  .hero-foto {
    grid-column: 2;
    grid-row: 1;
    width: 100%;
    max-width: 600px;
    height: auto;
    margin: 0 0 0 auto;
    align-self: end;
    overflow: visible;
  }
  .hero-foto img { -webkit-mask-image: linear-gradient(180deg, #000 82%, transparent 100%); mask-image: linear-gradient(180deg, #000 82%, transparent 100%); }
  .hero-logo { width: min(100%, 520px); margin: 0; }
  .promessa { font-size: 34px; margin-top: 22px; max-width: 520px; }
  .sem { justify-content: start; margin: 22px 0 28px; font-size: 19px; gap: 8px; }
  .hero .botao { max-width: 440px; }
  .hero .nota { text-align: left; max-width: 440px; }

  .faixa-trilho { animation-duration: 60s; }
  .faixa span { font-size: 24px; padding: 14px 22px; }
  .faixa b { font-size: 19px; padding-top: 16px; }

  .descobrir { padding: 104px var(--lado); }
  .descobrir-grade {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: 72px;
    max-width: 1160px;
    margin: 0 auto;
    align-items: start;
  }
  .descobrir-foto { position: sticky; top: 96px; margin: 0; max-width: none; }
  .titulo { font-size: 54px; }
  .descobrir .botao, .jessica .botao { max-width: 440px; }

  .jessica { padding: 0; }
  .jessica-grade {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: 72px;
    max-width: 1160px;
    margin: 0 auto;
    padding: 104px var(--lado);
    align-items: center;
  }
  .jessica-foto { border-radius: 20px; overflow: hidden; }
  .jessica-foto::after { display: none; }
  .jessica-texto { padding: 0; margin: 0; }
  .numero strong { font-size: 76px; }

  .final { padding: 120px var(--lado) 128px; background-image:
    linear-gradient(180deg, #000 0%, rgba(0,0,0,.45) 45%, rgba(0,0,0,.85) 100%),
    url('../img/palco-16x9-1672.webp'); }

  .rodape { padding-bottom: 32px; }

  /* barra no topo no computador */
  .barra {
    top: 0;
    bottom: auto;
    padding: 10px max(var(--lado), calc((100vw - 1160px) / 2));
    border-top: 0;
    border-bottom: 1px solid var(--linha);
    transform: translateY(-110%);
  }
  .barra-logo { display: block; width: 230px; flex: none; margin-right: auto; }
  .barra-data { flex: none; display: flex; align-items: baseline; gap: 10px; font-size: 17px; }
  .barra-data strong { display: inline; font-size: 22px; }
  .botao-p { min-height: 44px; padding: 10px 22px; font-size: 18px; }

  /* formulario vira cartao no meio */
  .folha {
    inset: 0;
    margin: auto;
    width: min(440px, calc(100vw - 48px));
    height: fit-content;
  }
  .folha-cartao { border-radius: 16px; border: 1px solid var(--linha); border-top: 2px solid var(--vermelho); padding: 28px 28px 30px; }
  .folha-alca { display: none; }
  .folha[open] .folha-cartao { animation: folha-entra 240ms var(--saida) both; }
  @keyframes folha-entra { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .faixa-trilho { transform: none; }
}
