/* GSV guided tour — spotlight + coach-mark card. No dependencies. */

:root {
  --tour-accent: #1f5fbf;
  --tour-accent-ink: #ffffff;
  --tour-card-bg: #ffffff;
  --tour-card-ink: #1d2330;
  --tour-muted: #5c6475;
  --tour-dot: #c9cfdb;
  --tour-scrim: rgba(10, 16, 30, 0.62);
}

.gsv-tour-blocker {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: transparent;
}

.gsv-tour-blocker.is-centered {
  background: var(--tour-scrim);
}

.gsv-tour-spot {
  position: fixed;
  z-index: 10001;
  border-radius: 10px;
  box-shadow: 0 0 0 9999px var(--tour-scrim), 0 0 0 3px var(--tour-accent) inset;
  pointer-events: none;
  transition: top .35s ease, left .35s ease, width .35s ease, height .35s ease, opacity .2s;
}

.gsv-tour-spot.is-hidden {
  opacity: 0;
}

.gsv-tour-card {
  position: fixed;
  z-index: 10002;
  width: min(360px, calc(100vw - 32px));
  box-sizing: border-box;
  padding: 20px 20px 16px;
  background: var(--tour-card-bg);
  color: var(--tour-card-ink);
  border-radius: 14px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .35);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.4;
  transition: top .35s ease, left .35s ease, opacity .2s, transform .2s;
}

.gsv-tour-card.is-entering {
  opacity: 0;
  transform: translateY(6px);
}

.gsv-tour-card h3 {
  margin: 0 28px 8px 0;
  font-size: 19px;
  line-height: 1.2;
}

.gsv-tour-card p {
  margin: 0 0 8px;
}

.gsv-tour-card .gsv-tour-hint {
  color: var(--tour-muted);
  font-size: 13.5px;
}

.gsv-tour-card img.gsv-tour-icon {
  height: 1.3em;
  vertical-align: middle;
}

.gsv-tour-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--tour-muted);
  font-size: 22px;
  line-height: 30px;
  cursor: pointer;
}

.gsv-tour-close:hover,
.gsv-tour-close:focus-visible {
  background: #eef1f6;
  color: var(--tour-card-ink);
}

.gsv-tour-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
}

.gsv-tour-dots {
  display: flex;
  gap: 6px;
  flex: 1;
}

.gsv-tour-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--tour-dot);
  transition: width .25s, background .25s;
}

.gsv-tour-dots span.is-active {
  width: 20px;
  border-radius: 4px;
  background: var(--tour-accent);
}

.gsv-tour-btn {
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 8px 14px;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

.gsv-tour-btn.is-primary {
  background: var(--tour-accent);
  color: var(--tour-accent-ink);
}

.gsv-tour-btn.is-primary:hover {
  filter: brightness(1.1);
}

.gsv-tour-btn.is-ghost {
  background: transparent;
  color: var(--tour-muted);
}

.gsv-tour-btn.is-ghost:hover {
  color: var(--tour-card-ink);
  border-color: var(--tour-dot);
}

.gsv-tour-btn:focus-visible,
.gsv-tour-launch:focus-visible {
  outline: 3px solid var(--tour-accent);
  outline-offset: 2px;
}

/* Floating "Take the tour" button */
.gsv-tour-launch {
  position: fixed;
  left: 14px;
  bottom: 14px;
  z-index: 9000;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px 8px 8px;
  border: 0;
  border-radius: 999px;
  background: var(--tour-accent);
  color: var(--tour-accent-ink);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  cursor: pointer;
}

.gsv-tour-launch::before {
  content: "?";
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .25);
  font-weight: bold;
}

.gsv-tour-launch.is-right {
  left: auto;
  right: 14px;
}

.gsv-tour-launch:hover {
  filter: brightness(1.1);
}

@media (prefers-reduced-motion: reduce) {
  .gsv-tour-spot,
  .gsv-tour-card,
  .gsv-tour-dots span {
    transition: none;
  }
}
