/* The landing page at / (templates/landing.html). Colours and sizes come from tokens.css; buttons, tags and .num from
 * components.css. Dusk sky, a setting sun, glass panels and 7-segment numbers – the app's own look, a little bigger. */

body.landing { margin: 0; min-height: 100vh; background: var(--page-bg); color: var(--text);
  font-family: var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
.landing *, .landing *::before, .landing *::after { box-sizing: border-box; }
.landing h1, .landing h2, .landing h3, .landing p { margin: 0; }
.landing a:where(:not(.btn, .brand)) { color: var(--accent-2); }
.landing img { max-width: 100%; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }

/* ---------- title bar: transparent over the hero, glass once you scroll ---------- */
.lp-nav { position: fixed; inset: 0 0 auto; z-index: 10; display: flex; align-items: center; gap: var(--s5);
  padding: max(var(--s3), env(safe-area-inset-top)) max(var(--s5), env(safe-area-inset-right)) var(--s3) max(var(--s5), env(safe-area-inset-left));
  border-bottom: 1px solid transparent; transition: background .3s, border-color .3s, backdrop-filter .3s; }
.lp-nav.is-scrolled { background: var(--bar-top); backdrop-filter: var(--blur-glass); -webkit-backdrop-filter: var(--blur-glass); border-bottom-color: var(--line); }
.lp-nav .brand { margin-right: auto; }
.lp-nav__back { color: var(--text) !important; }
.lp-nav__links { display: flex; gap: var(--s1); }
.lp-nav__links a { display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 var(--s3); border-radius: var(--r-pill);
  color: var(--text-muted); text-decoration: none; font-weight: 600; font-size: var(--fs-sm); }
.lp-nav__links a:hover { color: var(--text); background: var(--fill); }
@media (max-width: 860px) { .lp-nav__links { display: none; } }

/* ---------- hero ---------- */
/* the hero fills the screen (it runs under the see-through title bar, so the bar's height is part of its padding) */
.lp-hero { --mx: 0; --my: 0; --nav-h: 72px; position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center; gap: 56px; min-height: 100svh;
  padding: calc(var(--nav-h) + 40px) max(var(--s5), 5vw) 150px; overflow: hidden; isolation: isolate; }
/* off screen, the hero's animations rest (landing.js) */
.lp-hero.is-off, .lp-hero.is-off * { animation-play-state: paused !important; }
.lp-hero__sky { position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(60% 50% at 70% 85%, color-mix(in srgb, var(--accent-2) 22%, transparent), transparent 70%),
    radial-gradient(70% 60% at 20% 10%, color-mix(in srgb, var(--dusk) 55%, transparent), transparent 70%);
  animation: lp-fade 1.6s ease both; }
/* a field of small bolts (landing.js), fading out towards the edges; around the pointer they shine brighter */
.lp-bolts { position: absolute; inset: 0; width: 100%; height: 100%;
  -webkit-mask: radial-gradient(ellipse 70% 72% at 50% 48%, var(--shade) 25%, transparent 100%);
  mask: radial-gradient(ellipse 70% 72% at 50% 48%, var(--shade) 25%, transparent 100%); }
/* the sun: a coral disc setting behind the screenshot – solid at the top, cut into ever thinner bands towards the horizon,
   where it fades out. It sits on the horizon (the chart along the bottom): its top peeks out above the screenshot,
   its bands show below it. */
.lp-sun { position: absolute; left: 66%; bottom: 12%; width: min(46vw, 640px); aspect-ratio: 1; border-radius: 50%;
  translate: calc(-50% + var(--mx) * -24px) calc(var(--my) * -14px);
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent-2) 55%, var(--light)) 0%, var(--accent-2) 38%,
    color-mix(in srgb, var(--accent-2) 50%, var(--accent)) 62%, transparent 92%);
  box-shadow: 0 0 120px 10px color-mix(in srgb, var(--accent-2) 22%, transparent);
  opacity: .62; will-change: transform;
  /* solid top half + bands below: the gaps grow towards the bottom */
  -webkit-mask: linear-gradient(180deg, var(--shade) 0 46%, transparent 46%),
    linear-gradient(180deg, transparent 0 50%, var(--shade) 50% 54.5%, transparent 54.5% 57%, var(--shade) 57% 61%, transparent 61% 64.5%,
      var(--shade) 64.5% 68%, transparent 68% 72.5%, var(--shade) 72.5% 75.5%, transparent 75.5% 81%, var(--shade) 81% 83.5%, transparent 83.5% 90%,
      var(--shade) 90% 92%, transparent 92%),
    linear-gradient(180deg, transparent 0 46%, var(--shade) 46% 48.5%, transparent 48.5%);
  mask: linear-gradient(180deg, var(--shade) 0 46%, transparent 46%),
    linear-gradient(180deg, transparent 0 50%, var(--shade) 50% 54.5%, transparent 54.5% 57%, var(--shade) 57% 61%, transparent 61% 64.5%,
      var(--shade) 64.5% 68%, transparent 68% 72.5%, var(--shade) 72.5% 75.5%, transparent 75.5% 81%, var(--shade) 81% 83.5%, transparent 83.5% 90%,
      var(--shade) 90% 92%, transparent 92%),
    linear-gradient(180deg, transparent 0 46%, var(--shade) 46% 48.5%, transparent 48.5%);
  animation: lp-rise-sun 2.2s cubic-bezier(.2, .8, .2, 1) both, lp-sink 16s 2.2s ease-in-out infinite alternate; transition: translate .6s ease-out; }
