/* ==========================================================================
   Motionry — website styles
   ========================================================================== */

:root {
  /* Neutrals */
  --black: #000;
  --white: #fff;
  --grey-50: #f6f6f6;
  --grey-100: #f3f3f3;
  --grey-150: #ebebeb;
  --grey-200: #e2e2e2;
  --text-2: #4b4b4b;
  --text-3: #6b6b6b;
  --text-4: #8a8a8a;
  --dark-text-2: #b5b5b5;
  --dark-text-3: #a8a8a8;
  --dark-line: #1f1f1f;
  --hairline: rgba(0, 0, 0, .14);

  /* Heart rate zones (-d = tuned for dark backgrounds) */
  --z1: #3a4a63;
  --z1-d: #6f86ad;
  --z2: #3e7c8c;
  --z2-d: #58a5b8;
  --z3: oklch(0.86 0.19 128);
  --z4: oklch(0.80 0.15 75);
  --z5: oklch(0.63 0.21 27);
  --z5-d: oklch(0.68 0.21 27);

  /* Live zone colour, updated by JS */
  --zc: var(--z3);
  /* Ride map tooltip dot colour, updated by JS */
  --tip: oklch(0.66 0.21 27);

  --font: Geist, system-ui, sans-serif;
  --mono: 'Geist Mono', ui-monospace, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --glass-blur: blur(20px) saturate(180%);
  --container: 1180px;
}

/* Base
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

section[id] { scroll-margin-top: 90px; }

body {
  margin: 0;
  background: var(--white);
  color: var(--black);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, p, figure, ul { margin: 0; }
ul { padding: 0; list-style: none; }

a { color: inherit; text-decoration: none; }

button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }

svg { display: block; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

@keyframes pulse {
  from { transform: scale(1); opacity: .7; }
  to { transform: scale(2.6); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Layout
   ========================================================================== */

.container { max-width: var(--container); margin: 0 auto; }

.section { padding: 140px 24px; }
.section--flush { padding: 0 24px 140px; }
.section--zones { padding-bottom: 120px; }
.section--platforms { padding-bottom: 120px; overflow: hidden; }
.section--share { overflow: hidden; }

.dark { background: var(--black); color: var(--white); }

.stack-18, .stack-22, .stack-48, .stack-56 { display: flex; flex-direction: column; }
.stack-18 { gap: 18px; }
.stack-22 { gap: 22px; }
.stack-48 { gap: 48px; }
.stack-56 { gap: 56px; }

.two-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 56px;
  align-items: center;
}

.split-head {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 32px;
  align-items: end;
}

.measure-560 { max-width: 560px; }
.measure-760 { max-width: 760px; }
.measure-860 { max-width: 860px; }

/* Typography
   ========================================================================== */

.display, .display-md, .display-xl, .h1, .h2 { font-weight: 700; text-wrap: balance; }

.display { font-size: clamp(56px, 8.6vw, 124px); line-height: .9; letter-spacing: -.055em; }
.display-md { font-size: clamp(48px, 6.4vw, 92px); line-height: .9; letter-spacing: -.055em; }
.display-xl { font-size: clamp(64px, 11vw, 176px); line-height: .84; letter-spacing: -.065em; font-weight: 800; }
.h1 { font-size: clamp(44px, 6vw, 84px); line-height: .95; letter-spacing: -.05em; }
.h2 { font-size: clamp(40px, 5vw, 68px); line-height: .95; letter-spacing: -.05em; }

.lead { font-size: 18px; line-height: 1.55; color: var(--text-2); max-width: 460px; text-wrap: pretty; }
.lead--dark { color: var(--dark-text-2); }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 500 12px/1 var(--mono);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-4);
}
.eyebrow--live { color: var(--dark-text-3); }
.eyebrow--light { color: var(--text-3); }

.mono-label {
  font: 500 11px/1 var(--mono);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-4);
}

.mono-caption {
  font: 500 13px/1 var(--mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-3);
}

/* Live zone colour helpers */
.zone-text { color: var(--zc); transition: color .6s; }
.zone-fill { fill: var(--zc); color: var(--zc); transition: color .6s; }
.zone-stroke { stroke: var(--zc); transition: stroke .6s; }

/* Reveal on scroll (enabled by JS) */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  transition-delay: calc(var(--reveal-i, 0) * 90ms);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 20px;
  border-radius: 22px;
  font: 600 14px/1 var(--font);
  white-space: nowrap;
  transition: transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn--dark { background: var(--black); color: var(--white); }
