:root {
  --carbon: #1f1f1f;
  --paper: #ede6dd;
  --surface: #ede6dd;
  --surface-blue: rgba(37, 63, 88, .06);
  --border: rgba(31, 31, 31, .2);
  --muted: #444342;
  --blue: #253f58;
  --blue-soft: #80a76a;
  --navy: #253f58;
  --signal-green: #1f1f1f;
  --accent: #80a76a;
  --positive: var(--accent);
  --negative: #1f1f1f;
  --red: #aa4946;
  --gold: #e6a93e;
  --font: "Poppins", Arial, Helvetica, sans-serif;
  --heading: "Poppins", Arial, Helvetica, sans-serif;
  --mono: "Poppins", Arial, Helvetica, sans-serif;
  --serif: "Poppins", Arial, Helvetica, sans-serif;
  --radius-panel: 0;
  --radius-control: 2px;
  --shadow: none;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--carbon);
  background: var(--paper);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

button, input { font: inherit; }
button { color: inherit; }

.page-shell {
  width: min(1440px, 100%);
  margin: 0 auto;
  background: var(--paper);
  min-height: 100vh;
}

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 12px clamp(24px, 5vw, 72px);
  border-bottom: 1px solid var(--carbon);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--carbon);
  text-decoration: none;
}

.brand-mark { width: 31px; height: 26px; }
.brand-name { font-size: 11px; font-weight: 800; line-height: .9; letter-spacing: -.02em; }

.masthead-meta {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
}

.intro {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, .55fr);
  align-items: end;
  gap: clamp(28px, 6vw, 88px);
  padding: clamp(30px, 4vw, 56px) clamp(24px, 6vw, 86px) clamp(34px, 4vw, 58px);
  overflow: hidden;
}

.intro::after {
  display: none;
}

.eyebrow, .kicker {
  margin: 0 0 14px;
  color: var(--carbon);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1, h2, h3, p { margin-top: 0; }

h1 {
  position: relative;
  z-index: 1;
  max-width: 880px;
  margin-bottom: 0;
  font-size: clamp(46px, 5.8vw, 82px);
  line-height: .92;
  letter-spacing: -.065em;
}

h1 span { color: inherit; }

.partner-lockup {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
  min-height: 42px;
}
.partner-lockup img { display: block; width: auto; max-width: 42%; object-fit: contain; }
.blocmates-logo { height: 29px; }
.paragon-logo { height: 26px; }
.partner-divider { width: 1px; height: 32px; background: var(--border); }

.lab {
  margin: 0 clamp(16px, 4vw, 56px) clamp(40px, 6vw, 88px);
  padding: clamp(24px, 4vw, 48px);
  border: 1px solid var(--carbon);
  border-radius: var(--radius-panel);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.guided-control { display: grid; gap: 8px; }

.guide-anchor {
  position: relative;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
}

.guide-right { justify-self: end; }

.step-pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 9px;
  border: 1px solid var(--border);
  border-radius: 0;
  background: transparent;
  color: var(--carbon);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}

.tip-button {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 0;
  background: var(--paper);
  color: var(--blue);
  font-size: 11px;
  font-weight: 750;
  cursor: help;
}

.tip-button:hover,
.tip-button:focus-visible {
  border-color: var(--blue);
  outline: 3px solid rgba(45,96,127,.14);
  outline-offset: 1px;
}

.guide-tooltip {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 20;
  width: min(260px, 75vw);
  padding: 11px 12px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 0;
  background: var(--navy);
  box-shadow: 0 12px 32px rgba(10,23,39,.18);
  color: #fff;
  font-size: 11px;
  font-weight: 450;
  line-height: 1.45;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-3px);
  transition: opacity 140ms ease, transform 140ms ease;
}

.guide-right .guide-tooltip { right: 0; left: auto; }
.tip-button:hover + .guide-tooltip,
.tip-button:focus + .guide-tooltip,
.guide-anchor:focus-within .guide-tooltip {
  opacity: 1;
  transform: translateY(0);
}

.lab-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.lab h2, .explanation h2 {
  margin: 0;
  font-size: clamp(28px, 3.5vw, 46px);
  line-height: 1.04;
  letter-spacing: -.045em;
}

.power-switch {
  display: flex;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  background: transparent;
}

.power-button {
  min-width: 76px;
  min-height: 44px;
  padding: 8px 16px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--muted);
  font-weight: 650;
  cursor: pointer;
}

.power-button.active { color: var(--paper); background: var(--carbon); box-shadow: none; }
.power-button:focus-visible, .comparison-button:focus-visible, input:focus-visible { outline: 3px solid rgba(45,96,127,.24); outline-offset: 2px; }

