/* ---------- email gate modal ---------- */

.gate-modal {
  position: fixed;
  inset: 0;
  background: rgba(5, 7, 10, 0.78);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 20px;
}

.gate-modal.open { display: flex; }

.gate-box {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 34px 30px 30px;
  max-width: 440px;
  width: 100%;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.gate-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  color: var(--text-faint);
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
}
.gate-close:hover { color: var(--text); }

.gate-box h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.45rem;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.gate-box h3 .gate-filename { color: var(--gold-soft); }

.gate-sub {
  margin-bottom: 18px;
  font-size: 14.5px;
  color: var(--text-dim);
  line-height: 1.55;
}

.gate-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--cream-2);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
}
.gate-icon svg { width: 24px; height: 24px; }

.gate-fine {
  margin-top: 12px;
  font-size: 12px;
  color: var(--text-faint);
  text-align: center;
  line-height: 1.5;
}

/* ---------- checkout modal (Billplz) ---------- */

.checkout-box { max-width: 460px; text-align: center; }

.checkout-kicker {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}

.checkout-box .gate-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--green-dark);
  margin-bottom: 16px;
}

.checkout-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
  margin-bottom: 16px;
  padding: 12px 18px;
  background: var(--cream-2);
  border-radius: 14px;
}
.checkout-price-amt {
  font-family: var(--display);
  font-weight: 800;
  font-size: 2rem;
  color: var(--green);
}
.checkout-price-once {
  font-size: 13px;
  color: var(--text-dim);
}

.checkout-benefits {
  list-style: none;
  margin: 0 0 18px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.checkout-benefits li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14.5px;
  color: var(--text-dim);
}
.checkout-benefits li svg {
  width: 16px;
  height: 16px;
  color: var(--green);
  flex-shrink: 0;
}

.checkout-submit { width: 100%; justify-content: center; }

.checkout-trust {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 14px;
  font-size: 12.5px;
  color: var(--text-faint);
}
.checkout-trust span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.checkout-trust svg {
  width: 13px;
  height: 13px;
  color: var(--green);
}

.gate-form { display: flex; flex-direction: column; gap: 12px; }

.gate-form input[type="email"] {
  background: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  padding: 13px 14px;
  outline: none;
  width: 100%;
}
.gate-form input[type="email"]:focus { border-color: var(--gold); }

.gate-form .gate-submit { justify-content: center; width: 100%; }

.gate-download { display: inline-block; }

.gate-success-msg { color: var(--green) !important; }

@media (prefers-reduced-motion: reduce) {
  .gate-modal { backdrop-filter: none; }
}
