/* Ensephra — guided tour: spotlight + tooltip walkthrough */

.tour-launch-btn {
  position: fixed;
  left: 1.75rem;
  bottom: 1.75rem;
  z-index: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: var(--ink, #1E2820);
  color: #F5F7F5;
  border: none;
  border-radius: 100px;
  padding: 0.7rem 1.25rem 0.7rem 1rem;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(20,30,24,0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.tour-launch-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(20,30,24,0.34); }
.tour-launch-btn .tour-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--sage, #7A9E87);
  box-shadow: 0 0 0 0 rgba(122,158,135,0.6);
  animation: tourPulse 2.4s ease-out infinite;
}
@keyframes tourPulse {
  0%   { box-shadow: 0 0 0 0 rgba(122,158,135,0.55); }
  70%  { box-shadow: 0 0 0 10px rgba(122,158,135,0); }
  100% { box-shadow: 0 0 0 0 rgba(122,158,135,0); }
}
@media (max-width: 640px) {
  .tour-launch-btn { left: 1rem; bottom: 1rem; padding: 0.6rem 1rem 0.6rem 0.85rem; font-size: 0.76rem; }
}

.tour-mask {
  position: fixed;
  inset: 0;
  z-index: 900;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.tour-mask.tour-hidden { opacity: 0; pointer-events: none; }

.tour-spotlight {
  position: fixed;
  border-radius: 16px;
  box-shadow: 0 0 0 9999px rgba(16, 22, 18, 0.62);
  transition: top 0.45s cubic-bezier(.2,.8,.2,1), left 0.45s cubic-bezier(.2,.8,.2,1),
              width 0.45s cubic-bezier(.2,.8,.2,1), height 0.45s cubic-bezier(.2,.8,.2,1);
  z-index: 901;
  pointer-events: none;
}
.tour-spotlight::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 19px;
  border: 1.5px solid rgba(200,221,208,0.85);
}

.tour-card {
  position: fixed;
  z-index: 902;
  max-width: 320px;
  background: #FBFCFA;
  border-radius: 16px;
  padding: 1.35rem 1.5rem 1.25rem;
  box-shadow: 0 24px 60px rgba(20,30,24,0.32);
  transition: top 0.45s cubic-bezier(.2,.8,.2,1), left 0.45s cubic-bezier(.2,.8,.2,1);
  font-family: var(--sans, -apple-system, sans-serif);
}
.tour-card-step {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage, #7A9E87);
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.tour-card-title {
  font-family: var(--serif, Georgia, serif);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--ink, #1E2820);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}
.tour-card-body {
  font-size: 0.85rem;
  color: #555f57;
  line-height: 1.6;
  font-weight: 300;
  margin-bottom: 1.1rem;
}
.tour-card-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.tour-dots { display: flex; gap: 0.4rem; }
.tour-dots span {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(122,158,135,0.3);
  transition: background 0.2s ease, transform 0.2s ease;
}
.tour-dots span.active { background: var(--sage, #7A9E87); transform: scale(1.3); }
.tour-btn-group { display: flex; gap: 0.5rem; }
.tour-btn {
  border: none;
  border-radius: 100px;
  padding: 0.45rem 0.95rem;
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}
.tour-btn-next { background: var(--sage, #7A9E87); color: #fff; }
.tour-btn-next:hover { background: #6a8c77; transform: translateY(-1px); }
.tour-btn-back { background: transparent; color: #7d867e; padding: 0.45rem 0.6rem; }
.tour-btn-back:hover { color: var(--ink, #1E2820); }
.tour-card-close {
  position: absolute;
  top: 0.7rem; right: 0.85rem;
  background: none; border: none;
  font-size: 1rem; line-height: 1;
  color: #a8b2a9; cursor: pointer;
  padding: 0.2rem;
}
.tour-card-close:hover { color: var(--ink, #1E2820); }

@media (max-width: 640px) {
  .tour-card { max-width: calc(100vw - 2rem); }
}

@media (prefers-reduced-motion: reduce) {
  .tour-spotlight, .tour-card { transition: none; }
  .tour-launch-btn .tour-dot { animation: none; }
}
