/* ===== My Shadow Track — Landing (Editorial / Racing) ===== */

:root[data-theme="dark"] {
  --l-bg: #0a0b0d;
  --l-bg-2: #111316;
  --l-bg-3: #16191d;
  --l-surface: #1b1f24;
  --l-surface-2: #22272e;
  --l-line: #2a2f37;
  --l-line-soft: #1f2329;
  --l-ink-1: #f5f6f7;
  --l-ink-2: #c8ccd2;
  --l-ink-3: #8a909a;
  --l-ink-4: #5b6068;
  --l-accent: #e63946;     /* racing red - primary */
  --l-accent-2: #f59e0b;   /* amber */
  --l-brand: #5e79ff;      /* brand blue (from logo) */
  --l-brand-deep: #2a1f5c; /* brand purple (from logo) */
  --l-blue: #5ea1ff;
  --l-green: #22c55e;
  --l-grid: rgba(255,255,255,0.04);
  --l-glow: rgba(230,57,70,0.45);
  --l-glow-brand: rgba(94,121,255,0.35);
  --l-noise-opacity: 0.04;
  --l-hero-overlay: linear-gradient(180deg, rgba(10,11,13,0.55) 0%, rgba(10,11,13,0.25) 40%, rgba(10,11,13,0.95) 100%);
}

:root[data-theme="light"] {
  --l-bg: #f5f3ee;
  --l-bg-2: #ebe8e1;
  --l-bg-3: #ffffff;
  --l-surface: #ffffff;
  --l-surface-2: #f5f3ee;
  --l-line: #d8d4ca;
  --l-line-soft: #e7e3d9;
  --l-ink-1: #0a0b0d;
  --l-ink-2: #2c2f34;
  --l-ink-3: #5b6068;
  --l-ink-4: #8a909a;
  --l-accent: #e63946;
  --l-accent-2: #d97706;
  --l-brand: #2a3fc9;
  --l-brand-deep: #1a1f5c;
  --l-blue: #2f66c8;
  --l-green: #16a34a;
  --l-grid: rgba(0,0,0,0.045);
  --l-glow: rgba(230,57,70,0.20);
  --l-glow-brand: rgba(42,63,201,0.18);
  --l-noise-opacity: 0.06;
  --l-hero-overlay: linear-gradient(180deg, rgba(245,243,238,0.20) 0%, rgba(245,243,238,0.10) 40%, rgba(245,243,238,0.95) 100%);
}

.landing {
  background: var(--l-bg);
  color: var(--l-ink-1);
  font-family: 'Space Grotesk', system-ui, sans-serif;
  /* WEB.24 — base fluida. En viewports ≥ 1440px se sigue
     renderizando idéntico al diseño original (cap a 1440px). En
     viewports más estrechos el contenedor se encoge fluido y el
     bloque @media de abajo reorganiza grids y oculta los
     decorados que no caben. */
  width: 100%;
  max-width: 1440px;
  position: relative;
  overflow: hidden;
}

/* Subtle grain */
.landing::before {
  content: '';
  position: absolute; inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 1 0'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='1'/></svg>");
  opacity: var(--l-noise-opacity);
  z-index: 1;
  mix-blend-mode: overlay;
}

.landing > * { position: relative; z-index: 2; }

/* ===== TOP NAV ===== */
.l-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 64px;
  border-bottom: 1px solid var(--l-line-soft);
  background: var(--l-bg);
}

.l-nav-left { display: flex; align-items: center; gap: 48px; }

.l-logo {
  display: flex; align-items: center; gap: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.l-logo-mark {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: linear-gradient(155deg, #2a1f5c 0%, #0f1240 60%, #060826 100%);
  display: grid; place-items: center;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(125,140,255,0.20),
    0 0 24px rgba(94,121,255,0.35),
    inset 0 1px 0 rgba(255,255,255,0.08);
}
.l-logo-mark::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 35% 30%, rgba(125,140,255,0.25), transparent 70%);
}
.l-logo-mark::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(45deg, transparent 0 4px, rgba(0,0,0,0.10) 4px 8px);
  opacity: 0.4;
}
.l-logo-mark svg { position: relative; z-index: 2; }
.l-logo-text {
  font-size: 16px;
  line-height: 1;
}
.l-logo-text small {
  display: block;
  font-size: 10px;
  font-weight: 500;
  color: var(--l-ink-3);
  letter-spacing: 0.18em;
  margin-top: 4px;
  text-transform: uppercase;
}

