/* Runner site (index.html). Standalone: does not load the app's CSS. */
:root {
  --bg: #0f1012; --s1: #141517; --s2: #17181b; --line: rgba(255,255,255,.09); --line2: rgba(255,255,255,.16);
  --t: #f2f4f7; --mut: #a3a8b0; --dim: #6a7079; --lime: #7cc6ff;
  --up: #26a69a; --dn: #ef5350; --ours: #2f80ff;
  --f-d: 'Unbounded', system-ui, sans-serif; --f-b: 'Inter', system-ui, sans-serif; --f-m: 'JetBrains Mono', ui-monospace, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--t); font: 400 16px/1.55 var(--f-b); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 40px; }
.mono { font-family: var(--f-m); }
.dim { color: var(--dim); }
.up { color: var(--lime); } .center { text-align: center; }
h1, h2, h3 { margin: 0; font-family: var(--f-d); color: var(--t); }
h2 { font-size: clamp(30px, 4.2vw, 48px); font-weight: 700; line-height: 1.05; letter-spacing: -0.05em; }
h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.04em; line-height: 1.2; }
p { margin: 0; color: var(--mut); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 500 11px/1.4 var(--f-m); letter-spacing: .16em; text-transform: uppercase; color: var(--lime); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 10px var(--lime); animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: .35; } }

/* Buttons: white, black when pressed (app convention) */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 9px; border: 0; cursor: pointer;
  background: var(--t); color: #050505; font: 600 13px var(--f-d); letter-spacing: -0.02em; transition: transform .12s, background .12s, color .12s; }
.btn:hover { transform: translateY(-1px); }
.btn:active { background: #050505; color: var(--t); box-shadow: inset 0 0 0 1px var(--line2); transform: none; }
.btn.sm { height: 36px; padding: 0 14px; font-size: 12px; }
.btn.lg { height: 58px; padding: 0 30px; font-size: 16px; }
.btn.ghost { background: transparent; color: var(--t); box-shadow: inset 0 0 0 1px var(--line2); }
.btn.ghost:hover { box-shadow: inset 0 0 0 1px rgba(124,198,255,.5); }
.btn.lime { background: var(--lime); }

/* Wordmark: white letters, black outline, lime offset layer, forward lean.
   Hover: the letters squeeze into the Runner yo-yo, its string swinging behind and crisp streaks around it.
   Hover off: the coin shrinks away and the letters spring back. */
.wm { position: relative; display: inline-block; margin-left: 26px; font: 800 24px/1 var(--f-d); letter-spacing: -0.06em;
  transform: skewX(-12deg); transform-origin: 50% 100%; transition: transform .18s cubic-bezier(.3,1.6,.5,1); }
.wm-t { position: relative; z-index: 0; isolation: isolate; display: block; color: #fff;
  -webkit-text-stroke: 3px #050505; paint-order: stroke fill;
  transition: transform .34s cubic-bezier(.3,1.5,.5,1) .1s, opacity .2s .12s; }
.wm-t::before { content: attr(data-text); position: absolute; left: 4px; top: 4px; z-index: -1; color: var(--lime); -webkit-text-stroke: 3px #050505; paint-order: stroke fill; }
.wm::after { content: ""; position: absolute; right: calc(100% + 4px); top: 18%; height: 70%; width: 30px; z-index: -2; pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--lime)) 100% 12% / 20px 2px no-repeat,
              linear-gradient(90deg, transparent, var(--t)) 100% 48% / 30px 2px no-repeat,
              linear-gradient(90deg, transparent, var(--lime)) 100% 86% / 14px 2px no-repeat;
  transition: right .3s cubic-bezier(.3,1.3,.5,1), width .3s; }

/* The yo-yo (the logo): white face, black hub, lime back half on a dark axle; its string trails behind
   in place of the middle speed line and swings up and down while it rolls. Box is the SVG's viewBox
   (-62..14 × -14..14); the yo-yo's centre sits 4.34em from the left, .98em from the top. */
.wm-coin { position: absolute; left: 50%; top: 50%; width: 5.32em; height: 1.96em; margin: -.98em 0 0 -4.34em; pointer-events: none;
  transform-origin: 4.34em .98em; transform: skewX(12deg) translateX(-8px) scale(.2) rotate(-70deg); opacity: 0;
  transition: transform .22s cubic-bezier(.5,0,.75,.5), opacity .18s; will-change: transform, opacity; }
.wm-coin svg { display: block; width: 100%; height: 100%; overflow: visible; }
.wm-coin .yy-str { transform-box: view-box; transform-origin: -9px 0px; animation: yySwing .46s ease-in-out infinite alternate paused; }   /* pivots where it leaves the yo-yo */
@keyframes yySwing { from { transform: rotate(-3.6deg) scaleY(.85); } to { transform: rotate(3.6deg) scaleY(1.15); } }
.wm:hover, .wm:focus-visible { transform: skewX(-12deg);   /* the link stays put (moving it made the hover flicker at the edge) */ }
.wm:hover .wm-t, .wm:focus-visible .wm-t { transform: scale(.05, .6); opacity: 0; transition: transform .2s cubic-bezier(.6,0,.9,.5), opacity .16s .04s; }
.wm:hover .wm-coin, .wm:focus-visible .wm-coin { transform: skewX(12deg) translateX(10px) scale(1) rotate(0); opacity: 1; transition: transform .42s cubic-bezier(.25,1.35,.45,1) .08s, opacity .16s .08s; }
.wm:hover .wm-coin .yy-str, .wm:focus-visible .wm-coin .yy-str { animation-play-state: running; }
.wm:hover::after, .wm:focus-visible::after { right: calc(50% + .9em); top: -6%; height: 112%; width: 56px; animation: streak .28s linear infinite;
  background: linear-gradient(90deg, transparent, var(--lime)) 100% 4% / 40px 2px no-repeat,
              linear-gradient(90deg, transparent, var(--lime)) 100% 96% / 30px 2px no-repeat; }   /* the string runs between them */
.wm.sm { font-size: 18px; margin-left: 20px; }
@media (prefers-reduced-motion: reduce) {
  .wm-coin .yy-str, .wm:hover::after { animation: none !important; }
}
@keyframes streak { 0% { transform: translateX(8px); opacity: 0; } 25% { opacity: 1; } 100% { transform: translateX(-12px); opacity: 0; } }

