/* The landing page (landing.html), on ui.css's tokens: the same warm black, Chivo
   for words, Chivo Mono for figures, hairline rules, colour only for gain, loss and
   attention. Two things move, each for a reason: the ladder draws one coin's cycle,
   and the yellow line follows the reader down the steps, as the app's "follow the
   yellow lines" does. Everything else stands still once it has eased in. */

.l-body { --wrap: 1180px; --gut: var(--side); }

.l-skip { position: absolute; left: var(--s4); top: -60px; z-index: 10; padding: var(--s2) var(--s3); background: var(--ink); color: var(--bg); border-radius: var(--r); font-weight: 800; }
.l-skip:focus { top: var(--s3); }

/* ---- the bar ---------------------------------------------------------------- */

.l-bar {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s4);
  max-width: var(--wrap); height: 64px; margin: 0 auto; padding: 0 var(--gut);
}
.l-nav { display: flex; align-items: center; gap: var(--s2); }
/* The app's bar drops the name on narrow screens; on this page it is the page's name. */
.l-bar .word, .l-foot .word { display: inline; }

/* ---- the hero: what it is, beside the ladder --------------------------------------- */

.l-hero {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: var(--s8);
  align-items: start; max-width: var(--wrap); margin: 0 auto; padding: 72px var(--gut) 88px;
}
.l-hero h1 { font-size: 44px; line-height: 50px; font-weight: 800; letter-spacing: -0.02em; text-wrap: balance; max-width: 15em; }
.l-lead { margin-top: var(--s5); max-width: 34em; font-size: 17px; line-height: 27px; color: var(--ink-2); }
.l-cta { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s6); }

.l-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: var(--s7); border-top: 1px solid var(--line); }
.l-facts > div { padding: var(--s4) var(--s4) 0 0; }
.l-facts > div + div { padding-left: var(--s4); border-left: 1px solid var(--line); }
.l-facts dt, .l-figs dt, .l-fig-title {
  font-size: 11px; line-height: 16px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3);
}
.l-facts dd { margin-top: var(--s1); font-size: 14px; line-height: 20px; font-weight: 700; color: var(--ink); }

/* ---- the ladder ---------------------------------------------------------------- */

.l-ladder { padding: var(--s5); border: 1px solid var(--line); border-radius: var(--r); background: var(--bg-2); }
.l-fig-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--s1) var(--s4); }
.l-fig-note { font: 400 11px/16px var(--mono); color: var(--ink-3); }

.l-chart { display: block; width: 100%; height: auto; margin-top: var(--s4); overflow: visible; transition: opacity 320ms var(--ease); }
.l-chart.l-fade { opacity: 0.2; }
.l-grid line { stroke: var(--line); stroke-width: 1; }
.l-price { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.l-head { fill: var(--ink); }
.l-avg { opacity: 0; transition: opacity var(--med) var(--ease), transform 320ms var(--ease); }
.l-avg.on { opacity: 1; }
.l-avg line { stroke: var(--ink-3); stroke-width: 1.5; stroke-dasharray: 5 5; }
.l-avg text, .l-mark text { font: 400 10px var(--mono); fill: var(--ink-3); }
.l-gap { stroke-width: 3; stroke-linecap: butt; opacity: 0; stroke: var(--ink-4); transition: opacity var(--fast); }
.l-gap.on { opacity: 1; }
.l-gap.gain { stroke: var(--gain); }
.l-gap.loss { stroke: var(--loss); }
/* Bought is yellow and sold is green, as Trade history marks them. */
.l-mark circle { stroke: var(--bg-2); stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: l-pop 260ms var(--spring) both; }
.l-buy circle { fill: var(--attn); }
.l-sell circle { fill: var(--gain); }
.l-sell text { fill: var(--gain); font-weight: 700; }
@keyframes l-pop { from { transform: scale(0); } }

.l-figs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s3); margin-top: var(--s4); padding-top: var(--s4); border-top: 1px solid var(--line); }
.l-figs dd { margin-top: 2px; font-size: 18px; line-height: 24px; font-weight: 600; color: var(--ink); transition: color var(--fast); }

