/* /demo/, the product tour (Nov 26, 2026). The app's kit screens on sample
   data. Colours and type come from tokens.css (the app's own tokens), so the
   tour looks like the app. Every class is prefixed lt- so nothing here meets
   Bootstrap's .row, .btn, .badge or .toast.

   Dec 1 2026 (Dean): the tour is the page itself. No phone frame and no box
   that scrolls inside the page (that gave phones a double scroll). The stop
   chips stick under the site header, Back/Next stick to the bottom, and the
   sheets, menu and toast are fixed to the viewport. From 992px the stop list
   sits on the left and the screen takes the rest of the width. The board
   with the two asks sits under the tour. */

.lt-stage { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "phone" "guide"; gap: 12px; }
.lt-head { grid-area: head; min-width: 0; }
.lt-guide { grid-area: guide; min-width: 0; }
.lt-h1 { margin-bottom: 8px; font-size: 30px; }
.lt-lede { display: none; }
.lt-hint { margin: 0; padding: 10px 14px; border-radius: 10px; background: var(--surface); border: 1px solid var(--panel-border); color: var(--text-2); font-size: 15px; }
.lt-hint b { color: var(--ink); font-weight: 600; }
.lt-steps { display: none; list-style: none; margin: 0; padding: 0; }
.lt-note { margin: 0; font-size: 13px; color: var(--muted); }

.lt-phone { grid-area: phone; min-width: 0; }
.lt-screen {
  position: relative; display: flex; flex-direction: column;
  background: var(--ground); border-radius: 14px;
  box-shadow: 0 0 0 1px var(--panel-border), 0 1px 2px rgba(35, 32, 25, .05);
  font-family: var(--font-ui); font-size: 14px; line-height: 1.5; color: var(--ink);
}