.btn--lg { height: 52px; padding: 0 24px; border-radius: 26px; font-size: 16px; }
.btn--lg:hover { transform: translateY(-2px); }

.store-buttons { display: flex; gap: 12px; flex-wrap: wrap; }

.store-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  height: 64px;
  min-width: 190px;
  padding: 0 26px;
  border-radius: 32px;
  transition: transform .2s;
}
.store-btn:hover { transform: translateY(-2px); }
.store-btn small { font: 500 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.store-btn strong { font: 700 20px/1 var(--font); letter-spacing: -.02em; }
.store-btn--light { background: var(--white); color: var(--black); }
.store-btn--light small { color: var(--text-3); }
.store-btn--glass {
  background: rgba(58, 58, 60, .5);
  border: .5px solid rgba(255, 255, 255, .18);
  box-shadow: inset 1px 1px 0 rgba(255, 255, 255, .14);
  color: var(--white);
}
.store-btn--glass small { color: var(--dark-text-3); }

/* Segmented control */
.segmented { display: flex; gap: 4px; height: 52px; padding: 5px; border-radius: 26px; }
.segmented button {
  flex: 1;
  padding: 0 12px;
  border-radius: 21px;
  white-space: nowrap;
  font: 600 15px/1 var(--font);
  color: var(--black);
  transition: background .25s, color .25s;
}
.segmented button.is-active { background: var(--black); color: var(--white); }
.segmented--grey { background: var(--grey-100); min-width: 300px; }
.segmented--glass {
  background: rgba(255, 255, 255, .62);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: .5px solid rgba(0, 0, 0, .06);
  box-shadow: 0 4px 16px rgba(0, 0, 0, .08), inset 1px 1px 0 rgba(255, 255, 255, .9);
}

/* Navigation
   ========================================================================== */

.nav {
  position: fixed;
  top: 14px;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  justify-content: center;
  padding: 0 16px;
  pointer-events: none;
}

.nav__bar {
  pointer-events: auto;
  width: 100%;
  max-width: var(--container);
  height: 60px;
  padding: 0 8px 0 20px;
  border-radius: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: rgba(255, 255, 255, .72);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: .5px solid rgba(0, 0, 0, .08);
  box-shadow: 0 8px 28px rgba(0, 0, 0, .12), inset 1px 1px 0 rgba(255, 255, 255, .9);
}

.nav__links { display: flex; align-items: center; gap: 6px; font: 500 14px/1 var(--font); }

.nav__link { padding: 10px 12px; border-radius: 18px; transition: background .2s; }
.nav__link:hover { background: rgba(0, 0, 0, .06); }

.brand { display: flex; align-items: center; gap: 10px; }
.brand__mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--black);
}
.brand__mark span { width: 9px; height: 9px; border-radius: 50%; border: 2.5px solid var(--white); }
.brand__name { font: 700 18px/1 var(--font); letter-spacing: -.02em; }

.brand--footer { color: var(--white); }
.brand--footer .brand__mark { width: 24px; height: 24px; border-radius: 7px; background: var(--white); }
.brand--footer .brand__mark span { width: 8px; height: 8px; border-width: 2px; border-color: var(--black); }
.brand--footer .brand__name { font-size: 15px; }

@media (max-width: 760px) {
  .nav__link { display: none; }
}

/* Device frames
   ========================================================================== */

.device-scale { position: absolute; top: 0; left: 0; transform: scale(.8); transform-origin: 0 0; }
.device-scale--hero { transform: scale(.82); }

.ios-device {
  position: relative;
  width: 402px;
  height: 874px;
  border-radius: 48px;
  overflow: hidden;
  background: #f2f2f7;
  color: var(--black);
  font-family: -apple-system, system-ui, sans-serif;
  box-shadow: 0 40px 80px rgba(0, 0, 0, .18), 0 0 0 1px rgba(0, 0, 0, .12);
}
.ios-device--dark { background: var(--black); color: var(--white); }

.ios-device__island {
  position: absolute;
  top: 11px;
  left: 50%;
  z-index: 50;
  width: 126px;
  height: 37px;
  margin-left: -63px;
  border-radius: 24px;
  background: var(--black);
}

.ios-device__status {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 23px 42px 0 52px;
  font: 590 17px/22px -apple-system, system-ui;
}
.ios-device__status svg { width: 71px; height: 13px; }

