/* /compare page. Extends site.css and landing.css. */

/* Savings summary */
.cmp-savings { display: grid; gap: 12px; margin-top: 40px; }
@media (min-width: 760px) { .cmp-savings { grid-template-columns: repeat(3, 1fr); } }
.cmp-savings div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.cmp-savings span { display: block; color: var(--muted); font-size: 15px; }
.cmp-savings b { display: block; font: 700 32px/1.2 var(--display); color: var(--mint); margin: 6px 0 4px; font-variant-numeric: tabular-nums; }

/* Scenario tabs (compare.js turns the three panels into tabs; without script all three show) */
.cb-tabs { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: var(--page); border: 1px solid var(--line); border-radius: 999px; margin-bottom: 20px; }
.cb-tabs button { font: 600 14px/1 var(--body); color: var(--muted); background: none; border: 0; border-radius: 999px; padding: 10px 16px; cursor: pointer; }
.cb-tabs button[aria-selected="true"] { background: var(--accent); color: var(--accent-ink); }
.cb-tabs button:focus-visible { outline: 3px solid rgba(139, 108, 255, .6); outline-offset: 2px; }

/* Cost bars */
.cb { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 22px; }
.cb + .cb { margin-top: 20px; }
.cb h3 { font-size: 19px; }
.cb .needs { color: var(--muted); font-size: 15px; margin: 6px 0 20px; }
.cb ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.cb li { display: grid; gap: 4px 18px; align-items: center; }
@media (min-width: 760px) { .cb li { grid-template-columns: 220px minmax(0, 1fr); } .cb .gaps { grid-column: 2; } }
.cb .who { font-weight: 600; font-size: 15px; line-height: 1.3; }
.cb .who small { display: block; font-weight: 400; font-size: 13px; color: var(--muted); }
.cb .track { display: flex; align-items: center; gap: 10px; min-width: 0; }
.cb .fill { height: 22px; min-width: 4px; flex: none; border-radius: 6px; background: rgba(255, 255, 255, .18); width: calc((100% - 96px) * var(--w)); }
.cb .price { font-weight: 600; font-size: 15px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.cb li.us .who { color: var(--accent); }
.cb li.us .fill { background: var(--accent); }
.cb li.stack .fill { background: #8f8ba8; }
.cb .gaps { display: flex; flex-wrap: wrap; gap: 6px; }
.cb-note { font-size: 13px; line-height: 1.4; padding: 2px 9px; border-radius: 999px; background: var(--amber-soft); color: var(--amber); font-weight: 500; }
.cb-note.ok { background: var(--mint-soft); color: var(--mint); }
.cb .total { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; }
.cb .total b { font: 700 26px/1.2 var(--display); color: var(--mint); font-variant-numeric: tabular-nums; }
.cb .total span { color: var(--muted); font-size: 15px; }

/* Feature table states */
.cmp .y { color: var(--mint); font-weight: 600; }
.cmp .t { color: var(--amber); font-weight: 500; }
.cmp .n { color: var(--faint); }
.cmp tr.group td { font: 600 12px/1 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: var(--page); padding: 10px 18px; }
.cmp-legend { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 14px; font-size: 14px; color: var(--muted); }
.cmp-notes { margin: 28px 0 0; padding-left: 20px; display: grid; gap: 6px; font-size: 14px; color: var(--muted); max-width: 820px; }
