/* Going for Growth — Next Wealth Benchmarks 2026 */

:root {
  --black: #000000;
  --ink-1: #272727;
  --ink-2: #404040;
  --ink-3: #565656;
  --grey-1: #808080;
  --grey-2: #8f8f8f;
  --grey-3: #9f9f9f;
  --grey-4: #bdbdbd;
  --grey-5: #d9d9d9;
  --surface: #f4f4f4;
  --border-card: #9d9d9d;
  --arrow: #888888;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: #fff;
  color: var(--black);
  font-family: "Fira Sans", sans-serif;
  font-size: 20px;
  line-height: 1.3;
}

button { font: inherit; }

.page {
  width: min(1128px, 100% - 48px);
  margin: 0 auto;
  padding: 106px 0 250px;
  display: flex;
  flex-direction: column;
  gap: 250px;
  align-items: center;
}

/* ---------- Hero ---------- */

.hero {
  display: flex;
  flex-direction: column;
  gap: 19px;
  align-items: center;
  text-align: center;
}

.hero-titles {
  display: flex;
  flex-direction: column;
  gap: 56px;
  align-items: center;
  width: 100%;
}

.eyebrow {
  font-size: 22px;
  font-weight: 400;
  line-height: normal;
}

h1 {
  font-size: clamp(56px, 8.4vw, 120px);
  font-weight: 900;
  color: var(--ink-3);
  line-height: normal;
  white-space: nowrap;
}

.hero-sub {
  font-size: clamp(24px, 3vw, 42px);
  font-weight: 800;
  color: var(--ink-1);
  line-height: 1.4;
  max-width: 955px;
}

/* ---------- Sections ---------- */

.section {
  display: flex;
  flex-direction: column;
  gap: 56px;
  align-items: center;
  width: min(1017px, 100%);
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
  text-align: center;
  width: 100%;
}

.section-head h2 {
  font-size: clamp(40px, 4.5vw, 64px);
  font-weight: 900;
  color: var(--ink-3);
  line-height: normal;
}

.section-sub {
  font-size: clamp(26px, 2.5vw, 36px);
  font-weight: 800;
  color: var(--ink-1);
  line-height: 1.4;
}

.section-body {
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 500;
  line-height: 1.4;
}

/* ---------- Stats ---------- */

.stat-row {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 7px;
  align-items: center;
  width: 200px;
  text-align: center;
}

.stat-circle {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: var(--surface);
  flex-shrink: 0;
}

.stat-number {
  font-size: 64px;
  font-weight: 700;
  color: var(--grey-2);
  line-height: normal;
}

.stat-caption {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.3;
}

.stat--flipped .stat-caption { order: 0; }
.stat--flipped .stat-number { order: 1; }
.stat--flipped .stat-circle { order: 2; }

/* Horizontal stat: text column beside the circle */
.stat-h {
  display: flex;
  gap: 7px;
  align-items: center;
  justify-content: center;
  max-width: 100%;
}

.stat-h-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
  text-align: center;
  align-items: center;
}

/* ---------- Charts ---------- */

.chart-block {
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: center;
  width: 100%;
}

.chart-title {
  font-size: 28px;
  font-weight: 800;
  text-align: center;
  line-height: normal;
}

.legend {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}

.legend-row {
  display: flex;
  gap: 28px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

.legend-item {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 20px;
  font-weight: 600;
  color: var(--ink-2);
  white-space: nowrap;
}

.legend-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  opacity: 0.9;
  flex-shrink: 0;
}

.time-chart {
  width: min(700px, 100%);
  margin-top: 22px; /* design gap between legend block and chart is 50px */
}

.time-chart svg {
  display: block;
  width: 100%;
  height: auto;
  font-family: "Fira Sans", sans-serif;
}

/* Horizontal bar chart (challenges, AI use cases) */
.bar-chart {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: min(874px, 100%);
  margin-top: 8px;
}

