.lex-demo-page {
  --demo-ink: #172e4e;
  --demo-muted: #435974;
  --demo-line: #dce5ef;
  --demo-blue: #115bc0;
  --demo-quiet: #f4f8fd;
  --demo-navy: #122744;
}
.compare-intro {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 28px; padding: clamp(28px,5vw,54px) 0 26px;
}
.compare-intro h1 { font-size: clamp(37px,5.45vw,67px); margin: 0 0 13px; text-wrap: wrap; max-width: 19ch; }
.compare-intro .lead { margin: 0; max-width: 43rem; }
.compare-controls { display: flex; flex-wrap: wrap; gap: 8px; flex: 0 0 auto; align-items: center; }
.compare-controls .button {
  background: var(--demo-blue); cursor: pointer; gap: 8px; white-space: nowrap; min-height: 48px;
}
.compare-controls .button:hover { background: #0b479b; }
.compare-controls .button.secondary { background: #fff; }
.compare-controls .button.secondary:hover { background: var(--demo-quiet); }
.compare-controls .button:disabled { cursor: default; opacity: .68; }
.compare-play-icon {
  width: 0; height: 0; border-block: 6px solid transparent;
  border-left: 9px solid currentColor;
}
#compare-play[data-running=true] .compare-play-icon {
  width: 9px; height: 12px; border: 0; border-inline: 3px solid currentColor;
}
.compare-request {
  display: grid; grid-template-columns: auto minmax(0,1fr); gap: 14px;
  align-items: start; border: 1px solid var(--demo-line); background: var(--demo-quiet);
  padding: 15px 20px; border-radius: 14px; margin-bottom: 20px;
}
.compare-request-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 9px; background: #dceafa; color: var(--demo-blue); }
.compare-request-mark svg { width: 22px; height: 22px; }
.compare-request-copy h2 { font-size: 16px; margin: 0 0 3px; }
.compare-request-copy p { margin: 0; line-height: 1.5; font-size: 14px; }
.compare-request-copy .compare-request-meta { color: var(--demo-muted); margin-top: 3px; font-size: 12px; }
.compare-board {
  background: var(--demo-navy); color: #f0f6ff; border-radius: 19px;
  padding: 15px clamp(10px,2.4vw,24px) clamp(10px,2.4vw,24px);
}
.compare-board-bar { display: flex; justify-content: space-between; gap: 5px 20px; flex-wrap: wrap; padding: 0 3px; }
.compare-board .compare-board-bar p { color: #c8d8ef; font-size: 13px; margin: 0; }
.compare-board .compare-board-bar #compare-status { color: #fff; font-weight: 650; }
.compare-progress {
  display: block; height: 4px; width: 100%; border: 0; overflow: hidden; appearance: none;
  color: #7db8ff; background: #35506f; border-radius: 3px; margin: 11px 0 15px;
}
.compare-progress::-webkit-progress-bar { background: #35506f; }
.compare-progress::-webkit-progress-value { background: #7db8ff; border-radius: 3px; }
.compare-progress::-moz-progress-bar { background: #7db8ff; }
.compare-lanes { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: clamp(5px,1.25vw,14px); }
.compare-lane {
  color: var(--demo-ink); background: #fff; border-radius: 13px; min-width: 0;
  border: 1px solid #d6e2f1; padding: clamp(8px,2vw,19px);
}
.compare-lex { background: #f0f6ff; border-color: #b9d6fb; }
.compare-lane header {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 8px;
  border-bottom: 1px solid var(--demo-line); padding-bottom: 11px; min-height: 63px;
}
.compare-lane h2 { font-size: clamp(19px,3vw,28px); margin: 0; }
.compare-lane .compare-lane-description { margin: 2px 0 0; color: var(--demo-muted); font-size: 13px; line-height: 1.45; }
.compare-lane .compare-lane-count { margin: 0; text-align: right; white-space: nowrap; line-height: 1.25; font-size: 12px; color: var(--demo-muted); }
.compare-lane-count strong { color: var(--demo-ink); display: block; font-size: 21px; }
.compare-lex .compare-lane-count strong { color: var(--demo-blue); }
.compare-steps {
  list-style: none; padding: 9px 0 0; margin: 0; counter-reset: action;
  display: grid; grid-template-rows: repeat(4, minmax(72px,1fr)); gap: 1px;
}
.compare-steps > li {
  counter-increment: action; display: grid; grid-template-columns: 23px minmax(0,1fr);
  column-gap: 8px; align-content: start; padding: 8px; border: 1px solid transparent; border-radius: 8px;
}
.compare-steps > li::before {
  content: counter(action); width: 21px; height: 21px; display: grid; place-items: center;
  margin-top: 2px; background: #edf2f8; color: #465b76; border-radius: 6px; font-size: 11px;
}
.compare-steps > li[data-phase="active"], .compare-steps > li[data-phase="review"] { border-color: #9fc7fa; background: #e7f1ff; }
.compare-steps > li[data-phase="active"]::before { background: var(--demo-blue); color: #fff; }
.compare-steps > li[data-phase="done"]::before { background: #d4e8fc; color: #124b9b; }
.compare-steps > li > p { grid-column: 2; margin: 1px 0 0; line-height: 1.42; font-size: 13px; color: var(--demo-muted); }
.compare-steps > li[data-phase="pending"] > p { visibility: hidden; }
.compare-actor { margin: 0 0 1px; color: var(--demo-muted); font-size: 11px; font-weight: 650; line-height: 1.25; }
.compare-lex .compare-actor { color: #174b8c; }
.compare-steps h3 { font-size: 15px; line-height: 1.28; margin: 0; }
.compare-outcome {
  display: grid; grid-template-columns: 1fr 1.9fr; gap: 15px; padding: 17px 5px 0;
}
.compare-outcome h2 { color: #fff; margin: 0 0 5px; font-size: 20px; }
.compare-board .compare-outcome p { font-size: 14px; color: #d1e1f4; margin: 0; line-height: 1.5; }
.compare-outcome blockquote {
  margin: 0; color: #edf5ff; background: #243e61; padding: 12px 15px;
  border-radius: 10px; font-size: 14px; line-height: 1.55;
}
.compare-footer { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: space-between; padding: 13px 0 42px; font-size: 13px; }
.compare-footer p { margin: 0; }
.lex-demo-page [hidden] { display: none!important; }
.lex-demo-page :focus-visible { outline: 3px solid var(--demo-blue); outline-offset: 4px; }
@media (max-width: 900px) {
  .compare-intro { align-items: flex-start; flex-direction: column; gap: 15px; }
}
@media (max-width: 620px) {
  .lex-demo-page main.discovery-wrap { width: calc(100% - 24px); }
  .compare-lane header { display: block; min-height: 105px; }
  .compare-lane .compare-lane-count { margin-top: 5px; text-align: left; }
  .compare-lane-count strong { display: inline; font-size: 16px; margin-right: 4px; }
  .compare-steps { grid-template-rows: repeat(4,minmax(106px,1fr)); }
  .compare-steps > li { grid-template-columns: 18px minmax(0,1fr); column-gap: 3px; padding-inline: 3px; }
  .compare-steps > li::before { width: 16px; height: 18px; margin-top: 1px; }
  .compare-steps h3 { font-size: 13px; }
  .compare-steps > li > p { grid-column: 1/-1; padding-top: 3px; font-size: 12px; }
  .compare-outcome { grid-template-columns: 1fr; }
}