.ios-device__home {
  position: absolute;
  bottom: 8px;
  left: 50%;
  z-index: 60;
  width: 139px;
  height: 5px;
  margin-left: -69.5px;
  border-radius: 100px;
  background: rgba(0, 0, 0, .25);
  pointer-events: none;
}
.ios-device--dark .ios-device__home { background: rgba(255, 255, 255, .7); }

.android-device {
  position: relative;
  width: 412px;
  height: 892px;
  border-radius: 36px;
  overflow: hidden;
  background: var(--white);
  border: 8px solid #1a1a1a;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .25);
  font-family: Roboto, system-ui, sans-serif;
  color: #171d1b;
}

.android-device__status {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 5;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  font: 400 14px/20px Roboto, system-ui;
  letter-spacing: .25px;
}
.android-device__status svg { width: 44px; height: 16px; }
.android-device__camera {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 24px;
  height: 24px;
  margin-left: -12px;
  border-radius: 50%;
  background: #2e2e2e;
}

.android-device__gesture {
  position: absolute;
  bottom: 10px;
  left: 50%;
  z-index: 5;
  width: 108px;
  height: 4px;
  margin-left: -54px;
  border-radius: 2px;
  background: #171d1b;
  opacity: .4;
}

/* Map backgrounds (stand-ins for real map tiles) */
.map-bg { background-position: center; background-size: cover; }
.map-bg--light { background-color: #e9e9e7; background-image: url("../assets/map-light.svg"); }
.map-bg--dark { background-color: #1c1c1e; background-image: url("../assets/map-dark.svg"); }

/* Glass pills used inside device screens */
.glass-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 14px;
  border-radius: 20px;
  font: 600 15px/1 system-ui;
  font-variant-numeric: tabular-nums;
}
.glass-pill--dark {
  background: rgba(58, 58, 60, .5);
  border: .5px solid rgba(255, 255, 255, .14);
  box-shadow: inset 1px 1px 0 rgba(255, 255, 255, .14);
}
.glass-pill--muted { font-weight: 500; color: rgba(255, 255, 255, .75); }
.glass-pill--light {
  height: 48px;
  padding: 0 16px;
  border-radius: 24px;
  background: rgba(255, 255, 255, .6);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: .5px solid rgba(255, 255, 255, .8);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .12), inset 1px 1px 0 rgba(255, 255, 255, .9);
}
.glass-pill--round { width: 48px; padding: 0; justify-content: center; font-size: 17px; }

/* Hero
   ========================================================================== */

.hero { position: relative; overflow: hidden; padding: 140px 24px 0; }

.hero__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
  gap: 48px;
  align-items: center;
}

.hero__copy { display: flex; flex-direction: column; gap: 28px; padding-bottom: 40px; }
.hero__lead { max-width: 500px; font-size: 19px; line-height: 1.5; }

.pulse-dot { position: relative; width: 10px; height: 10px; flex: none; }
.pulse-dot span { position: absolute; inset: 0; border-radius: 50%; background: var(--zc); transition: background .6s; }
.pulse-dot span + span { animation: pulse 1.6s ease-out infinite; }

.hero__visual { position: relative; display: flex; justify-content: center; padding-top: 10px; }

.hero__glow {
  position: absolute;
  top: 40px;
  left: 50%;
  width: 560px;
  height: 560px;
  margin-left: -280px;
  border-radius: 50%;
  background: var(--zc);
  opacity: .16;
  filter: blur(90px);
  transition: background 1s;
  pointer-events: none;
}

.hero__phone { position: relative; flex: none; width: 330px; height: 717px; }

