/* Waitlist: sticky CTA, modal, inline form */

/* ── Sticky CTA button (bottom-right, every page) ─────────────────────── */
.wl-sticky-cta {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 900;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: #00e5c8;
  color: #0a0e14;
  font-family: var(--mono-font, 'IBM Plex Mono', monospace);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  box-shadow: 0 4px 24px rgba(0, 229, 200, 0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.wl-sticky-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 32px rgba(0, 229, 200, 0.38);
}
.wl-sticky-cta svg {
  flex-shrink: 0;
}

/* ── Modal overlay ─────────────────────────────────────────────────────── */
.wl-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.wl-modal-overlay.is-open {
  display: flex;
}

.wl-modal {
  background: #0d1117;
  border: 1px solid #1e2d3d;
  border-top: 3px solid #00e5c8;
  border-radius: 4px;
  padding: 36px 32px 32px;
  max-width: 520px;
  width: 100%;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.wl-modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  color: #6e7681;
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
  transition: color 0.12s;
}
.wl-modal-close:hover { color: #e6edf3; }

.wl-modal-eyebrow {
  font-family: var(--mono-font, 'IBM Plex Mono', monospace);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: #00e5c8;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.wl-modal-title {
  color: #e6edf3;
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 8px;
}

.wl-modal-sub {
  color: #8b949e;
  font-size: 13px;
  line-height: 1.65;
  margin: 0 0 24px;
}

/* ── Shared form styles (modal + inline) ──────────────────────────────── */
.wl-field {
  margin-bottom: 16px;
}

.wl-field label {
  display: block;
  font-family: var(--mono-font, 'IBM Plex Mono', monospace);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: #8b949e;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.wl-field input,
.wl-field select,
.wl-field textarea {
  width: 100%;
  box-sizing: border-box;
  background: #0a0e14;
  border: 1px solid #1e2d3d;
  border-radius: 3px;
  padding: 10px 12px;
  color: #e6edf3;
  font-family: var(--mono-font, 'IBM Plex Mono', monospace);
  font-size: 13px;
  transition: border-color 0.15s;
  outline: none;
  -webkit-appearance: none;
}

.wl-field input:focus,
.wl-field select:focus,
.wl-field textarea:focus {
  border-color: #00e5c8;
  box-shadow: 0 0 0 2px rgba(0, 229, 200, 0.1);
}

.wl-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238b949e' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}

.wl-field textarea {
  resize: vertical;
  min-height: 80px;
}

.wl-field .wl-req { color: #00e5c8; }

.wl-submit-btn {
  width: 100%;
  padding: 13px 20px;
  background: #00e5c8;
  color: #0a0e14;
  font-family: var(--mono-font, 'IBM Plex Mono', monospace);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.12s;
  margin-top: 8px;
}
.wl-submit-btn:hover:not(:disabled) { opacity: 0.9; transform: translateY(-1px); }
.wl-submit-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.wl-form-error {
  display: none;
  color: #f85149;
  font-family: var(--mono-font, 'IBM Plex Mono', monospace);
  font-size: 12px;
  margin-top: 10px;
}

.wl-form-success {
  display: none;
  text-align: center;
  padding: 24px 0 8px;
}
.wl-success-icon {
  font-size: 36px;
  margin-bottom: 12px;
  display: block;
}
.wl-success-title {
  color: #e6edf3;
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 8px;
}
.wl-success-sub {
  color: #8b949e;
  font-size: 13px;
  line-height: 1.65;
  margin: 0;
}

/* ── Inline section (bottom of /workflows) ────────────────────────────── */
.wl-inline-section {
  background: #0d1117;
  border: 1px solid #1e2d3d;
  border-left: 3px solid #00e5c8;
  border-radius: 4px;
  padding: 40px 36px;
  margin: 48px 0 0;
}

.wl-inline-eyebrow {
  font-family: var(--mono-font, 'IBM Plex Mono', monospace);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: #00e5c8;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.wl-inline-title {
  color: #e6edf3;
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 8px;
}

.wl-inline-sub {
  color: #8b949e;
  font-size: 14px;
  line-height: 1.65;
  margin: 0 0 28px;
}

.wl-inline-form .wl-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 600px) {
  .wl-sticky-cta { bottom: 16px; right: 16px; padding: 10px 14px; font-size: 11px; }
  .wl-modal { padding: 28px 20px 24px; }
  .wl-inline-section { padding: 28px 20px; }
  .wl-inline-form .wl-row-2 { grid-template-columns: 1fr; }
}
