/* ============================================================
   ETF Setups onboarding — platform overview modal (carousel).
   ============================================================ */

.etfsp-ob {
  position: fixed; inset: 0; z-index: 100000;
  display: flex; align-items: center; justify-content: center;
  background: rgba(10, 25, 41, 0.55);
  backdrop-filter: blur(3px);
  padding: 20px;
  animation: etfsp-ob-fade 0.18s ease-out;
  font-family: var(--etfsp-font, Inter, -apple-system, sans-serif);
}
@keyframes etfsp-ob-fade { from { opacity: 0; } to { opacity: 1; } }

.etfsp-ob-card {
  position: relative;
  background: #fff;
  border-radius: 18px;
  width: 100%;
  max-width: 540px;
  padding: 34px 34px 26px;
  box-shadow: 0 44px 100px -34px rgba(10, 25, 41, 0.65);
  animation: etfsp-ob-rise 0.2s ease-out;
}
@keyframes etfsp-ob-rise { from { transform: translateY(8px); opacity: .6; } to { transform: none; opacity: 1; } }

.etfsp-ob-close {
  position: absolute; top: 14px; right: 16px;
  border: 0; background: transparent; cursor: pointer;
  font-size: 26px; line-height: 1; color: var(--etfsp-ink-3, #9aa3ad);
  padding: 4px 8px; border-radius: 8px;
}
.etfsp-ob-close:hover { color: var(--etfsp-navy, #0a1929); background: #f4f3ef; }

.etfsp-ob-eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--etfsp-gold, #b08545); margin-bottom: 10px;
}
.etfsp-ob-title {
  font-size: 25px; font-weight: 800; letter-spacing: -0.02em;
  color: var(--etfsp-navy, #0a1929); margin: 0 0 16px; line-height: 1.12;
}

.etfsp-ob-body { min-height: 210px; }
.etfsp-ob-body p { font-size: 15.5px; line-height: 1.6; color: #45525f; margin: 0 0 14px; }
.etfsp-ob-muted { color: var(--etfsp-ink-3, #6b7480) !important; font-size: 14px !important; }

/* Page-map list */
.etfsp-ob-list { list-style: none; margin: 0; padding: 0; }
.etfsp-ob-list li {
  display: grid; grid-template-columns: 132px 1fr; gap: 12px;
  padding: 9px 0; border-bottom: 1px solid rgba(10, 25, 41, 0.07);
  font-size: 14.5px; line-height: 1.45; color: #45525f;
}
.etfsp-ob-list li:last-child { border-bottom: 0; }
.etfsp-ob-list .etfsp-ob-k { font-weight: 700; color: var(--etfsp-navy, #0a1929); }

/* Tips list */
.etfsp-ob-tips { list-style: none; margin: 0; padding: 0; }
.etfsp-ob-tips li {
  display: flex; gap: 11px; align-items: flex-start;
  padding: 9px 0; font-size: 14.5px; line-height: 1.5; color: #45525f;
}
.etfsp-ob-tips strong { color: var(--etfsp-navy, #0a1929); }
.etfsp-ob-dot {
  flex: none; width: 8px; height: 8px; margin-top: 6px; border-radius: 50%;
  background: var(--etfsp-gold, #b08545);
}

/* Footer: progress dots + nav buttons */
.etfsp-ob-foot {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 22px;
}
.etfsp-ob-dots { display: flex; gap: 7px; }
.etfsp-ob-dot-nav {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(10, 25, 41, 0.16);
  transition: background .15s, width .15s;
}
.etfsp-ob-dot-nav.is-on { background: var(--etfsp-navy, #0a1929); width: 20px; border-radius: 4px; }
.etfsp-ob-btns { display: flex; gap: 10px; }

/* Self-contained buttons — the onboarding runs on gated portal pages where
   marketing.css (which defines .etfsp-btn) is NOT loaded. */
.etfsp-ob .etfsp-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 92px; padding: 11px 20px; border-radius: 8px;
  font-family: var(--etfsp-font, Inter, sans-serif);
  font-weight: 700; font-size: 14px; line-height: 1; cursor: pointer;
  border: 1px solid transparent; -webkit-appearance: none; appearance: none;
  text-decoration: none !important; white-space: nowrap;
  transition: background .12s, color .12s, border-color .12s, transform .08s;
}
.etfsp-ob .etfsp-btn-primary { background: var(--etfsp-navy, #0a1929); color: #fff; }
.etfsp-ob .etfsp-btn-primary:hover { background: #06101c; transform: translateY(-1px); }
.etfsp-ob .etfsp-btn-ghost { background: #fff; color: var(--etfsp-navy, #0a1929); border-color: rgba(10, 25, 41, 0.20); }
.etfsp-ob .etfsp-btn-ghost:hover { background: #f4f3ef; }

@media (max-width: 560px) {
  .etfsp-ob-card { padding: 28px 22px 22px; }
  .etfsp-ob-title { font-size: 22px; }
  .etfsp-ob-list li { grid-template-columns: 1fr; gap: 2px; }
  .etfsp-ob-list .etfsp-ob-k { margin-top: 2px; }
  .etfsp-ob-body { min-height: 0; }
}
