/* Landing page. Builds on base.css tokens and app.css components; one idea
   per section, generous space, screenshots that follow the visitor's theme. */

/* Theme-dependent images: both are in the page, one is shown. */
:root[data-theme="light"] .only-dark { display: none; }
:root:not([data-theme="light"]) .only-light { display: none; }

/* The tilted hero screenshot must not widen the page (no sideways scroll). */
.landing { overflow-x: clip; }
.landing .page { padding-top: 0; padding-bottom: 0; }
.landing .topbar { padding-top: 18px; }

/* On the landing page the brand introduces itself, so the logo is larger
   than on the map pages (where the map needs the room). Still well below
   the hero title, so the two do not compete. */
.landing .brand { font-size: 24px; gap: 11px; }
.landing .brand-mark { width: 42px; height: 37px; }

/* Anchors (#ways, #how) land with some air above the heading. */
.landing [id] { scroll-margin-top: 16px; }

/* The bikepacker on the trail (template generated by
   docs/design/bikepacker_svg.py). Only theme tokens: the drawing uses the
   text colour, the trail and bags the accent, like the logo. On a phone the
   SVG keeps a minimum height and crops its sides ("slice"), so the rider in
   the middle stays large enough to recognise. */
.l-illu-band { margin-top: -8px; }
.l-illu { display: block; width: 100%; height: auto; min-height: 150px; color: var(--text); }
.il-ground { fill: none; stroke: var(--muted); stroke-width: 2.2; stroke-linecap: round; opacity: 0.5; }
.il-plan { fill: none; stroke: var(--accent-text); stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 1 8; }
.il-cp { fill: none; stroke: var(--accent-text); stroke-width: 2.4; }
.il-past circle, .il-now { fill: var(--accent-text); }
.il-ring { fill: none; stroke: var(--accent-text); stroke-width: 2; opacity: 0.4; }
/* One line width for the whole drawing, as in the logo. The far leg is only
   fainter, so it reads as behind the bike. */
.il-line { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.il-far { opacity: 0.45; }
.il-bag { fill: var(--accent-text); opacity: 0.85; }

.l-hero { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr); gap: 48px; align-items: center; padding: 56px 18px 40px !important; }
.l-hero-text { display: grid; gap: 18px; justify-items: start; }
.l-hero h1 { font-size: clamp(40px, 5.4vw, 68px); line-height: 0.98; letter-spacing: -0.045em; }
.l-hero h1 span { color: var(--accent-text); }
.l-hero-text > p { font-size: 17px; color: var(--muted); max-width: 46ch; line-height: 1.5; }
.l-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.l-hero-text > .l-note { font-size: 12.5px; color: var(--faint); }

.l-shot { margin: 0; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--bg-2); }
.l-shot img { display: block; width: 100%; height: auto; }
.l-hero-shot { transform: perspective(1600px) rotateY(-6deg) rotateX(2deg); transform-origin: left center; }

.l-section { display: grid; gap: 28px; padding: 56px 18px !important; }
.l-kicker { font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--accent-text); font-weight: 700; }

.l-face { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 44px; align-items: center; }
/* Air between the three ways, so each reads as its own story. */
.l-face + .l-face { margin-top: 56px; }
.l-face--flip { grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); }
.l-face--flip .l-shot { order: 2; }
.l-copy { display: grid; gap: 14px; align-content: start; }
.l-copy h3 { font-size: 26px; letter-spacing: -0.025em; line-height: 1.15; }
.l-copy > p { color: var(--muted); font-size: 15.5px; line-height: 1.55; }
.l-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.l-list li { position: relative; padding-left: 22px; line-height: 1.45; }
.l-list li::before { content: ""; position: absolute; left: 2px; top: 0.5em; width: 8px; height: 8px; border-radius: 50%; background: var(--accent-text); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-text) 22%, transparent); }
.l-list b { font-weight: 650; }
.l-link { color: var(--accent-text); font-weight: 650; text-decoration: none; }
.l-link:hover { text-decoration: underline; }
.l-sub { margin-top: 10px; }

.l-rider { grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: 56px; align-items: center; }
.l-phone { margin: 0 auto; width: min(320px, 100%); border-radius: 36px; overflow: hidden; border: 8px solid var(--panel-solid); outline: 1px solid var(--line); box-shadow: var(--shadow); }
.l-phone img { display: block; width: 100%; height: auto; }

.l-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: step; }
.l-steps li { display: grid; gap: 8px; align-content: start; padding: 20px; border-radius: 16px; background: var(--raise); border: 1px solid var(--line); }
.l-steps h3 { font-size: 17px; }
.l-steps p { color: var(--muted); font-size: 14px; line-height: 1.5; }
.l-step-n { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font-weight: 750; font-size: 14px; }
.l-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.l-grid .card { display: grid; gap: 6px; }
.l-grid h3 { font-size: 16px; }
.l-grid p { font-size: 14px; line-height: 1.5; }

.l-honest { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.l-honest > div { padding: 20px; border-radius: 16px; border: 1px solid var(--line); display: grid; gap: 8px; }
.l-honest > div:first-child { border-color: color-mix(in srgb, var(--warn) 40%, transparent); background: color-mix(in srgb, var(--warn) 6%, transparent); }
.l-honest h3 { font-size: 16px; }
.l-honest p { color: var(--muted); font-size: 14px; line-height: 1.55; }
.landing .foot { padding: 24px 18px 48px !important; }

@media (max-width: 900px) {
  .l-hero, .l-face, .l-face--flip, .l-rider { grid-template-columns: 1fr; gap: 26px; }
  .l-face--flip .l-shot { order: 0; }
  .l-hero { padding-top: 28px !important; }
  .landing .brand { font-size: 20px; gap: 9px; }
  .landing .brand-mark { width: 35px; height: 31px; }
  .l-hero-shot { transform: none; }
  .l-section { padding: 40px 18px !important; }
  .l-steps, .l-grid, .l-honest { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: no-preference) {
  .l-shot, .l-phone { transition: transform 0.4s ease; }
  .l-face .l-shot:hover { transform: translateY(-4px); }
  /* The newest blip pulses like a live rider on the map. */
  .il-ring { transform-box: fill-box; transform-origin: center; animation: il-pulse 2.4s ease-out infinite; }
  @keyframes il-pulse { 0% { transform: scale(0.5); opacity: 0.6; } 100% { transform: scale(1.5); opacity: 0; } }
}
