:root {
  color-scheme: dark;
  --canvas: #0d1117;
  --canvas-inset: #010409;
  --surface: #161b22;
  --surface-soft: #0f141b;
  --surface-raised: #1c2128;
  --line: #30363d;
  --line-muted: #21262d;
  --ink: #f0f6fc;
  --muted: #8b949e;
  --subtle: #6e7681;
  --blue: #58a6ff;
  --blue-dark: #1f6feb;
  --green: #3fb950;
  --green-dark: #238636;
  --purple: #a371f7;
  --purple-dark: #8957e5;
  --amber: #d29922;
  --orange: #f0883e;
  --red: #f85149;
  --pink: #db61a2;
  --shadow: 0 20px 55px rgba(1, 4, 9, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 55px;
}

body {
  margin: 0;
  background: var(--canvas-inset);
  color: var(--ink);
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif,
    "Apple Color Emoji", "Segoe UI Emoji";
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

button,
input {
  font: inherit;
}

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

svg {
  display: block;
}

code {
  padding: 0.12em 0.35em;
  border: 1px solid var(--line-muted);
  border-radius: 5px;
  background: rgba(110, 118, 129, 0.12);
  color: #d2a8ff;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.88em;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 8px;
  left: 8px;
  padding: 8px 12px;
  border-radius: 6px;
  background: var(--blue-dark);
  color: #fff;
  transform: translateY(-150%);
}

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

.page-shell {
  width: min(1440px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  overflow: clip;
  background: var(--canvas);
  box-shadow: 0 0 80px rgba(1, 4, 9, 0.7);
}

.hero {
  position: relative;
  padding: 0 7% 36px;
  overflow: hidden;
  background:
    radial-gradient(circle at 80% 34%, rgba(31, 111, 235, 0.42), transparent 28%),
    radial-gradient(circle at 94% -15%, rgba(163, 113, 247, 0.26), transparent 29%),
    linear-gradient(125deg, #010409 0%, #0d1830 52%, #152c54 100%);
}

.hero::before,
.hero::after {
  position: absolute;
  border: 1px solid rgba(88, 166, 255, 0.12);
  border-radius: 50%;
  content: "";
}

.hero::before {
  top: 104px;
  right: -55px;
  width: 370px;
  height: 370px;
}

.hero::after {
  top: 165px;
  right: 28px;
  width: 220px;
  height: 220px;
}

.topbar {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  border-bottom: 1px solid rgba(240, 246, 252, 0.13);
}

.brand {
  display: inline-flex;
  gap: 11px;
  align-items: center;
  color: var(--ink);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.12em;
}

.brand:hover {
  text-decoration: none;
}

.brand i {
  margin: 0 4px;
  color: var(--subtle);
  font-style: normal;
}

.brand-mark {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
}

.refreshed {
  display: flex;
  gap: 8px;
  align-items: center;
  color: rgba(240, 246, 252, 0.63);
  font-size: 10px;
  font-weight: 600;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(63, 185, 80, 0.12);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.62fr);
  gap: 10%;
  align-items: end;
  padding: 48px 0 42px;
}

.eyebrow {
  margin: 0 0 12px;
  color: rgba(240, 246, 252, 0.56);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.15em;
}

.eyebrow.dark {
  color: var(--blue);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 670px;
  margin-bottom: 18px;
  font-size: clamp(48px, 5.5vw, 74px);
  line-height: 0.96;
  letter-spacing: -0.055em;
}

h1 span {
  color: var(--blue);
}

h2 {
  margin-bottom: 0;
  font-size: clamp(25px, 2.8vw, 36px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

h3 {
  letter-spacing: -0.02em;
}

.hero-summary {
  max-width: 620px;
  margin-bottom: 0;
  color: rgba(240, 246, 252, 0.68);
  font-size: 15px;
  line-height: 1.6;
}

.period-card {
  padding: 22px;
  border: 1px solid rgba(240, 246, 252, 0.16);
  border-radius: 15px;
  background: rgba(240, 246, 252, 0.07);
  box-shadow: inset 0 1px rgba(240, 246, 252, 0.08);
  backdrop-filter: blur(12px);
}

.period-label {
  display: block;
  margin-bottom: 7px;
  color: rgba(240, 246, 252, 0.5);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.period-card > strong {
  display: block;
  font-size: 17px;
}

.period-meta {
  display: flex;
  gap: 7px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(240, 246, 252, 0.12);
}

.period-meta span {
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(240, 246, 252, 0.07);
  color: rgba(240, 246, 252, 0.68);
  font-size: 9px;
  font-weight: 600;
}

.period-card p {
  margin: 13px 0 0;
  color: rgba(240, 246, 252, 0.48);
  font-size: 9px;
}

.hero-signal {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 12px;
  align-items: center;
  max-width: 890px;
  padding: 14px 18px;
  border-left: 3px solid var(--blue);
  background: rgba(1, 4, 9, 0.4);
}

.hero-signal p {
  margin: 0;
  color: rgba(240, 246, 252, 0.7);
  font-size: 11px;
  line-height: 1.55;
}

.hero-signal strong {
  color: var(--ink);
}

.signal-icon {
  display: grid;
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--blue);
  color: #07111f;
  font-weight: 800;
}

.section-nav {
  position: sticky;
  z-index: 50;
  top: 0;
  display: flex;
  gap: 25px;
  align-items: center;
  min-height: 45px;
  padding: 0 7%;
  overflow-x: auto;
  border-top: 1px solid var(--line-muted);
  border-bottom: 1px solid var(--line);
  background: rgba(13, 17, 23, 0.94);
  backdrop-filter: blur(16px);
  scrollbar-width: none;
}

.section-nav::-webkit-scrollbar {
  display: none;
}

.section-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  align-self: stretch;
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 10px;
  font-weight: 650;
}

.section-nav a:hover,
.section-nav a.active {
  color: var(--ink);
  text-decoration: none;
}

.section-nav a.active::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  border-radius: 2px 2px 0 0;
  background: var(--orange);
  content: "";
}

.section {
  padding: 58px 7%;
  scroll-margin-top: 45px;
}

.section-soft {
  background: var(--surface-soft);
}

.section-heading {
  display: flex;
  gap: 24px;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 28px;
}

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

.freshness {
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  text-align: right;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.metric-card,
.impact-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.metric-card {
  padding: 20px;
  box-shadow: 0 12px 28px rgba(1, 4, 9, 0.14);
}

.metric-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
}

.metric-icon {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 7px;
  font-size: 9px;
  font-weight: 800;
}

.metric-icon.blue {
  background: rgba(88, 166, 255, 0.12);
  color: var(--blue);
}

.metric-icon.purple {
  background: rgba(163, 113, 247, 0.12);
  color: var(--purple);
}

.metric-icon.warning {
  background: rgba(210, 153, 34, 0.12);
  color: #e3b341;
}

.metric-value {
  margin: 23px 0 3px;
  font-size: 39px;
  font-weight: 760;
  line-height: 1;
  letter-spacing: -0.05em;
}

.metric-value.compact-value {
  font-size: clamp(27px, 2.5vw, 35px);
}

.metric-caption {
  min-height: 18px;
  margin-bottom: 19px;
  color: var(--muted);
  font-size: 10px;
}

.metric-detail {
  padding-top: 12px;
  border-top: 1px solid var(--line-muted);
  color: var(--muted);
  font-size: 9px;
  font-weight: 600;
}

.metric-detail strong {
  color: var(--blue);
}

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

.warning-text {
  color: #e3b341;
}

.risk-card {
  border-top: 3px solid var(--amber);
}

.health-card {
  border: 0;
  background:
    radial-gradient(circle at 100% 0, rgba(63, 185, 80, 0.2), transparent 45%),
    linear-gradient(145deg, #102719, #16371f);
}

.health-badge {
  padding: 4px 7px;
  border-radius: 6px;
  background: rgba(63, 185, 80, 0.14);
  color: #7ee787;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.health-track {
  height: 5px;
  margin-top: 24px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(240, 246, 252, 0.12);
}

.health-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--green);
}

.overview-band {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin-top: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.overview-band > div {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 16px 20px;
  border-left: 1px solid var(--line-muted);
}

.overview-band > div:first-child {
  border-left: 0;
}

.overview-band span,
.overview-band small {
  color: var(--muted);
  font-size: 9px;
}

.overview-band strong {
  margin: 3px 0;
  font-size: 12px;
}

.impact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.impact-card {
  padding: 25px;
  box-shadow: var(--shadow);
}

.positive-impact {
  border-top: 3px solid var(--green);
}

.negative-impact {
  border-top: 3px solid var(--red);
}

.impact-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.impact-status,
.decision-label {
  display: inline-block;
  padding: 4px 7px;
  border-radius: 6px;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.impact-status.positive {
  background: rgba(63, 185, 80, 0.1);
  color: #7ee787;
}

.impact-status.negative {
  background: rgba(248, 81, 73, 0.1);
  color: #ff7b72;
}

.impact-card h3 {
  margin: 9px 0 0;
  font-size: 18px;
}

.impact-multiplier {
  color: var(--green);
  font-size: 37px;
  font-weight: 780;
  line-height: 1;
  letter-spacing: -0.05em;
}

.impact-multiplier span {
  font-size: 20px;
}

.impact-multiplier.negative {
  color: var(--red);
}

.comparison-bars {
  margin: 26px 0 22px;
}

.comparison-row {
  display: grid;
  grid-template-columns: 82px 1fr 44px;
  gap: 10px;
  align-items: center;
  font-size: 9px;
  font-weight: 600;
}

.comparison-row + .comparison-row {
  margin-top: 12px;
}

.comparison-row > div {
  height: 8px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(63, 185, 80, 0.08);
}

.comparison-row i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--green);
}

.comparison-row.muted {
  color: var(--muted);
}

.comparison-row.muted i {
  background: var(--subtle);
}

.negative-bars .comparison-row > div {
  background: rgba(248, 81, 73, 0.08);
}

.negative-bars .comparison-row i {
  background: var(--red);
}

.negative-bars .comparison-row.muted i {
  background: var(--subtle);
}

.impact-card > p {
  margin: 0;
  padding-top: 18px;
  border-top: 1px solid var(--line-muted);
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
}

.interpretation {
  display: flex;
  gap: 13px;
  align-items: center;
  margin-top: 16px;
  padding: 15px 18px;
  border: 1px solid rgba(88, 166, 255, 0.22);
  border-radius: 11px;
  background: rgba(88, 166, 255, 0.06);
}

.interpretation-icon {
  display: grid;
  width: 25px;
  height: 25px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--blue-dark);
  color: #fff;
  font-family: Georgia, serif;
  font-weight: 800;
}

.interpretation p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
}

