/* whipp.in — landing page ("/"). Scoped under .lp / body.is-home so the
   timing-screen styles in style.css stay untouched. One accent, no gradients
   as decoration: the texture comes from the shader, the colour from the data. */

/* Fonts (@font-face) live in style.css, which every page loads first. */

:root {
  --lp-display: 'Space Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --lp-ink: #f2f1f7;
  --lp-dim: #9a99a8;
  --lp-line: rgba(255, 255, 255, 0.08);
  --lp-accent: #a78bfa;
  --lp-accent-ink: #120c24;
  --lp-accent-btn: #8b6cf0;
  --lp-accent-btn-hover: #9a7ff5;
  --lp-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---- topbar: the shared fixed bar from style.css; on the landing it floats
   over the hero with no fill or rule until the page scrolls ---- */

body.is-home { overflow-x: hidden; padding-top: 0; }
body.is-home .topbar { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; border-bottom-color: transparent; transition: background 0.3s, border-color 0.3s, -webkit-backdrop-filter 0.3s, backdrop-filter 0.3s; }
body.is-home.is-scrolled .topbar { background: rgba(13, 13, 17, 0.72); -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%); border-bottom-color: var(--border); }
body.is-home #main { padding: 0; }

.lp { font-family: var(--lp-display); color: var(--lp-ink); }
.lp a { color: inherit; }
.lp .num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.lp .muted { color: var(--lp-dim); }

/* ---- reveal on scroll ---- */

.lp .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s var(--lp-ease), transform 0.9s var(--lp-ease);
  transition-delay: calc(var(--i, 0) * 70ms);
}
.lp .reveal.is-in { opacity: 1; transform: none; }

/* ================================================================ hero */

.lp-hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding: 96px 24px 56px;
  overflow: hidden;
  isolation: isolate;
  background: var(--bg);
}

.lp-shader {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  display: block;
}

/* a faint engineering grid over the shader, fading to nothing at the edges */
.lp-hero-grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(var(--lp-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--lp-line) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000 20%, transparent 100%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000 20%, transparent 100%);
  opacity: 0.55;
}

/* fade the shader + grid into the page background so the hero doesn't end
   on a hard edge where the rest of the page begins */
.lp-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 38%;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(to bottom, transparent, var(--bg) 92%);
}

.lp-hero-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(360px, 2fr);
  gap: 56px;
  align-items: center;
}

.lp-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--lp-dim);
  margin-bottom: 28px;
  animation: lp-fade 0.9s var(--lp-ease) both;
}
.lp-status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--lp-dim);
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0);
}
.lp-status-dot.is-up { background: var(--green); animation: lp-pulse 2.4s ease-out infinite; }
.lp-status-dot.is-busy { background: var(--lp-accent); animation: lp-pulse-acc 1.6s ease-out infinite; }
.lp-status-dot.is-down { background: var(--lp-dim); }

.lp-h1 {
  font-size: clamp(40px, 5.4vw, 72px);
  line-height: 0.98;
  font-weight: 600;
  letter-spacing: -0.035em;
  margin: 0 0 22px;
}
.lp-h1-line {
  display: block;
  animation: lp-rise 1s var(--lp-ease) both;
  animation-delay: calc(120ms + var(--i) * 110ms);
}
.lp-h1-accent { color: var(--lp-accent); }
.lp-h1-n { color: #fff; text-shadow: 0 0 32px rgba(167, 139, 250, 0.45); }

.lp-lede {
  max-width: 560px;
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.55;
  color: var(--lp-dim);
  margin: 0 0 28px;
  animation: lp-rise 1s var(--lp-ease) both;
  animation-delay: 480ms;
}

.lp-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  animation: lp-rise 1s var(--lp-ease) both;
  animation-delay: 600ms;
}

