/* ==========================================================
   calculator.css · "What slow replies cost you", beside the price
   Sliders on a white card, the answer on a night panel.
   Uses the brand roles from almers.css; mc- prefix keeps it apart.
   ========================================================== */

.mc { background: var(--bg); color: var(--ink); position: relative; z-index: 2; scroll-margin-top: 40px; --mc-track: var(--dawn); --mc-deep: #2E3258; }
.mc .head { max-width: 40rem; margin-bottom: var(--space-6); }
.mc-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: stretch; }
@media (min-width: 900px) { .mc-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); } }

/* sliders */
.mc-inputs { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px 24px; display: grid; gap: 28px; align-content: start; margin: 0; }
.mc-field { display: grid; gap: 10px; min-width: 0; }
.mc-top { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.mc-top label { font-weight: 600; font-size: 16px; line-height: 22px; }
.mc-top output { font-family: var(--font-display); font-weight: 700; font-size: 26px; line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mc-hint { margin: 0; font-size: 14px; line-height: 21px; color: var(--ink-muted); }
.mc input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 28px; margin: 0; background: transparent; cursor: pointer; --fill: 50%;
}
.mc input[type="range"]::-webkit-slider-runnable-track { height: 8px; border-radius: 999px; background: linear-gradient(to right, var(--ink) 0 var(--fill), var(--mc-track) var(--fill) 100%); }
.mc input[type="range"]::-moz-range-track { height: 8px; border-radius: 999px; background: var(--mc-track); }
.mc input[type="range"]::-moz-range-progress { height: 8px; border-radius: 999px; background: var(--ink); }
.mc input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -9px; border-radius: 50%; background: var(--surface); border: 2px solid var(--ink); box-shadow: 0 1px 4px rgba(31,34,64,0.25); }
.mc input[type="range"]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--surface); border: 2px solid var(--ink); }
.mc input[type="range"]:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; border-radius: var(--radius-sm); }
.mc-examples { margin: 0; padding-top: 12px; border-top: 1px solid var(--line); font-size: 14px; line-height: 21px; color: var(--ink-muted); display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; }
.mc-reset { font: inherit; font-weight: 600; color: var(--ink); background: none; border: 1px solid var(--field-border); border-radius: var(--radius-md); min-height: 44px; padding: 0 14px; cursor: pointer; }

/* the answer */
.mc-result { background: var(--band); color: var(--on-band); border-radius: var(--radius-lg); box-shadow: var(--shadow-lift); padding: 32px 28px; display: flex; flex-direction: column; gap: 28px; min-width: 0; --focus: var(--lamp); }
.mc-result .mc-verdict { margin-top: auto; padding-top: 24px; border-top: 1px solid var(--mc-deep); }
.mc-label { margin: 0; font-size: 13px; line-height: 16px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-band-muted); }
.mc-big { display: grid; gap: 10px; }
.mc-num { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(52px, 9vw, 88px); line-height: 0.95; letter-spacing: -0.045em; font-variant-numeric: tabular-nums; }
.mc-compare { display: grid; gap: 14px; }
.mc-row { display: grid; gap: 6px; }
.mc-row-top { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; line-height: 20px; }
.mc-row-top b { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mc-bar { height: 14px; border-radius: 999px; background: var(--mc-deep); overflow: hidden; }
.mc-bar i { display: block; height: 100%; width: 0; border-radius: 999px; transition: width 220ms ease-out; }
.mc-bar.loss i { background: var(--on-band); }
.mc-bar.cost i { background: var(--lamp); }
.mc-verdict { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: clamp(22px, 2.6vw, 28px); line-height: 1.3; letter-spacing: -0.02em; text-wrap: balance; }
.mc-cta { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; }
.mc-cta p { margin: 0; font-size: 15px; color: var(--on-band-muted); }
.mc-cta strong { color: var(--on-band); font-weight: 600; user-select: all; }
.mc-note { margin: var(--space-5) 0 0; max-width: 46rem; font-size: 15px; line-height: 23px; color: var(--ink-muted); }

@media (prefers-reduced-motion: reduce) { .mc-bar i { transition: none; } }
@media (max-width: 520px) { .mc-inputs, .mc-result { padding: 24px 18px; } }
html:not(.js) .mc { display: none; }
