/* The self-guided tour (tour.html), a page of OmniDental's website. The fonts, tokens, buttons,
   header and footer are the site's (marketing/site.css, loaded first); this file is the tour's own
   layout. The start and finish pages sit under the site's header like any other page of it; a step
   takes the whole screen, under the player's own bar (body[data-view="step"]). */

button { font: inherit; }
.noscript { padding: calc(var(--header) + 2rem) 1.5rem 3rem; }
/* The sheet fills the screen down to the footer, and no further: a page shorter than the screen
   doesn't push the footer a screen's height below its last line. */
body { min-height: 100vh; display: flex; flex-direction: column; }
#app { flex: 1 0 auto; }

/* A step is the screen: the site's header and footer stand aside for it, and the player's bar
   carries the brand and the way back to the chapters. */
body[data-view="step"] .site-header, body[data-view="step"] .site-footer { display: none; }
/* The header's "Take the tour" is this page. */
.site-header .nav-tour { display: none; }

.btn .ico { display: inline-flex; color: var(--ink-3); }
.btn .ico svg { display: block; }
.chapter:focus-visible, .hotspot:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.tag { display: inline-block; font-size: .78rem; font-weight: 600; color: var(--ink-2); background: #fff;
  box-shadow: inset 0 0 0 1px var(--line-2); border-radius: 999px; padding: .15rem .6rem; line-height: 1.5; }

