/* ─────────────────────────────────────────────────────────────────────────────
 * kamba-waitlist-* — shared CSS for pre-MVP waitlist UI
 *
 * Used by three components, prefixed to avoid collisions:
 *   - waitlist-modal.js (homepage modal on 8 info pages)
 *   - start-popup.js (popup at /start entry)
 *   - checkout-gate.js (in-flow gate at Step 7)
 *
 * Branding: Kamba sage (#8BA888), sage-dark (#4A6741), cream bg.
 * Mobile responsive via max-width + max-height + scroll.
 * ─────────────────────────────────────────────────────────────────────────── */

.kamba-waitlist-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(45, 35, 25, 0.55);
  padding: 16px;
  animation: kamba-waitlist-fade-in 220ms ease-out;
}

.kamba-waitlist-overlay.kamba-waitlist-open { display: flex; }

@keyframes kamba-waitlist-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.kamba-waitlist-card {
  background: #FAF6EE;
  color: #3D2B1F;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  max-width: 480px;
  width: 100%;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  padding: 32px 28px 26px;
  position: relative;
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  animation: kamba-waitlist-slide-up 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes kamba-waitlist-slide-up {
  from { transform: translateY(12px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.kamba-waitlist-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: transparent;
  border: 0;
  font-size: 22px;
  line-height: 1;
  color: #9B8E82;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 8px;
  transition: color 150ms, background 150ms;
}

.kamba-waitlist-close:hover {
  color: #3D2B1F;
  background: rgba(0, 0, 0, 0.04);
}

.kamba-waitlist-title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.5rem;
  line-height: 1.2;
  margin: 0 0 14px;
  color: #3D2B1F;
  padding-right: 24px;
}

.kamba-waitlist-body {
  font-size: 0.95rem;
  line-height: 1.55;
  margin: 0 0 14px;
  color: #5A4A3C;
}

.kamba-waitlist-body strong { color: #3D2B1F; }

.kamba-waitlist-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 18px 0 12px;
}

.kamba-waitlist-input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid rgba(155, 142, 130, 0.4);
  border-radius: 10px;
  font-size: 1rem;
  background: #FFF;
  color: #3D2B1F;
  font-family: inherit;
  transition: border-color 150ms, box-shadow 150ms;
  box-sizing: border-box;
}

.kamba-waitlist-input:focus {
  outline: none;
  border-color: #8BA888;
  box-shadow: 0 0 0 3px rgba(139, 168, 136, 0.18);
}

.kamba-waitlist-input[disabled] {
  background: #F5F0E5;
  cursor: not-allowed;
}

.kamba-waitlist-submit {
  width: 100%;
  padding: 12px 16px;
  background: #8BA888;
  color: #FFF;
  border: 0;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background 150ms;
}

.kamba-waitlist-submit:hover { background: #4A6741; }

.kamba-waitlist-submit[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

.kamba-waitlist-secondary {
  display: inline-block;
  width: 100%;
  text-align: center;
  padding: 11px 16px;
  background: transparent;
  color: #4A6741;
  border: 1.5px solid rgba(74, 103, 65, 0.3);
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  box-sizing: border-box;
  transition: border-color 150ms, background 150ms;
}

.kamba-waitlist-secondary:hover {
  border-color: #4A6741;
  background: rgba(139, 168, 136, 0.08);
}

.kamba-waitlist-privacy {
  font-size: 0.78rem;
  line-height: 1.45;
  color: #8A7E72;
  margin: 4px 0 14px;
}

.kamba-waitlist-dismiss {
  display: block;
  text-align: center;
  font-size: 0.85rem;
  color: #9B8E82;
  text-decoration: underline;
  margin-top: 6px;
  cursor: pointer;
  background: transparent;
  border: 0;
  width: 100%;
  font-family: inherit;
  padding: 4px;
}

.kamba-waitlist-dismiss:hover { color: #3D2B1F; }

.kamba-waitlist-confirm {
  background: rgba(139, 168, 136, 0.12);
  border: 1px solid rgba(139, 168, 136, 0.4);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 0.9rem;
  color: #4A6741;
  margin: 14px 0 8px;
}

.kamba-waitlist-error {
  background: rgba(192, 57, 43, 0.08);
  border: 1px solid rgba(192, 57, 43, 0.25);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.85rem;
  color: #C0392B;
  margin: 10px 0 4px;
}

/* ── Inline gate (Step 7) — not a modal, embedded in the page ─────────────── */
.kamba-waitlist-gate {
  background: #FAF6EE;
  border: 1.5px solid rgba(155, 142, 130, 0.25);
  border-radius: 14px;
  padding: 24px 22px;
  margin: 16px 0;
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  color: #3D2B1F;
}

.kamba-waitlist-gate .kamba-waitlist-title {
  font-size: 1.3rem;
  margin-bottom: 10px;
  padding-right: 0;
}

.kamba-waitlist-gate-signin {
  display: block;
  width: 100%;
  padding: 14px 18px;
  background: #8BA888;
  color: #FFF;
  border: 0;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  font-family: inherit;
  margin: 14px 0;
  box-sizing: border-box;
  transition: background 150ms;
}

.kamba-waitlist-gate-signin:hover { background: #4A6741; }

.kamba-waitlist-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0 12px;
  font-size: 0.8rem;
  color: #9B8E82;
}

.kamba-waitlist-divider::before,
.kamba-waitlist-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(155, 142, 130, 0.25);
}

/* ── Mobile ───────────────────────────────────────────────────────────────── */
@media (max-width: 480px) {
  .kamba-waitlist-card { padding: 26px 20px 22px; }
  .kamba-waitlist-title { font-size: 1.3rem; }
  .kamba-waitlist-body { font-size: 0.9rem; }
}
