/* ═══════════════════════════════════════════════════════════════
   sca-ai-intro.css
   AI Onboarding Popup — clean, modern, 2026
   ═══════════════════════════════════════════════════════════════ */

/* ── Backdrop (blurred) ── */
.sca-ai-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2147483646;
  background: rgba(15, 23, 42, 0.28);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: scaAiFadeIn 0.25s ease;
}
.sca-ai-backdrop[hidden] { display: none !important; }

/* ── Card ── */
.sca-ai-card {
  background: #fff;
  border-radius: 20px;
  max-width: 400px;
  width: 100%;
  padding: 32px 28px 26px;
  position: relative;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.14),
              0 0 0 1px rgba(148, 163, 184, 0.08);
  animation: scaAiSlideUp 0.3s ease;
  font-family: inherit;
}

/* ── Close ── */
.sca-ai-close {
  position: absolute;
  top: 14px; right: 14px;
  border: none; background: transparent;
  font-size: 16px; color: #a8b2c1;
  cursor: pointer;
  width: 30px; height: 30px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  transition: color 0.12s ease, background 0.12s ease;
  line-height: 1;
}
.sca-ai-close:hover {
  color: #253551;
  background: rgba(214, 221, 233, 0.25);
}

/* ── Top icon ── */
.sca-ai-icon-top {
  width: 44px; height: 44px; border-radius: 12px;
  background: rgba(124, 77, 255, 0.06);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  color: #a78bfa;
  font-size: 19px;
}

/* ── Title ── */
.sca-ai-title {
  margin: 0 0 20px;
  text-align: center;
  font-size: 19px; font-weight: 600;
  color: #253551;
  letter-spacing: -0.01em; line-height: 1.3;
}

/* ── Feature row (inline) ── */
.sca-ai-features {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  margin: 0 0 22px;
  padding: 14px 0;
  border-top: 1px solid rgba(148, 163, 184, 0.10);
  border-bottom: 1px solid rgba(148, 163, 184, 0.10);
}

.sca-ai-feat {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sca-ai-feat-icon {
  width: 30px; height: 30px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}

.sca-ai-feat-label {
  font-size: 14px; font-weight: 500;
  color: #253551; line-height: 1.2;
  white-space: nowrap;
}

/* Purple — AI Role-Play */
.sca-ai-feat--purple .sca-ai-feat-icon {
  background: rgba(124, 77, 255, 0.07);
  color: #a78bfa;
}

/* Olive green — AI Marking */
.sca-ai-feat--green .sca-ai-feat-icon {
  background: rgba(27, 107, 74, 0.07);
  color: #34a06e;
}

/* Blue — 3 Free Credits */
.sca-ai-feat--blue .sca-ai-feat-icon {
  background: rgba(29, 78, 216, 0.07);
  color: #4a82e0;
}

/* ── Explanation ── */
.sca-ai-explain {
  font-size: 15px; line-height: 1.7;
  color: #8994a6;
  margin: 0 0 26px;
  text-align: center;
}
.sca-ai-explain strong {
  color: #253551; font-weight: 600;
}

/* ── Buttons ── */
.sca-ai-btns {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Primary: navy rounded rect */
.sca-ai-btn-go {
  width: 100%; padding: 12px 20px;
  background: #253551; color: #fff;
  border: none; border-radius: 12px;
  font-size: 15px; font-weight: 500;
  cursor: pointer; font-family: inherit;
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; line-height: 1;
}
.sca-ai-btn-go:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.18);
  filter: brightness(1.05);
}
.sca-ai-btn-go:active { transform: translateY(0); }
.sca-ai-btn-go i { font-size: 12px; }

/* Secondary: subtle outlined rounded rect */
.sca-ai-btn-existing {
  width: 100%; padding: 12px 20px;
  background: rgba(148, 163, 184, 0.06); color: #253551;
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 12px;
  font-size: 15px; font-weight: 500;
  cursor: pointer; font-family: inherit;
  transition: transform 0.12s ease, background 0.12s ease, border-color 0.12s ease;
  line-height: 1;
}
.sca-ai-btn-existing:hover {
  transform: translateY(-1px);
  background: rgba(148, 163, 184, 0.10);
  border-color: rgba(148, 163, 184, 0.25);
}

/* ── Text links ── */
.sca-ai-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 16px;
}

.sca-ai-link {
  font-size: 13px;
  color: #a8b2c1;
  cursor: pointer;
  border: none; background: transparent;
  font-family: inherit;
  padding: 0;
  border-bottom: 1px solid transparent;
  transition: color 0.12s ease, border-color 0.12s ease;
  line-height: 1.4;
}
.sca-ai-link:hover {
  color: #253551;
  border-bottom-color: rgba(148, 163, 184, 0.3);
}

/* ── Animations ── */
@keyframes scaAiFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes scaAiSlideUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Mobile ── */
@media (max-width: 480px) {
  .sca-ai-card {
    padding: 26px 22px 22px;
    border-radius: 18px;
    max-width: none;
    margin: 0 4px;
  }
  .sca-ai-title { font-size: 18px; }
  .sca-ai-features {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 16px;
  }
}