.interpretation strong {
  color: var(--blue);
}

.impact-glossary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 10px;
}

.impact-glossary article {
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}

.impact-glossary strong {
  color: var(--blue);
  font-size: 9px;
}

.impact-glossary p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 8px;
  line-height: 1.5;
}

.legend {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.legend span {
  display: flex;
  gap: 7px;
  align-items: center;
  color: var(--muted);
  font-size: 9px;
  white-space: nowrap;
}

.legend strong {
  margin-left: auto;
  color: var(--ink);
}

.legend i {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.no-cohort {
  background: #6e7681;
}

.phase-one {
  background: var(--blue);
}

.phase-two {
  background: var(--purple);
}

.phase-three {
  background: var(--green);
}

.cohort-definitions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 22px;
}

.cohort-definitions article {
  display: flex;
  gap: 11px;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
}

.cohort-number {
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
}

.cohort-definitions h3 {
  margin: 1px 0 4px;
  font-size: 11px;
}

.cohort-definitions p {
  margin: 0;
  color: var(--muted);
  font-size: 8px;
  line-height: 1.5;
}

.cohort-analysis {
  margin-top: 14px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.cohort-analysis-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.cohort-analysis-heading .eyebrow {
  margin-bottom: 6px;
}

.cohort-analysis-heading h3 {
  margin: 0;
  font-size: 15px;
}

.cohort-analysis-heading > p {
  margin: 0;
  color: var(--muted);
  font-size: 8px;
}

.cohort-distribution {
  display: flex;
  height: 47px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--line-muted);
}

.cohort-distribution > span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 3px;
  color: #fff;
  font-size: 10px;
}

