/* Narrated product tour: /demo/admin/ and /demo/employee/. Same font and colours as the rest of the site. */
@font-face { font-family: "Geist"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/fonts/geist-latin.woff2") format("woff2"); }

:root {
  --bg: #f6f5f9;
  --surface: #ffffff;
  --sunk: #f1eff6;
  --text: #121117;
  --muted: #55525f;
  --faint: #8a8794;
  --line: rgba(18, 17, 23, .09);
  --line-strong: rgba(18, 17, 23, .16);
  --accent: #4527c4;
  --accent-hover: #3a1fab;
  --accent-soft: #efecfb;
  --ai: #6d28d9;
  --ok: #157347;
  --ok-soft: #e6f4ec;
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.6 var(--font); }
a { color: var(--accent); }
img { max-width: 100%; display: block; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.top { background: var(--surface); border-bottom: 1px solid var(--line); }
.top .in { max-width: 1240px; margin: 0 auto; padding: 12px max(16px, env(safe-area-inset-right, 0px)) 12px max(16px, env(safe-area-inset-left, 0px)); display: flex; align-items: center; gap: 16px; }
.top .logo img { height: 28px; width: auto; }
.top nav { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.pill { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 14px; color: var(--muted); }
.pill[aria-current="page"] { background: var(--accent-soft); color: var(--accent); }
.cta { display: inline-flex; align-items: center; height: 36px; padding: 0 16px; border-radius: 999px; background: var(--accent); color: #fff; text-decoration: none; font-weight: 600; font-size: 14px; }
.cta:hover { background: var(--accent-hover); }

.wrap { max-width: 1240px; margin: 0 auto; padding: 28px max(16px, env(safe-area-inset-right, 0px)) 56px max(16px, env(safe-area-inset-left, 0px)); }
.head h1 { margin: 0; font-size: clamp(26px, 4vw, 36px); line-height: 1.15; letter-spacing: -.02em; text-wrap: balance; }
.head p { margin: 8px 0 0; color: var(--muted); max-width: 70ch; }

.tour { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 20px; margin-top: 22px; align-items: start; }

.stage { min-width: 0; }
.screen { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: 0 1px 2px rgba(18,17,23,.04), 0 18px 40px -22px rgba(52,30,150,.35); }
.bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--sunk); }
.bar i { width: 10px; height: 10px; border-radius: 50%; background: #d9d6e3; }
.bar span { margin-left: 10px; font-size: 12px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shot { position: relative; background: #fff; aspect-ratio: 1526 / 674; }
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: top left; transition: opacity .35s ease; }
.shot img.fade { opacity: .15; }

.caption { margin-top: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; }
.caption .num { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.caption h2 { margin: 2px 0 6px; font-size: 21px; line-height: 1.25; letter-spacing: -.01em; }
.caption .say { margin: 0; color: var(--muted); }
.ways { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.way { border-radius: 12px; padding: 12px 14px; font-size: 14px; }
.way b { display: block; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 4px; }
.way.ai { background: var(--accent-soft); }
.way.ai b { color: var(--ai); }
.way.hand { background: var(--sunk); }
.way.hand b { color: var(--muted); }
.way p { margin: 0; }
.way q { quotes: "\201C" "\201D"; font-weight: 600; color: var(--text); }

.controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; }
.btn { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); font-weight: 600; cursor: pointer; }
.btn:hover { border-color: var(--accent); }
.btn.play { background: var(--accent); border-color: var(--accent); color: #fff; min-width: 150px; justify-content: center; }
.btn.play:hover { background: var(--accent-hover); }
.btn[disabled] { opacity: .45; cursor: default; }
.btn svg { width: 16px; height: 16px; }
.count { margin-left: auto; font-size: 13px; color: var(--faint); font-variant-numeric: tabular-nums; }
.voice { font-size: 13px; color: var(--muted); display: inline-flex; gap: 6px; align-items: center; }
.voice select { font: inherit; font-size: 13px; padding: 6px 8px; border-radius: 8px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); max-width: 200px; }
.progress { height: 4px; background: var(--sunk); border-radius: 4px; margin-top: 12px; overflow: hidden; }
.progress div { height: 100%; width: 0; background: var(--accent); transition: width .3s ease; }
.note { margin-top: 10px; font-size: 12.5px; color: var(--faint); }

.chapters { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 10px; position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow-y: auto; }
.chapters h3 { margin: 6px 8px 8px; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.chapters ol { list-style: none; margin: 0; padding: 0; counter-reset: ch; }
.chapters li { margin: 0; }
.chapters button { display: flex; gap: 10px; width: 100%; text-align: left; padding: 8px 10px; border: 0; border-radius: 10px; background: transparent; color: var(--text); cursor: pointer; font-size: 14px; line-height: 1.35; }
.chapters button:hover { background: var(--sunk); }
.chapters button .n { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--sunk); color: var(--muted); font-size: 12px; font-weight: 600; display: grid; place-items: center; font-variant-numeric: tabular-nums; }
.chapters button[aria-current="step"] { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.chapters button[aria-current="step"] .n { background: var(--accent); color: #fff; }
.chapters button.seen .n { background: var(--ok-soft); color: var(--ok); }

/* Data for the script; also a readable outline without JavaScript. */
.steps-data { display: none; }
.no-js .steps-data { display: block; }

@media (max-width: 900px) {
  .tour { grid-template-columns: minmax(0, 1fr); }
  .chapters { position: static; max-height: none; }
  .ways { grid-template-columns: 1fr; }
  .top nav .pill { display: none; }
}
@media (prefers-reduced-motion: reduce) { .shot img, .progress div { transition: none; } }
