@import url("/assets/index-base.css");

.video-shade,
.video-caption {
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.video-caption {
  transform: translateY(7px);
}

.video-card:hover .video-shade,
.video-card:focus-within .video-shade,
.video-card:hover .video-caption,
.video-card:focus-within .video-caption {
  opacity: 1;
  transform: none;
}

@media (hover: none), (pointer: coarse) {
  .video-shade,
  .video-caption {
    opacity: 0;
  }

  .video-card .video-controls,
  .video-card:hover .video-controls,
  .video-card:focus-within .video-controls,
  .video-card .video-controls:focus-within {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-7px);
  }

  .video-card.video-controls-visible .video-controls,
  .video-card.video-controls-visible:hover .video-controls,
  .video-card.video-controls-visible:focus-within .video-controls {
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }
}

.video-card video:fullscreen,
.video-card video:-webkit-full-screen {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: #000;
}

@media (width <= 520px) {
  .hero-copy > .hero-media {
    width: 100%;
    margin: 28px 0 0;
  }

  .hero-actions {
    width: 100%;
    align-items: center;
    text-align: center;
  }

  .purchase-visual {
    width: min(calc(100% - 28px), 360px);
    margin-inline: auto;
  }

  .purchase-visual img {
    width: 100%;
    max-width: 100%;
    margin-inline: 0;
    transform: rotate(1deg);
  }

  .purchase-copy {
    text-align: center;
  }

  .purchase-copy .section-kicker {
    justify-content: center;
  }

  .purchase-copy > p:not(.section-kicker) {
    margin-inline: auto;
  }

  .footer-grid {
    text-align: center;
  }

  .footer-book-title {
    margin-inline: auto;
  }

  .footer-center {
    justify-self: center;
    align-items: center;
  }

  .footer-links {
    justify-self: center;
    justify-content: center;
    flex-wrap: wrap;
  }

  .footer-bottom {
    grid-template-columns: 1fr;
    justify-content: center;
    justify-items: center;
    text-align: center;
  }
}

.hero-actions.lead-capture-ready {
  flex-wrap: wrap;
  gap: 14px 16px;
}

.wordmark {
  text-transform: uppercase;
}

#inicio .hero-actions .text-link {
  display: none;
}

.button-chapter {
  color: var(--white);
  cursor: pointer;
  background: rgba(4, 22, 37, 0.52);
  border: 1px solid rgba(230, 189, 91, 0.82);
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.button-chapter:hover {
  color: var(--ink);
  background: var(--gold-light);
  border-color: var(--gold-light);
  transform: translateY(-2px);
}

.topbar-chapter {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: auto;
  padding: 8px 2px;
  color: rgba(255, 255, 255, 0.72);
  cursor: pointer;
  background: transparent;
  border: 0;
  border-radius: 0;
  letter-spacing: 0.04em;
  text-transform: none;
  font-size: 12px;
  font-weight: 400;
  transition: color 200ms ease;
}

.topbar-chapter span {
  transition: color 200ms ease, transform 200ms ease;
}

.topbar-chapter:hover {
  color: var(--gold-light);
}

.topbar-chapter:hover span {
  color: var(--gold);
  transform: translate(3px, -1px);
}

.purchase-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 34px;
}

.purchase-actions .purchase-button {
  margin-top: 0;
}

.lead-modal-open {
  overflow: hidden;
}

#comprar-convite {
  scroll-margin-top: 116px;
}

.topbar-cta {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.lead-modal {
  z-index: 1300;
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  transition: opacity 200ms ease;
}

.lead-modal.is-open {
  opacity: 1;
}

.lead-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(1, 10, 18, 0.84);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.lead-modal__panel {
  position: relative;
  width: min(100%, 530px);
  max-height: calc(100svh - 48px);
  overflow: auto;
  color: var(--white);
  background:
    radial-gradient(circle at 100% 0%, rgba(43, 142, 208, 0.2), transparent 42%),
    var(--navy);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 28px;
  padding: 42px;
  box-shadow: 0 36px 110px rgba(0, 0, 0, 0.58);
  transform: translateY(18px) scale(0.985);
  transition: transform 200ms ease;
}

.lead-modal.is-open .lead-modal__panel {
  transform: none;
}

.lead-modal__close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: rgba(255, 255, 255, 0.78);
  cursor: pointer;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  font-family: Inter, sans-serif;
  font-size: 25px;
  line-height: 1;
  transition: color 180ms ease, background 180ms ease;
}