@keyframes lp-rise-sun { from { transform: translateY(18%); opacity: 0; } }
@keyframes lp-sink { to { transform: translateY(3%); opacity: .55; } }
@keyframes lp-fade { from { opacity: 0; } }
/* the login / invite pages: the same sky, one column, the card in the middle sliding in like the hero's text */
.lp-hero--auth { grid-template-columns: minmax(0, 1fr); place-items: center; padding-bottom: 72px; }
.lp-hero.lp-hero--auth { min-height: 100svh; }
.lp-hero--auth .auth-card h1 { margin: 4px 0 2px; font-size: 30px; line-height: 1.1; letter-spacing: -.02em; font-weight: 800; }   /* also on phones (where the landing hero sizes to its content) */
.lp-hero--auth .auth-card { position: relative; padding: var(--s5); border-color: var(--line-strong);
  background: var(--sheet-grad); box-shadow: 0 40px 100px -30px color-mix(in srgb, var(--shade) 85%, transparent), 0 0 80px -20px var(--accent-glow);
  animation: lp-in .9s .15s cubic-bezier(.2, .8, .2, 1) both; }
.lp-hero--auth .lp-sun { left: 50%; bottom: 4%; width: min(70vw, 640px); }
.lp-hero--auth + .lp-footer { margin-top: 0; }
@media (max-width: 560px) { .lp-hero--auth { padding-bottom: 40px; } .lp-hero--auth .lp-sun { width: 110vw; bottom: 0; } }

/* the text comes in line by line: each line slides up out of its own mask */
@keyframes lp-in { from { opacity: 0; transform: translateY(26px); filter: blur(8px); } }
@keyframes lp-up { from { transform: translateY(105%); } }
.lp-eyebrow { display: inline-flex; align-items: center; gap: var(--s2); padding: 6px 14px; border-radius: var(--r-pill);
  background: var(--accent-tint); border: 1px solid var(--accent-ring); color: var(--text); font-weight: 650; font-size: var(--fs-sm);
  animation: lp-in .8s .1s cubic-bezier(.2, .8, .2, 1) both; }
.lp-live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 var(--ok); animation: lp-ping 1.8s ease-out infinite; }
@keyframes lp-ping { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 60%, transparent); } 100% { box-shadow: 0 0 0 10px transparent; } }
.lp-hero h1 { margin: 22px 0 18px; font-size: clamp(40px, 6.2vw, 84px); line-height: 1; letter-spacing: -.04em; font-weight: 850; }
.lp-line { display: block; overflow: hidden; padding-bottom: .06em; }
.lp-line > span { display: inline-block; animation: lp-up 1s cubic-bezier(.2, .8, .2, 1) both; }
.lp-line:nth-child(1) > span { animation-delay: .2s; }
.lp-line:nth-child(2) > span { animation-delay: .32s; }
.lp-line:nth-child(3) > span { animation-delay: .44s; }
.lp-grad { background: linear-gradient(90deg, var(--accent), var(--accent-2), color-mix(in srgb, var(--accent-2) 60%, var(--light)), var(--accent));
  background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; }
.lp-line > .lp-grad { animation: lp-up 1s .44s cubic-bezier(.2, .8, .2, 1) both, lp-shine 7s 1.4s linear infinite; }
@keyframes lp-shine { to { background-position: 300% 0; } }
.lp-lead { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.55; color: var(--text-muted); max-width: 34em; animation: lp-in .9s .6s cubic-bezier(.2, .8, .2, 1) both; }
.lp-cta { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: 32px; animation: lp-in .9s .75s cubic-bezier(.2, .8, .2, 1) both; }

