/* Formulário na hero; escopo restrito à página principal. */
.hero--capture .hero__content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(25rem, 0.9fr);
  grid-template-areas: "intro form" "countdown form" "facts facts";
  grid-template-rows: auto 1fr auto;
  gap: 1.75rem clamp(2rem, 4vw, 4rem);
  align-items: start;
  padding-top: calc(var(--header-h) + 2rem);
}

.hero--capture .hero__content > * {
  min-width: 0;
  max-width: none;
  margin: 0;
}

.hero--capture .hero__intro { grid-area: intro; }
.hero--capture .event-countdown { grid-area: countdown; }
.hero--capture .factbar { grid-area: facts; }
.hero--capture .hero__note { margin-bottom: 0; }

/* Contagem editorial discreta, diretamente sobre o fundo da hero. */
.hero--capture .event-countdown {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
}

.hero--capture .event-countdown__label {
  margin-bottom: 0.75rem;
  color: #a8b0ac;
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.12em;
}

.hero--capture .event-countdown__timer:not([hidden]) {
  display: flex;
  gap: 0;
}

.hero--capture .event-countdown__timer > span {
  min-width: 3.5rem;
  gap: 0.35rem;
  padding: 0 1rem;
  text-align: left;
}

.hero--capture .event-countdown__timer > span:first-child { padding-left: 0; }
.hero--capture .event-countdown__timer > span + span { border-left: 1px solid rgb(255 255 255 / 16%); }

