/*
 * Download gate modal — invite-code closed beta (Mac + Windows).
 * The shared subpage shell (subpage.njk) includes landing/download-modals.njk
 * but not landing-hero.css, where the landing's own copy of these rules lives.
 * This file carries the gate styling for every subpage so the overlay stays
 * hidden until a [data-dl-trigger] opens it. Same warm-bone values as the
 * landing's copy; palette + motion come from site-tokens.css.
 */

.dl-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.62);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur-fast) var(--ease-standard),
    visibility var(--dur-fast) var(--ease-standard);
}
.dl-overlay.open {
  opacity: 1;
  visibility: visible;
}
.dl-card {
  width: 100%;
  max-width: 420px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 30px;
  color: var(--ink);
  box-shadow: 0 32px 80px -32px rgba(40, 36, 28, 0.22);
  transform: translateY(8px) scale(0.98);
  transition: transform var(--dur-elegant) var(--ease-entrance);
}
.dl-overlay.open .dl-card {
  transform: translateY(0) scale(1);
}
.dl-card h3 {
  font-weight: 600;
  font-size: 23px;
  letter-spacing: -0.02em;
  color: var(--ink-strong);
  margin-bottom: 8px;
}
.dl-card > p {
  font-size: 14.5px;
  color: var(--ink-muted);
  line-height: 1.5;
  margin-bottom: 18px;
}
.dl-input {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border-radius: 12px;
  background: var(--ground);
  border: 1px solid var(--line-strong);
  color: var(--ink);
  font-size: 16px;
  font-family: var(--sans);
  margin-bottom: 14px;
  transition: border-color var(--dur-fast) var(--ease-standard),
    box-shadow var(--dur-fast) var(--ease-standard);
}
.dl-input::placeholder {
  color: var(--ink-subtle);
}
.dl-input:focus {
  outline: none;
  border-color: var(--action);
}
.dl-input.valid {
  border-color: var(--action);
  box-shadow: 0 0 0 3px rgba(40, 36, 28, 0.14);
}
.dl-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.dl-actions .btn {
  width: 100%;
}
.btn-disabled {
  opacity: 0.4;
  pointer-events: none;
}
.dl-divider {
  text-align: center;
  font-size: 12.5px;
  color: var(--ink-subtle);
  margin: 4px 0;
}
.dl-fineprint {
  font-size: 11px;
  color: var(--ink-subtle);
  line-height: 1.5;
  margin: 8px 0 0;
  text-align: center;
}
.dl-fineprint a {
  color: var(--link);
  text-decoration: underline;
}
.dl-skip {
  margin-top: 18px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.dl-skip summary {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}
.dl-skip summary::-webkit-details-marker {
  display: none;
}
.dl-skip-body {
  margin-top: 10px;
}
.dl-skip-body p {
  font-size: 13px;
  color: var(--ink-muted);
  line-height: 1.5;
  margin-bottom: 8px;
}
.dl-skip-body a {
  font-size: 13px;
  color: var(--link);
  font-weight: 600;
  text-decoration: underline;
}
