/* ═══════════════════════════════════════════
   POSTIQ ONBOARDING v2
   ═══════════════════════════════════════════ */

/* ── WELCOME BANNER ──────────────────────── */
/* Sits top-right of the main content area,
   never overlapping the sidebar */
.onboarding-banner {
  position: fixed;
  top: 20px;
  right: 24px;
  width: 320px;
  z-index: 200;
  background: var(--text, #14162a);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px;
  box-shadow:
    0 20px 50px rgba(10,12,35,.45),
    0 4px 14px rgba(10,12,35,.2),
    inset 0 1px 0 rgba(255,255,255,.06);
  overflow: hidden;
  animation: obIn .35s cubic-bezier(.34,1.2,.64,1) both;
}

.onboarding-banner.ob-dismissing {
  animation: obOut .25s ease both;
  pointer-events: none;
}

/* Step 3 — Compose view: move to bottom-right so it clears the editor and send buttons */
.onboarding-banner.ob-compose-mode {
  top: auto;
  bottom: 24px;
  right: 24px;
}

@keyframes obIn  { from { opacity:0; transform:translateY(-10px) scale(.96); } to { opacity:1; transform:none; } }
@keyframes obOut { to   { opacity:0; transform:translateY(-8px)  scale(.97); } }

/* Step 3 / Compose view — shift banner left so it clears the editor buttons.
   Slides from top-right to top-center of the main content area. */
.onboarding-banner.ob-compose-mode {
  right: auto;
  left: 50%;
  transform: translateX(-50%);
  width: 480px;
  transition: left .3s ease, right .3s ease, width .3s ease, transform .3s ease;
}

/* Brand accent line at top */
.onboarding-banner::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--brand, #3a3fff), rgba(58,63,255,.2));
}

.ob-inner { padding: 16px; }

/* Header */
.ob-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.ob-title-group {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  min-width: 0;
}

.ob-eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--brand, #3a3fff);
}

.ob-title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: -.15px;
  color: #fff;
  line-height: 1.25;
}

.ob-subtitle {
  font-size: 11px;
  color: rgba(255,255,255,.42);
  line-height: 1.5;
  font-family: 'Lato', sans-serif;
  margin-top: 2px;
}

.ob-dismiss {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.05);
  color: rgba(255,255,255,.35);
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all .12s;
}
.ob-dismiss:hover {
  background: rgba(255,255,255,.1);
  color: rgba(255,255,255,.75);
}

/* Steps */
.ob-steps {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 14px;
}

.ob-step {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.06);
  background: rgba(255,255,255,.03);
  cursor: default;
  transition: background .14s, border-color .14s;
}

.ob-step.ob-step-active {
  background: rgba(58,63,255,.15);
  border-color: rgba(58,63,255,.35);
}

.ob-step.ob-step-done {
  opacity: .45;
}

.ob-step-num {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  font-weight: 700;
  background: rgba(255,255,255,.07);
  color: rgba(255,255,255,.4);
  border: 1px solid rgba(255,255,255,.09);
  transition: all .2s;
}

