/*
 * ChainRules frontend theme.
 *
 * Dark trading-terminal look for the public site: blueprint rails, live rule
 * hero, glowing panels. Class prefix `lp-` (landing page). The admin-editable
 * accent colors arrive as --primary / --accent from the layout <head>.
 * Dynamic sizes and positions are applied by assets/frontend/js/chainrules/
 * landing.js at runtime — never inline in Blade.
 */

:root {
  --lp-bg: #0b0f14;
  --lp-bg-2: #0d1218;
  --lp-bg-3: #0a0e13;
  --lp-surface: #111820;
  --lp-surface-2: #16202b;
  --lp-border: #26313d;
  --lp-border-soft: #1b242e;
  --lp-border-faint: #161e27;
  --lp-text: #e6edf3;
  --lp-text-2: #c9d2db;
  --lp-text-3: #a9b4bf;
  --lp-muted: #8b98a5;
  --lp-blue: #60a5fa;
  --lp-blue-2: #93c5fd;
  --lp-green: #34d399;
  --lp-green-2: #6ee7b7;
  --lp-red: #f87171;
  --lp-amber: #fcd34d;
  --lp-violet: #c4b5fd;
  --lp-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --lp-sans: "Geist", "Inter", ui-sans-serif, system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  background: var(--lp-bg);
}

body.lp {
  margin: 0;
  background: var(--lp-bg);
  color: var(--lp-text);
  font-family: var(--lp-sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "tnum" 1;
  overflow-x: hidden;
  overflow-x: clip;
}

.lp a {
  color: var(--lp-blue);
  text-decoration: none;
}

.lp a:hover {
  color: var(--lp-blue-2);
}

.lp button,
.lp input {
  font-family: inherit;
}

.lp img {
  max-width: 100%;
}

.lp-mono {
  font-family: var(--lp-mono);
}

.lp-muted {
  color: var(--lp-muted);
}

.lp-pos {
  color: #10b981;
}

.lp-neg {
  color: var(--lp-red);
}

.lp-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.lp-skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 50;
  padding: 10px 14px;
  border-radius: 8px;
  background: #2563eb;
  color: #fff;
}

.lp-skip:focus {
  top: 12px;
  color: #fff;
}

/* ---------- Layout ---------- */

.lp-shell {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
}

.lp-sec > .lp-shell {
  padding: 120px 48px;
}

.lp-stack {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.lp-split {
  display: flex;
  flex-wrap: wrap;
  gap: 56px;
  align-items: center;
}

.lp-split-top {
  align-items: flex-start;
}

.lp-col {
  flex: 1 1 420px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.lp-col-wide {
  flex: 999 1 560px;
  min-width: 0;
}

.lp-head-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  flex-wrap: wrap;
}

.lp-head {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 760px;
}

/* ---------- Type ---------- */

.lp-sl {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--lp-blue);
}

