/* download-gate.css — modal styling for gated downloads */
.dg-modal {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.dg-modal[hidden] { display: none; }
.dg-overlay {
  position: absolute; inset: 0;
  background: rgba(5, 3, 12, 0.78);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.dg-dialog {
  position: relative;
  background: #fff;
  color: #1a1426;
  width: 100%;
  max-width: 480px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  border-radius: 14px;
  padding: 36px 32px 32px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.5);
  font-family: 'Onest', -apple-system, BlinkMacSystemFont, sans-serif;
}
@media (max-width: 540px) {
  .dg-modal { padding: 0; align-items: stretch; }
  .dg-dialog { max-width: 100%; max-height: 100vh; border-radius: 0; padding: 32px 24px; }
}
.dg-close {
  position: absolute; top: 14px; right: 14px;
  width: 36px; height: 36px;
  background: transparent; border: 0; cursor: pointer;
  color: #5A3A96;
  border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.dg-close:hover { background: rgba(90, 58, 150, 0.08); }
.dg-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: #5A3A96; font-weight: 500;
}
.dg-title {
  font-size: 26px; font-weight: 600; letter-spacing: -0.02em;
  color: #0A0612; margin: 8px 0 6px; line-height: 1.2;
}
.dg-subtitle { color: #5a5567; font-size: 15px; line-height: 1.5; }
.dg-dialog .peach-rule {
  width: 48px; height: 2px;
  background: #FBB89A; border: 0;
  margin: 22px 0 22px;
}
.dg-form { display: flex; flex-direction: column; gap: 16px; }
.dg-field { display: flex; flex-direction: column; gap: 6px; }
.dg-field label {
  font-size: 13px; font-weight: 500; color: #1a1426;
  letter-spacing: 0.01em;
}
.dg-field label .req { color: #d46e40; margin-left: 4px; font-weight: 700; }
.dg-field input {
  font: inherit; font-size: 15px;
  padding: 12px 14px;
  border: 1.5px solid #d8d3e0;
  border-radius: 8px;
  background: #fafafa;
  color: #0A0612;
  transition: border-color 0.2s, background 0.2s;
}
.dg-field input::placeholder { color: #9a93a8; }
.dg-field input:hover { border-color: #b4abc4; }
.dg-field input:focus {
  outline: none;
  border-color: #5A3A96;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(90, 58, 150, 0.15);
}
.dg-honeypot { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }
.dg-submit {
  align-self: stretch;
  justify-content: center;
  background: #5A3A96; color: #fff;
  margin-top: 6px;
  font-size: 15px;
  padding: 14px 22px;
}
.dg-submit:hover { background: #6e4cae; transform: translateY(-1px); }
.dg-submit[disabled] { opacity: 0.55; cursor: not-allowed; transform: none; }
.dg-fineprint {
  color: #7a7388; font-size: 12.5px; line-height: 1.5;
  margin-top: 4px;
}
.dg-fineprint a { color: #5A3A96; text-decoration: underline; text-underline-offset: 2px; }
.dg-error {
  color: #a8341c; background: #fdecea; border: 1px solid #f4c7c1;
  padding: 12px 14px; border-radius: 8px; font-size: 13.5px; line-height: 1.5;
}
.dg-error[hidden] { display: none; }
.dg-success {
  color: #1a1426; background: #f3eefd; border: 1px solid #d4c4f0;
  padding: 16px 18px; border-radius: 8px; font-size: 14px; line-height: 1.55;
}
.dg-success[hidden] { display: none; }
.dg-success a { color: #5A3A96; text-decoration: underline; text-underline-offset: 2px; }