.l-nav-links {
  display: flex;
  align-items: stretch;
  font-family: 'JetBrains Mono', monospace;
  height: 40px;
  border-left: 1px solid var(--l-line);
  border-right: 1px solid var(--l-line);
}
.l-nav-link {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 22px;
  border-right: 1px solid var(--l-line-soft);
  position: relative;
  cursor: pointer;
  text-decoration: none;
  color: var(--l-ink-2);
  transition: color 0.15s, background 0.15s;
}
.l-nav-link:last-child { border-right: none; }
.l-nav-link-num {
  font-size: 9px;
  font-weight: 600;
  color: var(--l-ink-4);
  letter-spacing: 0.18em;
  line-height: 1;
  margin-bottom: 4px;
  transition: color 0.15s;
}
.l-nav-link-text {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
  display: flex;
  align-items: center;
  gap: 6px;
}
.l-nav-link-text .caret {
  width: 8px; height: 8px;
  opacity: 0.5;
  transition: transform 0.2s;
}
.l-nav-link::before {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: var(--l-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s cubic-bezier(.7,.1,.3,1);
}
.l-nav-link:hover {
  color: var(--l-ink-1);
  background: var(--l-surface);
}
.l-nav-link:hover .l-nav-link-num { color: var(--l-accent); }
.l-nav-link:hover::before { transform: scaleX(1); }
.l-nav-link:hover .caret { transform: rotate(90deg); }
.l-nav-link.active { color: var(--l-ink-1); background: var(--l-surface); }
.l-nav-link.active::before { transform: scaleX(1); }
.l-nav-link.active .l-nav-link-num { color: var(--l-accent); }
.l-nav-link-badge {
  position: absolute;
  top: 6px; right: 6px;
  background: var(--l-accent);
  color: white;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 2px 5px;
  border-radius: 3px;
  line-height: 1;
}

.l-nav-right { display: flex; align-items: center; gap: 12px; }

.l-theme-toggle {
  display: flex; align-items: center;
  background: var(--l-surface);
  border: 1px solid var(--l-line);
  border-radius: 999px;
  padding: 4px;
  gap: 2px;
}
.l-theme-toggle button {
  width: 30px; height: 30px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: var(--l-ink-3);
  display: grid; place-items: center;
  font-size: 12px;
  transition: all 0.15s;
}
.l-theme-toggle button.active {
  background: var(--l-bg-2);
  color: var(--l-ink-1);
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.l-lang {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--l-ink-2);
  padding: 8px 14px;
  border: 1px solid var(--l-line);
  border-radius: 8px;
  background: var(--l-surface);
}

.l-btn-ghost {
  font-size: 14px;
  font-weight: 500;
  color: var(--l-ink-2);
  background: transparent;
  border: none;
  padding: 10px 16px;
  border-radius: 8px;
}
.l-btn-ghost:hover { color: var(--l-ink-1); background: var(--l-surface); }

.l-btn-primary {
  font-size: 14px;
  font-weight: 600;
  color: white;
  background: var(--l-accent);
  border: none;
  padding: 11px 20px;
  border-radius: 8px;
  display: inline-flex; align-items: center; gap: 8px;
  box-shadow: 0 4px 16px var(--l-glow), inset 0 1px 0 rgba(255,255,255,0.15);
  letter-spacing: 0.01em;
  position: relative;
  overflow: hidden;
}
.l-btn-primary::after {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(45deg, transparent 0 6px, rgba(0,0,0,0.06) 6px 12px);
  opacity: 0;
  transition: opacity 0.2s;
}
.l-btn-primary:hover::after { opacity: 1; }

.l-btn-secondary {
  font-size: 14px;
  font-weight: 500;
  color: var(--l-ink-1);
  background: var(--l-surface);
  border: 1px solid var(--l-line);
  padding: 11px 20px;
  border-radius: 8px;
  display: inline-flex; align-items: center; gap: 8px;
}

/* ===== HERO ===== */
.l-hero {
  position: relative;
  padding: 80px 64px 120px;
  min-height: 760px;
  background:
    radial-gradient(ellipse 1200px 600px at 80% 20%, var(--l-glow) 0%, transparent 60%),
    var(--l-bg);
  overflow: hidden;
}

/* Hero "checker flag" decorative strip on left */
.l-hero-flag {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 6px;
  background:
    repeating-linear-gradient(0deg, var(--l-ink-1) 0 14px, var(--l-bg-2) 14px 28px);
  opacity: 0.5;
}

/* Hero motorbike silhouette / abstract shape */
.l-hero-visual {
  position: absolute;
  right: -40px; top: 80px;
  width: 720px; height: 580px;
  z-index: 1;
  opacity: 0.95;
}

.l-hero-content {
  position: relative;
  z-index: 3;
  max-width: 720px;
}

.l-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px;
  font-weight: 600;
  color: var(--l-ink-2);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  background: var(--l-surface);
  border: 1px solid var(--l-line);
  padding: 8px 14px 8px 10px;
  border-radius: 999px;
  margin-bottom: 32px;
}
.l-eyebrow .pulse {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--l-accent);
  box-shadow: 0 0 0 0 var(--l-accent);
  animation: lpulse 2s infinite;
}
@keyframes lpulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(230,57,70,0.6); }
  50% { box-shadow: 0 0 0 8px rgba(230,57,70,0); }
}

.l-hero h1 {
  font-size: 92px;
  line-height: 0.96;
  font-weight: 700;
  letter-spacing: -0.035em;
  margin: 0 0 28px;
  text-wrap: balance;
}
.l-hero h1 em {
  font-style: italic;
  color: var(--l-accent);
  font-weight: 600;
  position: relative;
}
.l-hero h1 em::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 4px;
  height: 8px;
  background: var(--l-accent);
  opacity: 0.18;
  transform: skewX(-12deg);
  z-index: -1;
}

