/* ════════════════════════════════════════
   Highr.AI — Guided Demo Tour
   Activated by ?demo=staff or ?demo=manager
════════════════════════════════════════ */

/* ── Full-screen shield — blocks all background clicks during demo ── */
#demo-shield {
  position: fixed;
  inset: 0;
  z-index: 9990;
  pointer-events: all;
  background: transparent;
}

/* ── Spotlight overlay ── */
#demo-spotlight {
  position: fixed;
  border-radius: 10px;
  /*
   * Layer 1: bright white ring immediately outside the element
   * Layer 2: soft white glow bleeding into the backdrop
   * Layer 3: dark backdrop covering everything else
   */
  box-shadow:
    0 0 0 3px #ffffff,
    0 0 22px 8px rgba(255, 255, 255, 0.30),
    0 0 0 9999px rgba(0, 0, 0, 0.82);
  z-index: 9991;
  pointer-events: all;
  cursor: default;
  transition: top 0.28s ease, left 0.28s ease,
              width 0.28s ease, height 0.28s ease;
}

/* ── Tooltip card ── */
#demo-tooltip {
  position: fixed;
  z-index: 9992;
  background: #ffffff;
  color: #0f0f1a;
  border-radius: 14px;
  padding: 22px 24px 18px;
  width: 310px;
  box-shadow: 0 20px 56px rgba(0, 0, 0, 0.45),
              0 4px 12px rgba(0, 0, 0, 0.22);
  pointer-events: all;
  /* Ensure tooltip is never cramped against viewport edges */
  max-width: calc(100vw - 32px);
}

.demo-step-count {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8888aa;
  margin-bottom: 8px;
  font-family: 'IBM Plex Mono', monospace;
}

.demo-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 7px;
  line-height: 1.3;
  color: #0f0f1a;
}

.demo-body {
  font-size: 13px;
  line-height: 1.6;
  color: #44445a;
  margin-bottom: 16px;
}

.demo-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.demo-skip-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 12px;
  color: #aaaacc;
  padding: 4px 0;
  font-family: inherit;
  transition: color 0.15s;
}
.demo-skip-btn:hover { color: #7777aa; }

.demo-next-btn {
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
  white-space: nowrap;
}
.demo-next-btn:hover { background: #1d4ed8; }

/* ── End card (final step, no spotlight) ── */
#demo-end-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.68);
  z-index: 9993;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: all;
}

#demo-end-card {
  background: #ffffff;
  color: #0f0f1a;
  border-radius: 18px;
  padding: 36px 40px 32px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
}

.demo-end-emoji {
  font-size: 42px;
  margin-bottom: 14px;
  display: block;
}

.demo-end-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #0f0f1a;
}

.demo-end-body {
  font-size: 14px;
  line-height: 1.65;
  color: #44445a;
  margin-bottom: 26px;
}

.demo-end-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.demo-end-cta {
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 13px 24px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
  text-decoration: none;
  display: block;
}
.demo-end-cta:hover { background: #1d4ed8; }

.demo-end-skip {
  background: none;
  border: 1px solid rgba(100, 100, 150, 0.25);
  border-radius: 8px;
  padding: 10px;
  font-size: 13px;
  color: #8888aa;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.15s, color 0.15s;
}
.demo-end-skip:hover {
  border-color: rgba(100, 100, 150, 0.5);
  color: #6666aa;
}
