/* ============================================================
   Relativity6 — Email gate modal
   Visual styles for the lightweight email capture overlay.
   ============================================================ */

.r6-gate {
  position: fixed; inset: 0;
  display: flex; align-items: center; justify-content: center;
  z-index: 10000;
  opacity: 0; pointer-events: none;
  transition: opacity 220ms cubic-bezier(0.2, 0.7, 0.2, 1);
  font-family: 'Onest', -apple-system, BlinkMacSystemFont, sans-serif;
}
.r6-gate.open {
  opacity: 1; pointer-events: auto;
}

.r6-gate-backdrop {
  position: absolute; inset: 0;
  background: rgba(7, 13, 25, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.r6-gate-card {
  position: relative;
  width: min(440px, calc(100vw - 32px));
  background: #fff;
  border-radius: 20px;
  padding: 36px 32px 28px;
  box-shadow:
    0 24px 80px rgba(7, 13, 25, 0.32),
    0 2px 4px rgba(7, 13, 25, 0.08);
  transform: translateY(12px) scale(0.98);
  opacity: 0;
  transition:
    transform 280ms cubic-bezier(0.2, 0.7, 0.2, 1),
    opacity 220ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
.r6-gate.open .r6-gate-card {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.r6-gate-close {
  position: absolute; top: 14px; right: 14px;
  width: 30px; height: 30px;
  border-radius: 8px;
  border: 1px solid #E5E8EF;
  background: transparent;
  color: #6C7694;
  font-size: 20px; line-height: 1;
  cursor: pointer;
  display: grid; place-items: center;
  transition: background 150ms, color 150ms;
  font-family: inherit;
}
.r6-gate-close:hover {
  background: #F7F9FD;
  color: #111E45;
}

.r6-gate-kicker {
  font-family: 'SUSE Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #1C7AFE;
  font-weight: 600;
  margin-bottom: 12px;
  display: inline-flex; align-items: center; gap: 6px;
}
.r6-gate-kicker::before {
  content: '';
  width: 6px; height: 6px; border-radius: 50%;
  background: #1FB879;
  box-shadow: 0 0 0 3px rgba(31, 184, 121, 0.2);
}

.r6-gate-title {
  font-family: 'Onest', sans-serif;
  font-size: 24px;
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: -0.022em;
  color: #111E45;
  margin: 0 0 10px;
}

.r6-gate-blurb {
  font-size: 14.5px;
  line-height: 1.55;
  color: #525D7E;
  margin: 0 0 22px;
}

.r6-gate-form {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.r6-gate-input {
  flex: 1;
  padding: 13px 14px;
  border: 1px solid #E5E8EF;
  border-radius: 10px;
  font-family: inherit;
  font-size: 14.5px;
  color: #111E45;
  outline: none;
  transition: border-color 150ms, box-shadow 150ms;
}
.r6-gate-input::placeholder { color: #9AA1B4; }
.r6-gate-input:focus {
  border-color: #1C7AFE;
  box-shadow: 0 0 0 3px rgba(28, 122, 254, 0.12);
}

.r6-gate-submit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  background: #111E45;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(17, 30, 69, 0.18);
  transition: background 150ms, transform 100ms, box-shadow 150ms;
}
.r6-gate-submit-icon { width: 15px; height: 15px; display: block; }
.r6-gate-submit:hover {
  background: #0A1636;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(17, 30, 69, 0.24);
}
.r6-gate-submit:active {
  transform: translateY(0);
}

.r6-gate-error {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
  color: #dc3e3e;
}

.r6-gate-foot {
  font-family: 'SUSE Mono', ui-monospace, monospace;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6C7694;
  text-align: center;
}

@media (max-width: 480px) {
  .r6-gate-card { padding: 28px 22px 22px; border-radius: 16px; }
  .r6-gate-title { font-size: 21px; }
  .r6-gate-form { flex-direction: column; }
  .r6-gate-submit { width: 100%; }
}