.l-phases { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s4) var(--s5); margin-top: var(--s5); counter-reset: phase; }
.l-phases li { position: relative; padding-left: 34px; counter-increment: phase; }
.l-phases li::before {
  content: "0" counter(phase); position: absolute; left: 0; top: 0;
  font: 600 12px/20px var(--mono); color: var(--ink-3); transition: color var(--fast);
}
.l-phases li::after { content: ""; position: absolute; left: 0; top: 24px; width: 20px; height: 2px; background: transparent; transition: background-color var(--fast); }
.l-phases b { display: block; font-size: 14px; line-height: 20px; font-weight: 800; color: var(--ink-2); transition: color var(--fast); }
.l-phases span { display: block; margin-top: 2px; font-size: 13px; line-height: 19px; color: var(--ink-3); }
.l-phases li.now::before { color: var(--attn); }
.l-phases li.now::after { background: var(--attn); }
.l-phases li.now b { color: var(--ink); }
.l-phases li.done b { color: var(--ink-2); }
.l-still .l-phases b { color: var(--ink); }

/* ---- the sections ---------------------------------------------------------------- */

.l-sec { position: relative; max-width: var(--wrap); margin: 0 auto; padding: 88px var(--gut); }
/* The rule between sections keeps to the content's edges, as the rows' rules do. */
.l-sec::before, .l-foot::before { content: ""; position: absolute; top: 0; left: var(--gut); right: var(--gut); height: 1px; background: var(--line); }
.l-sec-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s2) var(--s4); margin-bottom: var(--s6); }
.l-num { font: 600 13px var(--mono); color: var(--ink-3); }
.l-sec h2 { font-size: 30px; line-height: 36px; font-weight: 800; letter-spacing: -0.015em; }
.l-meta { font-size: 14px; color: var(--ink-3); }

.l-rows > div { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: var(--s5); padding: var(--s5) 0; border-top: 1px solid var(--line); }
.l-rows > div:last-child { border-bottom: 1px solid var(--line); }
.l-rows dt { font-size: 15px; line-height: 24px; font-weight: 800; color: var(--ink); }
.l-rows dd { max-width: 40em; font-size: 15px; line-height: 24px; color: var(--ink-2); }

/* What it costs: one figure large, read from the platform. */
.l-cost { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: var(--s5); align-items: end; margin-bottom: var(--s6); }
.l-cost-fig { display: flex; flex-direction: column; gap: var(--s1); }
.l-big { align-self: flex-start; font-size: 64px; line-height: 68px; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); }
.l-big.is-loading { color: transparent; background: var(--bg-3); border-radius: var(--r); }
.l-big-unit { font-size: 15px; color: var(--ink-2); }
.l-cost-text { max-width: 40em; font-size: 17px; line-height: 27px; color: var(--ink-2); }

.l-refs { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s6); }
.l-ref { display: inline-flex; align-items: baseline; gap: var(--s3); }
.l-ref b { color: var(--ink); font-weight: 800; }
.l-ref s { font-size: 18px; color: var(--ink-3); text-decoration-thickness: 2px; }
.l-ref span { color: var(--ink-3); }
.l-ref em { font-style: normal; font-size: 24px; line-height: 28px; font-weight: 700; }
.l-ref-text { display: block; margin-top: var(--s2); }

/* ---- the way in, along the yellow line -------------------------------------------------- */

