/* ==========================================================================
   Compare — "Leave behind / Gain instead" as two panels side by side.
   Old way: light grey panel, muted text, grey tag and × marks.
   Cloudspace solution: mint panel, brand text, ticks.
   Each panel: tag, heading, hairline, list. Below 700px the panels stack.
   ========================================================================== */

.compare {
  --compare-pad: clamp(28px, 4cqi, 48px);
  --compare-space: clamp(28px, 3cqi, 40px);
  /* The old way steps back but stays above 4.5:1 on --neutral-75 */
  --compare-muted: color-mix(in srgb, var(--neutral-800) 70%, var(--background-color));
}

.compare-panels {
  display: grid;
  gap: 32px;
}

.compare-panel {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: var(--compare-pad);
  border-radius: calc(var(--border-radius-sm) * 1.5);
  background: var(--neutral-100);
  color: var(--compare-muted);
}

.compare-panel--to {
  background: var(--brand-primary);
  color: #ffffff;
}

.compare-tag {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  min-height: 32px;
  padding: 0 10px;
  border-radius: var(--button-border-radius);
  background: #d1d1d1;
  color: #8c8c8c;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.compare-panel--to .compare-tag {
  background: var(--brand-primary-700);
  color: var(--brand-accent);
}

/* The icon's square is the same dark green as the tag, so only the mark shows */
.compare-tag img {
  display: block;
  width: 26px;
  height: 26px;
}

.compare-title {
  align-self: stretch;
  margin: 12px 0 0;
  padding-bottom: var(--compare-space);
  border-bottom: 1px solid color-mix(in srgb, currentColor 15%, transparent);
  font-size: clamp(26px, 2.6cqi, 32px);
  font-weight: 500;
  line-height: 1.2;
  color: inherit;
}

.compare-list {
  display: grid;
  gap: clamp(24px, 3cqi, 38px);
  margin: var(--compare-space) 0 0;

  li {
    display: grid;
    grid-template-columns: 24px 1fr;
    gap: 10px;
    align-items: start;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.45;
  }
}

.compare-icon {
  margin-top: 1px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.compare-panel--from .compare-icon {
  color: #8c8c8c;
}

/* Wide: side by side, equal height */
@container (min-width: 700px) {
  .compare-panels {
    grid-template-columns: 1fr 1fr;
  }
}
