/* Research access gate — white + green tech style */

.promo-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(6, 53, 40, 0.55);
  backdrop-filter: blur(4px);
}

.promo-backdrop[hidden] {
  display: none;
}

.promo-modal.gate-modal {
  position: relative;
  width: min(460px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  padding: 28px 24px 22px;
  border: 1px solid #d5ebe2;
  border-radius: 18px;
  background:
    radial-gradient(ellipse 80% 40% at 50% 0%, rgba(0, 168, 107, 0.1), transparent 55%),
    #fff;
  box-shadow: 0 24px 60px rgba(6, 53, 40, 0.22);
  text-align: center;
}

.gate-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.gate-brand img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  box-shadow: 0 0 0 1px rgba(0, 168, 107, 0.25), 0 8px 18px rgba(0, 168, 107, 0.16);
}

.gate-brand strong {
  display: block;
  font-family: "Space Grotesk", "IBM Plex Sans", system-ui, sans-serif;
  font-size: 1.05rem;
  color: #063528;
  text-align: left;
}

.gate-brand small {
  display: block;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  color: #5a746b;
  text-align: left;
}

.gate-icon {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin: 0 auto 14px;
  border: 1px solid rgba(0, 168, 107, 0.28);
  border-radius: 18px;
  background: #e8f8f1;
  color: #008556;
}

.gate-icon svg {
  width: 40px;
  height: 40px;
}

.gate-modal h2 {
  margin: 0 0 14px;
  font-family: "Space Grotesk", "IBM Plex Sans", system-ui, sans-serif;
  font-size: 1.45rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: #063528;
}

.gate-warning {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  align-items: start;
  margin-bottom: 16px;
  padding: 12px 14px;
  border: 1px solid rgba(0, 168, 107, 0.28);
  border-radius: 12px;
  background: #eef9f3;
  text-align: left;
}

.gate-warning-icon {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-top: 2px;
  border-radius: 999px;
  background: #008556;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 800;
  line-height: 1;
}

.gate-warning div {
  display: grid;
  gap: 4px;
}

.gate-warning strong {
  color: #008556;
  font-size: 0.92rem;
}

.gate-warning span {
  color: #3d5c50;
  font-size: 0.86rem;
  line-height: 1.45;
}

.gate-lead {
  margin: 0 0 12px;
  color: #5a746b;
  font-size: 0.9rem;
  text-align: left;
}

.gate-check {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: start;
  margin-bottom: 10px;
  padding: 12px;
  border: 1px solid #d5ebe2;
  border-radius: 12px;
  background: #fff;
  color: #0c1f1a;
  font-size: 0.9rem;
  line-height: 1.45;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.gate-check:hover {
  border-color: rgba(0, 168, 107, 0.45);
  background: #f7fcf9;
}

.gate-check input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: #00a86b;
  cursor: pointer;
}

.gate-check b {
  color: #008556;
  font-weight: 700;
}

.gate-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  margin: 12px 0 14px;
  padding: 0 12px;
  border: 1px solid #d5ebe2;
  border-radius: 10px;
  background: #f4faf7;
  color: #5a746b;
  font-size: 0.85rem;
}

.gate-status.is-ready {
  border-color: rgba(0, 168, 107, 0.35);
  background: #e8f8f1;
  color: #008556;
  font-weight: 700;
}

.gate-actions {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 10px;
  margin-bottom: 14px;
}

.gate-exit,
.gate-continue {
  min-height: 46px;
  border-radius: 999px;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, opacity 0.15s;
}

.gate-exit {
  border: 1px solid #008556;
  background: #fff;
  color: #008556;
}

.gate-exit:hover {
  background: #e8f8f1;
}

.gate-continue {
  border: 0;
  background: linear-gradient(135deg, #00b877, #008556);
  color: #fff;
  box-shadow: 0 8px 20px rgba(0, 168, 107, 0.25);
}

.gate-continue:hover:not(:disabled) {
  background: #063528;
}

.gate-continue:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

.gate-legal {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin: 0;
  color: #7a9188;
  font-size: 0.74rem;
  line-height: 1.5;
  text-align: left;
}

.gate-legal svg {
  flex: 0 0 auto;
  margin-top: 2px;
  color: #008556;
}

.gate-legal a {
  color: #008556;
  font-weight: 700;
  text-decoration: underline;
}

@media (max-width: 520px) {
  .gate-actions {
    grid-template-columns: 1fr;
  }

  .gate-modal h2 {
    font-size: 1.25rem;
  }
}