/* Live ride screen inside the hero phone */
.ride-screen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-family: system-ui, sans-serif;
}
.ride-screen__pills { display: flex; gap: 8px; padding: 58px 16px 0; }
.rec-dot { width: 8px; height: 8px; border-radius: 50%; background: #ff453a; }

.ride-screen__metrics { display: flex; padding: 28px 20px 0; }
.ride-screen__metrics > div { flex: 1; }
.ride-screen__hr { padding-left: 20px; border-left: .5px solid rgba(255, 255, 255, .18); }

.ride-label { font: 500 14px/1 system-ui; color: rgba(235, 235, 245, .6); }
.ride-label:last-child { margin-top: 8px; }
.ride-value {
  margin-top: 10px;
  font: 700 80px/.9 system-ui;
  letter-spacing: -.05em;
  font-variant-numeric: tabular-nums;
}

.zone-segments { display: flex; gap: 4px; height: 6px; margin: 22px 20px 0; }
.zone-segments span {
  flex: 1;
  border-radius: 3px;
  background: rgba(255, 255, 255, .16);
  transition: flex .6s var(--ease), background .6s;
}
.zone-segments span.is-active { flex: 1.6; background: var(--zc); }

.ride-screen__stats { display: grid; grid-template-columns: repeat(3, 1fr); margin: 22px 20px 0; }
.ride-screen__stats .ride-label { font-size: 13px; }
.ride-stat {
  margin-top: 8px;
  font: 700 26px/1 system-ui;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
}

.ride-screen__map { position: relative; flex: 1; margin-top: 22px; overflow: hidden; }
.ride-screen__route {
  position: absolute;
  top: 6px;
  left: 50%;
  width: 240px;
  height: 240px;
  margin-left: -120px;
  overflow: visible;
  fill: none;
}

.ride-controls {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ride-controls__side {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(58, 58, 60, .6);
  border: .5px solid rgba(255, 255, 255, .14);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .35), inset 1px 1px 0 rgba(255, 255, 255, .14);
  color: var(--white);
}
.ride-controls__side svg { width: 20px; height: 20px; }
.ride-controls__pause {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 8px 28px rgba(0, 0, 0, .4);
}
.ride-controls__pause span { width: 7px; height: 26px; border-radius: 2px; background: var(--black); }

/* Floating glass cards around the hero phone */
.float-card {
  position: absolute;
  z-index: 2;
  padding: 14px 16px;
  background: rgba(40, 40, 42, .72);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: .5px solid rgba(255, 255, 255, .16);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .5), inset 1px 1px 0 rgba(255, 255, 255, .14);
}

.float-card--alert {
  top: 160px;
  left: calc(50% - 315px);
  display: flex;
  align-items: center;
  gap: 12px;
  width: 260px;
  border-radius: 24px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .5s, transform .5s var(--ease);
}
.float-card--alert.is-shown { opacity: 1; transform: none; }
.float-card__bar { flex: none; width: 10px; height: 40px; border-radius: 5px; background: var(--z5); }
.float-card__title { font: 600 15px/1.2 var(--font); }
.float-card__text { margin-top: 3px; font: 400 13px/1.35 var(--font); color: rgba(235, 235, 245, .7); }

