/* The tour (/tour): a stepper, six stops joined by a thin timeline, text one side and a real screen the other. Calm motion:
   each block eases in once (about 300 ms, transform + opacity only). Reduced motion shows everything at once (tour.js). */
.tour-head { padding: 150px 0 48px; text-align: center; }
.tour-head .heading { justify-content: center; }
.tour-head h1 { font-size: clamp(40px, 5.2vw, 72px); }
.tour-head h2 { margin: 0; font-weight: 700; letter-spacing: -.035em; line-height: 1.05; }
.tour-head .hero-lead { margin: 20px auto 0; max-width: 560px; }

.tour { width: min(1240px, calc(100% - clamp(32px, 6vw, 80px))); margin-inline: auto; }

/* stepper: six numbered stops, sticky under the nav, the one in view is gold */
.tour-steps { position: sticky; top: 76px; z-index: 20; padding: 14px 0 16px; background: rgba(4,6,12,.9); border-bottom: 1px solid rgba(255,255,255,.07); }
.tour-steps ol { position: relative; display: flex; justify-content: space-between; margin: 0 auto; padding: 0; list-style: none; max-width: 860px; }
.tour-steps ol::before { content: ''; position: absolute; left: 6%; right: 6%; top: 17px; height: 1px; background: rgba(255,255,255,.12); }
.tour-steps li { position: relative; flex: 1 1 0; text-align: center; }
.tour-steps a { display: grid; justify-items: center; gap: 8px; color: var(--text-3); font-size: 13px; text-decoration: none; transition: color .25s ease; }
.tour-steps b { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); background: var(--bg-void); color: var(--text-2); font: 600 14px/1 var(--font-body); transition: background .25s ease, color .25s ease, border-color .25s ease; }
.tour-steps a.on { color: var(--text-1); }
.tour-steps a.on b { background: var(--brand); border-color: var(--brand); color: #17140D; }

/* timeline */
.tour-flow { position: relative; }
.tour-line { position: absolute; z-index: 0; left: 50%; top: 0; bottom: 0; width: 1px; background: rgba(255,255,255,.1); transform: translateX(-.5px); }
.tour-line i { position: absolute; inset: 0; background: var(--brand); transform-origin: 50% 0; transform: scaleY(0); will-change: transform; }

.stop { position: relative; padding: 90px 0; scroll-margin-top: 130px; }
.stop-node { position: absolute; z-index: 2; left: 50%; top: 98px; display: grid; place-items: center; width: 34px; height: 34px; margin-left: -17px; border-radius: 50%; background: var(--bg-void); border: 1px solid var(--brand); color: var(--brand-bright); font: 600 14px/1 var(--font-body); font-style: normal; }
.stop-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 120px; align-items: center; }
.stop-r .stop-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.stop-r .stop-copy { order: 2; }
.stop-tag { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; color: var(--brand); font: 700 12px/1.2 var(--font-body); letter-spacing: .16em; }
.stop-tag b { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--brand); color: #17140D; font: 700 13px/1 var(--font-body); letter-spacing: 0; }
.stop-copy h2 { margin: 0; font: 600 clamp(30px, 3.1vw, 42px)/1.08 var(--font-display); letter-spacing: -.03em; text-wrap: balance; }
.stop-copy p:not(.stop-tag) { margin: 18px 0 0; max-width: 470px; color: var(--text-2); font-size: 17px; line-height: 1.6; }
.stop-shot { min-width: 0; }
.stop-shot .visual { width: 100%; }
.stop-shot .visual.narrow { max-width: 440px; margin-inline: auto; }

/* alternate bands, like a stack of pages: every other stop sits on a slightly lighter full-width panel (the specks show through) */
.stop::before { content: ''; position: absolute; z-index: -1; top: 0; bottom: 0; left: 50%; width: 100vw; transform: translateX(-50%); pointer-events: none; }
.stop:nth-of-type(even)::before { background: rgba(255,255,255,.022); border-top: 1px solid rgba(255,255,255,.05); border-bottom: 1px solid rgba(255,255,255,.05); }

/* ease in once */
.js .stop-copy, .js .stop-shot { opacity: 0; transform: translateY(16px); transition: opacity .3s ease-out, transform .3s ease-out; }
.js .stop-shot { transition-delay: 70ms; }
.js .stop.in .stop-copy, .js .stop.in .stop-shot { opacity: 1; transform: none; }

/* the lock-screen stop: banners follow the scroll */
.tour .sc-lock .nb { transition: opacity .3s ease-out, transform .3s ease-out; }

/* end of the tour: one full-width band */
.tour-cta { padding: 110px 20px 120px; text-align: center; background: #070A11; border-top: 1px solid rgba(255,255,255,.07); border-bottom: 1px solid rgba(255,255,255,.07); }
.tour-cta .heading { justify-content: center; }
.tour-cta h2 { font-size: clamp(34px, 4.4vw, 56px); }
.tour-cta p:not(.heading) { margin: 16px auto 28px; max-width: 520px; color: var(--text-2); font-size: 18px; }

@media (max-width: 900px) {
  .tour-head { padding-top: 120px; }
  .tour-steps { top: 64px; padding: 10px 0 12px; }
  .tour-steps a span { display: none; }
  .tour-steps ol::before { top: 17px; }
  .tour-line { left: 17px; }
  .stop { padding: 64px 0 64px 52px; }
  .stop-node { left: 0; top: 70px; margin-left: 0; }
  .stop-grid, .stop-r .stop-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .stop-r .stop-copy { order: 0; }
  .stop-copy p:not(.stop-tag) { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .js .stop-copy, .js .stop-shot { opacity: 1; transform: none; transition: none; }
  .tour .sc-lock .nb { transition: none; }
}

/* a phone gets the real page at phone width where a crop would cut words */
.tour-m { display: none; }
@media (max-width: 700px) {
  .tour-d { display: none; }
  .tour-m { display: block; }
  .tour-m .phone-rim { width: min(300px, 80%); margin: 0 auto; border-radius: 34px; padding: 6px; }
  .tour-m .phone-bezel { border-radius: 28px; max-height: 420px; }
  .tour-m .phone-bezel img { object-fit: cover; object-position: 0 0; max-height: 420px; width: 100%; }
}

/* stop 1: the real iPhone app screens under the desktop picture */
.tour-phones { display: flex; justify-content: center; gap: 22px; margin-top: 26px; }
.tour-phones .phone-rim { width: 200px; flex: 0 0 auto; }
@media (max-width: 900px) { .tour-phones { gap: 14px; } .tour-phones .phone-rim { width: min(160px, calc(50% - 7px)); border-radius: 26px; padding: 5px; } .tour-phones .phone-bezel { border-radius: 22px; } }