.lp-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  font: 500 15px/1 var(--lp-display);
  letter-spacing: -0.01em;
  color: var(--lp-ink);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.25s, background 0.25s, transform 0.35s var(--lp-ease);
}
.lp-btn:hover { border-color: rgba(255, 255, 255, 0.4); background: rgba(255, 255, 255, 0.06); transform: translateY(-1px); }
.lp-btn .lp-arrow { width: 16px; height: 16px; transition: transform 0.35s var(--lp-ease); }
.lp-btn:hover .lp-arrow { transform: translateX(4px); }

.lp .lp-btn-primary,
.lp-btn-primary {
  background: var(--lp-accent-btn);
  border-color: var(--lp-accent-btn);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 0 0 0 rgba(167, 139, 250, 0.35);
}
.lp .lp-btn-primary:hover,
.lp-btn-primary:hover {
  background: var(--lp-accent-btn-hover);
  border-color: var(--lp-accent-btn-hover);
  box-shadow: 0 12px 40px -10px rgba(167, 139, 250, 0.55);
}
.lp-btn-big { height: 56px; padding: 0 28px; font-size: 17px; margin-top: 28px; }

.lp-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 34px;
  padding: 0 4px 0 12px;
  border-radius: 8px;
  border: 1px solid var(--lp-line);
  background: rgba(0, 0, 0, 0.25);
  color: var(--lp-ink);
  font-size: 13px;
  cursor: pointer;
  transition: border-color 0.25s;
}
.lp-chip:hover { border-color: rgba(255, 255, 255, 0.3); }
.lp-chip-hint {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--lp-dim);
  padding: 4px 8px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.05);
  transition: color 0.2s, background 0.2s;
}
.lp-chip.is-copied .lp-chip-hint { color: var(--lp-accent-ink); background: var(--lp-accent); }
.lp-step .lp-chip,
.lp-footer .lp-chip { height: 26px; font-size: 12px; vertical-align: middle; margin: 0 2px; }

