/*
 * The OmniBiz tour, in the sign-in street's colours: the night sky over the shops for the stage, warm paper and ink
 * around it, OmniBiz's money green for going on, and the street lamps' marigold for what to press (as Add is in the
 * app; since 2026-11-28 OmniBiz's own look). The screenshots sit on the dark stage, the spot to press is ringed
 * in amber, and a chapter's progress is a row of markers. (The player and layout are the OmniFresh tour's.)
 */
:root {
  --ground: #f7f4ee;
  --surface: #ffffff;
  --surface-2: #faf8f4;
  --ink: #1d1a16;
  --ink-2: #463f36;
  --ink-3: #5c554a;
  --line: #e7e1d5;
  --sheet: #0e1a2b;
  --sheet-2: #1d2c42;
  --on-sheet: #eef2f7;
  --on-sheet-2: #a9b6c8;
  --mark: #f9bb3b;
  --go: #1b6136;
  --go-ink: #ffffff;
  --primary: #123f25;
  --primary-ink: #eef7f0;
  --primary-hover: #0b2a17;
  --focus: #2b6cb0;
  --shade: rgba(10, 14, 12, 0.42);
  --radius: 10px;
  --bar: 60px;
  --font: 'Inter', 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --display: 'Bricolage Grotesque', 'Inter', system-ui, sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #0b1220;
    --surface: #111a2b;
    --surface-2: #162136;
    --ink: #e8edf4;
    --ink-2: #b4bfcf;
    --ink-3: #8d99ab;
    --line: #243248;
    --sheet: #070d18;
    --sheet-2: #1a2740;
    --on-sheet: #e8edf4;
    --on-sheet-2: #9fadc2;
    --mark: #fcd34d;
    --go: #2dd4bf;
    --go-ink: #04201d;
    --primary: #e8edf4;
    --primary-ink: #0b1220;
    --primary-hover: #ffffff;
    --focus: #8ab4f8;
    --shade: rgba(0, 0, 0, 0.5);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ground: #0b1220;
  --surface: #111a2b;
  --surface-2: #162136;
  --ink: #e8edf4;
  --ink-2: #b4bfcf;
  --ink-3: #8d99ab;
  --line: #243248;
  --sheet: #070d18;
  --sheet-2: #1a2740;
  --on-sheet: #e8edf4;
  --on-sheet-2: #9fadc2;
  --mark: #fcd34d;
  --go: #2dd4bf;
  --go-ink: #04201d;
  --primary: #e8edf4;
  --primary-ink: #0b1220;
  --primary-hover: #ffffff;
  --focus: #8ab4f8;
  --shade: rgba(0, 0, 0, 0.5);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; text-wrap: balance; margin: 0; }
