/* Details step shown before the builder opens (soft gate, see js/ui/gate.js). */
.gate {
  position: fixed; inset: 0; z-index: 60;
  display: grid; place-items: center; overflow-y: auto;
  padding: var(--s-5);
  background: rgba(13, 13, 12, .62);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.gate-card {
  width: min(560px, 100%);
  background: var(--ink); border: 1px solid var(--line-2); border-radius: var(--radius);
  padding: var(--s-6);
  box-shadow: var(--shadow-3);
}
.gate-logo { height: 32px; width: auto; margin-bottom: var(--s-5); mix-blend-mode: screen; }
.gate-card .display { margin-bottom: var(--s-3); }
.gate-why { color: var(--text-2); max-width: 46ch; margin-bottom: var(--s-5); }
.gate-form { display: grid; gap: var(--s-5); }
.gate-privacy { font-size: var(--fs-xs); color: var(--text-3); }
.gate-foot { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); flex-wrap: wrap; margin-top: var(--s-4); }
.gate-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.gate-form[hidden] { display: none; }
/* Emailed code step */
.gate-why strong { color: var(--text); font-weight: 600; overflow-wrap: anywhere; }
.input--code { font-size: 1.6rem; letter-spacing: .45em; text-align: center; font-variant-numeric: tabular-nums; max-width: 14ch; }
.gate-code-actions { display: flex; justify-content: space-between; gap: var(--s-3); flex-wrap: wrap; margin: 0; font-size: var(--fs-sm); }
.gate-code-actions .btn--link:disabled { opacity: .6; cursor: default; }

/* While the form is up: the app behind is inert and softened; no loader, no controls. */
.app.is-gated .stage-loader,
.app.is-gated .stage-top,
.app.is-gated .stage-bottom,
.app.is-gated .stage-grabber { display: none; }
.app:not(.is-gated) .stage-poster { display: none; }

@media (max-width: 600px) {
  .gate { padding: 0; place-items: stretch; background: rgba(13, 13, 12, .5); }
  .gate-card { width: 100%; min-height: 100%; border: 0; padding: var(--s-5) var(--s-4) calc(var(--s-6) + env(safe-area-inset-bottom)); background: rgba(13, 13, 12, .94); }
  .gate-logo { margin-bottom: var(--s-4); }
}
