/* ==========================================================================
   netmov — page d'accueil.
   Une application, pas une brochure : la carte en direct, et par-dessus une feuille arrondie qui tient la recherche,
   comme sur un téléphone. Pensé pour le mobile d'abord (les règles de base sont celles du petit écran, les grands
   écrans élargissent). Le langage graphique vient du logo : des nœuds ronds reliés par un trait. Pas d'ombres portées,
   la profondeur vient des tons (blanc sur brume, brume sur blanc) ; une seule exception, la feuille qui flotte sur la
   carte. Couleurs du logo : bleu netmov et marine.
   ========================================================================== */
:root {
  color-scheme: light;
  --white: #ffffff;
  --mist: #f2f5fa;
  --mist-2: #e8eef7;
  --tint: #e6efff;
  --ink: #0a1a36;
  --ink-2: #4b5a73;
  --ink-3: #8c98ab;
  --line: #e2e8f0;
  --blue: #0b63ff;
  --blue-2: #0a56db;
  --navy: #071a3a;
  --ok: #12a06f;
  --late: #de3b3b;
  --rail: #0b63ff;
  --metro: #8b5cf6;
  --tram: #e8423f;
  --bus: #eaa112;
  --ferry: #22d3ee;
  --coach: #6fbf00;
  --display: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --gutter: 20px;
  --max: 1180px;
  --r-xl: 28px;
  --r-lg: 20px;
  --r: 14px;
  --r-sm: 10px;
  --nav-h: 64px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--ink); font: 400 16px/1.55 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, canvas { display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); margin: 0; font-weight: 800; letter-spacing: -0.03em; }
p, figure { margin: 0; }
ul, ol { list-style: none; margin: 0; padding: 0; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 50; padding: 10px 16px; border-radius: var(--r); background: var(--blue); color: #fff; font-weight: 600; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid rgba(11, 99, 255, .45); outline-offset: 2px; border-radius: var(--r-sm); }
.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.blue { color: var(--blue); }
.muted { color: var(--ink-3); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); flex: none; animation: ping 2.4s var(--ease) infinite; }
.dot.is-off { background: var(--ink-3); animation: none; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(18, 160, 111, .45); } 70%, 100% { box-shadow: 0 0 0 7px rgba(18, 160, 111, 0); } }
/* the locate glyph, in the logo's language: a node and four ticks, drawn in CSS */
.xhair { position: relative; display: inline-block; width: 15px; height: 15px; margin-right: 8px; vertical-align: -2px; border-radius: 50%; border: 2px solid currentColor; flex: none; }
.xhair::before { content: ""; position: absolute; left: 50%; top: 50%; width: 5px; height: 5px; margin: -2.5px; border-radius: 50%; background: currentColor; }
.xhair::after { content: ""; position: absolute; inset: -5px; background:
  linear-gradient(currentColor, currentColor) center top / 2px 3px no-repeat, linear-gradient(currentColor, currentColor) center bottom / 2px 3px no-repeat,
  linear-gradient(currentColor, currentColor) left center / 3px 2px no-repeat, linear-gradient(currentColor, currentColor) right center / 3px 2px no-repeat; }
.is-busy .xhair { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------- buttons, badges, states ---------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: var(--r); font: 600 15px/1 var(--body); text-decoration: none; white-space: nowrap;
  transition: background .2s var(--ease), color .2s var(--ease), transform .2s var(--ease); }