.l-hero-sub {
  font-size: 19px;
  line-height: 1.55;
  color: var(--l-ink-2);
  max-width: 540px;
  margin-bottom: 40px;
  text-wrap: pretty;
}

.l-hero-cta {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 56px;
}
.l-hero-cta .l-btn-primary { padding: 16px 28px; font-size: 15px; }
.l-hero-cta .l-btn-secondary { padding: 16px 24px; font-size: 15px; }

/* Hero stats strip */
.l-hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--l-line);
  padding-top: 28px;
  max-width: 720px;
}
.l-hero-stat {
  border-right: 1px solid var(--l-line-soft);
  padding-right: 20px;
}
.l-hero-stat:last-child { border-right: none; }
.l-hero-stat-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--l-ink-1);
  line-height: 1;
}
.l-hero-stat-value em {
  font-style: normal;
  color: var(--l-accent);
}
.l-hero-stat-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--l-ink-3);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-top: 8px;
}

/* Hero ticker on bottom */
.l-hero-ticker {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: var(--l-bg-3);
  border-top: 1px solid var(--l-line);
  border-bottom: 1px solid var(--l-line);
  height: 44px;
  display: flex; align-items: center;
  overflow: hidden;
  z-index: 4;
}
.l-hero-ticker-track {
  display: flex; gap: 56px;
  animation: ticker 60s linear infinite;
  white-space: nowrap;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--l-ink-3);
  letter-spacing: 0.06em;
  padding-left: 64px;
}
.l-hero-ticker-item { display: inline-flex; gap: 8px; align-items: center; }
.l-hero-ticker-item strong {
  color: var(--l-ink-1);
  font-weight: 600;
}
.l-hero-ticker-item .red { color: var(--l-accent); }
.l-hero-ticker-item .green { color: var(--l-green); }
.l-hero-ticker-sep { color: var(--l-ink-4); }
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ===== Sections ===== */
.l-section {
  padding: 120px 64px;
  position: relative;
}
.l-section.alt { background: var(--l-bg-2); }

.l-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 64px;
  gap: 40px;
}
.l-section-eyebrow {
  font-size: 11px;
  font-weight: 600;
  color: var(--l-accent);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  margin-bottom: 18px;
  display: flex; align-items: center; gap: 10px;
}
.l-section-eyebrow::before {
  content: '';
  width: 28px; height: 1px;
  background: var(--l-accent);
}
.l-section-title {
  font-size: 56px;
  line-height: 1.0;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin: 0;
  max-width: 780px;
  text-wrap: balance;
}
.l-section-title em {
  font-style: italic;
  color: var(--l-accent);
  font-weight: 600;
}
.l-section-desc {
  font-size: 17px;
  color: var(--l-ink-2);
  line-height: 1.55;
  max-width: 380px;
  text-wrap: pretty;
}

/* ===== FEATURES (4 cells) ===== */
.l-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--l-line);
  border-radius: 16px;
  overflow: hidden;
  background: var(--l-surface);
}
.l-feature {
  padding: 36px 28px 32px;
  border-right: 1px solid var(--l-line);
  position: relative;
}
.l-feature:last-child { border-right: none; }
.l-feature-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--l-ink-4);
  letter-spacing: 0.12em;
  margin-bottom: 28px;
}
.l-feature-icon {
  width: 56px; height: 56px;
  border-radius: 12px;
  background: var(--l-bg-2);
  border: 1px solid var(--l-line);
  display: grid; place-items: center;
  margin-bottom: 24px;
  color: var(--l-accent);
}
.l-feature h3 {
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}
.l-feature p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--l-ink-2);
  margin: 0 0 24px;
  text-wrap: pretty;
}
.l-feature-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--l-accent);
  display: inline-flex; align-items: center; gap: 6px;
}

/* ===== ANALYSIS DEMO (big preview frame) ===== */
.l-demo-frame {
  border: 1px solid var(--l-line);
  border-radius: 18px;
  background: var(--l-surface);
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0,0,0,0.25), 0 6px 16px rgba(0,0,0,0.15);
  position: relative;
}
.l-demo-frame-bar {
  display: flex; align-items: center; gap: 12px;
  background: var(--l-bg-3);
  border-bottom: 1px solid var(--l-line);
  padding: 12px 18px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--l-ink-3);
}
.l-demo-frame-bar .dots { display: flex; gap: 6px; }
.l-demo-frame-bar .dots span {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--l-line);
}
.l-demo-frame-body {
  padding: 28px;
  background: var(--l-bg-3);
  position: relative;
}

