.cost-calculator { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 12px 16px; border: 1px solid var(--border); border-radius: 18px; padding: clamp(14px, 2.2svh, 24px) clamp(16px, 2vw, 28px); background: var(--panel); }
.pricing-intro { display: flex; align-items: center; gap: 9px; }
.pricing-intro .icon { color: var(--accent); width: 21px; height: 21px; }
.pricing-intro h2 { font-size: clamp(1.25rem, 2vw, 1.75rem); line-height: 1.1; letter-spacing: -.045em; font-weight: 650; }
.calc-action { grid-area: 1 / 2; }
.plan-link { display: inline-flex; padding-block: 4px; color: var(--accent); font-size: .875rem; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.calc-body { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0,1.48fr) minmax(0,1fr); gap: clamp(20px, 3.5vw, 48px); align-items: center; }
.calc-controls { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: clamp(16px, 2.6vw, 40px); }
.calc-control { min-width: 0; }
.calc-heading, .calc-total { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 2px 6px; }
.calc-heading label { color: var(--muted); font-size: .875rem; }
.calc-heading output { font-size: 1rem; font-weight: 650; }
.calc-range { --fill: 33.333%; --track: linear-gradient(to right, var(--accent) var(--fill), #50415e var(--fill)); display: block; width: 100%; height: 35px; margin: 0; padding: 0; appearance: none; -webkit-appearance: none; background: transparent; cursor: pointer; touch-action: pan-y; }
.calc-range::-webkit-slider-runnable-track { height: 5px; border-radius: 5px; background: var(--track); }
.calc-range::-moz-range-track { height: 5px; border-radius: 5px; background: var(--track); }
.calc-range::-webkit-slider-thumb { appearance: none; -webkit-appearance: none; width: 19px; height: 19px; margin-top: -7px; border: 3px solid var(--accent); border-radius: 50%; background: #342345; }
.calc-range::-moz-range-thumb { width: 13px; height: 13px; border: 3px solid var(--accent); border-radius: 50%; background: #342345; }
.calc-range:focus-visible { outline-offset: 0; border-radius: 5px; }
.calc-ticks { display: flex; justify-content: space-between; padding-inline: 3px; font-size: .8125rem; color: var(--faint); }
.calc-ticks .is-selected { color: var(--accent); font-weight: 700; }
.price-panel { padding: 10px 16px; border-inline-start: 2px solid #59446d; background: #241c32; border-radius: 2px 10px 10px 2px; }
.calc-result { display: flex; align-items: center; justify-content: space-between; gap: 7px; }
.calc-price-label, .calc-total { color: var(--muted); font-size: .875rem; }
.calc-price { display: inline-flex; align-items: baseline; gap: 5px; color: var(--accent); font-size: 1.25rem; font-weight: 650; line-height: 1.1; }
.calc-price output { font-size: clamp(1.85rem, 3vw, 2.65rem); letter-spacing: -.06em; font-variant-numeric: tabular-nums; }
.calc-saving { display: grid; justify-items: end; gap: 1px; font-size: .875rem; color: var(--accent); }
.calc-saving span, .calc-baseline { color: var(--faint); font-size: .75rem; line-height: 1.3; }
.calc-baseline { margin-top: 2px; }
.is-base .calc-baseline s { text-decoration: none; }
.calc-total { border-top: 1px solid var(--border); padding-top: 5px; margin-top: 5px; }
.calc-total strong { color: var(--text); font-size: .9375rem; }
@media (min-width: 661px) and (max-width: 960px) {
  .calc-body { grid-template-columns: minmax(0,1.2fr) minmax(0,1fr); }
  .calc-heading { display: grid; }
}
@media (max-width: 660px) {
  .cost-calculator { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 14px; border-radius: 14px; }
  .pricing-intro h2 { font-size: 1.2rem; }
  .pricing-intro .icon { width: 17px; height: 17px; }
  .calc-body { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .calc-controls { gap: 18px; }
  .calc-heading { display: grid; }
  .calc-heading label { font-size: .8125rem; }
  .calc-heading output { font-size: .9375rem; }
  .calc-range { height: 32px; }
  .price-panel { padding: 7px 10px; }
  .calc-result > div:first-child { display: flex; align-items: baseline; gap: 7px; flex-wrap: wrap; }
  .calc-price-label { font-size: .8125rem; }
  .calc-price output { font-size: 1.55rem; }
  .calc-saving { font-size: .8125rem; }
  .calc-baseline { font-size: .75rem; }
  .calc-action { display: none; }
}
@media (max-width: 660px) and (max-height: 680px) {
  .cost-calculator { padding: 9px 11px; gap: 7px; }
  .calc-body { gap: 6px; }
  .calc-range { height: 27px; }
  .calc-total { padding-top: 3px; margin-top: 3px; }
}

@media (min-width: 560px) and (max-height: 500px) {
  .cost-calculator { grid-template-columns: 1fr; padding: 11px 13px; gap: 9px; }
  .pricing-intro h2 { font-size: 1.125rem; }
  .pricing-intro .icon { width: 17px; height: 17px; }
  .calc-body { grid-template-columns: minmax(0,1fr); gap: 7px; }
  .calc-controls { gap: 12px; }
  .calc-heading { display: grid; }
  .calc-heading label { font-size: .8125rem; }
  .calc-heading output { font-size: .9375rem; }
  .calc-range { height: 27px; }
  .price-panel { padding: 6px 9px; }
  .calc-price output { font-size: 1.5rem; }
  .calc-action { display: none; }
}
@media (max-width: 360px) and (max-height: 605px) {
  /* The visible outputs already spell out the quantity and unit. Keep the input labels accessible. */
  .calc-heading label { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
  .calc-controls { gap: 14px; }
  .calc-result > div:first-child { display: block; }
  .calc-price { font-size: 1rem; }
  .calc-price-label, .calc-price { line-height: 1.1; }
}