/* ── Start ──────────────────────────────────────────────────────────────── */
/* As wide as the site's header, so the headline lines up under the brand. */
.start { padding-top: calc(var(--header) + 2.5rem); padding-bottom: 4rem; }
@media (min-width: 64rem) { .start { padding-top: calc(var(--header) + 4rem); padding-bottom: 5.5rem; } }
@media (min-width: 100rem) { .start.wrap { max-width: 116rem; } }
.start h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); line-height: 1.05; margin: 0 0 .9rem; text-wrap: balance; }
.start .lede { font-size: 1.15rem; color: var(--ink-2); max-width: 44rem; margin: 0 0 1.75rem; line-height: 1.55; }
.chapters { list-style: none; padding: 0; margin: 2.25rem 0 0; display: grid; gap: 1rem; }
@media (min-width: 40rem) { .chapters { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .chapters { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; } }
@media (min-width: 100rem) { .chapters { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.chapter { display: flex; flex-direction: column; gap: .45rem; width: 100%; height: 100%; text-align: left; cursor: pointer;
  background: #fff; border: 0; border-radius: 1rem; padding: 1.2rem 1.25rem; box-shadow: inset 0 0 0 1px var(--line); }
.chapter:hover { box-shadow: inset 0 0 0 1px var(--brand); }
.chapter .n { font-family: "IBM Plex Mono", monospace; font-size: .8rem; color: var(--ink-3); }
.chapter h2 { font-size: 1.1rem; margin: 0; }
.chapter p { margin: 0; color: var(--ink-2); font-size: .93rem; line-height: 1.5; }
.chapter .meta { margin-top: auto; padding-top: .5rem; display: flex; gap: .5rem; align-items: center; font-size: .82rem; color: var(--ink-3); }
.start .foot { margin-top: 2.5rem; font-size: .9rem; color: var(--ink-3); }

/* ── Player ─────────────────────────────────────────────────────────────── */
.player { min-height: 100vh; display: flex; flex-direction: column; }
/* The same white bar as the site's header (site.css), which stands aside during a step. */
.bar { display: flex; align-items: center; gap: 1rem; padding: .75rem 1.25rem; background: rgb(255 255 255 / .88);
  box-shadow: 0 1px 0 var(--line); position: sticky; top: 0; z-index: 5; backdrop-filter: saturate(160%) blur(10px); }
.bar .where { min-width: 0; flex: 1; display: flex; align-items: baseline; gap: .6rem; flex-wrap: wrap; }
.bar .where b { font-size: .98rem; }
.bar .where span { font-size: .85rem; color: var(--ink-3); }
.progress { display: flex; gap: .3rem; flex-wrap: wrap; }
.progress i { width: .55rem; height: .55rem; border-radius: 999px; background: #c9d3cc; }
.progress i.done { background: #8ea896; }
.progress i.now { background: var(--brand); }
.bar .to-chapters { flex: none; white-space: nowrap; }
.bar .to-chapters .short { display: none; }

.stage { flex: 1; display: grid; gap: 1.25rem; padding: 1.25rem; align-items: start; align-content: start;
  grid-template-columns: minmax(0, 1fr); max-width: 120rem; width: 100%; margin: 0 auto; }
@media (min-width: 80rem) { .stage { grid-template-columns: minmax(0, 1fr) 22rem; align-items: center; align-content: center; } }

.screen { position: relative; border-radius: .9rem; overflow: hidden; background: #fff;
  box-shadow: 0 0 0 1px var(--line), 0 18px 50px -20px rgb(15 23 42 / .35); }
.screen img { display: block; width: 100%; height: auto; }
.screen .dim { position: absolute; inset: 0; pointer-events: none; }
/* The spotlight: everything but the target dims, and the target gets a pulsing ring. */
.hotspot { position: absolute; border: 0; padding: 0; background: transparent; cursor: pointer; border-radius: .5rem;
  box-shadow: 0 0 0 4px var(--brand), 0 0 0 9999px rgb(15 23 42 / .28); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 3px var(--brand), 0 0 0 9999px rgb(15 23 42 / .28); }
                   50%      { box-shadow: 0 0 0 7px rgb(51 70 211 / .55), 0 0 0 9999px rgb(15 23 42 / .28); } }
@media (prefers-reduced-motion: reduce) { .hotspot { animation: none; } }

.caption { background: #fff; border-radius: 1rem; padding: 1.15rem 1.2rem; box-shadow: inset 0 0 0 1px var(--line); }
.caption .who { margin-bottom: .6rem; }
.caption p { margin: 0; font-size: 1.02rem; line-height: 1.55; color: var(--ink); }
.caption .hint { margin-top: .85rem; font-size: .88rem; font-weight: 600; color: var(--brand-ink); }
.caption .nav { display: flex; gap: .6rem; margin-top: 1.1rem; }
.caption .nav .btn { flex: 1; }
.caption .foot { display: flex; align-items: baseline; justify-content: space-between; gap: .75rem; margin-top: .75rem; }
.caption .count { margin: 0; font-size: .8rem; color: var(--ink-3); font-family: "IBM Plex Mono", monospace; }
.caption .link { padding: 0; border: 0; background: none; cursor: pointer; white-space: nowrap; font-size: .85rem; font-weight: 600;
  color: var(--brand-ink); text-decoration: underline; text-underline-offset: 3px; }
.caption .link:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: .2rem; }

/* ── Phones ─────────────────────────────────────────────────────────────── */
.phone-note { display: none; margin: .75rem 0 0; font-size: .88rem; color: var(--ink-3); }
@media (max-width: 40rem) {
  .phone-note { display: block; }
  .bar { gap: .6rem; padding: .6rem .9rem; }
  .bar .brand b, .bar .progress, .bar .where span { display: none; }
  .bar .to-chapters { padding: .45rem .65rem; }
  .bar .to-chapters .long { display: none; }
  .bar .to-chapters .short { display: inline; }
  .bar .where b { font-size: .92rem; line-height: 1.25; }
  .stage { padding: .9rem; gap: .9rem; }
}

/* ── Finish ─────────────────────────────────────────────────────────────── */
/* Under the site's header, lined up with its brand; the words keep a reading width. */
.finish { padding-top: calc(var(--header) + 3rem); padding-bottom: 6rem; }
@media (min-width: 64rem) { .finish { padding-top: calc(var(--header) + 5rem); } }
@media (min-width: 100rem) { .finish.wrap { max-width: 116rem; } }
.finish > * { max-width: 46rem; }
.finish h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); line-height: 1.08; margin: 0 0 1rem; text-wrap: balance; }
.finish p { font-size: 1.1rem; line-height: 1.55; color: var(--ink-2); }
.finish .actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.75rem; }
