/* The guided tour on /product-tour/: numbered highlights over each screen and a note for each one. */

/* The chapter of each screen is named above the screen itself, so the list carries one label only.
   Seventeen rows are taller than a laptop window at the theme's row height, so the rows tighten. */
.tour-steps .tour-label { margin: 0 0 6px; padding: 0 14px; color: #6a6e78; font: 500 10.5px/1.3 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: 0.1em; text-transform: uppercase; }
.tour-steps a { padding-block: 8px; }
/* The page heading leads straight into the tour. */
.tour-screens .tour-scroll { margin-top: 0; }

.tour-stop header span { display: flex; align-items: center; gap: 12px; color: #7d818b; }
.tour-stop header span b { color: var(--x-berry); font-weight: 500; }
.tour-stop header span b::after { content: ""; display: inline-block; width: 22px; margin-left: 12px; border-top: 1px solid #ffffff2e; vertical-align: middle; }
.tour-stop header p { font-size: 17px; }
.tour-more { justify-self: start; color: #9ba0aa; font-size: 14px; }

.guide { display: grid; gap: 18px; }
.guide-stage { position: relative; }
/* The layer never takes the pointer: tour.js works out which highlight is under it, so a click still enlarges the screen. */
.guide-marks { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.guide-mark { position: absolute; box-sizing: border-box; border: 1px solid #f2557ab3; border-radius: 9px; background: #f2557a0f; box-shadow: 0 0 0 1px #f2557a1f, 0 0 26px #f2557a2e, inset 0 0 18px #f2557a12; transition: opacity 0.35s ease, border-color 0.35s ease, box-shadow 0.45s ease, background 0.35s ease; }
/* The number rides on top of the outline, like a tab, so it never covers the words inside it. */
.guide-mark b { position: absolute; left: -1px; bottom: calc(100% - 1px); display: grid; place-items: center; min-width: 22px; height: 20px; border-radius: 7px 7px 7px 0; background: var(--x-berry); color: #14060a; font: 600 12px/1 ui-monospace, "SF Mono", Menlo, monospace; }
.guide-mark { border-top-left-radius: 0; }
.guide-mark.is-right { border-radius: 9px 0 9px 9px; }
.guide-mark.is-right b { left: auto; right: -1px; border-radius: 7px 7px 0 7px; }
/* One highlight at a time: the rest of the screen falls into shade. */
.guide.is-lit .guide-mark { opacity: 0.28; }
.guide.is-lit .guide-mark.is-on { opacity: 1; border-color: #ff7f9e; background: none; box-shadow: 0 0 0 200vmax #050506b3, 0 0 0 1px #f2557a59, 0 0 34px #f2557a66; }

.guide-notes { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.guide-note { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; align-content: start; width: 100%; height: 100%; margin: 0; padding: 14px 14px 15px; border: 0; border-top: 1px solid #ffffff1c; border-radius: 0 0 12px 12px; background: none; color: var(--x-muted); font: inherit; font-size: 14px; line-height: 1.55; text-align: left; cursor: pointer; transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease; }
.guide-note b { display: grid; place-items: center; width: 22px; height: 22px; margin-top: 1px; border-radius: 7px; background: #f2557a24; color: #ff8fab; font: 600 12px/1 ui-monospace, "SF Mono", Menlo, monospace; transition: background 0.3s ease, color 0.3s ease; }
.guide-note strong { display: block; margin-bottom: 3px; color: #f1f3f5; font-size: 15px; font-weight: 500; letter-spacing: -0.01em; }
.guide-note:hover, .guide-note.is-on { border-color: var(--x-berry); background: #ffffff0a; color: #d5d9df; }
.guide-note.is-on b, .guide-note:hover b { background: var(--x-berry); color: #14060a; }
.guide-note:focus-visible { outline: 2px solid var(--x-silver); outline-offset: 2px; }

/* Each highlight draws itself in the first time its screen comes into view. */
.js .guide:not(.is-seen) .guide-mark { opacity: 0; transform: scale(0.97); }
.guide.is-seen .guide-mark { animation: guide-in 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) backwards; animation-delay: calc(var(--i) * 140ms + 150ms); }
@keyframes guide-in { from { opacity: 0; transform: scale(0.97); } }

/* The questions under the tour are the home page's, at the home page's heading size. */
.is-studio .tour-faq h2 { font-size: clamp(35px, 3.75vw, 54px); }

@media (max-width: 900px) {
  .tour-steps .tour-label { display: none; }
  .tour-steps a { padding-block: 8px; }
}
@media (max-width: 640px) {
  .tour-stop header p { font-size: 16px; }
  .guide-mark { border-radius: 5px; }
  .guide-mark b { min-width: 15px; height: 14px; border-radius: 4px 4px 4px 0; font-size: 9.5px; }
  .guide-notes { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .guide-note { padding: 12px 4px 13px; border-radius: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .guide-mark, .guide-note, .guide-note b { transition: none; }
  .js .guide:not(.is-seen) .guide-mark { opacity: 1; transform: none; }
  .guide.is-seen .guide-mark { animation: none; }
}
