.scheduler-tour-page {
  --tour-ink: var(--website-ink);
  --tour-muted: var(--website-muted);
  --tour-accent: var(--website-orange);
  --tour-line: var(--website-border);
  --tour-paper: var(--website-paper);
  width: min(1200px, calc(100% - 48px));
  margin-inline: auto;
  padding-block: clamp(32px, 6vw, 84px);
  color: var(--tour-ink);
}

.scheduler-tour-intro {
  max-width: 800px;
  margin: 0 auto clamp(32px, 5vw, 58px);
  text-align: center;
}

.scheduler-tour-page h1,
.scheduler-tour-page h2 {
  margin: 0;
  font-family: var(--website-display);
  font-weight: 800;
  letter-spacing: -.045em;
  line-height: 1.04;
}

.scheduler-tour-page h1 { font-size: clamp(42px, 6.75vw, 88px); }
.scheduler-tour-page h2 { font-size: clamp(27px, 3.65vw, 45px); }
.scheduler-tour-page[data-scheduler-tour] { padding-block-start: clamp(30px, 4.3vw, 58px); }
.scheduler-tour-page[data-scheduler-tour] .scheduler-tour-intro { margin-bottom: clamp(23px, 3.5vw, 40px); }
.scheduler-tour-page[data-scheduler-tour] h1 { font-size: clamp(2.5rem, 5.35vw, 4.25rem); }

.scheduler-tour-intro > p {
  max-width: 600px;
  margin: 18px auto 0;
  color: var(--tour-muted);
  font-size: clamp(16px, 1.9vw, 20px);
  line-height: 1.58;
}

.scheduler-tour-intro-actions,
.scheduler-tour-chapter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.scheduler-tour-intro-actions { justify-content: center; }

.scheduler-tour-navigation ol,
.scheduler-tour-navigation ul {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  margin: 0 0 14px;
  padding: 5px;
  border: 1px solid var(--tour-line);
  border-radius: 16px;
  background: #f3e9df;
  list-style: none;
}

.scheduler-tour-navigation a {
  display: flex;
  min-height: 48px;
  height: 100%;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border: 1px solid transparent;
  border-radius: 11px;
  color: #524337;
  font-size: 14px;
  font-weight: 720;
  line-height: 1.28;
  text-align: center;
  text-decoration: none;
}

.scheduler-tour-navigation a:hover,
.scheduler-tour-navigation a[aria-current="step"] {
  border-color: #ddcabb;
  background: var(--tour-paper);
  color: var(--tour-accent);
}

