/* ============================================================================
   LP1 — Breve Lançamento, Jardim das Perdizes
   Depende de tokens.css. Sem framework: os breakpoints do Bootstrap 5 estão
   replicados à mão porque a página usa só o grid próprio dos seus dois blocos.
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;                /* CTA do hero desce até o formulário */
}

/* O cabeçalho é sticky: sem isto o topo do formulário fica debaixo dele. */
#formulario { scroll-margin-top: calc(var(--header-h) + 16px); }

body {
  margin: 0;
  padding-bottom: var(--channels-h);      /* a barra de canais é fixa */
  background: var(--color-bg-page);
  color: var(--color-text-body);
  font-family: var(--font-base);
  font-size: var(--fs-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

/* Vários blocos que o JS mostra e esconde têm display no próprio seletor de
   classe, que vence a regra [hidden] do navegador. Sem isto, o formulário não
   some depois do envio e o botão de pausa aparece mesmo sem vídeo carregado. */
[hidden] { display: none !important; }

a { color: inherit; }

h1, h2, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }

:focus-visible {
  outline: 3px solid var(--color-brand-red);
  outline-offset: 2px;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden; white-space: nowrap;
  clip-path: inset(50%);
  border: 0;
}

.skip-link {
  position: absolute;
  left: 0; top: -100px;
  z-index: var(--z-skip);
  background: var(--color-brand-red);
  color: var(--color-text-on-dark);
  font-weight: var(--fw-bold);
  padding: 14px 22px;
  text-decoration: none;
}
.skip-link:focus { top: 0; }

/* Marcadores de conteúdo que ainda depende de definição do cliente. Ficam
   visíveis de propósito: a página não pode ir ao ar com nenhum deles. */
.pending {
  color: var(--color-brand-red);
  border: 1px dashed var(--color-brand-red);
  padding: 0 5px;
  font-weight: var(--fw-bold);
  white-space: nowrap;
}

.section-title {
  font-size: var(--fs-h2);
  line-height: var(--lh-h2);
  font-weight: var(--fw-bold);
  color: var(--color-bg-section-dark);
}

/* ------------------------------------------------------------- botões ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: inherit;
  font-size: var(--fs-cta);
  font-weight: var(--fw-bold);
  line-height: 1.2;
  padding: var(--cta-padding);
  border-radius: var(--radius);
  border: var(--cta-border-width) solid transparent;
  text-decoration: none;
  cursor: pointer;
}

.btn--primary {
  background: var(--color-brand-red);
  border-color: var(--color-brand-red);
  color: var(--color-text-on-dark);
}
.btn--primary:hover {
  background: var(--color-brand-red-hover);
  border-color: var(--color-brand-red-hover);
}
.btn--primary:disabled {
  background: var(--color-disabled-bg);
  border-color: var(--color-disabled-bg);
  color: var(--color-disabled-text);
  cursor: not-allowed;
}

.btn--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, .7);
  color: var(--color-text-on-dark);
  font-size: var(--fs-body);
  font-weight: var(--fw-regular);
  padding: 12px 18px;
}
.btn--ghost:hover { background: rgba(255, 255, 255, .12); }
.btn--ghost svg {
  width: 16px; height: 16px;
  fill: none; stroke: currentColor; stroke-width: 1.7;
}

.btn--block { width: 100%; }

/* ---------------------------------------------------------- cabeçalho ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-field-border);
}
.site-header__inner {
  height: var(--header-h);
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  gap: 32px;
}
.site-header__logo {
  font-size: 24px;
  font-weight: var(--fw-bold);
  letter-spacing: .14em;
  color: var(--color-bg-section-dark);
  text-decoration: none;
}
.site-header__nav {
  margin-left: auto;
  display: flex;
  gap: 26px;
}
.site-header__nav a {
  color: var(--color-bg-section-dark);
  text-decoration: none;
}
.site-header__nav a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* --------------------------------------------------------------- hero ---- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: calc(100svh - var(--header-h));
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #0B0B0D;                    /* enquanto o poster não pinta */
}

.hero__media { position: absolute; inset: 0; z-index: var(--z-hero-media); }

.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* O véu é mais forte que o do site de referência porque o plano é noturno e as
   luzes da cidade passam por trás do H1. Clarear derruba o contraste do título. */
.hero__veil {
  position: absolute;
  inset: 0;
  z-index: var(--z-hero-veil);
  background:
    linear-gradient(90deg, rgba(0,0,0,.78) 0%, rgba(0,0,0,.56) 46%, rgba(0,0,0,.3) 100%),
    linear-gradient(180deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,0) 34%, rgba(0,0,0,.38) 100%);
}

/* WCAG 2.2.2: movimento automático acima de 5s precisa de controle de pausa. */
.hero__media-ctrl {
  position: absolute;
  top: 16px;
  right: var(--gutter);
  z-index: var(--z-hero-ctrl);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--color-text-on-dark);
  background: rgba(0, 0, 0, .55);
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: var(--radius);
  padding: 7px 12px;
  cursor: pointer;
}
.hero__media-ctrl:hover { background: rgba(0, 0, 0, .85); }
.hero__media-ctrl svg { width: 11px; height: 11px; fill: currentColor; flex: none; }
.hero__media-ctrl .icon-play { display: none; }
.hero__media-ctrl.is-paused .icon-pause { display: none; }
.hero__media-ctrl.is-paused .icon-play { display: block; }