.hero--capture .event-countdown__timer strong {
  color: #c8d0cc;
  font-size: clamp(1.35rem, 2vw, 1.65rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.025em;
}

.hero--capture .event-countdown__timer small {
  color: #a0aaa4;
  font-size: 0.5625rem;
  letter-spacing: 0.06em;
}

.hero--capture .event-countdown__date {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.75rem;
  margin-top: 0.85rem;
  line-height: 1.5;
}

.hero--capture .event-countdown__date time { color: #b5beb9; font-size: 0.75rem; font-weight: 400; }
.hero--capture .event-countdown__date > span { color: #a0aaa4; font-size: 0.6875rem; }

.hero--capture #informacoes {
  grid-area: form;
  position: relative;
  overflow: visible;
  padding: clamp(1.25rem, 2vw, 2rem);
  scroll-margin-top: calc(var(--header-h) + 1rem);
}

.hero--capture #informacoes::after { content: none; }

.hero__form-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  line-height: 1.2;
}

.hero__form-description {
  margin: 0.65rem 0 1.25rem;
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.5;
}

.hero__form .field { margin-bottom: 0.85rem; }
.hero__form .field label { margin-bottom: 0.35rem; }
.hero__form-note { margin: 1rem 0 0; }

/* Controles compactos e uniformes; menta reservada a foco e ação principal. */
.hero__form { container-type: inline-size; }
.hero__form .field { min-width: 0; margin-bottom: 0.7rem; }
.hero__form .field label { font-size: 0.6875rem; letter-spacing: 0.065em; }
.hero__form .field input,
.hero__form .field select,
.hero__form .state-input__trigger,
.hero__form .choice-input__trigger {
  min-height: 2.75rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid #39413e;
  border-radius: 0.625rem;
  background: #111916;
  color: #fff;
  font-size: 1rem;
  line-height: 1.3;
}

.hero__form .phone-input {
  border: 1px solid #39413e;
  border-radius: 0.625rem;
  background: #111916;
}
.hero__form .field .phone-input__number {
  border: 0;
  background: transparent;
  border-radius: 0 0.625rem 0.625rem 0;
}
.hero__form .phone-input__country {
  min-width: 0;
  min-height: 2.75rem;
  gap: 0.3rem;
  padding: 0.55rem 0.6rem;
  border: 0;
  border-right: 1px solid #39413e;
  border-radius: 0.625rem 0 0 0.625rem;
  background: transparent;
  font-size: 0.875rem;
}
.hero__form .phone-input__flag { font-size: 1rem; }
.hero__form .phone-input__chevron,
.hero__form .state-input__chevron { color: #afbab4; font-size: 0.75rem; }
.hero__form .state-input,
.hero__form .choice-input { border: 0; }
.hero__form .state-input__trigger {
  display: flex;
  gap: 0.45rem;
}
.hero__form .state-input__trigger-flag { width: 1.25rem; height: 0.9rem; }
.hero__form .state-input__trigger-name { flex: 1; }
.hero__form .state-input__trigger-uf { display: none; }
.hero__form .field-row {
  grid-template-columns: minmax(0, 1fr) 8.5rem;
  gap: 0.75rem;
}
.hero__form .phone-input__country:hover,
.hero__form .phone-input.is-open .phone-input__country,
.hero__form .state-input__trigger:hover,
.hero__form .state-input.is-open .state-input__trigger,
.hero__form .choice-input__trigger:hover { background: #1c2822; }
.hero__form .state-input__panel,
.hero__form .choice-input__panel {
  left: auto;
  right: 0;
  width: min(25rem, 100cqw);
}
.hero__form .field input:focus-visible,
.hero__form .field select:focus-visible,
.hero__form .phone-input:focus-within,
.hero__form .state-input__trigger:focus-visible,
.hero__form .choice-input__trigger:focus-visible {
  border-color: var(--accent-soft);
  outline: 2px solid var(--accent-soft);
  outline-offset: 2px;
}
.hero__form .field .phone-input__number:focus-visible { outline: none; }
.hero__form .field.has-error > input,
.hero__form .field.has-error .phone-input,
.hero__form .state-input__trigger[aria-invalid="true"] { border-color: var(--error); }
.hero__form .consent { margin: 0.25rem 0 0.6rem; gap: 0.6rem; font-size: 0.75rem; line-height: 1.5; }
.hero__form .btn { min-height: 2.75rem; margin-top: 0.4rem; padding-block: 0.75rem; }
.hero__form-description { margin-bottom: 1rem; }
.hero__form-note { margin-top: 0.75rem; }

@container (min-width: 30rem) {
  .hero__form-pair {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0.75rem;
  }
}

@media (max-width: 61.99rem) {
  .hero--capture .hero__content {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "intro" "form" "countdown" "facts";
    grid-template-rows: auto;
    gap: 1.75rem;
    padding-top: calc(var(--header-h) + 2rem);
  }

  .hero--capture .hero__media {
    inset: var(--header-h) 0 0;
    height: 44rem;
    border-radius: 0;
  }

  .hero--capture .hero__media::before {
    background: linear-gradient(0deg, #000 0%, rgb(0 0 0 / 85%) 45%, rgb(0 0 0 / 75%) 100%);
  }

  .hero--capture .title--hero {
    max-width: 22ch;
    font-size: clamp(1.8rem, 5vw, 2.75rem);
  }

  .hero--capture .hero__sub { margin-top: 1rem; }
  .hero--capture .hero__actions { margin-top: 1.25rem; }
  .hero--capture .factbar { border-radius: var(--radius-lg); }
}

/* Hero com retrato livre e captação em modal. */
.hero--capture .hero__content {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  grid-template-areas: "intro portrait" "countdown portrait" "facts facts";
  grid-template-rows: auto 1fr auto;
}
.hero--capture .hero__media {
  grid-area: portrait;
  position: relative;
  inset: auto;
  z-index: 0;
  width: 100%;
  height: 100%;
  min-height: 38rem;
  border-radius: 1rem;
  clip-path: none;
}
.hero--capture .hero__media picture { display: block; }
.hero--capture .hero__media img {
  position: absolute;
  inset: 0;
  object-position: 50% 38%;
  transform: none !important;
  filter: none;
}
.hero--capture .hero__media::before { background: linear-gradient(0deg, rgb(0 0 0 / 35%), transparent 30%); }
.hero--capture .hero__actions { margin-top: 1.5rem; }
.section-cta { margin-top: 2rem; text-align: center; }
.lead-dialog-open { overflow: hidden; }
.lead-dialog {
  width: min(38rem, calc(100% - 1.5rem));
  max-width: none;
  max-height: calc(100dvh - 2rem);
  margin: auto;
  padding: 0;
  border: 1px solid #426654;
  border-radius: 1.25rem;
  background: #080e0b;
  color: #fff;
  overflow: auto;
  overscroll-behavior: contain;
}
.lead-dialog::backdrop { background: rgb(0 0 0 / 78%); backdrop-filter: blur(7px); }
.lead-dialog__toolbar {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  justify-content: flex-end;
  padding: 0.5rem 0.75rem;
  background: #080e0b;
}
.lead-dialog__close {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 2.75rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid #39413e;
  border-radius: 0.6rem;
  background: #111916;
  color: #fff;
  font: inherit;
  font-size: 0.8125rem;
  cursor: pointer;
}
.lead-dialog__close span { font-size: 1.4rem; line-height: 1; }
.lead-dialog__close:focus-visible { outline: 2px solid var(--accent-soft); outline-offset: 2px; }
#informacoes.hero__form { position: relative; overflow: visible; }
#informacoes.hero__form::after { content: none; }
.lead-dialog #informacoes {
  padding: 0.5rem clamp(1rem, 3vw, 1.75rem) 1.5rem;
  border: 0;
  border-radius: 0;
  background: transparent;
}
@media (max-width: 61.99rem) {
  .hero--capture .hero__content {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "portrait" "intro" "countdown" "facts";
    grid-template-rows: auto;
    padding-top: calc(var(--header-h) + 1rem);
  }
  .hero--capture .hero__media { min-height: 0; height: clamp(17rem, 60vw, 25rem); }
  .hero--capture .hero__media img { object-position: 50% 32%; }
  .hero--capture .hero__actions .btn { width: 100%; }
}

/* Mobile: retrato integrado, leitura contínua e dados sem competir com o CTA. */
@media (max-width: 47.99rem) {
  .hero--capture .hero__content {
    position: relative;
    grid-template-areas: "intro" "countdown" "facts";
    gap: 1.5rem;
    padding-top: calc(var(--header-h) + 14rem);
    padding-bottom: 1.5rem;
  }
  .hero--capture .hero__media {
    position: absolute;
    grid-area: auto;
    inset: var(--header-h) calc(-1 * var(--gutter)) auto;
    width: auto;
    height: 34rem;
    min-height: 0;
    border-radius: 0;
    pointer-events: none;
  }
  .hero--capture .hero__media img {
    top: -3rem;
    height: auto;
    object-position: 50% 30%;
    transform: none !important;
  }
  .hero--capture .hero__media::before {
    background: linear-gradient(180deg, rgb(0 0 0 / 2%) 0%, rgb(0 0 0 / 2%) 26%, rgb(0 0 0 / 70%) 43%, #000 72%);
  }
  .hero--capture .hero__intro,
  .hero--capture .event-countdown,
  .hero--capture .factbar { position: relative; z-index: 1; }
  .hero--capture .hero__intro > .eyebrow {
    max-width: 28ch;
    margin-bottom: 0.75rem;
    font-size: 0.625rem;
    line-height: 1.6;
    letter-spacing: 0.12em;
  }
  .hero--capture .title--hero {
    max-width: 22ch;
    font-size: clamp(1.75rem, 7.3vw, 2rem);
    line-height: 1.08;
    letter-spacing: -0.045em;
    text-wrap: pretty;
  }
  .hero--capture .hero__sub {
    margin-top: 1rem;
    color: #bfc5c1;
    font-size: 0.9375rem;
    line-height: 1.6;
    max-width: 38ch;
  }
  .hero--capture .hero__actions { margin-top: 1.25rem; }
  .hero--capture .hero__actions .btn { min-height: 3rem; padding-block: 0.85rem; }
  .hero--capture .event-countdown { padding-top: 0.25rem; }
  .hero--capture .factbar {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0 1.25rem;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    overflow: visible;
  }
  .hero--capture .factbar__item {
    padding: 0.85rem 0;
    border: 0;
    border-top: 1px solid rgb(255 255 255 / 14%);
  }
  .hero--capture .factbar__label {
    margin-bottom: 0.35rem;
    color: #9faea5;
    font-size: 0.625rem;
    opacity: 1;
    letter-spacing: 0.08em;
  }
  .hero--capture .factbar__value {
    color: #e5ebe7;
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1.45;
  }
  .hero--capture .factbar__hint { margin-top: 0.25rem; color: #a4afa8; font-size: 0.625rem; }
}
