/* ═══════════════════════════════════════════════════════════════
   sca-bot-intro.css — AI Role-Play onboarding walkthrough
   Three-step instructional popup for first-time bot page users.
   ═══════════════════════════════════════════════════════════════ */

/* ────── Backdrop ────── */
.bt-intro-backdrop {
  position: fixed;
  inset: 0;
  z-index: 99999;
  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: 16px;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.bt-intro-backdrop.is-visible { opacity: 1; }
.bt-intro-backdrop.is-hiding { opacity: 0; pointer-events: none; }

/* ────── Card ────── */
.bt-intro-card {
  background: #fff;
  border-radius: 20px;
  max-width: 420px;
  width: 100%;
  padding: 28px 24px 24px;
  position: relative;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
  transform: translateY(12px) scale(0.97);
  transition: transform 0.3s ease;
}
.bt-intro-backdrop.is-visible .bt-intro-card {
  transform: translateY(0) scale(1);
}

/* ────── Close ────── */
.bt-intro-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  font-size: 20px;
  color: #94a3b8;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  transition: color 0.15s;
}
.bt-intro-close:hover { color: #64748b; }

/* ────── Steps ────── */
.bt-intro-step { display: none; }
.bt-intro-step.is-active { display: block; }

/* ────── Top icon ────── */
.bt-intro-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  font-size: 22px;
}
.bt-intro-icon.purple { background: #faf5ff; color: #7c3aed; }
.bt-intro-icon.blue   { background: #eff6ff; color: #2563eb; }
.bt-intro-icon.green  { background: #f0fdf4; color: #1b6b4a; }
.bt-intro-icon.amber  { background: #fefce8; color: #ca8a04; }

/* ────── Step 2: Credits ────── */
.bt-intro-credit-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}
.bt-intro-credit-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}
.bt-intro-credit-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}
.bt-intro-credit-icon.std { background: #e8eef6; color: #4a7ab5; border-radius: 50%; }
.bt-intro-credit-icon.prm { background: #2a3a52; color: #d4a843; }
.bt-intro-credit-icon.mrk { background: #f0fdf4; color: #1b6b4a; }
.bt-intro-credit-info {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
}
.bt-intro-credit-label {
  font-size: 14px;
  font-weight: 500;
  color: #1e293b;
}
.bt-intro-credit-cost {
  font-size: 14px;
  font-weight: 600;
  color: #475569;
  white-space: nowrap;
}
.bt-intro-credit-note {
  font-size: 13px;
  color: #64748b;
  text-align: center;
  line-height: 1.5;
  margin: 0 0 18px;
}
.bt-intro-credit-note i {
  color: #7c3aed;
  margin-right: 4px;
  font-size: 12px;
}

/* ────── Title + body ────── */
.bt-intro-title {
  font-size: 19px;
  font-weight: 600;
  color: #1e293b;
  margin: 0 0 6px;
  text-align: center;
}
.bt-intro-body {
  font-size: 14.5px;
  color: #475569;
  margin: 0 0 18px;
  line-height: 1.6;
  text-align: center;
}
.bt-intro-body strong { color: #1e293b; font-weight: 600; }

/* ────── Step 1: Mode comparison — stacked cards with pills ────── */
.bt-intro-mode-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}
.bt-intro-mode-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  border-radius: 12px;
  padding: 14px 16px;
}
.bt-intro-mode-card.std {
  background: #f3f5f8;
  border: 1px solid #d6dde9;
}
.bt-intro-mode-card.prm {
  background: #253551;
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.12);
}
.bt-intro-mode-badge-wrap { flex-shrink: 0; }
.bt-intro-mode-badge {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}
.bt-intro-mode-badge.std { background: #e8eef6; color: #4a7ab5; border-radius: 50%; }
.bt-intro-mode-badge.prm { background: #2a3a52; color: #d4a843; border-radius: 10px; }
.bt-intro-mode-info { flex: 1; min-width: 0; }
.bt-intro-mode-name {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 2px;
}
.bt-intro-mode-name.std { color: #1e293b; }
.bt-intro-mode-name.prm { color: #fff; }
.bt-intro-mode-voice {
  font-size: 13px;
  line-height: 1.45;
  margin-bottom: 8px;
}
.bt-intro-mode-voice.std { color: #64748b; }
.bt-intro-mode-voice.prm { color: #cbd5e1; }
.bt-intro-mode-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.bt-intro-pill {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 6px;
  font-weight: 500;
}
.bt-intro-pill.std { background: #e2e8f0; color: #475569; }
.bt-intro-pill.prm { background: rgba(124, 58, 237, 0.15); color: #c4b5fd; }

/* ────── Step 2: How it works ────── */
.bt-intro-steps-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}
.bt-intro-step-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.bt-intro-step-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #faf5ff;
  color: #7c3aed;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.bt-intro-step-text {
  font-size: 14px;
  color: #334155;
  line-height: 1.5;
}
.bt-intro-step-text strong {
  font-weight: 600;
  color: #1e293b;
}

/* ────── Step 3: Results preview (reused from marking) ────── */
.bt-intro-preview {
  margin-bottom: 14px;
  pointer-events: none;
}
.bt-intro-ov {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.bt-intro-ov-label {
  font-size: 9px;
  font-weight: 700;
  color: #16a34a;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}
.bt-intro-ov-band { font-size: 20px; font-weight: 700; color: #16a34a; }
.bt-intro-ring { width: 48px; height: 48px; position: relative; flex-shrink: 0; }
.bt-intro-ring svg { width: 48px; height: 48px; transform: rotate(-90deg); }
.bt-intro-ring-bg { fill: none; stroke: #dcfce7; stroke-width: 4; }
.bt-intro-ring-fg {
  fill: none; stroke: #16a34a; stroke-width: 4; stroke-linecap: round;
  stroke-dasharray: 138.23; stroke-dashoffset: 20.73;
}
.bt-intro-ring-text {
  position: absolute; inset: 0; display: flex; align-items: center;
  justify-content: center; font-size: 11px; font-weight: 700; color: #1e293b;
}
.bt-intro-doms {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 6px; margin-bottom: 8px;
}
.bt-intro-dom {
  background: #f8fafc; border: 1px solid #e2e8f0;
  border-radius: 8px; padding: 8px 10px;
}
.bt-intro-dom-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 1px; }
.bt-intro-dom-name { font-size: 9.5px; font-weight: 600; color: #1e293b; }
.bt-intro-dom-pct { font-size: 14px; font-weight: 700; color: #16a34a; }
.bt-intro-dom-band { font-size: 8px; font-weight: 600; color: #16a34a; margin-bottom: 4px; }
.bt-intro-dom-bar { height: 4px; background: #e2e8f0; border-radius: 2px; overflow: hidden; }
.bt-intro-dom-bar-fill { height: 100%; background: #16a34a; border-radius: 2px; }

.bt-intro-prem {
  background: #1e293b; border-radius: 10px; padding: 10px 10px 8px;
}
.bt-intro-prem-label {
  font-size: 9px; font-weight: 600; color: #e2e8f0;
  margin-bottom: 8px; display: flex; align-items: center; gap: 5px;
}
.bt-intro-prem-crown { font-size: 12px; }
.bt-intro-skills { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
.bt-intro-sk {
  background: #334155; border-radius: 7px; padding: 8px 9px;
  display: flex; align-items: center; gap: 7px;
}
.bt-intro-sk-icon {
  width: 22px; height: 22px; border-radius: 50%; background: #475569;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 10px; color: #94a3b8;
}
.bt-intro-sk-mid { flex: 1; min-width: 0; }
.bt-intro-sk-name { font-size: 9px; font-weight: 500; color: #e2e8f0; margin-bottom: 2px; }
.bt-intro-sk-dots { display: flex; gap: 2px; }
.bt-intro-sk-dot { width: 5px; height: 5px; border-radius: 50%; }
.bt-intro-sk-dot.on { background: #4ade80; }
.bt-intro-sk-dot.off { background: #475569; }
.bt-intro-sk-score { font-size: 13px; font-weight: 700; color: #f8fafc; white-space: nowrap; }
.bt-intro-sk-score span { font-size: 9px; font-weight: 400; color: #94a3b8; }
.bt-intro-preview-note {
  font-size: 9px; color: #94a3b8; text-align: center;
  margin-top: 6px; font-style: italic;
}
.bt-intro-prem-note {
  font-size: 10px; color: #94a3b8; text-align: center;
  margin-top: 6px; font-style: italic;
}
.bt-intro-results-info {
  font-size: 13px; color: #64748b; text-align: center;
  line-height: 1.5; margin: 0 0 16px;
}
.bt-intro-results-info strong { color: #334155; font-weight: 600; }

/* ────── Progress dots ────── */
.bt-intro-dots {
  display: flex; justify-content: center; gap: 6px; margin-bottom: 14px;
}
.bt-intro-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #e2e8f0; transition: background 0.2s;
}
.bt-intro-dot.is-active { background: #7c3aed; }

/* ────── Navigation ────── */
.bt-intro-nav { display: flex; gap: 10px; }
.bt-intro-btn {
  flex: 1; padding: 12px; border-radius: 12px; font-size: 15px;
  font-weight: 500; cursor: pointer; text-align: center;
  border: none; font-family: inherit; transition: opacity 0.15s;
}
.bt-intro-btn:hover { opacity: 0.88; }
.bt-intro-btn.pri { background: #1e293b; color: #fff; }
.bt-intro-btn.sec { background: #f1f5f9; color: #475569; }
.bt-intro-btn.full { flex: unset; width: 100%; }

/* ────── Info button (replay intro) ────── */
.bt-intro-info-btn {
  position: absolute;
  bottom: 16px;
  right: 56px;
  font-size: 22px;
  color: rgba(37, 53, 81, 0.3);
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s;
  z-index: 10;
}
.bt-intro-info-btn:hover {
  color: rgba(37, 53, 81, 0.6);
}

/* Mobile: row container for bottom action icons */
.sca-page-actions-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 16px;
}
.sca-page-actions-row a {
  font-size: 22px;
  color: rgba(37, 53, 81, 0.3);
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s;
}
.sca-page-actions-row a:hover {
  color: rgba(37, 53, 81, 0.6);
}

/* ────── Close confirmation ────── */
.bt-intro-confirm-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  font-size: 22px;
  color: #64748b;
}

/* ────── Mobile ────── */
@media (max-width: 440px) {
  .bt-intro-card { padding: 24px 18px 20px; }
  .bt-intro-modes { gap: 8px; }
  .bt-intro-mode { padding: 12px 10px; }
  .bt-intro-doms { gap: 4px; }
  .bt-intro-dom { padding: 6px 8px; }
  .bt-intro-dom-name { font-size: 8.5px; }
  .bt-intro-dom-pct { font-size: 12px; }
  .bt-intro-skills { gap: 4px; }
  .bt-intro-sk { padding: 6px 7px; gap: 5px; }
  .bt-intro-sk-icon { width: 18px; height: 18px; font-size: 8px; }
  .bt-intro-sk-name { font-size: 8px; }
  .bt-intro-sk-score { font-size: 11px; }
}
/* ────── "Read the full guide" link ──────
   Sits below the primary nav buttons on Step 4 and the close-confirmation
   card. Lets users escalate from the in-popup walkthrough to the
   full /bot-info reference page. Designed as a quiet secondary path —
   muted text, small chevron — so it doesn't compete with the primary CTAs. */
.bt-intro-more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
  font-size: 13px;
  color: #64748b;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s;
}
.bt-intro-more:hover {
  color: #1e293b;
}
.bt-intro-more i {
  font-size: 11px;
  transition: transform 0.15s;
}
.bt-intro-more:hover i {
  transform: translateX(2px);
}