.scheduler-tour-navigation a[aria-current="step"] { box-shadow: 0 2px 5px #6a402019; }

.scheduler-tour-chapters { display: grid; gap: 16px; }

.scheduler-tour-chapter {
  display: grid;
  grid-template-columns: minmax(240px, .82fr) minmax(0, 2fr);
  align-items: center;
  gap: clamp(18px, 3.5vw, 44px);
  padding: clamp(18px, 3.1vw, 40px);
  border: 1px solid var(--tour-line);
  border-radius: clamp(16px, 2.5vw, 28px);
  background: var(--tour-paper);
  scroll-margin-block-start: 28px;
}

.scheduler-tour-chapter[hidden] { display: none; }

.scheduler-tour-chapter-copy { min-width: 0; }

.scheduler-tour-progress {
  margin: 0 0 13px;
  color: var(--tour-accent);
  font-size: 13px;
  font-weight: 790;
}

.scheduler-tour-chapter-copy > p + h2 { margin-bottom: 14px; }

.scheduler-tour-chapter-copy > h2 + p,
.scheduler-tour-demo p {
  margin: 0;
  color: var(--tour-muted);
  line-height: 1.65;
}

.scheduler-tour-tasks {
  display: grid;
  gap: 9px;
  margin: 18px 0 0;
  padding-inline-start: 20px;
  font-size: 14px;
  line-height: 1.45;
}

.scheduler-tour-tasks li::marker { color: var(--tour-accent); }

.scheduler-tour-screenshot { min-width: 0; margin: 0; }

.scheduler-tour-screenshot > a {
  position: relative;
  display: block;
  border: 1px solid var(--tour-line);
  border-radius: 15px;
  background: #f9f3ee;
  box-shadow: 0 14px 28px #3b1c1120;
}

.scheduler-tour-screenshot img { display: block; width: 100%; height: auto; border-radius: inherit; }

.scheduler-tour-full-size {
  position: absolute;
  right: 9px;
  bottom: 9px;
  padding: 6px 10px;
  border: 1px solid var(--tour-line);
  border-radius: 8px;
  background: var(--tour-paper);
  color: var(--tour-ink);
  font-size: 12px;
  font-weight: 750;
}

.scheduler-tour-screenshot figcaption,
.scheduler-tour-disclosure {
  margin: 12px 0 0;
  color: var(--tour-muted);
  font-size: 13px;
  line-height: 1.55;
}

.scheduler-tour-disclosure { margin-inline: 4px; }

.scheduler-tour-text-link {
  display: inline-block;
  margin-top: 14px;
  color: var(--tour-accent);
  font-size: 14px;
  font-weight: 710;
  text-underline-offset: 3px;
}

.scheduler-tour-demo {
  display: grid;
  grid-template-columns: 1fr minmax(200px, 300px);
  align-items: center;
  gap: clamp(18px, 5vw, 58px);
  margin-top: clamp(40px, 7vw, 80px);
  padding: clamp(22px, 4.4vw, 52px);
  border-radius: clamp(16px, 2.5vw, 28px);
  background: #221913;
  color: var(--tour-paper);
  scroll-margin-block-start: 28px;
}

.scheduler-tour-demo p { max-width: 480px; margin: 14px 0 17px; color: #ecddd0; }
.scheduler-tour-demo a { color: #ffd6c0; font-weight: 680; text-underline-offset: 3px; }

.scheduler-tour-video {
  display: block;
  width: 100%;
  max-height: 490px;
  border-radius: 14px;
  background: #18100e;
  aspect-ratio: 9 / 16;
  object-fit: contain;
}

.scheduler-tour-faq { max-width: 900px; }
.scheduler-faq-navigation ul { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.scheduler-faq-group {
  margin-top: clamp(30px, 5vw, 55px);
  scroll-margin-block-start: 28px;
}

.scheduler-tour-faq .scheduler-faq-list {
  margin: 20px 0 0;
  border: 1px solid var(--tour-line);
  border-radius: 19px;
  background: var(--tour-paper);
}

.scheduler-tour-faq .scheduler-faq-item { padding: 0; border: 0; }
.scheduler-tour-faq .scheduler-faq-item + .scheduler-faq-item { border-top: 1px solid var(--tour-line); }

.scheduler-tour-faq .scheduler-faq-item summary {
  cursor: pointer;
  padding: 16px clamp(16px, 3.5vw, 26px);
  font-size: 16px;
  font-weight: 740;
  line-height: 1.45;
}

.scheduler-tour-faq .scheduler-faq-item summary::marker { color: var(--tour-accent); }
.scheduler-tour-faq .scheduler-faq-item summary:hover { color: var(--tour-accent); }

.scheduler-tour-faq .scheduler-faq-item p {
  margin: 0;
  padding: 0 clamp(16px, 3.5vw, 26px) 18px;
  color: var(--tour-muted);
  line-height: 1.65;
}

.scheduler-tour-faq .scheduler-faq-item a { color: var(--tour-accent); text-underline-offset: 3px; }

.scheduler-tour-page :is(a, summary, .scheduler-tour-chapter):focus-visible {
  outline: 2px solid var(--tour-accent);
  outline-offset: 3px;
}

.scheduler-tour-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (max-width: 830px) {
  .scheduler-tour-chapter { grid-template-columns: 1fr; }
  .scheduler-tour-chapter-copy { max-width: 570px; }
}

@media (max-width: 520px) {
  .scheduler-tour-page { width: calc(100% - 28px); }
  .scheduler-tour-navigation ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .scheduler-tour-navigation a { padding-inline: 4px; font-size: 13px; }
  .scheduler-tour-demo { grid-template-columns: 1fr; }
  .scheduler-tour-video { max-width: 290px; justify-self: center; }
}

@media (prefers-reduced-motion: no-preference) {
  .scheduler-tour-page[data-tour-ready] .scheduler-tour-chapter:not([hidden]) .scheduler-tour-screenshot {
    animation: scheduler-tour-in .4s cubic-bezier(.18,.81,.29,1) both;
  }
  @keyframes scheduler-tour-in {
    from { opacity: .45; transform: translateY(8px); }
    to { opacity: 1; transform: none; }
  }
}