@media (min-width: 992px) {
  .lt-stage { grid-template-columns: 260px minmax(0, 1fr); grid-template-areas: "head head" "guide phone"; gap: 20px 32px; align-items: start; }
  .lt-lede { display: block; max-width: 720px; margin: 0; }
  .lt-hint { display: none; }
  .lt-guide { position: sticky; top: 92px; }
  .lt-note { margin: 16px 12px 0; }
  .lt-steps { display: grid; gap: 2px; }
  .lt-steps button { width: 100%; display: flex; gap: 12px; align-items: baseline; text-align: left; border: 0; border-radius: 8px; background: none; padding: 8px 12px; color: var(--text-2); }
  .lt-steps button:hover { background: var(--mist); }
  .lt-steps button[aria-current="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(35, 32, 25, .05), 0 0 0 1px var(--panel-border); }
  .lt-steps button:not([aria-current="true"]) .lt-steps__d { display: none; }
  .lt-steps__n { width: 18px; flex: none; font-size: 12px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
  .lt-steps__t { display: block; font-weight: 600; color: var(--ink); }
  .lt-steps__d { display: block; font-size: 14px; color: var(--muted); }
}

/* :where() keeps these at element weight, so .lt-btn and .lt-link colours win. */
:where(.lt-screen) :is(button, input, select) { font: inherit; color: inherit; }
:where(.lt-screen) button { cursor: pointer; }
.lt-screen :focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.lt-num { font-variant-numeric: tabular-nums; }
.lt-id { font-family: var(--family-mono); font-size: .92em; letter-spacing: -.01em; color: var(--muted); }

/* app chrome */
.lt-topbar { flex: none; display: flex; align-items: center; gap: 8px; padding: 8px 14px 8px 10px; background: var(--surface); border-bottom: 1px solid var(--rule); }
/* The site header already carries the logo and menu, so the app's own top
   bar stays hidden here; the stop chips do its job. */
.lt-statusbar, .lt-topbar { display: none; }
.lt-iconbtn { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 8px; background: none; color: var(--text-2); }
.lt-iconbtn:hover { background: var(--mist); }
.lt-iconbtn svg { width: 20px; height: 20px; }
.lt-wordmark { flex: 1; display: flex; align-items: center; gap: 8px; font-family: var(--family-wordmark); font-weight: 600; font-size: 17px; letter-spacing: .005em; }
.lt-badge { position: absolute; top: 4px; right: 4px; min-width: 16px; height: 16px; padding: 0 4px; display: grid; place-items: center; border-radius: 999px; background: var(--warn-bg); color: var(--warn-text); font-size: 10px; font-weight: 600; box-shadow: 0 0 0 2px var(--surface); }
.lt-chips { position: sticky; top: 64px; z-index: 5; border-radius: 14px 14px 0 0; flex: none; display: flex; gap: 6px; overflow-x: auto; padding: 10px 12px; background: var(--surface); border-bottom: 1px solid var(--rule); scrollbar-width: none; }
.lt-chips::-webkit-scrollbar { display: none; }
.lt-chip { flex: none; white-space: nowrap; padding: 6px 12px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); font-size: 13px; font-weight: 500; color: var(--text-2); }
.lt-chip[aria-current="true"] { background: var(--primary-tint); border-color: transparent; color: var(--ink); }
.lt-work { flex: 1; min-height: 60svh; padding: 16px 14px 24px; display: flex; flex-direction: column; gap: 14px; }
.lt-work > * { flex: none; min-width: 0; }
.lt-ctx { margin: 0; font-size: 13px; color: var(--muted); }
.lt-sub { margin-top: 4px; }
.lt-title { margin: 2px 0 0; font-size: 22px; font-weight: 600; line-height: 1.2; letter-spacing: -.02em; }
.lt-panel { overflow: hidden; background: var(--surface); border: 1px solid var(--panel-border); border-radius: 12px; box-shadow: 0 1px 2px rgba(35, 32, 25, .05), 0 1px 1px rgba(35, 32, 25, .03); }
.lt-phead { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--rule); }
.lt-phead h3 { margin: 0; font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.lt-meta { font-size: 12px; color: var(--muted); }
.lt-rows { list-style: none; margin: 0; padding: 0; }
.lt-row { display: flex; gap: 10px; align-items: flex-start; padding: 12px 16px; border-top: 1px solid var(--row-rule); }
.lt-row:first-child { border-top: 0; }
.lt-row--plain { padding: 0; border: 0; }
.lt-main { flex: 1; min-width: 0; }
.lt-t { font-weight: 500; }
.lt-s { font-size: 13px; color: var(--muted); }
.lt-end { display: grid; gap: 6px; justify-items: end; text-align: right; white-space: nowrap; }
.lt-unit { width: 32px; flex: none; }
.lt-status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.lt-status::before { content: ""; width: 7px; height: 7px; flex: none; border-radius: 50%; background: currentColor; }
.lt-status--wrap { white-space: normal; margin-top: 2px; }
.lt-ok { color: var(--success-text); } .lt-ok::before { background: var(--success-dot); }
.lt-warn { color: var(--warn-text); } .lt-warn::before { background: var(--warn-dot); }
.lt-bad { color: var(--danger-text); }
.lt-off { color: var(--muted); } .lt-off::before { background: var(--decorative); }
.lt-new { color: var(--primary); } .lt-new::before { background: var(--accent); }
.lt-link { padding: 0; border: 0; background: none; color: var(--primary); font-size: 13px; font-weight: 500; }
.lt-link:hover { text-decoration: underline; }
.lt-btn { min-height: 40px; padding: 9px 14px; border: 1px solid transparent; border-radius: 8px; font-size: 14px; font-weight: 500; }
.lt-btn--primary { background: var(--primary); color: var(--surface); }
.lt-btn--primary:hover { background: var(--primary-hover); }
.lt-btn--secondary { background: var(--surface); border-color: var(--panel-border); color: var(--ink); }
.lt-btn--secondary:hover { background: var(--mist); }
.lt-btn--sm { min-height: 32px; padding: 5px 10px; font-size: 13px; border-radius: 6px; }
.lt-btn:disabled { opacity: .5; cursor: default; }
.lt-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.lt-pad { padding: 0 16px 14px; }
.lt-mt { margin-top: 10px; }
.lt-gap { height: 8px; }

.lt-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lt-metric { padding: 14px 12px 14px 16px; border-left: 1px solid var(--rule); }
.lt-metric:first-child { border-left: 0; }
.lt-metric__l { font-size: 12px; font-weight: 500; color: var(--muted); }
.lt-metric__v { font-size: 20px; font-weight: 600; line-height: 1.2; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.lt-metric__n { font-size: 12px; color: var(--muted); }
.lt-bar { height: 6px; margin-top: 8px; overflow: hidden; border-radius: 999px; background: var(--track); }
.lt-bar i { display: block; height: 100%; border-radius: 999px; background: var(--decorative); }
.lt-att { border-left: 3px solid var(--warn-dot); }
.lt-att--red { border-left-color: var(--danger-dot); }
.lt-date { width: 54px; flex: none; padding-top: 1px; white-space: nowrap; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--text-2); font-variant-numeric: tabular-nums; }
.lt-seg { display: flex; gap: 3px; padding: 3px; border-radius: 8px; background: var(--mist); }
.lt-seg button { flex: 1; padding: 7px 8px; border: 0; border-radius: 6px; background: none; font-size: 13px; font-weight: 500; color: var(--text-2); }
.lt-seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(35, 32, 25, .08); }
.lt-kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0; padding: 12px 16px; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.lt-kv dt { font-weight: 400; color: var(--muted); }
.lt-kv dd { margin: 0; text-align: right; }
.lt-tablewrap { overflow-x: auto; }
.lt-screen table { width: 100%; border-collapse: collapse; font-size: 13px; }
.lt-screen th { padding: 8px 12px; text-align: left; white-space: nowrap; font-size: 12px; font-weight: 500; color: var(--muted); background: var(--surface-inset); border-bottom: 1px solid var(--rule); }
.lt-screen td { padding: 9px 12px; white-space: nowrap; border-bottom: 1px solid var(--row-rule); }
.lt-screen tr:last-child td { border-bottom: 0; }
.lt-screen .lt-r { text-align: right; font-variant-numeric: tabular-nums; }
.lt-screen tfoot td { font-weight: 600; background: var(--surface-inset); border-top: 1px solid var(--rule); }
.lt-math { margin-top: 8px; padding: 10px 12px; border: 1px solid var(--rule); border-radius: 8px; background: var(--surface-inset); font-size: 13px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.lt-math b { color: var(--ink); font-weight: 600; }
.lt-field { display: grid; gap: 4px; }
.lt-field label, .lt-field .lt-label { font-size: 13px; font-weight: 600; }
.lt-input { width: 100%; min-height: 40px; padding: 8px 10px; border: 1px solid var(--border-input); border-radius: 8px; background: var(--surface); font-size: 16px; }
.lt-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px var(--focus-halo); }
.lt-cost { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 8px 16px; font-variant-numeric: tabular-nums; }
.lt-cost .lt-bar { grid-column: 1 / -1; margin-top: 0; }
.lt-cost .lt-bar i { background: var(--accent); }
.lt-pick { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.lt-owe { color: var(--warn-text); } .lt-credit { color: var(--success-text); }
.lt-small { margin: 4px 0 0; text-align: center; font-size: 12px; color: var(--muted); }

/* bottom bar, sheet, drawer, toast */
.lt-foot { position: sticky; bottom: 0; z-index: 5; border-radius: 0 0 14px 14px; flex: none; display: flex; align-items: center; gap: 8px; padding: 10px 12px max(10px, env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--rule); }
.lt-where { flex: 1; text-align: center; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.lt-scrim { position: fixed; inset: 0; z-index: 20; background: var(--scrim); }
.lt-sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 21; display: flex; flex-direction: column; max-height: 85%; border-radius: 14px 14px 0 0; background: var(--surface); box-shadow: 0 12px 32px rgba(35, 32, 25, .18); animation: lt-up .22s ease-out; }
.lt-handle { width: 36px; height: 4px; margin: 8px auto 0; border-radius: 999px; background: var(--track); }
.lt-sh { display: flex; justify-content: space-between; align-items: center; padding: 10px 16px 12px; border-bottom: 1px solid var(--rule); }
.lt-sh h3 { margin: 0; font-size: 15px; font-weight: 600; }
.lt-sb { display: grid; gap: 12px; padding: 14px 16px; overflow-y: auto; }
.lt-sf { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--rule); }
.lt-drawer { position: fixed; top: 0; bottom: 0; left: 0; z-index: 21; width: 78%; display: flex; flex-direction: column; gap: 2px; padding: 16px 10px; background: var(--sidebar); box-shadow: 0 12px 32px rgba(35, 32, 25, .18); animation: lt-in .2s ease-out; }
.lt-org { margin-bottom: 8px; padding: 4px 10px 12px; border-bottom: 1px solid var(--sidebar-rule); font-size: 13px; color: var(--muted); }
.lt-org b { display: block; font-size: 14px; color: var(--ink); }
.lt-drawer button { position: relative; padding: 10px 12px; text-align: left; border: 0; border-radius: 8px; background: none; font-weight: 500; color: var(--text-2); }
.lt-drawer button:hover { background: var(--mist); }
.lt-drawer button[aria-current="true"] { background: var(--surface); color: var(--ink); }
.lt-drawer button[aria-current="true"]::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; border-radius: 2px; background: var(--accent); }
.lt-toast { position: fixed; left: 16px; right: 16px; bottom: 76px; max-width: 420px; margin: 0 auto; z-index: 30; display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 10px; background: var(--ink); color: var(--surface); font-size: 13.5px; box-shadow: 0 12px 32px rgba(35, 32, 25, .18); animation: lt-up .2s ease-out; }
.lt-toast::before { content: ""; width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--success-dot); }
.lt-flash { animation: lt-flash 1.4s ease-out; }
@keyframes lt-up { from { transform: translateY(16px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes lt-in { from { transform: translateX(-24px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes lt-flash { from { background: var(--primary-tint); } to { background: transparent; } }
@media (prefers-reduced-motion: reduce) { .lt-screen *, .lt-flash { animation: none !important; } }
.lt-rec { margin-top: 10px; padding: 10px 12px; border: 1px solid var(--row-rule); border-left: 3px solid var(--accent); border-radius: 8px; background: var(--primary-tint); }
.lt-rec b { display: block; font-size: 14px; }
.lt-rec__l { display: block; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--primary); }


@media (min-width: 576px) { .lt-sheet { width: min(480px, 100%); margin: 0 auto; } }
@media (min-width: 992px) {
  .lt-chips { display: none; }
  .lt-work { padding: 24px 28px 32px; }
}

/* Slideshow arrows (Dean, Dec 1 2026): a zero-height strip that sticks to
   the middle of the screen while the tour is in view, one round button on
   each side. They step through the stops like Back/Next. */
.lt-arrows { position: sticky; top: 50%; z-index: 6; height: 0; pointer-events: none; }
.lt-arrow { position: absolute; top: -20px; width: 40px; height: 40px; display: grid; place-items: center; padding: 0; border: 1px solid var(--panel-border); border-radius: 50%; background: var(--surface); color: var(--ink); box-shadow: 0 4px 12px rgba(35, 32, 25, .16); pointer-events: auto; opacity: .94; }
.lt-arrow svg { width: 20px; height: 20px; }
.lt-arrow:hover { background: var(--mist); }
.lt-arrow:disabled { opacity: 0; pointer-events: none; }
.lt-arrow--prev { left: -6px; } .lt-arrow--next { right: -6px; }
@media (min-width: 992px) {
  .lt-arrow { top: -24px; width: 48px; height: 48px; }
  .lt-arrow--prev { left: -24px; } .lt-arrow--next { right: -24px; }
}

/* The board under the tour: the two asks. It replaces the site's sticky
   "Book a demo" bar on this page, which would cover Back/Next on phones. */
.ls-sticky-cta { display: none; }
.lt-board { margin: 28px 0 48px; padding: 20px; display: grid; gap: 16px; background: var(--surface); border: 1px solid var(--panel-border); border-radius: 14px; box-shadow: 0 1px 2px rgba(35, 32, 25, .05); }
.lt-board__h { margin: 0 0 4px; font-size: 20px; }
.lt-board__p { margin: 0; color: var(--text-2); font-size: 15px; }
.lt-board__acts { display: grid; gap: 10px; }
.lt-board__acts .ls-btn { width: 100%; justify-content: center; }
.lt-board__trial { display: grid; gap: 6px; }
.lt-board__note { text-align: center; font-size: 13px; color: var(--muted); }
@media (min-width: 992px) {
  .lt-board { margin-left: 292px; grid-template-columns: 1fr auto; align-items: center; padding: 24px 28px; }
  .lt-board__acts { grid-template-columns: auto auto; align-items: start; }
  .lt-board__acts .ls-btn { width: auto; min-width: 200px; }
}
