/* CLAILA web v2: /compare, the savings page (Figma "CLAILA UI", page W2, frame "Srovnání úspor"). Loaded on that page only. */
.w-cmp-hero { padding: 64px 0 40px; }
.w-cmp-hero .w-wrap { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.w-cmp-hero .w-h1 { max-width: 760px; }
.w-cmp-hero .w-lead { max-width: 620px; }
.w-cmp-calc { padding: 0 0 96px; }
.w-cmp-note { max-width: none; margin: 0 0 16px; }

/* the calculator: the list on the left, the result on the right (it stays in view while the list scrolls) */
.w-calc { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 32px; align-items: start; }
.w-calc-list { display: flex; flex-direction: column; gap: 10px; }
.w-calc-team { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 16px 12px 20px; border-radius: 14px; background: var(--w-tint); font-size: 16px; line-height: 24px; font-weight: 600; }
.w-cnt { display: inline-flex; align-items: center; gap: 6px; }
.w-cnt-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 12px; background: var(--w-surface); border: 1px solid var(--w-line-strong); color: var(--w-text-1); transition: border-color .15s; }
.w-cnt-btn:hover { border-color: var(--w-text-1); }
.w-cnt-btn[disabled] { opacity: .4; cursor: default; border-color: var(--w-line-strong); }
.w-cnt-n { min-width: 48px; text-align: center; font-size: 18px; line-height: 24px; font-weight: 600; font-variant-numeric: tabular-nums; }
.w-calc-row { display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 10px 20px 10px 16px; border-radius: 14px; background: var(--w-surface); border: 1px solid var(--w-line); cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.w-calc-row:hover { border-color: var(--w-line-strong); }
.w-calc-row:has(input:checked) { border-color: var(--w-action); box-shadow: 0 0 0 1px var(--w-action); }
.w-calc-row:has(input:focus-visible) { outline: 2px solid var(--w-action); outline-offset: 3px; }
.w-check { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 7px; border: 1.5px solid var(--w-line-strong); background: var(--w-surface); color: transparent; }
.w-calc-row input:checked + .w-check { background: var(--w-action); border-color: var(--w-action); color: #fff; }
.w-check .w-ic { stroke-width: 2.6; }
.w-calc-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.w-calc-text strong { font-size: 16px; line-height: 22px; font-weight: 600; }
.w-calc-text span { font-size: 13px; line-height: 18px; color: var(--w-text-3); }
.w-calc-price { flex: none; display: flex; flex-direction: column; align-items: flex-end; font-variant-numeric: tabular-nums; }
.w-calc-price strong { font-size: 16px; line-height: 22px; font-weight: 600; }
.w-calc-price span { font-size: 12px; line-height: 18px; color: var(--w-text-3); }
.w-calc-row:not(:has(input:checked)) .w-calc-price strong, .w-calc-row:not(:has(input:checked)) .w-calc-text strong { color: var(--w-text-3); }

.w-calc-card { position: sticky; top: 96px; display: flex; flex-direction: column; padding: 32px; border-radius: 20px; background: var(--w-ink); color: var(--w-on-ink); box-shadow: var(--w-shadow-lg); }
.w-calc-over { font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--w-on-ink-2); }
.w-calc-over-mint { margin-top: 24px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .12); color: var(--w-mint); }
.w-calc-old, .w-calc-new { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin-top: 10px; font-variant-numeric: tabular-nums; }
.w-calc-old s { font-size: 40px; line-height: 44px; font-weight: 600; letter-spacing: -.02em; color: var(--w-on-ink-2); text-decoration-thickness: 2px; }
.w-calc-old span, .w-calc-new > span { font-size: 15px; line-height: 22px; color: var(--w-on-ink-2); }
.w-calc-new strong { font-size: 56px; line-height: 58px; font-weight: 600; letter-spacing: -.025em; }
.w-calc-plans { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.w-calc-plans button { height: 32px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .22); color: var(--w-on-ink-2); font-size: 13px; line-height: 18px; font-weight: 600; transition: border-color .15s, color .15s; }
.w-calc-plans button:hover { border-color: rgba(255, 255, 255, .5); color: var(--w-on-ink); }
.w-calc-plans button[aria-pressed="true"] { background: var(--w-on-ink); border-color: var(--w-on-ink); color: var(--w-ink); }
.w-calc-foot a { color: var(--w-on-ink); text-decoration: underline; text-underline-offset: 3px; }
.w-calc-save { display: flex; flex-direction: column; gap: 8px; margin-top: 24px; padding: 16px 18px; border-radius: 14px; background: rgba(255, 255, 255, .07); font-variant-numeric: tabular-nums; }
.w-calc-save p { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; line-height: 20px; color: var(--w-on-ink-2); }
.w-calc-save p:first-child { font-size: 16px; line-height: 24px; font-weight: 600; color: var(--w-on-ink); }
.w-calc-save p:first-child strong { color: var(--w-mint); }
.w-calc-save strong { font-weight: 600; }
.w-calc-empty { margin-top: 24px; font-size: 14px; line-height: 22px; color: var(--w-on-ink-2); }
.w-calc-card .w-btn { margin-top: 24px; width: 100%; }
.w-calc-foot { margin-top: 14px; font-size: 13px; line-height: 20px; color: var(--w-on-ink-2); }

