/* Marketing Center — product tour (public/tour/tour.js).
   Look + motion ported from the Otto contractor-site tour: soft spotlight
   ring that glides between targets, rounded card with step dots and pill
   buttons, phone bottom sheet. Inter body, Manrope headings (fonts.css). */
.lt-root {
  --lt-accent: #186dec; --lt-accent-hover: #0e4caa; --lt-ink: #081728; --lt-ink2: #4a5563; --lt-ink3: #65707d;
  --lt-line: #e0e4ea; --lt-surface: #fff; --lt-s3: #f2f4f7; --lt-scrim: rgba(8, 23, 40, 0.45);
  --lt-ease: cubic-bezier(.2, .8, .2, 1);
  position: fixed; inset: 0; z-index: 2147483000; pointer-events: none;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  transition: opacity .2s ease;
}
.lt-root.lt-leaving { opacity: 0; }
.lt-catch { position: fixed; inset: 0; pointer-events: auto; background: transparent; transition: background-color .28s ease; }
.lt-catch.lt-dim { background: var(--lt-scrim); }

/* Spotlight ring: accent outline + soft halo + scrim. It glides (top/left/
   width/height) only while a step changes; otherwise it tracks the target
   1:1 so it never lags behind a scroll. */
.lt-ring {
  position: fixed; top: 0; left: 0; width: 0; height: 0; border-radius: 14px; pointer-events: none;
  box-shadow: 0 0 0 2px var(--lt-accent), 0 0 0 6px rgba(24, 109, 236, 0.25), 0 0 0 9999px var(--lt-scrim);
  transition: opacity .25s ease;
}
.lt-ring.lt-ring-off { opacity: 0; }
.lt-glide .lt-ring { transition: top .38s var(--lt-ease), left .38s var(--lt-ease), width .38s var(--lt-ease), height .38s var(--lt-ease), opacity .25s ease; }

/* Card */
.lt-card {
  position: fixed; top: -9999px; left: -9999px; width: 340px; max-width: calc(100vw - 24px); box-sizing: border-box;
  background: var(--lt-surface); color: var(--lt-ink); border: 1px solid var(--lt-line); border-radius: 20px;
  box-shadow: 0 2px 4px rgba(8, 23, 40, 0.06), 0 12px 32px rgba(8, 23, 40, 0.18);
  padding: 18px 20px 16px; pointer-events: auto;
}
.lt-card:focus { outline: none; }
.lt-card.lt-out { opacity: 0; pointer-events: none; transition: opacity .12s ease; }
.lt-card.lt-rise { animation: lt-rise .26s var(--lt-ease) both; }
@keyframes lt-rise { from { opacity: 0; transform: translateY(6px) scale(.985); } to { opacity: 1; transform: none; } }