/* the screenshot swings in, then tilts with the pointer; the chips pop in and float at their own depths */
.lp-hero__shot { position: relative; margin: 0; perspective: 1600px; animation: lp-shot 1.4s .3s cubic-bezier(.16, .9, .2, 1) both; }
@keyframes lp-shot { from { opacity: 0; transform: translateX(80px) translateY(30px) rotate(3deg) scale(.9); filter: blur(10px); } }
.lp-frame { position: relative; border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--line-strong); background: var(--surface-base);
  box-shadow: 0 40px 120px -20px color-mix(in srgb, var(--shade) 80%, transparent), 0 0 0 8px var(--fill), 0 0 90px -10px var(--accent-glow); }
.lp-frame img { display: block; width: 100%; height: auto; }
.lp-hero__shot .lp-frame { transform: rotateY(calc(-9deg + var(--mx) * 7deg)) rotateX(calc(3deg - var(--my) * 5deg)); transform-origin: center;
  transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
/* a sheen sliding over the glass once it has landed */
.lp-frame__glare { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, color-mix(in srgb, var(--light) 16%, transparent) 50%, transparent 65%);
  transform: translateX(-120%); animation: lp-glare 1.6s 1.5s ease-in-out both; }
@keyframes lp-glare { to { transform: translateX(120%); } }
.lp-chip { position: absolute; display: flex; align-items: baseline; gap: 6px; padding: 10px 16px; border-radius: var(--r);
  /* frosted glass like the ride HUD: what is behind (the screenshot, the sky) shows through blurred */
  background: var(--glass); border: var(--hud-border, 2px) solid var(--line-strong);
  backdrop-filter: blur(14px) saturate(1.5); -webkit-backdrop-filter: blur(14px) saturate(1.5);
  color: var(--text-on-art); will-change: transform; box-shadow: 0 16px 40px -12px color-mix(in srgb, var(--shade) 70%, transparent);
  translate: calc(var(--mx) * var(--depth, 20px)) calc(var(--my) * var(--depth, 20px)); transition: translate .5s cubic-bezier(.2, .8, .2, 1);
  animation: lp-pop .7s var(--pop, 1.1s) cubic-bezier(.3, 1.6, .5, 1) both, lp-float 6s calc(var(--pop, 1.1s) + .7s) ease-in-out infinite; }
@keyframes lp-pop { from { opacity: 0; transform: scale(.5) translateY(20px); } }
@keyframes lp-float { 50% { transform: translateY(-10px); } }
.lp-chip .num { font-size: 34px; min-width: 2.2ch; text-align: right; }
.lp-chip small { font-size: var(--fs-xs); font-weight: 750; letter-spacing: .06em; text-transform: uppercase; color: var(--text-on-art-muted); }
.lp-chip--a { left: -28px; top: 14%; color: var(--zone-5); --depth: 34px; --pop: 1.1s; }
.lp-chip--b { right: -18px; top: 46%; --depth: 22px; --pop: 1.25s; }
.lp-chip--c { left: 12%; bottom: -26px; color: var(--hr-label); --depth: 44px; --pop: 1.4s; }

/* the power / heart-rate chart running along the bottom, like the ride HUD's (landing.js draws two laps; CSS slides them) */
.lp-live { position: absolute; left: 0; right: 0; bottom: 0; height: 130px; z-index: -1; overflow: hidden; pointer-events: none;
  -webkit-mask: linear-gradient(90deg, transparent, var(--shade) 8%, var(--shade) 92%, transparent); mask: linear-gradient(90deg, transparent, var(--shade) 8%, var(--shade) 92%, transparent);
  animation: lp-fade 1.2s 1s both; }
.lp-live canvas { display: block; width: 200%; height: 100%; animation: lp-scroll 60s linear infinite; will-change: transform; }
@keyframes lp-scroll { to { transform: translateX(-50%); } }

@media (max-width: 980px) {
  .lp-hero { grid-template-columns: 1fr; gap: 48px; min-height: 0; padding-bottom: 150px; }
  .lp-hero__shot .lp-frame { transform: none; }
  .lp-chip--a { left: -6px; } .lp-chip--b { right: -6px; }
  .lp-sun { left: 50%; bottom: 6%; width: min(80vw, 560px); }
}

