#converge-shell[data-view=home] .cv-home-introduction,
#converge-shell[data-view=home] .cv-home-tour {
  width:100%;
  max-width:1400px;
  margin-inline:auto;
}

.cv-home-introduction {
  padding-block:clamp(38px,5.5vw,88px) clamp(28px,3.5vw,54px);
  text-align:center;
}
.cv-home-introduction h1 {
  max-width:27ch;
  margin:0 auto;
  font-size:clamp(36px,5.8vw,84px);
  letter-spacing:-.06em;
  line-height:1.02;
  text-wrap:balance;
}
.cv-home-introduction p {
  max-width:48ch;
  margin:16px auto 0;
  color:var(--color-muted);
  font-size:clamp(15px,1.5vw,19px);
  line-height:1.5;
  text-wrap:balance;
}

.cv-home-tour {
  display:grid;
  min-width:0;
  gap:clamp(54px,8vw,120px);
  padding-block-end:clamp(60px,9vw,130px);
}
.cv-home-feature {
  display:grid;
  grid-template-columns:minmax(185px,1fr) minmax(0,3.1fr);
  grid-template-areas:"heading screen";
  align-items:center;
  gap:clamp(18px,3.2vw,51px);
}
.cv-home-feature--terminal {
  grid-template-columns:minmax(0,1fr);
  grid-template-areas:"heading" "screen";
  gap:12px;
}
.cv-home-feature--scanner {
  grid-template-columns:minmax(0,3.1fr) minmax(185px,1fr);
  grid-template-areas:"screen heading";
}
.cv-home-screen-heading {
  grid-area:heading;
  min-width:0;
}
.cv-home-screen-heading h2 {
  margin:0;
  font-size:clamp(28px,3.6vw,54px);
  line-height:1.05;
  letter-spacing:-.045em;
}
.cv-home-screen-heading p {
  max-width:29ch;
  margin:12px 0 0;
  color:var(--color-muted);
  font-size:clamp(14px,1.3vw,18px);
  line-height:1.5;
  text-wrap:pretty;
}
.cv-home-feature--terminal .cv-home-screen-heading {
  display:flex;
  align-items:baseline;
  flex-wrap:wrap;
  gap:3px 15px;
  padding-inline:clamp(4px,1.15vw,16px);
}
.cv-home-feature--terminal h2 {
  font-size:clamp(21px,2.4vw,33px);
  letter-spacing:-.035em;
}
.cv-home-feature--terminal p {
  max-width:none;
  margin:0;
  font-size:clamp(13px,1.15vw,16px);
}
.cv-home-feature-link {
  display:inline-flex;
  align-items:center;
  gap:9px;
  width:fit-content;
  margin-block-start:20px;
  padding:8px 12px;
  margin-inline-start:-12px;
  border-radius:999px;
  color:var(--color-text);
  font-size:14px;
  text-decoration:none;
}
.cv-home-feature-link:is(:hover,:focus-visible) { background:var(--material-hover); }
.cv-home-screen {
  grid-area:screen;
  display:block;
  min-width:0;
  padding:clamp(4px,.7vw,10px);
  overflow:hidden;
  border:1px solid var(--material-rim);
  border-radius:clamp(10px,1.6vw,24px);
  background:var(--material-surface);
  box-shadow:0 24px 64px -44px #000a;
}
.cv-home-feature--terminal .cv-home-screen {
  background:linear-gradient(160deg,var(--material-hover),var(--material-surface) 70%);
  box-shadow:0 30px 84px -47px #000c;
}

@media (max-width:690px) {
  .cv-home-feature,
  .cv-home-feature--scanner {
    grid-template-columns:minmax(0,1fr);
    grid-template-areas:"heading" "screen";
  }
  .cv-home-screen-heading p { max-width:40ch; }
  .cv-home-feature-link { margin-block-start:8px; }
}