/* Analysis demo grid */
.l-analysis-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
}
.l-analysis-map {
  height: 460px;
  border-radius: 12px;
  background:
    radial-gradient(ellipse 400px 300px at 60% 40%, rgba(94,161,255,0.10), transparent 70%),
    linear-gradient(180deg, #0d1419 0%, #0a0d11 100%);
  position: relative;
  border: 1px solid var(--l-line);
  overflow: hidden;
}
.l-analysis-map svg { width: 100%; height: 100%; display: block; }

.l-analysis-side { display: flex; flex-direction: column; gap: 18px; }

.l-mini-kpis {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 1px;
  background: var(--l-line);
  border: 1px solid var(--l-line);
  border-radius: 12px;
  overflow: hidden;
}
.l-mini-kpi {
  background: var(--l-surface);
  padding: 14px 16px;
}
.l-mini-kpi-label {
  font-size: 10px; color: var(--l-ink-3);
  letter-spacing: 0.14em; text-transform: uppercase;
  margin-bottom: 8px;
}
.l-mini-kpi-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 20px; font-weight: 600;
  letter-spacing: -0.01em;
}
.l-mini-kpi-value .red { color: var(--l-accent); }
.l-mini-kpi-value .unit { font-size: 12px; color: var(--l-ink-3); font-weight: 500; }

.l-curve-table {
  border: 1px solid var(--l-line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--l-surface);
  flex: 1;
}
.l-curve-table-head {
  display: grid;
  grid-template-columns: 32px 1fr 70px 80px 60px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--l-ink-3);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 12px 14px;
  border-bottom: 1px solid var(--l-line);
  background: var(--l-bg-2);
}
.l-curve-row {
  display: grid;
  grid-template-columns: 32px 1fr 70px 80px 60px;
  padding: 11px 14px;
  font-size: 13px;
  border-bottom: 1px solid var(--l-line-soft);
  align-items: center;
}
.l-curve-row:last-child { border-bottom: none; }
.l-curve-row .num {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  color: var(--l-ink-3);
}
.l-curve-row .name { color: var(--l-ink-1); font-weight: 500; }
.l-curve-row .name small {
  display: block; font-size: 11px; font-weight: 400;
  color: var(--l-ink-3); margin-top: 2px;
}
.l-curve-row .speed {
  font-family: 'JetBrains Mono', monospace; font-size: 13px; font-weight: 500;
  color: var(--l-ink-2);
}
.l-curve-row .lean {
  font-family: 'JetBrains Mono', monospace; font-size: 13px; font-weight: 600;
}
.l-curve-row .lean.high { color: var(--l-accent); }
.l-curve-row .lean.med { color: var(--l-accent-2); }
.l-curve-row .lean.low { color: var(--l-green); }
.l-curve-row .tag {
  font-size: 10px; font-weight: 600;
  padding: 3px 7px; border-radius: 4px;
  text-align: center;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.04em;
}
.l-curve-row .tag.tight { background: rgba(230,57,70,0.15); color: var(--l-accent); }
.l-curve-row .tag.med { background: rgba(245,158,11,0.15); color: var(--l-accent-2); }
.l-curve-row .tag.wide { background: rgba(34,197,94,0.15); color: var(--l-green); }

/* ===== FEED DEMO ===== */
.l-feed-demo {
  display: grid;
  grid-template-columns: 240px 1fr 260px;
  gap: 18px;
  padding: 18px;
}