/* ---------- sections ---------- */
.lp-section { width: min(1200px, 100%); margin: 0 auto; padding: 112px max(var(--s4), 3vw) 0; }
.lp-h2 { font-size: clamp(30px, 3.6vw, 48px); letter-spacing: -.03em; font-weight: 820; line-height: 1.05; }
.lp-sub { margin-top: 12px !important; color: var(--text-muted); font-size: var(--fs-lg); }
.landing h3 { font-size: var(--fs-lg); letter-spacing: -.01em; }
.landing p { line-height: 1.55; }

/* the four claims */
.lp-claims { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s4); margin-top: 36px; }
.lp-claim { position: relative; padding: 28px 24px 26px; border-radius: var(--r-xl); background: var(--card-grad); border: 1px solid var(--line);
  overflow: hidden; display: flex; flex-direction: column; gap: 10px; }
.lp-claim::after { content: ""; position: absolute; inset: auto -30% -60% auto; width: 80%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent-2) 22%, transparent), transparent 70%); pointer-events: none; transition: transform .6s; }
.lp-claim:hover::after { transform: translate(-12%, -12%) scale(1.2); }
.lp-claim__n { position: absolute; top: 20px; right: 22px; font-size: 22px; color: var(--line-strong); }
.lp-claim__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: var(--r); margin-bottom: 8px;
  background: var(--accent-grad); color: var(--text-on-accent); box-shadow: 0 10px 30px -8px var(--accent-glow); }
.lp-claim__icon .icon { width: 26px; height: 26px; }
.lp-claim h3 { font-size: 24px; }
.lp-claim p { color: var(--text-muted); }
@media (max-width: 1040px) { .lp-claims { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .lp-claims { grid-template-columns: 1fr; } }

/* screenshots: a carousel – the slides snap into the middle, their neighbours peek in dimmed; dots below pick a page */
.lp-carousel { --slide-w: min(84vw, calc((100svh - 150px) * 1.6)); position: relative; width: 100vw; margin: 28px calc(50% - 50vw) 0;
}
.lp-carousel__track { display: flex; gap: 18px; overflow-x: auto; perspective: 1600px; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 12px calc(50vw - var(--slide-w) / 2) 8px; scrollbar-width: none; overscroll-behavior-x: contain; outline: none; touch-action: pan-x pan-y; }
.lp-carousel__track::-webkit-scrollbar { display: none; }
.lp-slide { flex: 0 0 var(--slide-w); margin: 0; scroll-snap-align: center; scroll-snap-stop: always; }
.lp-slide__in { transform-origin: 50% 40%; will-change: transform, opacity; }
/* the spin + zoom while swiping: landing.js writes --p (−1 … 1: how far left / right of the middle) every frame. It moves
   the inner wrapper only – the slide itself is what snaps, and snapping to a moving target made swipes overshoot */
.lp-slide { --p: 0; --ap: 0; --shrink: .55; }
.lp-slide__in { transform: translateX(calc(var(--p) * var(--slide-w) * var(--shrink) * -.5)) rotateY(calc(var(--p) * -32deg)) scale(calc(1 - var(--ap) * var(--shrink))); opacity: calc(1 - var(--ap) * .6); }
.lp-slide .lp-frame { aspect-ratio: 16 / 10; }
.lp-slide .lp-frame img { width: 100%; height: 100%; object-fit: cover; user-select: none; -webkit-user-drag: none; }
.lp-slide { cursor: pointer; }               /* a neighbour: tap brings it to the middle */
.lp-slide.is-on .lp-frame { cursor: zoom-in; }
.lp-slide__zoom { position: absolute; right: 14px; bottom: 14px; display: grid; place-items: center; width: var(--tap); height: var(--tap);
  border-radius: 50%; border: 1px solid var(--line-strong); background: var(--popover); color: var(--text); font-size: 18px; cursor: pointer;
  opacity: 0; transform: scale(.8); transition: opacity .3s, transform .3s; pointer-events: none; }
.lp-slide.is-on .lp-slide__zoom { opacity: 1; transform: none; pointer-events: auto; }
.lp-slide__zoom:hover { background: var(--hover); }
/* the full-screen viewer: the picture edge to edge on black, the controls and caption floating over it (they fade away
   when the mouse rests); pictures slide + zoom in and out (landing.js, Web Animations) and follow a finger */
.lp-lightbox { position: fixed; inset: 0; z-index: 50; background: var(--shade); animation: lp-fade .3s ease both; touch-action: none; user-select: none; }
.lp-lightbox[hidden] { display: none; }
.lp-lightbox__stage { position: absolute; inset: 0; overflow: hidden; perspective: 1600px; touch-action: none; cursor: grab; }
.lp-lb-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; will-change: transform, opacity; -webkit-user-drag: none; }
.lp-lightbox__count, .lp-lightbox__cap, .lp-lightbox__btn { transition: opacity .4s ease; }
.lp-lightbox.is-idle .lp-lightbox__count, .lp-lightbox.is-idle .lp-lightbox__cap, .lp-lightbox.is-idle .lp-lightbox__btn:not(.lp-lightbox__close) { opacity: 0; }
.lp-lightbox__count { position: absolute; z-index: 1; bottom: max(16px, env(safe-area-inset-bottom)); left: var(--s4); margin: 0 !important; padding: 8px 14px;
  border-radius: var(--r-pill); background: var(--popover); color: var(--text-on-art); font-size: 15px; }
