/* ============================================================
   IndicatorSmith — site.css
   Marketing design system for IndicatorSmith (Sept 2026):
   near-black canvas, monochrome chrome, white pill buttons, mono
   uppercase kickers, 12px cards with hairline borders and deep
   shadows, bordered split feature blocks, 1240px container.
   Every selector is prefixed `lx-` so this file can coexist with
   demo.css (the full-screen app keeps its own stylesheet).
   ============================================================ */

/* ---------- tokens ---------- */
:root {
  --bg: #0a0a0a; --bg-0: #000; --bg-2: #0d0d0d; --surface: #0a0a0a; --surface-2: #101010; --surface-3: #161616;
  --line: rgba(255,255,255,.10); --line-soft: rgba(255,255,255,.06); --line-strong: rgba(255,255,255,.16);
  --text: #ededed; --text-2: #a8a8a8; --muted: #9e9e9e; --dim: #4a4a4a;
  --accent: #5b9cf6; --accent-2: #8ab4ff; --up: #22c55e; --down: #f23645; --down-ink: #ff7b7b; --warn: #f59e0b; --info: #38bdf8; --violet: #a78bfa;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --max: 1240px; --nav-h: 65px; --r: 12px; --r-sm: 8px; --pill: 9999px;
  --shadow-card: 0 16px 48px -12px rgba(0,0,0,.8); --shadow-deep: 0 40px 120px -40px rgba(0,0,0,.9);
  /* core.css component overrides (modal / toast / lock pill) */
  --core-modal-bg: #0f0f0f; --core-modal-fg: #ededed; --core-modal-border: rgba(255,255,255,.12); --core-accent: #ffffff;
  --core-up: #22c55e; --core-down: #f23645; --core-warn: #f59e0b; --core-radius: 14px; --core-font: Inter, system-ui, sans-serif;
}
.modal .btn.primary { color: #000; }
.modal .btn.danger { background: var(--down); border-color: var(--down); color: #fff; }
.modal .btn, .toast, .demo-pill a { border-radius: var(--pill); }
.toast { border-radius: 12px; }

/* ---------- base (marketing pages only) ---------- */
html { scroll-behavior: smooth; }
body:not([data-fullscreen]) { background: var(--bg); color: var(--text-2); font: 16px/1.5 var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
body:not([data-fullscreen]) a { color: inherit; text-decoration: none; }
body:not([data-fullscreen]) h1, body:not([data-fullscreen]) h2, body:not([data-fullscreen]) h3, body:not([data-fullscreen]) h4 { color: var(--text); font-weight: 500; letter-spacing: -.025em; line-height: 1.08; margin: 0 0 .6rem; }
body:not([data-fullscreen]) h1 { font-size: clamp(2.6rem, 6.2vw, 4.6rem); letter-spacing: -.035em; line-height: 1.02; }
body:not([data-fullscreen]) h2 { font-size: clamp(2rem, 3.6vw, 3.25rem); }
body:not([data-fullscreen]) h3 { font-size: 1.5rem; letter-spacing: -.02em; }
body:not([data-fullscreen]) h4 { font-size: 1.05rem; letter-spacing: -.01em; }
body:not([data-fullscreen]) p { margin: 0 0 1rem; }
body:not([data-fullscreen]) code, body:not([data-fullscreen]) kbd { font-family: var(--font-mono); font-size: .85em; background: rgba(255,255,255,.06); border: 1px solid var(--line-soft); border-radius: 6px; padding: .08em .4em; color: var(--text); }
body:not([data-fullscreen]) kbd { border-bottom-width: 2px; }
body:not([data-fullscreen]) pre { margin: 0; }
body:not([data-fullscreen]) pre code { background: none; border: 0; padding: 0; font-size: 13px; line-height: 1.6; }
body:not([data-fullscreen]) ::selection { background: rgba(255,255,255,.2); }
body:not([data-fullscreen]) [hidden] { display: none !important; }
body:not([data-fullscreen]) input, body:not([data-fullscreen]) select, body:not([data-fullscreen]) textarea { color: var(--text); }
body:not([data-fullscreen]) hr { border: 0; border-top: 1px solid var(--line-soft); margin: 1.5rem 0; }
body:not([data-fullscreen]) strong, body:not([data-fullscreen]) b { color: var(--text); font-weight: 600; }
body:not([data-fullscreen]) ul, body:not([data-fullscreen]) ol { padding-left: 1.2rem; }
body:not([data-fullscreen]) table { border-collapse: collapse; }
body:not([data-fullscreen]) .chart-tip { font-family: var(--font-mono); background: rgba(10,10,10,.92); }

/* ---------- layout ---------- */
.lx-wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.lx-wrap.narrow { max-width: 880px; }
.lx-wrap.tight { max-width: 720px; }
.lx-sec { padding: 112px 0; }
.lx-sec.tight { padding: 72px 0; }
.lx-sec.flush { padding: 0; }
.lx-sec.bordered { border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.lx-sec.top-line { border-top: 1px solid var(--line-soft); }
.lx-sec.black { background: var(--bg-0); }
.lx-head { text-align: center; max-width: 780px; margin: 0 auto 56px; }
.lx-head.left { text-align: left; margin-left: 0; }
.lx-head p { font-size: 1.2rem; line-height: 1.45; color: var(--text-2); }
.lx-head .lx-btn { margin-top: 12px; }
.lx-kicker { display: inline-block; font: 500 11px/1.5 var(--font-mono); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.lx-kicker.accent { color: var(--accent-2); }
.lx-lead { font-size: 1.25rem; line-height: 1.45; color: var(--text-2); }
.lx-sub { font-size: 1rem; color: var(--muted); line-height: 1.6; }
.lx-small { font-size: .85rem; } .lx-muted { color: var(--muted); } .lx-dim { color: var(--dim); }
/* --down is the fill colour for a danger button; as ink on the page ground it
   measured 5.08 : 1 on a figure, so text gets its own readable red (7.89 : 1). */
.lx-up { color: var(--up) !important; } .lx-down { color: var(--down-ink) !important; } .lx-warn { color: var(--warn) !important; } .lx-acc { color: var(--accent-2) !important; }
.lx-mono { font-family: var(--font-mono); font-size: .9em; }
.lx-mt-1 { margin-top: 8px; } .lx-mt-2 { margin-top: 16px; } .lx-mt-3 { margin-top: 32px; } .lx-mt-4 { margin-top: 56px; }
.lx-mb-0 { margin-bottom: 0 !important; } .lx-mb-2 { margin-bottom: 16px; } .lx-mb-3 { margin-bottom: 32px; }
.lx-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.lx-between { justify-content: space-between; }
.lx-center { text-align: center; }
.lx-grow { flex: 1; }
.lx-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.lx-actions.center { justify-content: center; }
.lx-grad { background: linear-gradient(90deg, #fff, #9a9a9a); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- buttons ---------- */
.lx-btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; padding: 10px 24px; border-radius: var(--pill); font: 500 14px/1.2 var(--font); color: var(--text); background: var(--bg); border: 1px solid var(--line-strong); cursor: pointer; text-decoration: none; white-space: nowrap; transition: background .16s, border-color .16s, transform .16s, color .16s; }
.lx-btn:hover { background: #161616; border-color: rgba(255,255,255,.28); }
.lx-btn:active { transform: scale(.98); }
.lx-btn.pri { background: #fff; color: #000; border-color: #fff; }
.lx-btn.pri:hover { background: #e6e6e6; border-color: #e6e6e6; }
.lx-btn.ghost { background: transparent; border-color: transparent; color: var(--text-2); }
.lx-btn.ghost:hover { color: var(--text); background: rgba(255,255,255,.06); }
.lx-btn.lg { padding: 13px 28px; font-size: 15px; }
.lx-btn.sm { padding: 6px 14px; font-size: 13px; }
.lx-btn.block { width: 100%; }
.lx-btn:disabled { opacity: .45; cursor: not-allowed; }
.lx-btn .ar { display: inline-block; transition: transform .16s; }
.lx-btn:hover .ar { transform: translateX(3px); }
.lx-link { color: var(--text); font-weight: 500; font-size: 14px; display: inline-flex; gap: .35rem; align-items: center; }
.lx-link:hover .ar { transform: translateX(3px); }
.lx-link .ar { transition: transform .16s; }

/* ---------- navigation ---------- */
.lx-nav { position: sticky; top: 0; z-index: 500; height: var(--nav-h); background: rgba(0,0,0,.8); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.lx-nav-in { max-width: var(--max); margin: 0 auto; padding: 0 24px; height: 100%; display: flex; align-items: center; gap: 28px; }
.lx-logo { display: inline-flex; align-items: center; gap: 9px; color: var(--text); font: 600 17px/1 var(--font); letter-spacing: -.02em; }
.lx-logo svg { width: 24px; height: 24px; display: block; }
.lx-links { display: flex; align-items: center; gap: 4px; }
.lx-links a { padding: 8px 12px; border-radius: 8px; font: 500 14px/1 var(--font); color: var(--text-2); transition: color .16s, background .16s; }
.lx-links a:hover { color: var(--text); background: rgba(255,255,255,.06); }
.lx-links a.active { color: var(--text); }
.lx-nav-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.lx-nav-right .lx-login { font: 500 14px/1 var(--font); color: var(--text-2); padding: 8px 12px; border-radius: 8px; }
.lx-nav-right .lx-login:hover { color: var(--text); }
.lx-nav .lx-btn { padding: 8px 16px; }
.lx-burger { display: none; width: 38px; height: 38px; border-radius: 8px; border: 0; background: transparent; color: var(--text); cursor: pointer; position: relative; }
.lx-burger span, .lx-burger::before, .lx-burger::after { content: ""; position: absolute; left: 10px; right: 10px; height: 1.5px; background: currentColor; transition: transform .2s, opacity .2s; }
.lx-burger::before { top: 13px; } .lx-burger span { top: 18.5px; } .lx-burger::after { top: 24px; }
.lx-burger[aria-expanded="true"]::before { transform: translateY(5.5px) rotate(45deg); }
.lx-burger[aria-expanded="true"]::after { transform: translateY(-5.5px) rotate(-45deg); }
.lx-burger[aria-expanded="true"] span { opacity: 0; }
.lx-menu { display: none; position: fixed; inset: var(--nav-h) 0 auto 0; z-index: 490; background: rgba(0,0,0,.94); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); padding: 12px 24px 24px; }
.lx-menu.open { display: block; }
.lx-menu a { display: block; padding: 14px 4px; font: 500 17px/1.2 var(--font); color: var(--text); border-bottom: 1px solid var(--line-soft); }
.lx-menu .lx-menu-cta { display: flex; gap: 10px; padding-top: 18px; }
.lx-menu .lx-menu-cta a { border-bottom: 0; padding: 12px 20px; font-size: 14px; flex: 1; text-align: center; }

/* ---------- hero ---------- */
.lx-hero { position: relative; overflow: hidden; background: var(--bg-0); padding: 96px 0 0; text-align: center; border-bottom: 1px solid var(--line-soft); }
.lx-hero::before { content: ""; position: absolute; inset: 0; background:
  radial-gradient(60% 55% at 50% 100%, rgba(120,110,95,.28), transparent 70%),
  radial-gradient(35% 40% at 20% 85%, rgba(91,156,246,.12), transparent 70%),
  radial-gradient(35% 40% at 80% 85%, rgba(167,139,250,.10), transparent 70%); pointer-events: none; }
.lx-hero::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.09) 1px, transparent 1px); background-size: 3px 3px; opacity: .25; mask-image: radial-gradient(70% 70% at 50% 90%, #000, transparent); pointer-events: none; }
.lx-hero-in { position: relative; z-index: 1; max-width: 920px; margin: 0 auto; padding: 0 24px; }
.lx-hero h1 { font-size: clamp(2.8rem, 8vw, 6.4rem); margin: 0 0 28px; color: var(--text); }
.lx-hero .lx-lead { max-width: 640px; margin: 0 auto 32px; }
.lx-hero .lx-actions { justify-content: center; margin-bottom: 64px; }
.lx-hero.compact { padding: 80px 0 64px; }
.lx-hero.compact h1 { font-size: clamp(2.4rem, 5.6vw, 4.2rem); }
.lx-hero.compact .lx-actions { margin-bottom: 0; }
.lx-hero.left { text-align: left; }
.lx-hero.left .lx-hero-in { max-width: var(--max); }
.lx-hero.left .lx-lead { margin: 0 0 32px; }
.lx-hero.left .lx-actions { justify-content: flex-start; }
.lx-stage { position: relative; z-index: 1; max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.lx-stage-side { position: absolute; top: 40px; width: 26%; opacity: .45; filter: blur(1.5px) saturate(.6); pointer-events: none; }
.lx-stage-side.l { left: -6%; transform: perspective(1200px) rotateY(18deg) scale(.92); }
.lx-stage-side.r { right: -6%; transform: perspective(1200px) rotateY(-18deg) scale(.92); }
.lx-stage-side .lx-device { box-shadow: none; }

/* ---------- device / app card ---------- */
.lx-device { position: relative; background: #050505; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-deep); overflow: hidden; }
.lx-device-bar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line-soft); background: #0a0a0a; font: 500 12px/1 var(--font); color: var(--text-2); flex-wrap: wrap; }
.lx-device-bar .sym { color: var(--text); font-weight: 600; }
.lx-device-bar .tf { display: inline-flex; gap: 2px; }
.lx-device-bar .tf span { padding: 4px 7px; border-radius: 6px; color: var(--muted); }
.lx-device-bar .tf span.on { background: rgba(255,255,255,.1); color: var(--text); }
.lx-device-bar .ind { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 6px; background: rgba(255,255,255,.05); border: 1px solid var(--line-soft); color: var(--text-2); }
.lx-device-bar .ind i { width: 8px; height: 8px; border-radius: 2px; display: inline-block; }
.lx-device-bar .sp { flex: 1; }
.lx-device-bar .live { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-family: var(--font-mono); font-size: 11px; }
.lx-device-bar .live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--up); box-shadow: 0 0 0 3px rgba(34,197,94,.18); }
.lx-device-body { position: relative; }
.lx-device-body .chart { height: 420px; }
.lx-device-body .chart.lg { height: 460px; }
.lx-device-body .chart.sm { height: 160px; }
.lx-device-foot { display: flex; gap: 18px; padding: 8px 14px; border-top: 1px solid var(--line-soft); background: #0a0a0a; font: 400 11px/1 var(--font-mono); color: var(--muted); flex-wrap: wrap; }
.lx-device-foot b { color: var(--text-2); font-weight: 500; }
.lx-device .dots { display: inline-flex; gap: 6px; margin-right: 4px; }
.lx-device .dots i { width: 9px; height: 9px; border-radius: 50%; background: #2a2a2a; }
.lx-device .lx-grid2 { display: grid; grid-template-columns: 1fr 1fr; }
.lx-device .lx-grid2 > * { border-right: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.lx-device .lx-grid2 > *:nth-child(2n) { border-right: 0; }
.lx-device .lx-grid2 > *:nth-last-child(-n+2) { border-bottom: 0; }
.lx-pane-h { display: flex; justify-content: space-between; padding: 6px 10px; font: 500 11px/1 var(--font-mono); color: var(--muted); }
.lx-pane-h b { color: var(--text-2); font-weight: 500; }

/* ---------- generic card ---------- */
.lx-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-card); }
.lx-card.pad { padding: 24px; }
.lx-card.glass { background: rgba(20,20,20,.85); backdrop-filter: blur(24px); }
.lx-card.flat { box-shadow: none; }
body:not([data-fullscreen]) .lx-card.flat.pad h3 { font-size: 1.05rem; }
.lx-card-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line-soft); font: 500 11px/1.4 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.lx-card-h b { color: var(--text-2); font-weight: 500; }
.lx-card-b { padding: 16px; }
.lx-card-b.flush { padding: 0; }
.lx-card-f { padding: 10px 16px; border-top: 1px solid var(--line-soft); font-size: 12px; color: var(--muted); }

/* ---------- logo / trust strip ---------- */
.lx-trust { border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); padding: 40px 0; text-align: center; overflow: hidden; }
.lx-trust .lx-kicker { margin-bottom: 26px; }
.lx-marquee { position: relative; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.lx-marquee-track { display: flex; gap: 64px; width: max-content; animation: lx-marquee 42s linear infinite; }
.lx-marquee:hover .lx-marquee-track { animation-play-state: paused; }
.lx-wordmark { font: 600 20px/1 var(--font); letter-spacing: -.02em; color: #fff; opacity: .42; white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; }
.lx-wordmark.mono { font-family: var(--font-mono); font-weight: 500; font-size: 17px; }
.lx-wordmark.serif { font-family: Georgia, "Times New Roman", serif; font-weight: 700; }
.lx-wordmark i { width: 14px; height: 14px; border-radius: 3px; background: #fff; display: inline-block; opacity: .9; }
.lx-wordmark i.round { border-radius: 50%; }
@keyframes lx-marquee { to { transform: translateX(-50%); } }
.lx-stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line-soft); border-radius: var(--r); overflow: hidden; }
.lx-stats > div { padding: 24px; border-right: 1px solid var(--line-soft); }
.lx-stats > div:last-child { border-right: 0; }
.lx-stats b { display: block; font: 500 2.1rem/1 var(--font); letter-spacing: -.03em; color: var(--text); margin-bottom: 8px; }
.lx-stats span { font-size: 13px; color: var(--muted); }

/* ---------- split feature blocks ---------- */
.lx-split { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.lx-split + .lx-split { border-top: 0; }
.lx-split > * { min-width: 0; }
.lx-split-text { padding: 96px 64px 96px 0; display: flex; flex-direction: column; justify-content: center; }
.lx-split-text h2 { margin-bottom: 20px; }
.lx-split-text .lx-lead { margin-bottom: 14px; }
.lx-split-text p { color: var(--text-2); }
.lx-split-text .lx-list { margin: 8px 0 22px; }
.lx-split-visual { border-left: 1px solid var(--line-soft); padding: 48px 0 48px 56px; display: flex; align-items: center; }
.lx-split.rev .lx-split-text { order: 2; padding: 96px 0 96px 64px; }
.lx-split.rev .lx-split-visual { order: 1; border-left: 0; border-right: 1px solid var(--line-soft); padding: 48px 56px 48px 0; }
.lx-split-visual > * { width: 100%; }
.lx-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.lx-list li { position: relative; padding-left: 26px; color: var(--text-2); }
.lx-list li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--text); font-weight: 600; font-size: 14px; }
.lx-list.muted li::before { color: var(--muted); }
.lx-list li b { color: var(--text); }

/* ---------- big statement ---------- */
.lx-statement { position: relative; padding: 140px 0; text-align: center; overflow: hidden; }
.lx-statement::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--line-soft) 1px, transparent 1px), linear-gradient(90deg, var(--line-soft) 1px, transparent 1px); background-size: 72px 72px; mask-image: radial-gradient(60% 70% at 50% 50%, #000, transparent); opacity: .7; }
.lx-statement h2 { position: relative; font-size: clamp(2.2rem, 5vw, 4.2rem); max-width: 900px; margin: 0 auto; letter-spacing: -.035em; }
.lx-statement h2 span { color: var(--muted); }

/* ---------- backtest results card ---------- */
.lx-bt-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line-soft); font: 500 11px/1.4 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.lx-bt-head .net { color: var(--up); letter-spacing: 0; text-transform: none; font-size: 12px; }
.lx-bt-tabs { display: flex; gap: 20px; padding: 0 16px; border-bottom: 1px solid var(--line-soft); }
.lx-bt-tabs button { background: none; border: 0; color: var(--muted); font: 500 13px/1 var(--font); padding: 12px 0; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.lx-bt-tabs button.on { color: var(--text); border-bottom-color: #fff; }
.lx-bt-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 0; }
.lx-bt-grid > div { padding: 12px 16px; }
.lx-bt-grid > div + div { border-left: 1px solid var(--line-soft); }
.lx-bt-grid .lbl { font: 500 10px/1 var(--font-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; display: block; }
.lx-bt-table { width: 100%; font-family: var(--font-mono); font-size: 12px; }
.lx-bt-table th { text-align: right; font: 500 10px/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding: 10px 8px; border-bottom: 1px solid var(--line-soft); }
.lx-bt-table th:first-child { text-align: left; }
.lx-bt-table td { padding: 8px; border-bottom: 1px solid var(--line-soft); text-align: right; color: var(--text); }
.lx-bt-table td:first-child { text-align: left; color: var(--text-2); font-family: var(--font); }
.lx-bt-table tr:last-child td { border-bottom: 0; }

/* ---------- module cards ---------- */
.lx-cols3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.lx-cols2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.lx-cols4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.lx-mod { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; transition: border-color .16s, transform .16s; }
.lx-mod:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.lx-mod .chart { height: 120px; border-bottom: 1px solid var(--line-soft); }
.lx-mod-b { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.lx-mod-b h3 { font-size: 1.15rem; margin: 0; }
.lx-mod-b p { font-size: 14px; color: var(--text-2); margin: 0; flex: 1; }
.lx-mod-b .lx-link { margin-top: 8px; }

/* ---------- reviews ---------- */
.lx-reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.lx-review { padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); display: flex; flex-direction: column; gap: 14px; }
.lx-stars { color: #fff; letter-spacing: 2px; font-size: 13px; }
.lx-review p { color: var(--text); font-size: 15px; line-height: 1.55; margin: 0; flex: 1; }
.lx-review .who { display: flex; gap: 10px; align-items: center; font-size: 13px; color: var(--muted); }
.lx-av { width: 32px; height: 32px; border-radius: 50%; display: inline-grid; place-items: center; font: 600 11px/1 var(--font); color: #fff; background: linear-gradient(135deg, #3b3b3b, #1a1a1a); border: 1px solid var(--line-strong); flex: none; }
.lx-review .who b { display: block; color: var(--text); font-weight: 500; }

/* ---------- pricing ---------- */
.pricing-toggle { display: inline-flex; padding: 4px; border-radius: var(--pill); background: #0f0f0f; border: 1px solid var(--line); gap: 2px; }
.pricing-toggle button { border: 0; background: transparent; color: var(--muted); padding: 8px 18px; border-radius: var(--pill); font: 500 13px/1 var(--font); cursor: pointer; transition: background .16s, color .16s; }
.pricing-toggle button.active { background: #fff; color: #000; }
.lx-mode-note { font-size: 13px; color: var(--muted); }
.lx-plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 880px; margin: 0 auto; }
.lx-plans.three { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: none; }
.lx-plan { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.lx-plan.hot { border-color: rgba(255,255,255,.3); box-shadow: 0 0 0 1px rgba(255,255,255,.08), var(--shadow-card); background: linear-gradient(180deg, #111 0%, #0a0a0a 100%); }
.lx-plan-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.lx-plan-top h3 { font-size: 1.25rem; margin: 0 0 4px; }
.lx-plan-top p { margin: 0; font-size: 14px; color: var(--muted); }
.lx-badge { display: inline-flex; align-items: center; gap: 4px; padding: 4px 9px; border-radius: var(--pill); border: 1px solid var(--line-strong); font: 500 10px/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text-2); white-space: nowrap; }
.lx-badge.white { background: #fff; color: #000; border-color: #fff; }
.lx-price { font: 500 2.9rem/1 var(--font); letter-spacing: -.04em; color: var(--text); }
.lx-price small { font: 400 14px/1.3 var(--font); color: var(--muted); letter-spacing: 0; margin-left: 6px; }
.lx-price-note { font-size: 13px; color: var(--muted); margin-top: -8px; }
.lx-price-note s { color: var(--dim); }
.lx-plan .lx-list { gap: 9px; }
.lx-plan .lx-list li { font-size: 14px; }
.lx-plan .lx-list li::before { color: var(--muted); }
.lx-plan .lx-list-title { font: 500 13px/1 var(--font); color: var(--text); margin-bottom: 4px; }
.lx-plan-foot { font-size: 12px; color: var(--muted); border-top: 1px solid var(--line-soft); padding-top: 14px; margin-top: auto; }

/* ---------- tables / matrices ---------- */
.lx-table { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.lx-table table { width: 100%; min-width: 560px; font-size: 14px; }
.lx-table th { text-align: left; font: 500 11px/1.4 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding: 14px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.lx-table td { padding: 13px 16px; border-bottom: 1px solid var(--line-soft); color: var(--text-2); vertical-align: top; }
.lx-table tr:last-child td { border-bottom: 0; }
.lx-table td:first-child { color: var(--text); }
.lx-table .num, .lx-table td.num, .lx-table th.num { text-align: right; font-family: var(--font-mono); font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.lx-table th.num { color: var(--text-2); }
.lx-table .us { background: rgba(255,255,255,.035); color: var(--text) !important; }
.lx-table th.us { color: var(--text); }
.lx-table .yes { color: var(--text); }
.lx-table .part { color: var(--warn); }
.lx-table .no { color: var(--muted); }
.lx-table.compact td, .lx-table.compact th { padding: 9px 12px; font-size: 13px; }
.lx-table .grp td { padding: 20px 16px 6px; font: 500 10px/1 var(--font-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); border-bottom: 0; }
.lx-matrix table { min-width: 980px; }
.lx-matrix td, .lx-matrix th { text-align: center; }
.lx-matrix td:first-child, .lx-matrix th:first-child { text-align: left; min-width: 220px; position: sticky; left: 0; background: var(--surface); z-index: 1; }
.lx-matrix th.us, .lx-matrix td.us { background: rgba(255,255,255,.05); }
.lx-matrix .mark { font-size: 15px; }
.lx-legend { display: flex; gap: 18px; font-size: 13px; color: var(--muted); flex-wrap: wrap; margin-top: 12px; }

/* ---------- FAQ ---------- */
.lx-faq { max-width: 780px; margin: 0 auto; border-top: 1px solid var(--line-soft); }
.lx-faq details { border-bottom: 1px solid var(--line-soft); }
.lx-faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 0; font: 500 16px/1.4 var(--font); color: var(--text); }
.lx-faq summary::-webkit-details-marker { display: none; }
.lx-faq summary::after { content: "+"; font-size: 20px; color: var(--muted); font-weight: 300; transition: transform .2s; flex: none; }
.lx-faq details[open] summary::after { transform: rotate(45deg); }
.lx-faq details > div { padding: 0 0 22px; color: var(--text-2); max-width: 680px; line-height: 1.6; }
.lx-faq details > div a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- CTA band ---------- */
.lx-cta { position: relative; padding: 160px 0; text-align: center; overflow: hidden; border-top: 1px solid var(--line-soft); }
.lx-cta::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 60% at 50% 110%, rgba(120,110,95,.22), transparent 70%); pointer-events: none; }
.lx-cta h2 { position: relative; font-size: clamp(2.4rem, 5.4vw, 4.4rem); margin-bottom: 20px; letter-spacing: -.04em; }
.lx-cta p { position: relative; font-size: 1.15rem; color: var(--text-2); max-width: 560px; margin: 0 auto 32px; }
.lx-cta .lx-actions { position: relative; justify-content: center; }

/* ---------- footer ---------- */
.lx-foot { background: var(--bg-0); border-top: 1px solid var(--line); padding: 64px 0 32px; font-size: 14px; }
.lx-foot-grid { display: grid; grid-template-columns: 1.4fr repeat(5, 1fr); gap: 32px; }
body:not([data-fullscreen]) .lx-foot h2 { font: 500 11px/1.4 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--text-2); margin: 0 0 16px; }
.lx-foot a { display: block; color: var(--muted); padding: 5px 0; transition: color .16s; }
.lx-foot a:hover { color: var(--text); }
.lx-foot-bottom span a { display: inline; padding: 0; color: var(--text); }
.lx-foot .lx-logo { margin-bottom: 14px; }
.lx-foot .disc { color: var(--muted); font-size: 13px; line-height: 1.55; max-width: 300px; }
.lx-foot-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line-soft); color: var(--muted); font-size: 13px; }
.lx-social { display: flex; gap: 6px; }
.lx-social a { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 8px; padding: 0; color: var(--muted); }
.lx-social a:hover { background: rgba(255,255,255,.06); color: var(--text); }
.lx-social svg { width: 16px; height: 16px; fill: currentColor; }

/* ---------- code blocks ---------- */
.lx-code { font-family: var(--font-mono); font-size: 13px; line-height: 1.6; color: #dbdbdb; background: #050505; border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; overflow: auto; }
.lx-code.tall { height: 380px; overflow: auto; }
.lx-code.mid { max-height: 300px; }
.lx-code div { white-space: pre; min-height: 1.6em; }
.lx-code .c { color: var(--muted); } .lx-code .s { color: #7dbe7d; } .lx-code .k { color: #42bda8; } .lx-code .f { color: #5b9cf6; } .lx-code .n { color: #f5a742; }
.lx-code .hl { animation: lx-hl .26s ease; }
@keyframes lx-hl { from { background: rgba(255,255,255,.12); } to { background: transparent; } }
.lx-pre { font-family: var(--font-mono); font-size: 13px; line-height: 1.6; color: #dbdbdb; background: #050505; border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; overflow: auto; white-space: pre; }
.lx-edhead { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 14px; border: 1px solid var(--line); border-bottom: 0; border-radius: var(--r) var(--r) 0 0; background: #0a0a0a; font: 500 12px/1 var(--font-mono); color: var(--muted); flex-wrap: wrap; }
.lx-edhead .file { color: var(--text); }
.lx-edhead + .lx-code, .lx-edhead + .lx-pre, .lx-edhead + textarea.lx-code { border-radius: 0 0 var(--r) var(--r); }
.lx-edmeta { display: flex; justify-content: space-between; gap: 10px; padding: 8px 2px 0; font: 400 11px/1.4 var(--font-mono); color: var(--muted); flex-wrap: wrap; }
textarea.lx-code { width: 100%; resize: vertical; display: block; color: #dbdbdb; outline: none; tab-size: 4; }
textarea.lx-code:focus { border-color: var(--line-strong); }
.lx-diff { font-family: var(--font-mono); font-size: 12.5px; line-height: 1.6; background: #050505; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin: 0 0 1.5rem; }
.lx-diff-h { padding: 8px 14px; border-bottom: 1px solid var(--line-soft); color: var(--muted); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.lx-diff div:not(.lx-diff-h) { padding: 2px 14px; white-space: pre-wrap; }
.lx-diff .del { background: rgba(242,54,69,.12); color: #f7a1a8; }
.lx-diff .add { background: rgba(34,197,94,.12); color: #9ee6b4; }
.lx-diff .ctx { color: var(--muted); }

/* ---------- notes / tags / pills ---------- */
.lx-note { border: 1px solid var(--line); border-left: 3px solid #fff; border-radius: var(--r-sm); padding: 14px 18px; background: rgba(255,255,255,.03); color: var(--text-2); font-size: 14.5px; margin: 0 0 1.5rem; }
.lx-note .t { display: block; font: 500 10px/1 var(--font-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.lx-note.warn { border-left-color: var(--warn); }
.lx-note.up { border-left-color: var(--up); }
.lx-note.down { border-left-color: var(--down); }
.lx-note a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.lx-tag { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: var(--pill); border: 1px solid var(--line); font: 500 11px/1.4 var(--font); color: var(--text-2); background: rgba(255,255,255,.03); white-space: nowrap; }
.lx-tag.up { color: var(--up); border-color: rgba(34,197,94,.35); }
.lx-tag.warn { color: var(--warn); border-color: rgba(245,158,11,.35); }
.lx-tag.down { color: var(--down); border-color: rgba(242,54,69,.35); }
.lx-tag.info { color: var(--accent-2); border-color: rgba(91,156,246,.35); }
.lx-tag.white { background: #fff; color: #000; border-color: #fff; }
.lx-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.lx-chip { padding: 7px 14px; border-radius: var(--pill); border: 1px solid var(--line); background: transparent; color: var(--text-2); font: 500 13px/1 var(--font); cursor: pointer; transition: all .16s; }
.lx-chip:hover { border-color: var(--line-strong); color: var(--text); }
.lx-chip.active { background: #fff; color: #000; border-color: #fff; }
.lx-report { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 14px; }
.lx-report li { padding-left: 24px; position: relative; color: var(--text-2); }
.lx-report li::before { content: "✓"; position: absolute; left: 0; color: var(--up); font-weight: 600; }
.lx-report li.warn::before { content: "!"; color: var(--warn); }

/* ---------- forms ---------- */
.lx-field { display: grid; gap: 6px; margin-bottom: 14px; }
.lx-field label { font: 500 12px/1 var(--font); color: var(--muted); letter-spacing: .02em; }
.lx-input, body:not([data-fullscreen]) select.lx-input { width: 100%; padding: 11px 14px; border-radius: 10px; border: 1px solid var(--line); background: #050505; color: var(--text); font: 400 14px/1.3 var(--font); outline: none; transition: border-color .16s; }
.lx-input:focus { border-color: rgba(255,255,255,.35); }
.lx-input.mono { font-family: var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }
.lx-input::placeholder { color: var(--dim); }
.lx-seg { display: inline-flex; padding: 4px; border-radius: var(--pill); background: #0f0f0f; border: 1px solid var(--line); gap: 2px; }
.lx-seg button { border: 0; background: transparent; color: var(--muted); padding: 8px 16px; border-radius: var(--pill); font: 500 13px/1 var(--font); cursor: pointer; }
.lx-seg button.active { background: #fff; color: #000; }
.lx-switch { position: relative; display: inline-block; width: 40px; height: 22px; vertical-align: middle; flex: none; }
.lx-switch input { opacity: 0; width: 0; height: 0; }
.lx-switch span { position: absolute; inset: 0; background: rgba(255,255,255,.15); border-radius: 999px; cursor: pointer; transition: .15s; }
.lx-switch span::after { content: ""; position: absolute; width: 16px; height: 16px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .15s; }
.lx-switch input:checked + span { background: var(--up); }
.lx-switch input:checked + span::after { transform: translateX(18px); }
.lx-search { position: relative; }
.lx-search input { padding-left: 34px; }
.lx-search::before { content: "⌕"; position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 16px; }
.lx-kbd-hint { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font: 500 10px/1 var(--font-mono); color: var(--muted); border: 1px solid var(--line); border-radius: 5px; padding: 3px 6px; }

/* ---------- tabs (ui.js [data-tabs]) ---------- */
.tabs { display: flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: var(--pill); background: #0f0f0f; width: max-content; max-width: 100%; overflow-x: auto; margin-bottom: 28px; }
.tabs button { border: 0; background: transparent; color: var(--muted); padding: 8px 16px; border-radius: var(--pill); font: 500 13px/1 var(--font); cursor: pointer; white-space: nowrap; }
.tabs button.active { background: #fff; color: #000; }

/* ---------- steps ---------- */
.lx-steps { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.lx-step { padding: 28px; border-right: 1px solid var(--line-soft); display: flex; flex-direction: column; gap: 10px; }
.lx-step:last-child { border-right: 0; }
.lx-step .n { font: 500 11px/1 var(--font-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.lx-step h3 { font-size: 1.2rem; margin: 0; }
.lx-step p { font-size: 14px; margin: 0; flex: 1; }

/* ---------- blog ---------- */
.lx-featured { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center; padding: 72px 0; }
.lx-featured h2 { font-size: clamp(2rem, 4vw, 3.4rem); margin-bottom: 20px; }
.lx-featured .lx-lead { font-size: 1.1rem; margin-bottom: 28px; }
.lx-cover { position: relative; border: 1px solid var(--line); border-radius: var(--r); background: #050505; overflow: hidden; box-shadow: var(--shadow-card); aspect-ratio: 16/9; }
.lx-cover .chart { height: 100%; width: 100%; position: absolute; inset: 0; opacity: .55; }
.lx-cover .ttl { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 24px; background: radial-gradient(60% 60% at 50% 50%, rgba(0,0,0,.55), transparent); }
.lx-cover .ttl b { display: block; font: 500 clamp(1.3rem, 2.4vw, 2rem)/1.1 var(--font); letter-spacing: -.03em; color: var(--text); }
.lx-cover .ttl b span { color: var(--muted); }
.lx-cover .ttl small { display: block; margin-top: 8px; font: 400 11px/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.lx-cover .lx-logo { position: absolute; left: 14px; top: 12px; font-size: 13px; opacity: .8; }
.lx-cover .lx-logo svg { width: 16px; height: 16px; }
.lx-posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.lx-post { display: flex; flex-direction: column; gap: 12px; }
.lx-post .lx-cover { aspect-ratio: 16/9; box-shadow: none; transition: border-color .16s, transform .16s; }
.lx-post:hover .lx-cover { border-color: var(--line-strong); transform: translateY(-2px); }
.lx-post .meta { display: flex; gap: 10px; align-items: center; font: 500 11px/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.lx-post h3 { font-size: 1.15rem; margin: 0; line-height: 1.3; }
.lx-post h3 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.lx-post p { font-size: 14px; color: var(--text-2); margin: 0; }
.lx-post.soon { opacity: .5; pointer-events: none; }
.lx-by { display: flex; gap: 10px; align-items: center; font-size: 13px; color: var(--muted); }
.lx-by .lx-av { width: 26px; height: 26px; font-size: 9px; }
.lx-by b { color: var(--text-2); font-weight: 500; }
.lx-post.hide-tag { display: none; }

/* ---------- article ---------- */
.lx-article { max-width: 720px; margin: 0 auto; padding: 64px 24px 96px; }
.lx-article-head { text-align: center; margin-bottom: 40px; }
.lx-article-head .meta { display: flex; justify-content: center; gap: 10px; align-items: center; font: 500 11px/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 20px; flex-wrap: wrap; }
.lx-article-head h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); margin-bottom: 20px; }
.lx-article-head .lx-by { justify-content: center; }
.lx-article .lx-cover { margin: 0 0 48px; }
.lx-article .lx-lead { font-size: 1.25rem; color: var(--text); margin-bottom: 2rem; }
.lx-article h2 { font-size: 1.7rem; margin: 2.6rem 0 1rem; }
.lx-article h3 { font-size: 1.25rem; margin: 2rem 0 .8rem; }
.lx-article p, .lx-article li { font-size: 17px; line-height: 1.7; color: var(--text-2); }
.lx-article li { margin-bottom: .5rem; }
.lx-article p a, .lx-article li a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.lx-article figure { margin: 2rem 0; }
.lx-article figcaption { font-size: 13px; color: var(--muted); margin-top: 10px; line-height: 1.5; }
.lx-article .lx-table { margin: 1.5rem 0; }
.lx-article .lx-table td, .lx-article .lx-table th { font-size: 14px; }
.lx-article .lx-pre { margin: 1.5rem 0; }
.lx-author { display: flex; gap: 16px; padding: 24px; border: 1px solid var(--line); border-radius: var(--r); margin: 56px 0 24px; align-items: flex-start; }
.lx-author .lx-av { width: 44px; height: 44px; font-size: 13px; }
.lx-author b { color: var(--text); display: block; margin-bottom: 4px; }
.lx-author p { font-size: 14px !important; margin: 0; }
body:not([data-fullscreen]) .lx-related h3 { font-size: 1.05rem; margin: 0 0 14px; }
.lx-related .lx-posts { grid-template-columns: 1fr 1fr; }
.lx-dis { font-size: 13px !important; color: var(--muted) !important; border-top: 1px solid var(--line-soft); padding-top: 18px; margin-top: 40px; }

/* ---------- docs ---------- */
.lx-docs { display: grid; grid-template-columns: 240px minmax(0, 1fr) 200px; gap: 48px; padding: 40px 0 96px; }
.lx-docs-side { position: sticky; top: calc(var(--nav-h) + 24px); align-self: start; max-height: calc(100vh - var(--nav-h) - 48px); overflow: auto; padding-right: 8px; }
.lx-docs-side .grp { font: 500 10px/1 var(--font-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 22px 0 8px; padding-left: 10px; }
.lx-docs-side .grp:first-of-type { margin-top: 0; }
.lx-docs-side a { display: block; padding: 7px 10px; border-radius: 8px; font-size: 14px; color: var(--text-2); }
.lx-docs-side a:hover { color: var(--text); background: rgba(255,255,255,.05); }
.lx-docs-side a.active { color: var(--text); background: rgba(255,255,255,.08); }
.lx-docs-side .lx-search { margin-bottom: 8px; }
.lx-docs-side .lx-search input { padding: 9px 12px 9px 32px; font-size: 13px; }
.lx-docs-body { min-width: 0; }
.lx-docs-body h1 { font-size: 2.4rem; margin-bottom: 12px; }
.lx-docs-body > p.lx-lead { font-size: 1.1rem; margin-bottom: 20px; }
.lx-docs-actions { display: flex; gap: 6px; flex-wrap: wrap; padding: 0 0 28px; border-bottom: 1px solid var(--line-soft); margin-bottom: 40px; }
.lx-docs-actions .lx-btn { padding: 6px 12px; font-size: 13px; }
.lx-docs-body h2 { font-size: 1.6rem; margin: 56px 0 14px; padding-top: 8px; scroll-margin-top: 90px; }
.lx-docs-body h3 { font-size: 1.15rem; margin: 28px 0 10px; }
.lx-docs-body p, .lx-docs-body li { font-size: 15.5px; line-height: 1.65; }
.lx-docs-body .lx-table { margin: 18px 0; }
.lx-docs-body .lx-table td, .lx-docs-body .lx-table th { font-size: 13.5px; }
.lx-docs-body .lx-pre { margin: 18px 0; }
.lx-docs-body a:not(.lx-btn) { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.lx-docs-body .lx-note { margin: 18px 0; }
.lx-docs-body ol.steps { counter-reset: s; list-style: none; padding: 0; display: grid; gap: 10px; }
.lx-docs-body ol.steps li { counter-increment: s; position: relative; padding-left: 40px; }
.lx-docs-body ol.steps li::before { content: counter(s); position: absolute; left: 0; top: 2px; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; font: 500 12px/1 var(--font-mono); color: var(--text); }
.lx-docs-toc { position: sticky; top: calc(var(--nav-h) + 24px); align-self: start; font-size: 13px; }
.lx-docs-toc .t { font: 500 10px/1 var(--font-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; display: flex; align-items: center; gap: 6px; }
.lx-docs-toc a { display: block; padding: 5px 0 5px 14px; border-left: 1px solid var(--line-soft); color: var(--muted); }
.lx-docs-toc a.active { color: var(--text); border-left-color: #fff; }
.lx-docs-toc a:hover { color: var(--text); }
.lx-docs-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 24px 0; }
.lx-docs-cards a { display: block; padding: 18px; border: 1px solid var(--line); border-radius: var(--r); text-decoration: none !important; transition: border-color .16s; }
.lx-docs-cards a:hover { border-color: var(--line-strong); }
.lx-docs-cards b { display: block; color: var(--text); margin-bottom: 4px; }
.lx-docs-cards span { font-size: 13px; color: var(--muted); }

/* ---------- changelog ---------- */
.lx-rel { display: grid; grid-template-columns: 200px 1fr; gap: 32px; padding: 40px 0; border-top: 1px solid var(--line-soft); }
.lx-rel:last-of-type { border-bottom: 1px solid var(--line-soft); }
.lx-rel .v { position: sticky; top: calc(var(--nav-h) + 24px); align-self: start; }
body:not([data-fullscreen]) .lx-rel .v h2 { display: block; font: 500 1.6rem/1 var(--font); letter-spacing: -.03em; color: var(--text); margin-bottom: 8px; }
.lx-rel .v time { display: block; font: 400 12px/1 var(--font-mono); color: var(--muted); margin-bottom: 10px; }
body:not([data-fullscreen]) .lx-rel h3 { display: inline-flex; align-items: center; gap: 8px; font: 500 10px/1 var(--font-mono); letter-spacing: .16em; text-transform: uppercase; margin: 22px 0 8px; }
.lx-rel h3::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--muted); }
.lx-rel h3.add::before { background: var(--up); } .lx-rel h3.fix::before { background: var(--accent); } .lx-rel h3.chg::before { background: var(--warn); }
body:not([data-fullscreen]) .lx-rel h3.add { color: var(--up); } body:not([data-fullscreen]) .lx-rel h3.fix { color: var(--accent-2); } body:not([data-fullscreen]) .lx-rel h3.chg { color: var(--warn); }
.lx-rel ul { margin: 0; display: grid; gap: 6px; }
.lx-rel li { font-size: 15px; color: var(--text-2); }
.lx-rel .intro { font-size: 17px; color: var(--text); }

/* ---------- account / misc ---------- */
.lx-banner { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border: 1px solid rgba(34,197,94,.35); border-radius: var(--r); background: rgba(34,197,94,.08); margin-bottom: 24px; color: var(--text); flex-wrap: wrap; }
.lx-kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; margin: 0; font-size: 14px; }
.lx-kv dt { color: var(--muted); } .lx-kv dd { margin: 0; color: var(--text); }
.lx-timeline { display: grid; gap: 0; border-left: 1px solid var(--line); margin-left: 8px; }
.lx-timeline > div { position: relative; padding: 0 0 26px 28px; }
.lx-timeline > div::before { content: ""; position: absolute; left: -5px; top: 6px; width: 9px; height: 9px; border-radius: 50%; background: #fff; }
.lx-timeline > div.off::before { background: var(--muted); }
.lx-timeline > div.keep::before { background: var(--up); }
.lx-timeline b { display: block; color: var(--text); margin-bottom: 4px; }
.lx-timeline b .h { font: 400 11px/1 var(--font-mono); color: var(--muted); margin-left: 8px; }
.lx-timeline span { font-size: 14px; color: var(--text-2); }

/* ---------- reveal ---------- */
.lx-reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.lx-reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    animation-delay: 0ms !important; transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .lx-reveal { opacity: 1; transform: none; transition: none; }
  .lx-marquee-track { animation: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .lx-docs { grid-template-columns: 220px minmax(0, 1fr); }
  .lx-docs-toc { display: none; }
  .lx-foot-grid { grid-template-columns: 1fr 1fr 1fr; }
  .lx-cols4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1024px) {
  .lx-sec { padding: 80px 0; }
  .lx-split, .lx-split.rev { grid-template-columns: 1fr; }
  .lx-split-text, .lx-split.rev .lx-split-text { padding: 56px 0 28px; order: 1; }
  .lx-split-visual, .lx-split.rev .lx-split-visual { border: 0; padding: 0 0 56px; order: 2; }
  .lx-stats { grid-template-columns: 1fr 1fr; }
  .lx-stats > div:nth-child(2) { border-right: 0; }
  .lx-stats > div:nth-child(-n+2) { border-bottom: 1px solid var(--line-soft); }
  .lx-cols3, .lx-reviews { grid-template-columns: 1fr 1fr; }
  .lx-posts { grid-template-columns: 1fr 1fr; }
  .lx-featured { grid-template-columns: 1fr; gap: 32px; }
  .lx-stage-side { display: none; }
  .lx-bt-grid { grid-template-columns: 1fr; }
  .lx-bt-grid > div + div { border-left: 0; border-top: 1px solid var(--line-soft); }
  .lx-plans.three { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .lx-rel { grid-template-columns: 1fr; gap: 12px; }
  .lx-rel .v { position: static; }
  .lx-device-body .chart, .lx-device-body .chart.lg { height: 360px; }
}
@media (max-width: 840px) {
  .lx-links, .lx-nav-right .lx-login { display: none; }
  .lx-burger { display: block; }
  .lx-nav-in { gap: 16px; }
  .lx-docs { grid-template-columns: 1fr; gap: 24px; }
  .lx-docs-side { position: static; max-height: none; border: 1px solid var(--line); border-radius: var(--r); padding: 14px; }
  .lx-docs-side .grp { margin-top: 14px; }
  .lx-steps { grid-template-columns: 1fr; }
  .lx-step { border-right: 0; border-bottom: 1px solid var(--line-soft); }
  .lx-step:last-child { border-bottom: 0; }
  .lx-foot-grid { grid-template-columns: 1fr 1fr; }
  .lx-plans { grid-template-columns: 1fr; }
  .lx-cols2 { grid-template-columns: 1fr; }
  /* single-column: let a pre/code child scroll inside its box instead of widening the track */
  .lx-cols2 > * { min-width: 0; }
  .lx-hero { padding-top: 64px; }
  .lx-cta { padding: 110px 0; }
  .lx-statement { padding: 96px 0; }
}
@media (max-width: 600px) {
  .lx-wrap, .lx-nav-in, .lx-hero-in, .lx-stage { padding-left: 16px; padding-right: 16px; }
  .lx-sec { padding: 64px 0; }
  .lx-cols3, .lx-reviews, .lx-posts, .lx-cols4 { grid-template-columns: 1fr; }
  .lx-cols3 > *, .lx-reviews > *, .lx-posts > *, .lx-cols4 > * { min-width: 0; }
  .lx-stats { grid-template-columns: 1fr; }
  .lx-stats > div { border-right: 0; border-bottom: 1px solid var(--line-soft); }
  .lx-stats > div:last-child { border-bottom: 0; }
  .lx-foot-grid { grid-template-columns: 1fr; gap: 24px; }
  .lx-device-body .chart, .lx-device-body .chart.lg { height: 260px; }
  .lx-device-bar .ind, .lx-device-bar .live, .lx-device-foot span:nth-child(n+3) { display: none; }
  .lx-hero .lx-actions .lx-btn, .lx-cta .lx-actions .lx-btn { width: 100%; }
  .lx-article { padding: 40px 16px 64px; }
  .lx-article p, .lx-article li { font-size: 16px; }
  .lx-related .lx-posts { grid-template-columns: 1fr; }
  .lx-plan { padding: 22px; }
  .lx-price { font-size: 2.4rem; }
  .lx-featured { padding: 40px 0; }
  .lx-device .lx-grid2 { grid-template-columns: 1fr; }
  .lx-device .lx-grid2 > * { border-right: 0; }
  .lx-device .lx-grid2 > *:nth-last-child(-n+2) { border-bottom: 1px solid var(--line-soft); }
  .lx-device .lx-grid2 > *:last-child { border-bottom: 0; }
  .tabs { width: 100%; }
}

/* ---------- keyboard focus ----------------------------------------------
   textarea.lx-code and .lx-input both set outline:none and replaced it with a
   1px border-colour change, which is not a focus indicator: it is invisible at
   a glance and it fails on colour alone. This is the ring the demo already
   uses, brought to the marketing pages so the two behave the same. */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}
textarea.lx-code:focus-visible,
.lx-input:focus-visible,
body:not([data-fullscreen]) select.lx-input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-color: var(--accent);
}