/* the table */
.w-cmp-head { display: flex; flex-direction: column; gap: 8px; margin-bottom: 32px; }
.w-cmp-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--w-r-card); background: var(--w-surface); border: 1px solid var(--w-line); box-shadow: var(--w-shadow-sm); }
.w-cmp-table { width: 100%; min-width: 780px; border-collapse: collapse; font-size: 15px; line-height: 22px; }
.w-cmp-table th, .w-cmp-table td { padding: 16px 20px; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--w-line); }
.w-cmp-table thead th { font-size: 13px; line-height: 18px; font-weight: 600; color: var(--w-text-1); white-space: nowrap; }
.w-cmp-table tbody th { font-weight: 600; }
.w-cmp-table td { color: var(--w-text-2); }
.w-cmp-table .w-num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.w-cmp-table .w-num strong { font-weight: 600; color: var(--w-text-1); }
.w-cmp-min { display: block; font-size: 12px; line-height: 18px; color: var(--w-text-3); }
.w-cmp-in { white-space: nowrap; font-weight: 500; color: var(--w-text-1) !important; }
.w-cmp-in .w-ic { margin-right: 8px; color: var(--w-g-dev); }
.w-cmp-table tfoot th, .w-cmp-table tfoot td { border-bottom: 0; background: var(--w-tint); font-weight: 600; color: var(--w-text-1); }
.w-cmp-table tfoot .w-num strong { font-size: 17px; }
.w-cmp-with { white-space: nowrap; color: var(--w-accent) !important; }
.w-cmp-src { margin-top: 20px; max-width: 860px; font-size: 13px; line-height: 20px; color: var(--w-text-3); }
.w-cmp-src details { margin-top: 10px; }
.w-cmp-src summary { cursor: pointer; font-weight: 600; color: var(--w-text-2); }
.w-cmp-src ul { display: flex; flex-direction: column; gap: 4px; margin-top: 10px; }
.w-cmp-src a { color: var(--w-accent); text-decoration: underline; text-underline-offset: 2px; word-break: break-word; }

/* three cards */
.w-cmp-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.w-cmp-card { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 28px; border-radius: var(--w-r-card); background: var(--w-surface); border: 1px solid var(--w-line); }
.w-cmp-card h3 { margin-top: 10px; font-size: 20px; line-height: 28px; font-weight: 600; }
.w-cmp-card p { font-size: 16px; line-height: 26px; color: var(--w-text-2); }

@media (max-width: 1020px) {
  .w-cmp-hero { padding: 48px 0 32px; }
  .w-calc { grid-template-columns: 1fr; gap: 20px; }
  .w-calc-card { position: sticky; top: auto; bottom: 12px; padding: 24px; }
  .w-cmp-calc { padding-bottom: 72px; }
  .w-cmp-cards { grid-template-columns: 1fr; gap: 12px; }
}
@media (max-width: 680px) {
  .w-cmp-hero { padding: 32px 0 24px; gap: 16px; }
  .w-calc-row { gap: 10px; padding: 10px 14px 10px 12px; }
  .w-calc-row .w-tile { display: none; }
  .w-calc-text strong, .w-calc-price strong { font-size: 15px; }
  /* on a phone the result is a short bar at the bottom: the two prices and the button; the details sit under the list */
  .w-calc-card { position: static; }
  .w-calc-old s { font-size: 32px; line-height: 36px; }
  .w-calc-new strong { font-size: 44px; line-height: 46px; }
  .w-cmp-calc { padding-bottom: 56px; }
  .w-cmp-table th, .w-cmp-table td { padding: 14px 16px; }
  .w-cmp-card { padding: 22px; }
}
