/* Same brand tokens as assets/styles/app.css, duplicated here rather than
   imported: the landing page never loads app.js (and therefore never loads
   app.css, which AssetMapper only pulls in via that JS import), so it needs
   its own copy to stay a fully static, JS-free page. Keep in sync with
   app.css's :root block if the palette changes. */
:root {
    --ink: #0b0d0f;
    --accent: #f2540b;
    --accent-2: #c1400a;
    --fg: #f2f3f0;
    --fg-2: rgba(242, 243, 240, .55);
    --fg-3: rgba(242, 243, 240, .4);
    --line: rgba(255, 255, 255, .1);
    --line-2: rgba(255, 255, 255, .14);
    --panel: rgba(14, 17, 20, .97);
    --mono: 'JetBrains Mono', ui-monospace, monospace;
    --cond: 'Barlow Condensed', sans-serif;
    --sans: 'Space Grotesk', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }
/* Unscoped (not `.landing body`): safe because landing.css is only ever
   linked on the landing page, never alongside app.css. */
body {
    margin: 0;
    background: var(--ink);
    font-family: var(--sans);
    -webkit-font-smoothing: antialiased;
    color: var(--fg);
}
.landing * { box-sizing: border-box; }
/* :where() keeps this reset's specificity at zero beyond `.landing` itself,
   so single-class component rules further down (.hero-cta, .ld-nav-link,
   .cta-band-button, .ld-footer-links a, ...) can override the link color
   without a specificity fight — plain `.landing a` would otherwise beat
   them (class+element > class alone) and paint every link/button text
   orange regardless of its own color rule. */