.float-card--watch {
  top: 430px;
  left: calc(50% + 105px);
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 170px;
  border-radius: 22px;
}
.float-card__hr { display: flex; align-items: center; gap: 10px; }
.float-card__hr svg { width: 18px; height: 18px; }
.float-card__hr strong { font: 700 28px/1 var(--font); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.float-card__hr span { font: 500 13px/1 var(--font); color: var(--dark-text-3); }

@media (max-width: 720px) {
  .float-card--alert { left: 0; top: 120px; width: 230px; }
  .float-card--watch { left: auto; right: 0; }
}

/* Live heart-rate strip */
.live-strip {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 32px;
  align-items: center;
  padding: 36px 0 44px;
  border-top: 1px solid var(--dark-line);
}
.live-strip__label { display: flex; flex-direction: column; gap: 10px; min-width: 140px; }
.live-strip__zone { font: 600 15px/1 var(--font); }
.live-strip__chart { width: 100%; height: 110px; overflow: visible; }
.live-strip__chart line { stroke: var(--dark-line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.live-strip__chart polyline {
  fill: none;
  stroke-width: 2.5;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

@media (max-width: 560px) {
  .live-strip { grid-template-columns: 1fr; gap: 20px; }
}

/* Zones
   ========================================================================== */

.zones {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
  gap: 16px;
}

.zones__list { display: flex; flex-direction: column; gap: 8px; }

.zone-row {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 18px 20px;
  border-radius: 24px;
  background: var(--grey-50);
  text-align: left;
  transition: background .3s;
}
.zone-row:hover, .zone-row.is-active { background: var(--grey-150); }
.zone-row__bar {
  flex: none;
  width: 8px;
  height: 28px;
  border-radius: 4px;
  background: var(--c);
  transition: height .4s var(--ease);
}
.zone-row.is-active .zone-row__bar { height: 44px; }
.zone-row__text { flex: 1; }
.zone-row__name, .zone-row__desc { display: block; }
.zone-row__name { font: 600 18px/1.2 var(--font); }
.zone-row__desc { margin-top: 3px; font: 400 14px/1.3 var(--font); color: var(--text-3); }
.zone-row__range { font: 500 16px/1 var(--mono); font-variant-numeric: tabular-nums; }

.zone-detail {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 460px;
  padding: 36px;
  border-radius: 36px;
  overflow: hidden;
  background: var(--z3);
  color: var(--black);
  transition: background .5s, color .5s;
}
.zone-detail__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font: 500 12px/1 var(--mono);
  letter-spacing: .2em;
  text-transform: uppercase;
}
.zone-detail__range {
  font: 800 clamp(96px, 14vw, 188px)/.8 var(--font);
  letter-spacing: -.07em;
  font-variant-numeric: tabular-nums;
}
.zone-detail__pct { margin-top: 18px; font: 600 18px/1 var(--font); }
.zone-detail__desc { max-width: 360px; font: 500 22px/1.3 var(--font); letter-spacing: -.01em; text-wrap: pretty; }

/* Ride map
   ========================================================================== */

.panel { border-radius: 44px; padding: clamp(28px, 5vw, 64px); }
.panel--grey { background: var(--grey-100); }

.ride-map {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 48px;
  align-items: center;
}
.ride-map .lead { max-width: 440px; }

.badge {
  align-self: flex-start;
  display: flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 12px;
  border-radius: 15px;
  background: var(--black);
  color: var(--white);
  font: 600 13px/1 var(--font);
}
.badge svg { width: 11px; height: 11px; }

.splits { display: flex; flex-direction: column; max-width: 420px; margin-top: 8px; }
.split {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 72px;
  gap: 14px;
  align-items: center;
  padding: 12px 0;
  border-bottom: .5px solid var(--hairline);
}
.split__km { font: 500 14px/1 var(--mono); }
.split__hr { font: 600 14px/1 var(--font); text-align: right; font-variant-numeric: tabular-nums; }

/* Progress bars: fill animates to --w once the element (or an ancestor) is seen */
.bar { display: block; height: 8px; border-radius: 4px; background: var(--grey-200); overflow: hidden; }
.bar--dark { height: 10px; border-radius: 5px; background: var(--dark-line); }
.bar__fill {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--c);
  transition: width 1.1s var(--ease);
}
.is-visible .bar__fill, .is-seen .bar__fill, html:not(.js) .bar__fill { width: var(--w); }

.ride-map__card {
  position: relative;
  height: 560px;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .12);
}
.ride-map__route {
  position: absolute;
  top: 40px;
  left: 50%;
  width: 400px;
  height: 400px;
  margin-left: -200px;
  overflow: visible;
  fill: none;
}
.ride-map__route [data-map-segments] path { transition: stroke .5s; }

.tip-fill { fill: var(--tip); transition: fill .4s; }
.tip-bg { background: var(--tip); transition: background .4s; }
.tip-border { border-color: var(--tip); }

.ride-map__ping {
  position: absolute;
  top: 248px;
  left: calc(50% + 136px);
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border: 2px solid;
  border-radius: 50%;
  animation: pulse 1.8s ease-out infinite;
  pointer-events: none;
}

.ride-map__tip {
  position: absolute;
  top: 130px;
  left: calc(50% + 40px);
  width: 170px;
  padding: 12px 14px;
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .16);
}
.ride-map__tip-main { display: flex; align-items: center; gap: 7px; }
.ride-map__tip-main span { width: 9px; height: 9px; border-radius: 50%; }
.ride-map__tip-main strong { font: 700 19px/1 var(--font); letter-spacing: -.02em; }
.ride-map__tip-sub { margin-top: 6px; font: 400 13px/1.3 var(--font); color: var(--text-3); }

.ride-map__card .segmented { position: absolute; left: 16px; right: 16px; bottom: 16px; }

@media (max-width: 520px) {
  .ride-map__card { height: 480px; }
  .ride-map__route { width: 320px; height: 320px; margin-left: -160px; }
  .ride-map__tip { top: 96px; left: auto; right: 14px; }
  .ride-map__ping { top: 206px; left: calc(50% + 109px); }
}

/* Everyday (bento)
   ========================================================================== */

.bento {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr));
  gap: 16px;
}

.tile {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  min-height: 240px;
  padding: 28px;
  border-radius: 32px;
  background: var(--grey-100);
}
.tile--dark { background: var(--black); color: var(--white); }
.tile--sources { justify-content: flex-start; }
.tile--wide { gap: 24px; }

@media (min-width: 620px) {
  .tile--wide { grid-column: span 2; }
}

