/* Landing page (/). Full-width desktop layout; a separate, thumb-first layout under 760px.
   Uses the brand tokens from app.css (charcoal desk, mint accent, Instrument Serif + Inter). */

.page-landing { --gut: clamp(20px, 5vw, 80px); --inner: 1440px; --band: #22221f; --amber: #e7b05d; }
.page-landing .topbar-inner,
.page-landing .footer { max-width: none; padding-left: var(--gut); padding-right: var(--gut); }
.page-landing .main.wrap { max-width: none; padding: 0; }

/* ------------------------------------------------------------------ type */
.lx-h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(3rem, 4.7vw, 5.4rem); line-height: .98; letter-spacing: -.015em; margin: 0 0 24px; max-width: 13ch; }
.lx-h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 3.1vw, 3.1rem); line-height: 1.05; letter-spacing: -.01em; margin: 0 0 14px; }
.lx-kicker { color: var(--brand); font-weight: 600; font-size: .95rem; margin: 0 0 18px; }
.lx-lede { font-size: clamp(1.05rem, 1.2vw, 1.22rem); line-height: 1.65; color: #d4d2c7; max-width: 56ch; margin: 0 0 30px; }
.lx-sub { color: #cfcdc2; font-size: 1.05rem; line-height: 1.6; max-width: 60ch; }
.lx-center { text-align: center; margin-left: auto; margin-right: auto; }
.lx-fine { color: var(--muted); font-size: .86rem; margin: 12px 0 0; }

/* ------------------------------------------------------------------ buttons */
.lx-btn-main { padding: 16px 28px; font-size: 1.04rem; border-radius: 12px; box-shadow: 0 10px 30px -12px rgba(124, 201, 161, .55); }
.lx-btn-main:focus-visible, .lx-link:focus-visible, .lx-tab:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
.lx-cta-row { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-bottom: 18px; }
.lx-link { color: var(--text); font-weight: 600; border-bottom: 1px solid var(--line); padding-bottom: 2px; }
.lx-link:hover { text-decoration: none; border-color: var(--brand); color: var(--brand); }

/* ------------------------------------------------------------------ hero */
.lx-hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 4vw, 72px); align-items: center;
  padding: clamp(40px, 6vh, 80px) var(--gut) clamp(48px, 8vh, 96px); min-height: calc(100vh - 57px); max-width: calc(var(--inner) + 2 * var(--gut)); margin: 0 auto;
  background: radial-gradient(900px 500px at 85% 40%, rgba(124, 201, 161, .09), transparent 70%); }
.lx-assure { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); font-size: .92rem; max-width: 52ch; margin: 0 0 36px; }
.lx-assure svg { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--brand); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; margin-top: 1px; }
.lx-assure b { color: var(--text); }
.lx-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 0; border-top: 1px solid var(--line); }
.lx-facts div { padding: 18px 18px 0 0; }
.lx-facts div + div { padding-left: 18px; border-left: 1px solid var(--line); }
.lx-facts dt { font-family: var(--serif); font-size: 1.6rem; line-height: 1.1; margin-bottom: 4px; }
.lx-facts dd { margin: 0; color: var(--muted); font-size: .86rem; line-height: 1.45; }

