:root {
  --compare-blue-surface: var(--component-blue-soft);
  --compare-green-surface: var(--component-green-soft);
  --compare-orange-surface: var(--component-orange-soft);
  --compare-pink-surface: var(--component-pink-soft);
  --compare-yellow-surface: var(--component-yellow-soft);
  --compare-card-surface: var(--color-page);
  --compare-soft-surface: var(--color-panel);
  --compare-strong-surface: var(--color-panel-strong);
  --compare-line: var(--color-line);
  --compare-ink: var(--color-ink);
  --compare-muted: var(--color-ink-muted);
  --compare-blue: var(--color-brand);
  --compare-blue-deep: var(--color-brand-deep);
  --compare-positive: var(--color-positive);
  --compare-caution: var(--color-caution);
  --compare-white: var(--color-white);
  --compare-display-font: var(--font-display);
  --compare-mono-font: var(--font-mono);
  --compare-small-radius: var(--radius-small);
  --compare-medium-radius: var(--radius-medium);
  --compare-large-radius: var(--radius-large);
  --compare-card-radius: var(--radius-card);
  --compare-feature-radius: var(--radius-feature);
  --compare-pill-radius: var(--radius-pill);
  --compare-card-shadow: var(--shadow-card);
  --compare-float-shadow: var(--shadow-float);
}

.compare-hero {
  position: relative;
  overflow-x: clip;
  padding-top: clamp(64px, 9vw, 116px);
  padding-bottom: clamp(78px, 10vw, 132px);
}

.compare-hero::before {
  content: "";
  position: absolute;
  top: -180px;
  right: -160px;
  width: 680px;
  height: 680px;
  border-radius: var(--compare-pill-radius);
  background: radial-gradient(circle, var(--color-brand-halo-core), var(--color-brand-halo-mid) 52%, var(--color-brand-halo-clear) 74%);
  pointer-events: none;
}

.compare-hero::after {
  content: "";
  position: absolute;
  bottom: -210px;
  left: -190px;
  width: 520px;
  height: 520px;
  border-radius: var(--compare-pill-radius);
  background: radial-gradient(circle, var(--compare-yellow-surface), var(--color-transparent) 70%);
  pointer-events: none;
}

.compare-hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(390px, 0.95fr);
  align-items: center;
  gap: clamp(44px, 8vw, 94px);
}

.compare-hero-copy {
  min-width: 0;
  max-width: 680px;
}

.compare-hero-lead {
  max-width: 650px;
  margin-bottom: 26px;
  color: var(--compare-muted);
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.75;
}

.compare-facts {
  margin-top: 22px;
}

.compare-visual {
  position: relative;
  min-height: 480px;
}

.compare-visual::before,
.compare-visual::after {
  content: "";
  position: absolute;
  border-radius: var(--compare-pill-radius);
  pointer-events: none;
}

.compare-visual::before {
  inset: 62px 48px 84px 66px;
  border: 2px dashed var(--compare-line);
}

.compare-visual::after {
  top: 50%;
  left: 50%;
  width: 250px;
  height: 250px;
  transform: translate(-50%, -50%);
  background: var(--compare-blue-surface);
  filter: blur(1px);
}

.compare-orbit-card {
  position: absolute;
  z-index: 2;
  display: flex;
  width: 220px;
  min-height: 154px;
  padding: 22px;
  flex-direction: column;
  justify-content: flex-end;
  border-radius: var(--compare-card-radius);
  background: var(--compare-card-surface);
  color: var(--compare-ink);
  box-shadow: var(--compare-float-shadow);
}

.compare-orbit-card strong {
  margin-bottom: 3px;
  font-family: var(--compare-display-font);
  font-size: 24px;
  font-weight: 850;
}

.compare-orbit-card > span:last-child {
  color: var(--compare-muted);
  font-size: 13px;
}

.compare-orbit-label {
  display: inline-flex;
  width: fit-content;
  margin-bottom: auto;
  padding: 4px 10px;
  border-radius: var(--compare-pill-radius);
  background: var(--compare-soft-surface);
  color: var(--compare-blue-deep);
  font-family: var(--compare-mono-font);
  font-size: 11px;
  font-weight: 700;
}