.cohort-distribution small {
  color: rgba(255, 255, 255, 0.78);
  font-size: 8px;
}

.cohort-zero {
  background: #484f58;
}

.cohort-one {
  background: var(--blue-dark);
}

.cohort-two {
  background: var(--purple-dark);
}

.cohort-three {
  background: var(--green-dark);
}

.cohort-distribution-legend {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 12px 0 17px;
}

.cohort-distribution-legend span {
  display: flex;
  gap: 6px;
  align-items: center;
  color: var(--muted);
  font-size: 8px;
}

.cohort-distribution-legend i,
.phase-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
}

.cohort-distribution-legend strong {
  margin-left: auto;
  color: var(--ink);
  font-size: 8px;
}

.cohort-metrics-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.cohort-metrics {
  width: 100%;
  border-collapse: collapse;
  background: var(--canvas);
}

.cohort-metrics caption {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.cohort-metrics th,
.cohort-metrics td {
  padding: 11px 13px;
  border-bottom: 1px solid var(--line-muted);
  text-align: right;
  white-space: nowrap;
}

.cohort-metrics th {
  color: var(--muted);
  background: var(--canvas-inset);
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.cohort-metrics th:first-child,
.cohort-metrics td:first-child {
  text-align: left;
}

.cohort-metrics td {
  color: #c9d1d9;
  font-size: 9px;
}

.cohort-metrics td:first-child {
  display: grid;
  grid-template-columns: 7px auto;
  gap: 0 8px;
  align-items: center;
}

.cohort-metrics td:first-child .phase-dot {
  grid-row: span 2;
}

.cohort-metrics td small {
  display: block;
  color: var(--muted);
  font-size: 7px;
}

.cohort-metrics tbody tr:last-child td {
  border-bottom: 0;
}

.cohort-metrics tbody tr:hover td {
  background: rgba(88, 166, 255, 0.035);
}

.not-available {
  color: var(--muted);
}

.metric-explainers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 13px;
  margin-top: 14px;
}

.metric-explainers p {
  margin: 0;
  padding-left: 10px;
  border-left: 2px solid var(--line);
  color: var(--muted);
  font-size: 8px;
  line-height: 1.5;
}

.metric-explainers strong {
  color: #c9d1d9;
}

.surface-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 13px;
}

