/* Reflex, the website.
   Layout: the hero sets the phone beside its one sentence, and the steps under
   the sentence light up as the phone plays the trade. Below the hero, type sits
   on the left and the proof on the right, on the app's own white page.

   The palette is the app's light theme, value for value: X's near-black ink and
   greys, its blue only for focus and the selected tab, and the two colours that
   mean money (up, down) kept for money. The display face is the one thing the
   app does not have: a condensed grotesk, so a headline can be big without
   being wide. */
:root {
  --paper: #ffffff;
  --ink: #0f1419;
  --ink-2: #536471;
  --ink-3: #8b98a5;
  --line: #eff3f4;
  --line-2: #e1e8ed;
  --line-3: #cfd9de;
  --wash: #f7f9f9;
  --up: #088030;
  --up-chart: #0bac41;
  --up-wash: #e7f6ec;
  --down: #d22d00;
  --down-chart: #ff5020;
  --down-wash: #fde9e3;
  --link: #1d9bf0;
  --liq: #9c6100;

  --display: 'Instrument Sans', 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --text: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --max: 1320px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
a { color: inherit; }
button { font-family: inherit; }
p { margin: 0; }
svg { flex: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px;
  text-decoration: none; font-weight: 600;
}
.skip:focus { top: 12px; }

.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- type ---------- */
.h2 {
  margin: 0;
  font-family: var(--display);
  font-stretch: 85%;
  font-weight: 650;
  font-size: clamp(40px, 5.6vw, 80px);
  line-height: .96;
  letter-spacing: -.032em;
  text-wrap: balance;
}
.lead {
  font-size: clamp(17px, 1.3vw, 19.5px);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 33em;
  text-wrap: pretty;
}
.eyebrow {
  margin-bottom: 20px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.fine { font-size: 14px; line-height: 1.5; color: var(--ink-2); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 50px; padding: 0 24px; border-radius: 999px;
  font: 600 16px/1 var(--text);
  text-decoration: none; white-space: nowrap;
  transition: background-color .15s, transform .15s, color .15s;
}
.btn:active { transform: scale(.97); }
button.btn { border: 0; cursor: pointer; }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #2a3036; }
.btn-quiet { padding: 0 8px; color: var(--ink); }
.btn-quiet:hover { color: var(--ink-2); }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14.5px; }
.i { display: inline-block; width: 18px; height: 18px; transition: transform .2s; }
.btn-quiet:hover .i { transform: translateX(3px); }

.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  background: var(--paper);
  border-bottom: 1px solid transparent;
  transition: border-color .25s;
}
.nav.scrolled { border-bottom-color: var(--line-2); }
.nav-in { height: 64px; display: flex; align-items: center; gap: 28px; }
.brand {
  display: inline-flex; align-items: center; gap: 9px; min-height: 44px;
  font-weight: 800; font-size: 19px; letter-spacing: -.02em; text-decoration: none;
}
.brand-mark { width: 16px; height: 22px; fill: currentColor; }
.nav-links { display: flex; gap: 30px; margin-left: auto; font-size: 15px; font-weight: 500; color: var(--ink-2); }
.nav-links a { padding-block: 12px; text-decoration: none; transition: color .15s; }
.nav-links a:hover { color: var(--ink); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { padding-block: clamp(24px, 4vw, 56px) clamp(64px, 8vw, 112px); }
.hero-grid {
  display: grid;
  grid-template-columns: auto minmax(0, 540px);
  justify-content: center;
  align-items: center;
  column-gap: clamp(56px, 8vw, 136px);
}
.hero-right { display: grid; gap: clamp(28px, 3vw, 44px); justify-items: start; }
.hero-b {
  margin: 0;
  font-family: var(--display);
  font-stretch: 85%;
  font-weight: 650;
  font-size: clamp(64px, 7.4vw, 120px);
  line-height: .9;
  letter-spacing: -.036em;
}
/* "Trade" in the money colour, "your feed" in ink */
.hero-up { color: var(--up); }
.hero-copy { display: grid; gap: 24px; justify-items: start; }
.hero-copy .lead { color: var(--ink); opacity: .78; }
.hero-steps { display: grid; justify-items: start; width: 100%; max-width: 420px; }
.hero-steps .steps { width: 100%; }
.hero-steps .steps li { min-width: 0; }
@media (min-width: 981px) {
  /* beside the bigger phone, the steps and the words step up a size too */
  .hero-steps .steps { gap: 14px; }
  .hero-steps .steps li { grid-template-columns: 30px auto; column-gap: 14px; padding-bottom: 12px; font-size: 19px; }
  .hero-steps .steps li::after, .hero-steps .steps li i { left: 44px; }
  .hero-steps .steps-n { width: 30px; height: 30px; font-size: 14px; }
  .hero-copy .lead { font-size: clamp(18px, 1.45vw, 21px); }
}

/* the device: as big as the window's height allows, so the whole phone sits above the fold */
.device { margin: 0; width: clamp(300px, 27vw, 400px); width: min(clamp(300px, 27vw, 400px), calc((100svh - 120px) * .46)); }
.device-frame {
  position: relative;
  padding: 9px;
  border-radius: 52px;
  background: #0f1419;
  box-shadow:
    0 60px 90px -40px rgba(15, 20, 25, .42),
    0 24px 40px -24px rgba(15, 20, 25, .25),
    inset 0 0 0 1px rgba(255, 255, 255, .1);
}
.screen-box {
  position: relative;
  aspect-ratio: 375 / 812;
  border-radius: 43px;
  overflow: hidden;
  background: #fff;
  isolation: isolate;
}

/* steps beside the phone */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.steps li {
  position: relative;
  display: grid; grid-template-columns: 26px auto; align-items: center; column-gap: 12px;
  padding-bottom: 10px;
  font-size: 16px; font-weight: 600; color: var(--ink-3);
  transition: color .3s;
}
.steps li::after, .steps li i {
  content: ''; position: absolute; left: 38px; right: 0; bottom: 0; height: 2px; border-radius: 2px;
}
.steps li::after { background: var(--line); }
.steps li i {
  z-index: 1; background: var(--ink);
  transform: scaleX(0); transform-origin: left; transition-property: transform; transition-timing-function: linear;
}
.steps li { min-width: 214px; }
.steps-n {
  width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1.5px solid currentColor; font-size: 12.5px; font-weight: 700;
  transition: background-color .3s, color .3s, border-color .3s;
}
/* The R mark standing in for the word Reflex, at cap height, in the text's colour. */
.mark-inline { width: .58em; height: .78em; margin: 0 .1em; vertical-align: -.06em; fill: currentColor; }
.steps li.on, .steps li.done { color: var(--ink); }
.steps li.on .steps-n { background: var(--ink); border-color: var(--ink); color: #fff; }
.steps li.done i { transform: scaleX(1); transition-duration: 0s !important; }

/* ==========================================================================
   The phone screen. Drawn at the app's own 375 x 812 and scaled to fit, so
   every size here is the app's size in points.
   ========================================================================== */
.screen {
  --s: .79;
  position: absolute; left: 0; top: 0;
  width: 375px; height: 812px;
  transform: scale(var(--s)); transform-origin: 0 0;
  overflow: hidden;
  background: #fff; color: #0f1419;
  font-family: var(--text); font-size: 15px; line-height: 1.4;
  font-variant-numeric: tabular-nums;
  transition: opacity .45s ease;
}
.screen.fade { opacity: 0; }
.screen::after { /* home indicator */
  content: ''; position: absolute; left: 50%; bottom: 8px; z-index: 70;
  width: 134px; height: 5px; margin-left: -67px; border-radius: 3px; background: #0f1419;
}

.sb { height: 46px; display: flex; align-items: center; justify-content: space-between; padding: 4px 26px 0 36px; }
.sb-time { font-weight: 600; font-size: 15.5px; letter-spacing: -.01em; }
.sb-ic { display: flex; gap: 6px; align-items: center; }
.ah { height: 46px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 16px; }
.ah-me { width: 32px; height: 32px; clip-path: circle(50%); }
.ah-mark { width: 17px; height: 23px; fill: #0f1419; }
.at {
  height: 44px; display: grid; grid-template-columns: repeat(4, 1fr); align-items: stretch;
  border-bottom: 1px solid #eff3f4; font-size: 15px; font-weight: 600; color: #536471; text-align: center;
}
.at span { display: grid; place-items: center; position: relative; }
.at .on { color: #0f1419; font-weight: 700; }
.at .on::after {
  content: ''; position: absolute; bottom: 0; left: 50%; width: 52px; margin-left: -26px; height: 4px;
  border-radius: 2px; background: #1d9bf0;
}

.fv { position: absolute; top: 136px; left: 0; right: 0; bottom: 0; overflow: hidden; }
.fd { position: relative; will-change: transform; transition: transform 2.2s cubic-bezier(.35, .7, .2, 1); }
.fd.snap { transition-duration: .7s; }

.fp {
  display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 11px;
  padding: 14px 16px 10px;
  border-bottom: 1px solid #eff3f4;
  background: #fff;
}
.fp-av { width: 40px; height: 40px; clip-path: circle(50%); }
.fp-b { min-width: 0; }
.fp-h { display: flex; align-items: center; gap: 5px; height: 20px; white-space: nowrap; font-size: 15px; }
.fp-h b { font-weight: 700; }
.fp-h span { color: #536471; overflow: hidden; text-overflow: ellipsis; }
.fp-x { margin-left: auto; width: 28px; height: 20px; padding: 2px 5px; border: 1px solid #cfd9de; border-radius: 10px; color: #536471; }
.fp-t { margin: 3px 0 10px; font-size: 15px; line-height: 21px; }
.fp-r {
  margin-bottom: 8px; padding: 9px 12px 10px;
  border: 1px solid #cfd9de; border-radius: 14px;
  font-size: 14px; line-height: 19px;
  transition: border-color .35s, box-shadow .35s, background-color .35s;
}
.fp-r.glow { border-color: #1d9bf0; box-shadow: 0 0 0 4px rgba(29, 155, 240, .14); background: #f7fbff; }
.fp-rk {
  display: flex; align-items: center; gap: 5px; margin-bottom: 3px;
  font-size: 10.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: #536471;
}
.fp-rk svg { width: 8px; height: 11px; fill: currentColor; }
.fp-chip {
  display: flex; align-items: center; gap: 7px;
  height: 42px; padding: 0 12px 0 10px; margin-bottom: 8px;
  border: 1px solid #cfd9de; border-radius: 14px; font-size: 15px; white-space: nowrap;
}
.fp-chip b { font-weight: 800; letter-spacing: -.01em; }
.lev {
  margin-left: auto; padding: 1px 4px;
  border: 1px solid #cfd9de; border-radius: 5px;
  font-size: 11px; font-weight: 600; color: #536471;
}
.px { font-weight: 500; }
.chg { font-weight: 700; }
.up { color: var(--up); }
.down { color: var(--down); }
.fp-sp { height: 64px; margin-bottom: 6px; border: 1px solid #cfd9de; border-radius: 14px; overflow: hidden; }
.spark { display: block; width: 100%; height: 100%; }
.fp-f { display: flex; align-items: center; gap: 18px; height: 36px; font-size: 14px; color: #536471; }
.fp-like { display: flex; align-items: center; gap: 6px; }
.fp-like svg { width: 19px; height: 19px; }
.fp-m { width: 11px; height: 15px; fill: currentColor; }
.fp-trade {
  margin-left: auto; height: 30px; padding: 0 17px; border-radius: 15px;
  display: grid; place-items: center;
  background: #0f1419; color: #fff; font-weight: 700; font-size: 14px;
  transition: transform .12s;
}
.fp-trade.green { background: var(--up); }
.press { transform: scale(.94) !important; }

.fp-you { display: none; }
.fd.has-you .fp-you { display: grid; animation: you-in 1.6s ease-out; }
@keyframes you-in { from { background: #eef8f1; } to { background: #fff; } }
.fp-q { margin-bottom: 8px; padding: 9px 12px 10px; border: 1px solid #cfd9de; border-radius: 14px; }
.fp-qk { font-size: 10.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: #536471; }
.fp-qa { display: flex; align-items: center; gap: 5px; margin: 4px 0 2px; font-size: 13.5px; white-space: nowrap; }
.fp-qa svg { width: 18px; height: 18px; clip-path: circle(50%); }
.fp-qa span { color: #536471; }
.fp-q p { font-size: 13.5px; line-height: 18px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fp-pos {
  display: flex; align-items: center; gap: 10px;
  height: 40px; padding: 0 12px; margin-bottom: 6px;
  border: 1px solid #cfd9de; border-radius: 14px; font-size: 14px; color: #536471;
}
.fp-pnl { margin-left: auto; font-weight: 700; font-size: 15px; }
.tag-long {
  padding: 3px 7px; border-radius: 6px;
  background: var(--up-wash); color: var(--up);
  font-size: 12px; font-weight: 700; letter-spacing: .02em;
}

.ab {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 5;
  height: 82px; padding: 0 30px 22px;
  display: flex; align-items: center; justify-content: space-between;
  background: #fff; border-top: 1px solid #eff3f4;
}
.ab svg { width: 26px; height: 26px; fill: #0f1419; color: #0f1419; }
.ab svg.o { fill: none; }
.ab svg.ab-m { width: 21px; height: 29px; }

/* market icon: the asset's real logo, the one the app shows (Hyperliquid's icon host),
   on a white disc with a hairline so bare marks still read as a coin. Until it loads,
   or if it never does, a monogram on the asset's own colour stands in. */
.ic {
  --c: #0f1419;
  position: relative; overflow: hidden;
  width: 22px; height: 22px; border-radius: 50%;
  display: inline-grid; place-items: center; flex: none;
  background: var(--c); color: #fff;
  font-style: normal; font-size: 9px; font-weight: 800; letter-spacing: -.02em; line-height: 1;
}
.ic img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; opacity: 0; transition: opacity .2s; }
.ic.has-logo { background: #fff; color: transparent; }
.ic.has-logo img { opacity: 1; }
.ic.has-logo::after { content: ''; position: absolute; inset: 0; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(15, 20, 25, .1); }
.ic-dark { color: #0f1419; }
.ic-lg { width: 36px; height: 36px; font-size: 12.5px; }

/* sheets over the feed */
.scrim { position: absolute; inset: 0; z-index: 10; background: rgba(15, 20, 25, .4); opacity: 0; transition: opacity .35s; pointer-events: none; }
.scrim.on { opacity: 1; }
.sh {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 20;
  padding: 8px 16px 34px;
  background: #fff; border-radius: 26px 26px 0 0;
  box-shadow: 0 -8px 30px rgba(15, 20, 25, .12);
  transform: translateY(105%);
  visibility: hidden;
  transition: transform .5s cubic-bezier(.2, .85, .25, 1), visibility 0s .5s;
}
.sh.on { transform: none; visibility: visible; transition-delay: 0s; }
.sh-grip { display: block; width: 36px; height: 5px; margin: 0 auto 14px; border-radius: 3px; background: #cfd9de; }

.tk-h { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; }
.tk-h b { display: block; font-size: 18px; font-weight: 800; line-height: 22px; }
.tk-h small { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #536471; }
.tk-px { font-size: 18px; font-weight: 800; }
.tk-chart { display: block; width: 100%; height: 86px; margin: 12px 0 14px; }
.tk-dir { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tk-dir span {
  height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: #eff3f4; color: #536471; font-size: 16px; font-weight: 700; border: 1px solid #e1e8ed;
}
.tk-dir .on { background: var(--up); border-color: var(--up); color: #fff; }
.tk-row { display: flex; justify-content: space-between; align-items: baseline; margin: 16px 0 10px; font-size: 14px; color: #536471; }
.tk-row b { color: #0f1419; font-size: 17px; font-weight: 800; }
.tk-track { position: relative; height: 6px; border-radius: 3px; background: #eff3f4; }
.tk-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 5%; border-radius: 3px; background: #0f1419; transition: width .45s cubic-bezier(.3, .7, .2, 1); }
.tk-knob {
  position: absolute; top: 50%; left: 5%;
  width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%;
  background: #0f1419; border: 3px solid #fff; box-shadow: 0 1px 5px rgba(15, 20, 25, .3);
  transition: left .45s cubic-bezier(.3, .7, .2, 1);
}
.tk-chips { display: flex; gap: 6px; margin-top: 14px; }
.tk-chips span { padding: 5px 10px; border-radius: 14px; background: #eff3f4; font-size: 13px; transition: background-color .2s, box-shadow .2s, transform .12s; }
.tk-chips .on { background: #fff; box-shadow: inset 0 0 0 1.5px #0f1419; }
.tk-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 18px; border: 1px solid #e1e8ed; border-radius: 12px; }
.tk-stats div { padding: 8px 10px 9px; border-left: 1px solid #e1e8ed; }
.tk-stats div:first-child { border-left: 0; }
.tk-stats small { display: block; font-size: 9.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #536471; }
.tk-stats b { font-size: 14px; font-weight: 600; }
.tk-stats .liq { color: var(--liq); }
.slide {
  position: relative; height: 54px; margin-top: 18px; border-radius: 27px;
  display: grid; place-items: center; overflow: hidden; background: #eff3f4;
}
.slide-label { position: relative; z-index: 1; font-size: 15px; font-weight: 700; transition: opacity .3s; }
.slide-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 54px; border-radius: 27px; background: #d5eedc; }
.slide-knob {
  position: absolute; left: 3px; top: 3px; z-index: 2;
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--up); color: #fff; box-shadow: 0 3px 10px rgba(8, 128, 48, .35);
}
.slide-knob svg { width: 20px; height: 20px; }
.slide.go .slide-knob { transform: translateX(289px); transition: transform 1s cubic-bezier(.55, 0, .3, 1); }
.slide.go .slide-fill { width: 100%; transition: width 1s cubic-bezier(.55, 0, .3, 1); }
.slide.go .slide-label { opacity: .25; }

/* the Executed burst */
.cele {
  position: absolute; inset: 0; z-index: 40;
  display: grid; place-content: center; justify-items: center; gap: 10px;
  padding-bottom: 60px;
  background: rgba(255, 255, 255, .8);
  opacity: 0; transition: opacity .25s; pointer-events: none;
}
.cele.on { opacity: 1; }
.cele-c {
  position: relative; width: 78px; height: 78px; border-radius: 50%;
  display: grid; place-items: center;
  background: #0c8a35; box-shadow: 0 12px 30px rgba(12, 138, 53, .35);
  opacity: 0; transform: scale(.5);
}
.cele-ck { width: 42px; height: 42px; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.cele-ring { position: absolute; inset: -4px; border-radius: 50%; border: 2px solid rgba(12, 138, 53, .4); opacity: 0; }
.cele-t { font-size: 25px; font-weight: 800; letter-spacing: -.02em; opacity: 0; }
.cele-p { padding: 6px 13px; border-radius: 15px; background: #fff; box-shadow: 0 2px 12px rgba(15, 20, 25, .14); font-size: 13.5px; font-weight: 700; opacity: 0; }
.cele.on .cele-c { animation: pop .5s cubic-bezier(.2, 1.5, .4, 1) forwards; }
.cele.on .cele-ck { animation: draw .38s .22s ease-out forwards; }
.cele.on .cele-ring { animation: ring 1s .3s ease-out forwards; }
.cele.on .cele-t { animation: rise .35s .38s ease-out forwards; }
.cele.on .cele-p { animation: rise .35s .48s ease-out forwards; }
.cele-bits { position: absolute; left: 50%; top: calc(50% - 60px); }
.cele-bits i { position: absolute; width: 8px; height: 4px; border-radius: 1px; opacity: 0; }
.cele.on .cele-bits i { animation: bit 1.15s cubic-bezier(.15, .7, .3, 1) forwards; }
@keyframes pop { to { opacity: 1; transform: none; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes ring { 0% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1.7); } }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes bit {
  0% { opacity: 1; transform: translate(0, 0) rotate(0); }
  80% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--x), calc(var(--y) + 46px)) rotate(var(--r)); }
}

/* the thesis drawer */
.cp-h { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; }
.cp-ok { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--up-wash); color: var(--up); }
.cp-ok svg { width: 20px; height: 20px; }
.cp-h b { display: block; font-size: 17px; font-weight: 800; line-height: 21px; }
.cp-h small { font-size: 14px; color: #536471; }
.cp-not { padding: 7px 14px; border: 1px solid #cfd9de; border-radius: 18px; font-size: 14px; font-weight: 600; }
.cp-box {
  position: relative; display: grid; grid-template-columns: 32px 1fr; gap: 10px;
  min-height: 122px; margin-top: 16px; padding: 12px;
  border: 1px solid #cfd9de; border-radius: 18px;
}
.cp-av { width: 32px; height: 32px; clip-path: circle(50%); }
.cp-txt { margin: 5px 0 44px; font-size: 16px; line-height: 22px; }
.cp-ph { color: #8b98a5; }
.caret { display: inline-block; width: 2px; height: 18px; margin-left: 1px; vertical-align: -3px; background: #1d9bf0; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.cp-post {
  position: absolute; right: 12px; bottom: 12px;
  padding: 8px 18px; border-radius: 18px;
  background: #eff3f4; color: #8b98a5; font-size: 15px; font-weight: 700;
  transition: background-color .25s, color .25s, transform .12s;
}
.cp-post.on { background: #0f1419; color: #fff; }
.cp-k { margin: 18px 0 8px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #536471; }
.cp-att { border: 1px solid #e1e8ed; border-radius: 14px; }
.cp-att-r {
  display: grid; grid-template-columns: auto auto 1fr; grid-template-rows: auto auto; column-gap: 8px; align-items: center;
  padding: 11px 12px; border-bottom: 1px solid #e1e8ed;
}
.cp-att-r .ic { grid-row: span 2; width: 30px; height: 30px; font-size: 11px; margin-right: 2px; }
.cp-att-r b { font-size: 16px; font-weight: 800; }
.cp-att-r .tag-long { justify-self: start; }
.cp-att-r small { grid-column: 2 / -1; font-size: 13.5px; color: #536471; }
.cp-att-q { display: grid; grid-template-columns: 20px 1fr; gap: 8px; padding: 10px 12px; font-size: 13.5px; }
.cp-att-q svg { width: 20px; height: 20px; clip-path: circle(50%); }
.cp-att-q span { color: #536471; }
.cp-att-q p { margin-top: 2px; line-height: 18px; }

.toast {
  position: absolute; left: 12px; right: 12px; top: 52px; z-index: 30;
  display: grid; grid-template-columns: auto 1fr auto; gap: 11px; align-items: center;
  padding: 12px 12px 12px 14px; border-radius: 18px; background: #fff;
  box-shadow: 0 12px 34px rgba(15, 20, 25, .18), 0 0 0 1px rgba(15, 20, 25, .06);
  transform: translateY(calc(-100% - 90px));
  visibility: hidden;
  transition: transform .55s cubic-bezier(.2, .9, .25, 1.15), visibility 0s .55s;
}
.toast.on { transform: none; visibility: visible; transition-delay: 0s; }
.toast .ic { width: 34px; height: 34px; font-size: 12px; }
.toast b { display: block; font-size: 15px; font-weight: 700; line-height: 19px; }
.toast small { font-size: 13px; color: #536471; }
.toast-b { padding: 8px 16px; border-radius: 16px; background: #0f1419; color: #fff; font-size: 14px; font-weight: 700; }

.tap {
  position: absolute; left: 0; top: 0; z-index: 60;
  width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%;
  background: rgba(15, 20, 25, .16); box-shadow: 0 0 0 1px rgba(15, 20, 25, .08);
  opacity: 0; pointer-events: none;
}
.tap.on { animation: tap .6s ease-out; }
@keyframes tap {
  0% { opacity: 0; transform: scale(.4); }
  25% { opacity: 1; transform: scale(.8); }
  100% { opacity: 0; transform: scale(1.4); }
}

/* ==========================================================================
   Sections
   ========================================================================== */
.sec { padding-block: clamp(72px, 8.5vw, 124px); }

/* every section opens the same way: the heading on the left, its words on the right, and one gap to what follows */
.sec-head {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 24px clamp(32px, 6vw, 96px); align-items: end;
}
.sec-head .h2 { max-width: 15ch; }
.sec-head .lead { max-width: 34em; }
.sec-head + * { margin-top: clamp(44px, 5.5vw, 72px); }

/* ---------- the idea ---------- */
.idea { border-top: 1px solid var(--line); }
.idea-head { display: grid; justify-items: center; gap: 22px; max-width: 46rem; margin-inline: auto; text-align: center; }
.idea-head .eyebrow { margin-bottom: -6px; }
.idea-head .h2 { max-width: 16ch; }
.idea-head .lead { max-width: 38em; }
.idea-head + .ns { margin-top: clamp(44px, 5.5vw, 72px); }

/* The idea, drawn as a neuron: posts are the dendrites, Reflex AI the cell
   body, markets the terminals. One post fires at a time; its pulse runs in,
   through Reflex AI and out to the market it moves. */
.ns {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, .62fr) minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: clamp(24px, 4vw, 64px);
}
.ns-stage { display: contents; }
.ns-head { grid-row: 1; position: relative; z-index: 1; }
.ns-body { grid-row: 2; position: relative; z-index: 1; align-self: center; margin-top: 40px; }
.ns-feed > * { grid-column: 1; }
.ns-ai > * { grid-column: 2; }
.ns-mkt > * { grid-column: 3; }
.ns-head { text-align: center; }
.ns-head p:last-child { margin-inline: auto; }
.ns-ai .ns-body { justify-self: center; }

.ns-k { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.ns-head h3 {
  margin: 8px 0 12px;
  font-family: var(--display); font-stretch: 85%; font-weight: 650;
  font-size: clamp(30px, 2.8vw, 40px); line-height: 1; letter-spacing: -.025em;
}
.ns-head p:last-child { color: var(--ink-2); max-width: 31ch; }

.ns-wires { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 0; will-change: transform; }
.ns-w { fill: none; stroke: #d5dce1; stroke-width: 1.25; transition: stroke .3s; }
.ns-w.hot { stroke: #9aa6b0; }
.ns-pulse { fill: none; stroke: var(--up-chart); stroke-width: 3; stroke-linecap: round; }
.ns-glow { fill: none; stroke: var(--up-chart); stroke-opacity: .2; stroke-width: 10; stroke-linecap: round; }

.ns-posts, .ns-mks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ns-post, .ns-mk {
  position: relative; display: grid; align-items: center; gap: 10px;
  padding: 10px 14px 10px 10px; background: #fff;
  border: 1px solid var(--line-2); border-radius: 16px;
  transition: border-color .3s, box-shadow .3s, transform .3s, opacity .45s;
}
.ns.live .ns-post:not(.on), .ns.live .ns-mk:not(.on) { opacity: .38; }
.ns-post { grid-template-columns: 32px minmax(0, 1fr); }
.ns-av { width: 32px; height: 32px; clip-path: circle(50%); }
.ns-post p, .ns-mk p { min-width: 0; font-size: 14px; line-height: 1.3; }
.ns-post b, .ns-mk b { display: block; font-size: 13.5px; font-weight: 700; }
.ns-post span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--ink-2); }
.ns-post.fire { border-color: var(--ink); box-shadow: 0 10px 24px -14px rgba(15, 20, 25, .45); transform: translateX(6px); }

.ns-mk { grid-template-columns: 40px minmax(0, 1fr) auto; }
.ns-mk .ic { width: 32px; height: 32px; font-size: 11px; }
.ns-mk p span { display: block; color: var(--ink-2); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ns-px { text-align: right; font-variant-numeric: tabular-nums; }
.ns-px span:first-child:not(.js-spread) { color: var(--ink); }
.ns-px span:first-child { font-weight: 600; font-size: 14px; }
.ns-px .chg { font-size: 12.5px; font-weight: 600; }
.ns-tag {
  position: absolute; top: -10px; right: 12px;
  padding: 2px 9px; border-radius: 10px; background: var(--up); color: #fff;
  font-style: normal; font-size: 12px; font-weight: 700; letter-spacing: .02em;
  opacity: 0; transform: translateY(4px) scale(.9); transition: opacity .25s, transform .25s;
}
.ns-mk.fire { border-color: var(--up-chart); box-shadow: 0 0 0 4px rgba(11, 172, 65, .14); transform: translateX(-6px); }
.ns-mk.fire .ns-tag { opacity: 1; transform: none; }

.ns-soma {
  position: relative; width: 92px; height: 92px; border-radius: 50%;
  display: grid; place-items: center;
  background: #fff; border: 1px solid var(--line-3);
  box-shadow: 0 16px 36px -18px rgba(15, 20, 25, .35);
}
.ns-soma svg { width: 24px; height: 33px; fill: var(--ink); }
.ns-ring { position: absolute; inset: -1px; border-radius: 50%; border: 2px solid var(--up-chart); opacity: 0; }
.ns-soma.fire .ns-ring { animation: ns-ring .9s ease-out; }
@keyframes ns-ring { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(1.55); } }

.ns-cap { display: none; }


/* On a phone the neuron stands up and fits one screen: a row of people,
   Reflex AI, a row of markets, each with a small label, and the firing pair
   in words above and below. Tablets in portrait get it too, at a readable width. */
@media (max-width: 900px) {
  .ns { grid-template-columns: minmax(0, 1fr); max-width: 560px; margin-inline: auto; }
  .ns-head, .ns-body { grid-column: 1 !important; margin-top: 0; }
  .ns-feed .ns-head { grid-row: 1; }
  .ns-cap-post { grid-row: 2; }
  .ns-feed .ns-body { grid-row: 3; }
  .ns-ai .ns-head, .ns-ai .ns-body { grid-row: 4; }
  .ns-ai .ns-head { justify-self: start; align-self: center; }
  .ns-ai .ns-body { justify-self: center; margin-block: 40px; }
  .ns-mkt .ns-body { grid-row: 5; }
  .ns-mkt .ns-head { grid-row: 6; margin-top: 14px; }
  .ns-cap-mk { grid-row: 7; }
  .ns-head { text-align: left; }
  /* the verb leads each row, the part of Reflex that does it under it */
  .ns-head p:last-child { display: none; }
  .ns-k { font-size: 12.5px; font-weight: 700; line-height: 1.2; color: var(--ink); }
  .ns-head h3 {
    margin: 3px 0 0; font-family: var(--text); font-stretch: 100%; font-size: 13px; font-weight: 500;
    line-height: 1.25; letter-spacing: 0; color: var(--ink-2);
  }
  .ns-posts, .ns-mks { display: flex; justify-content: space-between; gap: 0; }
  .ns-post, .ns-mk { display: block; padding: 0; border: 0; background: none; transform: none !important; box-shadow: none; }
  .ns-post p, .ns-mk p, .ns-tag { display: none; }
  .ns-post { border-radius: 50%; }
  .ns-av { display: block; width: 46px; height: 46px; }
  .ns-post.fire { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--ink); }
  .ns-logo { width: 44px; height: 44px; border-radius: 50%; transition: box-shadow .3s; }
  .ns-logo > .ic { width: 44px; height: 44px; font-size: 13px; }
  .ns-duo > .ic { width: 31px; height: 31px; font-size: 10px; }
  .ns-mk.fire .ns-logo { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--up-chart); }
  .ns-soma { width: 76px; height: 76px; }
  .ns-cap { display: block; grid-column: 1; min-height: 2.8em; font-size: 14.5px; line-height: 1.4; color: var(--ink-2); transition: opacity .3s; }
  .ns-cap.wait { opacity: 0; }
  .ns-cap b { color: var(--ink); }
  .ns-cap-post { margin: 8px 0 12px; }
  .ns-cap-mk { margin-top: 6px; }
  /* the ring says the kind of trade, as the tags do on a wide screen */
  .ns-mk.fire { box-shadow: none !important; }
  .ns-mk.fire:has(.ns-tag-short) .ns-logo { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--down-chart); }
  .ns-mk.fire:has(.ns-tag-yes) .ns-logo { box-shadow: 0 0 0 3px #fff, 0 0 0 5px #1d9bf0; }
  .ns-mk.fire:has(.ns-tag-ink) .ns-logo { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--ink); }
}


/* ---------- Reflex AI ---------- */
.ai { background: var(--wash); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding-block: clamp(48px, 5vw, 72px); }
.ai-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px); align-items: center;
}
.ai-copy { display: grid; justify-items: start; max-width: 34em; }
.ai-copy .h2 { white-space: nowrap; }
.ai-copy .lead { margin-top: 28px; }
.steps-ai { margin-top: 40px; }
.steps-ai li { min-width: 260px; }

/* the second phone is white, so it reads as a different moment from the hero's black one */
.device-light { width: clamp(264px, 21vw, 300px); justify-self: end; }
.lead-strong { color: var(--ink); opacity: .82; }
.lead-strong b { display: block; margin-bottom: 8px; font-family: var(--display); font-stretch: 88%; font-weight: 650; font-size: 1.45em; line-height: 1.15; letter-spacing: -.015em; color: var(--ink); opacity: 1; }
.device-light .device-frame {
  padding: 8px;
  border-radius: 50px;
  background: linear-gradient(150deg, #fbfcfd 0%, #e4e9ed 55%, #f4f6f8 100%);
  box-shadow:
    0 50px 80px -38px rgba(15, 20, 25, .38),
    0 18px 36px -22px rgba(15, 20, 25, .22),
    inset 0 0 0 1px rgba(15, 20, 25, .1),
    inset 0 0 0 2px rgba(255, 255, 255, .9);
}
.device-light .screen-box { border-radius: 42px; box-shadow: 0 0 0 1px rgba(15, 20, 25, .08); }

/* the post with its photo and its basket */
.fp-img { margin-bottom: 10px; border: 1px solid #cfd9de; border-radius: 14px; overflow: hidden; aspect-ratio: 3 / 2; background: #e9edf0; }
.fp-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.fp-bk { display: flex; gap: 8px; margin-bottom: 6px; white-space: nowrap; overflow: hidden; }
.bk-chip, .bk-mk {
  display: inline-flex; align-items: center; gap: 7px; flex: none;
  height: 38px; padding: 0 12px 0 6px; border-radius: 19px; font-size: 14.5px;
}
.bk-chip { background: #0f1419; color: #fff; }
.bk-chip b, .bk-mk b { font-weight: 800; letter-spacing: -.01em; }
.bk-chip .chg.up { color: #3ddc78; }
.bk-chip .chg.down { color: #ff7a52; }
.bk-mk { border: 1px solid #cfd9de; padding-left: 8px; }
.bk-logos { display: grid; grid-template-columns: 12px 12px; gap: 2px; padding: 3px; border-radius: 50%; background: #fff; flex: none; }
.bk-logos .ic { width: 12px; height: 12px; }

/* the basket's own row and its chart, as the post draws them in the app */
.bk-row {
  display: flex; align-items: center; gap: 8px;
  height: 44px; padding: 0 12px 0 6px; margin-bottom: 8px;
  border: 1px solid #cfd9de; border-radius: 14px; font-size: 14.5px; white-space: nowrap;
}
.bk-row .bk-logos { background: #eff3f4; }
.bk-row b { font-weight: 800; letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; }
.bk-n { margin-left: auto; padding: 1px 6px; border: 1px solid #cfd9de; border-radius: 6px; font-size: 10.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #536471; }
.bk-row .chg { font-weight: 700; }
.bk-chart { position: relative; height: 70px; margin-bottom: 6px; border: 1px solid #cfd9de; border-radius: 14px; overflow: hidden; }
.bk-chart svg { display: block; width: 100%; height: 100%; }
.bk-legend {
  position: absolute; top: 6px; right: 8px; z-index: 1;
  display: flex; align-items: center; gap: 5px; padding: 1px 4px; border-radius: 6px;
  background: rgba(255, 255, 255, .85); font-size: 10.5px; color: #536471;
}
.bk-legend i { width: 12px; height: 2.5px; border-radius: 2px; background: #0f1419; }
.bk-legend i.each { margin-left: 6px; height: 1px; background: #8b98a5; }
.fp-ask { display: grid; place-items: center; width: 34px; height: 34px; margin: 0 -10px; border-radius: 50%; color: #536471; transition: background-color .2s, color .2s, transform .12s; }
.fp-ask .fp-m { width: 12px; height: 16px; }
.fp-ask.lit { background: #eef6fd; color: #0f1419; box-shadow: 0 0 0 2px rgba(29, 155, 240, .45); }

/* Reflex AI, pushed over the feed */
.aiv {
  position: absolute; left: 0; right: 0; top: 46px; bottom: 0; z-index: 8;
  background: #fff;
  transform: translateX(102%);
  transition: transform .5s cubic-bezier(.25, .8, .25, 1);
}
.aiv.on { transform: none; box-shadow: -10px 0 30px rgba(15, 20, 25, .08); }
.aiv-h {
  height: 50px; display: grid; grid-template-columns: 40px 1fr 40px; align-items: center;
  padding: 0 10px; border-bottom: 1px solid #eff3f4;
}
.aiv-back { width: 22px; height: 22px; color: #0f1419; transform: scaleX(-1); }
.aiv-t { justify-self: center; display: flex; align-items: center; gap: 7px; font-size: 17px; font-weight: 800; letter-spacing: -.01em; }
.aiv-t svg { width: 13px; height: 18px; fill: #0f1419; }
.aiv-plus { justify-self: end; font-size: 26px; font-weight: 300; line-height: 1; color: #0f1419; }
.aiv-vp { position: absolute; left: 0; right: 0; top: 50px; bottom: 92px; overflow: hidden; }
.aiv-in { padding: 14px 16px 24px; will-change: transform; transition: transform .65s cubic-bezier(.3, .7, .2, 1); }
.aiv-c {
  position: absolute; left: 16px; right: 16px; bottom: 32px; height: 50px;
  display: flex; align-items: center; justify-content: space-between; padding: 0 6px 0 18px;
  border: 1px solid #e1e8ed; border-radius: 25px; background: #fff;
  font-size: 15px; color: #8b98a5;
}
.aiv-c i { width: 38px; height: 38px; border-radius: 50%; background: #c4ccd2; display: grid; place-items: center; }
.aiv-c i svg { width: 18px; height: 18px; }

.aiv-post { border: 1px solid #e1e8ed; border-radius: 16px; padding: 10px 12px; }
.aiv-post-h { display: flex; align-items: center; gap: 6px; font-size: 13.5px; white-space: nowrap; }
.aiv-post-h svg { width: 20px; height: 20px; clip-path: circle(50%); }
.aiv-post-h span { color: #536471; }
.aiv-post-b { display: grid; grid-template-columns: 1fr 74px; gap: 10px; margin-top: 4px; align-items: start; }
.aiv-post-b p { font-size: 13.5px; line-height: 18px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.aiv-post-b img { width: 74px; height: 50px; border-radius: 8px; object-fit: cover; background: #e9edf0; }

.aiv-q {
  display: flex; align-items: center; gap: 10px;
  margin: 14px 0 0 30px; padding: 9px 14px 9px 9px; border-radius: 24px; background: #eff3f4;
  font-size: 14.5px; line-height: 19px;
}
.aiv-q svg { width: 30px; height: 30px; clip-path: circle(50%); flex: none; }
.aiv-a { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 12px; margin-top: 18px; }
.aiv-m { width: 15px; height: 20px; fill: #0f1419; margin-top: 2px; }
.aiv-steps { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 5px; font-size: 13px; color: #536471; }
.aiv-steps li { display: flex; align-items: center; gap: 8px; opacity: 0; transition: opacity .3s; }
.aiv-steps li::before {
  content: ''; width: 12px; height: 12px; border-radius: 50%; flex: none;
  border: 2px solid #cfd9de; border-top-color: #0f1419; animation: spin .8s linear infinite;
}
.aiv-steps li.on { opacity: 1; }
.aiv-steps li.ok::before {
  border: 0; animation: none;
  background: var(--up) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12.5 4 4 8-8.6' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 10px no-repeat;
}
.aiv-v {
  min-height: 0; padding-left: 12px; border-left: 3px solid var(--up);
  font-size: 15.5px; font-weight: 700; line-height: 21px;
}
.aiv-v:empty, .aiv-v span:empty { display: none; }
.aiv-p { margin-top: 10px; font-size: 14.5px; line-height: 20px; }
.aiv-p + .aiv-p { margin-top: 8px; }

.rv { opacity: 0; transform: translateY(8px); transition: opacity .45s ease, transform .45s ease; }
.rv.in { opacity: 1; transform: none; }

/* the basket card */
.bkc { margin-top: 14px; padding: 14px 14px 12px; border: 1px solid #e1e8ed; border-radius: 18px; }
.bkc-k { font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #536471; }
.bkc-n { margin-top: 3px; font-size: 19px; font-weight: 800; letter-spacing: -.02em; line-height: 23px; }
.bkc-d { margin-top: 4px; font-size: 13.5px; line-height: 18.5px; }
.bkc-s { margin-top: 10px; font-size: 13.5px; color: #536471; }
.bkc-s b { color: #0f1419; font-weight: 700; }
.bkc-s b + b { margin-left: 10px; }
.bkc-bar { display: flex; gap: 2px; height: 9px; margin-top: 7px; border-radius: 5px; overflow: hidden; }
.bkc-bar span { background: var(--c); transform-origin: left; transform: scaleX(0); transition: transform .8s cubic-bezier(.3, .7, .2, 1); }
.bkc.grown .bkc-bar span { transform: none; }
.bkc-key { list-style: none; margin: 8px 0 2px; padding: 0; display: grid; gap: 3px; font-size: 12.5px; }
.bkc-key li { display: flex; align-items: center; gap: 6px; }
.bkc-key li::before { content: ''; width: 8px; height: 8px; border-radius: 2px; background: var(--c); }
.bkc-key b { font-weight: 700; }
.bkc-legs { list-style: none; margin: 8px 0 0; padding: 0; }
.lg {
  display: grid; grid-template-columns: 18px 28px minmax(0, 1fr) auto; column-gap: 8px; align-items: center;
  padding: 8px 0; border-top: 1px solid #eff3f4;
}
.bkc-legs .lg { opacity: 0; transform: translateY(6px); transition: opacity .35s ease, transform .35s ease; }
.bkc-legs .lg.in { opacity: 1; transform: none; }
.lg-cb { width: 18px; height: 18px; border-radius: 5px; display: grid; place-items: center; background: var(--link); color: #fff; transition: background-color .25s, border-radius .25s; }
.lg-cb svg { width: 13px; height: 13px; }
.lg.filled .lg-cb { background: var(--up); border-radius: 50%; animation: pop2 .35s ease-out; }
@keyframes pop2 { 50% { transform: scale(1.3); } }
.lg .ic { width: 28px; height: 28px; font-size: 10px; }
.lg-n { min-width: 0; }
.lg-n b { display: block; font-size: 13.5px; font-weight: 700; line-height: 17px; white-space: nowrap; }
.lg-n b span { font-size: 11.5px; font-weight: 600; color: #536471; }
.lg-n small { display: block; font-size: 11.5px; line-height: 15px; color: #536471; }
.lg-n small::before { content: ''; display: inline-block; width: 6px; height: 6px; margin-right: 5px; border-radius: 50%; background: var(--c); vertical-align: 1px; }
.lg-w { text-align: right; }
.lg-w b { display: block; font-size: 13.5px; font-weight: 700; line-height: 17px; }
.lg-w small { font-size: 11.5px; color: #536471; }
.lg.filled .lg-w small { color: var(--up); font-weight: 600; }
.bkc-more { margin-top: 2px; padding-top: 8px; border-top: 1px solid #eff3f4; font-size: 11.5px; line-height: 15px; color: #536471; }
.bkc-amts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 12px; }
.bkc-amts span { height: 32px; border-radius: 16px; display: grid; place-items: center; background: #eff3f4; font-size: 13px; font-weight: 600; }
.bkc-amts .on { background: #fff; box-shadow: inset 0 0 0 1.5px #0f1419; }
.bkc-buy {
  display: grid; place-items: center; height: 46px; margin-top: 8px; border-radius: 23px;
  background: #0f1419; color: #fff; font-size: 15.5px; font-weight: 700;
  transition: background-color .3s, transform .12s;
}
.bkc-buy.busy .js-buy-t::before {
  content: ''; display: inline-block; width: 13px; height: 13px; margin-right: 8px; vertical-align: -2px;
  border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff; border-radius: 50%;
  animation: spin .7s linear infinite;
}
.bkc-buy.done { background: var(--up); }
@keyframes spin { to { transform: rotate(1turn); } }

/* the burst, with what was bought */
.cele-logos { position: absolute; left: 50%; top: calc(50% - 60px); width: 0; height: 0; }
.cele-logos .ic {
  position: absolute; width: 34px; height: 34px; margin: -17px 0 0 -17px; font-size: 11.5px;
  box-shadow: 0 0 0 3px #fff, 0 6px 14px rgba(15, 20, 25, .18);
  opacity: 0; transform: scale(.3);
}
.cele.on .cele-logos .ic { animation: logo-pop .55s cubic-bezier(.2, 1.5, .4, 1) forwards; }
.cele-logos .ic:nth-child(1) { left: -88px; top: -46px; animation-delay: .32s !important; }
.cele-logos .ic:nth-child(2) { left: 84px; top: -58px; animation-delay: .38s !important; }
.cele-logos .ic:nth-child(3) { left: -104px; top: 30px; animation-delay: .44s !important; }
.cele-logos .ic:nth-child(4) { left: 100px; top: 22px; animation-delay: .5s !important; }
.cele-logos .ic:nth-child(5) { left: 4px; top: -104px; animation-delay: .56s !important; }
@keyframes logo-pop { to { opacity: 1; transform: none; } }

/* the thesis drawer, with every leg attached */
.cp-legs { border: 1px solid #e1e8ed; border-radius: 14px; padding: 10px 0 10px 10px; overflow: hidden; }
.cp-legs-h { padding: 0 2px 8px; font-size: 14px; color: #536471; }
.cp-legs-h b { color: #0f1419; font-size: 15px; margin-right: 4px; }
.cp-legs-row { display: flex; gap: 8px; }
.lc { flex: none; width: 128px; padding: 9px 10px; border: 1px solid #e1e8ed; border-radius: 12px; }
.lc-h { display: flex; align-items: center; gap: 7px; margin-bottom: 7px; }
.lc-h .ic { width: 24px; height: 24px; font-size: 9px; }
.lc-h b { font-size: 15px; font-weight: 800; }
.lc-f { display: flex; justify-content: space-between; align-items: baseline; margin-top: 7px; font-size: 13.5px; }
.lc-f span { color: #536471; font-size: 12.5px; }
.cp-foot { margin-top: 12px; font-size: 13px; color: #536471; }
.toast-logos { width: 34px; height: 34px; grid-template-columns: 13px 13px; gap: 2px; padding: 3px; align-content: center; justify-content: center; background: #eff3f4; }
.toast-logos i { width: 13px; height: 13px; }

/* ---------- footer: the page ends where it began ----------
   The hero's sentence again, on the phones' black: the question quiet, the
   answer loud, and the way in beside it. */
.foot {
  background: var(--ink); color: #fff;
  padding-block: clamp(72px, 9vw, 128px) calc(24px + env(safe-area-inset-bottom, 0px));
}
.foot-top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 32px 48px; }
.foot-big {
  margin: 0;
  font-family: var(--display); font-stretch: 85%; font-weight: 650;
  font-size: clamp(56px, 8.2vw, 132px); line-height: .9; letter-spacing: -.036em;
}
.foot-big span { display: block; color: #71767b; }
.btn-paper { background: #fff; color: var(--ink); }
.btn-paper:hover { background: #e7ecef; }
.foot-bar {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 4px 32px;
  margin-top: clamp(56px, 6.5vw, 96px); padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: 14px; color: var(--ink-3);
}
.foot .brand { color: #fff; font-size: 17px; }
.foot .brand-mark { width: 14px; height: 19px; }
.foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 28px; }
.foot-links a { padding-block: 12px; text-decoration: none; transition: color .15s; }
.foot-links a:hover { color: #fff; }
.foot-c { margin: 0; }

/* ==========================================================================
   Narrower screens
   ========================================================================== */
@media (max-width: 980px) {
  .hero { padding-top: 20px; }
  /* on a phone, one centred column: the sentence on one line, the demo and
     its steps, then the words and the way in */
  .hero-grid { grid-template-columns: minmax(0, 1fr); justify-content: stretch; align-items: start; }
  .hero-right { display: contents; }
  .hero-b { order: 1; justify-self: center; font-size: clamp(40px, 13.5vw, 84px); white-space: nowrap; text-align: center; }
  .hero-b br { display: none; }
  .device { order: 2; justify-self: center; width: min(310px, 80vw); margin-top: 32px; }
  .hero-steps { order: 3; justify-self: center; margin-top: 28px; justify-items: center; width: auto; max-width: none; }
  .hero-copy { order: 4; justify-self: center; justify-items: center; margin-top: 28px; text-align: center; }
  .hero-copy .lead { max-width: 30em; }
  .hero-copy .cta-row { justify-content: center; }
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; width: min(560px, 92vw); }
  .steps li { min-width: 0; grid-template-columns: 1fr; justify-items: center; align-content: start; row-gap: 8px; padding-bottom: 12px; font-size: 13.5px; text-align: center; line-height: 1.25; }
  .steps li::after, .steps li i { left: 0; }

  /* on a phone the demo comes straight after the words, and its steps follow it */
  .ai-grid { grid-template-columns: minmax(0, 1fr); row-gap: 0; }
  .ai-copy { display: contents; }
  .device-light { order: 2; justify-self: center; width: min(300px, 80vw); margin-top: 48px; }
  .steps-ai { order: 3; justify-self: center; margin-top: 32px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .steps-ai li { min-width: 0; }
  .sec-head { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-in .btn { margin-left: auto; }
  .foot-big { font-size: clamp(46px, 11.5vw, 84px); }
  .foot-bar { grid-template-columns: 1fr auto; }
  .foot-links { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; gap: 0 22px; }
}

@media (max-width: 640px) {
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* the neuron's mixture: a basket and a pair carry two logos, and each kind of trade has its own tag */
.ns-post b em { font-style: normal; font-weight: 500; color: var(--ink-2); }
.ns-logo { position: relative; display: block; width: 40px; height: 32px; }
.ns-logo > .ic { width: 32px; height: 32px; font-size: 11px; }
.ns-duo > .ic { position: absolute; top: 4px; width: 24px; height: 24px; font-size: 8px; box-shadow: 0 0 0 2px #fff; }
.ns-duo > .ic:first-child { left: 0; }
.ns-duo > .ic:last-child { left: 16px; }
.ns-sub { display: block; font-size: 11.5px; color: var(--ink-3) !important; font-weight: 500 !important; }
.ns-px .js-spread, .ns-px .js-fed { font-weight: 600; font-size: 14px; }
.ns-tag-short { background: var(--down); }
.ns-tag-yes { background: #1d72d8; }
.ns-tag-ink { background: var(--ink); }
.ns-mk.fire:has(.ns-tag-short) { border-color: var(--down-chart); box-shadow: 0 0 0 4px rgba(255, 80, 32, .14); }
.ns-mk.fire:has(.ns-tag-yes) { border-color: #1d9bf0; box-shadow: 0 0 0 4px rgba(29, 155, 240, .16); }
.ns-mk.fire:has(.ns-tag-ink) { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(15, 20, 25, .1); }

/* ---------- reels ---------- */
.reels { border-top: 1px solid var(--line); overflow: hidden; }
.strip-wrap { position: relative; margin-top: clamp(24px, 3.5vw, 48px); }
.strip {
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(196px, 16.5vw, 232px);
  gap: 18px; justify-content: safe center;
  padding: 20px var(--gutter) 28px;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scrollbar-width: none;
}
.strip::-webkit-scrollbar { display: none; }
.reel {
  position: relative; isolation: isolate;
  aspect-ratio: 9 / 16; border-radius: 22px; overflow: hidden;
  background: #0f1419; color: #fff;
  scroll-snap-align: center; cursor: pointer;
  transform: scale(.95); will-change: transform;
  box-shadow: 0 30px 56px -34px rgba(15, 20, 25, .55);
  transition: transform .55s cubic-bezier(.2, .8, .25, 1);
}
.reel.on { transform: none; }
.reel-dim { position: absolute; inset: 0; z-index: 4; background: rgba(9, 12, 16, .4); pointer-events: none; transition: opacity .55s ease; }
.reel.on .reel-dim { opacity: 0; }
.reel:focus-visible { outline: 3px solid var(--link); outline-offset: 3px; }
.reel video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
.reel::before, .reel::after { content: ''; position: absolute; left: 0; right: 0; pointer-events: none; z-index: 0; }
.reel::before { top: 0; height: 26%; background: linear-gradient(rgba(0, 0, 0, .55), transparent); }
.reel::after { bottom: 0; height: 52%; background: linear-gradient(transparent, rgba(0, 0, 0, .78)); }
.reel-top { position: absolute; top: 12px; left: 12px; right: 10px; z-index: 2; display: flex; align-items: center; gap: 7px; font-size: 12.5px; white-space: nowrap; }
.reel-top b { font-weight: 700; overflow: hidden; text-overflow: ellipsis; }
.reel-top span { opacity: .7; }
.reel-av { width: 26px; height: 26px; flex: none; border-radius: 50%; object-fit: cover; border: 1.5px solid rgba(255, 255, 255, .85); background: #333; }
.reel-snd {
  flex: none; margin: -3px -3px -3px auto; width: 36px; height: 36px; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(0, 0, 0, .4) center / 15px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11 5 6 9H3v6h3l5 4z'/%3E%3Cpath d='m22 9-6 6M16 9l6 6'/%3E%3C/svg%3E");
}
.reel-snd.on { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11 5 6 9H3v6h3l5 4z'/%3E%3Cpath d='M15.5 8.5a5 5 0 0 1 0 7M19 5a10 10 0 0 1 0 14'/%3E%3C/svg%3E"); }
.reel-rail { position: absolute; right: 9px; bottom: 112px; z-index: 2; display: grid; gap: 14px; justify-items: center; font-size: 12px; font-weight: 600; }
.reel-rail span { display: grid; justify-items: center; gap: 3px; }
.reel-rail svg { width: 22px; height: 22px; color: #fff; }
.reel-rail .reel-r { width: 15px; height: 20px; fill: #fff; }
.reel-bot { position: absolute; left: 12px; right: 12px; bottom: 14px; z-index: 2; }
.reel-cap {
  padding-right: 32px; font-size: 13px; line-height: 1.35; font-weight: 500; text-shadow: 0 1px 2px rgba(0, 0, 0, .55);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.reel-chips { margin-top: 9px; }
.rchip {
  display: inline-flex; align-items: center; gap: 6px; max-width: 100%;
  height: 30px; padding: 0 11px 0 4px; border-radius: 15px;
  background: rgba(255, 255, 255, .95); color: #0f1419;
  font-size: 12.5px; font-weight: 700; white-space: nowrap; overflow: hidden;
  transition: transform .12s;
}
.rchip .ic { width: 22px; height: 22px; font-size: 8.5px; }
.rchip b { font-weight: 700; }
.rchip .chg.up { color: var(--up); }
.rchip .chg.down { color: var(--down); }
.rchip.press { transform: scale(.94); }

.rtap {
  position: absolute; z-index: 6; width: 42px; height: 42px; margin: -21px 0 0 -21px; border-radius: 50%;
  background: rgba(255, 255, 255, .45); box-shadow: 0 0 0 1px rgba(255, 255, 255, .5);
  pointer-events: none; animation: tap .6s ease-out forwards;
}

@media (max-width: 1180px) {
  .strip { justify-content: start; }
}
@media (max-width: 720px) {
  .strip { grid-auto-columns: 62vw; gap: 14px; padding-inline: 19vw; }
  .reel { transform: scale(.93); }
}
@media (prefers-reduced-motion: reduce) {
  .reel { transform: none; }
}
@media (max-width: 900px) {
  /* after the desktop sizes above, so these win wherever the neuron stands up */
  .ns-logo { width: 44px; height: 44px; border-radius: 50%; }
  .ns-logo > .ic { width: 44px; height: 44px; font-size: 13px; }
  .ns-duo > .ic { top: 7px; width: 30px; height: 30px; font-size: 10px; }
  .ns-duo > .ic:last-child { left: 14px; }
}
/* the neuron's prices and moves keep their market colours */
.ns-mk .ns-px .up { color: var(--up); }
.ns-mk .ns-px .down { color: var(--down); }

/* ---------- markets: one card per kind ----------
   Each card is a small piece of the app with live numbers: white rows on a
   grey card, the label in the bento's blue. Predictions take the dark card,
   like the hero phone, and run the full height. */
.mkts { border-top: 1px solid var(--line); padding-block: clamp(56px, 6vw, 88px); }
.mkb {
  display: grid; gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-areas: "stk stk cry prd" "per spo com prd";
}
.mk-stk { grid-area: stk; } .mk-cry { grid-area: cry; } .mk-prd { grid-area: prd; }
.mk-per { grid-area: per; } .mk-spo { grid-area: spo; } .mk-com { grid-area: com; }
.mk {
  display: flex; flex-direction: column; min-width: 0;
  padding: 22px; border: 1px solid var(--line); border-radius: 24px; background: #f2f5f6;
}
.mk-k { font-size: 12px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: #1a8cd8; }
.mk .ic { width: 26px; height: 26px; font-size: 9px; }
.mk .chg { margin-left: auto; font-variant-numeric: tabular-nums; }

/* white rows, pushed to the card's foot */
.mk-list { display: grid; gap: 8px; margin: 0; padding: 18px 0 0; margin-top: auto; list-style: none; }
.mk-list li, .mk-chips li {
  display: flex; align-items: center; gap: 10px; min-width: 0;
  height: 48px; padding: 0 14px 0 11px;
  border: 1px solid var(--line-2); border-radius: 14px; background: #fff;
  font-size: 15px; white-space: nowrap;
}
.mk-list b, .mk-chips b { font-weight: 700; }
.mk-q { min-width: 0; overflow: hidden; text-overflow: ellipsis; font-weight: 600; font-size: 14.5px; }
.mk-c { margin-left: auto; font-weight: 700; font-variant-numeric: tabular-nums; }
.ic-league.has-logo { background: #fff; }

/* stocks: one big number with its day, then three more */
.mk-lead { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: end; gap: 24px; margin-top: 16px; }
.mk-name { display: flex; align-items: center; gap: 9px; font-size: 16px; }
.mk-name b { font-weight: 700; }
.mk-px { margin-top: 6px; font-family: var(--display); font-stretch: 88%; font-weight: 650; font-size: clamp(40px, 4vw, 56px); line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.mk-today { margin-top: 8px; font-size: 14px; color: var(--ink-2); }
.mk-today .chg { margin: 0; font-weight: 700; }

/* Nvidia's line: drawn around its price and never still; it turns red or
   green with the day, slowly */
.mk-chart { position: relative; align-self: stretch; min-height: 90px; color: var(--up-chart); transition: color .6s ease; }
.mk-chart.down { color: var(--down-chart); }
.mk-spark { display: block; width: 100%; height: 100%; min-height: 90px; overflow: visible; }
.mk-dot { position: absolute; left: 100%; top: 50%; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: currentColor; }
.mk-dot::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: currentColor; animation: dot-ping 1.6s ease-out infinite; }
@keyframes dot-ping { from { transform: scale(1); opacity: .5; } to { transform: scale(3.2); opacity: 0; } }

/* a number that just moved flashes its way: prices in colour, day moves behind */
[data-live].flash-up { animation: ink-up 1s ease-out; }
[data-live].flash-down { animation: ink-down 1s ease-out; }
[data-chg].flash-up, [data-chg].flash-down { border-radius: 5px; }
[data-chg].flash-up { animation: bg-up 1s ease-out; }
[data-chg].flash-down { animation: bg-down 1s ease-out; }
@keyframes ink-up { from { color: var(--up-chart); } }
@keyframes ink-down { from { color: var(--down-chart); } }
@keyframes bg-up { from { background: rgba(11, 172, 65, .2); } to { background: rgba(11, 172, 65, 0); } }
@keyframes bg-down { from { background: rgba(255, 80, 32, .2); } to { background: rgba(255, 80, 32, 0); } }

/* the cards rise in, one after another, the first time they come near */
.mk { transition: opacity .6s ease, transform .7s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--i, 0) * 80ms); }
.mkb.pre .mk { opacity: 0; transform: translateY(22px); }
.mk-chips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: auto 0 0; padding: 22px 0 0; list-style: none; }
.mk-chips .chg { font-size: 14px; }

/* a basket and options: the dark card. The basket is four kinds of market
   bought as one, each a share of $100 with its live move; options are one
   call or put, said plainly. The two panes share one cell, so switching
   never moves the page. */
.mk-prd { background: #0f1419; border-color: #0f1419; color: #fff; }
.pd-tabs { display: flex; gap: 16px; }
.pd-tab {
  padding: 12px 0; margin-block: -12px; border: 0; background: none; cursor: pointer;
  font: inherit; font-size: 12px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: rgba(255, 255, 255, .42);
  transition: color .2s ease;
}
.pd-tab.on { color: #6cc4ff; }
.pd-tab:focus-visible, .pd-sides button:focus-visible { outline: 2px solid #6cc4ff; outline-offset: 3px; border-radius: 6px; }
.pd-panes { display: grid; flex: 1; margin-top: 18px; }
.pd-pane { grid-area: 1 / 1; display: flex; flex-direction: column; min-width: 0; transition: opacity .35s ease, visibility .35s; }
.pd-pane:not(.on) { opacity: 0; visibility: hidden; }
.pd-q { display: flex; align-items: center; gap: 11px; }
.pd-q .ic { flex: none; width: 34px; height: 34px; font-size: 11px; }
.pd-q > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pd-q b { font-size: 17px; font-weight: 700; line-height: 1.25; letter-spacing: -.01em; }
.pd-q small { font-size: 12.5px; color: rgba(255, 255, 255, .55); font-variant-numeric: tabular-nums; }
.pd-sides { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
.pd-sides button {
  display: flex; align-items: center; justify-content: center; gap: 5px; height: 42px;
  border: 0; border-radius: 12px; background: rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .78);
  font: inherit; font-size: 14.5px; font-weight: 600; cursor: pointer; white-space: nowrap;
  transition: background .25s ease, color .25s ease;
}
.pd-sides b { font-weight: 700; font-variant-numeric: tabular-nums; }
.pd-sides .pd-up.on { background: #1d7a3e; color: #fff; }
.pd-sides .pd-dn.on { background: #b8401f; color: #fff; }
.pd-say { min-height: 4.2em; margin-top: 14px; font-size: 14.5px; line-height: 1.45; color: rgba(255, 255, 255, .86); }
.pd-say b { color: #fff; font-weight: 700; font-variant-numeric: tabular-nums; }
/* the basket: a leg per kind of market, its share and its move; one press
   fills them all, each ticking on its logo as its venue does */
.bsk-mark { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #fff; font-style: normal; }
.bsk-mark svg { width: 13px; height: 18px; fill: #0f1419; }
.bsk-legs { display: grid; gap: 6px; margin: 16px 0 18px; padding: 0; list-style: none; }
.bsk-legs li {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: 12px; background: rgba(255, 255, 255, .06);
  transition: background-color .3s ease;
}
.bsk-legs li.done { background: rgba(29, 122, 62, .24); }
.bsk-ic { position: relative; display: block; }
.bsk-ok {
  position: absolute; right: -5px; bottom: -5px; width: 15px; height: 15px; border-radius: 50%;
  display: grid; place-items: center; background: var(--up-chart); color: #fff; box-shadow: 0 0 0 2px #0f1419;
  transform: scale(0); transition: transform .3s cubic-bezier(.2, 1.6, .4, 1);
}
.bsk-ok svg { width: 9px; height: 9px; }
.bsk-legs li.done .bsk-ok { transform: none; }
.bsk-n { display: flex; flex-direction: column; min-width: 0; }
.bsk-n b { font-size: 14px; font-weight: 700; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bsk-n small { font-size: 12px; color: rgba(255, 255, 255, .55); }
.bsk-w { display: flex; flex-direction: column; align-items: flex-end; font-variant-numeric: tabular-nums; }
.bsk-w b { font-size: 14px; font-weight: 700; }
.bsk-w .chg, .bsk-px { margin: 0; font-size: 12px; font-weight: 600; }
.bsk-px { color: rgba(255, 255, 255, .7); }
.mk-prd .chg.up { color: var(--up-chart); }
.mk-prd .chg.down { color: var(--down-chart); }
.bsk-split { display: flex; gap: 3px; height: 6px; margin-top: auto; }
.bsk-split span { border-radius: 3px; background: var(--c); opacity: .3; transition: opacity .3s ease; }
.bsk-split span.done { opacity: 1; }
.bsk-buy {
  height: 44px; margin-top: 14px; border: 0; border-radius: 12px; background: #1d7a3e; color: #fff;
  font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; transition: background-color .25s ease, transform .15s;
}
.bsk-buy:hover { background: #22894a; }
.bsk-buy:active { transform: scale(.98); }
.bsk-buy:focus-visible { outline: 2px solid #6cc4ff; outline-offset: 3px; }
.mk-prd.bsk-busy .bsk-buy { background: rgba(255, 255, 255, .14); cursor: progress; }
.mk-prd.bsk-done .bsk-buy { background: rgba(29, 122, 62, .55); }
/* an option's payoff: $100 in, what it is worth at each price on the day */
/* in the tall card the picture sits in the middle of the room left */
.pd-pay { display: block; width: 100%; height: auto; margin-block: auto; padding-block: 18px; overflow: visible; }
.pd-zero { stroke: rgba(255, 255, 255, .2); stroke-dasharray: 3 4; }
.pd-now { stroke: rgba(255, 255, 255, .35); }
.pd-now-k { fill: rgba(255, 255, 255, .55); font-size: 10px; font-family: var(--text); }
.pd-loss, .pd-win { fill: none; stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.pd-loss { stroke: var(--down-chart); }
.pd-win { stroke: var(--up-chart); }

/* perps: a ticket with its leverage */
.mk-ticket { margin-top: auto; padding: 16px; border: 1px solid var(--line-2); border-radius: 18px; background: #fff; box-shadow: 0 18px 34px -26px rgba(15, 20, 25, .35); }
.mk-tk-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 15px; }
.mk-tk-h b { font-weight: 800; }
.mk-side { padding: 3px 8px; border-radius: 8px; background: var(--up-wash); color: var(--up); font-size: 12px; font-weight: 700; }
.mk-lev { position: relative; height: 4px; margin: 22px 9px 0; border-radius: 2px; background: var(--line-2); }
.mk-lev-fill { position: absolute; inset: 0 auto 0 0; width: 48.7%; border-radius: 2px; background: var(--up); transition: width .6s cubic-bezier(.3, .7, .2, 1); }
.mk-lev-knob { position: absolute; top: 50%; left: 48.7%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border: 2px solid var(--up); border-radius: 50%; background: #fff; transition: left .6s cubic-bezier(.3, .7, .2, 1); }
.mk-ticks { display: flex; justify-content: space-between; margin-top: 10px; font-size: 11.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.mk-pnl { margin-top: 14px; font-family: var(--display); font-stretch: 88%; font-weight: 650; font-size: 34px; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.mk-pnl-k { margin-top: 6px; font-size: 12.5px; color: var(--ink-2); }

/* the tape under the cards: two rows of the phone's market chips drifting
   past, the second the other way. Paused off screen and under a pointer. */
.tape { display: grid; gap: 4px; margin-top: clamp(24px, 3vw, 36px); }
@media (max-width: 640px) {
  /* on a phone the tape comes first, right under the words, then the cards */
  .mkts .wrap { display: flex; flex-direction: column; }
  .mkts .tape { order: 1; margin-top: 24px; }
  .mkts .mkb { order: 2; margin-top: 20px; }
}
.tape-lane {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 56px, #000 calc(100% - 56px), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 56px, #000 calc(100% - 56px), transparent);
}
.tape-track { display: flex; gap: 10px; width: max-content; margin: 0; padding: 6px 0 10px; list-style: none; }
.tape.is-on .tape-track { animation: drift var(--dur, 60s) linear infinite; }
.tape.is-on .tape-lane:nth-child(even) .tape-track { animation-direction: reverse; }
.tape.is-paused .tape-track, .tape-lane:hover .tape-track { animation-play-state: paused; }
@keyframes drift { to { transform: translateX(calc(-1 * var(--shift, 0px))); } }
.mt {
  display: flex; align-items: center; gap: 9px; flex: none;
  height: 48px; padding: 0 14px 0 10px;
  border: 1px solid var(--line-2); border-radius: 16px; background: #fff;
  box-shadow: 0 10px 22px -18px rgba(15, 20, 25, .4);
  font-size: 14.5px; white-space: nowrap;
}
.mt .ic { width: 28px; height: 28px; font-size: 9.5px; }
.mt b { font-weight: 800; letter-spacing: -.01em; }
.mt .px { font-variant-numeric: tabular-nums; }
.mt .chg { font-size: 13px; font-variant-numeric: tabular-nums; }
.mt-q { font-weight: 600; }
.mt-side, .mt-yes { padding: 3px 8px; border-radius: 8px; font-size: 12.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.mt-side.long, .mt-yes { background: var(--up-wash); color: var(--up); }
.mt-side.short { background: var(--down-wash); color: var(--down); }

@media (prefers-reduced-motion: reduce) {
  .mk-dot::after { animation: none; }
  .mk, .mk-chart, .mk-lev-fill, .mk-lev-knob, .pd-pane, .pd-sides button, .bsk-legs li, .bsk-ok, .bsk-split span, .bsk-buy { transition: none; }
  .tape-lane { overflow-x: auto; scrollbar-width: none; }
}

@media (max-width: 1180px) {
  .mkb { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "stk stk" "cry com" "per spo" "prd prd"; }
}
@media (max-width: 640px) {
  .mkb { grid-template-columns: minmax(0, 1fr); grid-template-areas: "stk" "cry" "com" "per" "spo" "prd"; }
  .mk { padding: 18px; border-radius: 22px; }
  .mk-lead { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .mk-spark { height: 72px; }
  /* three across still, each ticker over its day */
  .mk-chips li { flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; height: 54px; padding: 0 11px; font-size: 13.5px; }
  .mk-chips .ic { display: none; }
  .mk-chips .chg { margin-left: 0; font-size: 13px; }
  .tape-lane { margin-inline: calc(-1 * var(--gutter)); }
  .mt { height: 44px; gap: 8px; padding: 0 12px 0 8px; border-radius: 14px; font-size: 13.5px; }
  .mt .ic { width: 26px; height: 26px; }
}

/* ---------- thesis: the bento ---------- */
.bento-sec { background: var(--wash); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.bxc {
  display: flex; flex-direction: column; min-width: 0;
  padding: 22px 22px 0; border: 1px solid var(--line-2); border-radius: 24px;
  background: #fff; overflow: hidden;
}
.bxc-k { font-size: 12px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: #1a8cd8; }
.bxc h3 { margin: 8px 0 0; font-size: 20px; font-weight: 650; line-height: 1.25; letter-spacing: -.012em; text-wrap: balance; max-width: 20ch; }
.bxc-vis { margin-top: auto; padding: 26px 0 22px; display: flex; justify-content: center; }

/* a small piece of the app inside each card */
.v-card {
  width: 100%; max-width: 330px; padding: 12px 14px;
  border: 1px solid var(--line-2); border-radius: 18px; background: #fff;
  box-shadow: 0 18px 34px -24px rgba(15, 20, 25, .35);
  font-size: 13.5px;
}
.v-av { width: 30px; height: 30px; flex: none; clip-path: circle(50%); }
.v-btn { padding: 6px 15px; border-radius: 16px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 700; }

.v-row { display: flex; gap: 10px; align-items: flex-start; }
.v-row p { line-height: 1.4; padding-top: 4px; }
.v-row .caret { height: 15px; vertical-align: -2px; }
.v-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.v-att { display: inline-flex; align-items: center; gap: 6px; }
.v-att .ic { width: 20px; height: 20px; font-size: 7.5px; }

.v-ph { display: flex; align-items: center; gap: 9px; }
.v-ph p { min-width: 0; line-height: 1.25; }
.v-ph b { display: block; font-weight: 700; }
.v-ph span { color: var(--ink-2); font-size: 12.5px; }
.v-follow { margin-left: auto; padding: 5px 13px; border: 1px solid var(--line-3); border-radius: 15px; font-size: 12.5px; font-weight: 700; color: var(--ink) !important; }
.v-text { margin-top: 9px; line-height: 1.4; }
.v-pos { display: flex; align-items: center; gap: 8px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.v-pos [data-live] { margin-left: auto; font-weight: 600; font-variant-numeric: tabular-nums; }

.v-brow { display: flex; align-items: center; gap: 10px; }
.v-brow .bk-logos { background: var(--line); }
.v-brow p { min-width: 0; line-height: 1.3; }
.v-brow b { display: block; font-weight: 800; }
.v-brow span { color: var(--ink-2); font-size: 12.5px; }
.v-bfoot { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: 12.5px; }
.v-bfoot .chg { font-weight: 700; font-size: 13.5px; }

/* three cards: one row of three, or one column, never two and one left over */
@media (max-width: 900px) {
  .bento { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .bxc { padding: 20px 18px 0; }
}

/* ---------- the reel's trade drawer ---------- */
.reel-sheet {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 5;
  padding: 8px 12px 12px; border-radius: 20px 20px 0 0;
  background: #fff; color: #0f1419; cursor: default;
  box-shadow: 0 -14px 34px rgba(0, 0, 0, .38);
  visibility: hidden; transform: translateY(calc(100% + 40px));
  transition: transform .45s cubic-bezier(.2, .85, .25, 1), visibility 0s .45s;
}
.reel.sheet .reel-sheet { visibility: visible; transform: none; transition: transform .45s cubic-bezier(.2, .85, .25, 1); }
.rs-grip { display: block; width: 32px; height: 4px; margin: 0 auto 10px; border-radius: 2px; background: #cfd9de; }
.rs-h { display: flex; align-items: center; gap: 6px; font-size: 12px; white-space: nowrap; overflow: hidden; }
.rs-h .ic { width: 22px; height: 22px; font-size: 8px; }
.rs-h b { font-size: 13px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; }
.rs-h [data-live] { margin-left: auto; font-weight: 600; font-variant-numeric: tabular-nums; }
.rs-h .chg { font-weight: 700; }
.rs-h.rs-q { align-items: flex-start; white-space: normal; }
.rs-h.rs-q b { padding-top: 2px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.rs-dir { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 10px; }
.rs-dir span { height: 32px; border-radius: 9px; display: flex; align-items: center; justify-content: center; gap: 4px; white-space: nowrap; background: #eff3f4; color: #536471; font-size: 13px; font-weight: 700; }
.rs-dir em { font-style: normal; font-weight: 600; opacity: .85; }
.rs-dir .on { background: var(--up); color: #fff; }
.rs-dir span:first-child.on { background: var(--down); }
.rs-dir span, .rs-chips span { cursor: pointer; }
.rs-row { display: flex; justify-content: space-between; align-items: baseline; margin-top: 9px; font-size: 11.5px; color: #536471; }
.rs-row b { color: #0f1419; font-size: 13px; font-weight: 800; }
.rs-chips { display: flex; gap: 5px; margin-top: 6px; }
.rs-chips span { flex: 1; padding: 4px 0; border-radius: 10px; background: #eff3f4; text-align: center; font-size: 11.5px; font-weight: 600; }
.rs-chips .on { background: #fff; box-shadow: inset 0 0 0 1.5px #0f1419; }
.rs-slide {
  position: relative; height: 40px; margin-top: 11px; border-radius: 20px;
  display: grid; place-items: center; overflow: hidden;
  background: #eff3f4; touch-action: none; user-select: none; -webkit-user-select: none;
}
.rs-slide:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
.rs-fill { position: absolute; top: 0; bottom: 0; right: calc(100% - 40px); width: 100%; border-radius: 20px; background: #d5eedc; }
.rs-label { position: relative; z-index: 1; padding-left: 28px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.rs-knob {
  position: absolute; left: 3px; top: 3px; z-index: 2;
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--up); color: #fff; box-shadow: 0 2px 8px rgba(8, 128, 48, .35);
  cursor: grab;
}
.rs-slide.held .rs-knob { cursor: grabbing; }
.rs-slide.neg .rs-knob { background: var(--down); box-shadow: 0 2px 8px rgba(210, 45, 0, .35); }
.rs-slide.neg .rs-fill { background: #fbdcd2; }
.rs-slide.glide .rs-knob, .rs-slide.glide .rs-fill { transition: transform var(--d, .6s) cubic-bezier(.55, 0, .25, 1); }
.rs-slide.glide .rs-label { transition: opacity var(--d, .6s); }
.rs-knob svg { width: 16px; height: 16px; }
.rs-done {
  position: absolute; inset: 0; z-index: 3; border-radius: inherit;
  display: grid; place-content: center; justify-items: center; gap: 6px; padding: 12px; text-align: center;
  background: #fff; opacity: 0; pointer-events: none; transition: opacity .25s ease;
}
.rs-done b { font-size: 17px; font-weight: 800; }
.rs-done > span:last-child { font-size: 12px; color: #536471; }
.rs-ok { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #0c8a35; color: #fff; box-shadow: 0 8px 18px rgba(12, 138, 53, .3); }
.rs-ok svg { width: 22px; height: 22px; }
.reel.done .rs-done { opacity: 1; }
.reel.done .rs-ok { animation: pop2 .4s ease-out; }

/* On a phone the demo phones take two thirds of the width, not four fifths,
   so a whole device fits on screen with room around it. Corners and bezel
   shrink with it, so it keeps the same shape. */
@media (max-width: 600px) {
  .device, .device-light { width: clamp(236px, 66vw, 268px); }
  .device-frame { padding: 8px; border-radius: 42px; }
  .screen-box { border-radius: 34px; }
  .device-light .device-frame { padding: 7px; border-radius: 41px; }
  .device-light .screen-box { border-radius: 34px; }
}