.tile__label { font: 500 15px/1.3 var(--font); color: var(--text-3); }
.tile--dark .tile__label { color: var(--dark-text-3); }
.tile__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.tile__note { margin-top: 10px; font: 400 15px/1.3 var(--font); color: var(--text-2); }
.tile__headline {
  max-width: 560px;
  font: 700 clamp(28px, 3.2vw, 40px)/1.05 var(--font);
  letter-spacing: -.035em;
  text-wrap: balance;
}
.tile__brandrow { display: flex; align-items: center; gap: 12px; }

.stat { display: flex; align-items: baseline; gap: 6px; }
.stat span { font: 500 18px/1 var(--font); color: var(--text-3); }
.stat__xl { font: 700 72px/.9 var(--font); letter-spacing: -.05em; }
.stat__lg { font: 700 44px/.9 var(--font); letter-spacing: -.04em; }
.stat__lg + span { font-size: 16px; }

.week { display: flex; align-items: flex-end; gap: 6px; height: 64px; }
.week__day {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  height: 100%;
  font: 500 11px/1 var(--mono);
  color: var(--text-4);
}
.week__bar {
  width: 100%;
  height: 6%;
  border-radius: 6px;
  background: #dadada;
  transition: height .9s var(--ease);
}
.week__bar.is-on { background: var(--black); }
.is-seen .week__bar, html:not(.js) .week__bar { height: max(var(--h), 6%); }

.tiz { display: flex; flex-direction: column; gap: 9px; }
.tiz__row {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) 38px;
  gap: 10px;
  align-items: center;
  font: 500 12px/1 var(--mono);
  color: var(--dark-text-3);
}
.tiz__row strong { font: 600 13px/1 var(--font); color: var(--white); text-align: right; }
.tiz .bar__fill { transition-duration: 1.2s; }

.source {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 22px;
  background: var(--white);
}
.source--active { border: 2px solid var(--black); }
.source__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--grey-100);
}
.source__watch { width: 13px; height: 17px; border-radius: 5px; border: 2.5px solid var(--black); }
.source__strap { width: 19px; height: 9px; border-radius: 5px; border: 2.5px solid var(--black); }
.source__text { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.source__text strong { font: 600 16px/1.2 var(--font); }
.source__text > span { font: 400 13px/1.3 var(--font); color: var(--text-3); }
.source__check {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--black);
  color: var(--white);
}
.source__check svg { width: 11px; height: 11px; }

.app-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--white);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .08);
  color: #ff2d55;
}
.app-icon svg { width: 26px; height: 26px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: flex;
  align-items: center;
  min-height: 34px;
  padding: 8px 14px;
  border-radius: 17px;
  background: var(--white);
  font: 500 14px/1.2 var(--font);
}

/* Share
   ========================================================================== */

.share { position: relative; display: flex; justify-content: center; height: 560px; }
.share__stage { position: relative; flex: none; width: 480px; height: 560px; }

.share-card {
  position: absolute;
  width: 250px;
  height: 444px;
  border-radius: 26px;
  overflow: hidden;
  transition: transform .5s var(--ease);
}
.share-card--video {
  top: 50px;
  left: 10px;
  transform: rotate(-6deg);
  box-shadow: 0 30px 70px rgba(0, 0, 0, .6);
}
.share-card--video:hover { transform: rotate(-2deg) translateY(-12px); }
.share-card--photo {
  top: 10px;
  right: 10px;
  transform: rotate(5deg);
  box-shadow: 0 30px 70px rgba(0, 0, 0, .5);
  /* Stand-in for the rider's own photo */
  background:
    radial-gradient(circle at 72% 22%, rgba(255, 244, 214, .9) 0 8%, transparent 26%),
    linear-gradient(180deg, #9fb4c4 0%, #c9d3d8 42%, #8c9a8a 43%, #6f7d6b 70%, #4c544a 100%);
}
.share-card--photo:hover { transform: rotate(1deg) translateY(-12px); }

.share-card__route { position: absolute; top: 150px; left: 20px; width: 210px; height: 210px; fill: none; }
.share-card__sticker { position: absolute; top: 90px; left: 35px; width: 180px; height: 180px; fill: none; }

.share-card__top {
  position: absolute;
  top: 16px;
  left: 16px;
  right: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font: 700 14px/1 var(--font);
}
.share-card__stats { position: absolute; top: 56px; left: 16px; }
.share-card__km { font: 700 42px/1 var(--font); letter-spacing: -.04em; }
.share-card__km small { font: 600 16px/1 var(--font); letter-spacing: 0; }
.share-card__bpm { margin-top: 6px; font: 600 14px/1 var(--font); color: var(--z4); }
.share-card__progress {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, .25);
}
.share-card__progress span { display: block; width: 0; height: 100%; border-radius: 2px; background: var(--white); }

