html.afriloop-locked body {
  overflow: hidden;
}

html.afriloop-locked body > :not(.afriloop-gate) {
  display: none !important;
}

.afriloop-gate {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background:
    radial-gradient(circle at 80% 20%, rgba(91, 62, 165, 0.12), transparent 45%),
    radial-gradient(circle at 20% 80%, rgba(201, 168, 76, 0.1), transparent 40%),
    #fafafa;
  font-family: "Inter", system-ui, sans-serif;
}

html.afriloop-locked .afriloop-gate {
  display: flex;
}

.afriloop-gate-card {
  width: min(24rem, 100%);
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  padding: 1.75rem 1.5rem;
  box-shadow: 0 20px 50px rgba(17, 24, 39, 0.08);
}

/* Same Afri∞p wordmark as marketing site nav */
.afriloop-gate-logo {
  font-family: "DM Sans", system-ui, sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.03em;
  color: #111827;
  margin: 0 0 0.5rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  -webkit-font-smoothing: antialiased;
}

.afriloop-gate-logo .logo-word {
  display: inline-flex;
  align-items: baseline;
  line-height: 1;
  gap: 0;
}

.afriloop-gate-logo .logo-text {
  color: #111827;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.afriloop-gate-logo .logo-l {
  letter-spacing: -0.07em;
  margin-right: 0.01em;
}

.afriloop-gate-logo .logo-infinity + .logo-text {
  margin-left: -0.04em;
}

.afriloop-gate-logo .logo-infinity {
  display: inline-block;
  color: #5b3ea5;
  font-family: "SF Pro Text", "SF Pro Display", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.48em;
  font-weight: 700;
  line-height: 1;
  margin: 0 -0.02em 0 0.01em;
  padding: 0;
  transform: translateY(0.05em);
  letter-spacing: 0;
  vertical-align: baseline;
  flex-shrink: 0;
}

.afriloop-gate-title {
  margin: 0 0 0.5rem;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #111827;
}

.afriloop-gate-lead {
  margin: 0 0 1.25rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #6b7280;
}

.afriloop-gate-label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #374151;
}

.afriloop-gate-input {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.65rem;
  font-size: 16px;
  line-height: 1.2;
  color: #111827;
  background: #fff;
  -webkit-appearance: none;
}

.afriloop-gate-input:focus {
  outline: none;
  border-color: #5b3ea5;
  box-shadow: 0 0 0 3px rgba(91, 62, 165, 0.15);
}

.afriloop-gate-row {
  margin-top: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.afriloop-gate-row input[type="checkbox"] {
  width: 1.1rem;
  height: 1.1rem;
  accent-color: #5b3ea5;
}

.afriloop-gate-row label {
  font-size: 0.9rem;
  color: #4b5563;
}

.afriloop-gate-btn {
  margin-top: 1.1rem;
  width: 100%;
  min-height: 3rem;
  border: none;
  border-radius: 0.65rem;
  background: #5b3ea5;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  touch-action: manipulation;
}

.afriloop-gate-btn:active {
  background: #4a3290;
}

.afriloop-gate-error {
  margin: 0.75rem 0 0;
  min-height: 1.2rem;
  font-size: 0.85rem;
  color: #b91c1c;
}

.afriloop-gate-note {
  margin: 1rem 0 0;
  font-size: 0.8rem;
  line-height: 1.45;
  color: #9ca3af;
  text-align: center;
}

.afriloop-signout {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: #9ca3af;
  text-decoration: none;
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
  font-family: inherit;
}

.afriloop-signout:hover {
  color: #5b3ea5;
}