.gate {
  min-height: 100vh;
  background:
    radial-gradient(900px 480px at 100% 0%, rgba(2, 71, 68, 0.07), transparent 55%),
    var(--cream);
}

.gate-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
  min-width: 0;
}

.gate-brand {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 56px 64px 40px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 32%),
    var(--emerald);
  color: var(--cream);
}

.gate-brand::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(220, 211, 202, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(220, 211, 202, 0.05) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 78%);
}

.gate-brand > * { position: relative; }

.gate-stamp {
  margin: 0 4px 22px;
  color: rgba(220, 211, 202, 0.72);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.gate-brand .brand {
  color: inherit;
  text-decoration: none;
  padding: 0 4px;
}

.gate-brand .brand-logo {
  width: min(248px, 100%);
}

.gate-brand-top,
.gate-desks {
  max-width: 520px;
}

.gate-lead {
  margin: 36px 4px 0;
  max-width: 16em;
  font-family: Fraunces, Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 2.6vw, 42px);
  font-weight: 560;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #fff;
}

.gate-desks { margin-top: 36px; }

.gate-desks-label {
  margin: 0 4px 8px;
  color: rgba(220, 211, 202, 0.62);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.gate-points {
  list-style: none;
  margin: 0;
  padding: 0;
}

.gate-points li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 12px 4px;
  border-top: 1px solid rgba(220, 211, 202, 0.22);
}

.gate-point-name {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

.gate-point-site {
  color: rgba(220, 211, 202, 0.72);
  font-size: 13px;
  white-space: nowrap;
}

.gate-brand .side-foot {
  margin: auto 4px 0;
  letter-spacing: 0.08em;
}

.gate-book {
  min-width: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: safe center;
  align-items: center;
  padding: 48px 56px;
  background: var(--cream);
}

.gate-sheet {
  width: 100%;
  max-width: 440px;
  min-width: 0;
  background: var(--card);
  border: 1px solid rgba(2, 71, 68, 0.12);
  border-radius: 18px;
  padding: 28px 28px 24px;
  box-shadow: 0 22px 50px rgba(2, 71, 68, 0.08);
}

.gate-sheet-new { max-width: 520px; }

.gate-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  margin-bottom: 22px;
  padding: 4px;
  border-radius: 12px;
  background: rgba(2, 71, 68, 0.06);
}

.gate-switch a {
  display: block;
  padding: 9px 10px;
  border-radius: 9px;
  color: var(--emerald);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}

.gate-switch a:hover { background: rgba(255, 255, 255, 0.55); }

.gate-switch a.is-on,
.gate-switch a.is-on:hover {
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.gate-sheet-head { margin-bottom: 4px; }

.gate-sheet .kicker { color: var(--emerald); }

.gate-sheet h1 {
  margin-bottom: 8px;
  font-size: clamp(30px, 3vw, 36px);
}

.gate-sheet .section-copy {
  max-width: 38ch;
  font-size: 15px;
  line-height: 1.5;
}

.gate-book > .flash,
.gate-sheet .flash {
  width: 100%;
  max-width: 520px;
  margin-bottom: 0;
  border: 0;
  border-radius: 12px;
  box-shadow: none;
}

.gate-book > .flash { margin-bottom: 14px; }

.gate-sheet .flash { margin: 16px 0 0; }

.gate-sheet .flash-error {
  background: rgba(0, 0, 0, 0.04);
  border-left: 3px solid var(--ink);
}

.gate .stack { gap: 14px; margin-top: 18px; }

.gate .field {
  gap: 7px;
  color: var(--emerald);
  font-size: 13px;
  font-weight: 650;
}

.gate .field input,
.gate .field select {
  min-height: 46px;
  min-width: 0;
  padding: 0 14px;
  border: 1px solid rgba(2, 71, 68, 0.18);
  border-radius: 10px;
  background-color: #f6f3ef;
  font-weight: 450;
  color: var(--ink);
}

.gate .field input::placeholder { color: rgba(2, 71, 68, 0.42); }

.gate .field select {
  appearance: none;
  padding-right: 36px;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--emerald) 50%),
    linear-gradient(135deg, var(--emerald) 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(50% - 2px), calc(100% - 12px) calc(50% - 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.gate .field input:hover,
.gate .field select:hover { border-color: rgba(2, 71, 68, 0.4); }

.gate .field input:focus,
.gate .field select:focus {
  outline: none;
  border-color: var(--emerald);
  background-color: #fff;
  box-shadow: 0 0 0 3px rgba(2, 71, 68, 0.16);
}

.gate-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.gate .form-actions { margin-top: 18px; }

.gate .form-actions .btn {
  width: 100%;
  min-height: 48px;
  border-radius: 10px;
  font-size: 15px;
}

.google-continue { margin-top: 12px; }

.google-or {
  margin: 0 0 12px;
  text-align: center;
  color: rgba(2, 71, 68, 0.55);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.google-continue .btn {
  width: 100%;
  min-height: 48px;
  border-radius: 10px;
  background: #fff;
  font-size: 15px;
}

.google-continue .btn:disabled { opacity: 0.65; }

.google-note {
  margin: 10px 0 0;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.4;
  text-align: center;
}

.gate .hint {
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 14px;
}

.gate .hint a { font-weight: 650; text-underline-offset: 3px; }

@media (max-width: 960px) {
  .gate-wrap { grid-template-columns: 1fr; }
  .gate-brand {
    position: static;
    height: auto;
    gap: 0;
    padding: 22px 20px 18px;
  }
  .gate-brand::before { display: none; }
  .gate-stamp { margin-bottom: 14px; }
  .gate-lead {
    margin-top: 16px;
    max-width: 42ch;
    font-family: Outfit, "Segoe UI", sans-serif;
    font-size: 15px;
    font-weight: 450;
    letter-spacing: 0;
    line-height: 1.45;
  }
  .gate-desks,
  .gate-brand .side-foot { display: none; }
  .gate-book {
    min-height: 0;
    padding: 28px 20px 40px;
    justify-content: flex-start;
    background: var(--cream);
  }
  .gate-sheet {
    max-width: 520px;
    background: var(--card);
    border: 1px solid rgba(2, 71, 68, 0.12);
    border-radius: 18px;
    padding: 18px 16px 16px;
    box-shadow: 0 22px 50px rgba(2, 71, 68, 0.08);
  }
  .gate-switch a { padding: 9px 6px; font-size: 13.5px; }
  .gate-pair { grid-template-columns: 1fr; }
}