.l-feed-side { display: flex; flex-direction: column; gap: 14px; }
.l-feed-side-card {
  background: var(--l-surface);
  border: 1px solid var(--l-line);
  border-radius: 12px;
  padding: 16px;
}
.l-feed-side-card h4 {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--l-ink-3);
  font-weight: 600;
  margin: 0 0 14px;
}
.l-bike-row {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 12px;
}
.l-bike-row:last-child { margin-bottom: 0; }
.l-bike-av {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, #b8252e, #5a1217);
  display: grid; place-items: center;
  color: white;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.04em;
  border: 1px solid var(--l-line);
}
.l-bike-av.b1 { background: linear-gradient(135deg, #2f66c8, #0f2d60); }
.l-bike-av.b2 { background: linear-gradient(135deg, #16a34a, #064e2c); }
.l-bike-av.b3 { background: linear-gradient(135deg, #7c3aed, #3b1675); }
.l-bike-av.b4 { background: linear-gradient(135deg, #f59e0b, #92400e); }
.l-bike-info { flex: 1; min-width: 0; }
.l-bike-name {
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.l-bike-meta {
  font-size: 11px; color: var(--l-ink-3);
  font-family: 'JetBrains Mono', monospace;
}

.l-feed-main { display: flex; flex-direction: column; gap: 14px; }
.l-feed-post {
  background: var(--l-surface);
  border: 1px solid var(--l-line);
  border-radius: 12px;
  overflow: hidden;
}
.l-feed-post-head {
  padding: 14px 16px;
  display: flex; align-items: center; gap: 12px;
  border-bottom: 1px solid var(--l-line-soft);
}
.l-feed-post-head .l-bike-av { width: 40px; height: 40px; }
.l-feed-post-head h5 {
  font-size: 14px; font-weight: 600;
  margin: 0; letter-spacing: 0.02em;
}
.l-feed-post-head h5 small {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--l-ink-3);
  margin-top: 2px;
  letter-spacing: 0;
}
.l-feed-post-route {
  padding: 12px 16px;
  display: flex; align-items: center; gap: 10px;
  background: var(--l-bg-2);
  border-bottom: 1px solid var(--l-line-soft);
  font-size: 13px;
}
.l-feed-post-route svg { color: var(--l-accent); flex-shrink: 0; }
.l-feed-post-route strong { font-weight: 600; }
.l-feed-post-route span { color: var(--l-ink-3); margin-left: 6px; font-size: 12px; }

.l-feed-post-map {
  height: 220px;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(94,161,255,0.08), transparent 70%),
    linear-gradient(180deg, #0d1419 0%, #0a0d11 100%);
  position: relative;
  border-bottom: 1px solid var(--l-line-soft);
  overflow: hidden;
}
.l-feed-post-map svg { width: 100%; height: 100%; display: block; }

.l-feed-post-kpis {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--l-line-soft);
}
.l-feed-post-kpi {
  padding: 12px 14px;
  border-right: 1px solid var(--l-line-soft);
}
.l-feed-post-kpi:last-child { border-right: none; }
.l-feed-post-kpi-label {
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--l-ink-3);
  margin-bottom: 4px;
}
.l-feed-post-kpi-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 16px; font-weight: 600;
}
.l-feed-post-kpi-value .red { color: var(--l-accent); }
.l-feed-post-kpi-value .unit { font-size: 10px; color: var(--l-ink-3); }

.l-feed-post-actions {
  padding: 10px 16px;
  display: flex; gap: 8px; align-items: center;
}
.l-reactions {
  display: flex; align-items: center;
  background: var(--l-bg-2);
  border-radius: 999px;
  padding: 4px 10px 4px 6px;
  gap: 6px;
  border: 1px solid var(--l-line-soft);
}
.l-react-stack {
  display: flex;
}
.l-react-stack span {
  width: 22px; height: 22px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 12px;
  border: 2px solid var(--l-surface);
  margin-left: -6px;
}
.l-react-stack span:first-child { margin-left: 0; }
.l-react-stack span.r1 { background: rgba(230,57,70,0.20); }
.l-react-stack span.r2 { background: rgba(245,158,11,0.20); }
.l-react-stack span.r3 { background: rgba(34,197,94,0.20); }
.l-reactions-count {
  font-size: 12px; color: var(--l-ink-2); font-weight: 500;
}
.l-action-pill {
  font-size: 12px; font-weight: 500;
  padding: 6px 12px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid var(--l-line);
  color: var(--l-ink-2);
  display: inline-flex; align-items: center; gap: 5px;
}
.l-action-pill.compare {
  background: var(--l-accent);
  color: white;
  border-color: var(--l-accent);
}

/* ===== STATS BAND ===== */
.l-stats-band {
  background: var(--l-bg-3);
  border-top: 1px solid var(--l-line);
  border-bottom: 1px solid var(--l-line);
  padding: 80px 64px;
  position: relative;
  overflow: hidden;
}
.l-stats-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--l-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--l-grid) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}
.l-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}
.l-stat-big {
  padding: 0 28px;
  border-right: 1px solid var(--l-line);
}
.l-stat-big:last-child { border-right: none; }
.l-stat-big:first-child { padding-left: 0; }
.l-stat-big-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 72px;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
  background: linear-gradient(180deg, var(--l-ink-1) 0%, var(--l-ink-3) 140%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.l-stat-big-num em {
  font-style: normal;
  color: var(--l-accent);
  -webkit-text-fill-color: var(--l-accent);
}
.l-stat-big-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--l-ink-2);
  margin-top: 14px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.l-stat-big-sub {
  font-size: 13px;
  color: var(--l-ink-3);
  margin-top: 8px;
  font-family: 'JetBrains Mono', monospace;
}

/* ===== PRICING ===== */
.l-pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.l-price-card {
  background: var(--l-surface);
  border: 1px solid var(--l-line);
  border-radius: 18px;
  padding: 36px 32px 32px;
  display: flex; flex-direction: column;
  position: relative;
  overflow: hidden;
}
.l-price-card.featured {
  background: var(--l-bg-3);
  border-color: var(--l-accent);
  box-shadow: 0 20px 60px rgba(230,57,70,0.18), inset 0 0 0 1px rgba(230,57,70,0.4);
}
.l-price-card.featured::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 320px 200px at 100% 0%, rgba(230,57,70,0.10), transparent 60%);
  pointer-events: none;
}
.l-price-card > * { position: relative; z-index: 2; }

.l-price-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--l-accent);
  margin-bottom: 8px;
}
.l-price-badge::before {
  content: ''; width: 14px; height: 1px; background: var(--l-accent);
}
.l-price-tier {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 6px;
}
.l-price-tagline {
  font-size: 13px;
  color: var(--l-ink-3);
  margin-bottom: 28px;
}
.l-price-amount {
  display: flex; align-items: baseline; gap: 6px;
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--l-line-soft);
}
.l-price-amount-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 48px; font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
}
.l-price-amount-cur {
  font-family: 'JetBrains Mono', monospace;
  font-size: 18px; font-weight: 500;
  color: var(--l-ink-3);
}
.l-price-amount-period {
  font-size: 13px;
  color: var(--l-ink-3);
}
.l-price-features {
  list-style: none; padding: 0; margin: 0 0 28px;
  display: flex; flex-direction: column; gap: 12px;
  flex: 1;
}
.l-price-features li {
  font-size: 13px;
  color: var(--l-ink-2);
  display: flex; align-items: flex-start; gap: 10px;
  line-height: 1.45;
}
.l-price-features li svg {
  color: var(--l-accent);
  flex-shrink: 0;
  margin-top: 2px;
}
.l-price-features li.muted {
  color: var(--l-ink-4);
  text-decoration: line-through;
}
.l-price-features li.muted svg { color: var(--l-ink-4); }