/* ------------------------------------------------------------------ sample report */
.lx-report { margin: 0; background: #262622; border: 1px solid #3f3f38; border-radius: 22px; padding: clamp(20px, 2vw, 30px);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .75), 0 0 0 1px rgba(124, 201, 161, .06); scroll-margin-top: 20px; }
.lx-report-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.lx-report-name { font-family: var(--serif); font-size: 1.65rem; line-height: 1.1; margin: 0 0 4px; }
.lx-report-sub { color: var(--muted); font-size: .84rem; margin: 0; }
.lx-badge { font-size: .76rem; font-weight: 600; color: var(--amber); background: rgba(231, 176, 93, .1); border: 1px solid rgba(231, 176, 93, .35); border-radius: 999px; padding: 4px 12px; white-space: nowrap; }
.lx-tabs { display: flex; gap: 4px; padding: 4px; background: #1f1f1c; border-radius: 12px; margin-bottom: 18px; overflow-x: auto; scrollbar-width: none; }
.lx-tabs::-webkit-scrollbar { display: none; }
.lx-tab { flex: 1 0 auto; font: inherit; font-size: .88rem; font-weight: 600; color: var(--muted); background: transparent; border: 0; border-radius: 9px; padding: 9px 14px; cursor: pointer; white-space: nowrap; }
.lx-tab:hover { color: var(--text); }
.lx-tab.on { background: #34342e; color: var(--text); }
.lx-panel { min-height: 330px; }
.lx-chart { display: block; width: 100%; height: clamp(190px, 22vw, 260px); background: #1f1f1c; border-radius: 14px; }
.lx-grid line { stroke: #2f2f2a; stroke-width: 1; }
.lx-dd-zone { fill: rgba(240, 123, 114, .09); }
.lx-line { fill: none; stroke: var(--brand); stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; }
.lx-years text { fill: #77766c; font: 11px Inter, system-ui, sans-serif; }
.lx-callout { display: flex; gap: 8px; align-items: baseline; color: #cfcdc2; font-size: .9rem; margin: 14px 0 16px; }
.lx-dot-bad { width: 8px; height: 8px; border-radius: 50%; background: #f07b72; flex: none; transform: translateY(-1px); }
.lx-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0; }
.lx-kpis div { background: #1f1f1c; border-radius: 12px; padding: 12px 14px; }
.lx-kpis dt { color: var(--muted); font-size: .76rem; margin-bottom: 2px; }
.lx-kpis dd { margin: 0; font-family: var(--serif); font-size: 1.55rem; line-height: 1.1; }
.lx-kpis .neg, .lx-trades .neg { color: #f07b72; }
.lx-trades .pos { color: var(--brand); }

.lx-heat { display: grid; grid-template-columns: 40px repeat(12, minmax(0, 1fr)); gap: 5px; align-items: center; }
.lx-heat-m { text-align: center; color: #77766c; font-size: .72rem; }
.lx-heat-y { color: var(--muted); font-size: .78rem; }
.lx-heat .c, .lx-legend .c { display: block; height: 30px; border-radius: 6px; background: #2f2f2a; }
.cp2 { background: rgba(124, 201, 161, .8) !important; }
.cp1 { background: rgba(124, 201, 161, .38) !important; }
.cn1 { background: rgba(240, 123, 114, .38) !important; }
.cn2 { background: rgba(240, 123, 114, .8) !important; }
.cz { background: #2a2a25 !important; }
.lx-legend { display: flex; align-items: center; gap: 8px 10px; flex-wrap: wrap; margin: 16px 0 0; color: var(--muted); font-size: .8rem; }
.lx-legend .c { display: inline-block; width: 14px; height: 14px; border-radius: 4px; margin-left: 6px; }
.lx-legend-note { color: #cfcdc2; font-size: .88rem; margin: 14px 0 0; }
.lx-legend .lx-legend-note { margin: 0 0 0 auto; }
.lx-table-wrap { overflow-x: auto; border-radius: 12px; background: #1f1f1c; }
.lx-trades { width: 100%; border-collapse: collapse; font-size: .88rem; font-variant-numeric: tabular-nums; }
.lx-trades th { text-align: left; color: var(--muted); font-weight: 500; font-size: .78rem; padding: 12px 14px; border-bottom: 1px solid #34342e; }
.lx-trades td { padding: 12px 14px; border-bottom: 1px solid #2a2a25; white-space: nowrap; }
.lx-trades tr:last-child td { border-bottom: 0; }

/* ------------------------------------------------------------------ bands */
.lx-band { padding: clamp(64px, 9vw, 128px) var(--gut); border-top: 1px solid var(--line); }
.lx-band:nth-of-type(even) { background: var(--band); }
.lx-band-inner { max-width: var(--inner); margin: 0 auto; }

.lx-why-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 96px); align-items: start; }
.lx-why .lx-h2 { position: sticky; top: 32px; }
.lx-why-list { display: grid; gap: 0; }
.lx-why-item { padding: 28px 0; border-bottom: 1px solid var(--line); }
.lx-why-item:first-child { padding-top: 6px; }
.lx-why-item h3 { font-size: 1.2rem; margin: 0 0 8px; }
.lx-why-item p { color: #cfcdc2; margin: 0; line-height: 1.65; max-width: 62ch; }

.lx-io-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 44px; }
.lx-in { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 26px; display: flex; flex-direction: column; }
.lx-in-label { color: var(--brand); font-weight: 600; font-size: .9rem; margin: 0 0 14px; }
.lx-quote { font-family: var(--serif); font-size: 1.4rem; line-height: 1.35; margin: 0; }
.lx-rules { margin: 0; padding-left: 18px; display: grid; gap: 8px; color: #d9d7cc; line-height: 1.5; }
.lx-code { margin: 0; background: #1a1a17; border-radius: 12px; padding: 16px; font: .82rem/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: #d9d7cc; overflow-x: auto; }
.lx-code .k { color: var(--brand); }
.lx-code .s { color: var(--amber); }
.lx-langs { color: var(--muted); font-size: .84rem; margin: 14px 0 0; }

.lx-timeline { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; counter-reset: none; }
.lx-timeline li { position: relative; padding: 0 26px 0 0; display: flex; flex-direction: column; }
.lx-timeline li::before { content: ""; position: absolute; left: 44px; right: 0; top: 21px; height: 1px; background: var(--line); }
.lx-timeline li:last-child::before { display: none; }
.lx-step { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--brand); color: var(--brand); display: inline-flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 1.3rem; margin-bottom: 22px; background: var(--band); position: relative; }
.lx-timeline h3 { font-size: 1.08rem; margin: 0 0 8px; }
.lx-timeline p { color: #cfcdc2; font-size: .94rem; line-height: 1.55; margin: 0 0 16px; flex: 1; }
.lx-pay { align-self: flex-start; font-size: .82rem; font-weight: 700; color: var(--amber); background: rgba(231, 176, 93, .1); border: 1px solid rgba(231, 176, 93, .35); border-radius: 999px; padding: 4px 12px; }
.lx-pay.lx-free { color: var(--muted); background: transparent; border-color: var(--line); font-weight: 600; }
.lx-pay-step .lx-step { border-color: var(--amber); color: var(--amber); }

.lx-deploy-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 96px); align-items: center; }
.lx-checks { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; }
.lx-checks li { position: relative; padding-left: 32px; color: #d9d7cc; line-height: 1.55; }
.lx-checks li::before { content: ""; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%; background: var(--ok-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237cc9a1' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8'/%3E%3C/svg%3E") center / 14px no-repeat; }
.lx-checks b { color: var(--text); }
.lx-console { background: #1a1a17; border: 1px solid var(--line); border-radius: 20px; padding: 22px; }
.lx-console-row { display: grid; grid-template-columns: 1fr auto auto; gap: 14px; align-items: center; padding: 14px 16px; background: var(--surface); border-radius: 14px; margin-bottom: 10px; }
.lx-console-row b { display: block; }
.lx-console-row small { color: var(--muted); }
.lx-mode { font-size: .78rem; font-weight: 700; border-radius: 999px; padding: 4px 12px; }
.lx-mode-paper { color: var(--muted); border: 1px solid var(--line); }
.lx-mode-live { color: var(--brand-ink); background: var(--brand); }
.lx-switch { width: 44px; height: 26px; border-radius: 999px; background: var(--line); position: relative; }
.lx-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; }
.lx-switch.on { background: var(--brand); }
.lx-switch.on::after { left: 21px; }
.lx-console-log { margin-top: 14px; padding: 14px 16px; border-radius: 14px; background: var(--surface); font-size: .86rem; color: #cfcdc2; }
.lx-console-log p { margin: 0 0 8px; }
.lx-console-log p:last-child { margin: 0; }
.lx-console-log time { color: var(--brand); font-variant-numeric: tabular-nums; margin-right: 10px; }
.lx-console-note { color: #77766c; font-size: .76rem; margin: 12px 0 0; }

.lx-offer-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 24px; align-items: stretch; }
.lx-offer-main { background: linear-gradient(180deg, rgba(124, 201, 161, .09), rgba(124, 201, 161, 0) 50%), var(--surface); border: 1px solid rgba(124, 201, 161, .5); border-radius: 24px; padding: clamp(26px, 3vw, 44px); }
.lx-price { margin: 10px 0 4px; color: var(--muted); }
.lx-price span { font-family: var(--serif); font-size: clamp(3rem, 4vw, 4.2rem); color: var(--text); line-height: 1; margin-right: 8px; }
.lx-price-note { color: var(--muted); margin: 0 0 6px; }
.lx-offer-main .lx-checks { margin-bottom: 30px; }
.lx-offer-main .lx-fine { text-align: center; }
.lx-offer-alt { border: 1px solid var(--line); border-radius: 24px; padding: clamp(24px, 2.6vw, 36px); display: flex; flex-direction: column; }
.lx-offer-alt h3 { font-family: var(--serif); font-weight: 400; font-size: 1.6rem; margin: 0 0 10px; }
.lx-offer-alt p { color: #cfcdc2; line-height: 1.6; }
.lx-alt-price { font-family: var(--serif); font-size: 2rem; color: var(--text) !important; margin-top: auto; }
.lx-alt-price small { font-family: Inter, system-ui, sans-serif; font-size: .86rem; color: var(--muted); }

.lx-faq-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 96px); }
.lx-faq-list { max-width: none; margin: 0; }
.lx-faq-list summary { font-size: 1.05rem; }

.lx-close { text-align: center; padding: clamp(72px, 10vw, 140px) var(--gut) 40px; border-top: 1px solid var(--line);
  background: radial-gradient(700px 300px at 50% 0%, rgba(124, 201, 161, .1), transparent 70%); }
.lx-close .lx-h2 { max-width: 22ch; margin: 0 auto 30px; }
.lx-disclaimer { padding: 0 var(--gut) 30px; max-width: 980px; }
.lx-sticky { display: none; }

/* ------------------------------------------------------------------ tablet */
@media (max-width: 1100px) {
  .lx-hero { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .lx-h1 { max-width: 16ch; }
  .lx-timeline { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 40px; }
  .lx-timeline li:nth-child(3)::before { display: none; }
}

/* ------------------------------------------------------------------ mobile: its own layout */
@media (max-width: 760px) {
  .page-landing { padding-bottom: 84px; }                    /* room for the sticky bar */
  .page-landing .topbar .nav a:not(.nav-cta) { display: none; }  /* one clear action up top */
  .page-landing .topbar-inner { flex-wrap: nowrap; }

  .lx-hero { padding: 28px 20px 40px; gap: 32px; background: radial-gradient(500px 340px at 80% 0%, rgba(124, 201, 161, .12), transparent 70%); }
  .lx-kicker { font-size: .86rem; margin-bottom: 12px; }
  .lx-h1 { font-size: clamp(2.5rem, 11vw, 3.2rem); line-height: 1; margin-bottom: 16px; }
  .lx-lede { font-size: 1.02rem; margin-bottom: 22px; }
  .lx-cta-row { flex-direction: column; align-items: stretch; gap: 14px; }
  .lx-cta-row .btn { width: 100%; }
  .lx-cta-row .lx-link { align-self: center; }
  .lx-assure { margin-bottom: 24px; }
  .lx-facts { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 72%; overflow-x: auto; scroll-snap-type: x mandatory; gap: 10px; border: 0; margin: 0 -20px; padding: 0 20px 4px; scrollbar-width: none; }
  .lx-facts::-webkit-scrollbar { display: none; }
  .lx-facts div, .lx-facts div + div { scroll-snap-align: start; border: 1px solid var(--line); border-radius: 14px; padding: 14px; }

  .lx-report { margin: 0 -20px; border-radius: 0; border-left: 0; border-right: 0; padding: 22px 20px; box-shadow: none; }
  .lx-badge { font-size: .7rem; }
  .lx-tab { flex: 0 0 auto; padding: 9px 12px; font-size: .84rem; }
  .lx-panel { min-height: 0; }
  .lx-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lx-heat { grid-template-columns: 30px repeat(12, minmax(0, 1fr)); gap: 3px; }
  .lx-heat .c { height: 20px; border-radius: 4px; }
  .lx-heat-m { font-size: .62rem; }
  .lx-heat-y { font-size: .66rem; }
  .lx-legend .lx-legend-note { margin: 6px 0 0; flex-basis: 100%; }

  .lx-band { padding: 56px 20px; }
  .lx-h2 { font-size: clamp(1.8rem, 8vw, 2.3rem); }
  .lx-why-grid, .lx-deploy-grid, .lx-offer-grid, .lx-faq-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .lx-why .lx-h2 { position: static; }
  .lx-why-item { padding: 20px 0; }

  .lx-io-grid { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 84%; overflow-x: auto; scroll-snap-type: x mandatory; margin: 28px -20px 0; padding: 0 20px 6px; gap: 12px; scrollbar-width: none; }
  .lx-io-grid::-webkit-scrollbar { display: none; }
  .lx-in { scroll-snap-align: start; padding: 22px; }
  .lx-quote { font-size: 1.25rem; }

  .lx-timeline { grid-template-columns: minmax(0, 1fr); margin-top: 28px; row-gap: 0; }
  .lx-timeline li { display: grid; grid-template-columns: 44px 1fr; column-gap: 16px; padding: 0 0 28px; }
  .lx-timeline li::before { display: block !important; left: 21px; right: auto; top: 44px; bottom: 0; width: 1px; height: auto; }
  .lx-timeline li:last-child::before { display: none !important; }
  .lx-step { grid-row: span 3; margin: 0; }
  .lx-timeline h3, .lx-timeline p, .lx-pay { grid-column: 2; }
  .lx-pay { justify-self: start; }
  .lx-timeline h3 { margin-top: 10px; }
  .lx-timeline p { margin-bottom: 10px; }

  .lx-console { order: 2; }
  .lx-offer-main { padding: 26px 22px; }
  .lx-close { padding: 64px 20px 32px; }
  .lx-close .btn { width: 100%; }
  .lx-disclaimer { padding: 0 20px 24px; }

  .lx-sticky { display: flex; align-items: center; justify-content: space-between; gap: 12px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(26, 26, 23, .96); border-top: 1px solid var(--line); backdrop-filter: blur(8px); }
  .lx-sticky b { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.4rem; line-height: 1; }
  .lx-sticky small { color: var(--muted); font-size: .78rem; }
  .lx-sticky .btn { padding: 13px 20px; font-size: .98rem; }
  .page-landing .consent { bottom: 84px; }
}

@media (prefers-reduced-motion: reduce) { .page-landing * { scroll-behavior: auto !important; } }
html:has(.page-landing) { scroll-behavior: smooth; }

/* ready-made algos lead: console in the hero, backtest report as a secondary section */
.lx-hero .lx-console { padding: clamp(20px, 2vw, 30px); box-shadow: 0 30px 80px rgba(0, 0, 0, .35); }
.lx-bt-report { max-width: 860px; margin: clamp(32px, 4vw, 56px) auto 0; }
.lx-bt-cta { margin-top: 28px; }
@media (max-width: 760px) { .lx-hero .lx-console { order: 2; } .lx-bt-report .lx-report { margin: 0 -20px; } }
