:root {
  color-scheme:dark;
  --bg:#0b121b;
  --panel:#111c28;
  --panel-2:#152231;
  --ink:#edf2f7;
  --muted:#a6b4c5;
  --line:#293849;
  --cyan:#8ed3e5;
  --gold:#d9bc82;
  --green:#a2d5b3;
  --radius:12px;
  --font:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif
}

* {
  box-sizing:border-box
}

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

body {
  margin:0;
  background:var(--bg);
  color:var(--ink);
  font:16px/1.6 var(--font);
  -webkit-font-smoothing:antialiased
}

a {
  color:inherit;
  text-decoration:none
}

button {
  font:inherit;
  color:inherit;
  cursor:pointer
}

button,a,input,summary {
  touch-action:manipulation
}

button {
  border:0
}

button:disabled {
  cursor:not-allowed;
  opacity:.45
}

button:not(:disabled),a,summary {
  transition:background .18s,border-color .18s,transform .18s,color .18s
}

button:focus-visible,a:focus-visible,summary:focus-visible,[tabindex]:focus-visible {
  outline:3px solid var(--cyan);
  outline-offset:5px
}

h1,h2,h3,h4,p {
  margin:0
}

h2 {
  font-size:clamp(28px,3vw,40px);
  font-weight:550;
  letter-spacing:-1.3px;
  line-height:1.2
}

h3 {
  font-weight:600
}

h4,.micro,.eyebrow {
  font-size:11px;
  line-height:1.5;
  font-weight:650;
  text-transform:uppercase;
  letter-spacing:1.35px
}

h4 {
  color:var(--muted);
  letter-spacing:1px;
  font-size:11px
}

.wrap {
  width:min(1400px,calc(100% - 96px));
  margin-inline:auto
}

.muted {
  color:var(--muted)
}

.gold-text {
  color:var(--gold)
}

.eyebrow {
  color:var(--cyan);
  display:flex;
  gap:12px;
  align-items:center
}

.micro {
  color:var(--muted)
}

.sr-only {
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0
}

.skip-link {
  position:fixed;
  top:-100px;
  left:20px;
  z-index:10;
  background:var(--cyan);
  color:var(--bg);
  padding:12px 20px
}

.skip-link:focus {
  top:12px
}

[hidden] {
  display:none!important
}

.site-header {
  height:99px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  border-bottom:1px solid var(--line)
}

.brand {
  font-size:19px;
  font-weight:620;
  display:inline-flex;
  align-items:center;
  gap:10px;
  letter-spacing:-.45px
}

.trademark {
  font-size:12px;
  margin-left:-7px;
  align-self:flex-start;
  margin-top:3px
}

.brand-mark {
  width:25px;
  height:26px;
  display:flex;
  gap:3px;
  align-items:center;
  margin-right:4px
}

.brand-mark i {
  height:23px;
  width:5px;
  background:var(--cyan);
  transform:skewY(-30deg)
}

.brand-mark i:nth-child(2) {
  height:16px
}

.brand-mark i:nth-child(3) {
  height:10px;
  background:var(--gold)
}

nav {
  display:flex;
  gap:30px;
  align-items:center;
  font-size:13px;
  color:var(--muted)
}

nav a:hover {
  color:var(--ink)
}

.nav-contact {
  color:var(--ink);
  padding-left:24px;
  border-left:1px solid var(--line)
}

.nav-contact span {
  margin-left:12px;
  color:var(--cyan)
}

.hero {
  display:grid;
  grid-template-columns:1.2fr 1fr;
  gap:80px;
  align-items:center;
  padding-top:77px;
  padding-bottom:70px;
  position:relative
}