/* the live card: map on top, status + roster + connect under it */
.lp-hero-aside { display: flex; flex-direction: column; gap: 18px; }
.lp-pulse {
  border: 1px solid var(--lp-line);
  border-radius: 20px;
  background: rgba(13, 13, 17, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow: hidden;
  animation: lp-rise 1.1s var(--lp-ease) both;
  animation-delay: 500ms;
}
.lp-pulse-stage {
  position: relative;
  display: block;
  height: clamp(220px, 26vw, 300px);
  padding: 18px 22px;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.3s;
  background:
    radial-gradient(ellipse 70% 80% at 50% 60%, rgba(167, 139, 250, 0.14), transparent 70%),
    linear-gradient(var(--lp-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--lp-line) 1px, transparent 1px);
  background-size: auto, 36px 36px, 36px 36px;
  border-bottom: 1px solid var(--lp-line);
}
.lp-pulse-stage:hover { background-color: rgba(167, 139, 250, 0.06); }
.lp-pulse-head {
  position: absolute;
  left: 22px; top: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--lp-dim);
}
.lp-pulse-kicker { color: var(--lp-ink); }
.lp-pulse-map { position: absolute; inset: 38px 22px 14px; opacity: 0; transition: opacity 0.9s var(--lp-ease); }
.lp-pulse-map.is-on { opacity: 1; }
.lp-mini { width: 100%; height: 100%; display: block; filter: drop-shadow(0 0 10px rgba(167, 139, 250, 0.45)); }
.lp-mini-car { fill: var(--lp-accent); stroke: #fff; stroke-width: 0.5%; animation: lp-mini-pop 0.5s var(--lp-ease) both; }
.lp-pulse-body { padding: 18px 22px 22px; }
.lp-pulse-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.lp-pulse-track {
  min-width: 0;
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: #fff;
}
.lp-pulse-count { display: flex; align-items: baseline; gap: 8px; flex: none; }
.lp-pulse-big { font-size: 40px; font-weight: 700; line-height: 0.9; letter-spacing: -0.03em; color: var(--lp-ink); transition: color 0.4s, text-shadow 0.6s; }
.lp-pulse-big.is-live { color: #fff; text-shadow: 0 0 28px rgba(167, 139, 250, 0.6); }
.lp-pulse-big-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--lp-dim);
}
.lp-pulse-roster { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; font-size: 13px; color: var(--lp-dim); }
.lp-pulse-driver {
  padding: 4px 9px;
  border-radius: 6px;
  border: 1px solid rgba(167, 139, 250, 0.35);
  color: var(--lp-ink);
  font-size: 12.5px;
}
.lp-pulse-recent { display: flex; gap: 26px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--lp-line); }
.lp-pulse-recent:empty { display: none; }
.lp-pulse-recent-item { display: flex; align-items: baseline; gap: 8px; }
.lp-pulse-recent-value { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; color: var(--lp-ink); }
.lp-pulse-recent-label { font-family: var(--mono); font-size: 10.5px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--lp-dim); }
/* connect controls, tied to the live card */
.lp-pulse-join { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-top: 18px; }
.lp-pulse-join .lp-btn-primary { flex: 1 1 auto; justify-content: center; }
/* all time: three figures on the backdrop under the hero copy */
.lp-pulse-all { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 8px 40px; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--lp-line); max-width: 560px; }
.lp-pulse-all:empty { display: none; }
.lp-pulse-all-head {
  grid-column: 1 / -1;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--lp-dim);
  opacity: 0.8;
  animation: lp-fade 0.8s var(--lp-ease) both;
  animation-delay: 700ms;
}
.lp-pulse-tile {
  animation: lp-fade 0.8s var(--lp-ease) both;
  animation-delay: calc(800ms + var(--i) * 90ms);
}
.lp-pulse-value { font-size: clamp(22px, 2vw, 30px); font-weight: 600; letter-spacing: -0.02em; line-height: 1; color: var(--lp-ink); white-space: nowrap; }
.lp-pulse-label {
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  color: var(--lp-dim);
}

/* the record card (records section) */
.lp-record-box {
  display: block;
  padding: 20px 24px 18px;
  border-bottom: 1px solid var(--lp-line);
  text-decoration: none;
  transition: background 0.3s;
}
.lp-record-box:hover { background: rgba(167, 139, 250, 0.06); }
.lp-record-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--lp-dim);
  margin-bottom: 8px;
}
.lp-record {
  font-size: clamp(38px, 3.6vw, 48px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  color: #fff;
  text-shadow: 0 0 28px rgba(167, 139, 250, 0.45);
}
.lp-record-meta {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 13px;
  color: var(--lp-dim);
}
.lp-record-holder { display: inline-flex; align-items: center; gap: 6px; }
.lp-record-holder .drv-name { color: var(--lp-ink); }

.lp-scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--lp-dim);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0.7;
  animation: lp-fade 1.2s 1.4s both;
}
.lp-scroll-hint::after {
  content: '';
  width: 1px;
  height: 36px;
  background: linear-gradient(var(--lp-dim), transparent);
  animation: lp-drip 2.2s ease-in-out infinite;
}

/* ================================================================ sections */