.lp-lightbox__cap { position: absolute; left: 0; right: 0; bottom: 0; margin: 0 !important; padding: 64px max(var(--s5), 12vw) max(22px, env(safe-area-inset-bottom));
  text-align: center; color: var(--text-on-art-muted); background: linear-gradient(transparent, color-mix(in srgb, var(--shade) 80%, transparent)); pointer-events: none; }
.lp-lightbox__cap strong { display: inline-flex; align-items: center; gap: 6px; color: var(--text-on-art); margin-right: 4px; }
.lp-lightbox__btn { position: absolute; z-index: 1; display: grid; place-items: center; width: var(--tap-lg); height: var(--tap-lg); border-radius: 50%; cursor: pointer;
  border: 1px solid var(--line-strong); background: var(--popover); color: var(--text-on-art); font-size: 22px; }
.lp-lightbox__btn:hover { background: var(--hover); }
.lp-lightbox__close { top: max(var(--s4), env(safe-area-inset-top)); right: var(--s4); }
.lp-lightbox__prev { left: var(--s4); top: 50%; translate: 0 -50%; }
.lp-lightbox__next { right: var(--s4); top: 50%; translate: 0 -50%; }
@media (max-width: 760px) {
  .lp-lightbox__prev, .lp-lightbox__next { display: none; }          /* swipe */
  .lp-lightbox__cap { padding: 48px var(--s4) max(18px, env(safe-area-inset-bottom)) 84px; font-size: 14px; text-align: left; }
}
.lp-slide figcaption { margin-top: 16px; color: var(--text-muted); font-size: var(--fs-lg); line-height: 1.5; text-align: center;
  opacity: calc(1 - var(--ap) * 2.2); }
.lp-slide figcaption strong { display: inline-flex; align-items: center; gap: 6px; margin-right: 4px; color: var(--text); }
.lp-carousel__arrow { position: absolute; top: calc(12px + var(--slide-w) * 10 / 16 / 2); translate: 0 -50%; z-index: 1;
  display: grid; place-items: center; width: var(--tap-lg); height: var(--tap-lg); border-radius: 50%; cursor: pointer;
  background: var(--popover); border: 1px solid var(--line-strong); color: var(--text); font-size: 22px;
  box-shadow: 0 12px 30px -10px color-mix(in srgb, var(--shade) 70%, transparent); }
.lp-carousel__arrow:hover { background: var(--hover); }
.lp-carousel__arrow--prev { left: max(var(--s4), calc(50vw - var(--slide-w) / 2 - var(--tap-lg) - 16px)); }
.lp-carousel__arrow--next { right: max(var(--s4), calc(50vw - var(--slide-w) / 2 - var(--tap-lg) - 16px)); }
/* the page selector: dots, the current one a wider pill that fills up while it waits (landing.js moves on at its end) */
.lp-dots { display: flex; justify-content: center; gap: 2px; margin-top: 10px; }
.lp-dot { display: grid; place-items: center; min-width: 32px; height: var(--tap); padding: 0 4px; border: 0; background: none; cursor: pointer; }
/* each dot's --a (0 … 1: how close the carousel is to its slide) is written by landing.js every frame while it moves,
   so the pills grow, shrink and light up along with the swipe */
