/* landing.css -- marketing page only; dashboard keeps style.css */

.lp {
  --lp-font: "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --x-bright: #3fd160;
  --o-bright: #f0524f;
  --amber: #d29922;
  font-family: var(--lp-font);
  font-variant-numeric: tabular-nums;
}
main:has(.lp) { max-width: 1120px; }

.lp h1, .lp h2 {
  font-family: var(--lp-font);
  font-stretch: 112%;
  letter-spacing: -0.02em;
  font-weight: 800;
  text-wrap: balance;
}
.lp h1 { font-size: clamp(40px, 6.4vw, 72px); line-height: 0.98; margin: 0 0 22px; }
.lp h2 { font-size: clamp(26px, 3.2vw, 36px); line-height: 1.1; margin: 0 0 14px; }
.lp p { color: var(--muted); font-size: 17px; line-height: 1.6; max-width: 34em; margin: 0; }

/* ---------- hero ---------- */
.lp-hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 24px 0 72px;
}
.lp-lede { margin-bottom: 30px !important; font-size: 18px !important; }
.lp-cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.lp-price { color: var(--muted); font-size: 14px; }
.lp .cta { font-family: var(--lp-font); font-size: 16px; padding: 14px 26px; }
.lp .cta:focus-visible, .lp-replay:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }

.lp-hero-chart {
  position: relative;
  margin: 0;
  background: var(--panel);
  border: 1px solid var(--grid);
  border-radius: 14px;
  padding: 16px 16px 12px;
}
.lp-chart-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 6px; }
.lp-sym { font-weight: 800; font-stretch: 112%; font-size: 18px; }
.lp-last { color: var(--muted); font-size: 14px; }
.lp-last strong { color: var(--text); font-weight: 600; }
.lp-live { margin-left: auto; display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--x-bright); }
.lp-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--x-bright); animation: lp-blink 1.6s ease-in-out infinite; }
@keyframes lp-blink { 50% { opacity: 0.25; } }

#hero-svg { width: 100%; height: auto; display: block; }
.lp-hero-chart figcaption { color: var(--muted); font-size: 12px; margin-top: 4px; }

.lp-signal {
  position: absolute;
  left: 84px;
  top: 58px;
  display: flex;
  flex-direction: column;
  background: rgba(46, 160, 67, 0.14);
  border: 1px solid var(--x);
  border-radius: 10px;
  padding: 10px 14px;
  animation: lp-pop 0.35s ease-out;
}
.lp-signal strong { color: var(--x-bright); font-size: 15px; }
.lp-signal span { font-size: 13px; color: var(--text); }
@keyframes lp-pop { from { transform: scale(0.85); opacity: 0; } }

.lp-replay {
  position: absolute;
  right: 16px;
  bottom: 10px;
  background: none;
  border: 1px solid var(--grid);
  color: var(--muted);
  border-radius: 6px;
  font: 13px var(--lp-font);
  padding: 4px 10px;
  cursor: pointer;
}
.lp-replay:hover { color: var(--text); border-color: var(--muted); }