.l-price-card .l-btn-primary,
.l-price-card .l-btn-secondary {
  justify-content: center;
  padding: 14px 20px;
  font-size: 14px;
  width: 100%;
}

/* ===== CTA STRIP ===== */
.l-cta-strip {
  padding: 100px 64px;
  background:
    radial-gradient(ellipse 800px 400px at 50% 100%, var(--l-glow), transparent 70%),
    var(--l-bg);
  border-top: 1px solid var(--l-line);
  border-bottom: 1px solid var(--l-line);
  position: relative;
  overflow: hidden;
}
.l-cta-strip::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(90deg, transparent 0 39px, var(--l-line-soft) 39px 40px);
  opacity: 0.5;
  pointer-events: none;
}
.l-cta-content {
  text-align: center;
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin: 0 auto;
}
.l-cta-content h2 {
  font-size: 64px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.0;
  margin: 0 0 20px;
  text-wrap: balance;
}
.l-cta-content h2 em {
  font-style: italic;
  color: var(--l-accent);
}
.l-cta-content p {
  font-size: 17px;
  color: var(--l-ink-2);
  margin: 0 0 36px;
  line-height: 1.55;
}
.l-cta-content .l-btn-primary { padding: 18px 32px; font-size: 16px; }

/* ===== FOOTER ===== */
.l-footer {
  background: var(--l-bg-2);
  padding: 64px 64px 32px;
}
.l-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--l-line);
}
.l-footer-brand p {
  font-size: 14px;
  color: var(--l-ink-3);
  line-height: 1.55;
  margin: 16px 0 0;
  max-width: 280px;
}
.l-footer-col h6 {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--l-ink-3);
  margin: 0 0 18px;
  font-weight: 600;
}
.l-footer-col ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column;
  gap: 12px;
}
.l-footer-col li a {
  font-size: 14px;
  color: var(--l-ink-2);
}
.l-footer-col li a:hover { color: var(--l-ink-1); }

.l-footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 28px;
  font-size: 12px;
  color: var(--l-ink-4);
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.04em;
}
.l-footer-bottom-right {
  display: flex; gap: 24px;
}