.lp-dot span { --a: 0; position: relative; display: block; width: calc(8px + 28px * var(--a)); height: calc(8px + 2px * var(--a));
  border-radius: var(--r-pill); overflow: hidden;
  background: color-mix(in srgb, var(--accent) calc(var(--a) * 45%), var(--line-strong));
  box-shadow: 0 0 calc(var(--a) * 14px) color-mix(in srgb, var(--accent) calc(var(--a) * 60%), transparent); }
.lp-dot:hover span { background: color-mix(in srgb, var(--accent) calc(var(--a) * 45%), var(--text-muted)); }
.lp-dot.is-on span::after { content: ""; position: absolute; inset: 0; background: var(--accent-grad); border-radius: inherit;
  transform-origin: left; transform: scaleX(1); }
.is-cycling .lp-dot.is-on span::after { animation: lp-progress 6s linear both; }
.is-cycling.is-held .lp-dot.is-on span::after, .is-cycling.is-away .lp-dot.is-on span::after { animation-play-state: paused; }
@keyframes lp-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (max-width: 760px) {
  .lp-carousel { --slide-w: 90vw; }
  .lp-slide { --shrink: .3; }
  .lp-carousel__track { gap: 8px; padding: 8px 5vw 4px; }
  .lp-slide__zoom { right: 8px; bottom: 8px; width: 40px; height: 40px; font-size: 16px; }
  .lp-slide figcaption { font-size: 15px; text-align: left; }
  .lp-carousel__arrow { display: none; }            /* swipe */
}

/* features */
.lp-features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3) 40px; margin-top: 36px; }
.lp-feature { display: flex; gap: var(--s4); padding: 18px 0; border-bottom: 1px solid var(--line); }
.lp-feature__icon { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: var(--r);
  background: var(--surface-inner); border: 1px solid var(--line); color: var(--accent); }
.lp-feature__icon .icon { width: 22px; height: 22px; }
.lp-feature p { color: var(--text-muted); margin-top: 4px !important; }
@media (max-width: 760px) { .lp-features { grid-template-columns: 1fr; } }

