/* Tugon guided tour (public/js/tour.js). Light card on a dimmed page; a dark card in the resident dark theme. */
.pbt {
  --pbt-bg: #FFFFFF; --pbt-ink: #022127; --pbt-muted: #485B5F; --pbt-line: #D9E2E5;
  --pbt-brand: #006E7F; --pbt-brand-hover: #005563; --pbt-tint: #E2EEF2;
  position: fixed; inset: 0; z-index: 3000; font-family: 'Host Grotesk', 'Segoe UI', system-ui, Arial, sans-serif;
}
html[data-theme="dark"] .pbt {
  --pbt-bg: #1A2021; --pbt-ink: #F0F1F3; --pbt-muted: #B2B9BA; --pbt-line: #333B3C;
  --pbt-brand: #00A5B2; --pbt-brand-hover: #00BACB; --pbt-tint: #193033;
}
.pbt-blocker { position: absolute; inset: 0; }

/* The highlight: a clear window cut out of the dimmed page */
.pbt-spot {
  position: fixed; pointer-events: none; border-radius: 14px;
  box-shadow: 0 0 0 9999px rgba(3,13,16, .62), 0 0 0 3px rgba(255, 255, 255, .9), 0 0 0 7px rgba(0,165,178, .45);
  transition: top .35s cubic-bezier(.22,.68,0,1), left .35s cubic-bezier(.22,.68,0,1), width .35s cubic-bezier(.22,.68,0,1),
              height .35s cubic-bezier(.22,.68,0,1), border-radius .35s;
}
.pbt-spot.is-none { top: 50% !important; left: 50% !important; width: 0 !important; height: 0 !important; box-shadow: 0 0 0 9999px rgba(3,13,16, .62); }

/* The step card */
.pbt-pop {
  position: fixed; width: 340px; max-width: calc(100vw - 24px); padding: 20px 20px 16px;
  background: var(--pbt-bg); color: var(--pbt-ink); border: 1px solid var(--pbt-line); border-radius: 16px;
  box-shadow: 0 24px 60px rgba(1,11,14, .35);
  transition: top .35s cubic-bezier(.22,.68,0,1), left .35s cubic-bezier(.22,.68,0,1);
}
.pbt-pop.pbt-in { animation: pbtIn .32s cubic-bezier(.22,.68,0,1); }
@keyframes pbtIn { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
.pbt-pop.is-center { left: 50%; top: 50%; width: 400px; transform: translate(-50%, -50%); text-align: center; padding: 28px 26px 18px; }
.pbt-pop.is-center.pbt-in { animation: pbtInCenter .38s cubic-bezier(.22,.68,0,1); }
@keyframes pbtInCenter { from { opacity: 0; transform: translate(-50%, -46%) scale(.96); } to { opacity: 1; transform: translate(-50%, -50%); } }
.pbt-pop.is-center .pbt-icon { margin: 0 auto 12px; width: 56px; height: 56px; font-size: 28px; border-radius: 16px; }
.pbt-pop.is-center .pbt-foot { justify-content: center; }
.pbt-pop.is-center .pbt-dots { display: none; }

.pbt-x { position: absolute; top: 10px; right: 10px; width: 32px; height: 32px; border: 0; border-radius: 8px; background: transparent;
  color: var(--pbt-muted); display: grid; place-items: center; font-size: 18px; cursor: pointer; }
.pbt-x:hover { background: var(--pbt-tint); color: var(--pbt-ink); }
.pbt-icon { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 10px; border-radius: 11px;
  background: var(--pbt-tint); color: var(--pbt-brand); font-size: 21px; }
.pbt-count { font-size: 12.5px; font-weight: 700; color: var(--pbt-brand); letter-spacing: .02em; margin-bottom: 4px; }
.pbt-title { font-size: 18px; font-weight: 800; letter-spacing: -.01em; line-height: 1.25; margin: 0 0 6px; color: var(--pbt-ink); padding-right: 24px; }
.pbt-pop.is-center .pbt-title { font-size: 21px; padding: 0; }
.pbt-text { font-size: 14.5px; line-height: 1.55; color: var(--pbt-muted); margin: 0; }
.pbt-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.pbt-pop.is-center .pbt-links { justify-content: center; }

.pbt-foot { display: flex; align-items: center; gap: 8px; margin-top: 16px; }
.pbt-dots { display: flex; gap: 5px; margin-right: auto; }
.pbt-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--pbt-line); transition: width .25s, background-color .25s; }
.pbt-dots i.past { background: color-mix(in srgb, var(--pbt-brand) 45%, var(--pbt-line)); }
.pbt-dots i.on { width: 20px; border-radius: 4px; background: var(--pbt-brand); }

.pbt-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 0 16px; border-radius: 10px;
  font: inherit; font-size: 14px; font-weight: 700; text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: background-color .15s, color .15s; }
.pbt-primary { background: var(--pbt-brand); color: #fff; }
.pbt-primary:hover { background: var(--pbt-brand-hover); color: #fff; }
.pbt-ghost { background: transparent; color: var(--pbt-ink); border-color: var(--pbt-line); }
.pbt-ghost:hover { background: var(--pbt-tint); color: var(--pbt-ink); }
.pbt :focus-visible { outline: 2px solid var(--pbt-brand); outline-offset: 2px; }

/* Phones: a sheet pinned to the bottom (or top when the highlight is low) */
.pbt-pop.is-sheet { left: 12px !important; right: 12px; width: auto; max-width: none; transform: none; text-align: left; padding: 18px 18px 14px; }
.pbt-pop.is-sheet.is-bottom { top: auto !important; bottom: calc(12px + env(safe-area-inset-bottom)); }
.pbt-pop.is-sheet.is-top { top: 12px !important; bottom: auto; }
.pbt-pop.is-sheet.pbt-in { animation: pbtIn .3s cubic-bezier(.22,.68,0,1); }
.pbt-pop.is-sheet.is-center .pbt-icon { margin: 0 0 10px; }
.pbt-pop.is-sheet.is-center .pbt-foot, .pbt-pop.is-sheet.is-center .pbt-links { justify-content: flex-start; }
.pbt-pop.is-sheet .pbt-foot .pbt-btn { flex: 1 1 auto; }

.pbt.pbt-out { opacity: 0; transition: opacity .2s; }

@media (prefers-reduced-motion: reduce) {
  .pbt-spot, .pbt-pop { transition: none; animation: none !important; }
}
html.reduce-motion .pbt-spot, html.reduce-motion .pbt-pop { transition: none; animation: none !important; }