/* ===== Lean meter graphic for hero ===== */
.l-lean-meter {
  display: flex; align-items: center; gap: 14px;
  margin-top: 8px;
  padding: 14px 16px;
  background: var(--l-surface);
  border: 1px solid var(--l-line);
  border-radius: 12px;
  max-width: 360px;
}
.l-lean-arc {
  width: 56px; height: 56px;
}
.l-lean-info { flex: 1; }
.l-lean-info-top {
  display: flex; justify-content: space-between;
  font-size: 11px;
  color: var(--l-ink-3);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.l-lean-info-bar {
  height: 4px;
  background: var(--l-bg-2);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}
.l-lean-info-bar > div {
  height: 100%;
  background: linear-gradient(90deg, var(--l-green), var(--l-accent-2), var(--l-accent));
  border-radius: 2px;
}


/* =====================================================================
   WEB.24 — RESPONSIVE
   ---------------------------------------------------------------------
   El diseño original es de 1440px fijo y no tenía ningún @media query.
   Estos dos bloques (tablet ≤1024, móvil ≤640) reorganizan los grids
   en columnas más estrechas, ocultan decorados que sólo aportan ruido
   en móvil (visual del hero, ticker animado, línea decorativa del
   eyebrow, selector de idioma…) y bajan paddings para que el contenido
   respire sin scroll horizontal. No tocan el desktop: por encima de
   1024px el CSS aplica las reglas originales tal cual.
   ===================================================================== */

/* ── Tablet — viewport ≤ 1024 px ─────────────────────────────────── */
@media (max-width: 1024px) {
  /* Padding generoso del diseño 1440 (64-120 px) ya no cabe. */
  .l-nav { padding: 18px 24px; }
  .l-section { padding: 80px 24px; }
  .l-hero { padding: 56px 24px 80px; }

  /* Nav: sin los 5 links numerados — el espacio horizontal es escaso.
     El logo + CTA de la derecha siguen visibles. */
  .l-nav-links { display: none; }

  /* Hero: el SVG decorativo de la derecha asume 720 px de ancho y
     position:absolute; en tablet pisa el copy. Ocultar y dejar el
     hero como una sola columna a ancho completo. */
  .l-hero-visual { display: none; }
  .l-hero-content { max-width: 100%; }

  /* Features: 4 → 2 columnas. */
  .l-features { grid-template-columns: repeat(2, 1fr); }

  /* Analysis: el split 1.4fr / 1fr en tablet aprieta demasiado el
     mapa; stack vertical. */
  .l-analysis-grid { grid-template-columns: 1fr; }

  /* Feed demo: 240 / 1fr / 260 es imposible por debajo de 1100 px.
     Las sidebars son <div class="l-feed-side">, no <aside> — el
     selector del primer intento (> aside) no ocultaba nada y las
     dos columnas se apilaban encima/debajo del feed central. */
  .l-feed-demo {
    grid-template-columns: 1fr;
    padding: 14px;
    gap: 14px;
  }
  .l-feed-demo > .l-feed-side { display: none; }

  /* Features: cada card pierde el border-right (que en un grid
     horizontal separaba las 4 cards) y gana border-bottom para
     mantener la separación cuando quedan apiladas en 2 columnas
     mixtas. La última card no lleva border para no doblar el
     borde inferior del contenedor. */
  .l-feature {
    padding: 28px 22px 24px;
    border-right: none;
    border-bottom: 1px solid var(--l-line);
  }
  .l-feature:last-child { border-bottom: none; }

  /* Stats band: el border-right entre stats deja de tener sentido
     cuando hay sólo 2 columnas; lo movemos a border-bottom. */
  .l-stat-big {
    padding: 20px;
    border-right: none;
    border-bottom: 1px solid var(--l-line);
  }
  .l-stat-big:first-child { padding-left: 20px; }
  .l-stat-big:nth-last-child(-n+2) { border-bottom: none; }

  /* Stats band: padding lateral del contenedor también baja. */
  .l-stats-band { padding: 64px 24px; }

  /* Pricing cards: padding interior generoso del diseño 1440
     (36/32 px) reducido para que el texto no toque los bordes. */
  .l-price-card { padding: 28px 24px 24px; }

  /* Stats band, pricing y footer pasan a 2 columnas. */
  .l-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .l-pricing-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .l-footer-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
}

/* ── Móvil — viewport ≤ 640 px ───────────────────────────────────── */
@media (max-width: 640px) {
  /* Padding agresivamente reducido — 16 px laterales es lo mínimo
     para no pegarse al borde y dejar respirar las cards. */
  .l-nav { padding: 12px 16px; }
  .l-section { padding: 56px 16px; }
  .l-hero { padding: 32px 16px 56px; }

  /* Logo más compacto: el subtítulo "Ride Analytics" desaparece
     para que quepan en una fila brand + CTAs. */
  .l-logo-text small { display: none; }
  .l-logo-text { font-size: 14px; }

  /* Selector de idioma y theme toggle — fuera, ocupan demasiado y
     son secundarios. */
  .l-lang { display: none; }
  .l-theme-toggle { display: none; }

  /* Nav-right: los dos botones se apilan o se reducen. Mantener
     sólo "Empezar" / "Acceder" según estado de login. */
  .l-nav-right { gap: 8px; }
  .l-nav-right .l-btn-ghost { display: none; }

  /* Hero typography: el h1 grande (~64-80 px) revienta en móvil. */
  .l-hero h1 { font-size: clamp(32px, 9vw, 44px); line-height: 1.1; }
  .l-hero p, .l-hero-lede { font-size: 15px; }

  /* Hero stats: 4 columnas → 2 × 2. */
  .l-hero-stats { grid-template-columns: repeat(2, 1fr); gap: 12px; }

  /* Hero ticker animado: con tan poco ancho se ve roto, mejor
     ocultarlo. El usuario móvil no lo va a leer mientras scrollea. */
  .l-hero-ticker { display: none; }

  /* Flag decorativa lateral checker — irrelevante en móvil. */
  .l-hero-flag { display: none; }

  /* Eyebrow: la línea roja decorativa de 28 px pisa el texto. */
  .l-section-eyebrow { gap: 8px; }
  .l-section-eyebrow::before { display: none; }

  /* Section heads: el split 2-col h2 + descripción larga colapsa
     en stack vertical con menos gap. */
  .l-section-head { grid-template-columns: 1fr; gap: 16px; }
  .l-section-head h2 { font-size: 28px; line-height: 1.15; }

  /* Cualquier grid de N columnas pasa a 1 columna. Mantener gap
     vertical razonable. */
  .l-features,
  .l-pricing-grid,
  .l-stats-grid,
  .l-footer-grid,
  .l-analysis-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* ── POSTS DEL FEED-DEMO ─────────────────────────────────────────
     El SVG del mapa dentro del post (.l-feed-post-map, viewBox
     600×220 con altura fija 220 px) en móvil se ve borroso, ocupa
     casi la mitad del scroll y no aporta valor — el copy del post
     (cabecera + ruta + KPIs + acciones) ya transmite la idea.
     Lo ocultamos para liberar viewport. */
  .l-feed-post-map { display: none; }

  /* Post: paddings interiores reducidos. La cabecera, el bloque
     ruta y los KPIs heredaban 14-16 px de padding del desktop;
     a 360 px de viewport el avatar + nombre + meta no caben. */
  .l-feed-post-head { padding: 12px 14px; gap: 10px; }
  .l-feed-post-head .l-bike-av { width: 36px; height: 36px; }
  .l-feed-post-head h5 { font-size: 13px; }
  .l-feed-post-head h5 small { font-size: 10px; }
  .l-feed-post-route { padding: 10px 14px; font-size: 12px; }
  .l-feed-post-kpi { padding: 10px 8px; }
  .l-feed-post-kpi-value { font-size: 14px; }
  .l-feed-post-kpi-label { font-size: 8px; letter-spacing: 0.10em; }
  /* Las acciones (reacciones + 154 + Comparar + share) son una
     fila flex; con 360 px no caben. Permitimos wrap para que
     pasen a dos filas en vez de hacer overflow horizontal. */
  .l-feed-post-actions {
    padding: 10px 14px;
    flex-wrap: wrap;
    gap: 6px;
  }
  .l-action-pill { font-size: 11px; padding: 5px 10px; }

  /* Sidebar cards del feed-demo: aunque las ocultamos en tablet,
     dejamos las reglas por si en algún momento se quieren mostrar
     en móvil reducidas. Padding bajado a 12 px. */
  .l-feed-side-card { padding: 12px; }

  /* Feed demo: ya estaba 1-col desde el tablet, pero compactar
     KPIs internos para que no rebosen. */
  .l-feed-post-kpis { grid-template-columns: repeat(2, 1fr); gap: 0; }
  .l-feed-post-kpi {
    /* Con 2 columnas, el border-right interno deja una mitad sin
       borde y la otra con. Lo quitamos y usamos border-bottom para
       separar la primera fila de la segunda. */
    border-right: none;
    border-bottom: 1px solid var(--l-line-soft);
  }
  .l-feed-post-kpi:nth-last-child(-n+2) { border-bottom: none; }
  .l-mini-kpis { grid-template-columns: repeat(2, 1fr); gap: 8px; }

  /* ── CARDS GENERALES (features, pricing) ────────────────────────
     Mismo principio que en tablet: padding interior bajado y
     border-right (que separaba columnas) movido a border-bottom
     para separación entre cards apiladas. */
  .l-feature {
    padding: 24px 18px 20px;
    border-right: none;
    border-bottom: 1px solid var(--l-line);
  }
  .l-feature:last-child { border-bottom: none; }
  .l-feature h3 { font-size: 18px; }
  .l-feature p { font-size: 13px; margin: 0 0 18px; }
  .l-feature-icon { width: 44px; height: 44px; margin-bottom: 16px; }
  .l-feature-num { margin-bottom: 16px; }

  .l-price-card { padding: 24px 20px 20px; }

  /* Stats: en stack vertical el border-right deja una raya rara.
     Cambio a border-bottom y padding compacto. Los números enormes
     ya se reducen vía .l-stat-num clamp(); también bajamos
     .l-stat-big-num que es la clase real (1440 design). */
  .l-stat-big {
    padding: 18px 0;
    border-right: none;
    border-bottom: 1px solid var(--l-line);
  }
  .l-stat-big:first-child { padding-left: 0; }
  .l-stat-big:last-child { border-bottom: none; }
  .l-stat-big-num { font-size: clamp(40px, 13vw, 56px); }
  .l-stat-big-label { margin-top: 10px; font-size: 11px; }
  .l-stat-big-sub { font-size: 11px; margin-top: 6px; }
  .l-stats-band { padding: 48px 16px; }

  /* Bike-info de la sidebar: el ellipsis ya estaba con
     overflow:hidden, pero el padre flex no daba min-width:0 al
     hijo. Sin eso, el bike-name no recorta y empuja el avatar
     fuera de la card. */
  .l-bike-info { min-width: 0; }

  /* Tabla de curvas en el demo de Analysis: las 5 columnas
     (32 / 1fr / 70 / 80 / 60) se salen del viewport. Permitimos
     scroll horizontal dentro de la propia tabla en lugar de
     romper el ancho de la página. */
  .l-curve-table,
  .l-curve-table-head,
  .l-curve-table-body { min-width: 480px; }
  .l-curve-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Demo frame del browser-fake: el bar superior con la URL
     completa no cabe; el contenido se mantiene pero el bar se
     reduce. */
  .l-demo-frame-bar {
    padding: 6px 10px;
    font-size: 10px;
  }
  .l-demo-frame-bar > span:nth-child(2) {
    /* La URL central se trunca con ellipsis si hace falta. */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
  }

  /* Botones del hero CTA: en móvil más fácil tocar si son
     full-width y apilados. */
  .l-hero-cta,
  .l-cta-strip-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .l-btn-primary,
  .l-btn-secondary {
    width: 100%;
    justify-content: center;
  }

  /* Stats band: los números enormes (~72px) se reducen para que
     entren dos por fila sin desbordar. */
  .l-stat-num { font-size: clamp(32px, 11vw, 48px); }

  /* CTA strip: el heading grande también baja. */
  .l-cta-strip h2 { font-size: 26px; line-height: 1.2; }

  /* Footer brand column: en stack queda muy alto, recortar logo. */
  .l-footer { padding: 56px 16px 32px; }
}