.compare-orbit-primary {
  top: 4px;
  left: 0;
  background: linear-gradient(145deg, var(--compare-card-surface), var(--compare-blue-surface));
}

.compare-orbit-secondary {
  top: 122px;
  right: 0;
  background: linear-gradient(145deg, var(--compare-card-surface), var(--compare-green-surface));
}

.compare-orbit-tertiary {
  bottom: 0;
  left: 28px;
  background: linear-gradient(145deg, var(--compare-card-surface), var(--compare-orange-surface));
}

.compare-core-note {
  position: absolute;
  right: 54px;
  bottom: 42px;
  z-index: 3;
  display: grid;
  min-width: 190px;
  padding: 16px 20px;
  border-radius: var(--compare-medium-radius);
  background: var(--compare-ink);
  color: var(--compare-white);
  box-shadow: var(--compare-float-shadow);
}

.compare-core-note span {
  color: var(--color-code-muted);
  font-family: var(--compare-mono-font);
  font-size: 11px;
}

.compare-core-note strong {
  color: var(--compare-white);
  font-size: 15px;
}

.answer-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.answer-pill {
  display: flex;
  min-height: 280px;
  padding: 28px;
  gap: 18px;
  border-radius: var(--compare-card-radius);
  background: var(--compare-card-surface);
  color: var(--compare-ink);
  box-shadow: var(--compare-card-shadow);
}

.answer-index {
  display: grid;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  place-items: center;
  border-radius: var(--compare-pill-radius);
  background: var(--compare-ink);
  color: var(--compare-white);
  font-family: var(--compare-mono-font);
  font-size: 12px;
  font-weight: 700;
}

.answer-pill > div {
  display: flex;
  flex-direction: column;
}

.answer-pill h3 {
  font-size: 22px;
}

.answer-pill p {
  color: var(--compare-muted);
}

.answer-pill a {
  margin-top: auto;
  font-weight: 750;
  text-decoration: none;
}

.compare-table-shell {
  max-width: 100%;
  overflow-x: auto;
  border-radius: var(--compare-card-radius);
  box-shadow: var(--compare-card-shadow);
  -webkit-overflow-scrolling: touch;
}

.compare-table-shell:focus-visible {
  outline: 3px solid var(--color-brand-glow);
  outline-offset: 4px;
}

.compare-table {
  min-width: 980px;
  margin-bottom: 0;
  border-radius: var(--compare-card-radius);
  box-shadow: none;
}

.compare-table th:first-child {
  width: 165px;
}

.compare-table thead th:not(:first-child) {
  min-width: 250px;
  color: var(--compare-blue-deep);
  font-size: 18px;
}

.compare-table tbody th {
  background: var(--compare-soft-surface);
  color: var(--compare-ink);
}

.compare-table td {
  color: var(--compare-muted);
}

.compare-table tr:hover td,
.compare-table tr:hover th {
  background: var(--compare-blue-surface);
}

.compare-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--compare-ink);
  font-weight: 750;
  white-space: nowrap;
}

.client-review-stack {
  display: grid;
  gap: 34px;
}

.client-review {
  min-height: 590px;
}

.client-review .feature-copy {
  position: relative;
  z-index: 2;
}

.client-review .badge-row {
  margin-bottom: 15px;
}

.client-review .feature-copy > p {
  color: var(--compare-muted);
}

.client-review .button-row {
  margin-top: 24px;
}

.review-visual {
  position: relative;
  display: grid;
  min-height: 390px;
  padding: clamp(22px, 4vw, 42px);
  place-items: center;
  overflow: clip;
  background: linear-gradient(145deg, var(--compare-blue-surface), var(--compare-soft-surface));
}

.review-visual::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -80px;
  width: 210px;
  height: 210px;
  border-radius: var(--compare-pill-radius);
  background: var(--compare-pink-surface);
}

.review-visual .ui-fragment {
  position: relative;
  z-index: 1;
  width: min(100%, 410px);
}