.lp-section {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 96px 24px 0;
}
.lp-head { margin-bottom: 40px; max-width: 720px; }
.lp-h2 {
  font-size: clamp(30px, 3.6vw, 46px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0 0 12px;
}
.lp-sub { font-size: 17px; line-height: 1.5; color: var(--lp-dim); margin: 0; }


/* ---- records ---- */

.lp-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: -12px 0 26px; }
.lp-chips:empty { display: none; }
.lp-chip-combo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid var(--lp-line);
  background: rgba(255, 255, 255, 0.02);
  color: var(--lp-ink);
  font: 500 13.5px/1 var(--lp-display);
  cursor: pointer;
  transition: border-color 0.25s, background 0.25s;
}
.lp-chip-combo:hover { border-color: rgba(255, 255, 255, 0.3); }
.lp-chip-combo.is-on { border-color: var(--lp-accent); background: rgba(167, 139, 250, 0.1); }
.lp-chip-now {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--lp-accent);
}
.lp-record-host { position: relative; }
.lp-record-view {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s var(--lp-ease), transform 0.6s var(--lp-ease);
}
.lp-record-view.is-in { opacity: 1; transform: none; }
.lp-record-view.is-out { position: absolute; inset: 0 0 auto 0; opacity: 0; transform: translateY(-6px); pointer-events: none; }
.lp-board { margin-top: 40px; }
.lp-board-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 14px; }
.lp-h3 { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; margin: 0; }

/* ---- track + ghost ---- */

/* One panel: the replay stage and the record card share a border and a
   divider, stretched to the same height, so they read as a single object. */
.lp-track-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(260px, 0.8fr);
  gap: 0;
  align-items: stretch;
  border: 1px solid var(--lp-line);
  border-radius: 18px;
  background: var(--panel);
  overflow: hidden;
}

.lp-stage-wrap {
  position: relative;
  background: radial-gradient(ellipse 80% 70% at 50% 40%, rgba(167, 139, 250, 0.07), transparent 70%);
  overflow: hidden;
  min-height: 420px;
  display: grid;
  grid-template-rows: auto 1fr;
}
.lp-stage {
  position: relative;
  padding: 96px 12px 14px;
  display: grid;
  place-items: center;
  min-height: 380px;
}
.lp-stage-outline {
  max-width: 96%;
  max-height: 380px;
  opacity: 0.55;
  filter: invert(1) brightness(1.4);
  transition: opacity 0.8s;
}
.lp-stage-outline.is-out { opacity: 0; position: absolute; }

.lp-circuit {
  width: 100%;
  height: 100%;
  max-height: 520px;
  overflow: visible;
  opacity: 0;
  transform: scale(0.97);
  transition: opacity 1s var(--lp-ease), transform 1.2s var(--lp-ease);
}
.lp-circuit.is-in { opacity: 1; transform: none; }
.lp-circuit path, .lp-circuit line { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.lp-tarmac { stroke: #1c1c25; }
.lp-kerb { stroke: #2b2b37; }
.lp-heat path { opacity: 0.9; }
.lp-sector-tick { stroke: var(--lp-dim); opacity: 0.8; }
.lp-start-line { stroke: var(--lp-ink); }
.lp-trail { stroke: var(--lp-accent); opacity: 0.95; }
.lp-marker { fill: #fff; }

.lp-readouts {
  position: absolute;
  left: 18px;
  top: 66px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  pointer-events: none;
}
.lp-ro {
  padding: 10px 14px 9px;
  border-radius: 10px;
  border: 1px solid var(--lp-line);
  background: rgba(13, 13, 17, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  min-width: 70px;
}
.lp-ro-big { min-width: 118px; }
.lp-ro-speed { font-size: 34px; font-weight: 700; line-height: 1; letter-spacing: -0.02em; }
.lp-ro-gear { font-size: 34px; font-weight: 700; line-height: 1; color: var(--lp-accent); }
.lp-ro-gear, .lp-ro-gear + .lp-ro-label { text-align: center; }
.lp-ro-label {
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--lp-dim);
}
.lp-ro-rpm { min-width: 150px; display: flex; flex-direction: column; justify-content: center; }
.lp-ro-rpm-track { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.08); overflow: hidden; margin-top: 12px; }
.lp-ro-rpm-fill { height: 100%; width: 0; background: var(--lp-accent); transition: background 0.15s; }
.lp-ro-rpm-fill.is-red { background: var(--red); }
.lp-ro-clock { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; line-height: 1; }
.lp-ro-time { display: flex; flex-direction: column; justify-content: center; }
.lp-ro-time-label { display: flex; gap: 10px; }
.lp-ro-sector { color: var(--lp-accent); }
.lp-ro-sector:empty { display: none; }
.lp-ro-sector.flash { animation: lp-flash 0.7s ease-out; }

.lp-stage-caption {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--lp-line);
  font-size: 13.5px;
  color: var(--lp-dim);
}
.lp-stage-caption .num { color: var(--lp-ink); }
.lp-stage-caption .drv-name { color: var(--lp-ink); }
.lp-stage-tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--lp-accent);
  border: 1px solid rgba(167, 139, 250, 0.45);
  border-radius: 4px;
  padding: 3px 7px;
}

