html {
  scroll-behavior: smooth;
}

body.landing-image-page {
  margin: 0;
  background: #fffdf9;
}

.image-landing {
  position: relative;
  width: min(100%, 935px);
  margin: 0 auto;
  background: #fffdf9;
  box-shadow: 0 20px 80px rgba(74, 7, 19, 0.08);
}

.landing-base-image {
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
}

.landing-base-image--mobile {
  display: none;
}

.hotspot {
  position: absolute;
  display: block;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  border-radius: 10px;
}

.hotspot:focus-visible {
  outline: 3px solid rgba(107, 16, 32, 0.55);
  outline-offset: 3px;
}

/* Áreas clicáveis — desktop: base visual 935 x 1683 */
.hotspot-logo { left: 4.2%; top: 0.35%; width: 15.4%; height: 3.0%; }
.hotspot-nav-como { left: 33.0%; top: 1.25%; width: 9.0%; height: 1.7%; }
.hotspot-nav-beneficios { left: 44.4%; top: 1.25%; width: 8.5%; height: 1.7%; }
.hotspot-nav-recursos { left: 54.0%; top: 1.25%; width: 8.0%; height: 1.7%; }
.hotspot-nav-demo { left: 63.6%; top: 1.25%; width: 9.2%; height: 1.7%; }
.hotspot-top-demo { left: 75.0%; top: 0.95%; width: 15.0%; height: 2.0%; }
.hotspot-hero-demo { left: 6.0%; top: 19.6%; width: 14.8%; height: 2.0%; }
.hotspot-hero-platform { left: 22.2%; top: 19.6%; width: 14.6%; height: 2.0%; }
.hotspot-phone-demo { left: 91.0%; top: 19.5%; width: 5.5%; height: 1.5%; }
.hotspot-footer-demo { left: 72.8%; top: 96.1%; width: 15.5%; height: 1.9%; }

.anchor-map span {
  position: absolute;
  width: 1px;
  height: 1px;
  left: 0;
}

#topo { top: 0; }
#beneficios { top: 27%; }
#como-funciona { top: 39%; }
#recursos { top: 52%; }
#demonstracao { top: 88%; }

.landing-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.landing-modal.is-open {
  display: flex;
}

.landing-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(24, 12, 16, 0.58);
  backdrop-filter: blur(6px);
}

.landing-modal__card {
  position: relative;
  width: min(100%, 460px);
  padding: 2rem;
  border-radius: 28px;
  border: 1px solid rgba(234, 223, 217, 0.9);
  background: #fffdf9;
  box-shadow: 0 28px 90px rgba(24, 12, 16, 0.28);
}

.landing-modal__close {
  position: absolute;
  right: 1rem;
  top: 0.85rem;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: #f6ede7;
  color: var(--color-wine-900, #4a0713);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

.landing-modal__logo {
  width: 140px;
  height: auto;
  margin-bottom: 1rem;
}

.landing-modal__card h1 {
  margin: 0;
  color: var(--color-wine-900, #4a0713);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 2rem;
}

.landing-modal__card p {
  color: var(--color-muted, #6f6265);
}

.demo-form {
  display: grid;
  gap: 1rem;
}

.demo-form label {
  display: grid;
  gap: 0.45rem;
  color: var(--color-wine-900, #4a0713);
  font-weight: 800;
}

.demo-form input {
  min-height: 48px;
  padding: 0 0.9rem;
  border: 1px solid rgba(107, 16, 32, 0.18);
  border-radius: 14px;
  background: #fff;
  color: #231a1d;
  font: inherit;
}

.demo-form-note {
  min-height: 1.4rem;
  font-weight: 800;
  color: var(--color-wine-700, #6b1020);
}

@media (max-width: 768px) {
  html,
  body.landing-image-page {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    background: #fffdf9;
  }

  .image-landing {
    width: 90vw;
    max-width: none;
    min-width: 0;
    margin-left: auto;
    margin-right: auto;
    overflow: visible;
    box-shadow: none;
  }

  .landing-base-image {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
  }

  .landing-base-image--desktop {
    display: none;
  }

  .landing-base-image--mobile {
    display: block;
  }

  body.mobile-image-missing .landing-base-image--desktop {
    display: block;
  }

  body.mobile-image-missing .landing-base-image--mobile {
    display: none;
  }

  .hotspot-nav-como,
  .hotspot-nav-beneficios,
  .hotspot-nav-recursos,
  .hotspot-nav-demo,
  .hotspot-top-demo,
  .hotspot-phone-demo {
    display: none;
  }

  /* Áreas clicáveis — mobile ajustado para imagem com 90% da largura da tela */
  .hotspot-logo { left: 5.5%; top: 0.3%; width: 33%; height: 1.8%; }
  .hotspot-hero-demo { left: 6.5%; top: 7.4%; width: 50.5%; height: 1.15%; }
  .hotspot-hero-platform { display: none; }
  .hotspot-footer-demo { left: 8%; top: 92.2%; width: 52.5%; height: 1.15%; }
}
