/* Calculator styles */
.calc {
  display: grid; grid-template-columns: 1fr 0.92fr; gap: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px;
  overflow: hidden; box-shadow: 0 1px 2px rgba(22,24,29,0.04), 0 24px 48px -24px rgba(22,24,29,0.14);
}
.calc-inputs { padding: 36px 40px 40px; display: flex; flex-direction: column; gap: 28px; }
.calc-output {
  background: #14171f; color: #f2f3f6; padding: 36px 40px 40px;
  display: flex; flex-direction: column; gap: 24px;
}

.calc-field { display: flex; flex-direction: column; gap: 10px; }
.calc-label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.calc-label { font-family: var(--font-head); font-weight: 600; font-size: 15.5px; }
.calc-hint { font-size: 13px; color: var(--ink-3); }
.calc-value {
  font-family: var(--font-mono); font-size: 15px; font-weight: 500; color: var(--accent-ink);
  background: var(--accent-soft); padding: 3px 10px; border-radius: 6px;
  font-variant-numeric: tabular-nums;
}

/* Segmented control */
.seg { display: flex; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 3px; gap: 3px; }
.seg button {
  flex: 1; border: none; background: transparent; padding: 9px 14px; border-radius: 8px;
  font-family: var(--font-head); font-weight: 600; font-size: 14.5px; color: var(--ink-2);
  cursor: pointer; transition: all 0.15s;
}
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(22,24,29,0.12); }
.seg button:hover:not(.on) { color: var(--ink); }
.seg-sub { font-size: 13px; color: var(--ink-3); margin-top: 2px; display: block; font-weight: 400; }

/* Range slider */
.calc input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 5px; border-radius: 3px;
  background: linear-gradient(to right, var(--accent) 0%, var(--accent) var(--fill, 50%), var(--line) var(--fill, 50%), var(--line) 100%);
  outline: none; cursor: pointer;
}
.calc input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 22px; height: 22px; border-radius: 50%;
  background: var(--surface); border: 2.5px solid var(--accent);
  box-shadow: 0 1px 4px rgba(22,24,29,0.2); cursor: grab;
}
.calc input[type="range"]::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--surface); border: 2.5px solid var(--accent);
  box-shadow: 0 1px 4px rgba(22,24,29,0.2); cursor: grab;
}

/* Output panel */
.out-eyebrow {
  font-family: var(--font-mono); font-size: 12px; text-transform: uppercase;
  letter-spacing: 0.14em; color: #8b93a7;
}
.out-price { font-family: var(--font-head); font-size: 54px; font-weight: 700; letter-spacing: -0.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.out-price small { font-size: 20px; font-weight: 500; color: #8b93a7; letter-spacing: 0; }
.out-range { font-family: var(--font-mono); font-size: 13.5px; color: #8b93a7; margin-top: 8px; }
.out-alt {
  font-size: 14px; color: #aeb5c6; padding: 10px 14px; border: 1px solid #2a2f3d;
  border-radius: 10px; background: #1a1e29;
}
.out-alt b { color: #f2f3f6; font-variant-numeric: tabular-nums; }

.out-divider { border: none; border-top: 1px solid #2a2f3d; }

.out-compare { display: flex; flex-direction: column; gap: 14px; }
.out-bar-row { display: flex; flex-direction: column; gap: 6px; }
.out-bar-label { display: flex; justify-content: space-between; font-size: 13.5px; color: #aeb5c6; }
.out-bar-label b { color: #f2f3f6; font-family: var(--font-mono); font-weight: 500; font-variant-numeric: tabular-nums; }
.out-bar-track { height: 14px; border-radius: 4px; background: #1a1e29; overflow: hidden; display: flex; }
.out-bar-fill { height: 100%; border-radius: 4px; transition: width 0.35s ease; }
.out-bar-seg { height: 100%; transition: width 0.35s ease; }

.out-savings {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: rgba(74, 222, 145, 0.08); border: 1px solid rgba(74, 222, 145, 0.25);
  border-radius: 12px; padding: 14px 18px;
}
.out-savings-label { font-size: 14px; color: #9fdcba; }
.out-savings-num { font-family: var(--font-head); font-size: 24px; font-weight: 700; color: #4ade91; font-variant-numeric: tabular-nums; }

.out-legend { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 12.5px; color: #8b93a7; }
.out-legend span { display: inline-flex; align-items: center; gap: 6px; }
.out-dot { width: 9px; height: 9px; border-radius: 3px; display: inline-block; }

.out-cta { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.out-cta .btn { width: 100%; }
.out-cta .btn-ghost { color: #f2f3f6; border-color: #2a2f3d; }
.out-cta .btn-ghost:hover { background: #1a1e29; border-color: #3a4152; }
.out-foot { font-size: 12.5px; color: #6b7286; line-height: 1.5; }

@media (max-width: 900px) {
  .calc { grid-template-columns: 1fr; }
  .out-price { font-size: 44px; }
}