/* chart marks (shared by hero + compare) */
.lp .grid line { stroke: var(--grid); stroke-width: 1; }
.lp .axis { fill: var(--muted); font-size: 10px; font-family: var(--lp-font); }
.lp .mk-x { stroke: var(--x-bright); stroke-width: 2.4; stroke-linecap: round; fill: none; }
.lp .mk-o { stroke: var(--o-bright); stroke-width: 2.2; fill: none; }
.lp .mk-x.fire { stroke: #8af59e; stroke-width: 3; }
.lp .fire-ring { fill: none; stroke: var(--x-bright); stroke-width: 1.5; animation: lp-ring 1.4s ease-out 3; transform-box: fill-box; transform-origin: center; }
@keyframes lp-ring { from { transform: scale(0.6); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }
.lp .resist { stroke: #d29922; stroke-width: 1.5; stroke-dasharray: 5 4; }
.lp .resist-label { fill: #d29922; font-size: 10px; font-family: var(--lp-font); }

/* ---------- feature rows ---------- */
.lp-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  padding: 64px 0;
  border-top: 1px solid var(--grid);
}
.lp-row-flip .lp-copy { order: 2; }

.lp-steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; gap: 22px; }
.lp-steps li {
  counter-increment: s;
  position: relative;
  padding-left: 58px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}
.lp-steps li::before {
  content: counter(s);
  position: absolute;
  left: 0;
  top: -4px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--x);
  color: var(--x-bright);
  font-weight: 800;
  font-size: 18px;
  display: grid;
  place-items: center;
}
.lp-steps strong { display: block; color: var(--text); font-size: 18px; }

.lp-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.lp-compare figure {
  margin: 0;
  background: var(--panel);
  border: 1px solid var(--grid);
  border-radius: 12px;
  padding: 12px;
}
.lp-compare svg { width: 100%; height: auto; display: block; }
.lp-compare figcaption { color: var(--muted); font-size: 13px; margin-top: 8px; }
.lp .wick { stroke-width: 1; }
.lp .wick.up, .lp .body.up { stroke: var(--x); fill: var(--x); }
.lp .wick.dn, .lp .body.dn { stroke: var(--o); fill: var(--o); }

.lp-patterns { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.lp-pattern-col {
  background: var(--panel);
  border: 1px solid var(--grid);
  border-radius: 12px;
  padding: 20px 22px;
}
.lp-pattern-col h3 { margin: 0 0 12px; font-size: 17px; }
.lp-pattern-col h3.buy { color: var(--x-bright); }
.lp-pattern-col h3.sell { color: var(--o-bright); }
.lp-pattern-col ul { list-style: none; margin: 0; padding: 0; }
.lp-pattern-col li { padding: 9px 0; border-top: 1px solid var(--grid); font-size: 15px; }

.lp-panel {
  background: var(--panel);
  border: 1px solid var(--grid);
  border-left: 4px solid var(--x);
  border-radius: 12px;
  padding: 18px 22px;
}
.lp-panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.lp-chip { font-size: 13px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.lp-chip.buy { background: rgba(46, 160, 67, 0.18); color: var(--x-bright); }
.lp-panel dl { margin: 0; }
.lp-panel dl div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid var(--grid); }
.lp-panel dt { color: var(--muted); font-size: 14px; }
.lp-panel dd { margin: 0; font-weight: 600; font-size: 15px; text-align: right; }
.lp-panel dd.x { color: var(--x-bright); }
.lp-panel dd.o { color: var(--o-bright); }

.lp-close { text-align: center; padding: 72px 0 8px; border-top: 1px solid var(--grid); }
.lp-close p { margin: 0 auto 24px; }

/* ---------- responsive / motion ---------- */
@media (max-width: 860px) {
  .lp-hero, .lp-row { grid-template-columns: 1fr; gap: 32px; }
  .lp-row-flip .lp-copy { order: 0; }
  .lp-row { padding: 48px 0; }
}
@media (max-width: 520px) {
  .lp-compare, .lp-patterns { grid-template-columns: 1fr; }
  .lp-signal { position: static; margin-top: 8px; }
  .site-header { padding: 14px 16px; }
  main:has(.lp) { padding-left: 16px; padding-right: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .lp *, .lp *::before { animation: none !important; }
}
.lp-more { margin-top: 16px !important; } .lp-more a { font-weight: 600; }

/* ---------- no jargon ---------- */
.lp-nojargon { padding: 64px 0; border-top: 1px solid var(--grid); }
.lp-nj-head { max-width: 760px; margin-bottom: 36px; }
.lp-nj-body { display: grid; grid-template-columns: 1fr 1.25fr; gap: 40px; align-items: start; }
.lp-nj-pile h3, .lp-nj-rule h3 { font-family: var(--lp-font); font-size: 17px; margin: 0 0 14px; }
.lp-nj-pile h3 { color: var(--muted); font-weight: 600; }
.lp-nj-pile ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.lp-nj-pile li {
  position: relative;
  padding: 7px 12px;
  border: 1px dashed var(--grid);
  border-radius: 6px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
}
.lp-nj-pile li::after {
  content: "";
  position: absolute; left: 8px; right: 8px; top: 50%;
  border-top: 2px solid var(--o);
  transform: rotate(-8deg);
  opacity: 0.85;
}
.lp-nj-pile abbr { text-decoration: none; cursor: help; }
.lp-nj-rules { display: grid; gap: 16px; }
.lp-nj-rule {
  display: grid; grid-template-columns: 180px 1fr; gap: 20px; align-items: center;
  background: var(--panel); border: 1px solid var(--grid); border-radius: 12px; padding: 14px 20px 14px 14px;
}
.lp-nj-rule.buy { border-left: 4px solid var(--x); }
.lp-nj-rule.sell { border-left: 4px solid var(--o); }
.lp-nj-rule .kb-fig { margin: 0; padding: 0; border: 0; background: none; }
.lp-nj-rule h3 { font-size: 22px; font-stretch: 112%; font-weight: 800; margin-bottom: 6px; }
.lp-nj-rule.buy h3 { color: var(--x-bright); }
.lp-nj-rule.sell h3 { color: var(--o-bright); }
.lp-nj-rule p { font-size: 17px; color: var(--text); }
@media (max-width: 860px) {
  .lp-nj-body { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .lp-nj-rule { grid-template-columns: 1fr; }
  .lp-nj-rule .kb-fig { max-width: 200px; }
}

/* ---------- hero rules (no-jargon promise above the fold) ---------- */
.lp-nolist { font-size: 20px !important; color: var(--text) !important; font-weight: 600; margin: 0 0 18px !important; }
.lp-hero-rules { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 10px; }
.lp-hero-rules li { display: flex; align-items: center; gap: 12px; font-size: 17px; line-height: 1.4; color: var(--muted); }
.lp-hero-rules strong { color: var(--text); }
.lp-glyph {
  flex: none; width: 34px; height: 34px; border-radius: 8px;
  display: grid; place-items: center; font-weight: 800; font-size: 18px;
}
.lp-hero-rules .buy .lp-glyph { color: var(--x-bright); background: rgba(46,160,67,.15); border: 1px solid var(--x); }
.lp-hero-rules .sell .lp-glyph { color: var(--o-bright); background: rgba(218,54,51,.15); border: 1px solid var(--o); }
.lp-hero-rules .buy strong { color: var(--x-bright); }
.lp-hero-rules .sell strong { color: var(--o-bright); }
.lp-hero .lp-lede { font-size: 17px !important; margin-bottom: 26px !important; }
.lp-hero { padding-top: 8px; }
.lp-claim { font-size: 21px !important; font-weight: 700; color: var(--x-bright) !important; margin: -8px 0 16px !important; font-stretch: 105%; }
@media (max-width: 520px) { .lp-claim { font-size: 18px !important; } }

/* hero: crossed-out candlestick indicators */
.lp-hero .lp-nolist { margin-bottom: 10px !important; }
.lp-hero-jargon { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.lp-hero-jargon li {
  position: relative; padding: 4px 9px; border: 1px dashed var(--grid); border-radius: 6px;
  color: var(--muted); font-size: 13px; font-weight: 600;
}
.lp-hero-jargon li::after {
  content: ""; position: absolute; left: 6px; right: 6px; top: 50%;
  border-top: 2px solid var(--o); transform: rotate(-8deg); opacity: 0.85;
}
.lp-hero-jargon abbr { text-decoration: none; cursor: help; }
.lp-justxo { font-size: 20px !important; font-weight: 700; color: var(--text) !important; margin: 0 0 16px !important; }