.hero__inner {
  position: relative;
  z-index: var(--z-hero-content);
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding: 56px var(--gutter) 64px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 424px;
  gap: 48px;
  align-items: end;
}

.hero__copy { color: var(--color-text-on-dark); max-width: 760px; }

.hero__kicker {
  font-size: var(--fs-body);
  font-weight: var(--fw-bold);
  letter-spacing: .24em;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.hero__title {
  font-size: var(--fs-h1);
  line-height: var(--lh-h1);
  letter-spacing: var(--ls-h1);
  font-weight: var(--fw-regular);
  text-transform: uppercase;
  margin-bottom: 18px;
}

.hero__subtitle {
  font-size: var(--fs-h2);
  line-height: var(--lh-h2);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  margin-bottom: 34px;
}

.hero__actions { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }

/* ---------------------------------------------------------- formulário ---- */
.lead {
  align-self: start;
  background: rgba(0, 0, 0, .86);
  color: var(--color-text-on-dark);
  padding: 28px 28px 30px;
}

.lead__form, .lead__done { display: flex; flex-direction: column; gap: 14px; }
.lead__done { text-align: center; padding: 22px 0 8px; }

.lead__badge {
  align-self: center;
  background: var(--color-brand-red);
  color: var(--color-text-on-dark);
  font-size: 14px;
  font-weight: var(--fw-bold);
  letter-spacing: .16em;
  text-transform: uppercase;
  padding: 8px 18px;
}

.lead__title {
  font-size: var(--fs-h2);
  line-height: 1.2;
  font-weight: var(--fw-bold);
  margin-top: 6px;
}

.lead__subtitle {
  font-size: var(--fs-body);
  font-weight: var(--fw-light);
  color: var(--color-text-muted);
}

.lead__captcha {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--color-field-placeholder);
}
.lead__captcha svg { width: 13px; height: 13px; fill: currentColor; flex: none; }

.lead__again {
  background: none;
  border: 0;
  color: var(--color-text-on-dark);
  font-family: inherit;
  font-size: 15px;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
}

/* Erro geral do envio. Texto branco sobre o card preto: o vermelho da marca
   sobre preto dá 3.8:1 e não passa em texto pequeno, então ele fica só na
   barra lateral, como sinalização. */
.lead__formerror {
  font-size: var(--fs-small);
  line-height: 1.5;
  color: var(--color-text-on-dark);
  border-left: 3px solid var(--color-brand-red);
  padding-left: 10px;
}

.field { display: flex; flex-direction: column; gap: 6px; }