.bar-row {
  display: flex;
  gap: 12px;
  align-items: center;
}

.bar-label {
  width: 330px;
  flex-shrink: 0;
  text-align: right;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--ink-2);
}

.bar-track {
  flex: 1;
  min-width: 0;
  display: flex;
  gap: 12px;
  align-items: center;
}

.bar-fill {
  height: 32px;
  background: var(--grey-5);
  flex-shrink: 0;
}

.bar-pct {
  font-size: 24px;
  font-weight: 700;
  color: var(--ink-2);
  white-space: nowrap;
}

/* ---------- Advice System Loop ---------- */

.loop-wrap {
  display: flex;
  flex-direction: column;
  gap: 50px;
  align-items: center;
  width: 100%;
}

.loop-diagram {
  position: relative;
  width: 923px;
  height: 363px;
  flex-shrink: 0;
}

.loop-arrows {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.loop-box {
  position: absolute;
  width: 167px;
  height: 140px;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  text-align: center;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.3;
}

.friction-dot {
  position: absolute;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--black);
}

.interventions {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
}

.interventions h3 {
  font-size: 28px;
  font-weight: 600;
  line-height: 1.4;
}

.intervention-row {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

.intervention-box {
  width: 167px;
  height: 124px;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  text-align: center;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.3;
}

/* ---------- Diagnostic ---------- */

.section--fit { gap: 150px; }

.fit-top {
  display: flex;
  flex-direction: column;
  gap: 56px;
  align-items: center;
  width: 100%;
}

.diagnostic {
  display: flex;
  gap: 40px;
  align-items: stretch;
  width: 100%;
}

.diag-controls {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.diag-heading {
  font-size: 22px;
  font-weight: 600;
  line-height: normal;
}

.controls {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.control {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.control label {
  font-size: 20px;
  font-weight: 500;
}

.control-row {
  display: flex;
  gap: 24px;
  align-items: center;
}

.value-box {
  width: 108px;
  flex-shrink: 0;
  border: 1px solid var(--grey-4);
  border-radius: 6px;
  padding: 8px;
  text-align: center;
  font-size: 20px;
  font-weight: 500;
}

/* Range inputs styled as the segmented bar + round knob from the design */

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  flex: 1;
  min-width: 0;
  height: 38px;
  background: transparent;
  cursor: pointer;
  --p: 50%;
}

input[type="range"]::-webkit-slider-runnable-track {
  height: 18px;
  border-radius: 20px;
  background: linear-gradient(to right, var(--ink-1) 0 var(--p), var(--grey-5) var(--p) 100%);
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 38px;
  height: 38px;
  margin-top: -10px;
  border-radius: 50%;
  background: var(--ink-1);
  border: none;
}

input[type="range"]::-moz-range-track {
  height: 18px;
  border-radius: 20px;
  background: var(--grey-5);
}

input[type="range"]::-moz-range-progress {
  height: 18px;
  border-radius: 20px 0 0 20px;
  background: var(--ink-1);
}

input[type="range"]::-moz-range-thumb {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--ink-1);
  border: none;
}

.diag-divider {
  width: 1px;
  background: var(--grey-5);
  align-self: stretch;
}

.profile-card {
  width: 373px;
  flex-shrink: 0;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px 40px 40px;
  gap: 24px;
}

.profile-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.profile-titles {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.profile-eyebrow {
  font-size: 22px;
  font-weight: 600;
  line-height: normal;
}

.profile-name {
  font-size: 32px;
  font-weight: 800;
  line-height: normal;
}

.profile-desc {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.3;
}

.profile-score {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}

.score-line {
  display: flex;
  gap: 12px;
  align-items: baseline;
  width: 100%;
}

.score-label {
  flex: 1;
  font-size: 18px;
  font-weight: 400;
}

.score-value {
  font-size: 24px;
  font-weight: 900;
  white-space: nowrap;
}

.score-denom {
  font-size: 18px;
  font-weight: 400;
  margin-left: 2px;
}

.score-bar {
  position: relative;
  height: 18px;
  border-radius: 20px;
  background: linear-gradient(to right, var(--ink-1) 0 var(--p, 68%), var(--grey-5) var(--p, 68%) 100%);
}

.score-knob {
  position: absolute;
  top: 50%;
  left: var(--p, 68%);
  transform: translate(-50%, -50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--ink-1);
}

/* ---------- Where you sit matrix ---------- */

.fit-matrix {
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: center;
  width: 100%;
}

.fit-title {
  font-size: 36px;
  font-weight: 800;
  color: var(--ink-1);
  text-align: center;
  line-height: 1.4;
}

.matrix-wrap {
  display: flex;
  gap: 12px;
  align-items: stretch;
  width: 100%;
  height: 486px;
}

.matrix-y {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 36px;
}

.axis-label {
  font-size: 20px;
  font-weight: 500;
  text-align: center;
}

.axis-label--vert {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  white-space: nowrap;
}

.matrix-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.matrix-grid {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.matrix-row {
  flex: 1;
  display: flex;
  border: 1px solid var(--black);
}

.matrix-cell {
  flex: 1;
  min-width: 0;
  background: var(--surface);
  border: 2px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  text-align: center;
  font-size: 24px;
  font-weight: 500;
  color: rgb(0 0 0 / 0.6);
}

.matrix-x {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.firm-marker {
  position: absolute;
  display: flex;
  gap: 10px;
  align-items: center;
  transform: translate(-14px, -50%);
  pointer-events: none;
  transition: left 0.25s ease, top 0.25s ease;
}

.firm-marker--flip {
  flex-direction: row-reverse;
  transform: translate(calc(-100% + 14px), -50%);
}

.firm-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--ink-1);
  flex-shrink: 0;
}

.firm-label {
  font-size: 24px;
  font-weight: 900;
  white-space: nowrap;
}

/* ---------- Priorities card ---------- */

.priorities-card {
  width: min(734px, 100%);
  border: 1px solid var(--border-card);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: center;
}

.priorities-title {
  font-size: 36px;
  font-weight: 800;
  color: var(--ink-1);
  text-align: center;
  line-height: 1.4;
}

.priorities-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.priorities-list li {
  display: flex;
  gap: 12px;
  align-items: center;
}

.priority-num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--grey-5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 900;
  flex-shrink: 0;
}

.priority-text {
  font-size: 24px;
  font-weight: 600;
}

.cta-button {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: center;
  width: 302px;
  height: 56px;
  padding: 8px 16px;
  border: 1px solid var(--grey-4);
  border-radius: 6px;
  background: #fff;
  font-size: 20px;
  font-weight: 500;
  cursor: pointer;
}

.cta-button:hover { background: var(--surface); }

/* ---------- Page nav ---------- */

.page-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--grey-5);
  padding: 16px 32px;
  display: flex;
  gap: 20px;
  align-items: center;
  font-size: 18px;
  font-weight: 500;
}

.page-nav a { color: inherit; text-decoration: none; }
.page-nav a:hover { text-decoration: underline; }
.nav-sep { color: var(--grey-4); }
.nav-current { font-weight: 600; }

/* Extra top padding when nav is present */
body:has(.page-nav) .page { padding-top: 160px; }

/* ---------- Responsive ---------- */

@media (max-width: 1000px) {
  .page { gap: 150px; padding-top: 64px; }
  h1 { white-space: normal; }

  .loop-diagram {
    transform-origin: top center;
    transform: scale(calc((100vw - 48px) / 923));
  }
  .loop-wrap { max-width: 100%; overflow: visible; }

  .diagnostic { flex-direction: column; }
  .diag-divider { display: none; }
  .profile-card { width: 100%; }
  .matrix-wrap { height: 400px; }
}