.lab-grid {
  display: grid;
  grid-template-columns: minmax(230px, 300px) minmax(0, 1fr);
  gap: clamp(24px, 3.5vw, 52px);
  padding: 24px 0 22px;
}

.control-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.controls > .guide-anchor { margin-bottom: 12px; }
.control-heading label { font-size: 14px; font-weight: 700; }
.control-heading output { color: var(--carbon); font-family: var(--mono); font-size: 24px; font-weight: 400; font-variant-numeric: tabular-nums; }

input[type="range"] {
  width: 100%;
  height: 24px;
  margin: 18px 0 0;
  accent-color: var(--blue);
  cursor: ew-resize;
}

.range-labels { position: relative; height: 18px; color: var(--muted); font-family: var(--mono); font-size: 11px; font-variant-numeric: tabular-nums; }
.range-labels span { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; }
.range-labels span:first-child { transform: none; }
.range-labels span:last-child { transform: translateX(-100%); }
.control-help { margin: 8px 0 18px; color: var(--muted); font-size: 12px; }

.formula-card {
  margin-top: 22px;
  padding: 20px;
  border: 1px solid var(--border);
  border-top: 4px solid var(--blue);
  border-radius: 0;
  background: var(--paper);
}

.formula-label { margin-bottom: 9px; color: var(--carbon); font-family: var(--mono); font-size: 11px; font-weight: 400; text-transform: uppercase; }
.formula-card h3 { margin: 0 0 10px; font-size: 18px; line-height: 1.15; letter-spacing: -.025em; }
.formula-card > p:not(.formula-label) { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.benefit-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.benefit-tags span { padding: 5px 7px; border: 1px solid var(--border); border-radius: 0; color: var(--carbon); font-family: var(--mono); font-size: 10px; font-weight: 400; }
.formula-card .risk-note { margin-top: 12px; color: var(--muted); font-size: 10px; line-height: 1.4; }

.visual-column { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; min-width: 0; }
.chart-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 12px; }
.chart-guide { margin: 0; }
.chart-footer { color: var(--muted); font-family: var(--mono); font-size: 11px; }
.chart-tools { display: grid; justify-items: end; gap: 8px; }
.comparison-switch { display: flex; padding: 0; border: 1px solid var(--border); border-radius: 0; background: transparent; }
.comparison-button { min-height: 32px; padding: 4px 10px; border: 0; border-radius: 0; background: transparent; color: var(--muted); font-family: var(--mono); font-size: 10px; font-weight: 400; cursor: pointer; }
.comparison-button + .comparison-button { border-left: 1px solid var(--border); }
.comparison-button.active { color: var(--paper); background: var(--carbon); box-shadow: none; }
.legend { display: flex; gap: 18px; color: var(--muted); font-family: var(--mono); font-size: 11px; white-space: nowrap; }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.swatch { display: inline-block; width: 18px; height: 3px; background: var(--blue); }
.swatch-linear { height: 2px; background: repeating-linear-gradient(90deg, var(--carbon) 0 5px, transparent 5px 8px); }