.btn:active { transform: scale(.98); }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 16px; border-radius: 18px; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-2); }
.btn-soft { background: var(--tint); color: var(--blue); }
.btn-soft:hover { background: #d8e6ff; }
.badge { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 24px; padding: 0 8px; border-radius: 8px; background: var(--c, var(--ink)); color: var(--ink-on, #fff);
  font: 700 12.5px/1 var(--display); white-space: nowrap; flex: none; }
.state { font: 600 12.5px/1 var(--body); white-space: nowrap; color: var(--ok); flex: none; }
.state.late { color: var(--late); }
.state.early { color: var(--blue); }
.state.muted { color: var(--ink-3); }

/* ---------------- header ---------------- */
.nav { position: fixed; z-index: 30; top: 0; left: 0; right: 0; background: rgba(255, 255, 255, 0); transition: background .3s var(--ease); }
.nav.is-solid, .nav.is-open { background: rgba(255, 255, 255, .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.nav-in { display: flex; align-items: center; gap: 10px; height: var(--nav-h); }
.brand { margin-right: auto; }
.brand img { height: 22px; width: auto; }
.nav-links { display: none; }
.nav-open { min-height: 42px; padding: 0 16px; font-size: 14px; }
.nav-burger { position: relative; width: 42px; height: 42px; border-radius: 50%; background: var(--tint); flex: none; }
.nav-burger span { position: absolute; left: 13px; right: 13px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .3s var(--ease); }
.nav-burger span:first-child { top: 16px; } .nav-burger span:last-child { top: 24px; }
.nav-burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
.nav-links.is-open { display: flex; flex-direction: column; position: absolute; top: 100%; left: 12px; right: 12px; padding: 8px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); }
.nav-links.is-open a { padding: 14px 16px; border-radius: var(--r-sm); font: 600 16px/1 var(--display); text-decoration: none; }
.nav-links.is-open a:hover { background: var(--mist); }

/* ---------------- hero ---------------- */
.hero { position: relative; background: var(--white); }
.hero-map { position: relative; height: 64svh; min-height: 440px; max-height: 620px; overflow: hidden; background: var(--mist); }
.hero-map::before { content: ""; position: absolute; z-index: 2; left: 0; right: 0; top: 0; height: 150px; background: linear-gradient(rgba(255, 255, 255, .9), rgba(255, 255, 255, 0)); pointer-events: none; }
.map-base { position: absolute; inset: 0; opacity: 0; transition: opacity 1s var(--ease); }
.map-base.is-on { opacity: 1; }
.map-base .maplibregl-canvas { outline: none; }
.sky { position: absolute; inset: 0; width: 100%; height: 100%; }
.sky-tip { position: absolute; z-index: 4; transform: translate(-50%, calc(-100% - 14px)); pointer-events: none; padding: 8px 11px; border-radius: var(--r-sm); background: var(--ink); color: #fff; font: 500 12.5px/1.4 var(--body); white-space: nowrap; }
.sky-tip small { display: block; color: #a9bbd9; font-size: 11.5px; }
.legend { position: absolute; z-index: 3; top: calc(var(--nav-h) + 10px); left: var(--gutter); display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 9px 12px; border-radius: var(--r); background: rgba(255, 255, 255, .9); font-size: 12.5px; color: var(--ink-2); }
.legend li { display: flex; align-items: center; gap: 6px; }
.legend li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.legend b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.map-attr { position: absolute; z-index: 3; right: 8px; bottom: 54px; padding: 2px 7px; border-radius: 6px; background: rgba(255, 255, 255, .85); font-size: 10px; color: var(--ink-3); }
/* the featured vehicle, a real one: a ticket on the map */
.ticket { position: absolute; z-index: 3; left: var(--gutter); right: var(--gutter); bottom: 78px; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r-lg); background: #fff; text-decoration: none;
  transition: opacity .35s var(--ease), transform .35s var(--ease); }
.ticket.is-swap { opacity: 0; transform: translateY(8px); }
.ticket-node { position: relative; width: 14px; height: 14px; margin: 0 4px; border-radius: 50%; background: var(--c, var(--blue)); flex: none; }
.ticket-node::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid var(--c, var(--blue)); opacity: .35; }
.ticket-body { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 3px; }
.ticket-l1 { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); }
.ticket-l1 b { flex: 1; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ticket-l2 { font: 700 15.5px/1.3 var(--display); letter-spacing: -0.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ticket-meta { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ticket-meta i { width: 6px; height: 6px; border-radius: 50%; background: var(--c, var(--ok)); flex: none; }

/* the sheet: on phones it rises over the map, on wide screens it floats on it */
.hero-wrap { position: relative; z-index: 4; }
.sheet { margin-top: -44px; padding: 10px 22px 28px; border-radius: var(--r-xl) var(--r-xl) 0 0; background: #fff; }
.grip { display: block; width: 40px; height: 5px; margin: 0 auto 18px; border-radius: 3px; background: var(--mist-2); }
.status { display: flex; align-items: center; gap: 9px; font: 500 13px/1.3 var(--body); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.status.light { color: #a9bbd9; }
.sheet h1 { margin: 14px 0 12px; font-size: clamp(34px, 9.4vw, 42px); line-height: 1.04; letter-spacing: -0.04em; }
.lede { font-size: 16.5px; color: var(--ink-2); }
.finder { position: relative; display: flex; align-items: center; margin-top: 22px; height: 58px; border-radius: 18px; background: var(--mist); transition: background .2s, box-shadow .2s; }
.finder:focus-within { background: #fff; box-shadow: 0 0 0 3px rgba(11, 99, 255, .35); }
.finder-glass { position: relative; width: 18px; height: 18px; margin: 0 2px 0 18px; border-radius: 50%; border: 2px solid var(--ink-3); flex: none; }
.finder-glass::after { content: ""; position: absolute; right: -7px; bottom: -6px; width: 8px; height: 2px; border-radius: 2px; background: var(--ink-3); transform: rotate(45deg); }
.finder input { flex: 1; min-width: 0; height: 100%; padding: 0 12px; border: 0; outline: none; background: none; font: 500 16.5px var(--body); color: var(--ink); }
.finder input::placeholder { color: var(--ink-3); }
.finder input::-webkit-search-cancel-button { display: none; }
.finder-go { display: grid; place-items: center; width: 44px; height: 44px; margin-right: 7px; border-radius: 13px; background: var(--blue); color: #fff; font: 700 20px/1 var(--display); transition: background .2s; }
.finder-go:hover { background: var(--blue-2); }
.sugg { position: absolute; z-index: 20; top: calc(100% + 8px); left: 0; right: 0; max-height: 360px; overflow: auto; padding: 8px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); }
.sugg-h { padding: 10px 12px 6px; font: 600 11.5px/1 var(--body); letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); }
.sugg-i { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: var(--r-sm); text-decoration: none; font-size: 15px; }
.sugg-i:hover, .sugg-i.is-active { background: var(--mist); }
.sugg-msg { padding: 14px 12px; font-size: 14.5px; color: var(--ink-2); }
.s-main { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.s-main mark { background: none; color: var(--blue); font-weight: 600; }
.s-meta { font-size: 12.5px; color: var(--ink-3); white-space: nowrap; }
.s-meta.late { color: var(--late); } .s-meta.ok { color: var(--ok); }
.quick { display: flex; gap: 8px; margin: 14px -22px 0; padding: 0 22px 6px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.quick::-webkit-scrollbar { display: none; }
.q { display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: 12px; background: var(--mist); font: 500 14px/1 var(--body); color: var(--ink); white-space: nowrap; flex: none; transition: background .2s; }
.q:hover { background: var(--mist-2); }
.q.locate { background: var(--tint); color: var(--blue); font-weight: 600; }
/* the brands followed: one slow strip of logos, edges faded, paused under the pointer; it links to the networks section.
   The track holds the list twice (home.js), so sliding by half its width loops without a seam. */
.brands { display: block; margin: 22px -22px 0; padding: 18px 0 2px; border-top: 1px solid var(--line); overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%); }
.brands-track { display: flex; align-items: center; gap: 34px; width: max-content; padding: 0 22px; animation: brands var(--brands-s, 40s) linear infinite; }
.brands:hover .brands-track, .brands:focus-visible .brands-track { animation-play-state: paused; }
.brands-track li { flex: none; display: flex; align-items: center; height: 26px; }
.brands-track img { display: block; height: 24px; width: auto; max-width: 96px; }
.brands-track .brand-txt { font: 800 14px/1 var(--display); letter-spacing: -0.02em; color: var(--ink); white-space: nowrap; }
@keyframes brands { to { transform: translateX(-50%); } }

/* ---------------- sections ---------------- */
.section { padding-top: 72px; }
.head h2 { font-size: clamp(32px, 8.6vw, 40px); line-height: 1.04; }
.sub { margin-top: 14px; font-size: 16.5px; color: var(--ink-2); }
.eyebrow { font: 600 13px/1 var(--body); letter-spacing: .04em; text-transform: uppercase; color: var(--blue); }

/* journey: nodes on a line, the panels beside */
.journey { position: relative; margin-top: 36px; }
.moment { position: relative; display: grid; grid-template-columns: 36px minmax(0, 1fr); column-gap: 16px; padding-bottom: 48px; }
.moment::before { content: ""; position: absolute; left: 17px; top: 36px; bottom: 0; width: 2px; background: var(--mist-2); }
.moment:last-child::before { display: none; }
.node { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--blue); color: #fff; font: 800 15px/1 var(--display); }
.moment-copy { padding-top: 5px; }
.moment-copy h3 { font-size: 24px; line-height: 1.15; }
.moment-copy > p { margin-top: 8px; font-size: 15.5px; color: var(--ink-2); }
.moment-copy .btn { margin-top: 18px; }
.panel { position: relative; grid-column: 1 / -1; margin-top: 22px; padding: 18px; border-radius: var(--r-lg); background: var(--mist); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.k { font: 600 12px/1.3 var(--body); letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); }
.panel-head b { font: 600 13px/1 var(--body); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.panel-note { margin-top: 14px; font-size: 12px; color: var(--ink-3); }
.seg { display: flex; gap: 4px; margin: 14px -18px 0; padding: 0 18px; overflow-x: auto; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.tab { height: 36px; padding: 0 14px; border-radius: 11px; font: 500 13.5px/1 var(--body); color: var(--ink-2); white-space: nowrap; flex: none; transition: background .2s, color .2s; }
.tab.is-on { background: #fff; color: var(--ink); font-weight: 600; }
.board-name { margin-top: 16px; font: 700 17px/1.2 var(--display); }
.deps { display: flex; flex-direction: column; margin-top: 4px; }
.deps li { display: grid; grid-template-columns: 50px auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 14.5px; }
.deps li:first-child { border-top: 0; }
.deps.is-new li { animation: rise .5s var(--ease) both; }
.deps .t { font: 700 16px/1 var(--display); font-variant-numeric: tabular-nums; }
.deps .t s { display: block; margin-top: 4px; font: 500 11.5px/1 var(--body); color: var(--ink-3); }
.deps .h { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.deps .h small { display: block; margin-top: 2px; font-weight: 400; font-size: 12px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; }
.deps li .state { justify-self: end; }
.deps .deps-empty { display: block; padding: 22px 0; text-align: center; font-size: 13.5px; color: var(--ink-3); border: 0; }
.deps-sm li { grid-template-columns: auto minmax(0, 1fr) auto; }
@keyframes rise { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
.more { display: inline-block; margin-top: 14px; font: 600 14.5px/1 var(--body); color: var(--blue); text-decoration: none; }
.truth { display: flex; flex-direction: column; gap: 4px; margin-top: 16px; }
.truth li { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 12px; background: var(--mist); font-size: 14px; font-weight: 500; }
.truth li i { width: 9px; height: 9px; border-radius: 50%; background: var(--c); flex: none; }
.truth li b { margin-left: auto; font-size: 12px; font-weight: 500; color: var(--ink-3); white-space: nowrap; font-variant-numeric: tabular-nums; }
.route-title { display: flex; align-items: center; gap: 10px; margin-top: 14px; font: 700 15.5px/1.2 var(--display); }
.route { position: relative; margin-top: 8px; }
.route::before { content: ""; position: absolute; left: 7px; top: 18px; bottom: 18px; width: 2px; background: linear-gradient(var(--tram) 0 38%, #f0c4c3 38%); }
.route li { position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 0 10px 30px; font-size: 14.5px; }
.route li::before { content: ""; position: absolute; left: 2px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 2px solid #f0c4c3; }
.route li.done::before { border-color: var(--tram); background: var(--tram); }
.route li.done { color: var(--ink-3); }
.route li.here span { font-weight: 700; }
.route li.here::before { border-color: var(--tram); }
.route small { margin-left: auto; font-size: 12.5px; color: var(--ink-2); }
.route li.here small { color: var(--tram); font-weight: 600; }
.route-car { position: absolute; left: 25px; top: 128px; width: 16px; height: 22px; margin-left: -8px; border-radius: 6px; background: var(--tram); outline: 3px solid var(--mist); animation: car 6s var(--ease) infinite; }
@keyframes car { 0% { transform: translateY(-42px); } 55%, 100% { transform: translateY(0); } }
.punct { display: flex; align-items: center; gap: 14px; margin-top: 18px; }
.punct b { font: 800 40px/1 var(--display); letter-spacing: -0.03em; color: var(--ok); font-variant-numeric: tabular-nums; white-space: nowrap; }
.punct span { font-size: 14.5px; font-weight: 500; }
.punct small { display: block; font-weight: 400; font-size: 12.5px; color: var(--ink-2); }

/* live */
.live { position: relative; overflow: hidden; padding: 28px 22px 30px; border-radius: var(--r-xl); color: #fff; background: radial-gradient(600px 300px at 90% 10%, rgba(11, 99, 255, .45), transparent 70%), var(--navy); }
.live-sky { position: absolute; inset: 0; width: 100%; height: 100%; }
.live::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7, 26, 58, .35) 0%, rgba(7, 26, 58, .92) 100%); pointer-events: none; }
.live-copy { position: relative; z-index: 1; }
.live h2 { margin-top: 12px; font-size: clamp(30px, 8vw, 38px); line-height: 1.04; }
.live-n { display: flex; align-items: baseline; gap: 12px; margin-top: 18px; }
.live-n b { font: 800 clamp(44px, 13vw, 64px)/1 var(--display); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.live-n span { font-size: 14px; color: #a9bbd9; }
.modes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 22px; }
.modes li { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--r); background: rgba(255, 255, 255, .08); }
.modes li::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--c); flex: none; }
.modes b { font: 800 20px/1 var(--display); font-variant-numeric: tabular-nums; }
.modes span { font-size: 13px; line-height: 1.15; }
.modes small { display: block; font-size: 11px; color: #a9bbd9; }
.live-foot { margin-top: 18px; font-size: 13px; color: #a9bbd9; font-variant-numeric: tabular-nums; }
.live-foot b { color: #fff; font-weight: 600; }

/* pro */
.pro { padding: 28px 22px; border-radius: var(--r-xl); background: var(--mist); }
.pro h2 { margin-top: 12px; font-size: clamp(28px, 7.6vw, 36px); line-height: 1.06; }
.mission { margin-top: 14px; font-size: 15.5px; color: var(--ink-2); }
.mission b { color: var(--ink); }
.integr { display: flex; flex-direction: column; gap: 10px; margin-top: 22px; }
.integr li { display: flex; gap: 12px; padding: 14px; border-radius: var(--r); background: #fff; }
.integr li i { position: relative; width: 12px; height: 12px; margin-top: 5px; border-radius: 50%; background: var(--blue); flex: none; }
.integr li i::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--blue); opacity: .3; }
.integr b { font: 700 15px/1.3 var(--display); }
.integr p { margin-top: 3px; font-size: 13.5px; color: var(--ink-2); }
.uses { margin-top: 18px; font-size: 13.5px; color: var(--ink-2); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.code { margin-top: 24px; border-radius: var(--r-lg); background: var(--navy); color: #cfe0ff; overflow: hidden; }
.code figcaption { display: flex; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid rgba(255, 255, 255, .1); font: 600 12.5px/1.3 var(--body); color: #fff; }
.code figcaption .muted { color: #8ea6d6; }
.code pre { margin: 0; padding: 16px; overflow: auto; font: 400 12px/1.7 ui-monospace, Menlo, Consolas, monospace; }
.code .k { font: inherit; letter-spacing: 0; text-transform: none; color: #7fb2ff; } .code .s { color: #a5e8c3; } .code .n { color: #ffcf7a; } .code .l { color: #f59fb8; }
.code-note { display: flex; align-items: center; gap: 9px; padding: 12px 16px 14px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 12px; color: #8ea6d6; font-variant-numeric: tabular-nums; }
.code-note b { color: #fff; font-weight: 600; }

/* faq */
.faq { margin-top: 24px; }
.faq details { border-top: 1px solid var(--line); }
.faq summary { position: relative; list-style: none; padding: 18px 48px 18px 0; font: 700 17px/1.35 var(--display); letter-spacing: -0.01em; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 2px; top: 50%; width: 28px; height: 28px; margin-top: -14px; border-radius: 50%; background: var(--tint); transition: transform .3s var(--ease), background .2s; }
.faq summary::before { content: "+"; position: absolute; z-index: 1; right: 2px; top: 50%; width: 28px; margin-top: -14px; line-height: 28px; text-align: center; font: 500 20px/28px var(--display); color: var(--blue); transition: transform .3s var(--ease); }
.faq details[open] summary::before { transform: rotate(45deg); }
.faq details p { padding: 0 0 20px; color: var(--ink-2); font-size: 15px; }
.faq details a { color: var(--blue); }

/* cta */
.cta { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; padding: 30px 24px; border-radius: var(--r-xl); background: var(--tint); }
.cta-mark { width: 60px; height: 60px; padding: 8px; border-radius: 18px; background: #fff; }
.cta h2 { font-size: clamp(28px, 7.6vw, 36px); line-height: 1.06; max-width: 14em; }

/* footer */
.foot { margin-top: 72px; padding: 36px 0 40px; border-top: 1px solid var(--line); }
.foot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 20px; }
.foot-brand { grid-column: 1 / -1; }
.foot-brand img { height: 24px; width: auto; }
.foot-brand p { margin-top: 12px; color: var(--ink-2); font-size: 14px; }
.foot-col { display: flex; flex-direction: column; gap: 10px; font-size: 14.5px; }
.foot-col b { font: 700 13px/1.4 var(--display); color: var(--ink-3); }
.foot-col a { color: var(--ink); text-decoration: none; }
.foot-col a:hover { color: var(--blue); }
.foot-sources { margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 12px; line-height: 1.6; color: var(--ink-3); }
.foot-sources p + p { margin-top: 2px; }
.foot-sources b { color: var(--ink-2); font-weight: 600; }
.foot-note { margin-top: 12px !important; }

/* reveal */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------------- wider screens ---------------- */
@media (min-width: 720px) {
  :root { --gutter: 32px; --nav-h: 72px; }
  .brand img { height: 25px; }
  .moment { grid-template-columns: 44px minmax(0, 1fr); column-gap: 24px; }
  .moment::before { left: 21px; top: 44px; }
  .node { width: 44px; height: 44px; font-size: 17px; }
  .moment-copy { padding-top: 8px; }
  .moment-copy h3 { font-size: 30px; }
  .panel { padding: 24px; }
  .deps li { grid-template-columns: 58px auto minmax(0, 1fr) auto; gap: 12px; }
  .live { padding: 44px; }
  .modes { grid-template-columns: repeat(4, 1fr); }
  .pro { padding: 44px; }
  .integr { display: grid; grid-template-columns: 1fr 1fr; }
  .cta { flex-direction: row; align-items: center; gap: 28px; padding: 36px 40px; }
  .cta h2 { flex: 1; }
  .foot-grid { grid-template-columns: 1.6fr repeat(3, minmax(0, 1fr)); }
  .foot-brand { grid-column: auto; }
}
@media (min-width: 1060px) {
  .nav-links { display: flex; gap: 4px; margin-right: 10px; }
  .nav-links a { padding: 10px 14px; border-radius: 12px; font: 500 14.5px/1 var(--body); color: var(--ink); text-decoration: none; transition: background .2s; }
  .nav-links a:hover { background: var(--tint); color: var(--blue); }
  .nav-open { min-height: 44px; padding: 0 20px; }
  .nav-burger { display: none; }
  /* the sheet floats on the map, which fills the first screen */
  .hero { height: max(720px, 100svh); }
  .hero-map { position: absolute; inset: 0; height: auto; max-height: none; }
  .hero-wrap { position: absolute; left: 0; right: 0; top: calc(var(--nav-h) + 28px); bottom: 40px; display: flex; align-items: center; pointer-events: none; }
  .sheet { width: 540px; margin: 0; padding: 32px 34px 30px; border-radius: var(--r-xl); pointer-events: auto; box-shadow: 0 30px 60px -30px rgba(7, 26, 58, .35); }
  .grip { display: none; }
  .sheet h1 { font-size: 54px; margin: 16px 0 14px; }
  .lede { font-size: 17.5px; }
  .finder { height: 62px; }
  .quick { flex-wrap: wrap; margin: 14px 0 0; padding: 0; overflow: visible; }
  .legend { top: auto; left: auto; right: var(--gutter); bottom: 150px; flex-direction: column; gap: 7px; padding: 12px 14px; }
  .ticket { left: auto; right: var(--gutter); bottom: 44px; width: 380px; border: 1px solid var(--line); }
  .map-attr { bottom: 8px; }
  .section { padding-top: 112px; }
  .head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: 24px 48px; align-items: end; }
  .head h2 { font-size: 52px; }
  .sub { margin-top: 0; max-width: 30em; }
  .journey { margin-top: 56px; }
  .moment { grid-template-columns: 44px minmax(0, .9fr) minmax(0, 1.1fr); column-gap: 32px; padding-bottom: 64px; }
  .panel { grid-column: 3; grid-row: 1; margin-top: 0; }
  .moment-copy { padding-right: 24px; }
  .live { display: flex; align-items: center; min-height: 460px; padding: 56px; }
  .live::after { background: linear-gradient(90deg, rgba(7, 26, 58, .96) 0%, rgba(7, 26, 58, .7) 48%, rgba(7, 26, 58, 0) 72%); }
  .live-copy { max-width: 620px; }
  .live h2 { font-size: 52px; }
  .live-n b { font-size: 72px; }
  .pro { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; align-items: start; padding: 56px; }
  .pro h2 { font-size: 42px; }
  .code { margin-top: 0; position: sticky; top: 100px; }
  .faq-wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: 64px; align-items: start; }
  .faq-wrap .head { display: block; }
  .faq { margin-top: 0; }
  .faq summary { font-size: 19px; padding: 22px 56px 22px 0; }
  .faq details p { max-width: 38em; }
  .cta { padding: 44px 48px; }
  .cta h2 { font-size: 40px; }
  .foot { margin-top: 112px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .brands { overflow-x: auto; scrollbar-width: none; }
  .brands-track [aria-hidden=true] { display: none; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* one link per country map in the live band: its vehicles of the moment, the map of that country alone */
.countries { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.countries a { display: inline-flex; align-items: center; gap: 10px; padding: 9px 13px 9px 11px; border-radius: var(--r); background: rgba(255, 255, 255, .1); color: #fff; text-decoration: none; transition: background .2s var(--ease); }
.countries a:hover { background: rgba(255, 255, 255, .18); }
.countries b { font: 800 18px/1 var(--display); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.countries span { display: flex; flex-direction: column; font: 600 13px/1.15 var(--body); }
.countries small { font: 500 11px/1.2 var(--body); color: #a9bbd9; }
@media (min-width: 720px) {
  .modes { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
}

/* ---------------- networks: what is followed, a country at a time ---------------- */
.nets { margin-top: 28px; padding: 14px; border-radius: var(--r-xl); background: var(--mist); }
.nets-tabs { display: flex; gap: 4px; padding: 2px 2px 12px; overflow-x: auto; scrollbar-width: none; }
.nets-tabs::-webkit-scrollbar { display: none; }
.nets-tabs .tab { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; }
.nets-tabs .tab b { font: 600 12px/1 var(--body); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.nets-tabs .tab.is-on b { color: var(--blue); }
.net-list { display: grid; gap: 8px; }
.net { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 4px 14px; align-items: center; padding: 16px; border-radius: var(--r-lg); background: #fff; animation: netin .45s var(--ease) both; }
.net-logo { grid-row: span 2; display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 16px; background: var(--mist); }
.net-logo img { max-width: 40px; max-height: 26px; }
.net-logo .brand-txt { font: 800 11px/1.1 var(--display); text-align: center; color: var(--ink); }
.net h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font: 700 17px/1.2 var(--display); letter-spacing: -0.01em; }
.net .new { padding: 3px 8px; border-radius: 999px; background: var(--tint); color: var(--blue); font: 600 11px/1.2 var(--body); letter-spacing: 0; }
.net p { font-size: 14px; color: var(--ink-2); }
.net-how { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-2); }
.net-how i { width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--ok)); flex: none; }
.net-how span { display: inline-flex; align-items: center; gap: 7px; }
.net-how b { margin-left: auto; font: 600 13px/1 var(--body); color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.net-empty { padding: 18px; font-size: 14.5px; color: var(--ink-2); }
@keyframes netin { from { opacity: 0; transform: translateY(8px); } }
@media (min-width: 720px) {
  .net-list { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1060px) {
  .nets { margin-top: 48px; padding: 20px; }
  .brands { margin: 24px -34px 0; }
  .brands-track { padding: 0 34px; }
}
