/* The shared blocks: sections, the product demos, the Exchange tour, the
   market map, the price strip, questions and answers, the downloads and the
   call-to-action bands. Color is kept for meaning: Klavender for what you
   can act on, green and red for up and down, greys for everything else. */

.section { padding: var(--space-3xl) 0; }
.section-head { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-xs); margin-bottom: var(--space-xl); max-width: 52rem; }
.section-head.split { max-width: none; display: grid; grid-template-columns: 1.1fr 1fr; align-items: end; gap: var(--space-l); }
.section-head.split > div { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-xs); }
.section-title { font-size: var(--step-5); line-height: 1.06; letter-spacing: -0.03em; font-weight: 500; text-wrap: balance; }
.link-arrow.more { margin-top: var(--space-l); }
@media (max-width: 860px) { .section-head.split { grid-template-columns: 1fr; align-items: start; } }

/* ---- Demos (the local models terminal) ------------------------------------------ */

.demo {
  position: relative;
  display: flex; flex-direction: column; gap: 16px; align-items: center;
  padding: var(--space-m);
  border: 1px solid var(--border); border-radius: var(--radius-card);
  background: var(--card);
  min-width: 0;
}

/* ---- Exchange previews: the app, in miniature ----------------------------------- */

.pv {
  --raised: #292729;
  display: flex; flex-direction: column; gap: 12px;
  width: 100%; min-width: 0; padding: 18px;
  container-type: inline-size;
  border-radius: 18px; background: #1A191A; border: 1px solid #2E2C2E;
  box-shadow: 0 30px 70px -40px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.03);
  color: var(--text); font-size: 14px; text-align: left;
}
[data-theme="light"] .pv { --raised: #F4EFF4; background: #fff; border-color: var(--border); box-shadow: 0 30px 70px -40px rgba(30, 29, 30, 0.25); }
/* Each part rises in once, in order, when its section is revealed. */
.pv [style*="--k"] { animation: pv-in 520ms var(--ease) backwards; animation-delay: calc(var(--k) * 70ms + 120ms); }
.js .reveal.wait .pv [style*="--k"] { animation-play-state: paused; }
@keyframes pv-in { from { opacity: 0; transform: translateY(6px); } }
.pv-rows { display: flex; flex-direction: column; }
.pv-rows div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid #2A282A; }
[data-theme="light"] .pv-rows div { border-color: var(--border); }
.pv-rows dt { color: var(--muted); }
.pv-rows dd { font-variant-numeric: tabular-nums; }
.pv-cta { display: flex; align-items: center; justify-content: center; gap: 8px; height: 42px; border-radius: var(--radius-pill); background: var(--accent); color: var(--on-accent); font-weight: 600; }
.pv-cta.wallet { background: #AB9FF2; color: #1E1D1E; }
.pv-cta img { border-radius: 6px; }
/* They lead to the real thing: an account, or your wallet. */
a.pv-cta { transition: filter var(--dur-fast) var(--ease-ui), transform 120ms var(--ease-ui); }
a.pv-cta:hover { filter: brightness(1.06); }
a.pv-cta:active { transform: scale(0.98); }

.pv-sentence { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 17px; font-weight: 500; padding: 4px 0 6px; }
.pv-word { color: var(--muted); }
.pv-pill { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 10px; background: var(--raised); border: 1px solid rgba(255, 255, 255, 0.06); }
.pv-pill.coin { padding-left: 7px; }
.pv-pill img { border-radius: 50%; }
/* Simple's amount and coin can be changed: a dotted underline marks them,
   and a tap gives a little press. */
.pv-pill.pick { position: relative; color: var(--text); font: inherit; cursor: pointer; transition: border-color var(--dur-fast) var(--ease-ui), transform 120ms var(--ease-ui); }
.pv-pill.pick::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 5px; border-bottom: 1.5px dotted color-mix(in srgb, var(--accent) 70%, transparent); }
.pv-pill.pick:hover { border-color: color-mix(in srgb, var(--accent) 55%, transparent); }
.pv-pill.pick:active { transform: scale(0.95); }
.pv-hint { color: var(--faint); font-size: 12px; text-align: center; }
.pv-risk { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 12px; border-radius: 12px; background: rgba(255, 53, 50, 0.08); color: var(--muted); }
.pv-risk b { color: var(--text); font-variant-numeric: tabular-nums; }
.pv-risk.sell { background: var(--positive-wash); }

.pv-field { display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto auto; column-gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--raised); }
.pv-field-label { grid-column: 1 / -1; color: var(--muted); font-size: 12.5px; }
.pv-amount { font-size: 26px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.pv-token { display: inline-flex; align-items: center; gap: 8px; align-self: center; height: 36px; padding: 0 12px 0 6px; border-radius: var(--radius-pill); background: rgba(255, 255, 255, 0.06); font-weight: 600; }
.pv-token img { border-radius: 50%; }
.pv-field small { grid-column: 1 / -1; color: var(--muted); font-size: 12px; }
.pv-flip { display: grid; place-items: center; width: 34px; height: 34px; margin: -20px auto; z-index: 1; border-radius: 10px; background: #1A191A; border: 3px solid #1A191A; box-shadow: 0 0 0 1px #2E2C2E; }
.pv-flip svg { width: 16px; height: 16px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 420ms var(--ease-ui), stroke var(--dur-fast) var(--ease-ui); }
/* It flips the swap: its arrows turn a half turn as the sides trade. */
.pv-flip { position: relative; cursor: pointer; }
.pv-flip:hover svg { stroke: var(--text); }
.pv-flip.flipped svg { transform: rotate(180deg); }
[data-theme="light"] .pv-flip { background: #fff; border-color: #fff; box-shadow: 0 0 0 1px var(--border); }
.pv-route p { display: flex; justify-content: space-between; color: var(--muted); font-size: 12.5px; margin-bottom: 6px; }
.pv-split { display: flex; gap: 3px; height: 22px; }
.pv-split i { display: flex; align-items: center; padding: 0 8px; border-radius: 6px; font-style: normal; font-size: 11.5px; font-weight: 600; white-space: nowrap; overflow: hidden; }
.pv-split i:first-child { background: color-mix(in srgb, var(--klavender) 22%, transparent); color: var(--accent-ink); }
.pv-split i:last-child { background: color-mix(in srgb, var(--kpurple) 20%, transparent); color: var(--kpurple); }

.pv-pro-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pv-pro-head img { border-radius: 50%; }
.pv-pro-price { font-weight: 600; font-variant-numeric: tabular-nums; }
.pv-tabs { margin-left: auto; display: inline-flex; gap: 2px; padding: 2px; border-radius: 8px; background: var(--raised); }
.pv-tabs button { padding: 2px 8px; border-radius: 6px; font-size: 12px; color: var(--muted); transition: color var(--dur-fast) var(--ease-ui), background-color var(--dur-fast) var(--ease-ui); }
.pv-tabs button:hover { color: var(--text); }
.pv-tabs button.on { background: rgba(255, 255, 255, 0.08); color: var(--text); }
.pv-pro-body { display: grid; grid-template-columns: minmax(0, 1fr) 128px; gap: 12px; }
.pv-candles { width: 100%; height: 190px; overflow: visible; }
.pv-candles g line { stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.pv-candles g.up line { stroke: var(--positive); }
.pv-candles g.up rect { fill: var(--positive); }
.pv-candles g.down line { stroke: var(--negative); }
.pv-candles g.down rect { fill: var(--negative); }
.pv-candles g { animation: candle-in 420ms var(--ease) backwards; animation-delay: calc(var(--c) * 16ms + 200ms); transform-box: fill-box; transform-origin: center bottom; }
.js .reveal.wait .pv-candles g { animation-play-state: paused; }
@keyframes candle-in { from { opacity: 0; transform: scaleY(0.4); } }
.pv-last { stroke: var(--positive); stroke-width: 1; stroke-dasharray: 3 3; vector-effect: non-scaling-stroke; opacity: 0.7; }
.pv-book { display: flex; flex-direction: column; gap: 2px; font-size: 12px; font-variant-numeric: tabular-nums; }
.pv-book-head { display: flex; justify-content: space-between; color: var(--faint); padding: 0 4px 4px; }
.pv-book-row { position: relative; display: flex; justify-content: space-between; padding: 3px 4px; border-radius: 4px; overflow: hidden; }
.pv-book-row::before { content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: var(--d); opacity: 0.16; }
.pv-book-row.ask span:first-child { color: var(--negative); }
.pv-book-row.ask::before { background: var(--negative); }
.pv-book-row.bid span:first-child { color: var(--positive); }
.pv-book-row.bid::before { background: var(--positive); }
.pv-book-row span { position: relative; }
.pv-spread { display: flex; justify-content: space-between; align-items: baseline; padding: 6px 4px; margin: 2px 0; border-top: 1px solid #2A282A; border-bottom: 1px solid #2A282A; }
.pv-spread b { font-size: 14px; }
.pv-spread span { color: var(--faint); font-size: 11px; }

.pv-balance { display: flex; flex-direction: column; gap: 2px; }
.pv-balance > span:first-child { color: var(--muted); font-size: 12.5px; }
.pv-balance b { font-size: 30px; font-weight: 600; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.pv-balance .up { font-size: 13px; }
.pv-week { width: 100%; height: 64px; overflow: visible; }
.pv-week polygon { fill: rgba(73, 222, 120, 0.1); }
.pv-week polyline { fill: none; stroke: var(--positive); stroke-width: 2; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.pv-holdings { display: flex; flex-direction: column; }
.pv-holdings li { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-top: 1px solid #2A282A; }
[data-theme="light"] .pv-holdings li { border-color: var(--border); }
.pv-holdings img { border-radius: 50%; flex: none; }
.pv-holding-name { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.pv-holding-name b { font-weight: 500; }
.pv-holding-name small, .pv-holding-value small { color: var(--faint); font-size: 12px; }
.pv-holding-value { display: flex; flex-direction: column; align-items: flex-end; font-variant-numeric: tabular-nums; }
.pv-holding-value b { font-weight: 500; }
.pv-holding-value small.up { color: var(--positive); }

/* ---- Market hours: the week as a timeline ------------------------------------- */

.hours { padding: var(--space-m); border-radius: 24px; background: var(--surface); border: 1px solid var(--border); }
.hours-when { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; color: var(--muted); font-size: var(--step--1); min-height: 1.5em; }
.hours-when b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.hours-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-wash); }
.hours-dot.scrub { background: var(--text); box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.1); }
/* Three columns sharing row heights: names, the week, and what's open. */
.hours-grid { --head: 26px; --row: 44px; --gap: 12px; display: grid; grid-template-columns: 200px minmax(0, 1fr) 160px; column-gap: 24px; }
.hours-names, .hours-states { display: grid; grid-template-rows: repeat(3, var(--row)); row-gap: var(--gap); padding-top: calc(8px + var(--head) + var(--gap)); }
.hours-name { display: flex; flex-direction: column; justify-content: center; gap: 2px; }
.hours-name b { font-weight: 600; }
.hours-name small { color: var(--muted); font-size: 13px; }
.hours-status { display: flex; align-items: center; font-size: 13.5px; font-weight: 500; }
.hours-open { display: inline-flex; align-items: center; gap: 6px; color: var(--positive); }
.hours-open::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--positive); }
.hours-closed { color: var(--muted); }
/* The week: day columns shaded once behind every row, the weekend a little
   darker; no lines between days. */
.hours-plot {
  position: relative; display: grid; grid-template-rows: var(--head) repeat(3, var(--row)); row-gap: var(--gap); padding-top: 8px;
  touch-action: pan-y; cursor: crosshair;
  background:
    linear-gradient(to right, transparent calc(100% / 7 * 5), rgba(0, 0, 0, 0.18) calc(100% / 7 * 5)),
    repeating-linear-gradient(to right, rgba(255, 255, 255, 0.022) 0 calc(100% / 7), transparent calc(100% / 7) calc(100% / 3.5));
  border-radius: 12px;
}
[data-theme="light"] .hours-plot { background: linear-gradient(to right, transparent calc(100% / 7 * 5), rgba(30, 29, 30, 0.04) calc(100% / 7 * 5)), repeating-linear-gradient(to right, rgba(30, 29, 30, 0.025) 0 calc(100% / 7), transparent calc(100% / 7) calc(100% / 3.5)); }
.hours-days { display: grid; grid-template-columns: repeat(7, 1fr); align-items: center; color: var(--faint); font-size: 12.5px; text-align: center; }
.hours-row { position: relative; }
.hours-bar { position: absolute; top: 0; bottom: 0; border-radius: 8px; background: rgba(73, 222, 120, 0.42); transition: background-color 240ms var(--ease); }
.hours-row:not(.closed) .hours-bar { background: rgba(73, 222, 120, 0.55); }
.hours-row.closed .hours-bar { background: rgba(73, 222, 120, 0.22); }
[data-theme="light"] .hours-bar { background: rgba(0, 115, 41, 0.28); }
[data-theme="light"] .hours-row:not(.closed) .hours-bar { background: rgba(0, 115, 41, 0.38); }
/* One line through every row: now, or wherever the pointer is. It glides
   to a new "now", and follows the pointer without delay. */
.hours-cursor { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; border-radius: 2px; background: var(--text); box-shadow: 0 0 10px rgba(255, 255, 255, 0.35); pointer-events: none; transition: left 400ms var(--ease), opacity 300ms var(--ease); }
.hours-cursor.scrub { transition: opacity 300ms var(--ease); }
.hours-cursor::before { content: ""; position: absolute; top: -3px; left: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--text); }
@media (max-width: 860px) {
  .hours { padding: var(--space-s); }
  .hours-grid { --row: 38px; grid-template-columns: 96px minmax(0, 1fr); column-gap: 12px; }
  .hours-states { display: none; }
  .hours-name small { display: none; }
  .hours-name b { font-size: 14px; display: inline-flex; align-items: center; gap: 6px; }
  .hours-name.open b::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--positive); }
  .hours-days { font-size: 10.5px; }
}

/* ---- Providers on the AI page ------------------------------------------------------ */

.providers { padding: var(--space-l) 0 var(--space-xl); border-top: 1px solid var(--border); }
.providers-title { color: var(--faint); font-size: 13px; text-align: center; margin-bottom: var(--space-s); letter-spacing: 0.02em; }
.providers-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 36px; }
.providers-row li { display: flex; align-items: center; gap: 10px; color: var(--muted); transition: color var(--dur-fast) var(--ease-ui); }
.providers-row li:hover { color: var(--text); }
.provider-mark { display: grid; place-items: center; width: 24px; height: 24px; }
.provider-mark svg { width: 24px; height: 24px; }
.providers-row b { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
@media (max-width: 520px) { .providers-row { gap: 14px 24px; } .providers-row b { font-size: 15px; } .provider-mark, .provider-mark svg { width: 20px; height: 20px; } }

/* ---- Questions and answers ------------------------------------------------------ */

.faq { border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q { display: flex; align-items: center; justify-content: space-between; gap: 24px; width: 100%; padding: 22px 0; text-align: left; font-size: var(--step-1); font-weight: 500; letter-spacing: -0.01em; transition: color var(--dur-fast) var(--ease-ui); }
.faq-q:hover .plus { border-color: var(--muted); }
/* An answer opens from the top with its words already there, uncovered as
   the space grows; closing, the words go first. */
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 320ms var(--ease-in-out); }
.faq-item.open .faq-a { transition: grid-template-rows 380ms var(--ease-ui); }
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a > div { overflow: hidden; min-height: 0; }
.faq-a p { padding: 0 56px 26px 0; color: var(--muted); max-width: 44em; opacity: 0; transform: translateY(-4px); transition: opacity 120ms var(--ease-out), transform 120ms var(--ease-out); }
.faq-item.open .faq-a p { opacity: 1; transform: none; transition: opacity 240ms var(--ease-out), transform 380ms var(--ease-ui); }

/* ---- Price strip ------------------------------------------------------------------ */

.ticker {
  position: relative; z-index: 2;
  display: flex; align-items: center;
  border-top: 1px solid var(--border);
  background: rgba(30, 29, 30, 0.7);
  -webkit-backdrop-filter: saturate(160%) blur(12px); backdrop-filter: saturate(160%) blur(12px);
  font-size: 13px;
}
[data-theme="light"] .ticker { background: rgba(255, 255, 255, 0.8); }
.ticker-label { display: inline-flex; align-items: center; gap: 8px; flex: none; padding: 0 18px 0 var(--gutter); color: var(--faint); border-right: 1px solid var(--border); line-height: 52px; white-space: nowrap; }
.ticker-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--faint); }
.ticker-track { flex: 1; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 28px, #000 calc(100% - 64px), transparent); mask-image: linear-gradient(90deg, transparent, #000 28px, #000 calc(100% - 64px), transparent); }
.ticker-belt { display: flex; width: max-content; animation: belt 70s linear infinite; }
.ticker:hover .ticker-belt { animation-play-state: paused; }
@keyframes belt { to { transform: translateX(-50%); } }
.ticker-row { display: flex; }
.tick { display: inline-flex; align-items: center; gap: 12px; height: 52px; padding: 0 22px; white-space: nowrap; font-variant-numeric: tabular-nums; border-right: 1px solid rgba(255, 255, 255, 0.04); }
.tick-name { display: flex; flex-direction: column; line-height: 1.15; }
.tick-name b { font-weight: 700; font-size: 13px; }
.tick-name small { color: var(--muted); font-size: 11px; }
.tick-spark { width: 56px; height: 18px; overflow: visible; }
.tick-spark polyline { fill: none; stroke-width: 1.4; stroke-linejoin: round; stroke-linecap: round; }
.tick-spark.up polyline { stroke: var(--positive); }
.tick-spark.down polyline { stroke: var(--negative); }
.tick-price { padding: 2px 6px; border-radius: 6px; color: var(--text); }
.flash-up0 { animation: flash-up0 900ms var(--ease); }
.flash-up1 { animation: flash-up1 900ms var(--ease); }
.flash-down0 { animation: flash-down0 900ms var(--ease); }
.flash-down1 { animation: flash-down1 900ms var(--ease); }
@keyframes flash-up0 { from { background: var(--positive-wash); color: var(--positive); } }
@keyframes flash-up1 { from { background: var(--positive-wash); color: var(--positive); } }
@keyframes flash-down0 { from { background: var(--negative-wash); color: var(--negative); } }
@keyframes flash-down1 { from { background: var(--negative-wash); color: var(--negative); } }
.tick-change { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; }
.tick-change i { font-style: normal; font-size: 9px; }
.tick-change.up { color: var(--positive); }
.tick-change.down { color: var(--negative); }
@media (prefers-reduced-motion: reduce) { .ticker-track { overflow-x: auto; } .ticker-belt { animation: none; } .ticker-row[aria-hidden] { display: none; } }
@media (max-width: 640px) { .ticker-label { display: none; } .tick-name small { display: none; } }

/* ---- Getting Kassandra AI ----------------------------------------------------------- */

.install-cmd { display: flex; flex-direction: column; gap: 14px; width: 100%; min-width: 0; }
.install-head { align-self: center; margin-bottom: -2px; }
/* One terminal card: the systems along its top, the command under them. */
.install-card { min-width: 0; border-radius: 18px; background: var(--term-bg); color: var(--term-text); box-shadow: 0 0 0 1px #2A282A, 0 30px 60px -36px rgba(0, 0, 0, 0.7); overflow: hidden; }
.os-tabs { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 6px; border-bottom: 1px solid #2A282A; }
.os-tabs::before { content: ""; position: absolute; top: 6px; bottom: 6px; left: 6px; width: calc((100% - 12px) / 3); border-radius: 12px; background: #262426; box-shadow: inset 0 0 0 1px #343134; transform: translateX(calc(var(--i, 0) * 100%)); transition: transform 380ms var(--ease-ui); }
.os-tabs button { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 9px; min-width: 0; height: 46px; border-radius: 12px; color: var(--term-faint); font-size: 15px; font-weight: 500; white-space: nowrap; transition: color var(--dur-fast) var(--ease-ui); }
.os-tabs button:hover, .os-tabs button.on { color: var(--term-text); }
.os-mark { flex: none; width: 18px; height: 18px; transition: transform 420ms var(--ease-bounce); }
.os-tabs button.on .os-mark { transform: scale(1.1); }
/* This computer's tab: a small green dot after its name. */
.os-here { display: none; width: 6px; height: 6px; margin-left: -2px; border-radius: 50%; background: var(--term-success); box-shadow: 0 0 0 3px rgba(73, 222, 120, 0.14); }
.os-here.show { display: block; }
/* Which system's command, prompt and note show (blocks/install.rs): this
   computer's, from <html data-os>, until the page is live; then the tab
   picked, from the card's own data-os. */
.install-cmd .pick { display: none; }
html[data-os="mac"] .install-cmd:not([data-os]) .c-mac,
html[data-os="mac"] .install-cmd:not([data-os]) .n-mac,
html[data-os="linux"] .install-cmd:not([data-os]) .c-linux,
html[data-os="linux"] .install-cmd:not([data-os]) .n-linux,
html[data-os="linux-arm"] .install-cmd:not([data-os]) .c-linux-arm,
html[data-os="linux-arm"] .install-cmd:not([data-os]) .n-linux,
html[data-os="windows"] .install-cmd:not([data-os]) .n-windows,
html[data-os="phone"] .install-cmd:not([data-os]) .c-mac,
html[data-os="phone"] .install-cmd:not([data-os]) .n-phone,
html:not([data-os]) .install-cmd:not([data-os]) .c-mac,
html:not([data-os]) .install-cmd:not([data-os]) .n-mac,
.install-cmd[data-os="mac"] .c-mac,
.install-cmd[data-os="mac"]:not([data-phone]) .n-mac,
.install-cmd[data-os="linux"] .c-linux,
.install-cmd[data-os="linux"]:not([data-phone]) .n-linux,
.install-cmd[data-os="linux-arm"] .c-linux-arm,
.install-cmd[data-os="linux-arm"]:not([data-phone]) .n-linux,
.install-cmd[data-os="windows"]:not([data-phone]) .n-windows,
.install-cmd[data-phone] .n-phone { display: inline-block; }
/* The app's row, on a Mac or a PC (not on a phone, which can't run it);
   Windows has no command row: its app sets up the command too. */
html[data-os="mac"] .install-cmd:not([data-os]) .a-mac,
html[data-os="windows"] .install-cmd:not([data-os]) .a-windows,
html:not([data-os]) .install-cmd:not([data-os]) .a-mac,
.install-cmd[data-os="mac"]:not([data-phone]) .a-mac,
.install-cmd[data-os="windows"]:not([data-phone]) .a-windows { display: flex; }
html[data-os="windows"] .install-cmd:not([data-os]) .cmd,
.install-cmd[data-os="windows"] .cmd { display: none; }
html[data-os="mac"] .install-cmd:not([data-os]) .os-tabs { --i: 0; }
html[data-os="mac"] .install-cmd:not([data-os]) .os-tabs .t-mac { color: var(--term-text); }
html[data-os="mac"] .install-cmd:not([data-os]) .os-tabs .t-mac .os-here { display: block; }
html[data-os="linux"] .install-cmd:not([data-os]) .os-tabs { --i: 1; }
html[data-os="linux"] .install-cmd:not([data-os]) .os-tabs .t-linux { color: var(--term-text); }
html[data-os="linux"] .install-cmd:not([data-os]) .os-tabs .t-linux .os-here { display: block; }
html[data-os="linux-arm"] .install-cmd:not([data-os]) .os-tabs { --i: 1; }
html[data-os="linux-arm"] .install-cmd:not([data-os]) .os-tabs .t-linux { color: var(--term-text); }
html[data-os="linux-arm"] .install-cmd:not([data-os]) .os-tabs .t-linux .os-here { display: block; }
html[data-os="windows"] .install-cmd:not([data-os]) .os-tabs { --i: 2; }
html[data-os="windows"] .install-cmd:not([data-os]) .os-tabs .t-windows { color: var(--term-text); }
html[data-os="windows"] .install-cmd:not([data-os]) .os-tabs .t-windows .os-here { display: block; }
html[data-os="phone"] .install-cmd:not([data-os]) .os-tabs { --i: 0; }
html[data-os="phone"] .install-cmd:not([data-os]) .os-tabs .t-mac { color: var(--term-text); }
.cmd-swap { animation: cmd-in 320ms var(--ease-ui) backwards; }
@keyframes cmd-in { from { opacity: 0; transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) { .os-tabs::before { transition: none; } .cmd-swap { animation: none; } }
@media (max-width: 420px) { .os-tabs button { gap: 7px; font-size: 14px; } .os-mark { width: 16px; height: 16px; } }
@media (max-width: 340px) { .os-tabs button { font-size: 13px; } }
.get-app { align-items: center; gap: 14px; padding: 14px 14px 14px 16px; border-bottom: 1px solid #2A282A; animation: cmd-in 320ms var(--ease-ui) backwards; }
.a-windows { border-bottom: 0; }
.app-icon { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 12px; background: #262426; box-shadow: inset 0 0 0 1px #343134; }
.app-text { display: flex; flex-direction: column; flex: 1; min-width: 0; line-height: 1.35; }
.app-text b { font-size: 15px; font-weight: 600; }
.app-text small { color: var(--term-faint); font-size: 13px; }
.app-get { flex: none; gap: 8px; }
.app-get .ico { width: 17px; height: 17px; }
.app-get:hover .ico { transform: translateY(2px); }
@media (prefers-reduced-motion: reduce) { .get-app { animation: none; } }
.cmd { display: flex; align-items: flex-start; gap: 12px; padding: 8px 8px 8px 20px; }
.cmd-prompt { padding-top: 9px; line-height: 1.5; }
.cmd-prompt { color: var(--term-faint); font-family: var(--font-mono); font-size: 13px; }
/* The whole command, wrapping at its spaces rather than cut off at the edge. */
.cmd code { flex: 1; min-width: 0; font-size: 13px; line-height: 1.5; white-space: normal; overflow-wrap: anywhere; padding: 9px 0; }
/* A command longer than its box fades out under the Copy button's soft
   edge (it scrolls, and Copy takes all of it) instead of looking cut off.
   A shadow rather than a mask: a masked scroller sits on its own layer,
   which Chrome may not repaint when the command changes. */
.cmd code { padding-right: 24px; }
.cmd code::-webkit-scrollbar { display: none; }
.cmd-copy { position: relative; display: inline-flex; align-items: center; gap: 6px; flex: none; height: 34px; padding: 0 12px; border-radius: 10px; background: #2A282A; color: var(--term-text); font-size: 13px; font-weight: 500; box-shadow: -14px 0 14px 2px var(--term-bg); transition: background-color var(--dur-fast) var(--ease-ui); }
.cmd-copy:hover { background: #343134; }
.cmd-copy-icons { display: grid; width: 15px; height: 15px; }
.cmd-copy-icons .ico { grid-area: 1 / 1; width: 15px; height: 15px; transition: transform 300ms var(--ease-bounce), opacity 200ms; }
.cmd-copy-icons .ico:last-child { opacity: 0; transform: scale(0.4); color: var(--term-success); }
.cmd-copy.done .cmd-copy-icons .ico:first-child { opacity: 0; transform: scale(0.4); }
.cmd-copy.done .cmd-copy-icons .ico:last-child { opacity: 1; transform: none; }
.install-note { color: var(--muted); font-size: var(--step--1); }
/* A phone can't run the command: the way in there is the cloud. */
.install-note .install-cloud { display: flex; width: fit-content; margin: 14px auto 0; }
@media (max-width: 520px) { .cmd-copy span:last-child { display: none; } }

/* ---- Bands -------------------------------------------------------------------------- */

.band { position: relative; overflow: hidden; isolation: isolate; padding: var(--space-3xl) 0; }
/* Glyph weather behind a section (blocks/glyphs.rs). */
.backdrop { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.band-in { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-s); }
.band-title { font-size: var(--step-6); line-height: 1.04; letter-spacing: -0.035em; font-weight: 400; max-width: 14em; }
.band-lede { font-size: var(--step-1); max-width: 34em; }
.fees { display: flex; gap: var(--space-l); margin-top: var(--space-xs); flex-wrap: wrap; }
.fees dt { font-size: 14px; opacity: 0.8; }
.fees dd { font-size: var(--step-2); font-weight: 700; letter-spacing: -0.02em; }

.trade-band { background: var(--klavender); color: var(--kblack); }
.trade-band .btn.dark { background: var(--kblack); color: var(--white); }
.trade-band .btn.dark:hover { background: #000; }

.ai-band { background: var(--term-bg); color: var(--term-text); border-top: 1px solid #2A282A; }
.band-prompt { font-family: var(--font-mono); font-size: var(--step-0); color: var(--term-muted); }
.band-prompt::after { content: ""; display: inline-block; width: 0.55em; height: 1.1em; margin-left: 4px; vertical-align: -0.15em; background: var(--term-primary); animation: blink 1s steps(1) infinite; }
.ai-band .band-lede { color: var(--term-muted); }
.band-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.ai-band .btn.white { background: var(--white); color: var(--kblack); }
.ai-band .btn.ghost { background: transparent; color: var(--term-text); border-color: #3F3C3F; }
.ai-band .fees dd { color: var(--term-text); }
.ai-band .fees dt { color: var(--term-muted); }

/* A short explanation next to a section ("What's a stock token?"). */
.explainer { display: flex; gap: 14px; align-items: flex-start; margin-top: var(--space-l); padding: var(--space-s) var(--space-m); border-radius: 16px; background: var(--surface); border: 1px solid var(--border); max-width: 52rem; }
.explainer-ico { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 9px; background: var(--card-hover); color: var(--muted); }
.explainer-ico .ico { width: 16px; height: 16px; }
.explainer p { color: var(--muted); font-size: var(--step--1); }
.explainer b { color: var(--text); }

/* A card narrower than its sentence (a laptop's stage column) keeps it on
   one line with smaller pills. */
@container (max-width: 380px) {
  .pv-sentence { font-size: 15px; gap: 4px; }
  .pv-pill { height: 30px; padding: 0 9px; }
}
/* Previews on narrow cards: the chart above the book, the sentence on one line. */
@media (max-width: 560px) {
  .pv { padding: 14px; }
  .pv-pro-body { grid-template-columns: 1fr; }
  .pv-candles { height: 150px; }
  .pv-sentence { font-size: 15px; gap: 4px; }
  .pv-pill { height: 30px; padding: 0 9px; }
  .pv-amount { font-size: 22px; }
}
[data-theme="light"] .pv-token, [data-theme="light"] .pv-tabs button.on { background: rgba(30, 29, 30, 0.06); }
[data-theme="light"] .pv-pill { border-color: rgba(30, 29, 30, 0.06); }
[data-theme="light"] .pv-spread { border-color: var(--border); }
[data-theme="light"] .pv-split i:first-child { color: #A0249F; }
[data-theme="light"] .pv-split i:last-child { color: #6B35A8; }

/* A build that isn't published yet (blocks/install.rs reads the downloads'
   manifest): a plain sentence where its command goes, no prompt or Copy,
   and the app's button says it's coming. `.later`, not `.soon`: that's the
   coming-soon page's own layout (shell.css), 70svh tall. */
.install-cmd .cmd-swap.later { font-family: var(--font-sans); color: var(--muted); white-space: normal; letter-spacing: 0; }
.install-cmd .cmd.off .cmd-prompt, .install-cmd .cmd.off .cmd-copy { display: none; }
.install-cmd .app-get.later { opacity: 0.6; cursor: default; pointer-events: none; }