.lead-modal__close:hover {
  color: var(--ink);
  background: var(--gold-light);
}

.lead-modal__eyebrow {
  margin: 0 48px 12px 0;
  color: var(--gold-light);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 9px;
  font-weight: 700;
}

.lead-modal h2 {
  max-width: 390px;
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(44px, 5vw, 60px);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.92;
}

.lead-modal h2 em {
  color: var(--gold);
  font-family: inherit;
  font-weight: 500;
}

.lead-modal__description {
  max-width: 420px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  line-height: 1.65;
}

.lead-form {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}

.lead-form__field {
  display: grid;
  gap: 8px;
}

.lead-form__field label {
  color: rgba(255, 255, 255, 0.82);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lead-form__field input {
  width: 100%;
  height: 54px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  padding: 0 16px;
  font-size: 14px;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.lead-form__field input::placeholder {
  color: rgba(255, 255, 255, 0.38);
}

.lead-form__field input:focus {
  background: rgba(255, 255, 255, 0.09);
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(230, 189, 91, 0.14);
}

.lead-form__consent {
  display: grid;
  grid-template-columns: 18px 1fr;
  align-items: start;
  gap: 10px;
  color: rgba(255, 255, 255, 0.56);
  cursor: pointer;
  font-size: 10px;
  line-height: 1.5;
}

.lead-form__consent input {
  width: 17px;
  height: 17px;
  margin-top: 1px;
  accent-color: var(--gold);
}

.lead-form__consent em {
  color: rgba(255, 255, 255, 0.78);
  font-family: inherit;
}

.lead-form__submit {
  width: 100%;
  margin-top: 2px;
  cursor: pointer;
}

.lead-form__submit:disabled {
  cursor: wait;
  opacity: 0.7;
}

.lead-form__status {
  min-height: 18px;
  margin: -4px 0 0;
  color: rgba(255, 255, 255, 0.68);
  text-align: center;
  font-size: 10px;
  line-height: 1.5;
}

.lead-form__status.is-error {
  color: #ffb7ae;
}

.lead-form__status.is-success {
  color: var(--gold-light);
}

.lead-modal__note {
  margin: 2px 0 0;
  color: rgba(255, 255, 255, 0.34);
  text-align: center;
  font-size: 8px;
  line-height: 1.5;
}

.lead-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

@media (width <= 520px) {
  #comprar-convite {
    scroll-margin-top: 108px;
  }

  .hero:has(.video-card-expanded) {
    z-index: 1100;
    overflow: visible;
  }

  .hero-grid:has(.video-card-expanded) {
    z-index: 1101;
  }

  .hero-media:has(.video-card-expanded) {
    z-index: 1102;
    animation: none;
  }

  .video-backdrop {
    z-index: 2000;
    background: rgba(1, 10, 18, 0.97);
  }

  .video-card-expanded {
    z-index: 2001;
  }

  .hero-actions.lead-capture-ready .button {
    width: min(100%, 260px);
  }

  .purchase-actions {
    flex-direction: column;
    justify-content: center;
  }

  .purchase-actions .button {
    width: min(100%, 260px);
  }

  .lead-modal {
    align-items: end;
    padding: 10px;
  }

  .lead-modal__panel {
    width: 100%;
    max-height: calc(100svh - 20px);
    border-radius: 24px;
    padding: 30px 20px 24px;
  }

  .lead-modal__close {
    top: 14px;
    right: 14px;
  }

  .lead-modal h2 {
    padding-right: 32px;
    font-size: 44px;
  }

  .lead-modal__description {
    margin-top: 16px;
  }

  .lead-form {
    gap: 13px;
    margin-top: 21px;
  }

  .lead-form__field input {
    height: 50px;
  }
}

@media (width <= 800px) {
  .topbar-chapter {
    display: none;
  }
}