.mobile-review-visual {
  background: linear-gradient(145deg, var(--compare-green-surface), var(--compare-soft-surface));
}

.review-window-title {
  margin-top: 17px;
  font-family: var(--compare-display-font);
  font-size: 18px;
  font-weight: 800;
}

.review-phone {
  max-width: 330px;
  border-radius: var(--compare-feature-radius);
}

.review-phone-head {
  display: flex;
  padding: 4px 4px 16px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--compare-line);
}

.scenario-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.scenario-grid .callout {
  min-height: 210px;
  margin-block: 0;
}

.scenario-grid .callout-title {
  font-size: 18px;
}

.decision-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(390px, 1.1fr);
  align-items: start;
  gap: clamp(44px, 8vw, 90px);
}

.decision-copy p {
  color: var(--compare-muted);
}

.decision-steps {
  display: grid;
  margin: 0;
  padding: 0;
  gap: 14px;
  list-style: none;
  counter-reset: none;
}

.decision-steps li {
  display: grid;
  grid-template-columns: 92px 1fr;
  padding: 24px;
  align-items: start;
  border-radius: var(--compare-large-radius);
  background: var(--compare-card-surface);
  color: var(--compare-ink);
  box-shadow: var(--compare-card-shadow);
}

.decision-steps li > span {
  grid-row: 1 / span 2;
  color: var(--compare-blue-deep);
  font-family: var(--compare-mono-font);
  font-size: 12px;
  font-weight: 700;
}

.decision-steps li > strong {
  font-size: 18px;
}

.decision-steps p {
  margin: 6px 0 0;
  color: var(--compare-muted);
}

.final-choice {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 40px;
  background: linear-gradient(135deg, var(--compare-card-surface), var(--compare-blue-surface));
}

.final-choice p {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--compare-muted);
}

.final-choice-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

@media (max-width: 1040px) {
  .compare-hero-layout {
    grid-template-columns: 1fr;
  }

  .compare-hero-copy {
    margin-inline: auto;
    text-align: center;
  }

  .compare-hero-copy .button-row,
  .compare-facts {
    justify-content: center;
  }

  .compare-visual {
    width: min(100%, 620px);
    margin-inline: auto;
  }

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

  .answer-pill {
    min-height: 0;
  }

  .decision-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .compare-hero {
    padding-top: 52px;
    padding-bottom: 78px;
  }

  .compare-hero-copy {
    width: 100%;
    padding-inline: 16px;
  }

  .compare-hero-copy h1 .nowrap-term {
    white-space: normal;
  }

  .compare-hero-lead {
    max-width: 100%;
    font-size: 17px;
    overflow-wrap: anywhere;
  }

  .compare-visual {
    min-height: 420px;
  }

  .compare-orbit-card {
    width: 190px;
    min-height: 138px;
    padding: 18px;
  }

  .compare-orbit-primary {
    left: 2px;
  }

  .compare-orbit-secondary {
    right: 2px;
  }

  .compare-orbit-tertiary {
    left: 12px;
  }

  .compare-core-note {
    right: 12px;
    bottom: 25px;
    min-width: 172px;
  }

  .scenario-grid,
  .final-choice {
    grid-template-columns: 1fr;
  }

  .final-choice-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

@media (max-width: 520px) {
  .compare-visual {
    display: grid;
    min-height: 0;
    gap: 12px;
  }

  .compare-visual::before,
  .compare-visual::after {
    display: none;
  }

  .compare-orbit-card,
  .compare-core-note {
    position: relative;
    inset: auto;
    width: 100%;
    min-height: 124px;
  }

  .compare-core-note {
    min-height: 72px;
  }

  .answer-pill {
    padding: 22px;
    flex-direction: column;
  }

  .client-review {
    min-height: 0;
  }

  .review-visual {
    min-height: 300px;
    padding: 18px;
  }

  .decision-steps li {
    grid-template-columns: 1fr;
  }

  .decision-steps li > span {
    grid-row: auto;
    margin-bottom: 8px;
  }

  .final-choice-actions {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .compare-hero::before,
  .compare-hero::after {
    transform: none;
  }
}