/* Antikythera Flow download — card CTA + email modal (Tokyo Night) */

.flow-download-cta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin: 6px 0 14px;
}

.flow-download-btn {
  font-weight: 600;
  cursor: pointer;
}

.flow-download-note {
  color: #787fa3;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

/* Modal */
.flow-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.flow-modal[hidden] {
  display: none;
}

body.flow-modal-open {
  overflow: hidden;
}

.flow-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(13, 14, 20, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.flow-modal__dialog {
  position: relative;
  width: 100%;
  max-width: 440px;
  padding: 32px 28px 26px;
  border-radius: 16px;
  background: rgba(26, 27, 38, 0.92);
  border: 1px solid rgba(122, 162, 247, 0.25);
}

/* glass-card-enhanced paints a full-card ::before overlay
   (tokyo-night-enhanced.css) that swallows clicks. Lift the modal
   content above it and make the overlay click-through. */
.flow-modal__dialog::before,
.flow-modal__dialog::after {
  pointer-events: none;
}

.flow-modal__step,
.flow-modal__close {
  position: relative;
  z-index: 2;
}

/* No hover lift on a modal dialog */
.flow-modal__dialog:hover {
  transform: none;
}

.flow-modal__close {
  position: absolute;
  top: 10px;
  right: 14px;
  background: none;
  border: none;
  color: #787fa3;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  padding: 6px;
}

.flow-modal__close:hover {
  color: #c0caf5;
}

.flow-modal__dialog h3 {
  margin: 0 0 10px;
  font-size: 1.35rem;
  color: #c0caf5;
}

.flow-modal__lead {
  color: #a9b1d6;
  font-size: 0.95rem;
  line-height: 1.55;
  margin: 0 0 18px;
}

.flow-modal__email {
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 12px;
  border-radius: 10px;
  border: 1px solid rgba(122, 162, 247, 0.3);
  background: rgba(36, 40, 59, 0.8);
  color: #c0caf5;
  font-size: 1rem;
  outline: none;
}

.flow-modal__email:focus {
  border-color: #7aa2f7;
  box-shadow: 0 0 0 3px rgba(122, 162, 247, 0.18);
}

.flow-modal__submit {
  width: 100%;
  cursor: pointer;
  font-weight: 600;
}

.flow-modal__submit:disabled {
  opacity: 0.6;
  cursor: wait;
}

.flow-modal__error {
  color: #f7768e;
  font-size: 0.9rem;
  margin: 12px 0 0;
}

.flow-modal__fineprint {
  color: #565f89;
  font-size: 0.78rem;
  line-height: 1.5;
  margin: 16px 0 0;
}

/* Honeypot: visually gone, still in the DOM for bots */
.flow-modal__honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 480px) {
  .flow-modal__dialog {
    padding: 26px 18px 20px;
  }
}