.lp-h2 {
  margin: 0;
  font-size: 48px;
  line-height: 1.06;
  text-wrap: balance;
  letter-spacing: -0.035em;
  font-weight: 600;
  background: linear-gradient(180deg, #fff 35%, #9db0c6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lp-h2-muted {
  color: var(--lp-muted);
  -webkit-text-fill-color: var(--lp-muted);
}

.lp-lede {
  margin: 0;
  color: var(--lp-text-3);
  font-size: 18px;
  line-height: 1.6;
  max-width: 460px;
}

.lp-lede-wide {
  max-width: none;
}

.lp-hero-side .lp-row {
  flex-wrap: nowrap;
}

@media (min-width: 1280px) {
  .lp-hero-top > .lp-hero-side {
    flex: 0 1 440px;
    margin-left: auto;
  }
}

@media (max-width: 420px) {
  .lp-hero-side .lp-row {
    flex-wrap: wrap;
  }
}

.lp-grad {
  background: linear-gradient(90deg, #fff, var(--lp-blue-2) 55%, var(--lp-green-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lp-li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 0;
  font-size: 14px;
  color: var(--lp-text-2);
}

.lp-li svg {
  flex: 0 0 auto;
  margin-top: 2px;
  color: #10b981;
}

.lp-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ---------- Buttons & chips ---------- */

.lp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 20px;
  border-radius: 9px;
  font-weight: 600;
  font-size: 14px;
  border: 1px solid transparent;
  white-space: nowrap;
  cursor: pointer;
}

.lp .lp-btn-primary {
  background: linear-gradient(180deg, #2f6feb, #1d4ed8);
  color: #fff;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.22), 0 10px 28px -8px rgb(37 99 235 / 0.75);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.lp .lp-btn-primary:hover {
  color: #fff;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.3), 0 14px 40px -8px rgb(59 130 246 / 0.95);
  transform: translateY(-1px);
}

.lp .lp-btn-ghost {
  background: transparent;
  color: var(--lp-text);
  border-color: #2e3a48;
}

.lp .lp-btn-ghost:hover {
  border-color: #4a5868;
  color: #fff;
}

.lp-btn-sm {
  height: 38px;
  padding: 0 16px;
}

.lp-btn:focus-visible,
.lp-chip:focus-visible,
.lp-seg button:focus-visible,
.lp-st-btn:focus-visible,
.lp-faq summary:focus-visible,
.lp-nav a:focus-visible {
  outline: 2px solid #3b82f6;
  outline-offset: 3px;
}

.lp-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.lp-tag {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 5px;
  font-family: var(--lp-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.lp-tag-if { background: #0c2a4d; color: var(--lp-blue-2); }
.lp-tag-and { background: #1f2937; color: #d1d5db; }
.lp-tag-then { background: #063b2c; color: var(--lp-green-2); }
.lp-tag-else { background: #3b1219; color: #fca5a5; }
.lp-tag-wait { background: #2a1f3d; color: #d8b4fe; }
.lp-tag-when { background: #1e293b; color: #c7d2fe; }
.lp-tag-amber { background: #221a07; color: var(--lp-amber); border: 1px solid #5b430f; }
.lp-tag-green { background: #06231a; color: var(--lp-green); border: 1px solid #0f5a40; }
.lp-tag-plain { background: var(--lp-surface-2); color: var(--lp-text-3); }
.lp-tag-blue { background: #0c1b3a; color: #bfdbfe; border: 1px solid #1e40af; }

.lp-chip-static {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 9px;
  border-radius: 6px;
  background: var(--lp-surface-2);
  border: 1px solid #2e3a48;
  color: var(--lp-text);
  font-size: 13px;
  font-weight: 500;
}

.lp-chip-value {
  font-family: var(--lp-mono);
  color: var(--lp-blue-2);
}

.lp-chip-action {
  color: var(--lp-green-2);
}

.lp-live {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  display: inline-block;
  animation: lp-pulse 1.6s ease-out infinite;
}

/* ---------- Header ---------- */

.lp-header {
  position: relative;
  z-index: 20;
  background: var(--lp-bg);
  border-bottom: 1px solid var(--lp-border-soft);
}

.lp-header-inner {
  max-width: 1280px;
  margin: 0 auto;
  height: 64px;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.lp .lp-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--lp-text);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.02em;
}

.lp .lp-brand:hover {
  color: #fff;
}

.lp-logo {
  display: block;
  height: 38px;
  width: auto;
}

.lp-logo-sm {
  height: 32px;
}

@media (max-width: 640px) {
  .lp-logo {
    height: 30px;
  }
}

.lp-nav .site-nav-list,
.lp-footer .site-footer-nav {
  list-style: none;
  margin: 0;
  padding: 0;
}

.lp-nav .site-nav-list {
  display: flex;
  gap: 30px;
}

.lp .lp-nav .site-nav-link {
  color: var(--lp-text-3);
  font-size: 14px;
  font-weight: 500;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.lp .lp-nav .site-nav-link:hover {
  color: #fff;
}

.lp-nav .site-submenu {
  display: none;
}

.lp-header-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.lp .lp-signin {
  color: var(--lp-text-3);
  font-size: 14px;
  font-weight: 500;
  padding: 0 10px;
}

.lp .lp-signin:hover {
  color: #fff;
}

.lp-mobile-nav {
  display: none;
  position: relative;
}

.lp-mobile-nav summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 9px;
  border: 1px solid #2e3a48;
  color: var(--lp-text);
}

.lp-mobile-nav summary::-webkit-details-marker {
  display: none;
}

.lp-mobile-nav .site-mobile-nav-list {
  position: absolute;
  right: 0;
  top: 52px;
  min-width: 220px;
  list-style: none;
  margin: 0;
  padding: 8px;
  border-radius: 12px;
  border: 1px solid var(--lp-border);
  background: var(--lp-surface);
  box-shadow: 0 24px 60px -20px rgb(0 0 0 / 0.6);
}

.lp-mobile-nav .site-nav-link {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--lp-text-2);
}

/* ---------- Ticker tape ---------- */

.lp-tape {
  overflow: hidden;
  height: 38px;
  display: flex;
  align-items: center;
  background: #090d12;
  border-bottom: 1px solid var(--lp-border-soft);
}

.lp-tape-source {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  align-self: stretch;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  background: #090d12;
  border-right: 1px solid var(--lp-border-soft);
  box-shadow: 12px 0 16px -8px #090d12;
  color: var(--lp-amber);
  font-family: var(--lp-sans);
  font-size: 13px;
  white-space: nowrap;
}

.lp-tape-source.is-live {
  color: var(--lp-green);
}

.lp-tape-track {
  display: flex;
  flex: 0 0 auto;
  animation: lp-tape 60s linear infinite;
}

.lp-tape-track-slow {
  animation-duration: 40s;
}

.lp-tick {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 0 22px;
  font-family: var(--lp-mono);
  font-size: 12.5px;
  white-space: nowrap;
  border-right: 1px solid var(--lp-border-faint);
}

.lp-tick-sym {
  color: var(--lp-text);
  font-weight: 600;
}

/* ---------- Hero ---------- */

.lp-hero {
  position: relative;
  overflow-x: clip;
}

.lp-hero > .lp-shell {
  padding: 88px 48px 56px;
  isolation: isolate;
}

.lp-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
}

.lp-glow-blue {
  width: 900px;
  height: 600px;
  right: -220px;
  top: -160px;
  background: radial-gradient(closest-side, rgb(37 99 235 / 0.32), rgb(37 99 235 / 0));
}

.lp-glow-green {
  width: 700px;
  height: 480px;
  left: -240px;
  top: 160px;
  background: radial-gradient(closest-side, rgb(16 185 129 / 0.18), rgb(16 185 129 / 0));
}

.lp-glow-low {
  width: 1000px;
  height: 500px;
  left: 10%;
  top: 640px;
  background: radial-gradient(closest-side, rgb(59 130 246 / 0.16), rgb(59 130 246 / 0));
}

.lp-hero-top {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  align-items: center;
}

.lp-hero-copy {
  flex: 0 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.lp-hero-side {
  flex: 1 1 400px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.lp-hero-h {
  margin: 0;
  font-size: 66px;
  line-height: 1.08;
  letter-spacing: -0.04em;
  font-weight: 600;
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  row-gap: 6px;
  align-items: baseline;
}

.lp-kw {
  justify-self: start;
  padding: 4px 0;
  font-family: var(--lp-mono);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-shadow: 0 0 16px currentColor;
}

.lp-kw-if { color: var(--lp-blue); }
.lp-kw-and { color: var(--lp-text-3); }
.lp-kw-then { color: var(--lp-green); }

.lp-chip {
  font: inherit;
  letter-spacing: inherit;
  color: var(--lp-blue-2);
  background: transparent;
  border: 0;
  border-bottom: 3px dashed #2b4c75;
  padding: 0 0.06em;
  margin: 0;
  cursor: pointer;
  line-height: 1.02;
  border-radius: 2px;
  text-shadow: 0 0 28px rgb(59 130 246 / 0.7);
}

.lp-chip:hover {
  background: #0f1c30;
  border-bottom-color: #3b82f6;
}

.lp-chip-green {
  color: var(--lp-green);
  border-bottom-color: #0b5e45;
  text-shadow: 0 0 28px rgb(16 185 129 / 0.75);
}

.lp-chip-green:hover {
  background: #06231a;
  border-bottom-color: #10b981;
}

.lp-chip-white {
  color: #fff;
  border-bottom-color: #4a5868;
  text-shadow: 0 0 28px rgb(255 255 255 / 0.35);
}

.lp-chip-white:hover {
  background: var(--lp-surface-2);
}

.lp-caret {
  display: inline-block;
  width: 0.06em;
  min-width: 4px;
  height: 0.9em;
  margin-left: 0.08em;
  vertical-align: -0.08em;
  background: var(--lp-green);
  animation: lp-blink 1.1s steps(1) infinite;
}

.lp-hint {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 2px;
  font-family: var(--lp-mono);
  font-size: 12.5px;
  color: var(--lp-muted);
}

.lp-side-title {
  margin: 0;
  font-size: 26px;
  line-height: 1.3;
  letter-spacing: -0.02em;
  font-weight: 600;
}

.lp-badges {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--lp-sans);
  font-size: 13px;
  color: var(--lp-muted);
}

/* ---------- Terminal panel ---------- */

.lp-term {
  position: relative;
  background: var(--lp-bg-2);
  border: 1px solid var(--lp-border);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.lp-term-hero {
  margin-top: 48px;
}

.lp-glowbox {
  box-shadow: 0 0 0 1px rgb(59 130 246 / 0.1), 0 40px 100px -30px rgb(37 99 235 / 0.45), 0 0 140px -50px rgb(16 185 129 / 0.35);
}

.lp-beam::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  /* A light that sweeps along the 1px ring; the mask cuts out the inside. */
  background: linear-gradient(110deg, rgb(59 130 246 / 0) 0%, rgb(59 130 246 / 0) 38%, #3b82f6 46%, #34d399 54%, rgb(52 211 153 / 0) 62%, rgb(52 211 153 / 0) 100%) 0 0 / 300% 100% no-repeat, rgb(59 130 246 / 0.12);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: lp-spin 7s linear infinite;
  pointer-events: none;
  z-index: 3;
}

.lp-term-head {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 14px;
  border-bottom: 1px solid #1e2833;
  background: #0f151c;
}

.lp-term-head-end {
  margin-left: auto;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.lp-replay {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--lp-mono);
  font-size: 12px;
  color: var(--lp-green-2);
}

.lp-seg {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border-radius: 8px;
  border: 1px solid var(--lp-border);
  background: var(--lp-bg);
}

.lp-seg button {
  height: 28px;
  padding: 0 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--lp-muted);
  font-family: var(--lp-mono);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.lp-seg button:hover {
  color: var(--lp-text);
}

.lp-seg button[aria-pressed="true"] {
  background: #1c2735;
  color: #fff;
}

.lp-term-body {
  display: flex;
  flex-wrap: wrap;
}

.lp-chart-col {
  flex: 999 1 600px;
  min-width: 0;
  padding: 16px 0 10px 16px;
  border-right: 1px solid #1e2833;
}

.lp-chart-head {
  display: flex;
  gap: 18px;
  align-items: baseline;
  flex-wrap: wrap;
  padding-right: 16px;
}

.lp-last {
  font-family: var(--lp-mono);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.lp-d24 {
  font-family: var(--lp-mono);
  font-size: 13px;
  font-weight: 600;
}

.lp-fired {
  margin-left: auto;
  font-family: var(--lp-mono);
  font-size: 12px;
  color: var(--lp-muted);
}

.lp-chart-row {
  display: flex;
  margin-top: 10px;
}

.lp-chart-box {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  height: 300px;
  overflow: hidden;
}

.lp-marks {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.lp-mark {
  position: absolute;
  transform: translate(-50%, -50%);
  padding: 1px 6px;
  border-radius: 4px;
  font-family: var(--lp-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.lp-mark.is-buy {
  background: rgb(16 185 129 / 0.16);
  border: 1px solid rgb(52 211 153 / 0.5);
  color: var(--lp-green);
  box-shadow: 0 0 14px rgb(52 211 153 / 0.35);
}

.lp-mark.is-win {
  background: rgb(248 250 252 / 0.1);
  border: 1px solid rgb(248 250 252 / 0.4);
  color: #f8fafc;
}

.lp-mark.is-loss {
  background: rgb(239 68 68 / 0.14);
  border: 1px solid rgb(248 113 113 / 0.5);
  color: var(--lp-red);
}

.lp-chart-box svg,
.lp-rsi-box svg,
.lp-bt-chart svg {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.lp-trig-label {
  position: absolute;
  left: 8px;
  transform: translateY(-120%);
  padding: 0 4px;
  background: var(--lp-bg-2);
  color: var(--lp-amber);
  font-family: var(--lp-mono);
  font-size: 11px;
}

.lp-yaxis {
  position: relative;
  width: 74px;
  flex: 0 0 74px;
  height: 300px;
  font-family: var(--lp-mono);
  font-size: 11px;
  color: var(--lp-muted);
}

.lp-yaxis span {
  position: absolute;
  left: 8px;
  transform: translateY(-50%);
}

.lp-yaxis .lp-last-tag {
  left: 0;
  right: 0;
  padding: 2px 6px;
  background: #2563eb;
  color: #fff;
}

.lp-rsi-row {
  display: flex;
  margin-top: 6px;
  padding-right: 74px;
}

.lp-rsi-box {
  position: relative;
  flex: 1 1 auto;
  height: 64px;
  border-top: 1px solid #1e2833;
}

.lp-rsi-label {
  position: absolute;
  left: 8px;
  top: 4px;
  font-family: var(--lp-mono);
  font-size: 11px;
  color: var(--lp-muted);
}

.lp-rsi-now {
  color: var(--lp-violet);
}

.lp-xaxis {
  position: relative;
  height: 22px;
  margin-right: 74px;
  overflow: hidden;
  font-family: var(--lp-mono);
  font-size: 11px;
  color: var(--lp-muted);
}

.lp-xtick {
  position: absolute;
  top: 6px;
  transform: translateX(-50%);
  white-space: nowrap;
}

.lp-state-col {
  flex: 1 1 300px;
  min-width: 0;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--lp-bg-3);
}

.lp-state-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--lp-mono);
  font-size: 12px;
  color: var(--lp-muted);
  letter-spacing: 0.08em;
}

.lp-cond {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 9px 12px 10px;
  border-radius: 10px;
  border: 1px solid var(--lp-border);
  background: var(--lp-surface);
}

.lp-cond.is-met {
  border-color: #065f46;
  background: #071b15;
}

.lp-cond.is-fired {
  border-color: #10b981;
  background: #06231a;
}

.lp-cond.is-holding {
  border-color: #1e40af;
  background: #0c1b3a;
}

.lp-cond p {
  margin: 0;
}

.lp-result {
  flex: 1 1 auto;
  justify-content: center;
  gap: 10px;
}

.lp-tag-paper {
  background: #1a2230;
  color: var(--lp-text-3);
}

.lp-result-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.lp-result-grid dt {
  color: var(--lp-muted);
  font-family: var(--lp-sans);
  font-size: 13px;
}

.lp-result-grid dd {
  margin: 2px 0 0;
  color: var(--lp-text);
  font-family: var(--lp-mono);
  font-size: 15px;
  font-weight: 600;
}

.lp-cond-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.lp-cond-state {
  font-family: var(--lp-mono);
  font-size: 12px;
  color: var(--lp-muted);
}

.lp-cond.is-met .lp-cond-state,
.lp-cond.is-fired .lp-cond-state {
  color: var(--lp-green-2);
}

.lp-cond.is-holding .lp-cond-state {
  color: var(--lp-blue-2);
}

.lp-cond-label {
  margin: 0;
  font-size: 14px;
}

.lp-cond-now {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--lp-mono);
  font-size: 12px;
}

.lp-cond-note {
  margin: 0;
  font-family: var(--lp-mono);
  font-size: 12px;
  color: var(--lp-muted);
}

.lp-bar {
  height: 4px;
  border-radius: 2px;
  background: var(--lp-border);
  overflow: hidden;
}

.lp-bar span {
  display: block;
  width: 4%;
  height: 4px;
  border-radius: 2px;
  background: #3b82f6;
  transition: width 0.4s ease;
}

.lp-cond.is-met .lp-bar span {
  background: #10b981;
}

.lp-log {
  border-top: 1px solid #1e2833;
  background: var(--lp-bg-3);
}

.lp-log-head {
  display: flex;
  justify-content: space-between;
  padding: 8px 14px;
  font-family: var(--lp-mono);
  font-size: 11.5px;
  color: var(--lp-muted);
  letter-spacing: 0.08em;
}

.lp-log-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.lp-log-row {
  display: grid;
  grid-template-columns: 52px 62px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 6px 14px;
  border-top: 1px solid var(--lp-border-faint);
  font-family: var(--lp-mono);
  font-size: 12px;
  white-space: nowrap;
}

.lp-log-row span:nth-child(3) {
  overflow: hidden;
  text-overflow: ellipsis;
}

.lp-tone-eval { color: var(--lp-blue-2); }
.lp-tone-order { color: #d8b4fe; }
.lp-tone-fill { color: var(--lp-green-2); }
.lp-tone-exit { color: #f8fafc; }
.lp-tone-met { color: #10b981; }

/* Chart strokes (SVG presentation via CSS, so Blade stays style-free) */
.lp-svg-grid { stroke: var(--lp-border-faint); stroke-width: 1; fill: none; }
.lp-svg-trig { stroke: #f59e0b; stroke-width: 1.2; stroke-dasharray: 6 5; fill: none; }
.lp-svg-up-wick { stroke: #10b981; stroke-width: 1; }
.lp-svg-dn-wick { stroke: #ef4444; stroke-width: 1; }
.lp-svg-up-body { fill: #10b981; }
.lp-svg-dn-body { fill: #ef4444; }
.lp-svg-pos { stroke: var(--lp-green); stroke-width: 1.2; stroke-dasharray: 3 4; fill: none; opacity: 0.8; }
.lp-svg-last { stroke: var(--lp-blue-2); stroke-width: 1; stroke-dasharray: 2 3; fill: none; }
.lp-svg-buy { fill: var(--lp-green); stroke: var(--lp-bg); stroke-width: 1; filter: drop-shadow(0 0 6px rgb(52 211 153 / 0.9)); }
.lp-svg-sell { fill: #f8fafc; stroke: var(--lp-bg); stroke-width: 1; }
.lp-svg-rsi-band { fill: rgb(59 130 246 / 0.06); }
.lp-svg-rsi-thr { stroke: #f59e0b; stroke-width: 1; stroke-dasharray: 4 4; fill: none; }
.lp-svg-rsi { stroke: #a78bfa; stroke-width: 1.5; fill: none; }
.lp-svg-eq { stroke: #3b82f6; stroke-width: 2.2; fill: none; filter: drop-shadow(0 0 6px rgb(59 130 246 / 0.8)); }
.lp-svg-eq-area { fill: rgb(59 130 246 / 0.1); }
.lp-svg-bh { stroke: var(--lp-muted); stroke-width: 1.5; stroke-dasharray: 5 4; fill: none; }

/* ---------- Proof strip ---------- */

.lp-proof > .lp-shell {
  padding: 0;
}

.lp-proof-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin: 0;
}

.lp-proof-item {
  display: flex;
  flex-direction: column-reverse;
  gap: 4px;
  padding: 26px 28px;
  margin: 0;
  border-right: 1px solid var(--lp-border-soft);
}

.lp-proof-item:last-child {
  border-right: 0;
}

.lp-proof-item dt {
  color: var(--lp-muted);
  font-size: 14px;
}

.lp-proof-item dd {
  margin: 0;
  font-family: var(--lp-mono);
  font-size: 34px;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--lp-text);
}

.lp-placeholder {
  color: var(--lp-blue);
}

.lp-ex-tape {
  height: 64px;
  border-top: 1px solid var(--lp-border-soft);
  border-bottom: 0;
  background: var(--lp-bg);
}

.lp-ex {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 34px;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--lp-text-2);
  white-space: nowrap;
}

.lp-mono-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: var(--lp-surface-2);
  border: 1px solid #2e3a48;
  font-family: var(--lp-mono);
  font-size: 10px;
  color: var(--lp-text-3);
}

/* ---------- Pipeline ---------- */

.lp-pipe {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--lp-border);
  border-radius: 14px;
  overflow: hidden;
  background: var(--lp-bg-2);
}

.lp-pipe::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: var(--lp-border-soft);
}

.lp-pipe::after {
  content: "";
  position: absolute;
  top: 0;
  width: 120px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #3b82f6, transparent);
  animation: lp-travel 3.2s linear infinite;
}

.lp-pipe-step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px 24px;
  border-right: 1px solid #1e2833;
  transition: background 0.25s ease;
}

.lp-pipe-step:last-child {
  border-right: 0;
}

.lp-pipe-step:hover {
  background: linear-gradient(180deg, rgb(37 99 235 / 0.1), rgb(37 99 235 / 0));
}

.lp-pipe-num {
  font-family: var(--lp-mono);
  font-size: 44px;
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px #4a5868;
  transition: all 0.25s ease;
}

.lp-pipe-step:hover .lp-pipe-num {
  -webkit-text-stroke-color: var(--lp-blue);
  text-shadow: 0 0 24px rgb(59 130 246 / 0.6);
}

.lp-pipe-title {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
}

.lp-pipe-text {
  margin: 0;
  font-size: 14px;
  color: var(--lp-muted);
}

.lp-pipe-status {
  margin: auto 0 0;
  font-family: var(--lp-mono);
  font-size: 12px;
}

.lp-tone-green { color: var(--lp-green-2); }
.lp-tone-blue { color: var(--lp-blue-2); }
.lp-tone-amber { color: var(--lp-amber); }
.lp-tone-red { color: #fca5a5; }
.lp-tone-violet { color: var(--lp-violet); }

/* ---------- Builder canvas ---------- */

.lp-canvas {
  padding: 28px;
  background-color: #0b1015;
  background-image: radial-gradient(#1c2632 1px, transparent 1px);
  background-size: 20px 20px;
}

.lp-node {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--lp-surface);
  border: 1px solid var(--lp-border);
  font-size: 14px;
  color: var(--lp-text-3);
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.lp-node:hover {
  transform: translateY(-2px);
  border-color: #3a4757;
}

.lp-node-narrow {
  max-width: 380px;
}

.lp-node-then {
  border-color: #065f46;
  flex: 1 1 220px;
}

.lp-node-else {
  border-color: #5b1a22;
  flex: 1 1 220px;
}

.lp-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 500px;
  padding: 10px;
  border: 1px dashed #2e3a48;
  border-radius: 12px;
  background: rgb(11 15 20 / 0.6);
}

.lp-flow {
  width: 2px;
  height: 28px;
  margin-left: 34px;
  background-image: linear-gradient(180deg, #3b82f6 50%, transparent 50%);
  background-size: 2px 10px;
  opacity: 0.8;
  animation: lp-flow 0.8s linear infinite;
}

.lp-canvas-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.lp-reads {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 18px;
  border-top: 1px solid #1e2833;
}

.lp-reads-label {
  flex: 0 0 auto;
  padding-top: 3px;
  font-family: var(--lp-sans);
  font-size: 13px;
  color: var(--lp-blue);
}

.lp-reads-text {
  margin: 0;
  font-size: 15px;
  color: var(--lp-text-2);
}

.lp-valid {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 0;
  padding: 10px 18px;
  border-top: 1px solid #1e2833;
  background: #071b15;
  color: var(--lp-green-2);
  font-family: var(--lp-mono);
  font-size: 13px;
}

.lp-term-meta {
  margin-left: auto;
  font-family: var(--lp-mono);
  font-size: 12px;
  color: var(--lp-muted);
}

/* ---------- Backtest ---------- */

.lp-bt-controls {
  flex: 1 1 280px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 24px;
  border-right: 1px solid #1e2833;
  background: #0b1015;
}

.lp-ctl {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
}

.lp-ctl-label {
  padding: 0;
  font-family: var(--lp-sans);
  font-size: 13px;
  color: var(--lp-muted);
}

.lp-st-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.lp-st-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--lp-text-3);
  font-size: 15px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
}

.lp-st-btn:hover {
  background: var(--lp-surface);
  color: var(--lp-text);
}

.lp-st-btn[aria-pressed="true"] {
  background: var(--lp-surface);
  border-color: #2e3a48;
  color: #fff;
}

.lp-st-detail {
  font-family: var(--lp-sans);
  font-size: 13px;
  color: var(--lp-muted);
}

.lp-bt-foot {
  margin: auto 0 0;
  font-family: var(--lp-mono);
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--lp-muted);
}

.lp-bt-result {
  flex: 999 1 560px;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.lp-bt-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
  padding: 22px 24px 10px;
}

.lp-bt-final {
  font-family: var(--lp-mono);
  font-size: 38px;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.lp-bt-ret {
  font-family: var(--lp-mono);
  font-size: 15px;
  font-weight: 600;
}

.lp-bt-vs {
  margin: 0;
  font-family: var(--lp-mono);
  font-size: 12.5px;
  color: var(--lp-muted);
}

.lp-bt-chart {
  position: relative;
  height: 220px;
  margin: 0 24px;
}

.lp-axis {
  display: flex;
  justify-content: space-between;
  margin: 0;
  padding: 8px 24px 0;
  list-style: none;
  font-family: var(--lp-mono);
  font-size: 11px;
  color: var(--lp-muted);
}

.lp-legend {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin: 0;
  padding: 10px 24px 16px;
  list-style: none;
  font-family: var(--lp-mono);
  font-size: 12px;
  color: var(--lp-muted);
}

.lp-legend li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.lp-swatch {
  display: inline-block;
  width: 14px;
  height: 2px;
}

.lp-swatch-blue { background: #3b82f6; }
.lp-swatch-white { background: var(--lp-text); }
.lp-swatch-dash { height: 0; border-top: 2px dashed var(--lp-muted); }
.lp-swatch-dot { width: 8px; height: 8px; border-radius: 50%; }
.lp-swatch-green { background: #10b981; }
.lp-swatch-red { background: var(--lp-red); }

.lp-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  margin: auto 0 0;
  border-top: 1px solid #1e2833;
}

.lp-stats div {
  display: flex;
  flex-direction: column-reverse;
  gap: 2px;
  padding: 14px 18px;
  border-right: 1px solid #1e2833;
}

.lp-stats div:last-child {
  border-right: 0;
}

.lp-stats dt {
  font-family: var(--lp-sans);
  font-size: 13px;
  color: var(--lp-muted);
}

.lp-stats dd {
  margin: 0;
  font-family: var(--lp-mono);
  font-size: 17px;
}

.lp-disclaimer {
  margin: 0;
  padding: 12px 24px;
  border-top: 1px solid #1e2833;
  background: var(--lp-bg-3);
  font-size: 12px;
  color: var(--lp-muted);
}

/* ---------- Strategy explorer ---------- */

.lp-explorer {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.lp-explorer-list {
  flex: 1 1 260px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.lp-lvl {
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid;
  font-family: var(--lp-mono);
  font-size: 11px;
  font-weight: 600;
}

.lp-lvl-beginner { color: var(--lp-green-2); border-color: #065f46; background: #04241b; }
.lp-lvl-intermediate { color: var(--lp-amber); border-color: #78530f; background: #2a1e06; }
.lp-lvl-advanced { color: #fca5a5; border-color: #7f1d1d; background: #2a0e10; }

.lp-st-panel {
  display: flex;
  flex-direction: column;
}

.lp-st-panel[hidden] {
  display: none;
}

.lp-st-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
  padding: 22px 24px 8px;
}

.lp-st-name {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.lp-st-desc {
  margin: 6px 0 0;
  font-size: 15px;
  color: var(--lp-muted);
  max-width: 520px;
}

.lp-st-meta {
  margin: 0;
  text-align: right;
  font-family: var(--lp-mono);
  font-size: 12px;
  line-height: 1.7;
  color: var(--lp-muted);
}

.lp-illo {
  display: block;
  width: 100%;
  height: auto;
  padding: 8px 24px 0;
}

.lp-illo-grid-lines { stroke: var(--lp-border-faint); stroke-width: 1; fill: none; }
.lp-illo-box { fill: rgb(245 158 11 / 0.07); stroke: rgb(245 158 11 / 0.6); stroke-dasharray: 4 4; }
.lp-illo-levels { stroke: #3a4757; stroke-dasharray: 3 5; fill: none; }
.lp-illo-sep { stroke: #1e2833; fill: none; }
.lp-illo-band { fill: rgb(167 139 250 / 0.08); }
.lp-illo-osc { stroke: #a78bfa; stroke-width: 1.6; fill: none; }
.lp-illo-aux2 { stroke: var(--lp-muted); stroke-width: 1.5; stroke-dasharray: 5 4; fill: none; }
.lp-illo-aux1 { stroke: #3b82f6; stroke-width: 2; fill: none; }
.lp-illo-price { stroke: var(--lp-text); stroke-width: 1.8; fill: none; stroke-linejoin: round; }
.lp-illo-buys { fill: #10b981; stroke: var(--lp-bg-2); stroke-width: 2; }
.lp-illo-sells { fill: var(--lp-red); stroke: var(--lp-bg-2); stroke-width: 2; }

.lp-illo-legend {
  padding: 4px 24px 0;
}

.lp-illo-note {
  margin-left: auto;
}

.lp-trio {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  margin: 18px 0 0;
  border-top: 1px solid #1e2833;
}

.lp-trio div {
  padding: 16px 24px;
  border-right: 1px solid #1e2833;
}

.lp-trio div:last-child {
  border-right: 0;
}

.lp-trio dt {
  font-family: var(--lp-sans);
  font-size: 13px;
}

.lp-trio dd {
  margin: 4px 0 0;
  font-size: 14px;
  color: var(--lp-text-2);
}

/* ---------- Risk ---------- */

.lp-risk-panel {
  display: flex;
  flex-wrap: wrap;
}

.lp-risk-inputs {
  flex: 1 1 300px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 24px;
}

.lp-range {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.lp-kv {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.lp-kv label {
  font-size: 14px;
}

.lp-range input[type="range"] {
  width: 100%;
  height: 28px;
  margin: 0;
  accent-color: #3b82f6;
  cursor: pointer;
}

.lp-risk-summary {
  flex: 1 1 280px;
  display: flex;
  gap: 20px;
  padding: 24px;
  border-left: 1px solid #1e2833;
  background: #0b1015;
}

.lp-ladder {
  flex: 0 0 64px;
  width: 64px;
  height: 260px;
  display: flex;
  flex-direction: column;
}

.lp-ladder-gain {
  height: 50%;
  border: 1px solid #065f46;
  border-bottom: 0;
  border-radius: 6px 6px 0 0;
  background: rgb(16 185 129 / 0.16);
  transition: height 0.2s ease;
}

.lp-ladder-entry {
  height: 2px;
  background: var(--lp-text);
}

.lp-ladder-loss {
  height: 50%;
  border: 1px solid #7f1d1d;
  border-top: 0;
  border-radius: 0 0 6px 6px;
  background: rgb(239 68 68 / 0.16);
  transition: height 0.2s ease;
}

.lp-risk-figures {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
}

.lp-risk-figures dt {
  font-size: 12px;
  color: var(--lp-muted);
}

.lp-risk-figures dd {
  margin: 0;
  font-family: var(--lp-mono);
}

.lp-risk-big {
  font-size: 24px;
}

.lp-risk-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.lp-risk-pair dd {
  font-size: 16px;
}

.lp-risk-halts {
  margin: 0;
  font-size: 13px;
  color: var(--lp-muted);
}

.lp-warn {
  margin: auto 0 0;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--lp-border);
  background: var(--lp-surface);
  color: var(--lp-text-3);
  font-family: var(--lp-sans);
  font-size: 13px;
}

.lp-warn.is-amber {
  border-color: #5b430f;
  background: #221a07;
  color: var(--lp-amber);
}

.lp-warn.is-red {
  border-color: #7f1d1d;
  background: #2a0e10;
  color: #fca5a5;
}

/* ---------- Cards (personas, pricing) ---------- */

.lp-card {
  background: var(--lp-surface);
  border: 1px solid var(--lp-border);
  border-radius: 12px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.lp-card:hover,
.lp-term:hover {
  border-color: #34465a;
  box-shadow: 0 0 0 1px rgb(59 130 246 / 0.12), 0 24px 60px -28px rgb(59 130 246 / 0.45);
}

.lp-personas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 12px;
}

.lp-persona {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 26px;
  border-top: 3px solid;
}

.lp-persona-green { border-top-color: #10b981; background: radial-gradient(120% 70% at 50% 0%, rgb(16 185 129 / 0.16), rgb(16 185 129 / 0) 60%), var(--lp-surface); }
.lp-persona-blue { border-top-color: #3b82f6; background: radial-gradient(120% 70% at 50% 0%, rgb(59 130 246 / 0.18), rgb(59 130 246 / 0) 60%), var(--lp-surface); }
.lp-persona-violet { border-top-color: #a78bfa; background: radial-gradient(120% 70% at 50% 0%, rgb(167 139 250 / 0.18), rgb(167 139 250 / 0) 60%), var(--lp-surface); }
.lp-persona-amber { border-top-color: #f59e0b; background: radial-gradient(120% 70% at 50% 0%, rgb(245 158 11 / 0.16), rgb(245 158 11 / 0) 60%), var(--lp-surface); }
.lp-persona-red { border-top-color: #ef4444; background: radial-gradient(120% 70% at 50% 0%, rgb(239 68 68 / 0.16), rgb(239 68 68 / 0) 60%), var(--lp-surface); }

.lp-persona-tag {
  margin: 0;
  font-family: var(--lp-sans);
  font-size: 13px;
}

.lp-persona-title {
  margin: 0;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.lp-persona-text {
  margin: 0;
  font-size: 14px;
  color: var(--lp-muted);
}

.lp-persona-sample {
  margin: auto 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--lp-border);
  background: #0b1015;
  font-family: var(--lp-mono);
  font-size: 12px;
  color: var(--lp-text-2);
}

/* ---------- Security ---------- */

.lp-perm-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.lp-perm {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-top: 1px solid #1e2833;
  font-size: 14px;
}

.lp-perm:first-child {
  border-top: 0;
}

.lp-perm-label {
  flex: 1 1 auto;
}

.lp-perm-note {
  font-family: var(--lp-sans);
  font-size: 13px;
  color: var(--lp-muted);
}

.lp-perm-ok svg { color: #10b981; }
.lp-perm-off svg { color: var(--lp-muted); }
.lp-perm-fail { background: #1a0b0d; }
.lp-perm-fail svg,
.lp-perm-fail .lp-perm-label,
.lp-perm-fail .lp-perm-note { color: #fca5a5; }

.lp-perm-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 16px;
  border-top: 1px solid #1e2833;
  font-size: 13px;
  color: var(--lp-muted);
}

.lp-perm-foot .lp-btn {
  height: 36px;
  font-size: 13px;
}

/* ---------- Pricing ---------- */

.lp-plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--lp-border);
  border-radius: 14px;
  overflow: hidden;
  background: var(--lp-bg-2);
}

.lp-plan {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 28px 24px;
  border-right: 1px solid #1e2833;
}

.lp-plan:last-child {
  border-right: 0;
}

.lp-plan-rec {
  background: radial-gradient(130% 70% at 50% 0%, rgb(37 99 235 / 0.38), rgb(37 99 235 / 0) 62%), #0e1626;
}

.lp-plan-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.lp-plan-name {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
}

.lp-plan-tagline {
  margin: 0;
  font-size: 13px;
  color: var(--lp-muted);
}

.lp-price {
  font-size: 44px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.lp-price-note {
  margin: 2px 0 0;
  font-family: var(--lp-sans);
  font-size: 13px;
  color: var(--lp-muted);
}

.lp-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  color: var(--lp-text-2);
}

.lp-features li {
  display: flex;
  gap: 8px;
  align-items: center;
}

.lp-features li::before {
  content: "";
  flex: 0 0 auto;
  width: 5px;
  height: 5px;
  background: #3b82f6;
}

/* ---------- FAQ ---------- */

.lp-faq {
  flex: 999 1 560px;
  min-width: 0;
  border-top: 1px solid var(--lp-border);
}

.lp-faq details {
  border-bottom: 1px solid var(--lp-border);
}

.lp-faq summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 22px 4px;
  color: var(--lp-text);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
  cursor: pointer;
}

.lp-faq summary::-webkit-details-marker {
  display: none;
}

.lp-faq summary::after {
  content: "+";
  flex: 0 0 auto;
  color: var(--lp-blue);
  font-family: var(--lp-mono);
  font-size: 20px;
}

.lp-faq details[open] summary::after {
  content: "−";
}

.lp-faq p {
  margin: 0;
  padding: 0 4px 24px;
  font-size: 15px;
  color: var(--lp-muted);
  max-width: 680px;
}

/* ---------- CTA ---------- */

.lp-cta > .lp-shell {
  padding-top: 88px;
  padding-bottom: 72px;
}

.lp-cta-panel {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  gap: 48px;
  align-items: center;
  padding: 64px 56px;
  border-radius: 22px;
  border: 1px solid #1e3a5f;
  background:
    radial-gradient(80% 130% at 88% 0%, rgb(37 99 235 / 0.55), rgb(37 99 235 / 0) 60%),
    radial-gradient(60% 100% at 0% 100%, rgb(16 185 129 / 0.28), rgb(16 185 129 / 0) 60%),
    #0a1220;
  box-shadow: 0 50px 120px -40px rgb(37 99 235 / 0.5);
}

.lp-cta-panel > * {
  position: relative;
  z-index: 1;
}

.lp-cta-main {
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: flex-start;
  min-width: 0;
}

.lp-cta-h {
  font-size: 52px;
}

.lp-cta-actions,
.lp-cta-badges {
  padding-left: 96px;
}

.lp-cta-badges {
  margin-top: -12px;
}

.lp-cta-steps {
  padding: 22px 22px 10px;
  border-radius: 16px;
  border: 1px solid rgb(147 197 253 / 0.18);
  background: rgb(8 13 22 / 0.72);
  backdrop-filter: blur(6px);
  box-shadow: 0 30px 60px -30px rgb(0 0 0 / 0.8);
}

.lp-cta-steps-title {
  margin: 0 0 6px;
  color: var(--lp-muted);
  font-family: var(--lp-sans);
  font-size: 13px;
}

.lp-cta-steps ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.lp-cta-steps li {
  position: relative;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 0;
  border-top: 1px solid rgb(147 197 253 / 0.1);
}

.lp-cta-steps li:first-child {
  border-top: 0;
}

.lp-cta-step-num {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid rgb(96 165 250 / 0.35);
  background: rgb(37 99 235 / 0.14);
  color: var(--lp-blue);
  font-family: var(--lp-mono);
  font-size: 12px;
  font-weight: 600;
}

.lp-cta-steps li:last-child .lp-cta-step-num {
  border-color: rgb(52 211 153 / 0.4);
  background: rgb(16 185 129 / 0.14);
  color: var(--lp-green);
}

.lp-cta-step-body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.lp-cta-step-title {
  color: var(--lp-text);
  font-size: 15px;
  font-weight: 600;
}

.lp-cta-step-text {
  color: var(--lp-text-3);
  font-size: 13px;
  line-height: 1.5;
}

.lp-cta-step-tag {
  flex: 0 0 auto;
  margin-top: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--lp-border);
  color: var(--lp-muted);
  font-family: var(--lp-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.lp-cta-step-tag.is-final {
  border-color: rgb(52 211 153 / 0.4);
  color: var(--lp-green);
}

@media (max-width: 1100px) {
  .lp-cta-panel {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- Footer ---------- */

.lp-footer {
  border-top: 1px solid var(--lp-border-soft);
  background: #080b0f;
}

.lp-footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 56px 48px 40px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.lp-footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
}

.lp-footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  max-width: 340px;
}

.lp-footer-brand p {
  line-height: 1.6;
}

.lp-footer-cta {
  margin-top: 6px;
}

.lp-footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
  justify-content: space-between;
  margin-top: -16px;
  padding-top: 20px;
  border-top: 1px solid var(--lp-border-soft);
  font-size: 13px;
  color: var(--lp-muted);
}

.lp-footer-bottom p {
  margin: 0;
}

.lp-footer-meta {
  font-family: var(--lp-mono);
  font-size: 11px;
}

.lp .lp-footer-top-link {
  color: var(--lp-text-3);
  font-size: 13px;
}

.lp .lp-footer-top-link:hover {
  color: var(--lp-text);
}

.lp-footer-brand p {
  margin: 0;
  font-size: 14px;
  color: var(--lp-muted);
}

.lp-status {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-family: var(--lp-mono);
  font-size: 12px;
  color: var(--lp-muted);
}

.lp-footer-cols {
  display: flex;
  gap: 56px;
  flex-wrap: wrap;
}

.lp-footer-col h2 {
  margin: 0 0 10px;
  font-family: var(--lp-sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--lp-muted);
}

.lp-footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lp .lp-footer-col a {
  color: var(--lp-text-3);
  font-size: 14px;
}

.lp .lp-footer-col a:hover {
  color: #fff;
}

.lp-disclosure {
  margin: 0;
  padding-top: 24px;
  border-top: 1px solid var(--lp-border-soft);
  font-size: 12px;
  line-height: 1.65;
  color: var(--lp-muted);
}

/* ---------- Generic shared sections (rich content) ---------- */

.lp .section {
  border-top: 1px solid var(--lp-border-soft);
}

.lp .section .shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 72px 48px;
}

.lp .section .title {
  margin: 0 0 16px;
  font-size: 40px;
  letter-spacing: -0.03em;
}

.lp .section-body,
.lp .rich-content {
  color: var(--lp-text-3);
}

/* ---------- Motion ---------- */

@keyframes lp-tape {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes lp-blink {
  50% { opacity: 0; }
}

@keyframes lp-pulse {
  0% { box-shadow: 0 0 0 0 rgb(16 185 129 / 0.55); }
  100% { box-shadow: 0 0 0 9px rgb(16 185 129 / 0); }
}

@keyframes lp-flow {
  to { background-position: 0 10px; }
}

@keyframes lp-travel {
  from { left: -120px; }
  to { left: 100%; }
}

@keyframes lp-spin {
  from { background-position: 100% 0, 0 0; }
  to { background-position: 0 0, 0 0; }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .lp-tape-track,
  .lp-caret,
  .lp-live,
  .lp-flow,
  .lp-pipe::after,
  .lp-beam::before {
    animation: none;
  }
}

/* ---------- Section rhythm ---------- */

#main > .lp-sec:nth-child(even) {
  background: var(--lp-bg-2);
}

/* ---------- Exchanges row (under the hero) ---------- */

.lp-exchanges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px 40px;
  margin-top: 56px;
}

.lp-exchanges-label {
  margin: 0;
  color: var(--lp-muted);
  font-size: 14px;
}

.lp-exchanges-list {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 40px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lp-exchanges-list li {
  color: var(--lp-text-2);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* ---------- Feature grid ---------- */

.lp-fgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lp-fcard {
  --tone: 96 165 250;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px;
  border: 1px solid var(--lp-border-soft);
  border-radius: 16px;
  background: var(--lp-surface);
  transition: border-color 0.2s ease;
}

.lp-fcard:hover {
  border-color: var(--lp-border);
}

.lp-fcard-backtest { --tone: 52 211 153; }
.lp-fcard-paper { --tone: 252 211 77; }
.lp-fcard-live { --tone: 248 113 113; }
.lp-fcard-risk { --tone: 196 181 253; }
.lp-fcard-alerts { --tone: 103 232 249; }

.lp-fcard-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 6px;
  border-radius: 12px;
  background: rgb(var(--tone) / 0.12);
  color: rgb(var(--tone));
}

.lp-fcard-title {
  margin: 0;
  color: var(--lp-text);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.lp-fcard-text {
  margin: 0;
  color: var(--lp-text-3);
  font-size: 15px;
  line-height: 1.6;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .lp-sec > .lp-shell,
  .lp-hero > .lp-shell {
    padding: 64px 16px 48px;
  }

  .lp-header-inner,
  .lp-footer-inner {
    padding-left: 16px;
    padding-right: 16px;
  }

  .lp-nav,
  .lp-signin {
    display: none;
  }

  .lp-mobile-nav {
    display: block;
  }

  .lp-h2 {
    font-size: 34px;
  }

  .lp-hero-h {
    font-size: 38px;
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .lp-kw {
    font-size: 13px;
  }

  .lp-pipe {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }

  .lp-pipe-step {
    border-right: 0;
    border-bottom: 1px solid #1e2833;
  }

  .lp-log-row {
    grid-template-columns: 44px 54px minmax(0, 1fr);
  }

  .lp-log-row span:nth-child(4) {
    display: none;
  }

  .lp-cta-panel {
    padding: 40px 20px;
  }

  .lp-cta-h {
    font-size: 40px;
  }

  .lp-cta-actions,
  .lp-cta-badges {
    padding-left: 0;
  }

  .lp-risk-summary,
  .lp-bt-controls {
    border-left: 0;
    border-right: 0;
  }
}

/* Backtest strategy buttons wrap their detail line on narrow columns. */
.lp-bt-controls .lp-st-btn {
  flex-wrap: wrap;
  row-gap: 2px;
  padding-top: 8px;
  padding-bottom: 8px;
}

/* Legal pages (cr_legal) */
.lp-legal-head {
  max-width: 760px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--lp-border-soft);
}

.lp-legal-updated {
  margin: 12px 0 0;
  color: var(--lp-muted);
  font-family: var(--lp-sans);
  font-size: 13px;
}

.lp-legal-intro {
  margin: 18px 0 0;
  color: var(--lp-text-2);
  font-size: 17px;
  line-height: 1.65;
}

.lp-legal-clauses {
  max-width: 760px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: lp-clause;
}

.lp-legal-clauses > li {
  padding: 28px 0;
  border-bottom: 1px solid var(--lp-border-faint);
  counter-increment: lp-clause;
}

.lp-legal-clauses h2 {
  display: flex;
  gap: 14px;
  align-items: baseline;
  margin: 0 0 10px;
  color: var(--lp-text);
  font-size: 19px;
  font-weight: 600;
}

.lp-legal-clauses h2::before {
  content: counter(lp-clause, decimal-leading-zero);
  color: var(--lp-blue);
  font-family: var(--lp-mono);
  font-size: 13px;
}

.lp-legal-clauses p {
  margin: 10px 0 0;
  color: var(--lp-text-3);
  line-height: 1.7;
}