/* connections */
.lp-conn { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s4); margin-top: 36px; }
.lp-conn__col { padding: 24px; border-radius: var(--r-xl); background: var(--card-grad); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.lp-conn__head { display: flex; align-items: center; gap: var(--s2); margin-bottom: 8px !important; color: var(--text-muted); font-size: var(--fs-sm) !important;
  text-transform: uppercase; letter-spacing: .08em; }
.lp-conn__row { display: flex; align-items: center; gap: var(--s4); padding: 12px 0; border-top: 1px solid var(--line); }
.lp-conn__row > div:nth-child(2) { flex: 1; min-width: 0; }
.lp-conn__row p { color: var(--text-muted); font-size: var(--fs-sm); margin-top: 2px !important; }
.lp-conn__tags { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.lp-logo { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: var(--r); font-weight: 850; font-size: 18px;
  background: var(--surface-inner); border: 1px solid var(--line); color: var(--text); }
.lp-logo .icon { width: 22px; height: 22px; color: var(--accent-2); }
.lp-logo--strava { background: var(--brand-strava); border-color: transparent; color: var(--light); }
.lp-logo--intervals { background: var(--accent-tint); border-color: var(--accent-ring); color: var(--accent); font-size: 22px; }
.lp-logo--tp { background: var(--gold-tint); border-color: transparent; color: var(--accent-2); font-size: 15px; }
.lp-note { display: flex; gap: var(--s2); margin-top: auto !important; padding-top: 12px; color: var(--text-muted); font-size: var(--fs-sm); }
.lp-note .icon { margin-top: 2px; }
@media (max-width: 860px) { .lp-conn { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .lp-conn__row { flex-wrap: wrap; } .lp-conn__tags { width: 100%; justify-content: flex-start; padding-left: 64px; } }

/* routes */
.lp-routes { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.lp-steps { list-style: none; padding: 0; margin: 28px 0; display: flex; flex-direction: column; gap: 20px; }
.lp-steps li { display: flex; gap: var(--s4); align-items: flex-start; }
.lp-steps li > .num { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 50%; font-size: 18px;
  background: var(--accent-grad); color: var(--text-on-accent); box-shadow: 0 8px 24px -6px var(--accent-glow); }
.lp-steps p { color: var(--text-muted); margin-top: 2px !important; }
.lp-routes__list { border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--line);
  background: var(--art-shade), var(--art-osnabrueck); padding: 24px 0 8px; }
.lp-routes__world .t-muted { color: var(--text-on-art-muted); }
.lp-routes__world { display: flex; align-items: center; gap: var(--s2); padding: 0 24px 14px; font-weight: 800; font-size: 22px; color: var(--text-on-art); }
.lp-route { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: baseline; gap: var(--s5); padding: 13px 24px;
  background: var(--glass); border-top: 1px solid var(--line); color: var(--text-on-art); }
.lp-route__name { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-route__v { display: inline-flex; align-items: baseline; gap: 5px; justify-content: flex-end; min-width: 6.2em; }
.lp-route__v .num { font-size: 18px; }
.lp-route__v small { font-size: var(--fs-xs); color: var(--text-on-art-muted); font-weight: 700; text-transform: uppercase; }
@media (max-width: 860px) { .lp-routes { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .lp-route { gap: var(--s2); padding: 12px 16px; } .lp-route__v { min-width: 0; } }

/* the end */
.lp-final { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; padding-bottom: 40px; }
.lp-final__mark { border-radius: 22px; box-shadow: 0 20px 60px -10px var(--accent-glow); }
.lp-final h2 { font-size: clamp(32px, 4vw, 52px); letter-spacing: -.03em; }
.lp-final p { color: var(--text-muted); max-width: 34em; font-size: var(--fs-lg); }
.lp-footer { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: var(--s4) var(--s6); margin-top: 96px;
  padding: 32px max(var(--s5), 5vw) max(28px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--surface-sunk); }
.lp-footer__brand .brand { font-size: 17px; }
.lp-footer__brand .brand__mark { width: 30px; height: 30px; }
.lp-footer__brand p { margin-top: 6px !important; color: var(--text-muted); font-size: var(--fs-sm); }
.lp-footer__links { display: flex; flex-wrap: wrap; gap: var(--s1); justify-content: flex-end; }
.lp-footer__links a { display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 var(--s3); border-radius: var(--r-pill);
  color: var(--text-muted) !important; text-decoration: none; font-weight: 600; font-size: var(--fs-sm); }
.lp-footer__links a:hover { color: var(--text) !important; background: var(--fill); }
.lp-footer__fine { grid-column: 1 / -1; padding-top: var(--s3); border-top: 1px solid var(--line); color: var(--text-muted); font-size: var(--fs-xs); }
.lp-footer__fine a { color: var(--text-muted) !important; }
@media (max-width: 560px) {
  .lp-footer { grid-template-columns: 1fr; margin-top: 72px; }
  .lp-footer__links { justify-content: flex-start; margin-left: calc(-1 * var(--s3)); }
}

/* things rise in as they scroll into view */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1); }
.reveal.is-in { opacity: 1; transform: none; }
.lp-claims .reveal:nth-child(2), .lp-features .reveal:nth-child(even) { transition-delay: .08s; }
.lp-claims .reveal:nth-child(3) { transition-delay: .16s; }
.lp-claims .reveal:nth-child(4) { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  .lp-slide__in { transform: none; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .lp-hero *, .lp-hero__shot { animation: none !important; }
}
/* ---------- phones, upright: one column, everything full width, the screenshot peeking in at the bottom of the screen ---------- */
@media (max-width: 560px) {
  .lp-nav { gap: var(--s2); padding-left: var(--s4); padding-right: var(--s4); }
  .lp-nav .brand { font-size: 17px; gap: 6px; }
  .lp-nav .brand__mark { width: 32px; height: 32px; }
  .lp-nav .btn { min-height: 44px; padding: 0 16px; }

  .lp-hero { --nav-h: 64px; padding: calc(var(--nav-h) + 20px) var(--s4) 120px; gap: 36px; text-align: left; }
  .lp-eyebrow { font-size: var(--fs-xs); padding: 5px 12px; }
  .lp-hero h1 { font-size: clamp(40px, 12.5vw, 54px); margin: 18px 0 14px; }
  .lp-lead { font-size: 16px; }
  .lp-cta { margin-top: 24px; flex-direction: column; align-items: stretch; gap: var(--s2); }
  .lp-cta .btn--xl { min-height: var(--tap-lg); font-size: 18px; }
  .lp-sun { width: 96vw; bottom: 3%; opacity: .5; }
  .lp-hero__shot { margin: 0 calc(-1 * var(--s2)); }
  .lp-frame { border-radius: var(--r-lg); box-shadow: 0 24px 60px -16px color-mix(in srgb, var(--shade) 80%, transparent), 0 0 0 5px var(--fill), 0 0 60px -10px var(--accent-glow); }
  .lp-chip { padding: 5px 10px; border-radius: var(--r-sm); } .lp-chip .num { font-size: 22px; }
  .lp-chip--a { left: 10px; top: -18px; } .lp-chip--b { right: 4px; top: auto; bottom: 18%; } .lp-chip--c { left: 30%; bottom: -20px; }
  .lp-live { height: 90px; }

  .lp-section { padding-top: 80px; }
  .lp-h2 { font-size: 32px; }
  .lp-sub { font-size: var(--fs); }

  /* the claims: compact cards, icon beside the title */
  .lp-claims { gap: var(--s3); margin-top: 24px; }
  .lp-claim { display: grid; grid-template-columns: 44px 1fr; column-gap: var(--s3); row-gap: 6px; padding: 18px; border-radius: var(--r-lg); }
  .lp-claim__icon { width: 44px; height: 44px; margin: 0; grid-row: span 1; }
  .lp-claim__icon .icon { width: 22px; height: 22px; }
  .lp-claim h3 { align-self: center; font-size: 21px; }
  .lp-claim p { grid-column: 1 / -1; font-size: 15px; }
  .lp-claim__n { top: 16px; right: 16px; font-size: 16px; }


  .lp-features { margin-top: 20px; }
  .lp-feature { padding: 14px 0; gap: var(--s3); }
  .lp-feature__icon { width: 40px; height: 40px; }
  .lp-feature p { font-size: 15px; }

  .lp-conn { margin-top: 24px; }
  .lp-conn__col { padding: 18px; border-radius: var(--r-lg); }
  .lp-logo { width: 42px; height: 42px; }

  .lp-routes { gap: 32px; }
  .lp-routes__list { margin: 0 calc(-1 * var(--s4)); border-radius: 0; border-left: 0; border-right: 0; }
  .lp-routes .btn { width: 100%; }
  .lp-final .btn { width: 100%; }
}

/* ---------- licences page ---------- */
.lp-legal { width: min(960px, 100%); margin: 0 auto; padding: 104px max(var(--s4), 3vw) 0; }
.lp-back { display: inline-flex; align-items: center; gap: var(--s2); min-height: var(--tap); margin-bottom: var(--s3);
  color: var(--text-muted) !important; text-decoration: none; font-weight: 600; }
.lp-back:hover { color: var(--text) !important; }
.lp-legal section { padding-top: 48px; }
.lp-legal h2 { font-size: 26px; letter-spacing: -.02em; margin-bottom: 16px; }
.lp-legal h3 { margin: 28px 0 10px; font-size: var(--fs-lg); }
.lp-legal h3 .t-muted { font-weight: 500; font-size: var(--fs-sm); }
.lp-legal a { color: var(--text); text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.lp-legal a:hover { text-decoration-color: var(--accent-2); }
.lp-ltable { border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--card-grad); overflow: hidden; }
.lp-lrow { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s4); padding: 14px 18px; border-top: 1px solid var(--line); }
.lp-lrow:first-child { border-top: 0; }
.lp-lrow > div { min-width: 0; }
.lp-lrow p { font-size: var(--fs-sm); margin-top: 2px !important; }
.lp-ltable--dense .lp-lrow { padding: 10px 18px; font-size: var(--fs-sm); align-items: center; }
.lp-lic { flex: none; max-width: 45%; text-align: right; font-size: var(--fs-xs); font-weight: 700; padding: 4px 10px; border-radius: var(--r-pill);
  background: var(--accent-tint); color: var(--text); }
.lp-legal .lp-lic a { text-decoration: none; }
.lp-address { font-style: normal; line-height: 1.7; }
.lp-legal section > p { line-height: 1.6; }
.lp-small { margin-top: 12px !important; color: var(--text-muted); font-size: var(--fs-sm); }
.lp-notice { margin-top: var(--s3); border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); }
.lp-notice summary { min-height: var(--tap); display: flex; align-items: center; gap: var(--s2); padding: 0 18px; cursor: pointer; font-weight: 700; }
.lp-notice ul { margin: 0; padding: 0 18px 0 36px; font-size: var(--fs-sm); color: var(--text); line-height: 1.6; }
.lp-notice pre { margin: 12px 18px 18px; padding: 14px; border-radius: var(--r); background: var(--surface-sunk); color: var(--text-muted);
  font-size: var(--fs-xs); white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 560px) { .lp-lrow { flex-direction: column; gap: var(--s2); } .lp-lic { max-width: none; text-align: left; } }
