/* Cost comparison: slider, two bars, one big number */
.cost-ctl { display: grid; grid-template-columns: auto auto minmax(0, 1fr); align-items: center; gap: 8px 20px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.cost-ctl__name { font-weight: 500; color: var(--ink); }
.cost-ctl__n { font: 600 var(--fs-xl)/1 var(--f-head); font-variant-numeric: tabular-nums; color: var(--ink); min-width: 2.2ch; }
.cost-ctl__slider { min-width: 0; padding-block: 10px; }

.cost-range { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 28px; margin: 0; background: transparent; cursor: pointer; --p: 40%; }
.cost-range::-webkit-slider-runnable-track { height: 2px; background: linear-gradient(to right, var(--ink) var(--p), var(--line-strong) var(--p)); }
.cost-range::-moz-range-track { height: 2px; background: var(--line-strong); }
.cost-range::-moz-range-progress { height: 2px; background: var(--ink); }
.cost-range::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -10px; background: var(--accent); border: 0; border-radius: 50%; }
.cost-range::-moz-range-thumb { width: 22px; height: 22px; background: var(--accent); border: 0; border-radius: 50%; }
.cost-range:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

.cost-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; padding-block: 36px; }
.cost-bars { display: flex; flex-direction: column; gap: 32px; min-width: 0; }
.cost-row__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 20px; }
.cost-row__name { font: 600 var(--fs-lg)/1.25 var(--f-head); }
.cost-pkg { font-weight: 400; color: var(--muted); }
.cost-row__val { font-size: var(--fs-base); color: var(--ink); }
.cost-row__val .num { font-weight: 600; }
.cost-bar { height: 18px; margin-top: 12px; background: var(--bg-alt); }
.cost-bar__fill { display: block; height: 100%; transition: width .5s var(--ease); }
.cost-bar__fill--admin { background: var(--line-strong); }
.cost-bar__fill--ix { background: var(--ink); }
.cost-row__sub { margin-top: 10px; font-size: var(--fs-sm); color: var(--muted); }

.cost-result { padding-left: clamp(0px, 3vw, 40px); border-left: 1px solid var(--line); }
.cost-result__lbl { font-size: var(--fs-sm); color: var(--muted); }
.cost-result__num { margin-top: 8px; font: 600 clamp(2.4rem, 1.6rem + 2.6vw, 3.75rem)/1 var(--f-head); letter-spacing: -0.03em; font-variant-numeric: proportional-nums; color: var(--accent); overflow-wrap: anywhere; }
.cost-result__num small { font: 400 var(--fs-base)/1 var(--f-body); letter-spacing: 0; color: var(--muted); }
.cost-result__eur { margin-top: 10px; font-size: var(--fs-sm); color: var(--muted); }

.cost-hourly { max-width: 70ch; padding-top: 28px; border-top: 1px solid var(--line); color: var(--muted); }
.cost-hourly .num { color: var(--ink); font-weight: 500; }

.cost-how { margin-top: 24px; font-size: var(--fs-sm); color: var(--muted); }
.cost-how summary { cursor: pointer; color: var(--ink); font-weight: 500; }
.cost-how ul { margin: 14px 0 0; padding-left: 1.1em; max-width: 70ch; display: flex; flex-direction: column; gap: 8px; }

@media (max-width: 860px) {
  .cost-grid { grid-template-columns: 1fr; }
  .cost-result { padding: 24px 0 0; border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 520px) {
  .cost-ctl { grid-template-columns: 1fr auto; }
  .cost-ctl__slider { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) { .cost-bar__fill { transition: none; } }
