/* Waby Ultra-Minimalist Auth Modal (Google-First + Progressive Email) */

.waby-auth-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}

.waby-auth-modal[hidden] {
  display: none !important;
}

.waby-auth-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: wabyFadeIn 0.16s ease-out;
}

.waby-auth-dialog {
  position: relative;
  z-index: 1001;
  width: 100%;
  max-width: 390px;
  margin: auto;
  animation: wabyScaleIn 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.waby-auth-card {
  position: relative;
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: 0 16px 40px -12px rgba(15, 23, 42, 0.14), 0 0 0 1px rgba(0, 0, 0, 0.03);
  padding: 32px 28px 26px;
  box-sizing: border-box;
  text-align: center;
}

/* Close Button */
.waby-auth-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  border: none;
  background: transparent;
  color: #94a3b8;
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.waby-auth-close-btn:hover {
  color: #0f172a;
  background-color: #f1f5f9;
}

.waby-auth-close-btn:focus-visible {
  outline: 2px solid #178c7d;
  outline-offset: 1px;
}

/* Brand Logo */
.waby-auth-brand {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 12px;
}

.waby-auth-brand img {
  width: 30px;
  height: 30px;
  display: block;
}

/* Modal Title */
.waby-auth-title {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  font-size: 21px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 20px;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

/* Alerts */
.waby-auth-alert {
  padding: 8px 12px;
  border-radius: 8px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 12.5px;
  line-height: 1.4;
  margin-bottom: 14px;
  text-align: left;
}

.waby-auth-alert[hidden] {
  display: none !important;
}

.waby-auth-alert-error {
  background: #fef2f2;
  border: 1px solid #fee2e2;
  color: #b91c1c;
}

.waby-auth-alert-success {
  background: #f0fdf4;
  border: 1px solid #dcfce7;
  color: #15803d;
}

/* Google-First View */
.waby-view-google {
  display: flex;
  flex-direction: column;
  animation: wabyFadeIn 0.16s ease-out;
}

.waby-view-google[hidden] {
  display: none !important;
}

.waby-google-btn {
  width: 100%;
  height: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  cursor: pointer;
  transition: all 0.15s ease;
  padding: 0 16px;
  box-sizing: border-box;
}

.waby-google-btn:hover:not(:disabled) {
  background: #f8fafc;
  border-color: #cbd5e1;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
}

.waby-google-btn:active:not(:disabled) {
  transform: scale(0.99);
}

.waby-google-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.waby-google-btn:focus-visible {
  outline: 2px solid #178c7d;
  outline-offset: 1px;
}

.waby-google-icon {
  flex-shrink: 0;
}

.waby-toggle-email-btn {
  width: 100%;
  margin-top: 10px;
  background: transparent;
  border: none;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #64748b;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 8px;
  text-align: center;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.waby-toggle-email-btn:hover {
  color: #0f172a;
  background-color: #f8fafc;
}

.waby-toggle-email-btn:focus-visible {
  outline: 2px solid #178c7d;
  outline-offset: 1px;
}

/* Progressive Email View */
.waby-view-email {
  display: flex;
  flex-direction: column;
  animation: wabyFadeIn 0.18s ease-out;
}

.waby-view-email[hidden] {
  display: none !important;
}

.waby-auth-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.waby-form-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
}

.waby-form-label {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: #334155;
}

.waby-form-input {
  width: 100%;
  height: 40px;
  padding: 8px 12px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 13.5px;
  color: #0f172a;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 9px;
  box-sizing: border-box;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.waby-form-input::placeholder {
  color: #94a3b8;
}

.waby-form-input:focus {
  outline: none;
  border-color: #178c7d;
  box-shadow: 0 0 0 3px rgba(23, 140, 125, 0.14);
}

.waby-auth-submit-btn {
  width: 100%;
  height: 42px;
  min-height: 42px;
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  background: #178c7d;
  border: 1px solid #14796c;
  border-radius: 9px;
  box-shadow: 0 1px 2px rgba(23, 140, 125, 0.2);
  cursor: pointer;
  transition: all 0.15s ease;
  box-sizing: border-box;
}

.waby-auth-submit-btn:hover:not(:disabled) {
  background: #127064;
  border-color: #0f5c52;
}

.waby-auth-submit-btn:active:not(:disabled) {
  transform: scale(0.99);
}

.waby-auth-submit-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.waby-auth-submit-btn:focus-visible {
  outline: 2px solid #178c7d;
  outline-offset: 2px;
}

/* Email Footer */
.waby-email-footer {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #f1f5f9;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.waby-back-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: #64748b;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.waby-back-link:hover {
  color: #0f172a;
  background-color: #f8fafc;
}

.waby-back-link:focus-visible {
  outline: 2px solid #178c7d;
  outline-offset: 1px;
}

.waby-auth-switch {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 12px;
  color: #64748b;
}

.waby-switch-btn {
  background: none;
  border: none;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: #178c7d;
  cursor: pointer;
  padding: 0;
  transition: color 0.15s ease;
}

.waby-switch-btn:hover {
  color: #127064;
  text-decoration: underline;
}

.waby-switch-btn:focus-visible {
  outline: 2px solid #178c7d;
  outline-offset: 1px;
}

/* Spinners */
.waby-btn-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: wabySpin 0.65s linear infinite;
  display: inline-block;
}

.waby-google-btn .waby-btn-spinner {
  border-color: rgba(0, 0, 0, 0.15);
  border-top-color: #178c7d;
}

.waby-btn-spinner[hidden] {
  display: none !important;
}

/* Animations */
@keyframes wabyFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes wabyScaleIn {
  from { opacity: 0; transform: scale(0.97) translateY(4px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes wabySpin {
  to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 440px) {
  .waby-auth-modal {
    padding: 12px;
  }
  .waby-auth-dialog {
    max-width: 100%;
  }
  .waby-auth-card {
    padding: 24px 20px 20px;
    border-radius: 16px;
  }
}

/* ─────────────────────────────────────────────────────────────
   Start with Waby in 3 Steps Section
   ───────────────────────────────────────────────────────────── */
.waby-steps-section {
  padding: clamp(64px, 8vw, 108px) 20px;
  background: radial-gradient(ellipse 60% 40% at 50% 0%, rgba(23, 140, 125, 0.05) 0%, transparent 100%), #ffffff;
  border-top: 1px solid #f1f5f9;
  border-bottom: 1px solid #f1f5f9;
  text-align: center;
  scroll-margin-top: 80px;
}

.waby-steps-wrap {
  max-width: 1040px;
  margin: 0 auto;
}

.waby-steps-header {
  margin-bottom: 48px;
}

.waby-steps-tag {
  display: inline-block;
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #178c7d;
  background: rgba(23, 140, 125, 0.08);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.waby-steps-title {
  font-family: 'Plus Jakarta Sans', 'Figtree', system-ui, sans-serif;
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.035em;
  line-height: 1.15;
  margin: 0 0 12px;
}

.waby-steps-desc {
  font-family: 'Figtree', system-ui, sans-serif;
  font-size: clamp(15px, 1.2vw, 17px);
  color: #64748b;
  margin: 0 auto;
  max-width: 520px;
  line-height: 1.5;
}

.waby-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 44px;
  text-align: left;
}

.waby-step-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 28px 24px;
  box-shadow: 0 4px 20px -4px rgba(15, 23, 42, 0.04);
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
}

.waby-step-card:hover {
  border-color: rgba(23, 140, 125, 0.4);
  box-shadow: 0 8px 28px -6px rgba(23, 140, 125, 0.08);
  transform: translateY(-2px);
}

.waby-step-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.waby-step-num {
  font-family: 'DM Mono', monospace;
  font-size: 13px;
  font-weight: 700;
  color: #178c7d;
  background: rgba(23, 140, 125, 0.1);
  padding: 3px 8px;
  border-radius: 6px;
}

.waby-step-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  display: grid;
  place-items: center;
}

.waby-step-heading {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  line-height: 1.3;
}

.waby-step-text {
  font-family: 'Figtree', system-ui, sans-serif;
  font-size: 14px;
  color: #64748b;
  line-height: 1.5;
  margin: 0;
}

.waby-steps-cta-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.waby-steps-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #178c7d;
  color: #ffffff;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 15px;
  font-weight: 600;
  padding: 13px 32px;
  min-height: 48px;
  border-radius: 12px;
  border: 1px solid #14796c;
  box-shadow: 0 4px 14px rgba(23, 140, 125, 0.25);
  cursor: pointer;
  transition: all 0.18s ease;
  text-decoration: none;
}

.waby-steps-cta-btn:hover {
  background: #127064;
  border-color: #0f5c52;
  box-shadow: 0 6px 20px rgba(23, 140, 125, 0.32);
  transform: translateY(-1px);
}

.waby-steps-cta-btn:active {
  transform: translateY(0);
}

.waby-steps-subtext {
  font-family: 'Figtree', system-ui, sans-serif;
  font-size: 12.5px;
  color: #94a3b8;
}

.waby-steps-whatsapp-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Figtree', system-ui, sans-serif;
  font-size: 13px;
  color: #64748b;
  text-decoration: none;
  transition: color 0.15s ease;
  margin-top: 4px;
}

.waby-steps-whatsapp-link:hover {
  color: #178c7d;
}

@media (max-width: 768px) {
  .waby-steps-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    max-width: 440px;
    margin-left: auto;
    margin-right: auto;
  }
}

