/* Home page. The whole page is one .route (see site.css): the dashed line
   starts at the hero's App Store button and ends at the download seal.
   Each section is a stop; sections about a kind of place get a small
   map-legend symbol on the line instead of a plain circle. */

.journey { padding: 0 var(--gutter) clamp(72px, 10vw, 120px); }
.journey__route { max-width: 1120px; margin: 0 auto; }

/* Blocks that sit on paper above the line, hiding it: the hero headline
   (so the line begins at the button) and the final section (so it ends at
   the seal). They reach back over the route's left padding. */
.mask {
  position: relative; z-index: 1; background: var(--parchment);
  margin-left: calc(-1 * (var(--rail-x) * 2 + 22px));
  padding-left: calc(var(--rail-x) * 2 + 22px);
}

.journey p { color: var(--ink-soft); max-width: var(--measure); }
.journey strong { color: var(--ink); }

/* ---------- Hero ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 300px);
  grid-template-rows: auto 1fr;
  grid-template-areas: "copy art" "start art";
  column-gap: clamp(32px, 6vw, 72px);
}
.hero__copy { grid-area: copy; padding-top: clamp(40px, 7vw, 88px); padding-bottom: 28px; }
.hero__copy h1 { max-width: 14ch; margin-bottom: 24px; }
.hero .lede { max-width: 40ch; margin: 0; }

.hero__start { grid-area: start; }
.hero__start::before {                /* first waypoint, centred on the button */
  top: 15px;
  box-shadow: 0 -15px 0 3px var(--parchment);   /* hides the stub of line above it */
}
.hero__facts { margin: 16px 0 0; max-width: 46ch; }

.button--store { padding: 14px 22px; font-size: 1.05rem; }
.button--store svg { width: 20px; height: 20px; margin-top: -2px; }

.hero__art { grid-area: art; position: relative; margin: clamp(40px, 7vw, 88px) 0 0; align-self: start; }
.hero__art video { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; background: var(--ink); border: 1.5px solid var(--ink); border-radius: 14px; }
.hero__art figcaption { margin-top: 10px; font-size: 0.9rem; }


@media (max-width: 860px) {
  .hero { grid-template-columns: minmax(0, 1fr); grid-template-areas: "copy" "start" "art"; }
  .hero__art { margin-top: 40px; max-width: 240px; }
}

/* ---------- Stops ---------- */

.leg { padding-top: clamp(64px, 9vw, 112px); }
.leg > h2 { margin-bottom: 14px; }

/* Legend symbols sit centred on the line, on a patch of paper that breaks the dashes. */
.stop--sym::before { content: none; }
.sym {
  position: absolute; left: -44.75px; top: calc(0.58em - 13px);
  width: 26px; height: 26px; background: var(--parchment);
  color: var(--seal); fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}

/* Gallery: scrolls sideways inside itself, snaps, works with arrow keys once focused. */
.gallery {
  display: flex; gap: 16px; margin-top: 28px; padding: 4px 4px 14px;
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  scrollbar-color: var(--ink-soft) transparent;
}
.gallery img { flex: none; width: 220px; border: 1.5px solid var(--ink); border-radius: 18px; scroll-snap-align: start; }

.leg .legend { margin: 0; }
.legend ul { grid-template-columns: minmax(0, 1fr); gap: 6px; }
.legend li { font-weight: 400; color: var(--ink); }
.legend li::before { content: none; }
.legend__more { margin: 12px 0 0; }

/* Feature stops: words left, screen right. */
.feature {
  display: grid; grid-template-columns: minmax(0, 1fr) 200px;
  gap: 28px 56px; align-items: center; max-width: 900px;
  margin-top: clamp(40px, 6vw, 64px);
}
.feature h3 { font-size: clamp(1.45rem, 2.4vw, 1.75rem); margin-bottom: 10px; }
.feature p { margin: 0; }
.feature img { width: 100%; border: 1.5px solid var(--ink); border-radius: 22px; }
.feature--wide { grid-template-columns: minmax(0, 1fr); max-width: 900px; }
.feature--wide figure { margin: 0; }
.feature--wide video { display: block; width: 100%; height: auto; aspect-ratio: 8 / 3; background: var(--ink); border: 1.5px solid var(--ink); border-radius: 14px; }
.feature--wide figcaption { margin-top: 10px; font-size: 0.9rem; }

.ipad-shot { width: 100%; max-width: 440px; margin-top: 28px; border: 1.5px solid var(--ink); border-radius: 14px; }

.steps, .trust {
  display: grid; gap: 8px 48px; max-width: 980px;
  margin: 24px 0 0; padding: 0; list-style: none;
}
.steps { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); counter-reset: step; }
.trust { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.steps li, .trust > div { border-top: 1px solid var(--rule); padding: 18px 0 8px; }
.steps li { counter-increment: step; }
.steps h3::before { content: counter(step) ". "; }
.steps h3, .trust h3 { font-size: 1.25rem; }
.steps p, .trust p { margin: 6px 0 0; font-size: 1rem; }

.plain-list { margin: 20px 0 0; padding-left: 1.2em; max-width: var(--measure); color: var(--ink-soft); }
.plain-list li { margin-bottom: 0.5em; }
.plain-list li::marker { color: var(--brass-ink); }

.faq { margin: 24px 0 20px; max-width: var(--measure); border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; padding: 15px 0; font-weight: 700; font-size: 1.06rem; color: var(--ink); }
.faq summary::marker { color: var(--ink-soft); }
.faq details p { margin: 0 0 18px; }

/* Destination. Margin, not padding, so the line shows up to the seal. */
.leg--end { margin-top: clamp(64px, 9vw, 112px); padding-top: 0; }
.leg--end h2 { font-size: clamp(2rem, 4.5vw, 3rem); line-height: 1.08; max-width: 18ch; }
.leg--end .lede { margin: 12px 0 24px; }
.leg--end .meta { margin-top: 16px; max-width: 52ch; }

@media (max-width: 760px) {
  .feature { grid-template-columns: minmax(0, 1fr); }
  .feature img { max-width: 200px; }
}

@media (max-width: 600px) {
  .mask { margin-left: -28px; padding-left: 28px; }   /* site.css sets .route padding to 28px here */
  .sym { left: -34.75px; width: 24px; height: 24px; top: calc(0.58em - 12px); }
  .gallery img { width: 180px; }
}