.surface-toolbar p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
}

.surface-toggle {
  display: flex;
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--canvas);
}

.surface-toggle button {
  padding: 6px 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  cursor: pointer;
}

.surface-toggle button:hover {
  color: var(--blue);
}

.surface-toggle button.active {
  background: var(--surface-raised);
  color: var(--blue);
  box-shadow: 0 2px 8px rgba(1, 4, 9, 0.22);
}

.surface-explorer {
  display: grid;
  grid-template-columns: minmax(220px, 0.65fr) minmax(340px, 1.25fr) minmax(220px, 0.72fr);
  min-height: 370px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.surface-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 25px 20px;
  border-right: 1px solid var(--line);
  background: var(--canvas);
}

.surface-donut {
  position: relative;
  display: grid;
  width: 176px;
  height: 176px;
  place-items: center;
  border-radius: 50%;
  box-shadow: 0 18px 38px rgba(1, 4, 9, 0.38);
}

.surface-donut::after {
  position: absolute;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  background: var(--surface);
  content: "";
}

.surface-donut-center {
  position: relative;
  z-index: 1;
  display: flex;
  max-width: 95px;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.surface-donut-center span {
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 700;
}

.surface-donut-center strong {
  font-size: 21px;
  line-height: 1;
  letter-spacing: -0.04em;
}

.surface-donut-center small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 8px;
}

