/* DeviceTour — the brand-new-device onboarding walkthrough. Self-contained
   (like hero-display/), so it works without the Tailwind build. Colours mirror
   the site's terracotta primary + neutral palette. */

.bs-tour {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 220ms ease;
  --bs-t-primary: #c16e4f;
  --bs-t-primary-600: #a8593b;
  --bs-t-ink: #1c1917;
  --bs-t-soft: #57534e;
  --bs-t-muted: #78716c;
  --bs-t-line: #e7e5e4;
  font-family: "Inter", system-ui, sans-serif;
}
.bs-tour.is-open { opacity: 1; visibility: visible; }

.bs-tour-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(28, 25, 23, 0.55);
  backdrop-filter: blur(3px);
}

.bs-tour-card {
  position: relative;
  width: 100%;
  max-width: 1200px;
  max-height: calc(100vh - 40px);
  overflow: auto;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(28, 25, 23, 0.32);
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  transform: translateY(8px) scale(0.99);
  transition: transform 220ms ease;
}
.bs-tour.is-open .bs-tour-card { transform: none; }
@media (max-width: 760px) {
  .bs-tour-card { grid-template-columns: 1fr; max-width: 460px; }
}

/* Device column — the interactive replica on a soft stage. */
.bs-tour-device {
  background: radial-gradient(120% 100% at 50% 0%, #f5f5f4 0%, #e7e5e4 100%);
  padding: 40px 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 24px 0 0 24px;
}
@media (max-width: 760px) {
  .bs-tour-device { border-radius: 24px 24px 0 0; padding: 24px 24px 6px; }
}
.bs-tour-device .bs-replica { max-width: 560px; }

/* Content column. */
.bs-tour-content {
  padding: 44px 44px 30px;
  display: flex;
  flex-direction: column;
  min-height: 440px;
}
@media (max-width: 760px) { .bs-tour-content { padding: 22px 22px 20px; min-height: 0; } }

.bs-tour-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--bs-t-primary-600);
}
.bs-tour-eyebrow .dot {
  width: 7px; height: 7px; border-radius: 999px; background: var(--bs-t-primary);
}
.bs-tour-title {
  font-size: 1.9rem;
  line-height: 1.14;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: var(--bs-t-ink);
  margin: 14px 0 0;
}
.bs-tour-body {
  font-size: 1.05rem;
  line-height: 1.62;
  color: var(--bs-t-soft);
  margin: 14px 0 0;
  max-width: 34em;
}

/* "Try it" hint chip. */
.bs-tour-hint {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 18px;
  padding: 9px 13px;
  border-radius: 12px;
  background: #faf0eb;
  border: 1px solid #f4dbcf;
  color: #8a4730;
  font-size: 0.86rem;
  font-weight: 500;
  align-self: flex-start;
  transition: background 160ms ease, color 160ms ease;
}
.bs-tour-hint.is-hidden { display: none; }
.bs-tour-hint.is-done {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #065f46;
}
.bs-tour-hint svg { width: 16px; height: 16px; flex-shrink: 0; }

/* Panel action button (e.g. "Show the next stop"). */
.bs-tour-action { margin-top: 18px; }
.bs-tour-action:empty { margin-top: 0; }
.bs-tour-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 600 0.92rem "Inter", system-ui, sans-serif;
  padding: 11px 20px;
  border-radius: 12px;
  border: 1px solid #f4dbcf;
  background: #faf0eb;
  color: #8a4730;
  cursor: pointer;
  transition: background 140ms ease, transform 90ms ease;
}
.bs-tour-action-btn:hover { background: #f4dbcf; }
.bs-tour-action-btn:active { transform: translateY(1px); }

/* Footer — progress dots + nav. */
.bs-tour-footer {
  margin-top: auto;
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.bs-tour-dots { display: inline-flex; gap: 7px; }
.bs-tour-dots i {
  width: 7px; height: 7px; border-radius: 999px; background: var(--bs-t-line);
  transition: background 160ms ease, width 160ms ease;
}
.bs-tour-dots i.is-active { background: var(--bs-t-primary); width: 18px; }

.bs-tour-nav { display: inline-flex; gap: 8px; }
.bs-tour-btn {
  font: 500 0.9rem "Inter", system-ui, sans-serif;
  padding: 9px 18px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 140ms ease, border-color 140ms ease, opacity 140ms ease;
}
.bs-tour-btn-primary { background: var(--bs-t-primary); color: #fff; }
.bs-tour-btn-primary:hover { background: var(--bs-t-primary-600); }
.bs-tour-btn-ghost { background: transparent; color: var(--bs-t-soft); border-color: var(--bs-t-line); }
.bs-tour-btn-ghost:hover { background: #f5f5f4; }
.bs-tour-btn:disabled { opacity: 0; pointer-events: none; }

.bs-tour-skip {
  position: absolute;
  top: 14px; right: 16px;
  z-index: 2;
  background: rgba(255,255,255,0.7);
  border: 1px solid var(--bs-t-line);
  color: var(--bs-t-muted);
  font: 500 0.8rem "Inter", system-ui, sans-serif;
  padding: 5px 12px;
  border-radius: 999px;
  cursor: pointer;
}
.bs-tour-skip:hover { background: #fff; color: var(--bs-t-ink); }

@media (prefers-reduced-motion: reduce) {
  .bs-tour, .bs-tour-card, .bs-tour-hint, .bs-tour-dots i, .bs-tour-btn { transition: none; }
}