.lp-track-side {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-height: 0;
  border-left: 1px solid var(--lp-line);
  overflow: hidden;
}
.lp-side-block { padding: 18px 24px 20px; border-bottom: 1px solid var(--lp-line); }
.lp-side-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--lp-dim);
  margin-bottom: 8px;
}
.lp-combo-track { font-size: 19px; font-weight: 600; letter-spacing: -0.02em; color: var(--lp-ink); line-height: 1.15; }
.lp-combo {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  background: radial-gradient(ellipse 80% 70% at 50% 40%, rgba(167, 139, 250, 0.1), transparent 70%);
}
.lp-car {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 150px;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.9) contrast(1.05);
}
.lp-combo-title {
  position: absolute;
  inset: auto 0 0 0;
  padding: 44px 24px 16px;
  background: linear-gradient(to top, rgba(13, 13, 17, 0.92), rgba(13, 13, 17, 0.55) 55%, transparent);
}
.lp-combo.no-img .lp-combo-title { position: static; padding: 18px 24px; background: none; }
.lp-combo-car { font-size: 17px; font-weight: 600; letter-spacing: -0.02em; color: var(--lp-ink); line-height: 1.15; }
.lp-combo-power { margin-top: 4px; font-size: 13px; color: var(--lp-dim); }
.lp-facts {
  display: grid;
  grid-template-columns: auto 1fr;
  align-content: start;
  gap: 9px 22px;
  margin: 12px 0 0;
  font-size: 14px;
}
.lp-facts dt {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--lp-dim);
  padding-top: 3px;
}
.lp-facts dd { margin: 0; color: var(--lp-ink); }

/* ---- leaderboard ---- */

.lp-lb { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--lp-line); }
.lp-lb-row { border-bottom: 1px solid var(--lp-line); }
.lp-lb-link {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1.4fr) auto auto minmax(0, 1fr);
  align-items: center;
  gap: 0 22px;
  padding: 18px 16px;
  text-decoration: none;
  overflow: hidden;
  transition: background 0.25s;
}
.lp-lb-link:hover { background: rgba(255, 255, 255, 0.03); }
.lp-lb-pos { font-size: 20px; font-weight: 700; color: var(--lp-dim); }
.lp-lb-row:first-child .lp-lb-pos { color: var(--lp-accent); }
.lp-lb-who .drv-name { font-size: 17px; font-weight: 500; }
.lp-lb-time { font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
.lp-lb-gap { font-size: 13px; min-width: 70px; }
.lp-lb-meta { font-size: 13px; text-align: right; }
.lp-lb-bar {
  position: absolute;
  left: 0; bottom: 0;
  height: 2px;
  width: var(--w, 0%);
  background: var(--lp-accent);
  opacity: 0.45;
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 1.2s var(--lp-ease);
  transition-delay: calc(200ms + var(--i, 0) * 90ms);
}
.lp-lb-row.is-in .lp-lb-bar { transform: scaleX(1); }
.lp-lb-row:first-child .lp-lb-bar { opacity: 0.9; }

.lp-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  font-size: 15px;
  font-weight: 500;
  color: var(--lp-ink);
  text-decoration: none;
}
.lp-more .lp-arrow { width: 16px; height: 16px; transition: transform 0.35s var(--lp-ease); }
.lp-more:hover .lp-arrow { transform: translateX(4px); }