/* Nav */
.nav { position: sticky; top: 0; z-index: 20; transition: background .2s, box-shadow .2s; }
.nav.scrolled { background: rgba(15,16,18,.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.nav-in { display: flex; align-items: center; gap: 28px; height: 72px; }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { font: 500 13px var(--f-d); letter-spacing: -0.02em; color: var(--mut); transition: color .12s; }
.nav-links a:hover { color: var(--t); }
.nav-cta { display: flex; gap: 10px; }

/* Hero */
.hero { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 24px; padding-top: 72px; padding-bottom: 40px; }
.display { font-size: clamp(44px, 8vw, 96px); font-weight: 800; line-height: 1.04; letter-spacing: -0.055em; text-wrap: balance; }
/* Outline line: fill in the page colour with the stroke painted underneath, so overlapping glyph contours don't show */
.display .out { color: var(--bg); -webkit-text-stroke: 3px var(--t); paint-order: stroke fill; letter-spacing: -0.035em; }
.lede { max-width: 620px; font-size: 18px; text-wrap: balance; }
.hint { font: 400 12px var(--f-m); color: var(--dim); letter-spacing: .02em; }
.hint.ok { color: var(--lime); }

/* Starter: name + ticker + hold button */
.starter { display: flex; gap: 10px; align-items: stretch; margin-top: 10px; padding: 8px; border-radius: 14px; background: var(--s1); box-shadow: inset 0 0 0 1px var(--line); }
.field { display: flex; flex-direction: column; justify-content: center; gap: 2px; padding: 6px 14px; border-radius: 9px; background: var(--s2); text-align: left; min-width: 170px; cursor: text; position: relative; }
.field span { font: 500 9.5px var(--f-m); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.field input { width: 100%; background: none; border: 0; outline: 0; color: var(--t); font: 600 15px var(--f-d); letter-spacing: -0.03em; padding: 0; }
.field input::placeholder { color: #3e3e3e; }
.field:focus-within { box-shadow: inset 0 0 0 1px rgba(124,198,255,.45); }
.field.tick { min-width: 150px; flex-direction: row; flex-wrap: wrap; align-items: baseline; column-gap: 2px; }
.field.tick span { width: 100%; }
.field.tick b { font: 600 15px var(--f-d); color: var(--mut); }
.field.tick input { width: auto; flex: 1; text-transform: uppercase; }

.hold { position: relative; overflow: hidden; display: flex; align-items: center; gap: 14px; min-width: 240px; height: 58px; padding: 0 20px; border: 0; border-radius: 10px; cursor: pointer;
  background: #111; color: var(--t); user-select: none; -webkit-user-select: none; touch-action: none;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.25), 4px 4px 0 #3a3a3a;
  font: 600 13px/1 var(--f-m); letter-spacing: .1em; text-transform: uppercase; }
.hold:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
.hold-fill { position: absolute; inset: 0; transform-origin: left; transform: scaleX(var(--p, 0)); background: linear-gradient(90deg, rgba(242,242,242,.13), rgba(124,198,255,.27)); }
.lights { position: relative; display: flex; gap: 7px; }
.lights i { position: relative; width: 14px; height: 14px; border-radius: 50%; overflow: hidden; background: #1a1a1a; box-shadow: inset 0 0 0 1.5px #3a3a3a; }
.lights b { position: absolute; inset: 0; border-radius: 50%; background: #e6e6e6; transform: scale(0); }
.hold-t { position: relative; white-space: nowrap; }
.hold.go .hold-fill { background: var(--lime); transform: none; }
.hold.go .lights b { background: var(--lime); box-shadow: 0 0 10px var(--lime); transform: scale(1) !important; }
.hold.go .lights i { box-shadow: inset 0 0 0 1.5px #050505; }
.hold.go .hold-t { color: #050505; }
.hold.nudge { animation: nudge .35s; }
@keyframes nudge { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }

/* Chart card */
.chart-card { width: 100%; max-width: 1040px; margin-top: 36px; padding: 18px 18px 14px; border-radius: 14px; background: #0a0a0a; box-shadow: inset 0 0 0 1px var(--line), 0 40px 120px -40px rgba(124,198,255,.12); text-align: left; }
.ch-head { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-bottom: 10px; font-size: 13px; }
.ch-tk { font: 700 15px var(--f-d); letter-spacing: -0.04em; }
.ch-head .dn { color: var(--dn); }
.live { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font: 500 10px var(--f-m); letter-spacing: .14em; color: var(--mut); }
.live i { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 8px var(--lime); animation: blink 1.4s infinite; }
#chSvg { display: block; width: 100%; height: 330px; }
.ch-foot { display: flex; gap: 16px; margin-top: 8px; font-size: 10.5px; color: #7a7a7a; letter-spacing: .04em; flex-wrap: wrap; }
.ch-foot .r { margin-left: auto; }
.sw { display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 2px; }
.sw.up { background: var(--up); } .sw.dn { background: var(--dn); } .sw.ours { background: var(--ours); }

/* Sections */
.sec { padding-top: 120px; }
.sec-head { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; margin-bottom: 48px; }
.sec-head h2 { max-width: 760px; text-wrap: balance; }

/* How it works */
.how { display: grid; grid-template-columns: minmax(0, 460px) minmax(0, 1fr); gap: 72px; align-items: center; }
.how-copy h2 { margin: 10px 0 26px; }
.steps { list-style: none; margin: 0; padding: 0; }
.steps li { display: grid; grid-template-columns: 44px 1fr; gap: 10px; padding: 20px 0; border-top: 1px solid var(--line); }
.steps em { font: 600 12px var(--f-m); font-style: normal; color: var(--lime); letter-spacing: .08em; padding-top: 4px; }
.steps h3 { margin-bottom: 6px; }

/* Steps loop card (light card, ink + lime) */
.loop { --ink: #0a0a0a; --card: #f2f2f2; --S: 8s; position: relative; padding: 22px 24px 24px; border-radius: 10px; background: var(--card); color: var(--ink); box-shadow: 7px 7px 0 #5a5a5a; overflow: hidden; }
.loop .a { animation-duration: var(--S); animation-iteration-count: infinite; animation-play-state: var(--play, running); }
.loop-tag { display: inline-block; font: 600 10.5px var(--f-m); letter-spacing: .14em; text-transform: uppercase; padding: 4px 8px; border-radius: 3px; border: 1px solid rgba(10,10,10,.33); background: rgba(10,10,10,.05); }
.loop-title { font: 800 27px/1.12 var(--f-d); letter-spacing: -0.055em; margin: 14px 70px 16px 0; text-shadow: 2px 2px 0 #9a9a9a; }
.loop-track { position: relative; height: 34px; margin: 2px 68px 12px 6px; }
.lt-line { position: absolute; left: 0; right: 0; top: 7px; height: 2px; background: repeating-linear-gradient(90deg, rgba(10,10,10,.25) 0 6px, transparent 6px 10px); }
.lt-fill { position: absolute; left: 0; top: 7px; height: 2px; width: 0; background: var(--ink); animation-name: ltFill; animation-timing-function: cubic-bezier(.65,0,.25,1); }
.lt-pacer { position: absolute; top: 1px; left: 0; margin-left: -18px; width: 15px; height: 14px; z-index: 2; background: var(--lime); clip-path: polygon(0 0, 100% 50%, 0 100%, 28% 50%);
  filter: drop-shadow(1.5px 0 0 #0a0a0a) drop-shadow(-1px 0 0 #0a0a0a) drop-shadow(0 1px 0 #0a0a0a) drop-shadow(0 -1px 0 #0a0a0a);
  animation-name: ltRun; animation-timing-function: cubic-bezier(.65,0,.25,1); }
.lt-n { position: absolute; top: 0; z-index: 1; display: grid; gap: 5px; font: 600 9.5px var(--f-m); letter-spacing: .1em; text-transform: uppercase; color: rgba(10,10,10,.45); }
.lt-n i { width: 9px; height: 9px; transform: rotate(45deg); background: var(--card); border: 1.5px solid var(--ink); margin-top: 3px; }
.lt-n.n1 { left: 0; justify-items: start; animation-name: ltN1; }
.lt-n.n2 { left: 50%; transform: translateX(-50%); justify-items: center; animation-name: ltN2; }
.lt-n.n3 { right: 0; justify-items: end; animation-name: ltN3; }
.loop-stage { position: relative; height: 40px; margin-right: 58px; }
.lp { position: absolute; inset: 0; display: flex; align-items: center; gap: 10px; opacity: 0; animation-name: lpShow; animation-fill-mode: both; }
.lp.p2 { animation-delay: 2s; } .lp.p3 { animation-delay: 4s; } .lp.p4 { animation-delay: 6s; }
.lp em { font: 700 11px var(--f-m); font-style: normal; color: var(--lime); background: var(--ink); padding: 4px 6px; border-radius: 4px; }
.lp .cap { font: 700 17px var(--f-d); letter-spacing: -0.045em; white-space: nowrap; }
.chips { margin-left: auto; display: flex; gap: 5px; }
.chip { font: 600 10px var(--f-m); font-style: normal; padding: 5px 8px; border-radius: 4px; background: rgba(10,10,10,.07); animation-name: chip; }
.chip:first-child { animation-name: chipStay; } .chip:nth-child(2) { animation-delay: .35s; } .chip:nth-child(3) { animation-delay: .7s; }
.type { margin-left: auto; font: 800 18px var(--f-d); letter-spacing: -0.05em; overflow: hidden; white-space: nowrap; border-right: 2px solid var(--ink); width: calc(var(--ch, 7) * 1ch + .4ch);
  animation-name: type, caret; animation-duration: var(--S), .5s; animation-timing-function: steps(var(--ch, 7)), steps(1); animation-delay: 2s, 0s; }
.bars { margin-left: auto; display: flex; align-items: flex-end; gap: 4px; height: 34px; }
.bar { width: 7px; height: 4px; border-radius: 2px 2px 0 0; background: var(--ink); animation-name: bar; animation-timing-function: cubic-bezier(.3,1.6,.5,1); }
.bar:nth-child(1) { animation-delay: 4s; } .bar:nth-child(2) { animation-delay: 4.08s; } .bar:nth-child(3) { animation-delay: 4.16s; }
.bar:nth-child(4) { animation-delay: 4.24s; } .bar:nth-child(5) { animation-delay: 4.32s; } .bar:nth-child(6) { animation-delay: 4.4s; }
.bar.last { background: #4f9ad6; }
.livepill { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font: 700 11px var(--f-m); letter-spacing: .14em; background: var(--lime); padding: 6px 10px; border-radius: 5px; box-shadow: 2px 2px 0 var(--ink); animation-name: livePop; animation-delay: 6s; }
.livepill i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink); animation: blink .6s infinite; }
.loop-go { position: absolute; right: 22px; bottom: 22px; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--card); box-shadow: 3px 3px 0 #9a9a9a; font-size: 18px; transition: transform .15s; }
.loop-go:hover { transform: translateX(3px); }
@keyframes ltRun { 0%,20% { left: 0 } 27%,45% { left: 50% } 52%,94% { left: 100%; opacity: 1 } 97% { left: 100%; opacity: 0 } 98% { left: 0; opacity: 0 } 100% { left: 0; opacity: 1 } }
@keyframes ltFill { 0%,20% { width: 0 } 27%,45% { width: 50% } 52%,96% { width: 100%; opacity: 1 } 98% { width: 100%; opacity: 0 } 99% { width: 0; opacity: 0 } 100% { width: 0; opacity: 1 } }
@keyframes ltN1 { 0%,22% { color: #0a0a0a } 25%,100% { color: rgba(10,10,10,.45) } }
@keyframes ltN2 { 0%,25% { color: rgba(10,10,10,.45) } 27%,47% { color: #0a0a0a } 50%,100% { color: rgba(10,10,10,.45) } }
@keyframes ltN3 { 0%,50% { color: rgba(10,10,10,.45) } 52%,96% { color: #0a0a0a } 100% { color: rgba(10,10,10,.45) } }
@keyframes lpShow { 0% { opacity: 0; transform: translateY(10px); filter: blur(3px) } 4%,21% { opacity: 1; transform: none; filter: none } 25%,100% { opacity: 0; transform: translateY(-10px); filter: blur(3px) } }
@keyframes chip { 0%,3% { background: rgba(10,10,10,.07); color: #0a0a0a; transform: none } 6%,9% { background: #0a0a0a; color: #7cc6ff; transform: translateY(-3px) } 12%,100% { background: rgba(10,10,10,.07); color: #0a0a0a; transform: none } }
@keyframes chipStay { 0%,3% { background: rgba(10,10,10,.07); color: #0a0a0a } 6%,22% { background: #0a0a0a; color: #7cc6ff } 25%,100% { background: rgba(10,10,10,.07); color: #0a0a0a } }
@keyframes type { 0%,3% { width: 0 } 15%,100% { width: calc(var(--ch, 7) * 1ch + .4ch) } }
@keyframes caret { 50% { border-color: transparent } }
@keyframes bar { 0%,3% { height: 4px } 9%,22% { height: var(--h) } 25%,100% { height: 4px } }
@keyframes livePop { 0% { transform: scale(.6) } 5% { transform: scale(1.12) rotate(-3deg) } 9%,100% { transform: scale(1) } }

/* Feature cards */
.grid4 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.card { display: flex; flex-direction: column; gap: 12px; padding: 32px; border-radius: 14px; background: var(--s1); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .15s, transform .15s; }
.card:hover { box-shadow: inset 0 0 0 1px rgba(124,198,255,.35); transform: translateY(-2px); }

/* Console teaser: a static replica of the app's live console (folder cards with buy/sell rows, one unfolded) */
.console { display: grid; grid-template-columns: 1.55fr 1fr; gap: 16px; align-items: stretch; }
.cs-folders, .cs-box { border-radius: 16px; background: rgba(14,14,14,.86); box-shadow: inset 0 0 0 1px var(--line), 0 30px 60px -30px rgba(0,0,0,.8); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.cs-folders { padding: 16px; display: grid; gap: 10px; }
.cs-top { display: flex; align-items: baseline; justify-content: space-between; padding: 2px 4px 4px; }
.cs-top .lbl { margin: 0; }
.cs-sum { font-size: 11.5px; color: var(--dim); } .cs-sum b { color: var(--lime); font-weight: 500; }
.lbl { display: flex; align-items: center; justify-content: space-between; font: 500 10px var(--f-m); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); margin-bottom: 12px; }
.lbl .on { font-style: normal; color: var(--lime); letter-spacing: .08em; }
/* folder card */
.fc { border-radius: 12px; background: var(--s2); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.fc.open { box-shadow: inset 0 0 0 1px rgba(124,198,255,.28); }
.fc-h { width: 100%; display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: none; border: 0; color: inherit; cursor: pointer; text-align: left; }
.fc-chev { color: var(--dim); transition: transform .2s; flex: none; }
.fc.open .fc-chev { transform: rotate(90deg); color: var(--lime); }
.fc-t { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; color: var(--mut); }
.fc-t b { font: 600 14px var(--f-d); letter-spacing: -.03em; color: var(--t); }
.fc-t small { font: 400 12px var(--f-b); color: var(--dim); }
.fc-st { text-align: right; font-size: 11px; color: var(--dim); line-height: 1.35; }
.fc-st b { color: var(--t); font-weight: 500; font-size: 12.5px; }
.fc-st em { display: block; font-style: normal; color: var(--lime); }
.fc-act { display: grid; gap: 6px; padding: 0 14px 12px 38px; }
.pr { display: grid; grid-template-columns: 34px repeat(6, 1fr); gap: 5px; align-items: center; }
.pl { font: 600 10px var(--f-m); letter-spacing: .1em; text-transform: uppercase; }
.pl.b { color: var(--lime); } .pl.s { color: #ff8a80; }
.pc { font: 500 11px var(--f-m); font-style: normal; text-align: center; padding: 6px 0; border-radius: 6px; cursor: default; transition: background .12s, color .12s, transform .12s; }
.pc.b { background: rgba(124,198,255,.07); color: #b6dcf7; box-shadow: inset 0 0 0 1px rgba(124,198,255,.16); }
.pc.s { background: rgba(239,83,80,.07); color: #f3a39f; box-shadow: inset 0 0 0 1px rgba(239,83,80,.18); }
.pc.b:hover { background: var(--lime); color: #050505; transform: translateY(-1px); }
.pc.s:hover { background: #ef5350; color: #050505; transform: translateY(-1px); }
/* unfolded wallet list */
.fc:not(.open) .fc-body { display: none; }
.fc-body { border-top: 1px solid var(--line); padding: 8px 14px 12px 38px; background: rgba(0,0,0,.18); }
.wl { display: grid; grid-template-columns: 16px 1.4fr .8fr .8fr 64px; gap: 10px; align-items: center; padding: 7px 0; border-bottom: 1px solid rgba(255,255,255,.05); font-size: 12.5px; }
.wl.head { font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); padding: 4px 0 8px; }
.wl .r { text-align: right; }
.wl-n { display: flex; align-items: baseline; gap: 8px; } .wl-n b { font: 600 12.5px var(--f-d); } .wl-n small { color: var(--dim); font-size: 10.5px; }
.ck { width: 14px; height: 14px; border-radius: 4px; box-shadow: inset 0 0 0 1.5px #3a3a3a; }
.ck.on { background: var(--lime); box-shadow: none; position: relative; }
.ck.on::after { content: ""; position: absolute; left: 4.5px; top: 1.5px; width: 3.5px; height: 7px; border: solid #050505; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.mv { font: 500 10.5px var(--f-m); color: var(--dim); text-align: center; padding: 4px 0; border-radius: 6px; box-shadow: inset 0 0 0 1px var(--line); }
.fc-foot { display: flex; align-items: center; gap: 8px; padding-top: 10px; }
.fund { padding: 6px 10px; border-radius: 7px; background: var(--s1); box-shadow: inset 0 0 0 1px var(--line); font-size: 11.5px; } .fund em { font-style: normal; color: var(--dim); }
.fb { font: 600 11px var(--f-d); padding: 7px 12px; border-radius: 7px; background: var(--t); color: #050505; }
.fb.ghost { background: none; color: var(--t); box-shadow: inset 0 0 0 1px var(--line2); }
.sel-n { margin-left: auto; font-size: 11px; color: var(--lime); }
/* side boxes */
.cs-side { display: flex; flex-direction: column; gap: 16px; }
.cs-res { flex: 1; display: flex; flex-direction: column; }
.lbl em { font-style: normal; letter-spacing: .06em; text-transform: none; color: var(--dim); }
.res-top { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: end; padding-bottom: 14px; margin-bottom: 4px; border-bottom: 1px solid rgba(255,255,255,.05); }
.res-top small { display: block; font: 500 10px var(--f-m); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.res-top b { display: block; font-size: 24px; font-weight: 500; letter-spacing: -.02em; margin: 4px 0 2px; }
.res-top span { font-size: 12px; }
.res-top svg { width: 100%; height: 54px; display: block; }   /* .res-tip sits on its last point (232, 4 of 50) */
.cs-res .kv { flex: 1; align-items: center; }   /* rows share the panel's height evenly */
.cs-box { padding: 20px 22px; }
.kv { display: flex; justify-content: space-between; padding: 8px 0; font-size: 14px; color: var(--mut); border-bottom: 1px solid rgba(255,255,255,.05); }
.kv:last-child { border-bottom: 0; }
.kv b { color: var(--t); font-weight: 500; }
.ladder { display: grid; gap: 8px; }
.ladder i { display: flex; justify-content: space-between; font: 500 11.5px var(--f-m); font-style: normal; color: var(--t); padding: 9px 12px; border-radius: 8px; background: linear-gradient(90deg, rgba(124,198,255,.2) var(--w), var(--s2) var(--w)); box-shadow: inset 0 0 0 1px var(--line); }
.ladder i b { font-weight: 500; color: var(--lime); }
.hint-s { display: block; margin-top: 12px; font-size: 10.5px; color: var(--dim); }
#console .center { margin-top: 28px; }

/* API */
.api { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 480px); gap: 56px; align-items: center; padding: 56px; border-radius: 20px; background: var(--s1); box-shadow: inset 0 0 0 1px var(--line); }
.api-copy { display: flex; flex-direction: column; gap: 16px; }
.wait { display: flex; gap: 8px; margin-top: 6px; }
.wait input { flex: 1; min-width: 0; height: 44px; padding: 0 14px; border-radius: 9px; border: 0; background: var(--s2); color: var(--t); font: 400 14px var(--f-b); outline: 0; box-shadow: inset 0 0 0 1px var(--line); }
.wait input:focus { box-shadow: inset 0 0 0 1px rgba(124,198,255,.45); }
.api-code { padding: 12px 24px; border-radius: 12px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); }
.api-code div { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: baseline; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.api-code div:last-child { border-bottom: 0; }
.api-code em { font-style: normal; font-weight: 600; color: var(--lime); }
.api-code small { color: var(--dim); font-size: 11px; }

/* Final CTA + footer */
.final { display: flex; flex-direction: column; align-items: center; gap: 28px; text-align: center; padding-bottom: 40px; }
.final h2 { font-size: clamp(40px, 7vw, 80px); font-weight: 800; }
.foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 80px; padding-bottom: 40px; font-size: 11px; border-top: 1px solid var(--line); margin-top: 80px; }


@media (prefers-reduced-motion: reduce) {
  .loop .a, .dot, .live i, .livepill i { animation: none !important; }
  .lp.p1 { opacity: 1; } .lt-fill { width: 0; }
  html { scroll-behavior: auto; }
}

@media (max-width: 1080px) {
  .nav-links { display: none; }
  .nav-cta { margin-left: auto; }
  .how { grid-template-columns: 1fr; gap: 48px; }
  .loop { max-width: 520px; }
  .console, .api { grid-template-columns: 1fr; }
  .api { padding: 32px; gap: 32px; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .nav-cta .ghost { display: none; }
  .hero { padding-top: 40px; }
  .starter { flex-direction: column; width: 100%; }
  .field, .hold { min-width: 0; width: 100%; }
  .grid4 { grid-template-columns: 1fr; }
  .card { padding: 24px; }
  .fc-act, .fc-body { padding-left: 14px; }
  .wl { grid-template-columns: 16px 1fr .8fr 0; } .wl > :nth-child(4), .wl .mv { display: none; }
  #chSvg { height: 240px; }
  .ch-foot .r { margin-left: 0; width: 100%; }
  .loop-title { font-size: 22px; margin-right: 0; }
  .loop-track { margin-right: 10px; } .loop-stage { margin-right: 0; margin-bottom: 52px; }
  .lp .cap { font-size: 15px; }
  .api-code div { grid-template-columns: 40px 1fr; }
  .api-code small { grid-column: 2; }
  .wait { flex-direction: column; }
  .foot { flex-direction: column; align-items: flex-start; }
  .sec { padding-top: 88px; }
}

/* Runner City universe (js/universe.js): fixed WebGL canvas behind everything */
#universe { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 0; pointer-events: none; display: block; }
body::before { content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(ellipse 60% 55% at 50% 50%, rgba(5,5,5,.62), rgba(5,5,5,.15) 75%), linear-gradient(180deg, rgba(5,5,5,.6), rgba(5,5,5,0) 18%, rgba(5,5,5,0) 82%, rgba(5,5,5,.7)); }
main, .foot { position: relative; z-index: 1; }
.nav { z-index: 20; }

/* API · MCP card doubles as the finish-line flag, hung from the 3D gantry's crossbar
   (pillars + crossbar fitted to the card in js/universe.js). The card itself is transparent;
   .cloth is the fabric: weave, drifting folds, sagging top edge, wavy checkered hems,
   lit by the gantry's lime lamps from above and the city from below. */
.api { position: relative; isolation: isolate; padding-top: 76px; padding-bottom: 76px; background: none; box-shadow: none;
  transform-origin: 50% 0; animation: flagSway 8s ease-in-out infinite; }
.api > .api-copy, .api > .api-code { position: relative; z-index: 2; }
.api .cloth { position: absolute; inset: 0; z-index: 0; border-radius: 2px 2px 8px 8px; filter: url(#fabric) drop-shadow(0 40px 50px rgba(0,0,0,.6));
  --tile: calc((100% - 36px) / 9);
  background:
    radial-gradient(38% 45% at 0% 0%, rgba(124,198,255,.11), transparent 70%),
    radial-gradient(38% 45% at 100% 0%, rgba(124,198,255,.11), transparent 70%),
    linear-gradient(0deg, rgba(225,235,215,.07), transparent 38%),
    repeating-linear-gradient(0deg, rgba(255,255,255,.022) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.018) 0 1px, transparent 1px 3px),
    rgba(15,16,13,.76);
  /* top edge sags slightly between its hang points */
  -webkit-mask: radial-gradient(52% 11px at 50% 0, transparent 96%, #000 100%) 18px 0 / var(--tile) 100% repeat-x;
          mask: radial-gradient(52% 11px at 50% 0, transparent 96%, #000 100%) 18px 0 / var(--tile) 100% repeat-x; }
.api .cloth::before, .api .cloth::after { content: ""; position: absolute; left: 0; right: 0; height: 28px; opacity: .78;
  background: repeating-conic-gradient(#e4e4e4 0 25%, #070707 0 50%) 0 0 / 28px 28px; }
.api .cloth::before { top: 8px; box-shadow: 0 1px 0 rgba(124,198,255,.45); }
.api .cloth::after { bottom: 0; box-shadow: 0 -1px 0 rgba(124,198,255,.45); }
/* folds: soft light/dark vertical bands at two periods, drifting like cloth in a breeze */
.api .shade { position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.05) 0, rgba(255,255,255,0) 70px, rgba(0,0,0,.32) 150px, rgba(255,255,255,0) 210px, rgba(255,255,255,.05) 260px),
    repeating-linear-gradient(90deg, rgba(0,0,0,0) 0, rgba(0,0,0,.18) 90px, rgba(255,255,255,.03) 170px, rgba(0,0,0,0) 190px);
  background-size: 260px 100%, 190px 100%;
  animation: clothFolds 9s ease-in-out infinite alternate; }
@keyframes flagSway {
  0%, 100% { transform: perspective(1600px) rotateX(1deg) skewX(0deg); }
  50% { transform: perspective(1600px) rotateX(-.8deg) skewX(-.3deg); }
}
@keyframes clothFolds { from { background-position: 0 0, 0 0; } to { background-position: 90px 0, -70px 0; } }
@media (prefers-reduced-motion: reduce) { .api, .api .shade { animation: none; } }
@media (max-width: 1080px) { .api { padding-top: 56px; padding-bottom: 56px; } }
/* keep the whole flag + gantry in view at the end of the page */
.final { padding-top: 56px; gap: 22px; }
.foot { margin-top: 40px; padding-top: 40px; }
@media (min-width: 1081px) { .api { padding-top: 64px; padding-bottom: 60px; } }

/* the hero chart is the screen on the blimp's side (blimp drawn in js/universe.js) */
.chart-card { position: relative; z-index: 1; box-shadow: inset 0 0 0 1px rgba(124,198,255,.22), 0 0 0 4px rgba(8,9,10,.9), 0 0 0 5px rgba(255,255,255,.14), 0 0 60px rgba(124,198,255,.08); }

/* blimp screen chart */
.ch-plot { position: relative; }
.ch-tag { position: absolute; right: 0; transform: translate(0, -50%); padding: 3px 8px; border-radius: 5px; background: var(--lime); color: #050505; font-size: 11px; font-weight: 600; pointer-events: none; box-shadow: 0 0 14px rgba(124,198,255,.35); }
.sw.line { background: #f2f2f2; height: 2px; vertical-align: middle; }
.sw.ours { background: var(--lime); transform: rotate(45deg) scale(.85); }
.sw.vol { background: rgba(255,255,255,.3); }
.chart-card { overflow: hidden; }
.chart-card::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: repeating-linear-gradient(0deg, rgba(255,255,255,.022) 0 1px, transparent 1px 3px), radial-gradient(120% 90% at 50% 40%, transparent 60%, rgba(0,0,0,.35)); }

/* the chart card is now only the blimp screen's placeholder (the chart is drawn on the hull in 3D) */
.chart-card { background: none !important; box-shadow: none !important; padding: 0 !important; aspect-ratio: 2080 / 860; overflow: visible; }
.chart-card::after { display: none; }
.chart-card .screen-fallback { display: block; width: 100%; height: 100%; border-radius: 14px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Legibility over the 3D city: a soft dark scrim behind text blocks (the city stays visible around
   them) + brighter small text with a dark halo. */
:root { --mut: #a3a3a3; --dim: #707070; }
.how-copy, .sec-head, .hero .lede, .hero .hint, .final { position: relative; isolation: isolate; }
.how-copy::before, .sec-head::before, .hero .lede::before, .final::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none; inset: -48px -64px;
  background: radial-gradient(closest-side, rgba(5,5,5,.82), rgba(5,5,5,.62) 55%, rgba(5,5,5,0));
}
.how-copy::before { inset: -70px -90px -60px -90px; }
.hero .lede::before { inset: -40px -80px; }
.how-copy p, .sec-head p, .hero .lede, .hero .hint, .final p, .how-copy .eyebrow, .sec-head .eyebrow, .hero .eyebrow {
  text-shadow: 0 0 2px #050505, 0 0 10px rgba(5,5,5,.95), 0 1px 3px #000;
}
.steps p { color: #b4b4b4; }
.steps li { border-top-color: rgba(255,255,255,.12); }
/* text scrims reach past the viewport edge: never let them cause sideways scroll */
html { overflow-x: clip; }
.lbl em.on { text-transform: uppercase; letter-spacing: .08em; color: var(--lime); }

/* Starter v2: a raised 3D slab with the brand's hard lime offset, sunken input wells,
   and a chunky lime hold button that presses down. */
.starter { position: relative; gap: 12px; padding: 10px; border-radius: 16px;
  background: linear-gradient(180deg, #1c1d1a, #0f100e);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.09), inset 0 0 0 1px rgba(124,198,255,.28),
              6px 6px 0 #050505, 7px 7px 0 1px rgba(124,198,255,.55), 0 30px 70px -20px rgba(124,198,255,.22); }
.field { background: linear-gradient(180deg, #060606, #0d0e0c); padding: 8px 16px; border-radius: 10px;
  box-shadow: inset 0 2px 6px rgba(0,0,0,.8), inset 0 0 0 1px rgba(255,255,255,.06), 0 1px 0 rgba(255,255,255,.05); transition: box-shadow .15s; }
.field span { color: #6f93b3; }
.field input { font-size: 17px; }
.field input::placeholder { color: #565656; }
.field.tick b { font-size: 17px; color: var(--lime); }
.field:focus-within { box-shadow: inset 0 2px 6px rgba(0,0,0,.8), inset 0 0 0 1.5px var(--lime), 0 0 0 4px rgba(124,198,255,.12); }

.hold { height: 60px; border-radius: 11px; color: #050505;
  background: linear-gradient(180deg, #b0ddff 0%, #7cc6ff 45%, #62b4f2 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7), inset 0 -3px 0 rgba(0,0,0,.14),
              0 5px 0 #346f9e, 0 5px 0 1.5px #050505, 0 14px 28px -6px rgba(124,198,255,.45);
  transform: translateY(-3px); transition: transform .08s, box-shadow .08s; font-weight: 700; }
.hold:hover { filter: brightness(1.05); }
.hold:active, .hold.pressing { transform: translateY(2px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6), inset 0 -2px 0 rgba(0,0,0,.14), 0 0 0 #346f9e, 0 0 0 1.5px #050505, 0 6px 14px -6px rgba(124,198,255,.4); }
.hold-fill { background: linear-gradient(90deg, rgba(5,5,5,.08), rgba(5,5,5,.22)); }
.hold .hold-t { color: #050505; }
.lights i { background: rgba(5,5,5,.75); box-shadow: inset 0 1px 2px #000, 0 1px 0 rgba(255,255,255,.45); }
.lights b { background: #ffffff; box-shadow: 0 0 8px rgba(255,255,255,.9); }
.hold.go { background: #f2f2f2; }
.hold.go .hold-fill { background: transparent; }
.hold.go .lights i { background: #050505; box-shadow: inset 0 0 0 1.5px #050505; }
.hold.go .lights b { background: var(--lime); box-shadow: 0 0 10px var(--lime); }

/* =========================================================
   Scroll motion (js/site.js motion()): data-m = effect, data-s = below | in | above.
   Things run in from where you're heading and run out the way you came.
   ========================================================= */
@property --f { syntax: '<number>'; inherits: false; initial-value: 0; }
[data-m] { --ease: cubic-bezier(.16,.84,.24,1); --d: calc(var(--i, 0) * 70ms);
  transition: transform .9s var(--ease) var(--d), opacity .7s ease var(--d), clip-path .9s var(--ease) var(--d), filter .7s ease var(--d); }
/* rise: up into place, up and away */
[data-m="rise"][data-s="below"] { opacity: 0; transform: translateY(42px); filter: blur(4px); }
[data-m="rise"][data-s="above"] { opacity: 0; transform: translateY(-42px); filter: blur(4px); }
/* run: sprint in from the right leaning forward, sprint off to the left */
[data-m="run"][data-s="below"] { opacity: 0; transform: translateX(90px) skewX(-12deg); }
[data-m="run"][data-s="above"] { opacity: 0; transform: translateX(-90px) skewX(-12deg); }
/* tilt: the steps card swings up out of the floor */
[data-m="tilt"] { transform-origin: 50% 100%; }
[data-m="tilt"][data-s="below"] { opacity: 0; transform: perspective(900px) rotateX(32deg) translateY(70px); }
[data-m="tilt"][data-s="above"] { opacity: 0; transform: perspective(900px) rotateX(-22deg) translateY(-50px); }
/* pop: buttons bounce in */
[data-m="pop"] { transition: transform .7s cubic-bezier(.3,1.7,.5,1) .25s, opacity .4s ease .25s; }
[data-m="pop"]:not([data-s="in"]) { opacity: 0; transform: scale(.7) translateY(14px); }
/* type: eyebrows wipe in left to right like a ticker */
[data-m="type"] { transition: clip-path .8s steps(18) .1s, opacity .3s .1s; }
[data-m="type"]:not([data-s="in"]) { clip-path: inset(0 100% 0 0); opacity: 0; }
/* words: headings rise word by word out of a mask, leaning forward, then straighten */
.sec h2 .w { display: inline-block; overflow: hidden; vertical-align: top; padding: .06em .04em .12em; margin: -.06em -.04em -.12em; }
.sec h2 .w i { display: inline-block; font-style: normal; transition: transform 1s var(--ease, cubic-bezier(.16,.84,.24,1)) calc(var(--i) * 75ms), opacity .6s calc(var(--i) * 75ms); }
[data-m="words"] { transition: none; }
[data-m="words"][data-s="below"] .w i { transform: translateY(110%) skewX(-14deg); opacity: 0; }
[data-m="words"][data-s="above"] .w i { transform: translateY(-110%) skewX(-14deg); opacity: 0; }
/* lane: each step slides in while a lime lane line races across its top */
[data-m="lane"] { position: relative; }
[data-m="lane"]::after { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: linear-gradient(90deg, var(--lime), rgba(124,198,255,0)); transform-origin: left; transition: transform 1s var(--ease) calc(var(--d) + .1s); }
[data-m="lane"]:not([data-s="in"]) { opacity: 0; transform: translateX(-40px); }
[data-m="lane"]:not([data-s="in"])::after { transform: scaleX(0); }
/* unfurl: the finish flag drops down from the crossbar, rolls back up when you leave */
[data-m="unfurl"] { transition: clip-path 1.1s var(--ease), opacity .5s; }
[data-m="unfurl"][data-s="below"] { clip-path: inset(0 0 100% 0); }
[data-m="unfurl"][data-s="above"] { clip-path: inset(0 0 100% 0); opacity: .2; }
/* folders: buy/sell chips ripple on after their card lands */
.fc .pc { transition: transform .5s cubic-bezier(.3,1.6,.5,1) calc(var(--i, 0) * 70ms + var(--j, 0) * 40ms + .25s), opacity .35s calc(var(--i, 0) * 70ms + var(--j, 0) * 40ms + .25s), background .12s, color .12s; }
.fc:not([data-s="in"]) .pc { opacity: 0; transform: scale(.6); }
.fc[data-s="in"] .pc:hover { transform: translateY(-1px); transition-delay: 0s; }
/* ladder bars fill, results sparkline draws */
.ladder i { --f: 0; background: linear-gradient(90deg, rgba(124,198,255,.2) calc(var(--w) * var(--f)), var(--s2) calc(var(--w) * var(--f))); transition: --f 1.2s var(--ease, ease) calc(.3s + var(--k, 0) * 120ms); }
.ladder i:nth-child(2) { --k: 1; } .ladder i:nth-child(3) { --k: 2; }
.cs-box[data-s="in"] .ladder i { --f: 1; }
.res-top svg { clip-path: inset(0 100% 0 0); transition: clip-path 1.3s var(--ease, ease) .35s; }
.cs-res[data-s="in"] .res-top svg { clip-path: inset(0 0 0 0); }
/* hover still feels instant on things that ran in */
.card[data-s="in"]:hover { transform: translateY(-2px); transition-delay: 0s; }
@media (prefers-reduced-motion: reduce) {
  [data-m], [data-m] *, [data-m]::after { transition: none !important; }
  [data-m] { opacity: 1 !important; transform: none !important; clip-path: none !important; filter: none !important; }
  .sec h2 .w i, .fc .pc { opacity: 1 !important; transform: none !important; }
  .ladder i { --f: 1; } .res-top svg { clip-path: none; }
}
[data-m="type"][data-s="in"] { clip-path: inset(-8px -12px -8px -8px); }
[data-m="unfurl"][data-s="in"] { clip-path: inset(-60px -60px -120px -60px); }   /* room for the flag's shadow */
[data-m="pop"][data-s="in"]:hover { transition-delay: 0s; transition-duration: .15s; }

/* =========================================================
   Console in 3D: raised panels with the brand's hard offset, chunky keycap buttons that press down,
   embossed rows and sunken wells, same language as the start bar.
   ========================================================= */
.cs-folders, .cs-box {
  background: linear-gradient(180deg, #1a1b18, #0d0e0c) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), inset 0 0 0 1px rgba(255,255,255,.07),
              6px 6px 0 #050505, 7px 7px 0 1px rgba(124,198,255,.32), 0 40px 70px -30px rgba(0,0,0,.9) !important; }
/* folder cards: a raised tray inside the panel */
.fc { background: linear-gradient(180deg, #191a17, #121311);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07), inset 0 0 0 1px rgba(255,255,255,.06), 0 4px 0 #070707, 0 4px 0 1px rgba(255,255,255,.05); }
.fc.open { box-shadow: inset 0 1px 0 rgba(255,255,255,.08), inset 0 0 0 1px rgba(124,198,255,.35), 0 4px 0 #070707, 0 4px 0 1px rgba(124,198,255,.28), 0 0 30px -10px rgba(124,198,255,.25); }
.fc-body { background: rgba(0,0,0,.32); box-shadow: inset 0 3px 8px rgba(0,0,0,.55); }
/* buy / sell keycaps */
.pc { position: relative; padding: 7px 0 6px; border-radius: 7px; transform: translateY(-2px); }
.pc.b { background: linear-gradient(180deg, #2b3313, #1c220b); color: #c9e6fb;
  box-shadow: inset 0 1px 0 rgba(124,198,255,.28), inset 0 0 0 1px rgba(124,198,255,.22), 0 3px 0 #0b0f02, 0 3px 0 1px rgba(124,198,255,.18); }
.pc.s { background: linear-gradient(180deg, #3a1715, #261010); color: #ffb3ae;
  box-shadow: inset 0 1px 0 rgba(239,83,80,.3), inset 0 0 0 1px rgba(239,83,80,.24), 0 3px 0 #120505, 0 3px 0 1px rgba(239,83,80,.18); }
.fc[data-s="in"] .pc:hover { transform: translateY(-3px); }
.fc[data-s="in"] .pc:active { transform: translateY(1px); box-shadow: inset 0 1px 0 rgba(255,255,255,.2), inset 0 0 0 1px rgba(0,0,0,.4); transition-delay: 0s; }
.pc.b:hover { background: linear-gradient(180deg, #a6d9ff, #6cbaf5); color: #050505; box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 3px 0 #2b5f8a, 0 3px 0 1px #050505, 0 8px 18px -6px rgba(124,198,255,.5); }
.pc.s:hover { background: linear-gradient(180deg, #ff7a73, #e04440); color: #050505; box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 3px 0 #7d1a17, 0 3px 0 1px #050505, 0 8px 18px -6px rgba(239,83,80,.5); }
/* wallet rows, checkboxes, move */
.wl:not(.head) { border-bottom: 1px solid rgba(255,255,255,.04); box-shadow: 0 1px 0 rgba(0,0,0,.5); }
.ck { background: linear-gradient(180deg, #0a0a0a, #151515); box-shadow: inset 0 1px 3px #000, inset 0 0 0 1.5px #3a3a3a, 0 1px 0 rgba(255,255,255,.06); }
.ck.on { background: linear-gradient(180deg, #a6d9ff, #6cbaf5); box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 2px 0 #2b5f8a; }
.mv { background: linear-gradient(180deg, #1d1e1c, #141513); box-shadow: inset 0 1px 0 rgba(255,255,255,.07), inset 0 0 0 1px rgba(255,255,255,.07), 0 2px 0 #050505; }
.fund { background: linear-gradient(180deg, #060606, #0f100e); box-shadow: inset 0 2px 5px rgba(0,0,0,.8), inset 0 0 0 1px rgba(255,255,255,.07); }
.fb { box-shadow: inset 0 1px 0 rgba(255,255,255,.8), 0 3px 0 #8a8a8a, 0 3px 0 1px #050505; transform: translateY(-2px); }
.fb.ghost { background: linear-gradient(180deg, #1d1e1c, #141513); box-shadow: inset 0 1px 0 rgba(255,255,255,.08), inset 0 0 0 1px var(--line2), 0 3px 0 #050505; }
/* market-making rows as embossed strips */
.cs-box .kv { padding: 9px 12px; margin: 0 -4px 6px; border: 0; border-radius: 8px;
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.01)); box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 2px 0 rgba(0,0,0,.6); }
.cs-box .kv:last-child { margin-bottom: 0; }
/* ladder bars: sunken track, raised lime fill */
.ladder i { padding: 10px 12px; border-radius: 9px;
  background: linear-gradient(180deg, rgba(166,217,255,.32), rgba(80,160,230,.22)) 0 0 / calc(var(--w) * var(--f)) 100% no-repeat,
              linear-gradient(180deg, #070707, #10110f) !important;
  box-shadow: inset 0 2px 5px rgba(0,0,0,.75), inset 0 0 0 1px rgba(255,255,255,.07), 0 1px 0 rgba(255,255,255,.05); }
/* results: the PnL sits on a lit plate */
.res-top { padding: 14px; margin: 0 -4px 10px; border-radius: 10px; border: 0;
  background: radial-gradient(120% 140% at 0% 0%, rgba(124,198,255,.14), rgba(124,198,255,0) 60%), linear-gradient(180deg, #151613, #0e0f0d);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), inset 0 0 0 1px rgba(124,198,255,.22), 0 3px 0 #050505; }
.res-top b { text-shadow: 0 0 22px rgba(124,198,255,.45), 0 2px 0 #050505; }

/* Clean white headers across the console; rows pack to the top (no stretched gaps in the folder cards) */
.cs-folders { align-content: start; }
.cs-box .lbl, .cs-top .lbl { font: 600 11.5px var(--f-m); letter-spacing: .14em; color: #f2f2f2; margin-bottom: 14px; }
.cs-top { padding-bottom: 6px; }
.cs-sum { color: #a3a3a3; }
.lbl em { color: #8a8a8a; font-size: 11px; }
.wl.head { color: #cfcfcf; font-weight: 600; }
.res-top small { color: #f2f2f2; font-weight: 600; }
.hint-s { color: #8a8a8a; }
.fc-t small { color: #8a8a8a; }

/* Results, alive: a light sweep across the PnL plate, a pulsing live dot on the sparkline tip,
   the PnL flashing on each new fee claim and "+SOL" pops floating off the plate. */
.res-top { position: relative; overflow: hidden; }
.res-shine { position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.09) 45%, rgba(124,198,255,.12) 50%, transparent 60%) 0 0 / 250% 100% no-repeat;
  animation: resShine 4.2s cubic-bezier(.4,0,.2,1) infinite; animation-play-state: paused; }
.cs-res[data-live="1"] .res-shine { animation-play-state: running; }
@keyframes resShine { 0% { background-position: 130% 0; } 45%, 100% { background-position: -130% 0; } }
.res-top svg { position: relative; }
.res-spark { position: relative; display: block; align-self: end; }
.res-tip { position: absolute; right: 0; top: 8%; width: 9px; height: 9px; margin: -4.5px -4.5px 0 0; border-radius: 50%; background: var(--lime);
  box-shadow: 0 0 12px var(--lime); opacity: 0; transform: scale(0); transition: opacity .3s 1.5s, transform .5s cubic-bezier(.3,1.8,.5,1) 1.5s; }
.cs-res[data-s="in"] .res-tip { opacity: 1; transform: scale(1); }
.res-tip::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--lime); animation: resPing 1.6s ease-out infinite; }
@keyframes resPing { from { transform: scale(.6); opacity: .9; } to { transform: scale(2.6); opacity: 0; } }
#rsPnl { transition: color .2s; }
#rsPnl.flash { animation: resFlash .7s ease-out; }
@keyframes resFlash { 0% { color: #fff; text-shadow: 0 0 30px rgba(124,198,255,1), 0 2px 0 #050505; transform: scale(1.06); } 100% { transform: none; } }
#rsPnl { display: block; width: max-content; transform-origin: left center; }
.res-pop { position: absolute; z-index: 2; bottom: 22%; font-style: normal; font-size: 13px; font-weight: 700; color: var(--lime); pointer-events: none;
  text-shadow: 0 0 12px rgba(124,198,255,.8), 0 1px 0 #050505; animation: resPop 1.7s cubic-bezier(.2,.7,.3,1) forwards; }
@keyframes resPop { 0% { opacity: 0; transform: translateY(10px) scale(.8); } 15% { opacity: 1; transform: translateY(0) scale(1.05); } 100% { opacity: 0; transform: translateY(-34px) scale(1); } }
.res-pnl { position: relative; z-index: 1; }
@media (prefers-reduced-motion: reduce) { .res-shine, .res-tip::after { animation: none; } }

/* ===== Harbor (matches the Wave app): charcoal, sky-blue accent, rounded pills, glowing navy primary ===== */
.btn { border-radius: 999px; background: linear-gradient(180deg, #1d3d5a, #142b42); color: #eaf6ff;
  box-shadow: 0 0 0 1px rgba(124,198,255,.55), 0 6px 22px -6px rgba(90,170,240,.55), inset 0 1px 0 rgba(255,255,255,.12); }
.btn:hover { background: linear-gradient(180deg, #22476a, #183350); color: #fff; }
.btn:active { background: #142b42; color: #eaf6ff; }
.btn.ghost { background: transparent; color: var(--t); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.btn.ghost:hover { box-shadow: inset 0 0 0 1px rgba(124,198,255,.55); }
.btn.lime { background: linear-gradient(180deg, #1d3d5a, #142b42); color: #eaf6ff; }
.starter { border-radius: 18px; background: rgba(20,21,23,.85); box-shadow: inset 0 0 0 1px rgba(255,255,255,.07), 0 20px 60px -30px rgba(90,170,240,.35); }
.field { border-radius: 12px; }
.hold { border-radius: 12px; }
.cs-box { border-radius: 14px; }

/* Runner mark (the harbor running figure) replaces the yo-yo: it sprints in on hover, bobbing in stride */
.wm-coin { width: 2.3em; height: 2.3em; margin: -1.15em 0 0 -1.15em; transform-origin: 50% 50%; }
.wm-coin img { display: block; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 0 10px rgba(124,198,255,.45)); }
.wm:hover .wm-coin img, .wm:focus-visible .wm-coin img { animation: wmStride .32s ease-in-out infinite alternate; }
@keyframes wmStride { from { transform: translateY(1px) rotate(2deg); } to { transform: translateY(-3px) rotate(-3deg); } }
@media (prefers-reduced-motion: reduce) { .wm-coin img { animation: none !important; } }

/* Step checkpoints: open triangles sitting exactly on the line; the pacer (same triangle, filled blue)
   lands on each one and it stays filled behind it until the loop resets */
.lt-n i { display: none; }
.lt-n { top: 22px; }
.lt-cp, .lt-pacer { position: absolute; top: 1px; width: 14px; height: 14px; margin-left: -7px; }
.lt-cp { z-index: 1; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M2.2 1.6 12.6 7 2.2 12.4z' fill='%23f2f2f2' stroke='%230a0a0a' stroke-width='1.6' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.lt-cp::after, .lt-pacer { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M2.2 1.6 12.6 7 2.2 12.4z' fill='%237cc6ff' stroke='%230a0a0a' stroke-width='1.6' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.lt-cp::after { content: ""; position: absolute; inset: 0; opacity: 0; animation: var(--S) linear infinite; animation-play-state: var(--play, running); }
.lt-cp.c1 { left: 0; } .lt-cp.c2 { left: 50%; } .lt-cp.c3 { left: 100%; }
.lt-cp.c1::after { animation-name: ltC1; } .lt-cp.c2::after { animation-name: ltC2; } .lt-cp.c3::after { animation-name: ltC3; }
.lt-pacer { z-index: 2; clip-path: none; filter: drop-shadow(0 2px 4px rgba(79,154,214,.45)); }
@keyframes ltC1 { 0%,96% { opacity: 1 } 98%,100% { opacity: 0 } }
@keyframes ltC2 { 0%,26% { opacity: 0 } 27%,96% { opacity: 1 } 98%,100% { opacity: 0 } }
@keyframes ltC3 { 0%,51% { opacity: 0 } 52%,96% { opacity: 1 } 98%,100% { opacity: 0 } }

/* Hero fits one screen: type and spacing scale with the window height; JS sizes the blimp card to what's left */
@media (min-width: 761px) {
  .hero { padding-top: clamp(20px, 6vh, 72px); gap: clamp(12px, 2.2vh, 24px); padding-bottom: 24px; }
  .display { font-size: clamp(44px, min(8vw, 10.2vh), 96px); }
  .lede { font-size: clamp(15px, 1.9vh, 18px); }
  .chart-card { margin-top: clamp(18px, 3.6vh, 40px); }
}

/* Steps card as clear glass: the stadium and the runner show through; light ink on a soft frost */
.loop { --ink: #f2f4f7; --card: transparent; border-radius: 16px;
  background: linear-gradient(160deg, rgba(124,198,255,.10), rgba(255,255,255,.03) 45%, rgba(10,12,16,.18));
  backdrop-filter: blur(2.5px) saturate(1.25); -webkit-backdrop-filter: blur(2.5px) saturate(1.25);
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), inset 0 0 0 1px rgba(124,198,255,.05), 0 24px 60px -28px rgba(0,0,0,.7); }
.loop-title { text-shadow: 0 2px 14px rgba(0,0,0,.55); }
.loop-tag { border-color: rgba(255,255,255,.28); background: rgba(255,255,255,.06); color: #dfe8f2; }
.lt-line { background: repeating-linear-gradient(90deg, rgba(255,255,255,.3) 0 6px, transparent 6px 10px); }
.lt-fill { background: #7cc6ff; box-shadow: 0 0 8px rgba(124,198,255,.6); }
.lt-n { color: rgba(255,255,255,.5); }
.lt-cp { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M2.2 1.6 12.6 7 2.2 12.4z' fill='%230f1216' fill-opacity='.55' stroke='%23f2f4f7' stroke-width='1.6' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.lt-cp::after, .lt-pacer { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M2.2 1.6 12.6 7 2.2 12.4z' fill='%237cc6ff' stroke='%23eaf6ff' stroke-width='1.6' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.lt-cp::after { filter: drop-shadow(0 0 5px rgba(124,198,255,.7)); }
.lp em { background: rgba(255,255,255,.1); }
.chip { background: rgba(255,255,255,.08); }
.livepill { color: #0a0a0a; } .livepill i { background: #0a0a0a; }
.loop-go { background: #f2f4f7; color: #0a0a0a; box-shadow: 0 0 0 1px rgba(255,255,255,.2), 0 8px 24px -8px rgba(124,198,255,.6); }
@keyframes ltN1 { 0%,22% { color: #fff } 25%,100% { color: rgba(255,255,255,.5) } }
@keyframes ltN2 { 0%,25% { color: rgba(255,255,255,.5) } 27%,47% { color: #fff } 50%,100% { color: rgba(255,255,255,.5) } }
@keyframes ltN3 { 0%,50% { color: rgba(255,255,255,.5) } 52%,96% { color: #fff } 100% { color: rgba(255,255,255,.5) } }
@keyframes chip { 0%,3% { background: rgba(255,255,255,.08); color: #f2f4f7; transform: none } 6%,9% { background: #7cc6ff; color: #0a0a0a; transform: translateY(-3px) } 12%,100% { background: rgba(255,255,255,.08); color: #f2f4f7; transform: none } }
@keyframes chipStay { 0%,3% { background: rgba(255,255,255,.08); color: #f2f4f7 } 6%,22% { background: #7cc6ff; color: #0a0a0a } 25%,100% { background: rgba(255,255,255,.08); color: #f2f4f7 } }