.lt-progress { display: flex; align-items: center; gap: 10px; }
.lt-dots { display: flex; align-items: center; gap: 5px; }
.lt-dot { width: 6px; height: 6px; border-radius: 999px; background: var(--lt-line); transition: width .25s var(--lt-ease), background-color .25s ease; }
.lt-dot.done { background: #b9cdf0; }
.lt-dot.on { width: 20px; background: var(--lt-accent); }
.lt-count { font-size: 13px; color: var(--lt-ink3); font-variant-numeric: tabular-nums; }
.lt-title { font-family: 'Manrope', 'Inter', system-ui, sans-serif; font-weight: 700; font-size: 18px; line-height: 1.3; letter-spacing: -0.01em; color: var(--lt-ink); margin: 12px 0 6px; }
.lt-body { font-size: 14.5px; line-height: 1.55; color: var(--lt-ink2); margin: 0; }
.lt-foot { display: flex; align-items: center; gap: 8px; margin-top: 16px; }
.lt-spacer { flex: 1 1 auto; }

/* Pill buttons (Otto .btn-sm / .btn-primary / .btn-ghost) */
.lt-btn {
  display: inline-flex; align-items: center; justify-content: center; height: 36px; padding: 0 16px; border-radius: 999px;
  font-family: inherit; font-size: 14px; font-weight: 600; line-height: 1; white-space: nowrap; cursor: pointer;
  border: 1px solid transparent; background: transparent; color: var(--lt-ink);
  transition: background-color .15s var(--lt-ease), color .15s ease, transform .15s var(--lt-ease), box-shadow .15s ease;
}
.lt-btn:active { transform: scale(.98); }
.lt-btn:disabled { opacity: .5; pointer-events: none; }
.lt-btn:focus-visible { outline: 3px solid rgba(24, 109, 236, 0.35); outline-offset: 2px; }
.lt-btn-primary {
  background-color: var(--lt-accent); color: #fff;
  background-image: radial-gradient(120% 90% at 12% 8%, rgba(255, 255, 255, .20), rgba(255, 255, 255, 0) 55%);
  box-shadow: inset 1px 1px 0 rgba(255, 255, 255, .22), 0 2px 10px -2px rgba(24, 109, 236, .55);
}
.lt-btn-primary:hover { background-color: var(--lt-accent-hover); }
.lt-btn-ghost { border-color: var(--lt-line); background: var(--lt-surface); }
.lt-btn-ghost:hover { background: var(--lt-s3); }
.lt-btn-text { padding: 0 10px; margin-left: -10px; color: var(--lt-ink2); font-weight: 500; }
.lt-btn-text:hover { color: var(--lt-ink); background: var(--lt-s3); }

/* "One moment…" pill while the tour does work between steps (delayed, so
   quick steps never flash it). */
.lt-status {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 8px);
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  background: var(--lt-surface); color: var(--lt-ink2); font-size: 13px; font-weight: 500;
  box-shadow: 0 8px 24px rgba(8, 23, 40, 0.18); opacity: 0; pointer-events: none;
  transition: opacity .15s ease, transform .15s ease;
}
.lt-status-skip { margin-left: 4px; padding: 4px 10px; border: 0; border-radius: 999px; background: #f2f4f7; color: #081728; font: inherit; font-weight: 600; cursor: pointer; }
.lt-status-skip:hover { background: #e0e4ea; }
.lt-root.is-busy .lt-status { pointer-events: auto; opacity: 1; transform: translate(-50%, 0); transition: opacity .2s ease .45s, transform .2s var(--lt-ease) .45s; }
.lt-spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--lt-line); border-top-color: var(--lt-accent); animation: lt-spin .8s linear infinite; }
@keyframes lt-spin { to { transform: rotate(360deg); } }