/* ---- features ---- */

.lp-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.lp-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px 22px 22px;
  border: 1px solid var(--lp-line);
  border-radius: 16px;
  background: var(--panel);
  text-decoration: none;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.45s var(--lp-ease);
}
.lp-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(167, 139, 250, 0.12), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
}
.lp-card:hover { border-color: rgba(167, 139, 250, 0.45); transform: translateY(-4px); }
.lp-card:hover::before { opacity: 1; }
.lp-art { width: 100%; height: 84px; margin-bottom: 6px; }
.lp-art-bar { fill: rgba(255, 255, 255, 0.14); transform-origin: left; transform: scaleX(0); transition: transform 1s var(--lp-ease); }
.lp-art-bar.is-accent { fill: var(--lp-accent); }
.lp-art-dot { fill: var(--lp-dim); }
.lp-art-axis { stroke: rgba(255, 255, 255, 0.12); stroke-width: 1; }
.lp-art-line {
  fill: none;
  stroke: rgba(255, 255, 255, 0.22);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
  transition: stroke-dashoffset 1.6s var(--lp-ease);
}
.lp-art-line.is-accent { stroke: var(--lp-accent); }
.lp-art-line.is-dim { stroke: rgba(255, 255, 255, 0.14); transition-delay: 0.2s; }
.lp-card.is-in .lp-art-line { stroke-dashoffset: 0; }
.lp-card.is-in .lp-art-bar { transform: scaleX(1); }
.lp-card.is-in .lp-art-bar:nth-of-type(2) { transition-delay: 0.08s; }
.lp-card.is-in .lp-art-bar:nth-of-type(3) { transition-delay: 0.16s; }
.lp-card.is-in .lp-art-bar:nth-of-type(4) { transition-delay: 0.24s; }
.lp-card-title { font-size: 19px; font-weight: 600; letter-spacing: -0.02em; margin: 0; }
.lp-card-body { font-size: 14.5px; line-height: 1.5; color: var(--lp-dim); margin: 0; flex: 1; }
.lp-card-go {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--lp-accent);
}
.lp-card-go .lp-arrow { width: 14px; height: 14px; transition: transform 0.35s var(--lp-ease); }
.lp-card:hover .lp-card-go .lp-arrow { transform: translateX(4px); }

/* ---- join ---- */

.lp-join-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.8fr);
  gap: 40px;
  align-items: start;
}
.lp-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.lp-step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 18px;
  padding: 22px 0;
  border-top: 1px solid var(--lp-line);
}
.lp-step:last-child { border-bottom: 1px solid var(--lp-line); }
.lp-step-n { font-size: 13px; color: var(--lp-accent); padding-top: 5px; letter-spacing: 1px; }
.lp-step-title { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; margin: 0 0 6px; }
.lp-step-body { font-size: 15.5px; line-height: 1.6; color: var(--lp-dim); margin: 0; }
.lp-step-body a { color: var(--lp-ink); text-decoration-color: rgba(255, 255, 255, 0.3); text-underline-offset: 3px; }
.lp-step-body a:hover { text-decoration-color: var(--lp-accent); }
.lp-step-help { margin-top: 10px; }
.lp-step-help summary { cursor: pointer; font-size: 13.5px; color: var(--lp-dim); list-style: none; display: inline-flex; align-items: center; gap: 6px; }
.lp-step-help summary::-webkit-details-marker { display: none; }
.lp-step-help summary::before { content: '+'; font-family: var(--lp-mono, monospace); color: var(--lp-accent); }
.lp-step-help[open] summary::before { content: '3'; }
.lp-step-help summary:hover { color: var(--lp-ink); }
.lp-step-help .lp-step-body { margin-top: 8px; font-size: 14.5px; }
.lp-step-help b { color: var(--lp-ink); font-weight: 600; }

