html,
body,
.landing {
  width: 100%;
  height: 100%;
  min-height: 100%;
  overflow: hidden;
}

.background {
  object-position: center top;
}

.content {
  position: absolute;
  left: 50%;
  bottom: clamp(24px, 6vh, 72px);
  width: min(calc(100% - 34px), 650px);
  padding: 0;
  transform: translateX(-50%);
}

@media (min-width: 641px) and (max-aspect-ratio: 4 / 3) {
  .background {
    object-position: center top;
  }

  .content {
    bottom: clamp(30px, 7vh, 76px);
  }
}

@media (max-width: 640px) {
  .background {
    object-position: center top;
  }

  .content {
    bottom: max(22px, env(safe-area-inset-bottom));
    width: calc(100% - 34px);
    padding: 0;
  }
}

@media (orientation: landscape) and (max-height: 620px) {
  .content {
    bottom: 8px;
    transform: translateX(-50%) scale(.8);
    transform-origin: bottom center;
  }
}

/* Logo final fornecida pela marca e composição sem cobrir o rosto. */
.background {
  top: 0;
  height: 100%;
  transform: none;
  transform-origin: center top;
}

.content {
  bottom: clamp(76px, 11svh, 118px);
}

.brand-logo {
  display: block;
  width: min(34vw, 230px);
  height: auto;
  margin: 0 auto 9px;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .34));
}

.join-button {
  width: min(100%, 570px);
  min-height: 72px;
  font-size: clamp(1rem, 2.2vw, 1.18rem);
}

@media (max-width: 640px) {
  .background {
    top: -2.5vh;
    height: 102.5vh;
    transform: scale(1.015);
  }

  .content {
    bottom: max(clamp(135px, 22svh, 190px), env(safe-area-inset-bottom));
    width: calc(100% - 26px);
  }

  .brand-logo {
    width: min(43vw, 178px);
    margin-bottom: 9px;
  }

  .join-button {
    width: 100%;
    min-height: 74px;
    padding: 19px 22px;
    font-size: clamp(.98rem, 4vw, 1.08rem);
  }

  .limited {
    margin-top: 15px;
  }
}

@media (orientation: landscape) and (max-height: 620px) {
  .background {
    top: 0;
    height: 100%;
  }

  .brand-logo {
    width: 190px;
  }

  .join-button {
    min-height: 62px;
  }
}

@media (max-width: 640px) and (orientation: landscape) {
  .background {
    top: -7vh;
    height: 107vh;
    transform: scale(1.01);
  }
}

.join-button {
  position: relative;
  animation: cta-pulse 1.35s ease-in-out infinite;
  will-change: transform, box-shadow;
}

.join-button::after {
  content: "";
  position: absolute;
  inset: -7px;
  z-index: -1;
  border: 2px solid rgba(255, 49, 94, .75);
  border-radius: inherit;
  animation: cta-ring 1.35s ease-out infinite;
}

@keyframes cta-pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 13px 34px rgba(227, 24, 63, .42), inset 0 1px 0 rgba(255, 255, 255, .4);
  }
  50% {
    transform: scale(1.035);
    box-shadow: 0 18px 48px rgba(255, 29, 77, .72), 0 0 26px rgba(255, 42, 91, .42), inset 0 1px 0 rgba(255, 255, 255, .55);
  }
}

@keyframes cta-ring {
  0% { opacity: .8; transform: scale(.98); }
  75%, 100% { opacity: 0; transform: scale(1.08); }
}

@media (prefers-reduced-motion: reduce) {
  .join-button,
  .join-button::after {
    animation: none;
  }
}