.chart-stage { display: grid; grid-template-columns: minmax(0, 1fr) 86px; gap: 14px; min-height: 400px; height: 100%; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.chart-wrap { position: relative; min-height: 0; height: 100%; touch-action: none; }
#payoffChart { display: block; width: 100%; height: 100%; min-height: 0; overflow: visible; }
.grid-line { stroke: var(--border); stroke-width: 1; vector-effect: non-scaling-stroke; }
.grid-line.zero { stroke: var(--carbon); opacity: .55; }
.axis-label { fill: var(--muted); font-size: 11px; font-family: var(--mono); font-variant-numeric: tabular-nums; }
.axis-title { fill: var(--carbon); font-size: 11px; font-weight: 400; font-family: var(--mono); }
.power-path { fill: none; stroke: var(--blue); stroke-width: 4; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.linear-path { fill: none; stroke: var(--carbon); stroke-width: 2; stroke-dasharray: 7 7; opacity: .72; vector-effect: non-scaling-stroke; }
.chart-marker line { stroke: var(--blue); stroke-width: 1; stroke-dasharray: 3 4; opacity: .45; vector-effect: non-scaling-stroke; }
.chart-marker circle { fill: var(--paper); stroke: var(--blue); vector-effect: non-scaling-stroke; }
#markerHalo { stroke-width: 1; opacity: .4; }
#markerDot { fill: var(--blue); stroke-width: 3; }
.chart-hit-area { fill: transparent; cursor: ew-resize; outline: none; }
.chart-hit-area:focus { outline: none; }
.chart-hit-area:focus-visible { stroke: rgba(45,96,127,.55); stroke-width: 2; stroke-dasharray: 4 5; vector-effect: non-scaling-stroke; }

.chart-readout {
  position: absolute;
  top: 14px;
  left: 14px;
  display: flex;
  gap: 12px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 0;
  background: rgba(238,234,222,.96);
  box-shadow: none;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  pointer-events: none;
}
.chart-readout strong { color: var(--carbon); font-variant-numeric: tabular-nums; }
.chart-footer { padding-top: 10px; }

.return-meter {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  justify-items: center;
  gap: 6px;
  min-height: 0;
  height: 100%;
  padding: 14px 0 12px;
  border-left: 1px solid var(--border);
}
.return-meter p { margin: 0; color: var(--muted); font-family: var(--mono); font-size: 10px; font-weight: 400; text-align: center; text-transform: uppercase; }
.meter-track { position: relative; width: 10px; min-height: 190px; border-radius: 2px; background: #edf0f2; overflow: visible; }
.meter-zero { position: absolute; top: 50%; left: -5px; width: 20px; height: 1px; background: #9299a2; }
.meter-fill { position: absolute; left: 0; width: 100%; border-radius: 2px; background: var(--positive); }
.meter-marker { position: absolute; left: 50%; width: 18px; height: 3px; background: var(--carbon); transform: translate(-50%, -50%); }
.return-meter strong { color: var(--carbon); font-family: var(--mono); font-size: 15px; line-height: 1; font-variant-numeric: tabular-nums; }
.meter-edge { color: var(--muted); font-family: var(--mono); font-size: 9px; line-height: 1.2; text-align: center; }
.meter-edge b { display: block; color: var(--positive); font-size: 10px; font-variant-numeric: tabular-nums; }
.return-meter.is-negative .meter-fill { background: var(--negative); }

.outcome-strip { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--carbon); border-radius: 0; overflow: hidden; }
.result-guide { margin: 2px 0 12px; }
.outcome-card { min-width: 0; padding: 20px; background: var(--paper); }
.outcome-card + .outcome-card { border-left: 1px solid var(--border); }
.outcome-card p { margin-bottom: 14px; color: var(--muted); font-family: var(--mono); font-size: 11px; font-weight: 400; text-transform: uppercase; }
.outcome-card strong { display: block; margin-bottom: 2px; font-family: var(--mono); font-size: clamp(22px, 3vw, 34px); font-weight: 400; line-height: 1.1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.outcome-card span { color: var(--muted); font-family: var(--mono); font-size: 11px; font-variant-numeric: tabular-nums; }
.outcome-card.featured { background: var(--blue); color: var(--paper); }
.outcome-card.featured p, .outcome-card.featured span { color: rgba(255,255,255,.72); }
.outcome-card.edge-card { background: var(--carbon); color: var(--paper); }
.outcome-card.edge-card p, .outcome-card.edge-card span, .outcome-card.edge-card .card-price { color: var(--paper) !important; }

.positive { color: var(--positive) !important; }
.negative { color: var(--negative) !important; }
.featured .positive, .featured .negative { color: #fff !important; }

/* Typography study 02: corporate grotesk for interactive and primary reading roles. */
.type-hybrid .control-heading output { font-family: var(--font); font-size: 28px; font-weight: 500; letter-spacing: -.025em; }
.type-hybrid .comparison-button { font-family: var(--font); font-size: 12px; font-weight: 700; }
.type-hybrid .legend { font-family: var(--font); font-size: 12px; }
.type-hybrid .axis-label { font-size: 12px; }
.type-hybrid .axis-title { font-family: var(--font); font-size: 12px; font-weight: 700; }
.type-hybrid .chart-readout { font-family: var(--font); font-size: 12px; }
.type-hybrid .chart-footer { font-size: 12px; }
.type-hybrid .benefit-tags span { font-family: var(--font); font-size: 11px; font-weight: 700; }
.type-hybrid .return-meter p { font-family: var(--font); font-size: 11px; font-weight: 700; text-transform: none; }
.type-hybrid .return-meter strong { font-family: var(--font); font-size: 17px; font-weight: 700; }
.type-hybrid .meter-edge { font-family: var(--font); font-size: 11px; }
.type-hybrid .meter-edge b { font-size: 13px; }
.type-hybrid .outcome-card p { font-family: var(--font); font-size: 12px; font-weight: 700; text-transform: none; }
.type-hybrid .outcome-card strong { font-family: var(--font); font-weight: 400; letter-spacing: -.03em; }
.type-hybrid .edge-card strong { color: var(--accent) !important; }

/* Typography study 03: hybrid UI plus a slower editorial voice for explanation. */
.type-editorial .control-heading output { font-family: var(--font); font-size: 28px; font-weight: 500; letter-spacing: -.025em; }
.type-editorial .comparison-button { font-family: var(--font); font-size: 12px; font-weight: 700; }
.type-editorial .legend { font-family: var(--font); font-size: 12px; }
.type-editorial .axis-label { font-size: 12px; }
.type-editorial .axis-title { font-family: var(--font); font-size: 12px; font-weight: 700; }
.type-editorial .chart-readout { font-family: var(--font); font-size: 12px; }
.type-editorial .chart-footer { font-size: 12px; }
.type-editorial .benefit-tags span { font-family: var(--font); font-size: 11px; font-weight: 700; }
.type-editorial .return-meter p { font-family: var(--font); font-size: 11px; font-weight: 700; text-transform: none; }
.type-editorial .return-meter strong { font-family: var(--font); font-size: 17px; font-weight: 700; }
.type-editorial .meter-edge { font-family: var(--font); font-size: 11px; }
.type-editorial .meter-edge b { font-size: 13px; }
.type-editorial .outcome-card p { font-family: var(--font); font-size: 12px; font-weight: 700; text-transform: none; }
.type-editorial .outcome-card strong { font-family: var(--font); font-weight: 400; letter-spacing: -.03em; }
.type-editorial .outcome-card .card-price { color: var(--carbon); font-family: var(--font); font-size: 13px; font-weight: 500; }
.type-editorial .outcome-card .card-price b { font-weight: 700; font-variant-numeric: tabular-nums; }
.type-editorial .outcome-card.featured .card-price { color: var(--paper); }
.type-editorial .edge-card strong { color: var(--accent) !important; }
.type-editorial .formula-card > p:not(.formula-label):not(.risk-note) { font-family: var(--serif); font-size: 15px; line-height: 1.55; }
.type-editorial .step-pill { font-family: var(--font); font-size: 11px; font-weight: 700; }
.type-editorial .kicker { font-family: var(--font); font-size: 12px; font-weight: 700; text-transform: none; }

@media (max-width: 920px) {
  .masthead-meta { display: none; }
  .intro { grid-template-columns: 1fr; align-items: start; gap: 16px; }
  .partner-lockup { justify-content: flex-start; }
  .intro::after { opacity: .55; }
  .lab-grid { grid-template-columns: 1fr; }
  .visual-column { display: block; }
  .controls { display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; }
  .control-heading, .controls > input, .range-labels, .control-help { grid-column: 1; }
  .formula-card { grid-column: 2; grid-row: 1 / span 6; margin-top: 0; }
  .outcome-strip { grid-template-columns: 1fr 1fr; }
  .outcome-card:nth-child(3) { border-left: 0; border-top: 1px solid var(--border); }
  .outcome-card:nth-child(4) { border-top: 1px solid var(--border); }
}

@media (max-width: 680px) {
  .masthead { min-height: 70px; }
  .masthead-meta span:first-child { display: none; }
  .intro { padding-top: 32px; padding-bottom: 36px; }
  .intro::after { right: -45%; bottom: -55%; width: 90vw; }
  .lab { margin: 0; border-right: 0; border-left: 0; border-radius: 0; box-shadow: none; }
  .lab-heading { align-items: flex-start; flex-direction: column; }
  .power-switch { width: 100%; }
  .power-button { flex: 1; }
  .power-control, .guide-right { width: 100%; }
  .guide-right { justify-self: start; justify-content: flex-start; }
  .guide-right .guide-tooltip { right: auto; left: 0; }
  .controls { display: block; }
  .formula-card { margin-top: 28px; }
  .chart-header { display: block; }
  .chart-tools { justify-items: start; margin-top: 12px; }
  .legend { white-space: normal; }
  .chart-stage { min-height: 270px; }
  .chart-wrap, #payoffChart { min-height: 270px; }
  .chart-stage { grid-template-columns: minmax(0, 1fr) 70px; gap: 8px; }
  .return-meter { min-height: 270px; }
  .meter-track { min-height: 158px; }
  .axis-label { font-size: 15px; }
  .axis-title { font-size: 14px; }
  .chart-footer { display: grid; }
}


@media (max-width: 420px) {
  .outcome-strip { grid-template-columns: 1fr; }
  .outcome-card + .outcome-card, .outcome-card:nth-child(3) { border-left: 0; border-top: 1px solid var(--border); }
  .chart-readout { gap: 7px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* blocmates branding (carousel rules) */
body { font-weight: 500; }
h1, h2, h3 { font-family: var(--heading); font-weight: 700; line-height: 1.06; letter-spacing: -.035em; }
.compact-intro h1 { line-height: 1.06; }
.outcome-card strong, .control-heading output, .return-meter strong { font-variant-numeric: tabular-nums; }
.compact-intro { align-items: start; }
.partner-lockup { align-self: start; padding-top: 6px; }
.type-editorial .outcome-card strong, .type-hybrid .outcome-card strong, .outcome-card strong { font-weight: 700; }