.lp-rules {
  padding: 26px 28px 22px;
  border: 1px solid var(--lp-line);
  border-radius: 16px;
  background: var(--panel);
}
.lp-rules-title { font-size: 18px; font-weight: 600; letter-spacing: -0.02em; margin: 0 0 14px; }
.lp-rules ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.lp-rules li { position: relative; padding-left: 18px; font-size: 15px; line-height: 1.5; color: var(--lp-ink); }
.lp-rules li::before { content: '▸'; position: absolute; left: 0; color: var(--lp-accent); }
.lp-rules-foot { margin: 18px 0 0; font-size: 15px; }

/* ---- footer ---- */

.lp-footer {
  width: min(1180px, 100%);
  margin: 96px auto 0;
  padding: 28px 24px 40px;
  border-top: 1px solid var(--lp-line);
  font-size: 13px;
  color: var(--lp-dim);
  display: flex;
  flex-wrap: wrap;
  gap: 4px 6px;
  align-items: baseline;
  line-height: 26px;
}
.lp-footer a { color: var(--lp-ink); text-decoration-color: rgba(255, 255, 255, 0.3); text-underline-offset: 3px; }

/* ================================================================ motion */

@keyframes lp-rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes lp-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes lp-pulse { 0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.5); } 100% { box-shadow: 0 0 0 10px rgba(52, 211, 153, 0); } }
@keyframes lp-pulse-acc { 0% { box-shadow: 0 0 0 0 rgba(167, 139, 250, 0.6); } 100% { box-shadow: 0 0 0 10px rgba(167, 139, 250, 0); } }
@keyframes lp-drip { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
@keyframes lp-flash { 0% { color: var(--lp-ink); } 100% { color: var(--lp-dim); } }

@media (prefers-reduced-motion: reduce) {
  .lp *, .lp *::before, .lp *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .lp .reveal { opacity: 1; transform: none; }
  .lp-scroll-hint { display: none; }
}

/* ================================================================ responsive */

@media (max-height: 820px) { .lp-scroll-hint { display: none; } }

@media (max-width: 1024px) {
  .lp-features { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .lp-hero { min-height: calc(100svh - 56px); padding-top: 80px; }
  .lp-hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .lp-pulse-big { font-size: 36px; }
  .lp-pulse-stage { height: 220px; }
  .lp-track-grid, .lp-join-grid { grid-template-columns: 1fr; }
  .lp-track-side { border-left: 0; border-top: 1px solid var(--lp-line); }
  .lp-lb-link { grid-template-columns: 36px minmax(0, 1fr) auto; gap: 8px 14px; }
  .lp-lb-gap { grid-column: 3; text-align: right; }
  .lp-lb-meta { grid-column: 2 / 4; text-align: left; font-size: 12px; }
  .lp-lb-time { font-size: 19px; }
  .lp-readouts { left: 10px; top: 72px; gap: 6px; }
  .lp-ro { padding: 8px 10px 7px; min-width: 0; }
  .lp-ro-big { min-width: 84px; }
  .lp-ro-speed, .lp-ro-gear { font-size: 24px; }
  .lp-ro-rpm { display: none; }
  .lp-ro-clock { font-size: 16px; }
  .lp-stage { padding: 76px 8px 12px; min-height: 300px; }
}
@media (max-width: 560px) {
  .lp-section { padding-top: 72px; }
  .lp-features { grid-template-columns: 1fr; }
  .lp-cta .lp-btn { flex: 1 1 100%; justify-content: center; }
  .lp-pulse-all { gap: 8px 24px; }
  .lp-pulse-join .lp-chip { flex: 1 1 100%; justify-content: center; }
}
@keyframes lp-mini-pop { from { transform: scale(0); transform-box: fill-box; transform-origin: center; } to { transform: scale(1); transform-box: fill-box; transform-origin: center; } }
