:root {
  --ink: #101828;
  --ink-soft: #344054;
  --muted: #667085;
  --line: #e4e7ec;
  --line-strong: #d0d5dd;
  --paper: #ffffff;
  --paper-soft: #f8fafc;
  --paper-blue: #f3f7ff;
  --blue: #2457f5;
  --blue-dark: #183bad;
  --blue-soft: #dce7ff;
  --green: #18794e;
  --green-soft: #eaf8f1;
  --red: #c43232;
  --shadow: 0 18px 55px rgba(16, 24, 40, 0.08);
  --radius: 18px;
  --shell: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

button {
  font: inherit;
}

.shell {
  width: min(calc(100% - 48px), var(--shell));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: relative;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark,
.brand-mini {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  background: var(--blue);
  color: #fff;
  font-weight: 850;
  box-shadow: 0 8px 22px rgba(36, 87, 245, 0.22);
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  font-size: 18px;
  transform: rotate(-4deg);
}

.brand-copy {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.brand-copy strong {
  font-size: 20px;
  letter-spacing: -0.025em;
}

.brand-copy small {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.13em;
}

.legal-link,
.back-link {
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 700;
  text-underline-offset: 4px;
  text-decoration-color: var(--line-strong);
}

.legal-link:hover,
.back-link:hover {
  color: var(--blue);
  text-decoration-color: var(--blue);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  gap: clamp(48px, 8vw, 110px);
  align-items: center;
  min-height: 580px;
  padding-block: 90px;
}

.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 14% auto auto 47%;
  width: 330px;
  height: 330px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(36, 87, 245, 0.08), rgba(36, 87, 245, 0));
  filter: blur(6px);
}

.eyebrow,
.card-kicker {
  margin: 0 0 20px;
  color: var(--blue);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.13em;
  line-height: 1.3;
}

.eyebrow span {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 5px var(--blue-soft);
}

.hero h1 {
  max-width: 700px;
  margin: 0;
  font-size: clamp(54px, 7vw, 86px);
  font-weight: 780;
  letter-spacing: -0.065em;
  line-height: 0.96;
}

.hero h1 em {
  color: var(--blue);
  font-style: normal;
}

.hero-intro {
  max-width: 630px;
  margin: 30px 0 0;
  color: var(--ink-soft);
  font-size: clamp(18px, 2.1vw, 22px);
  line-height: 1.55;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 32px;
}

.hero-meta span {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  background: var(--paper);
  font-size: 12px;
  font-weight: 700;
}

.reading-card {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(145deg, #fff, #f8faff);
  box-shadow: var(--shadow);
}

.reading-card .card-kicker {
  margin-bottom: 12px;
}

.reading-card h2 {
  margin: 0 0 28px;
  font-size: 30px;
  letter-spacing: -0.04em;
  line-height: 1.12;
}

.reading-card ol {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.reading-card li {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  padding-block: 17px;
  border-top: 1px solid var(--line);
}

.reading-card li > span {
  padding-top: 2px;
  color: var(--blue);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 12px;
  font-weight: 800;
}

.reading-card strong {
  font-size: 16px;
}

.reading-card p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.snapshot-wrap {
  border-block: 1px solid #dbe4fa;
  background: var(--paper-blue);
  padding-block: 26px 30px;
}

.snapshot-label {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 13px;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.snapshot-label small {
  font: inherit;
  letter-spacing: 0.04em;
}

.snapshot-grid {
  display: grid;
  grid-template-columns: 1.75fr repeat(4, 1fr);
  overflow: hidden;
  border: 1px solid #d6def0;
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 8px 30px rgba(16, 24, 40, 0.05);
}

.snapshot-grid article {
  display: flex;
  min-height: 116px;
  padding: 22px;
  flex-direction: column;
  justify-content: space-between;
  border-left: 1px solid var(--line);
}

.snapshot-grid article:first-child {
  border-left: 0;
}

.snapshot-grid small {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.11em;
}

.snapshot-grid strong {
  font-size: 30px;
  letter-spacing: -0.045em;
  line-height: 1;
}

.snapshot-grid sup {
  margin-left: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
}

.snapshot-grid .state-card {
  background: #f8faff;
}

.state-card strong {
  font-size: clamp(19px, 2vw, 26px);
}

.state-card > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.state-card > span i {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--green);
}

.state-card.signal-active {
  background: var(--green-soft);
}

.state-card.signal-active strong {
  color: var(--green);
}

.snapshot-grid .date-value {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 17px;
  letter-spacing: -0.03em;
}

.section {
  padding-block: 100px;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.65fr);
  gap: 50px;
  align-items: end;
  margin-bottom: 32px;
}

.section-heading .eyebrow {
  margin-bottom: 12px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(36px, 4vw, 54px);
  letter-spacing: -0.055em;
  line-height: 1.02;
}

.section-heading > p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.market-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.chart-toolbar {
  display: flex;
  min-height: 64px;
  padding: 12px 18px 12px 22px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.legend i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.legend .price {
  background: #2457f5;
}

.legend .model {
  background: #e89b2f;
}

.legend .breadth {
  background: #15a1a4;
}

.ranges {
  display: flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper-soft);
}

.ranges button {
  min-width: 44px;
  min-height: 34px;
  padding: 6px 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
}

.ranges button:hover,
.ranges button:focus-visible {
  color: var(--ink);
  background: #fff;
}

.ranges button.active {
  color: #fff;
  background: var(--blue);
  box-shadow: 0 4px 10px rgba(36, 87, 245, 0.2);
}

.chart-block {
  position: relative;
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  min-height: 130px;
  border-top: 1px solid var(--line);
}

.chart-block:first-of-type {
  border-top: 0;
}

.chart-side-label {
  display: flex;
  padding: 18px 14px;
  flex-direction: column;
  gap: 3px;
  border-right: 1px solid var(--line);
  background: var(--paper-soft);
}

.chart-side-label strong {
  color: var(--ink-soft);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
}

.chart-side-label span {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 9px;
}

.price-block {
  min-height: 410px;
}

.indicator-block {
  min-height: 142px;
}

#price-chart,
#score-chart,
#breadth-chart,
#leader-chart {
  min-width: 0;
}

.chart-message {
  position: absolute;
  inset: 0 0 0 82px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.chart-message[hidden] {
  display: none;
}

.chart-message span {
  width: 18px;
  height: 18px;
  border: 2px solid var(--blue-soft);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}

.chart-message.error {
  color: var(--red);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.research-note {
  max-width: 780px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.research-note strong {
  color: var(--ink-soft);
}

.ranking-section {
  border-top: 1px solid var(--line);
}

.leader-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.72fr) minmax(0, 1.28fr);
  overflow: hidden;
  min-height: 430px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.leader-summary {
  display: flex;
  padding: 32px;
  flex-direction: column;
  border-right: 1px solid var(--line);
  background: var(--paper-soft);
}

.leader-top {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.leader-top span {
  color: var(--blue);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 30px;
  font-weight: 850;
}

.leader-top small,
.leader-score span {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.leader-name {
  display: flex;
  gap: 15px;
  align-items: center;
  margin-top: 38px;
}

.leader-name > span {
  display: grid;
  width: 66px;
  height: 66px;
  place-items: center;
  border: 1px solid var(--blue-soft);
  border-radius: 15px;
  background: #fff;
  color: var(--blue);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 17px;
  font-weight: 850;
}

.leader-name h3 {
  margin: 0;
  font-size: 23px;
  letter-spacing: -0.035em;
  line-height: 1.14;
}

.leader-name p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.leader-score {
  margin-top: 32px;
}

.leader-score > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.leader-score strong {
  font-size: 28px;
  letter-spacing: -0.04em;
}

.leader-score progress,
.row-strength progress {
  display: block;
  overflow: hidden;
  border: 0;
  height: 7px;
  margin-top: 8px;
  border-radius: 999px;
  background: #e7ebf2;
  appearance: none;
}

.leader-score progress {
  width: 100%;
}

.leader-score progress::-webkit-progress-bar,
.row-strength progress::-webkit-progress-bar {
  border-radius: inherit;
  background: #e7ebf2;
}

.leader-score progress::-webkit-progress-value,
.row-strength progress::-webkit-progress-value {
  border-radius: inherit;
  background: var(--blue);
}

.leader-score progress::-moz-progress-bar,
.row-strength progress::-moz-progress-bar {
  border-radius: inherit;
  background: var(--blue);
}

.leader-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 28px 0 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--line);
  overflow: hidden;
}

.leader-metrics div {
  padding: 14px;
  background: #fff;
}

.leader-metrics dt {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 9px;
  font-weight: 800;
}

.leader-metrics dd {
  margin: 5px 0 0;
  font-size: 16px;
  font-weight: 800;
}

.positive {
  color: var(--green) !important;
}

.negative {
  color: var(--red) !important;
}

.leader-note {
  margin: auto 0 0;
  padding-top: 24px;
  color: var(--muted);
  font-size: 12px;
}

.leader-chart-card {
  min-width: 0;
  background: #fff;
}

.leader-chart-card header {
  display: flex;
  min-height: 67px;
  padding: 15px 20px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.leader-chart-card header div {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.leader-chart-card header strong {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 15px;
}

.leader-chart-card header span,
.leader-chart-card header small {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 9px;
  letter-spacing: 0.06em;
}

#leader-chart {
  position: relative;
  height: 362px;
}

#leader-chart .chart-message {
  inset: 0;
}

.rank-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0 16px;
}

.rank-controls button,
.show-all {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 12px;
  font-weight: 750;
}

.rank-controls button {
  padding: 9px 14px;
}

.rank-controls button:hover,
.rank-controls button:focus-visible,
.rank-controls button.active {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--paper-blue);
}

.rank-list {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.rank-head,
.rank-row {
  display: grid;
  grid-template-columns: 72px minmax(280px, 1.4fr) repeat(3, minmax(75px, 0.45fr)) minmax(130px, 0.7fr);
  align-items: center;
}

.rank-head {
  min-height: 45px;
  padding-inline: 18px;
  border-bottom: 1px solid var(--line);
  background: var(--paper-soft);
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.07em;
}

.rank-row {
  width: 100%;
  min-height: 68px;
  padding: 9px 18px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.rank-row:last-child {
  border-bottom: 0;
}

.rank-row:hover,
.rank-row:focus-visible,
.rank-row.selected {
  background: var(--paper-blue);
}

.row-rank {
  color: var(--blue);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 13px;
  font-weight: 850;
}

.row-fund {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
}

.row-fund > b {
  min-width: 56px;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 13px;
}

.row-fund > span {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.row-fund strong {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.row-fund small {
  color: var(--muted);
  font-size: 10px;
}

.row-return {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 12px;
  font-weight: 750;
}

.row-strength {
  display: flex;
  align-items: center;
  gap: 10px;
}

.row-strength progress {
  width: 78px;
  height: 5px;
  margin: 0;
}

.row-strength span {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 10px;
  font-weight: 800;
}

.show-all {
  width: 100%;
  margin-top: 10px;
}

.show-all:hover,
.show-all:focus-visible {
  border-color: var(--blue);
  color: var(--blue);
}

.data-status {
  margin: 13px 0 0;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 10px;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--paper-soft);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 32px;
  align-items: center;
  min-height: 128px;
  color: var(--muted);
  font-size: 12px;
}

.footer-inner > div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mini {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  font-size: 14px;
}

.footer-inner p {
  margin: 0;
}

.footer-inner > div p {
  display: flex;
  flex-direction: column;
}

.footer-inner strong {
  color: var(--ink-soft);
  font-size: 13px;
}

.footer-inner small {
  margin-top: 2px;
  font-size: 10px;
}

.footer-inner > a {
  justify-self: end;
  color: var(--ink-soft);
  font-weight: 700;
  text-underline-offset: 4px;
}

/* Legal page */
.legal-page {
  background: #fff;
}

.legal-shell {
  width: min(calc(100% - 48px), 1080px);
  margin-inline: auto;
  padding-bottom: 120px;
}

.legal-hero {
  max-width: 820px;
  padding-block: 90px 70px;
}

.legal-hero h1 {
  margin: 0;
  font-size: clamp(48px, 7vw, 76px);
  letter-spacing: -0.065em;
  line-height: 0.98;
}

.legal-hero > p:last-child {
  max-width: 640px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.legal-layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 730px);
  gap: 80px;
  align-items: start;
}

.legal-nav {
  position: sticky;
  top: 28px;
  display: flex;
  padding: 20px 0;
  flex-direction: column;
  border-top: 2px solid var(--ink);
}

.legal-nav strong {
  margin-bottom: 14px;
  font-size: 12px;
}

.legal-nav a {
  padding: 7px 0;
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
}

.legal-nav a:hover {
  color: var(--blue);
}

.legal-content section {
  padding: 56px 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 32px;
}

.legal-content section:first-child {
  border-top: 2px solid var(--ink);
}

.section-number {
  margin: 0 0 12px;
  color: var(--blue);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 12px;
  font-weight: 800;
}

.legal-content h2 {
  margin: 0 0 38px;
  font-size: 40px;
  letter-spacing: -0.045em;
}

.legal-content h3 {
  margin: 34px 0 10px;
  color: var(--ink);
  font-size: 17px;
  letter-spacing: -0.02em;
}

.legal-content p,
.legal-content address {
  margin: 0 0 18px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.75;
}

.legal-content address {
  font-style: normal;
}

.legal-content a {
  color: var(--blue-dark);
  text-underline-offset: 3px;
}

.legal-callout {
  margin-bottom: 28px;
  padding: 24px;
  border-left: 4px solid var(--blue);
  border-radius: 0 12px 12px 0;
  background: var(--paper-blue);
}

.legal-callout strong {
  font-size: 17px;
}

.legal-callout p {
  margin: 8px 0 0;
}

.legal-date {
  margin-top: 44px !important;
  color: var(--muted) !important;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 11px !important;
}

/* Status pages */
.status-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 32px;
  background: var(--paper-blue);
}

.status-page main {
  width: min(100%, 620px);
  padding: 56px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow);
  text-align: center;
}

.status-page main > span {
  color: var(--blue);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 13px;
  font-weight: 850;
}

.status-page h1 {
  margin: 12px 0;
  font-size: 38px;
  letter-spacing: -0.05em;
}

.status-page p {
  color: var(--muted);
}

.status-page main div {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}

.status-page a {
  padding: 10px 15px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
}

.status-page a:first-child {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 48px;
    padding-block: 72px;
  }

  .reading-card {
    max-width: 720px;
  }

  .snapshot-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .snapshot-grid article {
    border-top: 1px solid var(--line);
  }

  .snapshot-grid article:nth-child(odd) {
    border-left: 0;
  }

  .snapshot-grid .state-card {
    grid-column: 1 / -1;
    border-top: 0;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .leader-grid {
    grid-template-columns: 1fr;
  }

  .leader-summary {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .leader-note {
    margin-top: 24px;
  }

  .rank-list {
    overflow-x: auto;
  }

  .rank-head,
  .rank-row {
    min-width: 900px;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .footer-inner > p {
    display: none;
  }

  .legal-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .legal-nav {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px 18px;
  }

  .legal-nav strong {
    flex: 0 0 100%;
  }
}

@media (max-width: 640px) {
  .shell,
  .legal-shell {
    width: min(calc(100% - 28px), var(--shell));
  }

  .header-inner {
    min-height: 68px;
  }

  .brand-copy small {
    display: none;
  }

  .legal-link,
  .back-link {
    max-width: 145px;
    font-size: 12px;
    text-align: right;
  }

  .hero {
    min-height: 0;
    padding-block: 58px;
  }

  .hero h1 {
    font-size: clamp(48px, 15vw, 66px);
  }

  .hero-intro {
    font-size: 17px;
  }

  .reading-card {
    padding: 23px;
  }

  .reading-card h2 {
    font-size: 25px;
  }

  .snapshot-label {
    flex-direction: column;
    gap: 4px;
  }

  .snapshot-grid article {
    min-height: 106px;
    padding: 18px;
  }

  .snapshot-grid strong {
    font-size: 25px;
  }

  .section {
    padding-block: 72px;
  }

  .section-heading h2 {
    font-size: 38px;
  }

  .chart-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .ranges {
    align-self: stretch;
  }

  .ranges button {
    flex: 1;
  }

  .chart-block {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .chart-message { left: 58px; }

  .chart-side-label {
    padding-inline: 9px;
  }

  .price-block {
    min-height: 330px;
  }

  .leader-summary {
    padding: 24px;
  }

  .leader-name > span {
    width: 58px;
    height: 58px;
  }

  .leader-metrics div {
    padding: 11px;
  }

  #leader-chart {
    height: 310px;
  }

  .rank-controls {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 6px;
  }

  .rank-controls button {
    flex: 0 0 auto;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    padding-block: 28px;
  }

  .footer-inner > a {
    justify-self: start;
  }

  .legal-hero {
    padding-block: 64px 52px;
  }

  .legal-hero h1 {
    font-size: 48px;
  }

  .legal-content section {
    padding-block: 46px;
  }

  .legal-content h2 {
    font-size: 34px;
  }

  .status-page main {
    padding: 38px 22px;
  }
}

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