.l-path { position: relative; padding-left: 56px; }
.l-path::before, .l-rail-fill { content: ""; position: absolute; left: 15px; top: 16px; bottom: 16px; width: 2px; }
.l-path::before { background: var(--line-2); }
.l-rail-fill { display: block; height: calc(100% - 32px); background: var(--attn); transform: scaleY(0); transform-origin: top; }
.l-path li { position: relative; padding-bottom: var(--s7); }
.l-path li:last-child { padding-bottom: 0; }
.l-dot {
  position: absolute; left: -56px; top: -4px; width: 32px; height: 32px; display: grid; place-items: center;
  border: 1px solid var(--line-2); border-radius: 50%; background: var(--bg);
  font: 600 13px var(--mono); color: var(--ink-3);
  transition: color var(--med), border-color var(--med);
}
.l-path li.is-past .l-dot { border-color: var(--attn); color: var(--attn); }
.l-path li.is-now .l-dot { border-color: var(--attn); color: var(--bg); background: var(--attn); animation: l-ask 2.6s ease-in-out infinite; }
@keyframes l-ask { 50% { box-shadow: 0 0 0 7px var(--attn-wash), 0 0 0 1px rgba(242, 179, 61, 0.4); } }
.l-step h3 { font-size: 18px; line-height: 24px; font-weight: 800; }
.l-step p { max-width: 38em; margin-top: var(--s2); font-size: 15px; line-height: 24px; color: var(--ink-2); }
.l-step > .btn { margin-top: var(--s4); }
.l-links { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s4); }
.l-video { max-width: 560px; margin-top: var(--s4); }

.l-end { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3) var(--s5); margin-top: var(--s8); padding-left: 56px; color: var(--ink-3); }

.l-foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s4);
  position: relative; max-width: var(--wrap); margin: 0 auto; padding: var(--s6) var(--gut);
}
.l-foot-nav { display: flex; gap: var(--s5); }

/* ---- easing in, once ---------------------------------------------------------------- */

.l-js .l-reveal { opacity: 0; transform: translateY(14px); transition: opacity 320ms var(--ease), transform 320ms var(--ease); }
.l-js .l-reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .l-js .l-reveal { opacity: 1; transform: none; transition: none; }
  .l-chart, .l-avg, .l-gap, .l-figs dd, .l-dot { transition: none; }
  .l-mark circle { animation: none; }
  .l-path li.is-now .l-dot { animation: none; box-shadow: 0 0 0 5px var(--attn-wash); }
}

/* ---- narrower screens -------------------------------------------------------------- */

@media (max-width: 1080px) {
  .l-hero { grid-template-columns: minmax(0, 1fr); gap: var(--s7); padding-top: var(--s8); }
  .l-ladder { max-width: 680px; }
}
@media (max-width: 760px) {
  .l-body { --gut: var(--s4); }
  .l-bar { height: 56px; }
  .l-nav .btn { height: 34px; padding: 0 12px; font-size: 13px; }
  .l-hero { padding: var(--s6) var(--gut) var(--s8); }
  .l-hero h1 { font-size: 31px; line-height: 37px; }
  .l-lead { font-size: 16px; line-height: 25px; }
  .l-cta .btn { flex: 1 1 auto; }
  .l-facts { grid-template-columns: minmax(0, 1fr); }
  .l-facts > div, .l-facts > div + div { padding: var(--s3) 0; border-left: 0; }
  .l-facts > div + div { border-top: 1px solid var(--line); }
  .l-ladder { padding: var(--s4); }
  .l-figs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .l-phases { grid-template-columns: minmax(0, 1fr); }
  .l-sec { padding: var(--s8) var(--gut); }
  .l-sec h2 { font-size: 24px; line-height: 30px; }
  .l-rows > div, .l-cost { grid-template-columns: minmax(0, 1fr); gap: var(--s2); }
  .l-big { font-size: 52px; line-height: 56px; }
  .l-path { padding-left: 48px; }
  .l-dot { left: -48px; }
  .l-end { padding-left: 0; }
  .l-end .btn { width: 100%; }
}

/* The live counters above the last call to action (UX round 2, 3-Nov-2026). */
.l-live { margin: var(--s7) 0 var(--s4); padding: var(--s5) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.l-live-intro { max-width: 40em; font-size: 15px; line-height: 24px; color: var(--ink-2); }
.l-counters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s4); margin-top: var(--s5); }
.l-counters dt { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.l-counters dd { margin-top: 4px; font-size: 28px; line-height: 34px; font-weight: 800; color: var(--ink); }
@media (max-width: 639px) { .l-counters { grid-template-columns: 1fr; } .l-counters dd { font-size: 22px; line-height: 28px; } }
