/* The guided visit shares the Perch's palette, painting and character. */
.tour-root {
  --tour-paper: #1b182f;
  --tour-ink: #f4f0fa;
  --tour-muted: #b7aec9;
  --tour-line: #3b344e;
  --tour-accent: #e9cf9d;
  position: fixed; inset: 0; z-index: 50000;
  color: var(--tour-ink);
  font-family: var(--ff-body, Inter, system-ui, sans-serif);
}
.tour-root[hidden] { display: none; }
.tour-loading .tour-card { visibility: hidden; }
[data-theme="light"] .tour-root {
  --tour-paper: #fffcf8;
  --tour-ink: #30283e;
  --tour-muted: #70677c;
  --tour-line: #e5dedf;
  --tour-accent: #59417d;
}
.tour-backdrop { position: absolute; inset: 0; background: #110d2580; opacity: 0; transition: opacity .25s ease; }
.tour-overview .tour-backdrop { opacity: 1; }
.tour-spotlight {
  position: fixed; pointer-events: none; border-radius: 16px;
  border: 2px solid #e9cf9d;
  box-shadow: 0 0 0 9999px #110d258f, 0 0 24px #ead3a526;
  transition: top .32s ease, left .32s ease, width .32s ease, height .32s ease, opacity .2s ease;
}
.tour-overview .tour-spotlight { opacity: 0; }
.tour-card {
  position: fixed; width: min(400px, calc(100vw - 24px));
  background: var(--tour-paper); color: var(--tour-ink);
  border: 1px solid var(--tour-line); border-radius: 24px;
  box-shadow: 0 24px 72px #100b3045;
  overflow: auto; overscroll-behavior: contain;
  scrollbar-width: thin; scrollbar-color: var(--tour-line) transparent;
  outline: none;
}
.tour-scene {
  position: relative; height: 100px; overflow: hidden; isolation: isolate;
  background: #27213f;
}
.tour-scene::before {
  content: ''; position: absolute; inset: 0 0 0 auto; width: 300px; z-index: -1;
  background: linear-gradient(90deg, #27213f, #27213f20 70%, transparent),
    url('../perch/perch-scene-v4.webp') center 64% / cover no-repeat;
}
.tour-scene athena-owl { --athena-size: 84px; position: absolute; right: 66px; bottom: 0; }
.tour-host { position: absolute; left: 24px; top: 24px; max-width: 48%; color: #ead3a5; text-transform: uppercase; letter-spacing: .15em; font-size: 10px; font-weight: 600; line-height: 1.7; }
.tour-close {
  position: absolute; right: 12px; top: 12px; display: grid; place-items: center;
  width: 44px; height: 44px; border: 1px solid #ffffff36; border-radius: 50%;
  background: #211b3bb0; color: #fff8ed; font: 400 26px/1 system-ui; cursor: pointer;
}
.tour-close:hover { background: #463757; }
.tour-copy { padding: 22px 24px 0; transition: opacity .15s ease; }
.tour-changing .tour-copy { opacity: .35; }
.tour-chapter { margin: 0 0 8px; color: var(--tour-accent); font-size: 10px; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; }
.tour-title { margin: 0 0 12px; font: 600 25px/1.16 var(--ff-heading, Inter, sans-serif); letter-spacing: -.035em; color: var(--tour-ink); }
.tour-body { margin: 0; font-size: 14px; line-height: 1.7; color: var(--tour-muted); }
.tour-example { margin: 18px 0 0; padding: 12px 14px; border: 1px solid var(--tour-line); border-left: 3px solid var(--tour-accent); border-radius: 0 12px 12px 0; font-size: 13px; line-height: 1.55; color: var(--tour-ink); background: #9889c008; }
.tour-hint { margin: 14px 0 0; font-size: 12px; line-height: 1.6; color: var(--tour-muted); }
.tour-footer { padding: 20px 24px 24px; }
.tour-progress-row { display: flex; justify-content: space-between; gap: 12px; color: var(--tour-muted); font-size: 11px; margin-bottom: 9px; }
.tour-progress { height: 3px; border-radius: 999px; background: var(--tour-line); overflow: hidden; }
.tour-progress span { display: block; height: 100%; background: var(--tour-accent); border-radius: inherit; transition: width .32s ease; }
.tour-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 18px; }
.tour-actions button { min-height: 44px; border-radius: 12px; font: 600 13px var(--ff-heading, Inter, sans-serif); padding: 12px 18px; cursor: pointer; }
.tour-back { background: transparent; color: var(--tour-muted); border: 1px solid var(--tour-line); }
.tour-next { margin-left: auto; background: #514068; border: 1px solid #706084; color: #fffaf2; display: inline-flex; align-items: center; gap: 20px; }
.tour-next:hover { background: #66517f; }
.tour-actions button:disabled { cursor: wait; opacity: .65; }
.tour-root button:focus-visible { outline: 2px solid var(--tour-accent); outline-offset: 3px; }
.tour-close:focus-visible { outline-color: #ead3a5; }
.tour-root [hidden] { display: none; }
.tour-hero .tour-card { width: min(620px, calc(100vw - 24px)); }
.tour-hero .tour-scene { height: 186px; }
.tour-hero .tour-scene::before { width: 430px; }
.tour-hero .tour-scene athena-owl { --athena-size: 140px; right: 76px; bottom: 12px; }
.tour-hero .tour-host { top: 36px; left: 32px; }
.tour-hero .tour-copy { padding: 28px 32px 0; }
.tour-hero .tour-title { font-size: 34px; }
.tour-hero .tour-body { max-width: 480px; font-size: 15px; }
.tour-hero .tour-footer { padding: 24px 32px 28px; }
body.tour-open aristos-support { visibility: hidden; }
.perch-tour-launch {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px;
  margin-top: 20px; padding: 14px 16px; border: 1px solid var(--perch-line);
  border-radius: 14px; background: transparent; color: var(--perch-muted);
  font: 500 12px var(--ff-heading, Inter, sans-serif); text-align: left; cursor: pointer;
}
.perch-tour-launch:hover { background: var(--perch-selected); color: var(--perch-ink); }
@media (max-width: 600px) {
  .tour-card { border-radius: 20px; }
  .tour-copy { padding: 18px 20px 0; }
  .tour-title { font-size: 23px; }
  .tour-body { font-size: 13px; line-height: 1.6; }
  .tour-footer { padding: 18px 20px 20px; }
  .tour-hero .tour-scene { height: 150px; }
  .tour-hero .tour-scene::before { width: 340px; }
  .tour-hero .tour-scene athena-owl { --athena-size: 112px; right: 58px; bottom: 10px; }
  .tour-hero .tour-copy { padding: 22px 24px 0; }
  .tour-hero .tour-title { font-size: 28px; }
  .tour-hero .tour-body { font-size: 14px; }
  .tour-hero .tour-footer { padding: 20px 24px 24px; }
}
@media (max-height: 620px) {
  .tour-scene, .tour-hero .tour-scene { height: 72px; }
  .tour-scene athena-owl, .tour-hero .tour-scene athena-owl { --athena-size: 66px; bottom: 0; }
  .tour-copy, .tour-hero .tour-copy { padding: 16px 20px 0; }
  .tour-title, .tour-hero .tour-title { font-size: 23px; }
  .tour-footer, .tour-hero .tour-footer { padding: 14px 20px 18px; }
  .tour-example { margin-top: 12px; padding: 8px 12px; }
  .tour-host, .tour-hero .tour-host { top: 18px; left: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .tour-root *, .tour-root *::before { transition: none !important; animation: none !important; }
}
