/* The usage slider (usage.js): the same control in the calculator, every service page's price block and the plans page.
   Every state is surface + ink + children: rest, hover, focus-visible, active (dragging), and a size mark that is near. */
.use { --hue-ink: var(--blue-ink); display: grid; gap: 6px; width: 100%; min-width: 0; color: var(--ink); text-align: left; }
.use__q { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; font-size: .9375rem; font-weight: 500; line-height: 1.35; color: var(--ink); }
.use__val { font: 500 .9375rem/1.2 var(--mono); color: var(--ink); background: color-mix(in srgb, var(--hue, var(--blue)) 14%, var(--white)); padding: 4px 8px; border-radius: 6px; font-variant-numeric: tabular-nums lining-nums; white-space: normal; overflow-wrap: anywhere; max-width: 100%; }   /* layout pass 11/20: nowrap ran "400 prospects contacted a month" out of the card on phones */
.use input[type="range"].use__range { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 44px; margin: 0; background: transparent; cursor: pointer; touch-action: pan-y; --p: 0%; }
.use input[type="range"].use__range::-webkit-slider-runnable-track { height: 8px; border-radius: 4px; background: linear-gradient(90deg, var(--ink) var(--p), var(--paper-2, #e9e4da) var(--p)); box-shadow: inset 0 0 0 1px rgba(11, 27, 51, .28); }
.use input[type="range"].use__range::-moz-range-track { height: 8px; border-radius: 4px; background: linear-gradient(90deg, var(--ink) var(--p), var(--paper-2, #e9e4da) var(--p)); box-shadow: inset 0 0 0 1px rgba(11, 27, 51, .28); }
.use input[type="range"].use__range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 28px; height: 28px; margin-top: -10px; border: 0; border-radius: 50%; background: var(--white); box-shadow: inset 0 0 0 7px var(--ink), 0 4px 12px -3px rgba(11, 27, 51, .45); transition: scale var(--t-hover, 160ms) ease-out; }
.use input[type="range"].use__range::-moz-range-thumb { width: 28px; height: 28px; border: 0; border-radius: 50%; background: var(--white); box-shadow: inset 0 0 0 7px var(--ink), 0 4px 12px -3px rgba(11, 27, 51, .45); }
@media (hover: hover) and (pointer: fine) { .use input[type="range"].use__range:hover::-webkit-slider-thumb { scale: 1.1; } .use input[type="range"].use__range:hover::-moz-range-thumb { scale: 1.1; } }
.use input[type="range"].use__range:active::-webkit-slider-thumb { scale: 1.16; box-shadow: inset 0 0 0 9px var(--ink), 0 6px 16px -3px rgba(11, 27, 51, .5); }
.use input[type="range"].use__range:focus { outline: none; }
.use input[type="range"].use__range:focus-visible { outline: 2px solid var(--blue-ink, #1f4fd1); outline-offset: 2px; border-radius: 8px; }
/* the old sizes, as ticks under the track (decoration; the range itself takes every input). Only the size nearest the
   thumb shows its name, so names never collide however close the sizes sit. */
.use__marks { position: relative; height: 42px; margin: -8px 14px 0; }   /* tick + the near size's name, clear of the line below */
.use__mark { position: absolute; left: var(--x); top: 0; translate: -50% 0; display: inline-flex; flex-direction: column; align-items: center; gap: 3px; min-width: 24px; min-height: 30px; padding: 0 2px; border: 0; border-radius: 6px; background: transparent; color: var(--ink-2, #3d4b63); font: 400 .75rem/1.1 var(--sans, inherit); white-space: nowrap; pointer-events: none; }
.use__mark::before { content: ""; width: 2px; height: 7px; background: currentColor; flex: none; }
.use__mark span { display: none; position: absolute; top: 12px; left: var(--tick, 50%); translate: calc(-1 * var(--x, 50%)) 0; padding: 3px 8px; border-radius: 999px; background: var(--ink); color: var(--paper, #fff); font-weight: 500; }
/* layout pass 11/20: a centred name ran past the card when its tick sat near an end ("Invoices, forms and contracts" 51px out).
   The name is anchored at the same fraction of its own width as the tick is along the track (x = 0 → starts at the tick,
   x = 100% → ends at it), so it always stays between the track's ends. */
.use__mark[data-near] { z-index: 1; color: var(--ink); }
.use__mark[data-near] span { display: block; }
.use__mark:first-child { --tick: 1px; } .use__mark:last-child { --tick: calc(100% - 1px); }
.use__mark:first-child { translate: -1px 0; align-items: flex-start; } .use__mark:last-child { translate: calc(-100% + 1px) 0; align-items: flex-end; }
.use__price { font: 500 1.0625rem/1.3 var(--sans, inherit); color: var(--ink); font-variant-numeric: tabular-nums lining-nums; margin: 2px 0 0; }
.use__roi { display: flex; gap: 8px; align-items: baseline; margin: 0; font-size: .875rem; line-height: 1.45; color: var(--ink); }
.use__roi::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 2px; background: var(--green-ink, #1d6b3f); translate: 0 -1px; }
.use__fine { font-size: .8125rem; line-height: 1.45; color: var(--ink-2, #3d4b63); margin: 0; }
.use--compact .use__q { font-size: .875rem; }
.use--compact .use__price { font-size: .9375rem; }
/* a mount on a page: the slider card and the link to the calculator */
.use-mount { display: grid; gap: 10px; min-width: 0; max-width: 100%; margin: 14px 0; padding: 14px 16px 12px; border-radius: 14px; background: var(--white); color: var(--ink); box-shadow: inset 0 0 0 1px rgba(11, 27, 51, .16); }
.use-mount [data-usage-fallback] { margin: 0; font-size: .9375rem; color: var(--ink); }
/* on the plans page each row carries its own slider under the name and price */
.pxm-row .use-mount { grid-column: 1 / -1; margin: 4px 0 0; }
@media (prefers-reduced-motion: reduce) { .use input[type="range"].use__range::-webkit-slider-thumb { transition: none; } }
/* "Try your own amount" (plans rows): a quiet line button that opens the row's slider in place */
.use-mount:has(> .use-try) { padding: 0; margin: 6px 0 0; background: transparent; box-shadow: none; }
.use-try { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--white); color: var(--ink); box-shadow: inset 0 0 0 1.5px rgba(11, 27, 51, .34); font: 500 .875rem/1.2 var(--sans, inherit); cursor: pointer; }
.use-try__ic { position: relative; width: 12px; height: 12px; flex: none; }
.use-try__ic::before, .use-try__ic::after { content: ""; position: absolute; left: 0; top: 5px; width: 12px; height: 2px; background: currentColor; transition: rotate var(--t-hover, 160ms) ease-out; }
.use-try__ic::after { rotate: 90deg; }
.use-try[aria-expanded="true"] .use-try__ic::after { rotate: 0deg; }
@media (hover: hover) and (pointer: fine) { .use-try:hover { background: var(--ink); color: var(--paper, #fff); box-shadow: none; } }
.use-try:focus-visible { outline: 2px solid var(--blue-ink, #1f4fd1); outline-offset: 2px; background: var(--white); color: var(--ink); }
.use-try[aria-expanded="true"] { background: var(--ink); color: var(--paper, #fff); box-shadow: none; }
@media (hover: hover) and (pointer: fine) { .use-try[aria-expanded="true"]:hover { background: var(--ink-2, #3d4b63); color: #ffffff; } }
.use-try[aria-expanded="true"]:focus-visible { background: var(--ink); color: var(--paper, #fff); }
.use-try__panel { margin-top: 10px; padding: 14px 16px 12px; border-radius: 14px; background: var(--white); color: var(--ink); box-shadow: inset 0 0 0 1px rgba(11, 27, 51, .16); }
@media (prefers-reduced-motion: reduce) { .use-try__ic::before, .use-try__ic::after { transition: none; } }
