.app-tour {
  --stage-height: clamp(453px, 39vw, 554px);
  color: var(--ink, #222326);
  padding: clamp(40px, 5vw, 74px) clamp(22px, 6vw, 100px) clamp(52px, 6vw, 90px);
  scroll-margin-block-start: 0;
}
.tour-inner { max-width: 1140px; margin: 0 auto; }
.tour-frame {
  display: grid; grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr); align-items: center;
  padding-inline: clamp(26px, 5vw, 76px) clamp(14px, 3vw, 46px);
  border: 1px solid #e4e6e9; border-radius: clamp(20px, 2.4vw, 34px); overflow: hidden;
  box-shadow: inset 0 1px 0 #fff, 0 2px 4px -3px #1c24301c, 0 15px 35px -27px #1c24303d;
  background: radial-gradient(ellipse at 22% 18%, #fcfcfd 7%, transparent 66%), linear-gradient(145deg, #f6f7f8, #eef0f2 65%, #e5e8ea);
}
#tour-label {
  margin: 0; font-size: clamp(2rem, 3.7vw, 3.6rem); text-wrap: balance; font-weight: 550; line-height: 1.05;
  letter-spacing: -.05em; word-spacing: .025em;
}
#tour-label em { display: block; font-family: Georgia, 'Times New Roman', serif; font-weight: 400; letter-spacing: -.05em; word-spacing: 0; }
.app-tour.intro-section { padding-bottom: 0; }
.intro-section + .app-tour { padding-top: clamp(20px, 2.8vw, 38px); }
.intro-frame { position: relative; display: block; height: calc(var(--stage-height) + 2px); padding: 0; background: #f7f7f9; }
#cinema, #cinema .fm-intro { height: 100%; }
/* The screen names, as a small segmented control under the headline. It scales with its column so all four always fit. */
.tour-copy { container-type: inline-size; }
.tour-dots {
  display: flex; gap: 2px; width: max-content; max-width: 100%; margin-top: 30px; padding: 3px;
  border-radius: 11px; background: #e6e8eb; box-shadow: inset 0 0 0 1px #1f283308;
}
.tour-dots button {
  appearance: none; border: 0; margin: 0; padding: 6px 12px; padding-inline: clamp(7px, 2.4cqi, 12px); border-radius: 8px; background: none;
  color: #5f636a; font-size: .8125rem; font-size: clamp(11px, 3.5cqi, 13px); font-weight: 590; letter-spacing: -.012em; line-height: 1.25; white-space: nowrap;
  -webkit-tap-highlight-color: transparent; transition: background-color .22s ease, color .18s ease, box-shadow .22s ease;
}
.tour-dots button[data-current] { background: #fff; color: var(--ink); box-shadow: 0 1px 2px #1c243017, 0 0 0 .5px #1c243014; }
@media (hover: hover) and (pointer: fine) {
  .tour-dots button:not([data-current]):hover { background: #ffffff80; color: var(--ink); }
}
.tour-dots button:not([data-current]):active { background: #ffffffb3; }
.tour-dots button:focus-visible { outline-offset: 1px; }
@media (prefers-reduced-motion: no-preference) {
  .tour-in-view .tour-frame { animation: arrive .55s var(--ease-out) backwards; --rise: 8px; }
  .tour-in-view .tour-dots { animation: resolve .4s ease .10s backwards; }
}
.tour-stage {
  --capture-height: calc(var(--stage-height) - 74px);
  position: relative; isolation: isolate; contain: layout paint;
  height: var(--stage-height); width: 100%;
}
.tour-layer {
  pointer-events: none; position: absolute; inset: 0;
  padding: 40px clamp(8px, 1.8vw, 28px) 20px;
  display: grid; align-items: start; justify-items: center;
}
.tour-window {
  --display-ratio: var(--capture-ratio);
  position: relative; width: min(100%, 418px, calc(var(--capture-height) * var(--display-ratio)));
  aspect-ratio: var(--display-ratio); border-radius: 13px; background: #fafaf9;
  box-shadow: 0 0 0 1px #22293319, 0 2px 4px #2834410d, 0 11px 25px -7px #25364828, 0 27px 51px -16px #34425427;
}
/* A slice of menu bar across the top of the card; the popover hangs from it at a fixed height on every screen. */
#tour .tour-frame { position: relative; }
#tour .tour-frame::before, .tour-stage::before {
  content: ""; position: absolute; z-index: 0; inset: 0 0 auto; height: 34px; pointer-events: none;
  background: #ffffffa6; border-bottom: 1px solid #1f283312;
  -webkit-mask-image: linear-gradient(90deg, transparent 38%, #000 62%); mask-image: linear-gradient(90deg, transparent 38%, #000 62%);
}
#tour .tour-frame::after, .tour-stage::after {
  content: "Thu 9:41"; position: absolute; z-index: 0; top: 0; right: 22px; line-height: 34px; pointer-events: none;
  color: #2f3237; font-size: 12.5px; font-weight: 600; letter-spacing: -.01em; font-variant-numeric: tabular-nums;
}
.tour-stage::before, .tour-stage::after { content: none; }
/* The app's menu-bar template above its native popover. */
.tour-window::before {
  content: ''; position: absolute; z-index: 1; bottom: calc(100% + 10px); left: 50%; transform: translateX(-50%);
  width: 37px; height: 26px; border-radius: 6px;
  background: #dfe2e5 url('/tour/menu-icon.svg') no-repeat center / 19px 16px;
  box-shadow: inset 0 0 0 1px #66738312;
}
.tour-window::after {
  content: ''; position: absolute; width: 13px; height: 13px; top: -6px; left: calc(50% - 6.5px);
  transform: rotate(45deg); border-radius: 2px 0 0; background: #fafaf9;
  border-left: 1px solid #22242216; border-top: 1px solid #22242216;
}
.tour-window > img, .tour-window > video {
  display: block; position: absolute; z-index: 1; inset: 0; width: 100%; height: 100%; max-width: none; border-radius: inherit; object-fit: cover; object-position: 50% 0;
}
.tour-window > video { opacity: 0; }
.tour-window > video[data-ready] { opacity: 1; }
@media (max-width: 760px) {
  .app-tour { --stage-height: clamp(316px, 97vw, 520px); padding: 34px clamp(14px, 4vw, 32px) 38px; }
  .tour-inner { max-width: 530px; }
  .tour-frame { grid-template-columns: minmax(0, 1fr); padding: 0; border-radius: 20px; }
  #tour-label { padding: 29px 12px 0; text-align: center; font-size: clamp(1.8rem, 6.8vw, 2.55rem); line-height: 1.02; }
  .tour-copy .tour-dots { margin: 16px auto 10px; }
  .tour-stage { --capture-height: calc(var(--stage-height) - 62px); }
  .intro-frame { height: calc(var(--stage-height) + 31px + 2.04 * clamp(1.8rem, 6.8vw, 2.55rem)); }
  .tour-layer { padding: 37px 14px 16px; }
  #tour .tour-frame::before, #tour .tour-frame::after { content: none; }
  .tour-stage::before {
    content: ""; top: 6px; border-top: 1px solid #1f283312;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 22%, #000 78%, transparent); mask-image: linear-gradient(90deg, transparent, #000 22%, #000 78%, transparent);
  }
  .tour-stage::after { content: "9:41"; top: 6px; right: 18px; font-size: 12px; }
  .tour-window { border-radius: 10px; }
  .tour-layer[data-screen=metrics] .tour-window { --display-ratio: 1.04; }
  .tour-window::before { bottom: calc(100% + 9px); width: 31px; height: 22px; background-size: 17px 14px; }
}