.share-card__tag { position: absolute; top: 16px; right: 16px; }
.share-card__summary {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px;
  border-radius: 16px;
  background: var(--white);
  color: var(--black);
}
.share-card__summary strong { font: 700 28px/1 var(--font); letter-spacing: -.03em; }
.share-card__summary span { font: 500 13px/1 var(--font); color: var(--text-3); }

.tag { height: 24px; padding: 0 9px; border-radius: 12px; font: 600 12px/24px var(--font); }
.tag--glass { background: rgba(255, 255, 255, .18); }
.tag--light { background: var(--white); color: var(--black); }

@media (max-width: 540px) {
  .share { height: 400px; }
  .share__stage { transform: scale(.68); transform-origin: top center; }
}

/* Platforms
   ========================================================================== */

.platforms { display: flex; flex-direction: column; align-items: center; gap: 64px; }
.platforms__head { display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.platforms__head .lead { max-width: 560px; }

.platforms__devices {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: clamp(20px, 5vw, 72px);
}

.platform { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.platform--offset { margin-top: clamp(0px, 6vw, 80px); }
.platform__frame { position: relative; }
.platform__frame--ios { width: 322px; height: 699px; }
.platform__frame--android { width: 330px; height: 714px; }

.home-screen { position: absolute; inset: 0; overflow: hidden; background: var(--white); font-family: system-ui, sans-serif; }
.home-screen--android { font-family: Roboto, system-ui, sans-serif; }
.home-screen__map { position: absolute; top: 0; left: 0; right: 0; height: 420px; }
.home-screen__map--android { height: 400px; }

.home-screen__top { position: absolute; left: 16px; right: 16px; display: flex; justify-content: space-between; }
.home-screen__top--ios { top: 58px; }
.home-screen__top--android { top: 52px; }

.gps-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--black); }

.m3-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border-radius: 12px;
  background: var(--white);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .16);
  font: 500 14px/1 Roboto, system-ui;
}
.m3-chip--round { width: 48px; height: 48px; padding: 0; border-radius: 50%; justify-content: center; font-size: 17px; font-weight: 600; }

.home-sheet { position: absolute; left: 0; right: 0; bottom: 0; background: var(--white); }
.home-sheet--ios { top: 372px; padding: 10px 20px 0; border-radius: 38px 38px 0 0; box-shadow: 0 -4px 24px rgba(0, 0, 0, .08); }
.home-sheet--android { top: 350px; padding: 12px 20px 0; border-radius: 28px 28px 0 0; box-shadow: 0 -2px 12px rgba(0, 0, 0, .08); }

.home-sheet__grabber { width: 36px; height: 5px; margin: 0 auto; border-radius: 3px; background: #d1d1d6; }
.home-sheet--android .home-sheet__grabber { width: 32px; height: 4px; border-radius: 2px; background: #c6c6c6; }

.home-sheet__title { margin-top: 18px; font-size: 28px; font-weight: 700; line-height: 1.1; letter-spacing: -.025em; }
.home-sheet--android .home-sheet__title { margin-top: 20px; letter-spacing: -.02em; }

.home-sheet__start {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 60px;
  margin-top: 18px;
  border-radius: 30px;
  background: var(--black);
  color: var(--white);
  font-size: 18px;
  font-weight: 600;
}
.home-sheet--android .home-sheet__start { font-weight: 500; }
.home-sheet__start svg { width: 16px; height: 16px; }

.home-sheet__cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.home-sheet--android .home-sheet__cards { gap: 8px; margin-top: 10px; }

.mini-card { padding: 16px; border-radius: 22px; background: var(--grey-100); }
.home-sheet--android .mini-card { border-radius: 24px; }
.mini-card__label { font-size: 13px; font-weight: 500; line-height: 1; color: var(--text-3); }
.mini-card__value { display: flex; align-items: baseline; gap: 4px; margin-top: 10px; }
.mini-card__value strong { font-size: 28px; line-height: 1; letter-spacing: -.03em; }
.mini-card__value span { font-size: 14px; font-weight: 500; color: var(--text-3); }
.mini-card__note { margin-top: 6px; font-size: 13px; line-height: 1.3; color: var(--text-2); }

.ios-tabbar {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 28px;
  display: flex;
  align-items: center;
  height: 62px;
  padding: 4px;
  border-radius: 31px;
  background: rgba(255, 255, 255, .62);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: .5px solid rgba(0, 0, 0, .06);
  box-shadow: 0 8px 28px rgba(0, 0, 0, .14), inset 1px 1px 0 rgba(255, 255, 255, .9);
}
.ios-tabbar__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: 54px;
  border-radius: 27px;
  font: 600 10px/1 system-ui;
  color: #3c3c43;
}
.ios-tabbar__item.is-active { background: rgba(0, 0, 0, .07); color: var(--black); }
.ios-tabbar__item svg { width: 22px; height: 22px; }

.m3-navbar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  padding: 12px 0 36px;
  background: var(--grey-100);
}
.m3-navbar__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font: 500 12px/16px Roboto, system-ui;
  color: #444;
}
.m3-navbar__item > span { display: flex; align-items: center; justify-content: center; width: 56px; height: 32px; border-radius: 16px; }
.m3-navbar__item svg { width: 22px; height: 22px; }
.m3-navbar__item.is-active { font-weight: 700; color: var(--black); }
.m3-navbar__item.is-active > span { background: var(--black); color: var(--white); }