.hero:before {
  content:"";
  position:absolute;
  z-index:-1;
  inset:0 -35px;
  background:radial-gradient(ellipse at 85% 25%,#19334740,transparent 60%)
}

.small-line {
  height:1px;
  width:27px;
  background:var(--cyan)
}

.demo-tag {
  font-size:9px;
  letter-spacing:1px;
  padding:2px 6px;
  color:var(--muted);
  border:1px solid var(--line);
  border-radius:3px
}

h1 {
  font-size:clamp(60px,6.7vw,93px);
  line-height:1.05;
  letter-spacing:-5px;
  font-weight:560;
  margin:25px 0 19px
}

.title-dot {
  color:var(--gold)
}

.hero-subtitle {
  font-size:clamp(23px,2.4vw,32px);
  line-height:1.3;
  letter-spacing:-.7px;
  color:#d5e1ed
}

.hero-question {
  margin-top:25px;
  max-width:530px;
  font-size:17px;
  line-height:1.55
}

.hero-description {
  margin-top:15px;
  color:var(--muted);
  max-width:540px;
  font-size:14px;
  line-height:1.85
}

.hero-actions {
  display:flex;
  align-items:center;
  gap:26px;
  margin-top:29px
}

.button {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:24px;
  min-height:48px;
  padding:13px 20px;
  border-radius:5px;
  font-size:12px;
  font-weight:650;
  letter-spacing:.8px;
  text-transform:uppercase
}

.primary {
  background:var(--cyan);
  color:#102331;
  border:1px solid var(--cyan)
}

.primary:hover {
  background:#b3e5ef;
  transform:translateY(-1px)
}

.secondary {
  background:transparent;
  border:1px solid #405164;
  color:#dde7f1
}

.secondary:not(:disabled):hover {
  background:#203043;
  border-color:var(--cyan)
}

.text-link {
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:1.2px;
  display:flex;
  align-items:center;
  gap:20px
}

.text-link:hover {
  color:var(--cyan)
}

.hero-diagram {
  border:1px solid #344557;
  border-radius:var(--radius);
  background:linear-gradient(145deg,#162330,#0f1924);
  box-shadow:0 22px 70px #0003;
  position:relative;
  padding:27px 30px 0;
  transform:translateY(6px)
}

.diagram-heading {
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:28px
}

.diagram-heading .eyebrow {
  font-size:10px;
  letter-spacing:1.4px
}

.diagram-index {
  font:11px ui-monospace,monospace;
  color:#8c9aab
}

.fixed-inputs {
  display:grid;
  gap:12px;
  border:1px solid #374b5d;
  padding:19px 22px;
  background:#172a3866;
  border-radius:6px;
  font-size:14px
}

.dot {
  display:inline-block;
  width:5px;
  height:5px;
  border-radius:50%;
  flex-shrink:0
}

.dot.cyan {
  background:var(--cyan)
}

.dot.gold {
  background:var(--gold)
}

.fixed-inputs .dot {
  margin-right:12px
}

.diagram-connector {
  height:36px;
  width:1px;
  background:#40576b;
  margin:auto;
  position:relative
}

.diagram-connector:after {
  content:"";
  position:absolute;
  bottom:0;
  left:-105px;
  width:211px;
  height:1px;
  background:#40576b
}

.diagram-branches {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:18px;
  text-align:center
}

.diagram-branches>div {
  padding-top:16px;
  position:relative
}

.diagram-branches>div:before {
  content:"";
  height:15px;
  width:1px;
  background:#40576b;
  position:absolute;
  left:50%;
  top:0
}

.history-lines {
  margin:14px auto 0;
  display:grid;
  gap:5px;
  width:58px;
  height:37px;
  align-content:center
}

.history-lines i {
  height:2px;
  background:#6994a7;
  display:block
}

.history-lines i:nth-child(2) {
  width:70%
}

.history-lines i:last-child {
  width:85%
}

.gold-lines i {
  background:#ad9667
}

.branch-down {
  display:block;
  color:#7b95ab;
  margin:4px 0 12px
}

.diagram-action {
  font-size:12px;
  text-align:left;
  display:flex;
  align-items:center;
  gap:9px;
  padding:14px 10px;
  border:1px solid #3c5769;
  border-radius:5px;
  white-space:nowrap
}

.diagram-action>span {
  font-size:15px;
  color:var(--cyan)
}

.diagram-action.selected {
  border-color:#8b754b;
  background:#2f2c2366;
  color:#f3deb6
}

.diagram-action.selected>span {
  color:var(--gold)
}

.diagram-footer {
  border-top:1px solid var(--line);
  margin:27px -30px 0;
  padding:20px 30px;
  display:flex;
  gap:16px;
  align-items:center;
  font-size:12px;
  color:var(--muted)
}

.diagram-footer p {
  line-height:1.7
}

.diagram-footer strong {
  color:#e5edf5;
  font-weight:500
}

.diagram-footer .micro {
  margin-left:auto;
  font-size:9px;
  text-align:right
}

.boundary-icon {
  font-size:28px;
  letter-spacing:1px;
  color:var(--gold)
}

.principle {
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
  padding:25px 0;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px
}

.principle p {
  color:var(--muted);
  font-size:17px
}

.principle strong {
  color:var(--ink);
  font-weight:500
}

.principle>span:last-child {
  color:var(--cyan);
  font-size:24px
}

.mobile-only {
  display:none
}

.lab-section {
  padding-top:76px
}

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

.section-heading .eyebrow {
  margin-bottom:14px
}

.section-heading>p {
  color:var(--muted);
  font-size:14px;
  max-width:360px;
  line-height:1.8
}

.scenario-tabs {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:12px;
  margin-bottom:20px
}

.scenario-tabs button {
  display:flex;
  gap:16px;
  align-items:center;
  text-align:left;
  border:1px solid var(--line);
  background:#111a25;
  padding:18px 20px;
  border-radius:7px;
  min-height:83px;
  color:#c1cedb;
  position:relative
}

.scenario-tabs button[aria-selected=true] {
  border-color:#759baa;
  background:#182b38;
  color:var(--ink)
}

.scenario-tabs button[aria-selected=true]:before {
  content:"";
  position:absolute;
  left:0;
  top:22px;
  bottom:22px;
  width:2px;
  background:var(--cyan)
}

.scenario-tabs button:hover {
  transform:translateY(-1px);
  border-color:#759baa
}

.tab-index {
  font:12px ui-monospace,monospace;
  color:#8094a9
}

.scenario-tabs button[aria-selected=true] .tab-index {
  color:var(--cyan)
}

.scenario-tabs small {
  display:block;
  font-size:11px;
  letter-spacing:.2px;
  color:var(--muted);
  font-weight:400;
  line-height:1.7
}

.scenario-tabs button>span:nth-child(2) {
  font-size:15px;
  font-weight:550
}

.tab-arrow {
  margin-left:auto;
  font-size:18px;
  color:var(--cyan);
  opacity:0
}

.scenario-tabs button[aria-selected=true] .tab-arrow {
  opacity:1
}

.lab-grid {
  display:grid;
  grid-template-columns:1.08fr 1.18fr 1fr;
  gap:16px;
  align-items:stretch
}

.panel {
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:8px;
  min-width:0;
  overflow:hidden
}

.panel-top {
  display:flex;
  justify-content:space-between;
  align-items:center;
  border-bottom:1px solid var(--line);
  padding:17px 22px;
  min-height:61px;
  gap:8px
}

.panel-top h3 {
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:1.1px
}

.panel-top .micro {
  font-size:10px
}

.badge {
  font-size:9px;
  line-height:1.5;
  font-weight:600;
  letter-spacing:.55px;
  text-transform:uppercase;
  border:1px solid #3a5063;
  padding:3px 6px;
  border-radius:3px;
  color:var(--cyan);
  white-space:nowrap
}

.input-content {
  padding:22px
}

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

.label-row .badge {
  font-size:8px;
  padding:2px 5px;
  color:#b9ccdd
}

.present-card {
  font-size:13px;
  line-height:1.7;
  background:#0d1721;
  border-left:2px solid #668595;
  padding:14px;
  margin:12px 0 22px
}

.candidate-list {
  list-style:none;
  padding:0;
  margin:12px 0 0;
  display:grid;
  gap:8px
}

.candidate-list li {
  display:flex;
  gap:10px;
  align-items:center;
  font-size:12px;
  line-height:1.5;
  min-height:30px
}

.candidate-letter {
  border:1px solid #405569;
  border-radius:3px;
  background:#182939;
  flex-shrink:0;
  width:26px;
  height:26px;
  text-align:center;
  line-height:24px;
  color:#b7cede;
  font:12px/24px ui-monospace,monospace
}

.field-note {
  color:#a1b2c3;
  font-size:11px;
  line-height:1.7;
  margin-top:12px
}

.history-heading {
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-top:25px
}

.history-heading .micro {
  font-size:9px;
  color:var(--gold)
}

.history-control {
  display:flex;
  padding:4px;
  border:1px solid var(--line);
  background:#0c1520;
  border-radius:5px;
  margin:12px 0 15px;
  gap:4px
}

.history-control button {
  width:50%;
  background:transparent;
  border:1px solid transparent;
  border-radius:3px;
  font-size:11px;
  font-weight:600;
  letter-spacing:.8px;
  text-transform:uppercase;
  padding:10px;
  color:var(--muted)
}

.history-control button[aria-pressed=true] {
  background:#29313a;
  color:#f0d5a3;
  border-color:#665b45
}

.factor-list {
  padding:0;
  list-style:none;
  display:grid;
  gap:9px;
  margin:0;
  min-height:123px
}

.factor-list li {
  font-size:12px;
  color:#b9c5d3;
  line-height:1.5;
  position:relative;
  padding-left:14px
}

.factor-list li:before {
  content:"";
  position:absolute;
  left:0;
  top:8px;
  width:4px;
  height:4px;
  background:var(--gold);
  border-radius:1px
}

.influence-control {
  display:flex;
  justify-content:space-between;
  gap:10px;
  align-items:center;
  border-top:1px solid var(--line);
  padding-top:18px;
  margin-top:19px
}

.influence-control h4 {
  font-size:10px
}

.influence-control p {
  font-size:10px;
  line-height:1.5;
  margin-top:4px;
  color:var(--muted)
}

.switch {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:7px;
  border:1px solid #69714f;
  background:#3d4633;
  min-width:62px;
  min-height:34px;
  padding:5px 6px;
  border-radius:20px
}

.switch-word {
  font-size:9px;
  color:#e4edcf;
  font-weight:650;
  margin-left:3px
}

.switch-knob {
  width:21px;
  height:21px;
  background:#d3dcbe;
  border-radius:50%;
  box-shadow:0 2px 4px #0004
}

.switch[aria-checked=false] {
  background:#253342;
  border-color:#526476;
  flex-direction:row-reverse
}

.switch[aria-checked=false] .switch-word {
  color:#cfdae5;
  margin-left:0;
  margin-right:2px
}

.switch[aria-checked=false] .switch-knob {
  background:#adbdcc
}

.run-button {
  width:100%;
  margin-top:19px;
  justify-content:space-between
}

.result-panel {
  background:linear-gradient(155deg,#1d2934,#131f2b 65%);
  border-color:#52606b;
  display:flex;
  flex-direction:column;
  box-shadow:0 12px 35px #0002
}

.result-panel .panel-top {
  border-color:#364451
}

.result-panel .badge {
  color:var(--gold);
  border-color:#645842
}

.result-content-inner {
  padding:26px 24px 0
}

.waiting {
  padding:38px 24px 26px;
  min-height:320px
}

.waiting-symbol {
  width:48px;
  height:48px;
  border:1px solid #4a5b6a;
  border-radius:8px;
  display:grid;
  place-items:center;
  font-size:24px;
  color:var(--gold);
  margin-bottom:23px
}

.waiting h4 {
  color:var(--gold);
  font-size:10px
}

.waiting h3 {
  font-size:26px;
  font-weight:500;
  letter-spacing:-.7px;
  margin:8px 0 12px
}

.waiting p {
  font-size:13px;
  line-height:1.8;
  color:var(--muted);
  max-width:250px
}

.result-action {
  display:flex;
  gap:14px;
  align-items:flex-start;
  margin:15px 0 22px
}

.result-letter {
  display:grid;
  place-items:center;
  flex-shrink:0;
  width:45px;
  height:48px;
  font:25px ui-monospace,monospace;
  background:#b69b611a;
  border:1px solid #8f7b51;
  border-radius:5px;
  color:#f0d9ad
}

.result-action h4 {
  font-size:clamp(21px,1.9vw,27px);
  line-height:1.22;
  letter-spacing:-.6px;
  text-transform:none;
  color:#f1dfba;
  font-weight:520
}

.mode-line {
  font-size:11px;
  color:var(--muted);
  display:grid;
  gap:4px;
  padding-bottom:18px;
  border-bottom:1px solid #364552
}

.mode-line span {
  font-size:9px;
  letter-spacing:1.2px
}

.mode-line strong {
  font-size:12px;
  font-weight:500;
  color:#d9e2eb
}

.status-rows {
  margin:17px 0;
  display:grid;
  gap:10px
}

.status-rows div {
  display:flex;
  justify-content:space-between;
  gap:10px;
  font-size:9px;
  letter-spacing:.6px;
  text-transform:uppercase
}

.status-rows dt {
  color:var(--muted)
}

.status-rows dd {
  margin:0;
  color:#d2e2ee;
  font-weight:550;
  text-align:right
}

.comparison-mini {
  border-top:1px solid #364552;
  padding-top:17px;
  display:grid;
  gap:13px;
  font-size:12px
}

.comparison-mini p {
  display:grid;
  gap:4px
}

.comparison-mini .micro {
  font-size:9px;
  letter-spacing:1px
}

.difference {
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:12px 0 0;
  border-top:1px solid #344350;
  margin-top:2px
}

.difference strong {
  color:var(--gold);
  font-size:10px;
  font-weight:600;
  letter-spacing:.8px
}

.comparison-note {
  font-size:10px;
  color:var(--muted);
  line-height:1.6
}

.selection-flow {
  margin:23px 24px 0;
  border-top:1px solid #344451;
  padding-top:18px
}

.selection-flow h4 {
  margin-bottom:13px;
  font-size:10px
}

.flow-input {
  display:flex;
  align-items:center;
  gap:8px;
  font-size:11px;
  line-height:1.6;
  color:#c2cfdb
}

.flow-input .micro {
  margin-left:auto;
  font-size:8px
}

.flow-plus {
  font-size:12px;
  color:#7e90a2;
  line-height:1.2;
  margin:3px 0 3px 0
}

.flow-input.variable {
  color:var(--gold)
}

.flow-down {
  text-align:center;
  font-size:19px;
  color:#718ea1;
  margin:3px 0
}

.flow-output {
  border:1px solid #655a43;
  background:#34312466;
  padding:10px;
  text-align:center;
  border-radius:4px;
  font-size:10px;
  text-transform:uppercase;
  letter-spacing:1px;
  color:var(--gold);
  font-weight:550
}

.reference-mode .flow-output {
  border-color:#426176;
  background:#1d334366;
  color:var(--cyan)
}

.reference-mode .flow-input.variable {
  color:var(--muted)
}

.reference-mode .result-letter {
  color:var(--cyan);
  border-color:#587b8e;
  background:#27445144
}

.reference-mode .result-action h4 {
  color:#d4eaf4
}

.result-actions {
  margin:20px 24px 0;
  display:flex;
  gap:12px;
  align-items:center;
  flex-wrap:wrap
}

.result-actions .button {
  font-size:10px;
  padding:10px 12px;
  min-height:42px;
  gap:12px
}

.replay-message {
  font-size:10px;
  color:var(--green);
  font-weight:600;
  letter-spacing:.5px
}

.panel-footnote {
  font-size:11px;
  line-height:1.7;
  color:var(--muted);
  padding:20px 24px;
  margin-top:auto
}

.record-symbol {
  font-size:22px;
  color:var(--muted);
  line-height:1
}

.record-content-inner {
  padding:22px
}

.record-empty {
  padding:35px 22px;
  font-size:13px;
  line-height:1.85;
  color:var(--muted);
  min-height:180px
}

.record-empty .empty-lines {
  display:grid;
  gap:13px;
  margin-bottom:24px
}

.empty-lines span {
  height:1px;
  background:#324151;
  max-width:85%
}

.empty-lines span:nth-child(2) {
  max-width:64%
}

.empty-lines span:nth-child(3) {
  max-width:73%
}

.record-fields {
  margin:0;
  display:grid;
  gap:13px
}

.record-fields div {
  display:grid;
  gap:3px
}

.record-fields dt {
  font-size:9px;
  text-transform:uppercase;
  letter-spacing:.9px;
  color:#a3b5c7
}

.record-fields dd {
  margin:0;
  font-size:11px;
  line-height:1.6;
  overflow-wrap:anywhere
}

.record-fields .mono {
  font-family:ui-monospace,SFMono-Regular,Consolas,monospace;
  font-size:10px;
  color:#a9c3d7
}

.record-factors {
  border-top:1px solid var(--line);
  padding-top:18px;
  margin-top:20px
}

.record-factors h4 {
  font-size:9px;
  margin-bottom:12px
}

.record-factors .factor-list {
  min-height:0;
  gap:8px
}

.record-factors .factor-list li {
  font-size:10px
}

.record-factors p {
  font-size:11px;
  color:var(--muted)
}

.record-note {
  margin:0 22px 22px;
  padding-top:16px;
  border-top:1px solid var(--line);
  font-size:11px;
  line-height:1.7;
  color:var(--muted)
}

.comparison-invitation {
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-top:18px;
  padding:20px 24px;
  border:1px solid #415464;
  border-radius:8px;
  background:#152330;
  gap:20px
}

.comparison-invitation>div {
  display:flex;
  align-items:center;
  gap:17px
}

.comparison-icon {
  font-size:26px;
  color:var(--gold)
}

.comparison-invitation p {
  font-size:14px;
  color:#b6c5d3
}

.comparison-invitation strong {
  color:var(--ink);
  font-weight:500
}

.comparison-invitation .button {
  font-size:10px;
  min-height:44px
}

.comparison {
  margin-top:18px;
  padding:35px;
  border:1px solid #75694d;
  border-radius:10px;
  background:linear-gradient(130deg,#172532,#131d28);
  position:relative
}

.compare-heading {
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:25px
}

.compare-heading h3 {
  font-size:29px;
  font-weight:500;
  line-height:1.25;
  letter-spacing:-.7px;
  margin-top:10px
}

.compare-heading>p {
  font-size:12px;
  color:var(--muted);
  max-width:240px
}

.compare-invariants {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  margin:26px 0;
  border:1px solid #384b5c;
  border-radius:5px
}

.compare-invariants>div {
  padding:12px 20px;
  display:flex;
  gap:10px;
  align-items:center;
  justify-content:space-between;
  border-right:1px solid #384b5c
}

.compare-invariants>div:last-child {
  border:0
}

.compare-invariants .micro {
  font-size:9px
}

.compare-invariants strong {
  font-size:10px;
  letter-spacing:1px;
  color:var(--cyan);
  font-weight:600
}

.compare-invariants>div:last-child strong {
  color:var(--gold)
}

.compare-present {
  font-size:12px;
  color:var(--muted);
  margin-bottom:22px;
  line-height:1.7
}

.compare-present strong {
  font-weight:500;
  color:#d1deea
}

.compare-columns {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:20px
}

.compare-card {
  border:1px solid #425e71;
  border-radius:7px;
  padding:24px;
  background:#10202d
}

.compare-card.history-b {
  border-color:#766749;
  background:#292a2555
}

.compare-card .eyebrow {
  margin-bottom:18px
}

.compare-card.history-b .eyebrow {
  color:var(--gold)
}

.compare-card .factor-list {
  min-height:125px
}

.compare-card .factor-list li {
  font-size:13px
}

.compare-card.history-a .factor-list li:before {
  background:var(--cyan)
}

.compare-result {
  border-top:1px solid #3b4e5d;
  margin-top:24px;
  padding-top:18px
}

.compare-result .result-action {
  margin-bottom:0
}

.compare-result .result-action h4 {
  font-size:24px
}

.compare-card.history-a .result-letter {
  color:var(--cyan);
  border-color:#587b8e;
  background:#27445144
}

.compare-card.history-a .result-action h4 {
  color:#d9edf4
}

.compare-bottom {
  margin-top:22px;
  display:flex;
  justify-content:space-between;
  gap:20px;
  align-items:center;
  padding:18px 20px;
  border:1px solid #3b4e5d;
  border-radius:5px;
  font-size:13px
}

.compare-bottom p {
  display:grid;
  gap:5px
}

.compare-bottom .micro {
  font-size:9px
}

.compare-bottom .material {
  font-size:16px;
  color:var(--gold);
  font-weight:550
}

.compare-summary {
  margin-top:21px;
  font-size:13px;
  color:#c5d3df
}

.compare-caption {
  font-size:10px;
  color:var(--muted);
  margin-top:8px
}

.lab-caption {
  font-size:10px;
  color:#a7b6c6;
  display:flex;
  gap:10px;
  align-items:center;
  margin-top:19px;
  letter-spacing:.15px
}

.caption-divider {
  color:#546a7e;
  margin:0 3px
}

.explanation {
  padding-top:100px
}

.explanation-grid {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:32px;
  margin-top:38px
}

.explanation-grid article {
  border-top:1px solid #3a4c5e;
  padding-top:24px
}

.step-number {
  font:11px ui-monospace,monospace;
  color:var(--cyan)
}

.explanation-grid h3 {
  font-size:19px;
  line-height:1.35;
  font-weight:500;
  margin:16px 0 12px;
  letter-spacing:-.3px
}

.explanation-grid p {
  font-size:14px;
  color:var(--muted);
  line-height:1.85;
  max-width:360px
}

.did-not {
  margin-top:36px;
  border:1px solid var(--line);
  border-radius:6px;
  background:#101b26
}

.did-not summary {
  font-size:13px;
  font-weight:550;
  cursor:pointer;
  padding:20px 24px;
  list-style:none;
  display:flex;
  justify-content:space-between;
  min-height:60px
}

.did-not summary::-webkit-details-marker {
  display:none
}

.did-not summary span {
  font-size:20px;
  color:var(--cyan);
  line-height:1
}

.did-not[open] summary span {
  transform:rotate(45deg)
}

.did-not ul {
  margin:0;
  padding:4px 45px 23px;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px 40px;
  font-size:13px;
  color:var(--muted)
}

.stack-section {
  padding-top:90px
}

.stack-flow {
  list-style:none;
  padding:0;
  margin:36px 0 0;
  display:grid;
  grid-template-columns:1fr 1fr 1.25fr 1fr;
  gap:25px
}

.stack-flow li {
  border:1px solid #35495b;
  border-radius:6px;
  padding:20px 18px;
  position:relative;
  background:#121e2a;
  display:flex;
  flex-direction:column;
  justify-content:center;
  min-height:114px
}

.stack-flow li:not(:last-child):after {
  content:"→";
  position:absolute;
  right:-21px;
  color:#7f95a8;
  top:43px
}

.stack-flow .micro {
  font-size:9px;
  letter-spacing:1px
}

.stack-flow p {
  font-size:12px;
  margin-top:9px;
  line-height:1.7
}

.stack-flow .caai-layer {
  border-color:#82704e;
  background:#29292099
}

.stack-flow .caai-layer .micro {
  color:var(--gold)
}

.stack-flow .caai-layer p {
  color:#f0dbb4;
  font-size:16px
}

.about {
  display:grid;
  grid-template-columns:1fr 1.7fr;
  gap:70px;
  border-top:1px solid var(--line);
  margin-top:90px;
  padding-top:48px
}

.about h2 {
  margin-top:15px;
  font-size:31px
}

.about-copy {
  display:grid;
  gap:16px;
  font-size:13px;
  line-height:1.85;
  color:var(--muted)
}

.about-copy .privacy-note {
  font-size:11px;
  color:#b6cbd8
}

.cta {
  margin-top:80px;
  margin-bottom:64px;
  border:1px solid #3e5568;
  border-radius:9px;
  padding:48px;
  text-align:center;
  background:radial-gradient(ellipse at 50% 0%,#1b33444d,transparent 80%),#101c28
}

.cta .eyebrow {
  justify-content:center;
  font-size:10px
}

.cta h2 {
  font-size:clamp(28px,3.6vw,46px);
  margin:18px 0
}

.cta>p:not(.eyebrow):not(.copy-status) {
  font-size:15px;
  color:var(--muted);
  max-width:530px;
  margin-inline:auto;
  line-height:1.8
}

.cta .button {
  margin-top:26px;
  min-width:220px
}

.email-fallback {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:17px;
  margin-top:19px;
  flex-wrap:wrap
}

.email-fallback>span {
  font-size:13px;
  user-select:all;
  color:#c5d8e7;
  overflow-wrap:anywhere
}

.email-fallback button {
  font-size:10px;
  letter-spacing:.7px;
  text-transform:uppercase;
  background:transparent;
  color:var(--cyan);
  border-left:1px solid var(--line);
  padding:10px 0 10px 17px;
  min-height:44px
}

.copy-status {
  font-size:11px;
  color:var(--green);
  margin-top:7px;
  min-height:18px
}

footer {
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:22px 0 35px;
  border-top:1px solid var(--line);
  gap:20px;
  color:var(--muted);
  font-size:11px
}

footer .brand {
  font-size:15px;
  color:#e2eaf2
}

footer .trademark {
  font-size:9px;
  margin-left:-7px
}

footer>a:last-child {
  color:#b7cbdc
}

.notice {
  padding:20px;
  background:#263546;
  border:1px solid var(--cyan);
  margin-bottom:20px
}

.entered {
  animation:enter .25s ease-out
}

.replayed {
  animation:replay .45s ease-out
}

@keyframes enter {
  from {
    opacity:.5;
    transform:translateY(5px)
  }
  to {
    opacity:1;
    transform:translateY(0)
  }
}

@keyframes replay {
  0% {
    box-shadow:inset 0 0 0 1px var(--green)
  }
  100% {
    box-shadow:inset 0 0 0 1px transparent
  }
}

@media(min-width:1500px) {
  .hero {
    gap:130px
  }
  .hero-diagram {
    max-width:520px
  }
  .lab-grid {
    grid-template-columns:1.05fr 1.18fr 1fr
  }
  .input-content {
    padding:25px
  }
  .factor-list {
    min-height:120px
  }
}

@media(max-width:1150px) {
  .wrap {
    width:calc(100% - 56px)
  }
  .hero {
    gap:40px
  }
  .hero-diagram {
    padding:22px 20px 0
  }
  .diagram-footer {
    margin-inline:-20px;
    padding-inline:20px
  }
  .diagram-action {
    font-size:10px;
    gap:7px;
    padding:12px 8px
  }
  .hero h1 {
    font-size:72px
  }
  .lab-grid {
    grid-template-columns:1fr 1.08fr
  }
  .record-panel {
    grid-column:1/-1
  }
  .record-content-inner {
    display:grid;
    grid-template-columns:2fr 1fr;
    gap:26px
  }
  .record-fields {
    grid-template-columns:repeat(3,1fr)
  }
  .record-factors {
    margin:0;
    padding:0 0 0 24px;
    border-top:0;
    border-left:1px solid var(--line)
  }
  .record-empty {
    min-height:120px
  }
  .record-empty .empty-lines {
    display:none
  }
  .factor-list {
    min-height:104px
  }
  .stack-flow {
    gap:20px
  }
  .stack-flow li {
    padding:15px 12px
  }
  .stack-flow li:not(:last-child):after {
    right:-18px
  }
  .compare-invariants>div {
    padding:12px
  }
  .section-heading>p {
    max-width:300px
  }
  .hero-description {
    font-size:13px
  }
  .diagram-connector:after {
    left:-80px;
    width:161px
  }
}

@media(max-width:800px) {
  .wrap {
    width:calc(100% - 40px)
  }
  .site-header {
    height:82px
  }
  nav {
    gap:20px
  }
  nav a:not(.nav-contact) {
    display:none
  }
  .nav-contact {
    padding-left:0;
    border:0
  }
  .hero {
    grid-template-columns:1fr;
    gap:40px;
    padding:53px 0 43px
  }
  .hero h1 {
    font-size:78px
  }
  .hero-copy {
    max-width:590px
  }
  .hero-subtitle {
    font-size:29px
  }
  .hero-diagram {
    max-width:550px;
    width:100%;
    justify-self:center;
    padding-top:24px
  }
  .diagram-action {
    font-size:13px;
    padding:14px
  }
  .diagram-connector:after {
    left:-120px;
    width:241px
  }
  .principle {
    align-items:flex-start
  }
  .principle p {
    font-size:15px
  }
  .principle>.micro {
    min-width:100px
  }
  .section-heading {
    align-items:flex-start;
    flex-direction:column;
    gap:18px
  }
  .section-heading>p {
    max-width:100%;
    font-size:13px
  }
  .section-heading>p br {
    display:none
  }
  .lab-section {
    padding-top:54px
  }
  .scenario-tabs {
    gap:8px
  }
  .scenario-tabs button {
    gap:10px;
    padding:14px 12px
  }
  .tab-arrow {
    display:none
  }
  .scenario-tabs button>span:nth-child(2) {
    font-size:12px
  }
  .scenario-tabs small {
    font-size:10px
  }
  .lab-grid {
    gap:12px
  }
  .panel-top {
    padding:16px
  }
  .input-content {
    padding:18px
  }
  .result-content-inner {
    padding:24px 20px 0
  }
  .selection-flow {
    margin-inline:20px
  }
  .comparison-invitation {
    padding:18px;
    flex-direction:column;
    align-items:stretch
  }
  .comparison-invitation .button {
    width:100%
  }
  .comparison {
    padding:25px
  }
  .compare-invariants {
    grid-template-columns:1fr
  }
  .compare-invariants>div {
    border-right:0;
    border-bottom:1px solid #384b5c;
    padding:10px 16px
  }
  .compare-heading {
    flex-direction:column;
    gap:14px
  }
  .compare-heading>p {
    max-width:100%
  }
  .compare-card {
    padding:18px
  }
  .compare-card .factor-list {
    min-height:170px
  }
  .compare-card .factor-list li {
    font-size:12px
  }
  .compare-result .result-action h4 {
    font-size:20px
  }
  .compare-result .result-action {
    gap:10px
  }
  .explanation,.stack-section {
    padding-top:65px
  }
  .explanation-grid {
    gap:22px
  }
  .explanation-grid h3 {
    font-size:17px
  }
  .explanation-grid p {
    font-size:13px
  }
  .stack-flow {
    grid-template-columns:1fr 1fr;
    gap:25px
  }
  .stack-flow li:after {
    display:none
  }
  .stack-flow li {
    padding:20px
  }
  .about {
    gap:30px;
    margin-top:65px;
    grid-template-columns:1fr 1.5fr
  }
  .about h2 {
    font-size:26px
  }
  .cta {
    margin-top:60px;
    padding:35px 25px
  }
  .record-fields {
    grid-template-columns:repeat(2,1fr)
  }
}

@media(max-width:580px) {
  .brand {
    font-size:16px
  }
  .brand-mark {
    width:20px;
    margin-right:0
  }
  .brand-mark i {
    width:4px
  }
  .nav-contact {
    font-size:11px
  }
  .hero {
    padding-top:37px
  }
  .hero .eyebrow {
    font-size:9px;
    gap:8px
  }
  .hero h1 {
    font-size:64px;
    letter-spacing:-3px;
    margin-top:24px
  }
  .hero-subtitle {
    font-size:25px
  }
  .hero-question {
    font-size:16px;
    margin-top:23px
  }
  .hero-actions {
    gap:22px
  }
  .hero-actions .button {
    font-size:10px;
    gap:20px;
    padding:12px 15px
  }
  .text-link {
    font-size:10px;
    gap:10px
  }
  .hero-diagram {
    padding:20px 18px 0
  }
  .diagram-heading {
    margin-bottom:22px
  }
  .diagram-heading .eyebrow {
    font-size:9px
  }
  .fixed-inputs {
    font-size:13px;
    padding:17px
  }
  .diagram-branches {
    gap:12px
  }
  .diagram-action {
    font-size:10px;
    padding:12px 8px;
    gap:7px
  }
  .diagram-footer {
    margin-inline:-18px;
    padding:18px;
    gap:12px
  }
  .diagram-footer .micro {
    font-size:8px
  }
  .diagram-connector:after {
    left:-78px;
    width:157px
  }
  .principle {
    display:grid;
    grid-template-columns:1fr auto;
    gap:9px
  }
  .principle>.micro {
    grid-column:1/-1;
    font-size:9px
  }
  .principle p {
    font-size:16px
  }
  .mobile-only {
    display:initial
  }
  .lab-section {
    padding-top:44px
  }
  .section-heading h2 {
    font-size:30px
  }
  .scenario-tabs {
    display:flex;
    flex-direction:column;
    gap:7px
  }
  .scenario-tabs button {
    padding:12px 16px;
    min-height:62px;
    gap:15px
  }
  .scenario-tabs button>span:nth-child(2) {
    font-size:14px
  }
  .scenario-tabs small {
    display:inline;
    margin-left:8px;
    font-size:10px
  }
  .scenario-tabs .tab-arrow {
    display:inline;
    margin-left:auto
  }
  .lab-grid {
    display:flex;
    flex-direction:column;
    gap:16px
  }
  .panel-top {
    padding:17px 20px
  }
  .input-content {
    padding:22px
  }
  .candidate-list li {
    font-size:13px
  }
  .factor-list li {
    font-size:13px
  }
  .factor-list {
    min-height:0
  }
  .present-card {
    font-size:14px
  }
  .field-note {
    font-size:12px
  }
  .history-control button {
    min-height:44px;
    font-size:12px
  }
  .influence-control h4 {
    font-size:11px
  }
  .influence-control p {
    font-size:11px
  }
  .run-button {
    min-height:52px
  }
  .record-content-inner {
    display:block;
    padding:22px
  }
  .record-fields {
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:16px
  }
  .record-fields dt {
    font-size:9px
  }
  .record-fields dd {
    font-size:12px
  }
  .record-factors {
    border-left:0;
    border-top:1px solid var(--line);
    margin-top:22px;
    padding:18px 0 0
  }
  .record-factors .factor-list li {
    font-size:12px
  }
  .record-note {
    font-size:12px
  }
  .result-action h4 {
    font-size:30px
  }
  .waiting {
    min-height:265px;
    padding:32px 24px 22px
  }
  .waiting p {
    max-width:100%
  }
  .selection-flow {
    margin:22px 24px 0
  }
  .flow-input {
    font-size:13px
  }
  .flow-output {
    font-size:11px
  }
  .status-rows div {
    font-size:10px
  }
  .comparison-mini {
    font-size:13px
  }
  .result-actions .button {
    min-height:46px;
    font-size:11px
  }
  .panel-footnote {
    font-size:12px
  }
  .compare-columns {
    grid-template-columns:1fr
  }
  .compare-card .factor-list {
    min-height:0
  }
  .compare-card .factor-list li {
    font-size:13px
  }
  .comparison {
    padding:22px 18px
  }
  .compare-heading h3 {
    font-size:26px
  }
  .compare-bottom {
    align-items:flex-start;
    flex-direction:column
  }
  .compare-result .result-action h4 {
    font-size:25px
  }
  .comparison-invitation p {
    font-size:13px
  }
  .comparison-invitation .button {
    padding-inline:12px;
    gap:12px;
    font-size:9px
  }
  .compare-summary {
    font-size:12px
  }
  .lab-caption {
    flex-wrap:wrap;
    font-size:9px;
    gap:7px
  }
  .explanation-grid {
    grid-template-columns:1fr;
    gap:26px
  }
  .explanation-grid h3 {
    font-size:21px;
    margin-top:12px
  }
  .explanation-grid p {
    font-size:14px;
    max-width:none
  }
  .explanation-grid article {
    padding-top:16px
  }
  .did-not ul {
    grid-template-columns:1fr;
    padding-inline:38px;
    gap:12px
  }
  .did-not summary {
    font-size:12px;
    padding-inline:20px
  }
  .stack-flow {
    grid-template-columns:1fr;
    gap:24px;
    margin-top:24px
  }
  .stack-flow li {
    min-height:95px;
    padding:18px 22px
  }
  .stack-flow li:not(:last-child):after {
    display:block;
    content:"↓";
    right:auto;
    left:50%;
    top:auto;
    bottom:-24px
  }
  .stack-flow .micro {
    font-size:10px
  }
  .stack-flow p {
    font-size:14px
  }
  .stack-flow .caai-layer p {
    font-size:19px
  }
  .about {
    grid-template-columns:1fr;
    gap:24px;
    margin-top:58px;
    padding-top:32px
  }
  .about h2 {
    font-size:30px
  }
  .about-copy {
    font-size:13px
  }
  .cta {
    padding:32px 20px;
    margin-bottom:36px
  }
  .cta h2 {
    font-size:29px;
    letter-spacing:-.9px
  }
  .cta .eyebrow {
    font-size:8px
  }
  .cta>p:not(.eyebrow):not(.copy-status) {
    font-size:14px
  }
  .email-fallback {
    gap:0 12px
  }
  .email-fallback>span {
    font-size:12px
  }
  footer {
    flex-wrap:wrap;
    padding-bottom:28px;
    gap:15px
  }
  footer>span {
    order:3;
    width:100%;
    font-size:10px
  }
  footer .brand {
    font-size:14px
  }
  footer>a:last-child {
    margin-left:auto
  }
}

/* Keep record details readable at normal browser zoom. */
.record-fields dt,.record-factors h4,.comparison-mini .micro,.status-rows div {
  font-size:10px
}

.record-fields dd,.record-factors .factor-list li,.candidate-list li,.factor-list li,.comparison-mini,.flow-input {
  font-size:13px
}

.record-fields .mono {
  font-size:11px
}

.record-note,.panel-footnote,.field-note {
  font-size:12px
}

.influence-control p {
  font-size:11px
}

.history-control button {
  min-height:44px
}

.switch {
  min-height:44px;
  min-width:68px
}

.result-actions .button {
  min-height:44px
}

.comparison-note,.compare-caption {
  font-size:12px
}

.record-fields {
  gap:14px
}

@media(max-width:1150px) {
  .hero:before {
    inset:0
  }
}

@media(prefers-reduced-motion:reduce) {
  html {
    scroll-behavior:auto
  }
  *,*:before,*:after {
    animation:none!important;
    transition:none!important
  }
  .primary:hover,.scenario-tabs button:hover {
    transform:none
  }
}

@media print {
  body {
    background:white;
    color:#16212c;
    font-size:12px
  }
  .site-header,.hero,.principle,.scenario-tabs,.input-panel,.selection-flow,.result-actions,.comparison-invitation,.lab-caption,.explanation,.stack-section,.about,.cta,footer,.skip-link {
    display:none!important
  }
  .wrap {
    width:100%;
    margin:0
  }
  .lab-section {
    padding:0
  }
  .section-heading {
    margin-bottom:20px
  }
  .section-heading h2 {
    font-size:24px
  }
  .section-heading p,.eyebrow,.micro,h4 {
    color:#384c60!important
  }
  .lab-grid {
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:15px
  }
  .panel,.comparison,.compare-card,.compare-bottom,.compare-invariants {
    background:white!important;
    color:#16212c;
    border-color:#7a8997;
    box-shadow:none;
    break-inside:avoid
  }
  .record-panel {
    grid-column:auto
  }
  .record-content-inner {
    display:block
  }
  .record-fields {
    grid-template-columns:1fr
  }
  .record-fields dd,.record-fields dt,.factor-list li,.record-note,.panel-footnote,.mode-line strong,.mode-line,.comparison-mini,.comparison-mini .micro,.status-rows dd,.status-rows dt,.compare-present,.compare-present strong,.compare-caption,.compare-summary {
    color:#22364b!important
  }
  .result-action h4,.result-letter,.difference strong {
    color:#62491e!important
  }
  .record-factors {
    border:0;
    padding:16px 0 0;
    margin:12px 0 0
  }
  .comparison {
    margin-top:25px;
    break-before:page;
    padding:20px
  }
  .compare-card .factor-list {
    min-height:110px
  }
  .badge {
    color:#23495b!important
  }
  .comparison-invitation[aria-expanded=false] {
    display:none
  }
  .result-panel {
    display:block
  }
  .result-content-inner {
    padding:20px
  }
  .replay-message {
    color:#21633a
  }
  .compare-heading>p,.compare-bottom strong {
    color:#283d50!important
  }
  a {
    color:inherit
  }
}