.ob-step.ob-step-active .ob-step-num {
  background: var(--brand, #3a3fff);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 0 0 2px rgba(58,63,255,.3);
}

.ob-step.ob-step-done .ob-step-num {
  background: var(--green, #0fa672);
  color: #fff;
  border-color: transparent;
  font-size: 11px;
}

.ob-step-body { flex: 1; min-width: 0; }

.ob-step-label {
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 11px;
  color: #fff;
  line-height: 1.2;
}

.ob-step.ob-step-done .ob-step-label {
  color: rgba(255,255,255,.4);
  text-decoration: line-through;
  text-decoration-color: rgba(255,255,255,.2);
}

.ob-step-desc {
  font-size: 10px;
  color: rgba(255,255,255,.35);
  line-height: 1.4;
  font-family: 'DM Mono', monospace;
  margin-top: 1px;
}

.ob-step-arrow {
  font-size: 14px;
  color: rgba(58,63,255,.7);
  flex-shrink: 0;
  font-weight: 700;
}

/* Footer */
.ob-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 11px;
  border-top: 1px solid rgba(255,255,255,.06);
}

.ob-progress {
  display: flex;
  align-items: center;
  gap: 7px;
  flex: 1;
  min-width: 0;
}

.ob-progress-bar-wrap {
  flex: 1;
  height: 3px;
  background: rgba(255,255,255,.08);
  border-radius: 2px;
  overflow: hidden;
}

.ob-progress-bar {
  height: 100%;
  background: var(--brand, #3a3fff);
  border-radius: 2px;
  transition: width .5s cubic-bezier(.34,1.2,.64,1);
}

.ob-progress-label {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  color: rgba(255,255,255,.28);
  white-space: nowrap;
  letter-spacing: .03em;
}

.ob-cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0 11px;
  height: 26px;
  border-radius: 6px;
  background: var(--brand, #3a3fff);
  color: #fff;
  font-family: 'Lato', sans-serif;
  font-size: 11px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: all .12s;
  box-shadow: 0 2px 8px rgba(58,63,255,.3);
  flex-shrink: 0;
}
.ob-cta:hover {
  background: #2a2fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(58,63,255,.4);
  color: #fff;
}
.ob-cta.ob-cta-done {
  background: rgba(255,255,255,.1);
  box-shadow: none;
  color: rgba(255,255,255,.6);
}
.ob-cta.ob-cta-done:hover {
  background: rgba(255,255,255,.15);
  color: rgba(255,255,255,.9);
  transform: none;
}

/* ── TOOLTIPS ────────────────────────────── */
/* Only shown after onboarding banner is dismissed */
.ob-tooltip {
  position: fixed;
  z-index: 180;
  width: 280px;
  background: var(--text, #14162a);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px;
  padding: 12px 14px 11px;
  box-shadow:
    0 14px 36px rgba(10,12,35,.4),
    0 2px 8px rgba(10,12,35,.2),
    inset 0 1px 0 rgba(255,255,255,.05);
  animation: obTipIn .28s cubic-bezier(.34,1.2,.64,1) both;
}

.ob-tooltip.ob-tip-dismissing {
  animation: obTipOut .18s ease both;
  pointer-events: none;
}

@keyframes obTipIn  { from { opacity:0; transform:translateY(-6px) scale(.97); } to { opacity:1; transform:none; } }
@keyframes obTipOut { to   { opacity:0; transform:translateY(-4px) scale(.98); } }

/* Caret */
.ob-tooltip::before {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--text, #14162a);
  border: 1px solid rgba(255,255,255,.1);
  border-right: none;
  border-bottom: none;
  transform: rotate(45deg);
  top: -5px;
  left: 20px;
}

.ob-tip-header {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 6px;
}

.ob-tip-icon { font-size: 14px; flex-shrink: 0; margin-top: 1px; }

.ob-tip-title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  font-size: 12px;
  color: #fff;
  letter-spacing: -.1px;
  flex: 1;
  line-height: 1.3;
}

.ob-tip-close {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.3);
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all .1s;
}
.ob-tip-close:hover {
  background: rgba(255,255,255,.1);
  color: rgba(255,255,255,.7);
}

.ob-tip-body {
  font-size: 11px;
  color: rgba(255,255,255,.48);
  line-height: 1.6;
  font-family: 'Lato', sans-serif;
}

.ob-tip-body strong {
  color: rgba(255,255,255,.78);
  font-weight: 600;
}

/* ── MOBILE ──────────────────────────────── */
@media (max-width: 768px) {
  .onboarding-banner {
    top: auto;
    bottom: 72px; /* above mobile nav */
    right: 12px;
    left: 12px;
    width: auto;
  }

  .ob-tooltip {
    left: 16px !important;
    right: 16px !important;
    bottom: 76px !important;
    top: auto !important;
    width: auto !important;
  }

  .ob-tooltip::before { display: none; }
}
