/* ============================================================
   Landing — Spreads
   Off-white graph paper, floating island nav, layered buttons,
   numbered steps, no decorative dots. Accent stays tiny.
   ============================================================ */
body.lp { background: #e9ecf4; }
.lp .mono { font-family: var(--mono); }

/* ---- floating island nav ---- */
.lp-nav {
  position: fixed; top: 14px; left: 50%; transform: translateX(-50%);
  z-index: 60;
  width: min(960px, calc(100vw - 24px));
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px;
  padding: 9px 9px 9px 18px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(21, 24, 30, 0.08);
  border-radius: 14px;
  box-shadow:
    inset 0 1px 0 #fff,
    0 1px 2px rgba(20, 25, 40, 0.04),
    0 10px 30px rgba(20, 25, 40, 0.08);
}
.lp-brand { display: flex; align-items: center; gap: 9px; font-family: var(--disp); font-weight: 700; font-size: 15px; }
.lp-brand img { width: 24px; height: 24px; display: block; }
.lp-links { display: flex; gap: 4px; margin: 0 auto; }
.lp-links a {
  font-size: 13px; font-weight: 500; color: var(--dim);
  padding: 7px 11px; border-radius: 9px;
  transition: color .15s, background .15s;
}
.lp-links a:hover { color: var(--text); background: rgba(21, 24, 30, 0.05); }

/* ---- buttons: layered, no dots ---- */
.lp-btn, .lp-cta {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--sans);
  font-size: 14px; font-weight: 600; letter-spacing: 0.01em;
  border-radius: 12px;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.lp-btn { padding: 13px 22px; }
.lp-cta { padding: 10px 16px; font-size: 13px; border-radius: 10px; }
.lp-btn .arr, .lp-cta .arr {
  font-family: var(--mono); font-size: 0.95em;
  transition: transform .18s ease;
}
.lp-btn:hover .arr, .lp-cta:hover .arr { transform: translateX(3px); }

.lp-btn.dark, .lp-cta {
  color: #fff;
  background: linear-gradient(180deg, #262b33 0%, #14171c 55%, #0e1014 100%);
  border: 1px solid #0b0d10;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    inset 0 -1px 0 rgba(0, 0, 0, 0.35),
    0 1px 2px rgba(15, 18, 24, 0.35),
    0 10px 24px rgba(15, 18, 24, 0.16);
}
.lp-btn.dark:hover, .lp-cta:hover {
  transform: translateY(-1px);
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -1px 0 rgba(0, 0, 0, 0.35),
    0 2px 4px rgba(15, 18, 24, 0.3),
    0 16px 34px rgba(15, 18, 24, 0.22);
}
.lp-btn.dark:active, .lp-cta:active { transform: translateY(0); }

.lp-btn.line {
  color: var(--text);
  background: linear-gradient(180deg, #ffffff 0%, #eff1f8 100%);
  border: 1px solid var(--line-2);
  box-shadow:
    inset 0 1px 0 #fff,
    0 1px 2px rgba(20, 25, 40, 0.06),
    0 8px 20px rgba(20, 25, 40, 0.06);
}
.lp-btn.line:hover {
  transform: translateY(-1px);
  border-color: rgba(21, 24, 30, 0.35);
  box-shadow:
    inset 0 1px 0 #fff,
    0 2px 4px rgba(20, 25, 40, 0.08),
    0 14px 30px rgba(20, 25, 40, 0.10);
}

/* ---- hero: left copy, live snapshot right ---- */
.lp-hero {
  background:
    linear-gradient(rgba(21,24,30,0.03) 1px, transparent 1px) 0 0 / 132px 132px,
    linear-gradient(90deg, rgba(21,24,30,0.03) 1px, transparent 1px) 0 0 / 132px 132px,
    #e9ecf4;
  border-bottom: 1px solid rgba(21, 24, 30, 0.07);
}
.lp-hero-grid {
  max-width: 1080px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(320px, 1fr) minmax(280px, 360px);
  gap: clamp(36px, 6vw, 90px); align-items: center;
  padding: clamp(120px, 16vh, 170px) 22px clamp(56px, 8vh, 84px);
}
@media (max-width: 880px) { .lp-hero-grid { grid-template-columns: 1fr; } }
.lp-hero h1 {
  font-family: var(--disp);
  font-weight: 600;
  font-size: clamp(34px, 4.4vw, 54px);
  line-height: 1.08; letter-spacing: -0.015em;
  margin-bottom: 20px;
}
.lp-sub { color: var(--dim); font-size: 15px; line-height: 1.65; max-width: 480px; margin: 0 0 28px; }
.lp-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.lp-ctas.center { justify-content: center; }
.lp-cmd {
  display: inline-block; margin-top: 30px;
  font-size: 11.5px; color: var(--faint);
  background: #f2f4fa;
  border: 1px solid var(--line); border-radius: 8px;
  padding: 10px 14px; max-width: 100%; overflow-x: auto; white-space: nowrap;
}

/* snapshot card */
.lp-snap {
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  padding: 20px 22px;
  box-shadow: 0 1px 2px rgba(20, 25, 40, 0.05), 0 12px 32px rgba(20, 25, 40, 0.06);
}
.lp-snap-row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 14px;
  padding: 9px 0; border-bottom: 1px solid var(--line);
  font-size: 13px; color: var(--dim);
}
.lp-snap-row:last-of-type { border-bottom: 0; }
.lp-snap-row b { font-weight: 500; color: var(--text); font-size: 12.5px; text-align: right; }

/* stats strip */
.lp-stats {
  max-width: 1080px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(21, 24, 30, 0.07);
  padding: 26px 22px 34px;
}
@media (max-width: 880px) { .lp-stats { grid-template-columns: repeat(2, 1fr); gap: 18px 0; } }
.lp-stat { padding-right: 22px; }
.lp-stat + .lp-stat { border-left: 1px solid rgba(21, 24, 30, 0.07); padding-left: 22px; }
@media (max-width: 880px) { .lp-stat:nth-child(3) { border-left: 0; padding-left: 0; } }
.lp-stat b { display: block; font-weight: 500; font-size: 22px; color: var(--text); margin-bottom: 3px; }
.lp-stat span { font-size: 12px; color: var(--faint); }

/* ---- sections ---- */
.lp-sect { max-width: 1080px; margin: 0 auto; padding: clamp(70px, 11vh, 120px) 22px; }
.lp-sect + .lp-sect { border-top: 1px solid rgba(21, 24, 30, 0.07); }
.lp-cols { display: grid; grid-template-columns: minmax(300px, 1fr) minmax(320px, 440px); gap: clamp(30px, 6vw, 80px); align-items: start; }
@media (max-width: 880px) { .lp-cols { grid-template-columns: 1fr; } }
.lp-kicker {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--accent-ink); margin-bottom: 16px;
}
.lp-sect h2, .lp-band h2 {
  font-family: var(--disp); font-weight: 600;
  font-size: clamp(26px, 3.2vw, 38px); line-height: 1.1;
  letter-spacing: -0.012em; margin-bottom: 18px;
}
.lp-p { color: var(--dim); font-size: 14.5px; max-width: 480px; margin-bottom: 26px; }

/* ---- step accordion: numbered, no dots ---- */
.lp-steps { margin-top: 26px; counter-reset: lstep; }
.lp-step {
  display: block; width: 100%; text-align: left; position: relative;
  background: none; border: 0; border-top: 1px solid var(--line);
  cursor: pointer;
  font-family: var(--sans);
  padding: 14px 0 14px 44px;
}
.lp-step:last-child { border-bottom: 1px solid var(--line); }
.lp-step .ln { display: none; }
.lp-step::before {
  counter-increment: lstep;
  content: "0" counter(lstep);
  position: absolute; left: 2px; top: 17px;
  font-family: var(--mono); font-size: 12px;
  color: var(--faint);
  transition: color .15s;
}
.lp-step.active::before { color: var(--accent-ink); }
.lp-step .tt { display: block; font-size: 15px; font-weight: 700; color: var(--faint); transition: color .15s; }
.lp-step.active .tt { color: var(--text); }
.lp-step:hover .tt { color: var(--text); }
.lp-step .tx {
  display: none; color: var(--dim); font-size: 13.5px; line-height: 1.6;
  margin-top: 7px; max-width: 440px;
}
.lp-step.active .tx { display: block; }
.lp-foot {
  margin-top: 28px;
  color: var(--faint); font-size: 12.5px; max-width: 460px;
}

/* ---- right-hand cards ---- */
.lp-card {
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: 14px; padding: 22px 24px;
  box-shadow: 0 1px 2px rgba(20, 25, 40, 0.05), 0 12px 32px rgba(20, 25, 40, 0.06);
}
.lp-card.hide { display: none; }
.lp-card-k { font-size: 10.5px; letter-spacing: 0.18em; color: var(--faint); margin-bottom: 16px; }
.lp-row { display: grid; grid-template-columns: 38px 64px 1fr auto; gap: 12px; align-items: center; padding: 7px 0; font-size: 12.5px; }
.lp-row .side { font-size: 10px; letter-spacing: 0.12em; }
.lp-row .side.ask { color: #b0483f; }
.lp-row .side.bid { color: var(--accent-ink); }
.lp-row .px { color: var(--text); }
.lp-row .bar { height: 8px; border-radius: 4px; }
.lp-row .bar.ask { background: rgba(176, 72, 63, 0.14); border: 1px solid rgba(176, 72, 63, 0.35); }
.lp-row .bar.bid { background: rgba(116, 130, 175, 0.22); border: 1px solid rgba(90, 104, 150, 0.5); }
.lp-row .lab { font-size: 10.5px; color: var(--faint); }
.lp-fair {
  display: flex; align-items: center; gap: 12px; margin: 8px 0;
  font-size: 10.5px; letter-spacing: 0.1em; color: var(--dim);
}
.lp-fair::before, .lp-fair::after { content: ""; flex: 1; height: 1px; background: var(--line-2); }
.lp-div { height: 1px; background: var(--line); margin: 14px 0; }
.lp-kv { display: flex; justify-content: space-between; align-items: baseline; padding: 6px 0; font-size: 13px; color: var(--dim); }
.lp-kv b { font-weight: 500; color: var(--text); font-size: 13px; }
.lp-kv.big b { font-size: 20px; }
.lp-kv .up { color: var(--accent-ink); }
.lp-kv .dn { color: #b0483f; }
.lp-note { margin-top: 14px; font-size: 11.5px; color: var(--faint); }
.lp-note a { text-decoration: underline; text-underline-offset: 2px; color: var(--dim); }

/* ---- definition rows ---- */
.lp-def { border-top: 1px solid var(--line-2); max-width: 480px; }
.lp-def-row {
  display: grid; grid-template-columns: 130px 1fr; gap: 16px;
  padding: 13px 0; border-bottom: 1px solid var(--line);
}
.lp-def-row .k { font-size: 10.5px; letter-spacing: 0.16em; color: var(--faint); padding-top: 2px; }
.lp-def-row .v { font-size: 13px; color: var(--text); }

/* ---- pairs mini list ---- */
.lp-pairs { font-size: 12.5px; }
.lp-pairs .pr { display: grid; grid-template-columns: 1fr auto auto; gap: 14px; padding: 8px 0; border-bottom: 1px solid var(--line); color: var(--dim); }
.lp-pairs .pr:last-child { border-bottom: 0; }
.lp-pairs .pr b { color: var(--text); font-weight: 500; }
.lp-pairs .pr .t { color: var(--faint); font-size: 11px; }

/* ---- faq ---- */
.lp-narrow { max-width: 680px; }
.lp-faq { border-bottom: 1px solid var(--line); padding: 4px 0; }
.lp-faq summary {
  cursor: pointer; list-style: none;
  font-weight: 700; font-size: 15px; padding: 14px 0;
  display: flex; justify-content: space-between; align-items: center;
}
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after { content: "+"; font-family: var(--mono); color: var(--faint); font-size: 16px; }
.lp-faq[open] summary::after { content: "−"; color: var(--accent-ink); }
.lp-faq p { color: var(--dim); font-size: 14px; padding: 0 0 16px; max-width: 600px; }
.lp-faq .mono { font-size: 12.5px; }

/* ---- closing band ---- */
.lp-band {
  text-align: center;
  border-top: 1px solid rgba(21, 24, 30, 0.07);
  background:
    linear-gradient(rgba(21,24,30,0.05) 1px, transparent 1px) 0 0 / 132px 132px,
    linear-gradient(90deg, rgba(21,24,30,0.05) 1px, transparent 1px) 0 0 / 132px 132px,
    linear-gradient(rgba(21,24,30,0.024) 1px, transparent 1px) 0 0 / 22px 22px,
    linear-gradient(90deg, rgba(21,24,30,0.024) 1px, transparent 1px) 0 0 / 22px 22px,
    #e9ecf4;
  padding: clamp(80px, 12vh, 130px) 22px;
}
.lp-band .lp-sub { margin-bottom: 32px; }
.lp .site-footer { border-top: 1px solid rgba(21, 24, 30, 0.07); }

/* ---- desk/docs pages under the island nav ---- */
body.app.lp .console, body.docs.lp .docs-wrap { padding-top: 96px; }
/* market-status lamp: a tick, not a dot */
.lp .ca-bar .dot { width: 4px; height: 16px; border-radius: 2px; }

@media (max-width: 720px) {
  .lp-links { display: none; }
}

/* ============================================================
   Split-rail template — fixed left rail, editorial right column.
   Typography and hairline rules only. Accent stays tiny.
   ============================================================ */
body.sp { background: #e9ecf4; }
.sp .mono { font-family: var(--mono); }

.sp-wrap {
  display: grid;
  grid-template-columns: minmax(280px, 340px) 1fr;
  max-width: 1240px;
  margin: 0 auto;
  min-height: 100vh;
}
@media (max-width: 880px) { .sp-wrap { grid-template-columns: 1fr; } }

/* ---- rail ---- */
.sp-rail {
  position: sticky; top: 0;
  height: 100vh;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 48px 40px 36px;
  border-right: 1px solid rgba(21, 24, 30, 0.10);
}
@media (max-width: 880px) {
  .sp-rail { position: static; height: auto; border-right: 0; border-bottom: 1px solid rgba(21,24,30,0.10); }
}
.sp-brand { display: flex; align-items: center; gap: 10px; font-family: var(--disp); font-weight: 600; font-size: 21px; }
.sp-brand img { width: 30px; height: 30px; display: block; }
.sp-tag { color: var(--dim); font-size: 13.5px; line-height: 1.55; margin: 14px 0 40px; max-width: 220px; }

.sp-nav { display: flex; flex-direction: column; }
.sp-nav a {
  display: flex; align-items: baseline; gap: 14px;
  font-size: 14.5px; font-weight: 500; color: var(--dim);
  padding: 8px 0;
  border-bottom: 1px solid rgba(21, 24, 30, 0.06);
  transition: color .15s;
}
.sp-nav a:hover, .sp-nav a.active { color: var(--text); }
.sp-nav a:hover .n, .sp-nav a.active .n { color: var(--accent-ink); }
.sp-nav .n { font-size: 10.5px; color: var(--faint); width: 20px; transition: color .15s; }

.sp-open { margin-top: 34px; align-self: flex-start; }

.sp-rail-meta { margin-top: 40px; }
.sp-rail-meta .m {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 10.5px; letter-spacing: 0.12em; color: var(--faint);
  padding: 6px 0;
}
.sp-rail-meta .m b { font-weight: 500; color: var(--text); letter-spacing: 0.04em; font-size: 11.5px; }
.sp-social { display: flex; gap: 16px; margin-top: 18px; padding-top: 14px; border-top: 1px solid rgba(21,24,30,0.08); }
.sp-social a { font-size: 11px; letter-spacing: 0.1em; color: var(--faint); }
.sp-social a:hover { color: var(--text); }

/* ---- main column ---- */
.sp-main { padding: 48px clamp(28px, 5vw, 76px) 60px; min-width: 0; }
.sp-sec { padding: 34px 0 44px; }
.sp-sec + .sp-sec { border-top: 1px solid rgba(21, 24, 30, 0.10); }
.sp-sec-head {
  display: flex; gap: 12px;
  font-size: 10.5px; letter-spacing: 0.22em; color: var(--faint);
  margin-bottom: 26px;
}
.sp-sec-head span { color: var(--accent-ink); }
.sp-sec h1 {
  font-family: var(--disp); font-weight: 600;
  font-size: clamp(34px, 4vw, 52px); line-height: 1.06;
  letter-spacing: -0.015em; margin: 0 0 22px;
}
.sp-sec h2 {
  font-family: var(--disp); font-weight: 600;
  font-size: clamp(24px, 2.6vw, 32px); line-height: 1.12;
  letter-spacing: -0.01em; margin: 0 0 18px;
}
.sp-sec h3 { font-family: var(--sans); font-weight: 700; font-size: 15.5px; margin: 0 0 8px; }
.sp-sec p { color: var(--dim); font-size: 14.5px; line-height: 1.7; max-width: 600px; margin: 0 0 14px; }
.sp-lede { font-size: 16px !important; color: var(--text) !important; }
.sp-fine { font-size: 12px !important; color: var(--faint) !important; }
.sp-sec a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.sp-sec a:hover { color: var(--accent-ink); }

.sp-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 30px; border-top: 1px solid rgba(21,24,30,0.10); }
@media (max-width: 640px) { .sp-stats { grid-template-columns: 1fr; } }
.sp-stats > div { padding: 16px 18px 0 0; }
.sp-stats > div + div { border-left: 1px solid rgba(21,24,30,0.08); padding-left: 18px; }
@media (max-width: 640px) { .sp-stats > div + div { border-left: 0; padding-left: 0; } }
.sp-stats b { display: block; font-weight: 500; font-size: 24px; color: var(--text); margin-bottom: 2px; }
.sp-stats span { font-size: 12px; color: var(--faint); }

/* mechanism items */
.sp-item {
  display: grid; grid-template-columns: 64px 1fr; gap: 18px;
  padding: 22px 0;
}
.sp-item + .sp-item { border-top: 1px solid rgba(21, 24, 30, 0.07); }
.sp-item-n { font-size: 11px; color: var(--faint); padding-top: 3px; }

/* tables */
.sp-table { border-collapse: collapse; font-size: 12.5px; margin: 14px 0 6px; }
.sp-table.wide { width: 100%; max-width: 640px; }
.sp-table td, .sp-table th {
  text-align: left; padding: 8px 26px 8px 0;
  border-bottom: 1px solid rgba(21, 24, 30, 0.08);
  color: var(--dim); font-weight: 400;
}
.sp-table th { font-size: 10px; letter-spacing: 0.16em; color: var(--faint); }
.sp-table td:last-child { text-align: right; padding-right: 0; color: var(--text); }
.sp-table.wide td:last-child { text-align: left; color: var(--dim); }
.sp-table.wide td:first-child { color: var(--text); }
.sp-table .up { color: var(--accent-ink); }
.sp-table .dn { color: #b0483f; }
.sp-table .sum td { color: var(--text); font-weight: 500; border-bottom: 0; }
.sp-table .dim { color: var(--faint); }

/* code block */
.sp-code {
  background: #f2f4fa; border: 1px solid rgba(21, 24, 30, 0.10); border-radius: 8px;
  font-size: 12.5px; line-height: 1.8; color: var(--text);
  padding: 14px 18px; margin: 16px 0; max-width: 640px; overflow-x: auto;
}

/* definition rows */
.sp-defs { margin-top: 26px; max-width: 640px; border-top: 1px solid rgba(21,24,30,0.10); }
.sp-defs > div {
  display: grid; grid-template-columns: 140px 1fr; gap: 16px;
  padding: 10px 0; border-bottom: 1px solid rgba(21, 24, 30, 0.07);
  font-size: 13px; color: var(--text);
}
.sp-defs span { font-size: 10px; letter-spacing: 0.16em; color: var(--faint); padding-top: 3px; }
.sp-defs i { font-style: normal; }

/* q&a */
.sp-qa { padding: 16px 0; }
.sp-qa + .sp-qa { border-top: 1px solid rgba(21, 24, 30, 0.07); }

/* footer */
.sp-footer { padding: 30px 0 0; border-top: 1px solid rgba(21, 24, 30, 0.10); }
.sp-footer p { color: var(--faint); font-size: 12px; max-width: 600px; margin: 0 0 8px; }

/* flat tables everywhere on sp pages - no zebra bands */
.sp .sp-table tbody tr, .sp .sp-table tr { background: transparent !important; }
