/* Guided product tours (PipeShare client portal + PipeSync planner) — driven by hp-product-tutorial.js */

#hp-product-tutorial-root {
  position: fixed;
  inset: 0;
  z-index: 200050;
  font-family: 'Ubuntu', system-ui, sans-serif;
  pointer-events: none;
}

#hp-product-tutorial-root.hp-tutorial--active {
  pointer-events: auto;
}

.hp-tutorial-blocker {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: transparent;
  pointer-events: auto;
}

.hp-tutorial-dim-full {
  position: absolute;
  inset: 0;
  background: rgba(4, 6, 10, 0.78);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  pointer-events: auto;
  z-index: 1;
}

.hp-tutorial-spotlight {
  position: fixed;
  box-sizing: border-box;
  border-radius: 12px;
  border: 2px solid rgba(255, 120, 70, 0.95);
  box-shadow:
    0 0 0 4px rgba(255, 120, 70, 0.2),
    0 0 0 9999px rgba(4, 6, 10, 0.78);
  pointer-events: none;
  z-index: 1;
  transition: top 0.2s ease, left 0.2s ease, width 0.2s ease, height 0.2s ease, opacity 0.2s ease;
}

.hp-tutorial-card {
  position: fixed;
  z-index: 3;
  width: min(420px, calc(100vw - 32px));
  padding: 18px 18px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 140, 90, 0.45);
  background: linear-gradient(165deg, rgba(28, 32, 44, 0.98), rgba(12, 14, 20, 0.99));
  color: #f0f2f8;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  pointer-events: auto;
}

.hp-tutorial-card__title {
  margin: 0 0 10px;
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #fff;
}

.hp-tutorial-card__body {
  margin: 0 0 16px;
  font-size: 0.9rem;
  line-height: 1.5;
  color: rgba(230, 234, 245, 0.88);
}

.hp-tutorial-card__progress {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 160, 110, 0.9);
  margin-bottom: 8px;
}

.hp-tutorial-card__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.hp-tutorial-card__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-left: auto;
}

.hp-tutorial-btn {
  appearance: none;
  border-radius: 10px;
  padding: 8px 14px;
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: #f2f4fb;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.hp-tutorial-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 140, 90, 0.55);
}

.hp-tutorial-btn--primary {
  border-color: rgba(255, 120, 70, 0.65);
  background: linear-gradient(135deg, #e85d2c, #ff8f54);
  color: #111;
}

.hp-tutorial-btn--primary:hover {
  filter: brightness(1.06);
}

.hp-tutorial-btn--ghost {
  background: transparent;
  color: rgba(230, 234, 245, 0.75);
}

@media (max-width: 520px) {
  .hp-tutorial-card {
    width: calc(100vw - 24px);
    padding: 16px 14px 14px;
  }
}
