.home-modal[hidden] {
  display: none !important;
}

.home-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.24s ease,
    visibility 0.24s ease;
}

.home-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.home-modal__dialog {
  position: relative;
  width: min(100%, 500px);
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 28px 80px rgba(7, 28, 23, 0.28);
  transform: translateY(24px) scale(0.98);
  background: white;
  opacity: 0;
  transition:
    transform 0.24s ease,
    opacity 0.24s ease;
}

.home-modal.is-open .home-modal__dialog {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.home-modal__close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: rgba(16, 33, 29, 0.08);
  color: #666;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    transform 0.2s ease;
}

.home-modal__close:hover,
.home-modal__close:focus-visible {
  background: rgba(16, 33, 29, 0.16);
  transform: scale(1.03);
  outline: none;
}

.home-hero {
  box-sizing: border-box;
}

.home-modal__description {
  margin: 24px 0;
  padding: 0 40px;
  color: #4e625d;
  font-size: 14px;
  line-height: 1.7;
}

.home-modal__actions {
  text-align: center;
  padding-bottom: 40px;
}

.home-modal__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border-radius: 40px;
  border: 1px solid transparent;
  font-size: 16px;
  font-weight: 600;
  width: 200px;
  transition:
    transform 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.home-modal__action--primary {
  background: #16b998;
  color: #ffffff;
}

.home-modal__action--primary:hover,
.home-modal__action--primary:focus-visible {
  background: #11977d;
  color: #ffffff;
}

@media screen and (max-width: 767px) {
  .home-modal {
    padding: 16px;
  }

  .home-modal__description {
    font-size: 15px;
    padding: 0 24px;
    margin: 18px 0;
  }

  .home-modal__actions {
    flex-direction: column;
    padding: 0 24px;
    padding-bottom: 24px;
  }

  .home-modal__action {
    width: 100%;
  }
}