.surface-total {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin-top: 24px;
  padding-top: 15px;
  border-top: 1px solid var(--line-muted);
  text-align: center;
}

.surface-total span,
.surface-total small {
  color: var(--muted);
  font-size: 8px;
}

.surface-total strong {
  margin: 2px 0;
  font-size: 11px;
}

.surface-ranking {
  padding: 21px 22px;
  border-right: 1px solid var(--line);
}

.surface-ranking-header {
  display: flex;
  justify-content: space-between;
  padding: 0 7px 10px;
  border-bottom: 1px solid var(--line-muted);
  color: var(--muted);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.surface-row {
  display: grid;
  grid-template-columns: 29px minmax(105px, 0.8fr) minmax(80px, 1fr) 65px;
  gap: 10px;
  align-items: center;
  width: 100%;
  padding: 9px 7px;
  border: 0;
  border-bottom: 1px solid var(--line-muted);
  background: transparent;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.surface-row:hover,
.surface-row.active {
  border-radius: 7px;
  background: rgba(88, 166, 255, 0.05);
}

.surface-row-icon {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 7px;
  color: #fff;
  font-size: 7px;
  font-weight: 800;
}

.surface-row-name {
  overflow: hidden;
  font-size: 9px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.surface-row-track {
  height: 6px;
  overflow: hidden;
  border-radius: 99px;
  background: var(--line-muted);
}

.surface-row-track i {
  display: block;
  height: 100%;
  min-width: 2px;
  border-radius: inherit;
}

.surface-row-value {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 8px;
  font-weight: 700;
  text-align: right;
}

.surface-detail {
  display: flex;
  flex-direction: column;
  padding: 26px 23px;
  background:
    radial-gradient(circle at 90% 10%, rgba(163, 113, 247, 0.12), transparent 40%),
    var(--surface);
}

.surface-detail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.surface-detail-icon {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 10px;
  color: #fff;
  font-size: 8px;
  font-weight: 800;
}

.surface-detail-share {
  color: var(--green);
  font-size: 11px;
  font-weight: 800;
}

.surface-detail-kicker {
  margin: 27px 0 7px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 750;
  letter-spacing: 0.09em;
}

.surface-detail h3 {
  margin: 0 0 4px;
  font-size: 19px;
}

.surface-detail-value {
  color: var(--blue);
  font-size: 11px;
  font-weight: 700;
}

.surface-detail-copy {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
}

.surface-detail-source {
  margin-top: auto;
  padding-top: 15px;
  border-top: 1px solid var(--line-muted);
}

.surface-detail-source span,
.surface-detail-source strong {
  display: block;
}

.surface-detail-source span {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 8px;
}

.surface-detail-source strong {
  overflow-wrap: anywhere;
  font-size: 8px;
  line-height: 1.5;
}

.surface-note,
.source-caveat {
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.55;
}

.utilization-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(260px, 0.7fr);
  gap: 17px;
}

.funnel {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.funnel-row {
  display: grid;
  grid-template-columns: 155px minmax(150px, 1fr) 130px;
  gap: 17px;
  align-items: center;
}

.funnel-row + .funnel-row {
  margin-top: 20px;
}

.funnel-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.funnel-label strong {
  font-size: 21px;
}

.funnel-label span,
.funnel-row small {
  color: var(--muted);
  font-size: 9px;
}

.funnel-row small {
  font-weight: 600;
}

.funnel-bar {
  height: 10px;
  overflow: hidden;
  border-radius: 99px;
  background: var(--line-muted);
}

.funnel-bar span {
  display: block;
  min-width: 7px;
  height: 100%;
  border-radius: inherit;
  background: var(--subtle);
}

.funnel-bar .purple {
  background: linear-gradient(90deg, var(--purple), var(--purple-dark));
}

.funnel-bar .green {
  background: linear-gradient(90deg, #56d364, var(--green-dark));
}

.funnel-bar .amber {
  background: linear-gradient(90deg, #e3b341, var(--amber));
}

.platform-panel {
  display: flex;
  flex-direction: column;
  padding: 27px;
  border-radius: 15px;
  background:
    radial-gradient(circle at 100% 0, rgba(88, 166, 255, 0.25), transparent 42%),
    #101d2f;
}

.panel-kicker {
  margin-bottom: 19px;
  color: var(--blue);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.platform-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.platform-grid > div {
  display: flex;
  flex-direction: column;
  padding: 14px;
  border-top: 1px solid rgba(240, 246, 252, 0.1);
  border-left: 1px solid rgba(240, 246, 252, 0.1);
}

.platform-grid > div:nth-child(-n + 2) {
  border-top: 0;
}

.platform-grid > div:nth-child(odd) {
  padding-left: 0;
  border-left: 0;
}

.platform-grid strong {
  font-size: 18px;
}

.platform-grid span {
  color: rgba(240, 246, 252, 0.55);
  font-size: 8px;
}

.license-detail {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 17px;
  border-top: 1px solid rgba(240, 246, 252, 0.1);
  color: rgba(240, 246, 252, 0.52);
  font-size: 8px;
}

.license-detail strong {
  color: var(--ink);
  font-size: 9px;
}

.footprint-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.footprint-strip div {
  display: flex;
  flex-direction: column;
  padding: 14px 17px;
  border-left: 1px solid var(--line-muted);
}

.footprint-strip div:first-child {
  border-left: 0;
}

.footprint-strip span {
  color: var(--muted);
  font-size: 8px;
}

.footprint-strip strong {
  margin-top: 3px;
  font-size: 11px;
}

.priority-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.priority-grid article {
  position: relative;
  min-height: 190px;
  padding: 20px;
}

.priority-number {
  color: var(--subtle);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 9px;
}

.priority-grid h3 {
  margin: 31px 0 9px;
  font-size: 14px;
}

.priority-grid p {
  min-height: 48px;
  margin-bottom: 15px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.55;
}

.priority-grid article > strong {
  color: var(--blue);
  font-size: 8px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.decision-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 0.8fr;
  gap: 12px;
  margin-top: 12px;
}

.decision-card {
  padding: 18px;
}

.positive-label {
  background: rgba(63, 185, 80, 0.1);
  color: #7ee787;
}

.purple-label {
  background: rgba(163, 113, 247, 0.1);
  color: #d2a8ff;
}

.warning-label {
  background: rgba(210, 153, 34, 0.1);
  color: #e3b341;
}

.decision-card h3 {
  margin: 15px 0 7px;
  font-size: 13px;
}

.decision-card p,
.decision-card li {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.55;
}

.decision-card p {
  margin: 0;
}

.decision-card ul {
  padding-left: 16px;
  margin: 14px 0 0;
}

.decision-card li + li {
  margin-top: 5px;
}

.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.timeline::before {
  position: absolute;
  top: 36px;
  right: 8%;
  left: 8%;
  height: 1px;
  background: var(--line);
  content: "";
}

.timeline article {
  position: relative;
  padding: 0 18px;
  text-align: center;
}

.timeline time {
  display: block;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
}

.timeline-dot {
  position: relative;
  z-index: 1;
  display: block;
  width: 12px;
  height: 12px;
  margin: 0 auto 17px;
  border: 3px solid var(--surface-soft);
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 1px var(--blue);
}

.muted-dot {
  background: var(--subtle);
  box-shadow: 0 0 0 1px var(--subtle);
}

.purple-dot {
  background: var(--purple);
  box-shadow: 0 0 0 1px var(--purple);
}

.green-dot {
  background: var(--green);
  box-shadow: 0 0 0 1px var(--green);
}

.timeline h3 {
  margin-bottom: 7px;
  font-size: 12px;
}

.timeline p {
  margin: 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.5;
}

.timeline .featured h3 {
  color: var(--blue);
}

.team-block {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 20px;
  align-items: center;
  margin-top: 38px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  scroll-margin-top: 60px;
}

.team-block h3 {
  margin: 0;
  font-size: 16px;
}

.team-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 9px;
}

.team-list > span {
  display: grid;
  grid-template-columns: 29px 1fr;
  align-items: center;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}

.team-list i {
  display: grid;
  grid-row: span 2;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  background: rgba(88, 166, 255, 0.1);
  color: var(--blue);
  font-size: 7px;
  font-style: normal;
  font-weight: 750;
}

.team-list strong,
.team-list small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.team-list strong {
  font-size: 8px;
}

.team-list small {
  color: var(--muted);
  font-size: 7px;
}

.quality-alert {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px 20px;
  border: 1px solid rgba(210, 153, 34, 0.3);
  border-radius: 12px;
  background: rgba(210, 153, 34, 0.055);
}

.alert-icon {
  display: grid;
  width: 27px;
  height: 27px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: rgba(210, 153, 34, 0.13);
  color: #e3b341;
  font-weight: 800;
}

.quality-alert strong {
  color: #e3b341;
  font-size: 10px;
  text-transform: uppercase;
}

.quality-alert p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.6;
}

.sources-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 14px;
}

.resource-list,
.source-notes {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.resource-list a {
  display: grid;
  grid-template-columns: 29px 1fr auto;
  gap: 11px;
  align-items: center;
  padding: 10px 14px;
  border-top: 1px solid var(--line-muted);
  color: var(--ink);
}

.resource-list a:first-child {
  border-top: 0;
}

.resource-list a:hover {
  background: rgba(88, 166, 255, 0.04);
  text-decoration: none;
}

.resource-list a > span {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 6px;
  background: rgba(88, 166, 255, 0.1);
  color: var(--blue);
  font-size: 7px;
  font-weight: 800;
}

.resource-list strong {
  font-size: 9px;
}

.resource-list small {
  color: var(--subtle);
  font-size: 11px;
}

.source-notes {
  padding: 5px 16px;
}

.source-notes > div {
  padding: 10px 0;
  border-top: 1px solid var(--line-muted);
}

.source-notes > div:first-child {
  border-top: 0;
}

.source-notes strong {
  font-size: 9px;
}

.source-notes p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 8px;
}

.source-notes details {
  padding: 10px 0;
  border-top: 1px solid var(--line-muted);
}

.source-notes summary {
  color: var(--blue);
  font-size: 8px;
  font-weight: 700;
  cursor: pointer;
}

.source-notes details p {
  margin-top: 7px;
}

.trend-card {
  margin-top: 14px;
  padding: 22px 25px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.chart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.legend.compact {
  flex-direction: row;
  gap: 16px;
}

.legend.compact span {
  font-size: 8px;
}

.chart-unit {
  color: var(--muted);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.09em;
}

.trend-chart {
  min-width: 0;
  height: 250px;
}

.trend-chart svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.trend-grid-line {
  stroke: var(--line-muted);
  stroke-width: 1;
}

.trend-area {
  fill: url("#area-gradient");
}

.trend-line {
  fill: none;
  stroke: var(--blue);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
}

.trend-point {
  fill: var(--surface);
  stroke: var(--blue);
  stroke-width: 3;
}

.trend-label,
.trend-month,
.trend-axis {
  fill: var(--muted);
  font-family: inherit;
  font-size: 9px;
}

.trend-label {
  fill: var(--ink);
  font-weight: 700;
}

.trend-summary {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 8px;
  background: var(--canvas);
  color: var(--muted);
  font-size: 9px;
}

.trend-summary strong {
  color: var(--green);
}

footer {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 24px;
  align-items: center;
  padding: 23px 7%;
  border-top: 1px solid var(--line-muted);
  background: var(--canvas-inset);
}

footer > div {
  display: flex;
  gap: 9px;
  align-items: center;
}

.footer-mark {
  width: 22px;
  height: 22px;
}

footer span {
  font-size: 9px;
  font-weight: 700;
}

footer p,
footer a {
  margin: 0;
  color: var(--subtle);
  font-size: 8px;
}

*:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

@media (max-width: 1050px) {
  .metric-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .surface-explorer {
    grid-template-columns: 0.72fr 1.28fr;
  }

  .surface-detail {
    grid-column: span 2;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 9px 18px;
    align-items: center;
    border-top: 1px solid var(--line);
  }

  .surface-detail-head {
    grid-row: span 3;
    flex-direction: column;
    gap: 8px;
  }

  .surface-detail-kicker {
    margin: 0;
  }

  .surface-detail h3,
  .surface-detail-value,
  .surface-detail-copy {
    margin: 0;
  }

  .surface-detail-source {
    grid-column: 3;
    grid-row: 1 / span 3;
    max-width: 210px;
    margin: 0;
    padding: 0 0 0 18px;
    border-top: 0;
    border-left: 1px solid var(--line-muted);
  }

  .team-list {
    grid-template-columns: repeat(3, 1fr);
  }

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

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

@media (max-width: 780px) {
  .hero {
    padding-inline: 24px;
  }

  .topbar {
    min-height: 60px;
  }

  .brand span {
    font-size: 0;
  }

  .brand span::after {
    font-size: 10px;
    content: "GITHUB / COPILOT";
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 25px;
    padding: 38px 0 30px;
  }

  .period-card {
    max-width: 390px;
  }

  .section-nav {
    padding-inline: 24px;
  }

  .section {
    padding: 46px 24px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
  }

  .freshness {
    text-align: left;
  }

  .impact-glossary,
  .metric-explainers {
    grid-template-columns: 1fr;
  }

  .cohort-analysis-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .overview-band,
  .impact-grid,
  .utilization-layout {
    grid-template-columns: 1fr;
  }

  .overview-band > div,
  .footprint-strip div {
    border-top: 1px solid var(--line-muted);
    border-left: 0;
  }

  .overview-band > div:first-child,
  .footprint-strip div:first-child {
    border-top: 0;
  }

  .surface-explorer {
    grid-template-columns: 1fr;
  }

  .surface-visual,
  .surface-ranking {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .surface-detail {
    grid-column: auto;
    display: flex;
  }

  .surface-detail-head {
    width: 100%;
    flex-direction: row;
  }

  .surface-detail-kicker {
    margin: 25px 0 7px;
  }

  .surface-detail h3 {
    margin-bottom: 4px;
  }

  .surface-detail-value {
    margin-bottom: 1em;
  }

  .surface-detail-source {
    max-width: none;
    margin-top: auto;
    padding: 15px 0 0;
    border-top: 1px solid var(--line-muted);
    border-left: 0;
  }

  .funnel-row {
    grid-template-columns: 130px 1fr;
  }

  .funnel-row small {
    display: none;
  }

  .footprint-strip {
    grid-template-columns: 1fr 1fr;
  }

  .footprint-strip div:nth-child(3) {
    border-left: 0;
  }

  .timeline {
    grid-template-columns: 1fr 1fr;
    gap: 24px 0;
  }

  .timeline::before {
    display: none;
  }

  .team-block {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 520px) {
  h1 {
    font-size: 48px;
  }

  .refreshed {
    font-size: 8px;
  }

  .metric-grid,
  .footprint-strip {
    grid-template-columns: 1fr;
  }

  .footprint-strip div:nth-child(3) {
    border-left: 0;
  }

  .surface-toolbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .surface-row {
    grid-template-columns: 28px minmax(95px, 1fr) 60px;
  }

  .surface-row-track {
    display: none;
  }

  .funnel {
    padding: 20px;
  }

  .funnel-row {
    grid-template-columns: 115px 1fr;
    gap: 12px;
  }

  .funnel-label strong {
    font-size: 17px;
  }

  .timeline,
  .team-list {
    grid-template-columns: 1fr;
  }

  .timeline article {
    padding-inline: 0;
    text-align: left;
  }

  .timeline-dot {
    margin-left: 0;
  }

  .cohort-definitions {
    grid-template-columns: 1fr;
  }

  .cohort-distribution-legend {
    grid-template-columns: 1fr;
  }

  .cohort-distribution > span {
    gap: 0;
  }

  .cohort-distribution small {
    display: none;
  }

  footer {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