/* Phone: the card is a bottom sheet (Otto phone sheet). */
@media (max-width: 480px) {
  .lt-card {
    top: auto !important; left: 0 !important; right: 0; bottom: 0; width: auto; max-width: none; max-height: 46vh; overflow-y: auto;
    border-radius: 24px 24px 0 0; border-bottom: 0; padding: 16px 20px calc(16px + env(safe-area-inset-bottom, 0px));
  }
  .lt-card.lt-rise { animation-name: lt-sheet; }
  @keyframes lt-sheet { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
  .lt-title { font-size: 17px; margin-top: 10px; }
  .lt-body { font-size: 14px; }
  .lt-btn { height: 44px; }
  /* room to scroll a page's last block above the sheet */
  html.lt-phone-room body::after { content: ""; display: block; height: 50vh; }
}

/* Floating launcher, bottom-left on every page. */
.lt-fab {
  position: fixed; z-index: 2147482500;
  left: calc(20px + env(safe-area-inset-left, 0px)); bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px 0 14px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12); background: #081728; color: #fff; cursor: pointer;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif; font-size: 14px; font-weight: 600; line-height: 1;
  box-shadow: 0 2px 4px rgba(8, 23, 40, 0.12), 0 10px 28px rgba(8, 23, 40, 0.28);
  transition: transform .2s cubic-bezier(.2, .8, .2, 1), box-shadow .2s ease, opacity .2s ease, background-color .15s ease;
}
.lt-fab svg { color: #ffcf23; flex: none; }
.lt-fab:hover { transform: translateY(-1px); background: #0e2240; box-shadow: 0 4px 8px rgba(8, 23, 40, 0.14), 0 14px 32px rgba(8, 23, 40, 0.32); }
.lt-fab:active { transform: scale(.98); }
.lt-fab:focus-visible { outline: 3px solid rgba(255, 207, 35, 0.6); outline-offset: 3px; }
.lt-fab.lt-fab-hidden, .lt-fab.lt-fab-toast { opacity: 0; transform: translateY(8px); pointer-events: none; visibility: hidden; transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s; }
@media (max-width: 480px) { .lt-fab { left: calc(16px + env(safe-area-inset-left, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); height: 42px; font-size: 13.5px; } }
@media print { .lt-fab { display: none; } }

/* First-launch welcome modal (centered, dimmed backdrop, same card language as the tour) */
.lt-welcome {
  --lt-accent: #186dec; --lt-accent-hover: #0e4caa; --lt-ink: #081728; --lt-ink2: #4a5563; --lt-ink3: #65707d;
  --lt-line: #e0e4ea; --lt-surface: #fff; --lt-s3: #f2f4f7; --lt-ease: cubic-bezier(.2, .8, .2, 1);
  position: fixed; inset: 0; z-index: 2147482800; display: flex; align-items: center; justify-content: center;
  padding: 24px; box-sizing: border-box; background: rgba(8, 23, 40, 0.5);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  animation: lt-fade .22s ease both; transition: opacity .2s ease;
}
.lt-welcome.lt-leaving { opacity: 0; }
@keyframes lt-fade { from { opacity: 0; } to { opacity: 1; } }
.lt-welcome-card {
  width: 460px; max-width: 100%; max-height: 100%; overflow-y: auto; box-sizing: border-box;
  background: var(--lt-surface); color: var(--lt-ink); border: 1px solid var(--lt-line); border-radius: 24px;
  box-shadow: 0 2px 4px rgba(8, 23, 40, 0.06), 0 24px 64px rgba(8, 23, 40, 0.28);
  padding: 30px 30px 24px; text-align: left; animation: lt-rise .3s var(--lt-ease) both;
}
.lt-welcome-logo { display: block; height: 38px; width: auto; margin: 0 0 20px; }
.lt-welcome-title { font-family: 'Manrope', 'Inter', system-ui, sans-serif; font-weight: 700; font-size: 23px; line-height: 1.25; letter-spacing: -0.015em; color: var(--lt-ink); margin: 0 0 12px; }
.lt-welcome-body p { font-size: 15px; line-height: 1.6; color: var(--lt-ink2); margin: 0 0 10px; }
.lt-welcome-body p:first-child { color: var(--lt-ink); font-weight: 600; }
.lt-welcome-body .lt-welcome-note strong { font-weight: 700; color: var(--lt-ink); }
.lt-welcome-body .lt-welcome-note { font-size: 13.5px; color: var(--lt-ink3); margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--lt-line); }
.lt-welcome-foot { display: flex; gap: 10px; margin-top: 22px; }
.lt-welcome-foot .lt-btn { flex: 1 1 0; height: 44px; padding: 0 14px; }
@media (max-width: 480px) {
  .lt-welcome { padding: 16px; }
  .lt-welcome-card { padding: 24px 22px 20px; border-radius: 22px; }
  .lt-welcome-logo { height: 32px; margin-bottom: 16px; }
  .lt-welcome-title { font-size: 21px; }
  .lt-welcome-body p { font-size: 14.5px; }
  .lt-welcome-foot { flex-direction: column-reverse; gap: 8px; }
  .lt-welcome-foot .lt-btn { flex: none; width: 100%; }
}
@media print { .lt-welcome { display: none; } }

