/* Empower Funding · the cost calculator, on every page (4 Dec 2026, Zman: "a Cost Calculator shortcut in the header").
   1  the calculator itself: the five in-page calculators and the pop-up share these rules (moved here from pages.css,
      which the home page does not load)
   2  the fine-tuning: the amount is a clear box with R in front, the days get their own box beside the slider
   3  the header's Cost Calculator button (words where the bar has room, a round button where it does not)
   4  the pop-up (opens only when someone taps the header button or the menu's "Cost Calculator") */

/* ---------------- 1 the calculator ---------------- */
.calc { color: var(--ink); padding: clamp(24px, 3vw, 40px); box-shadow: 0 50px 100px -50px rgba(0, 0, 0, .8); }
.calc__head { margin-bottom: 22px; }
.calc__rate { margin-top: 10px; font-stretch: 62%; font-weight: 800; font-size: clamp(26px, 2.6vw, 38px); line-height: 1; text-transform: uppercase; }
.calc__nofees { display: block; margin-top: 6px; font-stretch: 100%; font-weight: 500; font-size: 14px; text-transform: none; color: var(--mute-l); }
.calc__who { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--paper); margin-bottom: 24px; }
.calc__who:empty { display: none; }
.calc__who button { padding: 9px 18px; border-radius: 999px; font-size: 14.5px; font-weight: 600; letter-spacing: .04em; color: var(--mute-l); transition: background-color .3s, color .3s; }
.calc__who button[aria-checked="true"] { background: var(--ink); color: #fff; }
.calc__field { margin-bottom: 22px; }
.calc__lab { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 8px; font-size: 14px; color: var(--mute-l); }
.calc__lab label { cursor: pointer; }
.calc__range { width: 100%; height: 26px; margin: 0; background: transparent; -webkit-appearance: none; appearance: none; cursor: pointer; }
.calc__range::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--red) var(--fill, 0%), rgba(14, 14, 12, .14) var(--fill, 0%)); }
.calc__range::-moz-range-track { height: 4px; border-radius: 4px; background: rgba(14, 14, 12, .14); }
.calc__range::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--red); }
.calc__range::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -10px; border-radius: 50%; background: #fff; border: 3px solid var(--red); box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .5); transition: transform .3s var(--ease); }
.calc__range::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 3px solid var(--red); }
.calc__range:hover::-webkit-slider-thumb, .calc__range:focus-visible::-webkit-slider-thumb { transform: scale(1.15); }
.calc__out { display: grid; grid-template-columns: 1fr 1.4fr; gap: 12px; margin-top: 8px; }
.calc__cell { padding: 18px 20px; border-radius: 14px; background: var(--paper); display: grid; gap: 6px; min-width: 0; }
.calc__cell strong { font-stretch: 62%; font-weight: 800; font-size: clamp(30px, 2.8vw, 42px); line-height: 1; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.calc__cell.is-long strong { font-size: clamp(24px, 2.1vw, 32px); }   /* a very large amount still fits its box */
.calc__cell small { font-size: 14px; color: var(--mute-l); }
.calc__cell--total { background: var(--red); color: #fff; }
.calc__cell--total .label, .calc__cell--total small { color: rgba(255, 255, 255, .8); }
.calc__cell--back { background: var(--ink); color: #fff; }
.calc__cell--back .label, .calc__cell--back small { color: rgba(255, 255, 255, .72); }
.calc__note { margin-top: 18px; font-size: 15px; line-height: 1.5; color: var(--mute-l); }
.calc__note a { font-weight: 600; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* ---------------- 2 the boxes you type in ---------------- */
.calc__hint { flex: none; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--mute-l); }
.calc__hint svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.calc__box {
  display: flex; align-items: center; gap: 8px;
  height: 62px; padding: 0 18px;
  border: 1.5px solid rgba(14, 14, 12, .24); border-radius: 14px;
  background: #fff; cursor: text;
  transition: border-color .25s, box-shadow .25s;
}
.calc__box:hover { border-color: rgba(14, 14, 12, .5); }
.calc__box:focus-within { border-color: var(--red); box-shadow: 0 0 0 4px rgba(202, 17, 29, .14); }
.calc__cur { flex: none; font-size: 28px; font-weight: 800; line-height: 1; color: var(--red); }
.calc__num {
  flex: 1; min-width: 0; width: 100%; height: 100%;
  padding: 0; margin: 0; border: 0; outline: none; background: transparent;
  font: inherit; font-size: 28px; font-weight: 700; line-height: 1; letter-spacing: .01em;
  font-variant-numeric: tabular-nums; color: var(--ink);
}
.calc__num:focus-visible { outline: none; }
.calc__unit { flex: none; font-size: 16px; font-weight: 600; color: var(--mute-l); }
.calc__box--amt + .calc__range { margin-top: 12px; }
.calc__days { display: flex; align-items: center; gap: 22px; }
.calc__box--days { flex: none; width: 148px; }
.calc__num--days { text-align: right; }
.calc__days .calc__range { flex: 1; min-width: 0; }

@media (max-width: 720px) {
  /* phone: one box per line, the label left and the amount right, so all four sit close under the sliders (20 Oct 2026) */
  .calc__out { grid-template-columns: 1fr; gap: 8px; }
  .calc__cell { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 14px; padding: 14px 18px; }
  .calc__cell strong { text-align: right; }
  .calc__cell small { grid-column: 1 / -1; text-align: right; }
  .calc__box { height: 58px; padding: 0 16px; }
  .calc__cur, .calc__num { font-size: 26px; }
  .calc__days { gap: 16px; }
  .calc__box--days { width: 128px; }
}

/* ---------------- 3 the header button ---------------- */
.hdr__calc {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; flex: none;
  height: 42px; padding: 0 16px 0 14px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .3); color: #fff;
  font-size: 15px; font-weight: 600; letter-spacing: .01em; white-space: nowrap;
  transition: background-color .3s, border-color .3s, color .3s;
}
.hdr__calc:hover, .hdr__calc[aria-expanded="true"] { background: #fff; border-color: #fff; color: var(--ink); }
.hdr__calc svg { width: 19px; height: 19px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.hdr__calc svg .k { fill: currentColor; stroke: none; }

/* the email shows as its icon at every width now, which is where the words fit (it was the full address at 1440 and up) */
.hdr__mail span { display: none; }
.hdr__mail { width: 42px; height: 42px; justify-content: center; border: 1px solid rgba(255, 255, 255, .22); border-radius: 50%; }

/* laptops: the three header buttons sit 12px apart (was 14) so the words fit at 1440 and up */
@media (min-width: 1221px) { .hdr__cta { gap: 12px; } }
/* laptops 1221-1439: the seven menu items fill the bar, so the calculator is a round button there (its name pops up on hover) */
@media (min-width: 1221px) and (max-width: 1439px) {
  .hdr__calc { width: 42px; padding: 0; }
  .hdr__calc .hdr__calc-t { position: absolute; left: 50%; top: calc(100% + 10px); translate: -50% 0; padding: 7px 12px; border-radius: 10px; background: #fff; color: var(--ink); font-size: 14px; box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .55); opacity: 0; visibility: hidden; transition: opacity .25s, visibility 0s .25s; pointer-events: none; }
  .hdr__calc:hover .hdr__calc-t, .hdr__calc:focus-visible .hdr__calc-t { opacity: 1; visibility: visible; transition: opacity .25s; }
}
/* 1221-1279: no room for the email's circle too; it stays one tap away in the "Talk To A Real Person!" bubble, the Contact pop-up and the footer */
@media (min-width: 1221px) and (max-width: 1279px) {
  .hdr__mail { display: none; }
}
/* small tablets: round as well, so the phone button keeps its number */
@media (max-width: 759px) {
  .hdr__calc { width: 42px; padding: 0; }
  .hdr__calc .hdr__calc-t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
/* phones: four round buttons beside the logo (share, calculator, call, menu); sizes step down so the logo keeps its size */
@media (max-width: 720px) {
  .hdr__in { gap: 12px; }
  .hdr__cta { gap: 6px; }
  .hdr__calc { width: 44px; height: 44px; }
  .hdr__calc svg { width: 20px; height: 20px; }
}
@media (max-width: 385px) {
  .soc__btn, .hdr__calc { width: 40px; height: 40px; }
  .hdr__tel { --bh: 40px; width: 40px; }
  .burger { width: 40px; height: 40px; }
  .burger span { left: 12px; right: 12px; }
  .burger span:nth-child(1) { top: 15px; }
  .burger span:nth-child(2) { top: 23px; }
  .burger[aria-expanded="true"] span:nth-child(1), .burger[aria-expanded="true"] span:nth-child(2) { top: 19px; }
  .hdr__calc svg, .soc__btn svg { width: 18px; height: 18px; }
}
@media (max-width: 369px) {
  .hdr__in.wrap { padding-inline: 16px; }
  .hdr__in { gap: 8px; }
}
@media (max-width: 357px) {
  .hdr__in.wrap { padding-inline: 14px; }
  .hdr__logo img, .hdr.is-scrolled .hdr__logo img { width: 112px; }
  .soc__btn, .hdr__calc { width: 38px; height: 38px; }
  .hdr__tel { --bh: 38px; width: 38px; }
  .burger { width: 38px; height: 38px; }
  .burger span { left: 11px; right: 11px; }
  .burger span:nth-child(1) { top: 14px; }
  .burger span:nth-child(2) { top: 22px; }
  .burger[aria-expanded="true"] span:nth-child(1), .burger[aria-expanded="true"] span:nth-child(2) { top: 18px; }
}

/* the phone menu's own "Cost Calculator" line, with the same sign */
.mnav__link .mnav__ic { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.mnav__link .mnav__ic .k { fill: currentColor; stroke: none; }

/* ---------------- 4 the pop-up ---------------- */
.cpop { position: fixed; inset: 0; z-index: 160; display: grid; place-items: center; padding: 20px; opacity: 0; transition: opacity .35s var(--ease); }
.cpop[hidden] { display: none; }
.cpop.is-open { opacity: 1; }
.cpop__back { position: absolute; inset: 0; background: rgba(14, 14, 12, .74); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.cpop__box {
  position: relative; width: min(1000px, 100%); max-height: calc(100svh - 40px); overflow: auto; overscroll-behavior: contain;
  padding: clamp(26px, 3vw, 44px); outline: none;
  box-shadow: 0 60px 120px -40px rgba(0, 0, 0, .7);
  transform: translateY(18px) scale(.985); transition: transform .55s var(--ease);
}
.cpop.is-open .cpop__box { transform: none; }
.cpop__x { position: absolute; right: 18px; top: 18px; z-index: 2; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-l); color: var(--ink); background: #fff; transition: background-color .3s, color .3s, border-color .3s; }
.cpop__x svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.cpop__x:hover { background: var(--red); color: #fff; border-color: var(--red); }
.calc--pop { padding: 0; box-shadow: none; }
.calc--pop .calc__head { margin-bottom: 24px; padding-right: 56px; }
.cpop__title { margin: 0; font-stretch: 62%; font-weight: 800; font-size: clamp(38px, 4vw, 50px); line-height: .95; text-transform: uppercase; }
.calc--pop .calc__rate { margin-top: 10px; font-stretch: 100%; font-weight: 600; font-size: 17px; line-height: 1.4; text-transform: none; }
.calc--pop .calc__nofees { display: inline; margin: 0; font-size: 17px; font-weight: 500; }
.calc--pop .calc__who { margin-bottom: 22px; }
.cpop__go { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; margin-top: 20px; }
.cpop__go .btn { width: 100%; padding: 0 18px; }
.btn--line { color: var(--ink); border: 1.5px solid var(--ink); }
.btn--line::after { background: linear-gradient(105deg, transparent 30%, rgba(14, 14, 12, .1) 50%, transparent 70%); }
.btn--line:hover { background: var(--ink); color: #fff; }
/* laptops: two columns, so the results and "Call me back" are on the first screen beside the boxes */
@media (min-width: 900px) {
  .cpop__cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 clamp(32px, 4vw, 52px); align-items: start; }
  .cpop__in .calc__field:last-child { margin-bottom: 0; }
  .calc--pop .calc__out { margin-top: 0; }
  .calc--pop .calc__cell { padding: 16px 18px; }
  .calc--pop .calc__cell strong { font-size: clamp(28px, 2.5vw, 36px); }
  .calc--pop .calc__cell.is-long strong { font-size: clamp(22px, 1.9vw, 27px); }
  .calc--pop .calc__note { margin-top: 16px; font-size: 14.5px; }
}
/* phones: a sheet from the bottom, everything a step tighter, the four results two by two, and "Call me back" pinned at the bottom */
@media (max-width: 720px) {
  .cpop { padding: 8px; align-items: end; }
  .cpop__box { max-height: calc(100svh - 16px); padding: 22px 18px 0; border-radius: 22px; }
  .cpop__x { right: 12px; top: 12px; }
  .cpop__title { font-size: 34px; }
  .calc--pop .calc__head { margin-bottom: 16px; padding-right: 52px; }
  .calc--pop .calc__rate, .calc--pop .calc__nofees { font-size: 15px; }
  .calc--pop .calc__who { margin-bottom: 14px; }
  .calc--pop .calc__who button { padding: 8px 18px; }
  .calc--pop .calc__field { margin-bottom: 14px; }
  .calc--pop .calc__lab { margin-bottom: 6px; }
  .calc--pop .calc__box { height: 54px; }
  .calc--pop .calc__box--amt + .calc__range { margin-top: 8px; }
  .calc--pop .calc__out { grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 4px; }
  .calc--pop .calc__cell { display: grid; grid-template-columns: 1fr; align-content: start; gap: 5px; padding: 12px 14px; border-radius: 12px; }
  .calc--pop .calc__cell .label { font-size: 11px; letter-spacing: .14em; }
  .calc--pop .calc__cell strong { font-size: 25px; text-align: left; }
  .calc--pop .calc__cell.is-long strong { font-size: 20px; }
  .calc--pop .calc__cell small { grid-column: auto; text-align: left; font-size: 12.5px; line-height: 1.35; }
  .calc--pop .calc__note { margin-top: 12px; font-size: 14px; }
  .cpop__res { display: contents; }   /* so the pinned bar below can rise over the whole calculator, not only the results (a 320x568 phone) */
  .cpop__go { position: sticky; bottom: 0; z-index: 1; grid-template-columns: minmax(0, 1fr) 54px; gap: 10px; margin: 12px -18px 0; padding: 12px 18px max(16px, env(safe-area-inset-bottom)); background: #fff; box-shadow: 0 -14px 24px -18px rgba(14, 14, 12, .35); }
  .cpop__go .btn { --bh: 54px; }
  .cpop__tel { width: 54px; padding: 0; }
  .cpop__tel span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) {
  .cpop, .cpop__box { transition: none; }
  .cpop__box { transform: none; }
}
