/* Studio access gate (web/js/access/gate.js). Same language as V11: near-black ground, hairlines, light display
   type, a white primary button, cyan only as a signal. */

html.gate-open, html.gate-open body { overflow: hidden; }

.gate {
  position: fixed; inset: 0; z-index: 10000;
  background: #040506;
  color: #f3f5f7;
  overflow-y: auto;
  display: flex; align-items: center; justify-content: center;
  padding: 32px 16px;
  font-family: Inter, system-ui, sans-serif;
}

.gate-inner {
  width: 100%; max-width: 980px;
  display: grid; grid-template-columns: 1.1fr 1fr;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: #08090b;
}

.gate-pitch { padding: 48px 44px; border-right: 1px solid rgba(255, 255, 255, 0.075); display: flex; flex-direction: column; gap: 22px; }
.gate-brand { display: flex; align-items: center; gap: 12px; }
.gate-pitch, .gate-card, .gate-form, .gate-field { min-width: 0; }
.gate-brand .wordmark { display: flex; align-items: baseline; gap: 10px; }
.gate-brand .wordmark b { font-size: 20px; letter-spacing: 0.2em; }
.gate-brand .wordmark span { font-size: 11px; letter-spacing: 0.24em; }
.gate-brand .wordmark span { color: #8d95a1; }
.gate-brand img { flex: none; }
.gate-h { font-family: Jost, Inter, sans-serif; font-weight: 300; font-size: clamp(28px, 3.4vw, 40px); line-height: 1.08; letter-spacing: -0.015em; margin: 8px 0 0; }
.gate-list { margin: 0; padding: 0; list-style: none; counter-reset: g; display: grid; gap: 12px; }
.gate-list li { counter-increment: g; display: grid; grid-template-columns: 30px 1fr; color: #c6ccd4; font-size: 15px; line-height: 1.45; }
.gate-list li::before { content: counter(g, decimal-leading-zero); font-family: 'JetBrains Mono', monospace; font-size: 12px; color: #3cccfc; padding-top: 2px; }
.gate-note { margin: auto 0 0; color: #8d95a1; font-size: 13px; }

.gate-card { padding: 44px 40px; }
.gate-form { display: grid; gap: 16px; }
.gate-title { font-family: Jost, Inter, sans-serif; font-weight: 400; font-size: 22px; margin: 0; }
.gate-sub { margin: -8px 0 4px; color: #8d95a1; font-size: 14px; }
.gate-field { display: grid; gap: 6px; }
.gate-label { font-size: 13px; color: #c6ccd4; }
.gate-field input {
  width: 100%; box-sizing: border-box; height: 44px; padding: 0 12px;
  background: #0c0e11; color: #f3f5f7;
  border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 8px;
  font: inherit; font-size: 15px;
}
.gate-field input:focus { outline: none; border-color: #3cccfc; }
.gate-consent { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; font-size: 13px; color: #8d95a1; line-height: 1.45; }
.gate-consent input { width: 16px; height: 16px; margin: 2px 0 0; accent-color: #f3f5f7; }
.gate-consent a { color: #c6ccd4; }
.gate-err { color: #ff6b6b; font-size: 12.5px; min-height: 0; }
.gate-err:empty { display: none; }
.gate-go {
  height: 46px; margin-top: 4px;
  background: #f3f5f7; color: #040506;
  border: 0; border-radius: 8px;
  font: inherit; font-size: 15px; font-weight: 600; cursor: pointer;
}
.gate-go:disabled { opacity: 0.6; cursor: progress; }
.gate-go:focus-visible { outline: 2px solid #3cccfc; outline-offset: 2px; }
.gate-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 760px) {
  .gate { align-items: flex-start; }
  .gate-inner { grid-template-columns: 1fr; }
  .gate-pitch { border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.075); padding: 28px 22px; gap: 16px; }
  .gate-list, .gate-note { display: none; }
  .gate-card { padding: 26px 22px 30px; }
}