p { margin: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.noscript { padding: 24px 16px; }
[hidden] { display: none !important; }

/* ── Buttons ──────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px;
  border: 1px solid transparent; border-radius: 10px;
  font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s, border-color .15s, transform .15s;
}
.btn:disabled { opacity: .45; cursor: default; }
.btn-primary { background: var(--primary); color: var(--primary-ink); }
.btn-primary:hover:not(:disabled) { background: var(--primary-hover); }
.btn-go { background: var(--go); color: var(--go-ink); }
.btn-go:hover { filter: brightness(1.06); }
.btn-quiet { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-quiet:hover:not(:disabled) { background: var(--surface-2); }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 14px; }
.link { background: none; border: 0; padding: 0; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: 14px; }
.link:hover { color: var(--ink); }

.tag {
  display: inline-block; padding: 2px 10px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--line);
  font-size: 12px; font-weight: 600; letter-spacing: .01em; color: var(--ink-2);
}

/* ── Brand ────────────────────────────────────────────────────────────── */
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.brand .mark {
  width: 30px; height: 30px; border-radius: 9px; background: #ffffff;
  display: grid; place-items: center; flex: none; box-shadow: 0 0 0 1px var(--line);
}
.brand .mark img { width: 22px; height: 22px; object-fit: contain; }
.brand b { font-weight: 700; font-size: 18px; letter-spacing: -.01em; }
.brand small { color: var(--ink-3); font-size: 13px; font-weight: 500; }

/* ── Start page ───────────────────────────────────────────────────────── */
.page { max-width: 1120px; margin: 0 auto; padding-inline: 24px; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 18px; }
.hero {
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 56px; align-items: center;
  padding-block: 40px 56px;
}
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 14px; }
.hero h1 { font-family: var(--display); font-size: clamp(32px, 3.4vw, 46px); font-weight: 700; letter-spacing: -.025em; line-height: 1.08; }
.hero .lede { margin-top: 16px; font-size: 17px; color: var(--ink-2); max-width: 31em; }
.hero .actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px; }
.hero .facts { margin-top: 18px; font-size: 13px; color: var(--ink-3); }
.cover {
  margin: 0; border-radius: 14px; overflow: hidden; background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(16, 28, 24, .06), 0 24px 48px -30px rgba(16, 28, 24, .45);
}
.cover-bar { display: flex; gap: 6px; padding: 9px 12px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.cover-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.cover img { width: 100%; aspect-ratio: 1440 / 900; object-fit: cover; }

/* The chapters as a contents list: two groups side by side, rows divided by hairlines. */
.contents {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 56px; align-items: start;
  padding-block: 36px 8px; border-top: 1px solid var(--line);
}
.toc-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 10px; }
.toc-head h2 { font-size: 15px; font-weight: 700; letter-spacing: .01em; }
.toc-head span { font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.toc-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.toc-list li { border-bottom: 1px solid var(--line); }
.toc-row {
  width: 100%; display: grid; grid-template-columns: 28px minmax(0, 1fr) 16px; gap: 14px; align-items: baseline;
  padding: 14px 6px; background: none; border: 0; text-align: left; cursor: pointer; border-radius: 8px;
  transition: background-color .15s;
}
.toc-row:hover { background: var(--surface); }
.toc-row .num { font-family: var(--mono); font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.toc-row .main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.toc-row .t { font-size: 15.5px; font-weight: 600; color: var(--ink); }
.toc-row .s { font-size: 14px; color: var(--ink-2); line-height: 1.45; }
.toc-row .meta { font-size: 12.5px; color: var(--ink-3); margin-top: 4px; }
.toc-row .go { color: var(--ink-3); transition: transform .15s, color .15s; }
.toc-row:hover .go { color: var(--ink); transform: translateX(2px); }
.foot { padding-block: 40px; margin-top: 32px; font-size: 13px; color: var(--ink-3); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }

/* ── A step ───────────────────────────────────────────────────────────── */
/* The stage: a chalkboard, lit softly from above. */
body[data-view="step"] {
  background-color: var(--sheet); color: var(--on-sheet);
  background-image: radial-gradient(1200px 520px at 50% -160px, color-mix(in srgb, var(--sheet-2) 85%, transparent), transparent 70%);
  background-repeat: no-repeat;
}
.player { min-height: 100dvh; display: flex; flex-direction: column; }
.bar {
  height: var(--bar); flex: none; display: flex; align-items: center; gap: 16px;
  padding-inline: 16px; border-bottom: 1px solid var(--sheet-2); color: var(--on-sheet);
}
.bar .brand .mark { box-shadow: none; }
.bar .brand small { color: var(--on-sheet-2); }
.bar .btn-quiet { color: var(--on-sheet); border-color: var(--sheet-2); }
.bar .btn-quiet:hover { background: var(--sheet-2); }
.bar .where { min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.bar .where b { font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar .where span { font-size: 12px; color: var(--on-sheet-2); }
.bar .spacer { flex: 1; }
/* Progress as a row of markers: done and current lit, the rest bare. */
.ticks { display: flex; gap: 6px; align-items: center; }
.ticks i { width: 8px; height: 8px; border-radius: 50%; background: var(--sheet-2); }
.ticks i.done { background: color-mix(in srgb, var(--mark) 50%, var(--sheet-2)); }
.ticks i.now { background: var(--mark); width: 22px; border-radius: 999px; }

/* align-content: start, or on a phone the stage's spare height is shared between its rows and opens a gap
   between the screen and the caption. */
.stage { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; padding: 16px; align-items: start; align-content: start; }
.screen {
  position: relative; justify-self: center; overflow: hidden; border-radius: 10px;
  width: min(100%, calc((100dvh - var(--bar) - 32px) * var(--ratio, 1.6)));
  aspect-ratio: 1440 / 900; background: var(--sheet-2);
  box-shadow: 0 0 0 1px var(--sheet-2), 0 24px 48px -28px #000;
}
.screen img { width: 100%; height: 100%; object-fit: contain; }
/* A phone: a dark bezel around the screen, as the café's staff hold it. */
.screen.phone {
  width: min(100%, calc((100dvh - var(--bar) - 32px - 28px) * var(--ratio)));
  border-radius: 28px; box-shadow: 0 0 0 9px #06080a, 0 0 0 10px var(--sheet-2), 0 24px 48px -28px #000; margin-top: 10px;
}
.screen.phone img { border-radius: 20px; }
/* The spot to press: a chalk-yellow ring, the rest of the screen dimmed around it. */
.hotspot {
  position: absolute; border: 0; padding: 0; margin: 0; cursor: pointer; background: transparent;
  border-radius: 8px;
  box-shadow: 0 0 0 3px var(--mark), 0 0 0 9999px var(--shade);
}
.hotspot::after {
  content: ''; position: absolute; inset: -3px; border-radius: 10px;
  box-shadow: 0 0 0 3px var(--mark); opacity: .9;
  animation: ping 1.8s ease-out infinite;
}
@keyframes ping { 0% { transform: scale(1); opacity: .85; } 80%, 100% { transform: scale(1.12); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .hotspot::after { animation: none; opacity: 0; } .toc-row, .toc-row .go, .btn { transition: none; } }

.caption {
  background: var(--surface); color: var(--ink); border-radius: var(--radius);
  padding: 20px; display: flex; flex-direction: column; gap: 14px;
  position: sticky; top: 16px;
}
.caption .who { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.caption .count { font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.caption .text { font-size: 17px; line-height: 1.55; }
.caption .hint { font-size: 14px; color: var(--ink-2); display: flex; gap: 8px; align-items: baseline; }
.caption .hint::before { content: ''; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--mark); transform: translateY(1px); }
.caption .nav { display: flex; gap: 8px; }
.caption .nav .btn { flex: 1; }
.caption .links { display: flex; justify-content: space-between; gap: 12px; padding-top: 12px; border-top: 1px solid var(--line); }

/* ── Book a demo ──────────────────────────────────────────────────────── */
.book { max-width: 760px; margin: 0 auto; padding-block: 24px 56px; }
.book h1 { font-family: var(--display); font-size: clamp(30px, 3.6vw, 42px); font-weight: 700; letter-spacing: -.025em; }
.book .lede { margin-top: 14px; font-size: 18px; color: var(--ink-2); }
.qualify {
  margin-top: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; display: flex; flex-direction: column; gap: 22px;
}
.qualify h2 { font-size: 18px; font-weight: 700; }
.qualify .why { font-size: 14px; color: var(--ink-3); margin-top: 4px; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { font-weight: 600; font-size: 15px; padding: 0; margin-bottom: 10px; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2);
  font-size: 14px; cursor: pointer; transition: border-color .15s, background-color .15s;
}
.choice span:hover { border-color: var(--ink-3); }
.choice input:checked + span { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); font-weight: 600; }
.choice input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.qualify .send { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding-top: 4px; }
.qualify .send p { font-size: 13px; color: var(--ink-3); flex: 1 1 240px; }
.taken { margin-top: 20px; font-size: 14px; color: var(--ink-3); }

/* ── Narrow screens ───────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .stage { grid-template-columns: minmax(0, 1fr); }
  .screen { width: 100%; }
  .screen.phone { width: min(100%, 380px); }
  .caption { position: static; }
}
@media (max-width: 760px) {
  .page { padding-inline: 16px; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-block: 16px 32px; }
  .contents { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .toc-row { grid-template-columns: 24px minmax(0, 1fr) 14px; gap: 10px; }
  .bar { gap: 8px; padding-inline: 12px; }
  .bar .btn-sm { padding-inline: 12px; }
  .bar .where, .bar .ticks, .bar .brand small, .bar .long { display: none; }
  .stage { padding: 10px; gap: 12px; }
  .caption { padding: 16px; }
  .caption .text { font-size: 16px; }
  .qualify { padding: 18px; }
}
@media (min-width: 761px) { .bar .short { display: none; } }
/* Phones up to 420px, or the headers run past the screen and the page scrolls sideways: the page
   header drops "tour"; a step's bar shows the mark alone, its name kept for screen readers since
   it names the link. */
@media (max-width: 420px) {
  .top { gap: 12px; }
  .top .brand small { display: none; }
  .bar .brand b { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}

/* ── On omnibizph.com the tour is a page of the website (site/index.html's header and footer, copied
   into index.html by `npm run site:sync`, styled by /marketing/site.css). The start and Book a demo
   pages sit under the site's header and above its footer, so the player's own brand bar and footer
   step aside there; a step takes the whole screen, its own bar carrying the brand and All chapters,
   because the screenshot needs the height. Pages that host the tour without the site (sandiwatech.com)
   have no .in-site and are unchanged. */
body.in-site:not([data-view="step"]) #app { padding-top: var(--header, 4.5rem); }
body.in-site[data-view="start"] .page > .top,
body.in-site[data-view="start"] .page > .foot { display: none; }
body.in-site[data-view="start"] .page > main > .hero { padding-top: 40px; }
body.in-site[data-view="step"] .site-header,
body.in-site[data-view="step"] .site-footer { display: none; }
body.in-site .site-footer { margin-top: 48px; }