/* Privacy
   ========================================================================== */

.privacy__intro { align-items: flex-start; }

.privacy-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr));
  gap: 16px;
}

.privacy-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 280px;
  padding: 28px;
  border-radius: 32px;
  background: var(--grey-100);
}
.privacy-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font: 500 12px/1 var(--mono);
  color: var(--text-3);
}
.privacy-card__tag { letter-spacing: .16em; text-transform: uppercase; }
.privacy-card__src { text-align: right; }
.privacy-card__title { font: 700 26px/1.1 var(--font); letter-spacing: -.03em; text-wrap: balance; }
.privacy-card__items { display: flex; flex-direction: column; gap: 2px; margin-top: auto; }
.privacy-card__items li { padding: 14px 16px; border-radius: 6px; background: var(--white); font: 400 15px/1.35 var(--font); }
.privacy-card__items li:first-child { border-top-left-radius: 18px; border-top-right-radius: 18px; }
.privacy-card__items li:last-child { border-bottom-left-radius: 18px; border-bottom-right-radius: 18px; }

/* Pro
   ========================================================================== */

.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 16px;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 36px;
  border-radius: 36px;
  overflow: hidden;
  background: var(--grey-100);
}
.plan--pro { background: var(--black); color: var(--white); }
.plan__name { font: 600 20px/1 var(--font); }

.plan__zones { position: absolute; top: 0; left: 0; right: 0; display: flex; height: 6px; }
.plan__zones span { flex: 1; }
.plan__zones span:nth-child(1) { background: var(--z1); }
.plan__zones span:nth-child(2) { background: var(--z2); }
.plan__zones span:nth-child(3) { background: var(--z3); }
.plan__zones span:nth-child(4) { background: var(--z4); }
.plan__zones span:nth-child(5) { background: var(--z5); }

.checklist { display: flex; flex-direction: column; }
.checklist li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: .5px solid var(--hairline);
  font: 400 16px/1.3 var(--font);
}
.checklist li:last-child { border-bottom: 0; }
.checklist svg { flex: none; width: 14px; height: 14px; }
.checklist--dark li { border-color: rgba(255, 255, 255, .16); }

.note {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  padding: 24px 28px;
  border-radius: 28px;
  border: 1px solid rgba(0, 0, 0, .12);
}
.note p { max-width: 620px; font: 400 16px/1.5 var(--font); color: var(--text-2); text-wrap: pretty; }

/* Download + footer
   ========================================================================== */

.download { position: relative; overflow: hidden; padding: 140px 24px 56px; }
.download__inner { display: flex; flex-direction: column; gap: 120px; }
.download__cta { display: flex; flex-direction: column; align-items: flex-start; gap: 36px; }
.download .store-btn { min-width: 200px; }

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  padding-top: 28px;
  border-top: 1px solid var(--dark-line);
  font: 400 14px/1 var(--font);
  color: var(--text-4);
}
.footer__links { display: flex; flex-wrap: wrap; gap: 24px; }
.footer__links a { transition: color .2s; }
.footer__links a:hover { color: var(--white); }