.cv-home-screen[data-home-demo] {
  --demo-edge:var(--material-rim,#ffffff24);
  --demo-fill:var(--material-hover,#ffffff0d);
  --demo-muted:var(--color-muted,#adb9bc);
  --demo-gain:#78dcaa;
  --demo-loss:#f08e9b;
  padding:clamp(8px,1vw,15px);
  color:var(--color-text);
  font-size:clamp(11px,1vw,14px);
  font-variant-numeric:tabular-nums;
  cursor:default;
}
html[data-theme=light] .cv-home-screen[data-home-demo] {
  --demo-gain:#16754c;
  --demo-loss:#ad3851;
}
.cv-home-screen [data-tone=long] { color:var(--demo-gain); }
.cv-home-screen [data-tone=short] { color:var(--demo-loss); }
.cv-home-screen small { font-size:.83em; color:var(--demo-muted); }
.cv-demo-icon {
  display:inline-grid;
  width:1.6em;
  aspect-ratio:1;
  place-items:center;
  flex:none;
  border-radius:50%;
  color:var(--demo-icon);
  background:color-mix(in srgb,var(--demo-icon) 18%,transparent);
  font-size:.9em;
  font-weight:700;
}
.cv-demo-coin { display:inline-flex; align-items:center; gap:.35em; }
.cv-demo-side {
  padding:.22em .55em;
  border-radius:999px;
  background:var(--demo-fill);
  white-space:nowrap;
}

.cv-home-screen[data-home-demo=terminal] {
  display:grid;
  align-items:stretch;
  grid-template-columns:minmax(0,2fr) minmax(0,1.55fr) minmax(0,1.05fr);
  grid-template-areas:"quotes quotes calc" "chart books calc";
  gap:8px;
}
.cv-demo-market {
  grid-area:quotes;
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
}
.cv-demo-market > *,
.cv-demo-chart,
.cv-demo-book,
.cv-demo-calc {
  min-width:0;
  border:1px solid var(--demo-edge);
  border-radius:clamp(8px,1.15vw,17px);
  background:var(--demo-fill);
}
.cv-demo-market > * { padding:clamp(9px,1.3vw,17px); }
.cv-demo-market > .cv-demo-coin { font-size:clamp(13px,2.1vw,29px); }
.cv-demo-market > div { display:flex; flex-wrap:wrap; align-items:center; gap:4px 7px; }
.cv-demo-market > div strong { flex-basis:100%; white-space:nowrap; font-size:clamp(12px,1.45vw,21px); }

.cv-demo-chart { grid-area:chart; display:flex; flex-direction:column; padding:9px; }
.cv-demo-chart header {
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:6px;
  margin-bottom:10px;
}
.cv-demo-period { display:flex; gap:2px; padding:2px; border-radius:999px; background:var(--demo-fill); }
.cv-demo-period button,
.cv-demo-cap button {
  border:0;
  padding:4px 8px;
  border-radius:999px;
  background:transparent;
  color:inherit;
  font:inherit;
  cursor:pointer;
}
.cv-demo-cap button { background:var(--demo-fill); }
.cv-demo-period button:hover,
.cv-demo-cap button:hover { background:var(--material-selected,var(--demo-fill)); }
.cv-demo-period button[aria-pressed=true] {
  background:var(--cv-common-pill,var(--material-selected));
  color:var(--cv-common-pill-ink,var(--color-text));
}
.cv-demo-legend { display:inline-flex; align-items:center; gap:5px; color:var(--demo-muted); }
.cv-demo-legend i { width:6px; height:6px; border-radius:50%; background:var(--demo-gain); }
.cv-demo-chart-area {
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  flex:1;
  min-height:225px;
}
.cv-demo-chart canvas {
  grid-area:1 / 1;
  width:100%;
  height:100%;
  min-width:0;
  min-height:0;
  contain:size;
  background-image:linear-gradient(to right,var(--demo-edge) 1px,transparent 1px),
    linear-gradient(to bottom,var(--demo-edge) 1px,transparent 1px);
  background-size:16.666% 100%,100% 33.333%;
}
.cv-demo-chart-axis {
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  padding-inline-start:5px;
  color:var(--demo-muted);
  font-size:10px;
}
.cv-demo-chart-time {
  display:flex;
  justify-content:space-between;
  margin:5px 37px 0 0;
  color:var(--demo-muted);
  font-size:10px;
}

.cv-demo-books { grid-area:books; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
.cv-demo-book h3 {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:4px;
  margin:0;
  padding:8px 6px;
  font-size:inherit;
}
.cv-demo-book table,
.cv-demo-table { width:100%; border-collapse:collapse; }
.cv-demo-book :is(th,td) { padding:4px 6px; text-align:start; white-space:nowrap; }
.cv-demo-book :is(th,td):last-child { text-align:end; }
.cv-demo-book th { font-size:10px; font-weight:500; color:var(--demo-muted); }
.cv-demo-book td:last-child { position:relative; isolation:isolate; color:var(--color-text); }
.cv-demo-book tr[data-tone=short] { --depth-color:var(--demo-loss); }
.cv-demo-book tr[data-tone=long] { --depth-color:var(--demo-gain); }
.cv-demo-book td:last-child::before {
  position:absolute;
  inset:1px 0;
  z-index:-1;
  background:color-mix(in srgb,var(--depth-color) 18%,transparent);
  transform:scaleX(var(--depth,0));
  transform-origin:right;
  transition:transform 230ms ease-out;
  content:"";
}
@media (prefers-reduced-motion:reduce) {
  .cv-demo-book td:last-child::before { transition:none; }
}

.cv-demo-calc {
  grid-area:calc;
  display:flex;
  flex-direction:column;
  padding:clamp(8px,1.2vw,16px);
}
.cv-demo-cap { display:flex; align-items:center; justify-content:space-between; gap:4px; color:var(--demo-muted); }
.cv-demo-calc dl { margin:5px 0 15px; }
.cv-demo-calc dl > div { padding:10px 0; border-bottom:1px solid var(--demo-edge); }
.cv-demo-calc dt { color:var(--demo-muted); line-height:1.4; }
.cv-demo-calc dd { margin:4px 0 0; font-size:clamp(13px,1.5vw,22px); }
.cv-demo-calc-venues { display:flex; flex-wrap:wrap; gap:7px 11px; margin-top:auto; }

.cv-demo-table-top {
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:0 4px 8px;
  color:var(--demo-muted);
}
.cv-demo-table :is(th,td) { text-align:start; padding:clamp(4px,.8vw,11px) clamp(3px,.75vw,10px); }
.cv-demo-table th { border-bottom:1px solid var(--demo-edge); color:var(--demo-muted); font-weight:500; }
.cv-demo-table td { border-bottom:1px solid var(--demo-edge); vertical-align:middle; }
.cv-demo-table tbody tr:last-child td { border-bottom:0; }
.cv-demo-table td > span:not(.cv-demo-coin) { display:flex; align-items:center; gap:4px; }
.cv-demo-table td > span + span { margin-top:5px; }
.cv-demo-table td:last-child { white-space:nowrap; }

@media (max-width:960px) {
  .cv-home-screen[data-home-demo=terminal] {
    grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);
    grid-template-areas:"quotes quotes" "chart books" "calc calc";
  }
  .cv-demo-calc dl { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); column-gap:9px; }
}
@media (max-width:620px) {
  .cv-home-screen[data-home-demo=terminal] {
    grid-template-columns:minmax(0,1fr);
    grid-template-areas:"quotes" "chart" "books" "calc";
  }
  .cv-demo-chart-area { min-height:157px; }
  .cv-demo-calc dl { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .cv-demo-market div { gap:3px; }
  .cv-demo-market div strong { font-size:10px; }
  .cv-demo-table .cv-demo-coin small,
  .cv-demo-table td:nth-child(2) small,
  .cv-demo-table td:nth-child(2) .cv-demo-icon { display:none; }
}