.field__input {
  width: 100%;
  height: 54px;
  background: var(--color-surface);
  color: var(--color-bg-section-dark);
  border: 1px solid var(--color-field-border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: var(--fs-field);
  padding-inline: 14px;
}
.field__input::placeholder { color: var(--color-field-placeholder); opacity: 1; }
.field__input:focus-visible { outline-offset: -3px; }

.field__group {
  display: flex;
  background: var(--color-surface);
  border: 1px solid var(--color-field-border);
}
.field__group .field__input { border: 0; height: 52px; }
.field__ddi {
  border: 0;
  border-right: 1px solid var(--color-field-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  color: var(--color-bg-section-dark);
  font-family: inherit;
  font-size: var(--fs-field);
  height: 52px;
  padding-inline: 14px 8px;
}

.field__error {
  font-size: var(--fs-small);
  line-height: 1.4;
  color: var(--color-text-on-dark);
  border-left: 3px solid var(--color-brand-red);
  padding-left: 10px;
}

.field__input[aria-invalid="true"],
.multi__btn[aria-invalid="true"] {
  border-color: var(--color-brand-red);
  box-shadow: inset 0 0 0 1px var(--color-brand-red);
}

.consent { display: flex; align-items: flex-start; gap: 11px; cursor: pointer; }
.consent input {
  width: 20px; height: 20px;
  flex: none;
  margin: 2px 0 0;
  accent-color: var(--color-brand-red);
}
.consent span {
  font-size: var(--fs-small);
  line-height: 1.5;
  color: var(--color-text-muted);
}
.consent a { color: var(--color-text-on-dark); }

/* dropdown de múltipla seleção */
.multi { position: relative; }

.multi__btn {
  width: 100%;
  height: 54px;
  background: var(--color-surface);
  border: 1px solid var(--color-field-border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: var(--fs-field);
  color: var(--color-field-placeholder);
  text-align: left;
  padding: 0 40px 0 14px;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.multi__btn.is-filled { color: var(--color-bg-section-dark); }
.multi__btn::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 22px;
  width: 9px; height: 9px;
  border-right: 2px solid var(--color-field-placeholder);
  border-bottom: 2px solid var(--color-field-placeholder);
  transform: rotate(45deg);
}
.multi__btn[aria-expanded="true"]::after { top: 26px; transform: rotate(225deg); }

.multi__panel {
  position: absolute;
  left: 0; right: 0;
  top: calc(100% + 2px);
  z-index: 10;
  background: var(--color-surface);
  border: 1px solid var(--color-field-border);
}
.multi__opt {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  font-size: var(--fs-field);
  color: var(--color-bg-section-dark);
  cursor: pointer;
}
.multi__opt:hover { background: var(--color-bg-page); }
.multi__opt input {
  width: 20px; height: 20px;
  margin: 0;
  accent-color: var(--color-brand-red);
}

/* ------------------------------------------------------------ números ---- */
.numbers { padding: 72px 0 78px; text-align: center; }
.numbers__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--color-rule);
  border: 1px solid var(--color-rule);
  margin-top: 40px;
}
.stat {
  background: var(--color-surface);
  padding: 30px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.stat__value {
  font-size: 44px;
  line-height: 1;
  font-weight: var(--fw-bold);
  letter-spacing: -1px;
  color: var(--color-brand-red);
}
.stat__value[data-pending] { color: #C9C8C5; }
.stat__label { font-size: var(--fs-body); font-weight: var(--fw-light); }

/* -------------------------------------------------------- aviso legal ---- */
.legal {
  background: var(--color-surface);
  border-top: 1px solid var(--color-field-border);
  padding: 40px 0;
}
.legal__title {
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: var(--fw-bold);
  color: var(--color-text-soft);
  margin-bottom: 10px;
}
.legal__text {
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--color-text-soft);
}

/* ------------------------------------------------------------- rodapé ---- */
.site-footer {
  background: var(--color-bg-section-dark);
  color: var(--color-text-muted);
  padding: 52px 0 40px;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}
.site-footer__title {
  font-size: 14px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--color-text-on-dark);
  font-weight: var(--fw-bold);
  margin-bottom: 14px;
}
.site-footer ul { display: flex; flex-direction: column; gap: 9px; }
.site-footer a {
  font-size: 15px;
  font-weight: var(--fw-light);
  text-decoration: none;
}
.site-footer a:hover { color: var(--color-text-on-dark); }
.site-footer__base {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid #262626;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 12.5px;
  color: #6E6E70;
}

/* ------------------------------------------------------------ canais ---- */
.channels {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: var(--z-channels);
}

/* Quadrado e vermelho, não redondo e verde: o raio zero é traço de identidade
   e a paleta não admite cor nova sem validação. Decisão aberta com o cliente. */
.channels__fab {
  position: absolute;
  right: 28px;
  bottom: calc(100% + 20px);
  width: 64px; height: 64px;
  display: grid;
  place-items: center;
  background: var(--color-brand-red);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
}
.channels__fab svg { width: 32px; height: 32px; fill: var(--color-text-on-dark); }

.channels__bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--color-brand-red);
}
.channels__bar a {
  height: var(--channels-h);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--color-text-on-dark);
  font-size: var(--fs-body);
  font-weight: var(--fw-semibold);
  text-decoration: none;
  border-right: 1px solid rgba(255, 255, 255, .28);
}
.channels__bar a:last-child { border-right: 0; }
.channels__bar a:hover { background: var(--color-brand-red-hover); }
.channels__bar svg { width: 19px; height: 19px; fill: currentColor; flex: none; }

/* =========================================================== md: 768px ==== */
@media (max-width: 767.98px) {
  .site-header__nav { display: none; }

  .hero {
    align-items: flex-start;
    min-height: 0;
  }
  .hero__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
    padding: 36px var(--gutter) 48px;
  }
  .hero__veil {
    background: linear-gradient(180deg, rgba(0,0,0,.6) 0%, rgba(0,0,0,.72) 55%, rgba(0,0,0,.86) 100%);
  }
  .hero__kicker { font-size: 13px; margin-bottom: 14px; }
  .hero__subtitle { margin-bottom: 26px; }
  .hero__actions { gap: 14px; }
  .hero__actions .btn { width: 100%; }
  .hero__media-ctrl { font-size: 10px; padding: 6px 9px; }

  .lead { padding: 22px 20px 24px; }
  .field__input, .multi__btn { height: 50px; }
  .field__group .field__input, .field__ddi { height: 48px; }
  .multi__btn::after { top: 20px; }
  .multi__btn[aria-expanded="true"]::after { top: 24px; }

  .numbers { padding: 48px 0 54px; }
  .numbers__grid { grid-template-columns: repeat(2, 1fr); }
  .stat__value { font-size: 34px; }

  .legal { padding: 28px 0; }

  .site-footer { padding: 40px 0 32px; }
  .site-footer__grid { grid-template-columns: 1fr; gap: 28px; }

  .channels__bar a { flex-direction: column; gap: 4px; font-size: 11px; }
  .channels__bar svg { width: 17px; height: 17px; }
  .channels__fab {
    right: 16px;
    bottom: calc(100% + 14px);
    width: 54px; height: 54px;
  }
  .channels__fab svg { width: 27px; height: 27px; }
}

/* ==================================================== movimento reduzido == */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