.landing :where(a) { color: var(--accent); text-decoration: none; }
.landing :where(a):hover { color: #ff7a3a; }
.landing svg { display: block; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 40px; }

/* ---------- header ---------- */
.ld-header { display: flex; align-items: center; gap: 14px; padding: 26px 0; }
.ld-logo { width: 34px; height: 34px; border-radius: 10px; background: var(--accent); display: grid; place-items: center; flex: none; }
.ld-wordmark { font: 700 22px/1 var(--cond); letter-spacing: .08em; text-transform: uppercase; }
.ld-nav { margin-left: auto; display: flex; align-items: center; gap: 28px; font-size: 14px; color: var(--fg-2); }
.ld-nav-link { color: inherit; }
.ld-nav-cta { padding: 11px 18px; border-radius: 11px; background: rgba(255, 255, 255, .07); border: 1px solid var(--line-2); color: var(--fg); font-weight: 500; }
.ld-nav-links { display: flex; align-items: center; gap: 28px; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 78px 0 96px; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero-badge { display: inline-flex; align-items: center; gap: 9px; padding: 8px 13px; border-radius: 999px; border: 1px solid rgba(242, 84, 11, .4); background: rgba(242, 84, 11, .1); font: 600 11px var(--cond); letter-spacing: .18em; text-transform: uppercase; color: #ff9a63; }
.hero-badge i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); display: block; }
.hero-title { margin: 22px 0 0; font: 700 78px/.94 var(--cond); letter-spacing: .01em; text-transform: uppercase; text-wrap: balance; }
.hero-subtitle { margin: 24px 0 0; max-width: 520px; font-size: 17px; line-height: 1.6; color: var(--fg-2); text-wrap: pretty; }
.hero-actions { margin-top: 38px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.hero-cta { display: inline-flex; align-items: center; gap: 12px; padding: 22px 34px; border-radius: 15px; background: var(--accent); color: #14100d; font: 700 18px var(--sans); box-shadow: 0 16px 46px rgba(242, 84, 11, .34); transition: background .15s ease, box-shadow .15s ease; }
.hero-cta:hover { background: #ff6a24; box-shadow: 0 20px 54px rgba(242, 84, 11, .44); color: #14100d; }
.hero-hint { font-size: 13.5px; color: var(--fg-3); }
.hero-stats { margin-top: 52px; display: flex; gap: 38px; }
.hero-stat-divider { width: 1px; background: var(--line); }
.hero-stat b { display: block; font: 700 30px var(--mono); color: var(--accent); }
.hero-stat b.is-plain { color: var(--fg); }
.hero-stat span { display: block; margin-top: 5px; font: 600 10px var(--cond); letter-spacing: .18em; text-transform: uppercase; color: var(--fg-3); }

/* hero map — a real, non-interactive Leaflet map (assets/landingMap.js) */
.hero-visual { position: relative; height: 520px; }
.hero-map-frame { position: absolute; inset: 0; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(0, 0, 0, .55); background: #eceee4; }
.hero-map { position: absolute; inset: 0; }
/* Leaflet's own default control chrome doesn't match the brand — pared
   down to just the attribution text (kept for OSM's tile usage policy),
   pinned top-left so it clears the metrics card docked along the bottom. */
.hero-map .leaflet-control-attribution { background: rgba(14, 17, 20, .82); color: var(--fg-3); font-size: 10px; padding: 3px 7px; border-radius: 6px; }
.hero-map .leaflet-control-attribution a { color: var(--fg-3); }
/* Direction/route-type chips for the real generated route (Nord/Sinueux) —
   top-right so they clear Leaflet's attribution control, pinned top-left. */
.hero-map-info { position: absolute; top: 14px; right: 14px; display: flex; gap: 8px; z-index: 401; }
.hero-map-chip { display: flex; align-items: center; gap: 7px; padding: 8px 12px; background: var(--panel); border: 1px solid var(--line-2); border-radius: 999px; font: 500 12.5px var(--sans); color: var(--fg); }
.hero-origin-pin span { width: 32px; height: 32px; border-radius: 50%; background: #0e1114; border: 3px solid #fff; display: grid; place-items: center; box-shadow: 0 5px 16px rgba(0, 0, 0, .4); }
.hero-origin-pin i { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); display: block; }
.hero-num-pin span { width: 36px; height: 36px; border-radius: 50%; background: #0e1114; border: 2.5px solid var(--accent); display: grid; place-items: center; font: 700 15px var(--mono); color: #fff; box-shadow: 0 5px 16px rgba(0, 0, 0, .4); }
.metrics-bar { position: absolute; left: 20px; right: 20px; bottom: 20px; display: grid; grid-template-columns: repeat(2, 1fr); background: var(--panel); border: 1px solid var(--line-2); border-radius: 15px; box-shadow: 0 16px 44px rgba(0, 0, 0, .45); z-index: 401; }
.metrics-bar div.metric { padding: 16px 18px; border-right: 1px solid var(--line); }
.metrics-bar div.metric:last-child { border-right: 0; }
.metric-label { font: 600 9.5px var(--cond); letter-spacing: .16em; text-transform: uppercase; color: var(--fg-3); }
.metric-value { margin-top: 6px; font: 700 27px var(--mono); color: var(--fg); }
.metric-value.is-accent { color: var(--accent); }
.metric-value u { text-decoration: none; font-size: 13px; color: var(--fg-3); margin-left: 4px; }

/* ---------- section shells ---------- */
.section { padding: 90px 0 40px; scroll-margin-top: 24px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.eyebrow { font: 600 11px var(--cond); letter-spacing: .2em; text-transform: uppercase; color: var(--accent); }
.section-title { margin: 12px 0 0; font: 700 46px/1 var(--cond); letter-spacing: .02em; text-transform: uppercase; }
.section-intro { margin: 0; max-width: 400px; font-size: 15px; line-height: 1.6; color: var(--fg-2); }

/* ---------- overview (3 screens) ---------- */
#apercu { padding-bottom: 30px; }
.overview-grid { margin-top: 44px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.overview-figure { margin: 0; display: flex; flex-direction: column; gap: 16px; }
.figure-frame { position: relative; height: 400px; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); background: #eceee4; box-shadow: 0 20px 54px rgba(0, 0, 0, .4); }
.figure-frame svg.terrain { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
figcaption b { display: block; font: 600 16px var(--sans); color: #fff; }
figcaption span { display: block; margin-top: 6px; font-size: 13.5px; line-height: 1.55; color: var(--fg-2); }

/* figure 1: form */
.fig1-marker { position: absolute; left: 50%; top: 31.5%; transform: translate(-50%, -50%); width: 13px; height: 13px; border-radius: 50%; background: var(--accent); border: 2.5px solid #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .3); }
.fig1-tag { position: absolute; left: 14px; right: 14px; top: 14px; display: flex; align-items: center; gap: 11px; padding: 12px 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 13px; }
.fig1-tag i { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); flex: none; }
.fig1-tag .place { font: 500 14px var(--sans); color: var(--fg); }
.fig1-tag .role { margin-left: auto; font-size: 11.5px; color: var(--fg-3); }
.fig1-panel { position: absolute; left: 0; right: 0; bottom: 0; padding: 20px; background: var(--panel); border-top: 1px solid var(--line-2); border-radius: 20px 20px 0 0; }
.fig1-panel .lbl { font: 600 10px var(--cond); letter-spacing: .18em; text-transform: uppercase; color: var(--fg-3); }
.fig1-distance { margin-top: 12px; display: flex; align-items: center; gap: 14px; }
.fig1-numbox { display: flex; align-items: baseline; gap: 5px; padding: 11px 13px; background: rgba(255, 255, 255, .06); border: 1px solid var(--line-2); border-radius: 10px; }
.fig1-numbox b { font: 700 20px var(--mono); color: #fff; }
.fig1-numbox u { text-decoration: none; font: 500 10px var(--cond); letter-spacing: .1em; text-transform: uppercase; color: var(--fg-3); }
.fig1-track { position: relative; flex: 1; height: 5px; background: rgba(255, 255, 255, .12); border-radius: 3px; }
.fig1-track i { position: absolute; left: 0; top: 0; height: 5px; width: 48%; background: var(--accent); border-radius: 3px; display: block; }
.fig1-track b { position: absolute; left: 48%; top: -10px; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); border: 4px solid #0e1114; transform: translateX(-12px); }
.fig1-pills { margin-top: 18px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.fig1-pill { text-align: center; padding: 11px 0; border-radius: 9px; background: rgba(255, 255, 255, .06); border: 1px solid var(--line-2); font: 500 12.5px var(--sans); color: var(--fg-2); }
.fig1-pill.is-active { background: rgba(242, 84, 11, .14); border-color: var(--accent); font-weight: 600; color: #fff; }

/* figure 2: loading */
.fig2-veil { position: absolute; inset: 0; background: rgba(14, 17, 20, .42); }
.fig2-card { position: absolute; left: 22px; right: 22px; top: 50%; transform: translateY(-50%); padding: 22px 20px; background: var(--panel); border: 1px solid var(--line-2); border-radius: 17px; box-shadow: 0 20px 50px rgba(0, 0, 0, .5); }
.fig2-head { display: flex; align-items: center; gap: 12px; }
.fig2-spinner { width: 30px; height: 30px; border-radius: 50%; border: 3px solid rgba(242, 84, 11, .25); border-top-color: var(--accent); display: block; flex: none; animation: ld-spin 1s linear infinite; }
@keyframes ld-spin { to { transform: rotate(360deg); } }
.fig2-head-title { font: 700 19px/1 var(--cond); letter-spacing: .05em; text-transform: uppercase; color: var(--fg); }
.fig2-head-sub { margin-top: 5px; font-size: 12px; color: var(--fg-2); }
.fig2-bar { margin-top: 18px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.fig2-bar i { display: block; width: 64%; height: 5px; background: var(--accent); border-radius: 3px; }
.fig2-checklist { margin-top: 16px; display: flex; flex-direction: column; gap: 9px; }
.fig2-check-item { display: flex; align-items: center; gap: 9px; font-size: 12px; }
.fig2-check-item.is-done { color: rgba(242, 243, 240, .72); }
.fig2-check-item.is-active { color: #fff; }
.fig2-check-item.is-pending { color: var(--fg-3); }
.fig2-check-dot { width: 15px; height: 15px; border-radius: 50%; flex: none; }
.fig2-check-item.is-done .fig2-check-dot { background: var(--accent); display: grid; place-items: center; font: 700 9px var(--sans); color: #14100d; }
.fig2-check-item.is-active .fig2-check-dot { border: 2px solid rgba(242, 84, 11, .6); }
.fig2-check-item.is-pending .fig2-check-dot { border: 2px solid rgba(255, 255, 255, .15); }

/* figure 3: result */
.fig3-marker { position: absolute; left: 50%; top: 58%; transform: translate(-50%, -50%); width: 28px; height: 28px; border-radius: 50%; background: #0e1114; border: 3px solid #fff; display: grid; place-items: center; }
.fig3-marker i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); display: block; }
.fig3-num-1 { position: absolute; left: 26.8%; top: 34%; transform: translate(-50%, -50%); width: 30px; height: 30px; border-radius: 50%; background: #0e1114; border: 2.5px solid var(--accent); display: grid; place-items: center; font: 700 13px var(--mono); color: #fff; }
.fig3-num-2 { position: absolute; left: 52.6%; top: 18.5%; transform: translate(-50%, -50%); width: 36px; height: 36px; border-radius: 50%; background: #0e1114; border: 3px solid var(--accent); display: grid; place-items: center; font: 700 15px var(--mono); color: #fff; box-shadow: 0 0 0 6px rgba(242, 84, 11, .2); }
.fig3-panel { position: absolute; left: 0; right: 0; bottom: 0; background: #fff; border-radius: 20px 20px 0 0; padding: 18px 20px 20px; }
.fig3-head { display: flex; align-items: center; gap: 11px; }
.fig3-head-num { width: 30px; height: 30px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; font: 700 13px var(--mono); color: #14100d; flex: none; }
.fig3-head-title { font: 600 15px var(--sans); color: #14171a; }
.fig3-head-sub { margin-top: 2px; font: 500 11.5px var(--mono); color: rgba(20, 23, 26, .5); }
.fig3-stats { margin-top: 14px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 7px; }
.fig3-stat { padding: 10px 11px; border: 1px solid rgba(0, 0, 0, .1); border-radius: 10px; background: rgba(20, 23, 26, .03); }
.fig3-stat-label { font: 600 8.5px var(--cond); letter-spacing: .15em; text-transform: uppercase; color: rgba(20, 23, 26, .45); }
.fig3-stat-value { margin-top: 3px; font: 700 16px var(--mono); color: #14171a; }
.fig3-stat-value u { text-decoration: none; font-size: 11px; font-weight: 500; color: rgba(20, 23, 26, .45); margin-left: 3px; }

/* ---------- features ---------- */
.features-grid { margin-top: 46px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.feature-card { padding: 28px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255, 255, 255, .035); display: flex; flex-direction: column; gap: 14px; }
.feature-card b { font: 600 19px var(--sans); color: #fff; }
.feature-card span { font-size: 14px; line-height: 1.6; color: var(--fg-2); }

/* ---------- how it works ---------- */
.how-grid { margin-top: 34px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line-2); }
.how-item { padding: 30px; border-right: 1px solid var(--line); }
.how-item:last-child { border-right: 0; }
.how-num { font: 700 44px var(--mono); color: var(--accent); }
.how-item b { display: block; margin-top: 14px; font: 600 19px var(--sans); color: #fff; }
.how-item span { display: block; margin-top: 9px; font-size: 14px; line-height: 1.6; color: var(--fg-2); }

/* ---------- closing CTA ---------- */
.cta-band { margin: 90px 0 0; padding: 76px 56px; border-radius: 26px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #14100d; display: flex; align-items: center; justify-content: space-between; gap: 48px; flex-wrap: wrap; scroll-margin-top: 24px; }
.cta-band h2 { margin: 0; max-width: 620px; font: 700 56px/.98 var(--cond); letter-spacing: .02em; text-transform: uppercase; text-wrap: balance; }
.cta-band p { margin: 18px 0 0; max-width: 520px; font-size: 16px; line-height: 1.6; color: rgba(20, 16, 13, .72); }
.cta-band-button { display: inline-flex; align-items: center; gap: 14px; padding: 26px 40px; border-radius: 16px; background: #14100d; color: var(--fg); font: 700 20px var(--sans); box-shadow: 0 18px 44px rgba(20, 16, 13, .34); flex: none; transition: background .15s ease, color .15s ease; }
.cta-band-button:hover { background: #000; color: #fff; }

/* ---------- footer ---------- */
.ld-footer { margin-top: 70px; padding: 34px 0 56px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 20px; flex-wrap: wrap; font-size: 13px; color: var(--fg-3); }
.ld-footer-mark { width: 26px; height: 26px; border-radius: 8px; background: rgba(242, 84, 11, .16); display: grid; place-items: center; flex: none; }
.ld-footer-links { margin-left: auto; display: flex; gap: 24px; }
.ld-footer-links a { color: inherit; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
    .wrap { padding: 0 24px; }
    .hero { grid-template-columns: 1fr; padding: 48px 0 64px; }
    .hero-title { font-size: 52px; }
    .hero-visual { height: 400px; }
    .overview-grid, .features-grid { grid-template-columns: 1fr; }
    .how-grid { grid-template-columns: 1fr; border-top: 0; }
    .how-item { border-right: 0; border-top: 1px solid var(--line); padding: 24px 0; }
    .section-title { font-size: 36px; }
    .cta-band { padding: 48px 32px; }
    .cta-band h2 { font-size: 38px; }
}

@media (max-width: 640px) {
    .ld-nav-links { display: none; }
    .hero-title { font-size: 38px; }
    .hero-stats { flex-wrap: wrap; row-gap: 20px; }
    .cta-band { flex-direction: column; align-items: flex-start; }
    .cta-band-button { width: 100%; justify-content: center; }
}
