/* Homepage revenue uplift calculator (src/components/home/Calculator.astro). Same grey frame and #0b0b0b panels as the
   proof section; flat, solid colours only. Monochrome like the rest of the homepage (no accent colour). The slider fill is a solid bar behind a transparent native range input. */
.uc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; margin: -8px -8px 0; padding: 8px; background: var(--hc, #171717); }
.uc-p { display: flex; flex-direction: column; gap: 24px; padding: 24px 32px; border-radius: 6px; background: #0b0b0b; }
.uc-hd { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; }
.uc-t { margin: 0; font-family: var(--display); font-weight: 500; font-size: 24px; line-height: 32px; letter-spacing: -0.01em; color: var(--text); }

.uc-cur { display: flex; gap: 4px; padding: 4px; border-radius: 10px; background: var(--raised); }
.uc-c { width: 40px; height: 32px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); font: 500 15px/1 var(--sans); cursor: pointer; }
.uc-c[aria-pressed="true"] { background: var(--active); color: var(--text); }
.uc-c:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }

.uc-f { display: grid; gap: 8px; }
.uc-r { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.uc-l { font-size: 16px; line-height: 24px; color: var(--text-2); text-wrap: balance; }
.uc-v { flex: none; width: 11ch; min-width: 3ch; padding: 0; border: 0; border-bottom: 1px solid transparent; background: transparent; text-align: right;
  font-family: var(--display); font-weight: 500; font-size: 24px; line-height: 32px; letter-spacing: -0.01em; color: var(--text); font-variant-numeric: tabular-nums; }
.uc-v:hover { border-bottom-color: var(--line-4); }
.uc-v:focus { outline: 0; border-bottom-color: var(--text); }

.uc-sl { position: relative; height: 24px; --p: 0; }
.uc-sl::before { content: ""; position: absolute; left: 0; right: 0; top: 10px; height: 4px; border-radius: 2px; background: var(--line-4); }
.uc-fl { position: absolute; left: 0; top: 10px; height: 4px; width: calc(10px + (100% - 20px) * var(--p)); border-radius: 2px; background: var(--text); }
.uc-s { position: absolute; inset: 0; width: 100%; height: 24px; margin: 0; background: transparent; -webkit-appearance: none; appearance: none; cursor: pointer; }
.uc-s::-webkit-slider-runnable-track { height: 24px; background: transparent; }
.uc-s::-moz-range-track { height: 24px; background: transparent; }
.uc-s::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; margin-top: 2px; border-radius: 50%; border: 0; background: var(--text); }
.uc-s::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; border: 0; background: var(--text); }
.uc-s:focus-visible { outline: 0; }
.uc-s:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px rgba(236, 236, 236, .25); }
.uc-s:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 4px rgba(236, 236, 236, .25); }

.uc-hint { margin: 0; font-size: 14px; line-height: 20px; color: var(--muted); }
.uc-hint output { color: var(--text); font-variant-numeric: tabular-nums; }
.uc-hint a { color: var(--text-2); text-decoration: underline; text-decoration-color: var(--line-4); text-underline-offset: 3px; }
.uc-hint a:hover { color: var(--text); text-decoration-color: var(--text); }

.uc-tot { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 0; padding-top: 16px; border-top: 1px solid var(--line); font-size: 16px; line-height: 24px; color: var(--text-2); }
.uc-tot output { font-family: var(--display); font-weight: 500; font-size: 24px; line-height: 32px; letter-spacing: -0.01em; color: var(--text); font-variant-numeric: tabular-nums; }

.uc-res { display: flex; flex-direction: column; align-items: center; justify-content: center; flex: 1; padding: 24px; border-radius: 6px; background: var(--hc, #171717); color: var(--text); text-align: center; }
.uc-rk { margin: 0 0 8px; font-family: var(--display); font-weight: 500; font-size: 24px; line-height: 32px; letter-spacing: -0.01em; color: var(--muted); }
.uc-n { display: flex; align-items: baseline; justify-content: center; flex-wrap: wrap; gap: 0 12px; margin: 0; }
.uc-n output { font-family: var(--display); font-weight: 600; font-size: 48px; line-height: 56px; letter-spacing: -0.03em; color: var(--text); font-variant-numeric: tabular-nums; }
.uc-n span { font-family: var(--display); font-weight: 500; font-size: 24px; line-height: 32px; color: var(--muted); }
.uc-dv { width: 100%; height: 0; margin: 16px 0; border: 0; border-top: 2px dotted var(--line-4); }
.uc-note { margin: 16px 0 0; max-width: 30em; font-size: 16px; line-height: 24px; font-weight: 400; color: var(--muted); text-wrap: balance; }
.uc-ft { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.uc-dis { margin: 0; font-size: 14px; line-height: 20px; color: var(--muted); }
/* the same light pill as the hero's Book a call (Ajay's review, 28 Oct 2026: one Book a call style everywhere) */
.uc-cta { display: inline-flex; align-items: center; gap: 12px; height: var(--cta-h, 56px); padding: 0 24px; border-radius: 999px; border: 0; background: #f5f5f3;
  font-size: 16px; line-height: 24px; font-weight: 500; color: #0b0b0b; text-decoration: none; transition: background-color 200ms ease; }
.uc-cta:hover, .uc-cta:focus-visible { background: #fff; }
.uc-cta:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
.uc-cta svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

@media (max-width: 1199.98px) { .uc-n output { font-size: 40px; line-height: 48px; } }
@media (max-width: 900px) {
  .uc { grid-template-columns: minmax(0, 1fr); margin-left: calc(var(--gutter, 24px) * -1); margin-right: calc(var(--gutter, 24px) * -1); }
  .uc-p { gap: 24px; padding: 24px; }
  .uc-res { padding: 32px 16px; }
  .uc-rk, .uc-n span { font-size: 20px; line-height: 28px; }
  .uc-note { font-size: 16px; line-height: 24px; }
  .uc-t { font-size: 20px; line-height: 28px; }
  .uc-v, .uc-tot output { font-size: 20px; line-height: 28px; }
  .uc-n { flex-direction: column; align-items: center; }
  .uc-n output { font-size: 44px; line-height: 52px; }
  .uc-cta { width: 100%; justify-content: center; }
}
/* short laptop screens: tighter so the whole section still fits one screen */
@media (min-width: 901px) and (max-height: 860px) {
  .uc-p { gap: 16px; }
  .uc-res { padding: 16px 24px; }
  .uc-n output { font-size: 40px; line-height: 48px; }
  .uc-dv { margin: 8px 0; }
  .uc-note { margin-top: 8px; }
}
/* the grey frame runs into the next section's top line, no dark strip between them (Ajay, 28 Oct 2026) */
main.wrap > #calculator { padding-bottom: 0; }
