/* ==========================================================================
   Hexmodal Savings Calculator — module.css
   Liquid Glass savings estimate for emergency lights & exit signs. Scoped
   under .hxs so it can sit next to any other Hexmodal module. One slider on top,
   savings below. Shares the
   brand tokens, backgrounds, glass, buttons and motion of the Quote Spotlight,
   ABM Highlights and Glass Form modules.
   Optional color fields arrive as --hxs-* variables on the section.
   ========================================================================== */
.hxs {
  --hxs-hex-blue: #335AF0;
  --hxs-dark-blue: #25325F;
  --hxs-light-blue: #BAC7FB;
  --hxs-white: #FFFFFF;

  --hxs-max: 1200px;
  --hxs-gutter: clamp(16px, 4vw, 48px);
  --hxs-pad-y: clamp(48px, 6.5vw, 104px);
  --hxs-gap: clamp(16px, 2vw, 28px);
  --hxs-radius: 30px;
  --hxs-radius-surface: 32px;
  --hxs-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --hxs-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  --hxs-ink: #25325F;
  --hxs-ink-2: rgba(37, 50, 95, 0.74);
  --hxs-ink-3: rgba(37, 50, 95, 0.56);
  --hxs-accent: #335AF0;
  --hxs-accent-soft: rgba(51, 90, 240, 0.12);
  --hxs-focus-ring: rgba(51, 90, 240, 0.22);
  --hxs-icon-bg: rgba(51, 90, 240, 0.1);
  --hxs-rim: rgba(51, 90, 240, 0.16);
  --hxs-edge: rgba(255, 255, 255, 0.95);
  --hxs-sheen-a: rgba(255, 255, 255, 0.66);
  --hxs-sheen-b: rgba(255, 255, 255, 0.24);
  --hxs-light: rgba(255, 255, 255, 0.6);
  --hxs-divider: rgba(37, 50, 95, 0.12);
  --hxs-track: rgba(37, 50, 95, 0.12);
  --hxs-shadow: 0 1px 2px rgba(37, 50, 95, 0.06), 0 28px 60px -30px rgba(37, 50, 95, 0.42);
  --hxs-shadow-hover: 0 2px 6px rgba(37, 50, 95, 0.08), 0 44px 90px -32px rgba(37, 50, 95, 0.55);
  --hxs-orb-a: rgba(51, 90, 240, 0.24);
  --hxs-orb-b: rgba(186, 199, 251, 0.8);
  --hxs-orb-c: rgba(51, 90, 240, 0.14);
  --hxs-btn-bg: linear-gradient(180deg, #4C70FF 0%, #335AF0 52%, #2A4DDA 100%);
  --hxs-btn-ink: #FFFFFF;
  --hxs-btn-shadow: 0 12px 26px -12px rgba(51, 90, 240, 0.75);

  position: relative;
  font-family: var(--hxs-font, inherit);
  color: var(--hxs-ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
@supports (color: color-mix(in srgb, red, blue)) {
  .hxs {
    --hxs-accent-soft: color-mix(in srgb, var(--hxs-accent) 14%, transparent);
    --hxs-focus-ring: color-mix(in srgb, var(--hxs-accent) 24%, transparent);
  }
}
.hxs *, .hxs *::before, .hxs *::after { box-sizing: border-box; }

.hxs--dark {
  --hxs-ink: #FFFFFF;
  --hxs-ink-2: rgba(255, 255, 255, 0.8);
  --hxs-ink-3: rgba(255, 255, 255, 0.62);
  --hxs-accent: #BAC7FB;
  --hxs-icon-bg: rgba(186, 199, 251, 0.16);
  --hxs-rim: rgba(255, 255, 255, 0.18);
  --hxs-edge: rgba(255, 255, 255, 0.4);
  --hxs-sheen-a: rgba(255, 255, 255, 0.16);
  --hxs-sheen-b: rgba(255, 255, 255, 0.05);
  --hxs-light: rgba(255, 255, 255, 0.18);
  --hxs-divider: rgba(255, 255, 255, 0.16);
  --hxs-track: rgba(255, 255, 255, 0.2);
  --hxs-shadow: 0 1px 2px rgba(0, 0, 0, 0.2), 0 28px 60px -26px rgba(0, 0, 0, 0.55);
  --hxs-shadow-hover: 0 2px 6px rgba(0, 0, 0, 0.24), 0 44px 90px -28px rgba(0, 0, 0, 0.7);
  --hxs-orb-a: rgba(51, 90, 240, 0.62);
  --hxs-orb-b: rgba(186, 199, 251, 0.28);
  --hxs-orb-c: rgba(51, 90, 240, 0.42);
  --hxs-btn-bg: linear-gradient(180deg, #FFFFFF 0%, #EEF1FF 100%);
  --hxs-btn-ink: #25325F;
  --hxs-btn-shadow: 0 12px 26px -12px rgba(7, 23, 49, 0.6);
}

/* ---------- Backgrounds ---------- */
.hxs--hex_blue         .hxs__surface { background: var(--hxs-hex-blue); }
.hxs--dark_blue        .hxs__surface { background: var(--hxs-dark-blue); }
.hxs--light_blue       .hxs__surface { background: var(--hxs-light-blue); }
.hxs--white            .hxs__surface { background: var(--hxs-white); }
.hxs--dark_gradient    .hxs__surface { background: linear-gradient(180deg, #071731 0%, #002C63 100%); }
.hxs--light_gradient   .hxs__surface { background: linear-gradient(180deg, #FFFFFF 0%, #F1F2FF 100%); }
.hxs--complex_gradient .hxs__surface { background: linear-gradient(160deg, #FFFFFF 0%, #FFFFFF 38%, #335AF0 100%); }
.hxs--none             .hxs__surface { background: transparent; }
.hxs--hex_blue { --hxs-orb-a: rgba(255, 255, 255, 0.28); --hxs-orb-b: rgba(186, 199, 251, 0.5); --hxs-orb-c: rgba(37, 50, 95, 0.4); }
.hxs--light_blue {
  --hxs-sheen-a: rgba(255, 255, 255, 0.55);
  --hxs-sheen-b: rgba(255, 255, 255, 0.2);
  --hxs-rim: rgba(51, 90, 240, 0.22);
  --hxs-orb-a: rgba(51, 90, 240, 0.32);
  --hxs-orb-b: rgba(255, 255, 255, 0.7);
  --hxs-orb-c: rgba(37, 50, 95, 0.14);
}
.hxs--complex_gradient { --hxs-orb-a: rgba(186, 199, 251, 0.7); --hxs-orb-b: rgba(255, 255, 255, 0.8); --hxs-orb-c: rgba(51, 90, 240, 0.28); }

/* ---------- Band vs. floating card ---------- */
.hxs__surface {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: var(--hxs-pad-y) var(--hxs-gutter);
}
.hxs--style-card { padding: 0 var(--hxs-gutter); }
.hxs--style-card .hxs__surface {
  max-width: calc(var(--hxs-max) + 2 * clamp(24px, 4vw, 64px));
  margin: 0 auto;
  padding: var(--hxs-pad-y) clamp(24px, 4vw, 64px);
  border-radius: var(--hxs-radius-surface);
  box-shadow: 0 0 0 1px var(--hxs-rim), 0 24px 60px -30px rgba(7, 23, 49, 0.35);
}
.hxs--none.hxs--style-card .hxs__surface { box-shadow: none; }
.hxs--space-compact { --hxs-pad-y: clamp(28px, 4vw, 48px); }
.hxs--space-roomy { --hxs-pad-y: clamp(72px, 9vw, 144px); }

.hxs__glow { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.hxs__glow span {
  position: absolute;
  border-radius: 50%;
  filter: blur(56px);
  opacity: 0.9;
  animation: hxs-drift 24s ease-in-out infinite alternate;
}
.hxs__glow span:nth-child(1) { width: 34%; aspect-ratio: 1.3; right: 6%;  top: 18%;    background: var(--hxs-orb-a); }
.hxs__glow span:nth-child(2) { width: 30%; aspect-ratio: 1.5; left: 18%;  bottom: -16%; background: var(--hxs-orb-b); animation-delay: -8s; animation-duration: 28s; }
.hxs__glow span:nth-child(3) { width: 24%; aspect-ratio: 1.2; left: 2%;   top: -18%;   background: var(--hxs-orb-c); animation-delay: -15s; animation-duration: 32s; }
@keyframes hxs-drift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(5%, 7%, 0) scale(1.08); }
  100% { transform: translate3d(-4%, -4%, 0) scale(0.95); }
}

.hxs__inner { position: relative; max-width: var(--hxs-max); margin: 0 auto; }

/* ---------- Heading ---------- */
.hxs__head { max-width: 720px; margin: 0 0 clamp(28px, 3.6vw, 48px); }
.hxs--head-center .hxs__head { margin-left: auto; margin-right: auto; text-align: center; }
.hxs .hxs__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 20px;
  padding: 7px 14px 7px 12px;
  border-radius: 999px;
  background: linear-gradient(155deg, var(--hxs-sheen-a), var(--hxs-sheen-b));
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
  box-shadow: inset 0 1px 0 var(--hxs-edge), inset 0 0 0 1px var(--hxs-rim);
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--hxs-accent);
}
.hxs__eyebrow-dot {
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 4px var(--hxs-accent-soft);
  animation: hxs-breathe 2.8s ease-in-out infinite;
}
@keyframes hxs-breathe { 50% { box-shadow: 0 0 0 7px transparent; } }
.hxs .hxs__eyebrow--solid {
  background: var(--hxs-accent-o, #335AF0);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 6px 16px -8px rgba(51, 90, 240, 0.55);
  color: #FFFFFF;
}
.hxs .hxs__eyebrow--solid .hxs__eyebrow-dot { background: #FFFFFF; box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.28); }
.hxs.hxs--eyebrow-bg .hxs__eyebrow {
  background: var(--hxs-eyebrow-bg);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), inset 0 0 0 1px rgba(255, 255, 255, 0.12), 0 6px 16px -8px rgba(7, 23, 49, 0.35);
}
.hxs.hxs--eyebrow-ink .hxs__eyebrow { color: var(--hxs-eyebrow-ink); }
.hxs.hxs--eyebrow-ink .hxs__eyebrow .hxs__eyebrow-dot { background: currentColor; box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.24); }
@supports (color: color-mix(in srgb, red, blue)) {
  .hxs.hxs--eyebrow-ink .hxs__eyebrow .hxs__eyebrow-dot { box-shadow: 0 0 0 4px color-mix(in srgb, var(--hxs-eyebrow-ink) 24%, transparent); }
}
.hxs .hxs__title {
  margin: 0;
  padding: 0;
  font-family: inherit;
  font-size: clamp(30px, 1.6rem + 1.9vw, 50px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--hxs-heading, var(--hxs-ink));
  text-wrap: balance;
}
.hxs .hxs__sub {
  margin: 16px 0 0;
  font-size: clamp(16px, 0.95rem + 0.25vw, 18px);
  line-height: 1.6;
  color: var(--hxs-body, var(--hxs-ink-2));
  text-wrap: pretty;
}
.hxs .hxs__sub p { margin: 0 0 0.8em; font: inherit; color: inherit; }
.hxs .hxs__sub > *:last-child { margin-bottom: 0; }
.hxs .hxs__sub a { color: var(--hxs-accent); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Stack: slider on top, savings below ---------- */
.hxs__calc {
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 1.4vw, 18px);
}

/* ---------- Shared glass ---------- */
.hxs__panel,
.hxs__results--glass {
  position: relative;
  border-radius: var(--hxs-radius);
  -webkit-backdrop-filter: blur(24px) saturate(175%);
  backdrop-filter: blur(24px) saturate(175%);
  box-shadow:
    inset 0 1px 0 var(--hxs-edge),
    inset 0 -1px 0 rgba(255, 255, 255, 0.08),
    inset 0 0 0 1px var(--hxs-rim),
    var(--hxs-shadow);
}
.hxs__panel::before,
.hxs__results::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.14) 32%, rgba(255, 255, 255, 0) 55%, rgba(255, 255, 255, 0.35) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0.85;
  pointer-events: none;
}

/* ---------- Slider panel ---------- */
.hxs__panel {
  --hxs-p-ink: var(--hxs-ink);
  --hxs-p-ink-2: var(--hxs-ink-2);
  --hxs-p-ink-3: var(--hxs-ink-3);
  --hxs-p-divider: var(--hxs-divider);
  margin: 0;
  padding: clamp(22px, 2.6vw, 34px) clamp(22px, 3.2vw, 44px) clamp(18px, 2.2vw, 28px);
  background: var(--hxs-panel-bg, linear-gradient(155deg, var(--hxs-sheen-a) 0%, var(--hxs-sheen-b) 55%, rgba(255, 255, 255, 0.04) 100%));
  color: var(--hxs-p-ink);
}
.hxs--panel-ink .hxs__panel { --hxs-p-ink: var(--hxs-panel-ink); --hxs-p-ink-2: var(--hxs-panel-ink); --hxs-p-ink-3: var(--hxs-panel-ink); }
@supports (color: color-mix(in srgb, red, blue)) {
  .hxs--panel-ink .hxs__panel {
    --hxs-p-ink-2: color-mix(in srgb, var(--hxs-panel-ink) 80%, transparent);
    --hxs-p-ink-3: color-mix(in srgb, var(--hxs-panel-ink) 60%, transparent);
    --hxs-p-divider: color-mix(in srgb, var(--hxs-panel-ink) 14%, transparent);
  }
}
.hxs__field { display: flex; flex-direction: column; gap: 14px; }
.hxs__field-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.hxs__field-text { min-width: 0; }
.hxs .hxs__panel-title {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--hxs-p-ink-3);
}
.hxs .hxs__label {
  display: block;
  margin: 0;
  font-size: clamp(17px, 0.95rem + 0.4vw, 21px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--hxs-p-ink);
  cursor: pointer;
}
.hxs__value {
  flex: none;
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 8px 18px 8px 16px;
  border-radius: 16px;
  background: linear-gradient(155deg, var(--hxs-sheen-a), var(--hxs-sheen-b));
  box-shadow: inset 0 1px 0 var(--hxs-edge), inset 0 0 0 1px var(--hxs-rim), 0 8px 20px -14px rgba(37, 50, 95, 0.4);
  transition: box-shadow 240ms var(--hxs-ease);
}
.hxs__value:focus-within { box-shadow: inset 0 1px 0 var(--hxs-edge), inset 0 0 0 1.5px var(--hxs-accent), 0 0 0 4px var(--hxs-focus-ring); }
.hxs .hxs__num {
  width: 4ch;
  min-width: 2ch;
  margin: 0;
  padding: 0;
  border: 0;
  outline: none;
  background: transparent;
  box-shadow: none;
  font: 800 clamp(26px, 1.2rem + 1vw, 34px)/1.1 var(--hxs-font, inherit);
  letter-spacing: -0.025em;
  font-variant-numeric: tabular-nums;
  text-align: right;
  color: var(--hxs-p-ink);
  -moz-appearance: textfield;
  appearance: textfield;
}
.hxs .hxs__num::-webkit-outer-spin-button,
.hxs .hxs__num::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.hxs__unit { font-size: 14px; font-weight: 600; color: var(--hxs-p-ink-3); white-space: nowrap; }

/* Slider */
.hxs .hxs__range {
  --hxs-pct: 50%;
  -webkit-appearance: none;
  appearance: none;
  display: block;
  width: 100%;
  height: 34px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  touch-action: pan-y;
}
.hxs .hxs__range:focus { outline: none; }
.hxs .hxs__range::-webkit-slider-runnable-track {
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--hxs-slider, var(--hxs-accent)) 0, var(--hxs-slider, var(--hxs-accent)) var(--hxs-pct), var(--hxs-track) var(--hxs-pct), var(--hxs-track) 100%);
  box-shadow: inset 0 1px 2px rgba(7, 23, 49, 0.1);
}
.hxs .hxs__range::-moz-range-track { height: 10px; border-radius: 999px; background: var(--hxs-track); }
.hxs .hxs__range::-moz-range-progress { height: 10px; border-radius: 999px; background: var(--hxs-slider, var(--hxs-accent)); }
.hxs .hxs__range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 30px;
  height: 30px;
  margin-top: -10px;
  border: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #FFFFFF 0%, #FFFFFF 45%, #EEF1FF 100%);
  box-shadow: 0 0 0 1px rgba(37, 50, 95, 0.12), 0 6px 14px -4px rgba(7, 23, 49, 0.35), 0 0 0 0 var(--hxs-focus-ring);
  transition: transform 260ms var(--hxs-spring), box-shadow 260ms var(--hxs-ease);
}
.hxs .hxs__range::-moz-range-thumb {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #FFFFFF 0%, #FFFFFF 45%, #EEF1FF 100%);
  box-shadow: 0 0 0 1px rgba(37, 50, 95, 0.12), 0 6px 14px -4px rgba(7, 23, 49, 0.35);
  transition: transform 260ms var(--hxs-spring), box-shadow 260ms var(--hxs-ease);
}
@media (hover: hover) {
  .hxs .hxs__range:hover::-webkit-slider-thumb { transform: scale(1.08); }
  .hxs .hxs__range:hover::-moz-range-thumb { transform: scale(1.08); }
}
.hxs .hxs__range:active::-webkit-slider-thumb { transform: scale(1.16); box-shadow: 0 0 0 1px rgba(37, 50, 95, 0.12), 0 8px 18px -4px rgba(7, 23, 49, 0.4), 0 0 0 8px var(--hxs-focus-ring); }
.hxs .hxs__range:active::-moz-range-thumb { transform: scale(1.16); box-shadow: 0 0 0 1px rgba(37, 50, 95, 0.12), 0 8px 18px -4px rgba(7, 23, 49, 0.4), 0 0 0 8px var(--hxs-focus-ring); }
.hxs .hxs__range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 1px rgba(37, 50, 95, 0.12), 0 6px 14px -4px rgba(7, 23, 49, 0.35), 0 0 0 6px var(--hxs-focus-ring); }
.hxs .hxs__range:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 1px rgba(37, 50, 95, 0.12), 0 6px 14px -4px rgba(7, 23, 49, 0.35), 0 0 0 6px var(--hxs-focus-ring); }
.hxs__scale { display: flex; justify-content: space-between; margin-top: -4px; font-size: 12px; font-weight: 600; color: var(--hxs-p-ink-3); font-variant-numeric: tabular-nums; }

/* ---------- Results card (the focal point) ---------- */
.hxs__results {
  --hxs-r-ink: #FFFFFF;
  --hxs-r-ink-2: rgba(255, 255, 255, 0.82);
  --hxs-r-ink-3: rgba(255, 255, 255, 0.66);
  --hxs-r-divider: rgba(255, 255, 255, 0.2);
  --hxs-r-num: #FFFFFF;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 3.6vw, 52px);
  border-radius: var(--hxs-radius);
  color: var(--hxs-r-ink);
  transition: transform 600ms var(--hxs-ease), box-shadow 500ms var(--hxs-ease);
}
.hxs__results--blue {
  background: var(--hxs-results-bg, linear-gradient(140deg, #2A4DDA 0%, #335AF0 48%, #4C70FF 100%));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    inset 0 0 0 1px rgba(255, 255, 255, 0.14),
    0 30px 70px -30px rgba(51, 90, 240, 0.7),
    0 2px 6px rgba(7, 23, 49, 0.08);
}
.hxs__results--glass {
  --hxs-r-ink: var(--hxs-ink);
  --hxs-r-ink-2: var(--hxs-ink-2);
  --hxs-r-ink-3: var(--hxs-ink-3);
  --hxs-r-divider: var(--hxs-divider);
  --hxs-r-num: var(--hxs-accent);
  background: var(--hxs-results-bg, linear-gradient(155deg, var(--hxs-sheen-a) 0%, var(--hxs-sheen-b) 55%, rgba(255, 255, 255, 0.04) 100%));
}
.hxs--dark .hxs__results--glass { --hxs-r-num: #FFFFFF; }
.hxs--results-ink .hxs__results { --hxs-r-ink: var(--hxs-results-ink); --hxs-r-ink-2: var(--hxs-results-ink); --hxs-r-ink-3: var(--hxs-results-ink); --hxs-r-num: var(--hxs-results-ink); }
@supports (color: color-mix(in srgb, red, blue)) {
  .hxs--results-ink .hxs__results {
    --hxs-r-ink-2: color-mix(in srgb, var(--hxs-results-ink) 82%, transparent);
    --hxs-r-ink-3: color-mix(in srgb, var(--hxs-results-ink) 64%, transparent);
    --hxs-r-divider: color-mix(in srgb, var(--hxs-results-ink) 20%, transparent);
  }
}
/* moving light inside the card */
.hxs__results-glow {
  position: absolute;
  z-index: -1;
  width: 70%;
  aspect-ratio: 1;
  left: var(--hxs-mx, 70%);
  top: var(--hxs-my, 10%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.34) 0%, rgba(255, 255, 255, 0) 65%);
  transform: translate(-50%, -50%);
  transition: left 900ms var(--hxs-ease), top 900ms var(--hxs-ease), opacity 400ms var(--hxs-ease);
  pointer-events: none;
}
.hxs__results--glass .hxs__results-glow { background: radial-gradient(circle, var(--hxs-light) 0%, transparent 65%); }
.hxs__results.is-tracking .hxs__results-glow { transition: left 260ms var(--hxs-ease), top 260ms var(--hxs-ease); }
.hxs .hxs__calc .hxs__results.is-hover { transform: translate3d(0, -6px, 0); }
.hxs__results--blue.is-hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), inset 0 0 0 1px rgba(255, 255, 255, 0.16), 0 40px 90px -32px rgba(51, 90, 240, 0.85), 0 2px 6px rgba(7, 23, 49, 0.1); }
.hxs__results--glass.is-hover { box-shadow: inset 0 1px 0 var(--hxs-edge), inset 0 0 0 1px var(--hxs-rim), var(--hxs-shadow-hover); }

.hxs .hxs__results-title {
  margin: 0 0 clamp(18px, 2.4vw, 28px);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--hxs-r-ink-3);
}
/* Savings outputs: dollars and hours share one size so both read as headline numbers */
.hxs__outputs {
  container-type: inline-size;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 0;
  align-items: start;
}
.hxs__stats { display: contents; }
.hxs__hero,
.hxs__stat {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  padding: 0 clamp(18px, 3vw, 40px);
}
.hxs__hero { padding-left: 0; }
.hxs__stat { border-left: 1px solid var(--hxs-r-divider); }
.hxs__stat:last-child { padding-right: 0; }
.hxs__big,
.hxs__stat-num {
  display: block;
  font-size: clamp(40px, 1.2rem + 3.6vw, 84px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  color: var(--hxs-number, var(--hxs-r-num));
  white-space: nowrap;
  transform-origin: left bottom;
  transition: transform 420ms var(--hxs-spring), text-shadow 420ms var(--hxs-ease);
}
@supports (font-size: 1cqi) {
  .hxs__big, .hxs__stat-num { font-size: clamp(36px, 9.2cqi, 84px); }
  .hxs__outputs:has(.hxs__stat + .hxs__stat) .hxs__big,
  .hxs__outputs:has(.hxs__stat + .hxs__stat) .hxs__stat-num { font-size: clamp(32px, 6.2cqi, 64px); }
}
.hxs__results--blue .hxs__big,
.hxs__results--blue .hxs__stat-num { text-shadow: 0 10px 40px rgba(7, 23, 49, 0.25); }
.hxs__results.is-bump .hxs__big,
.hxs__results.is-bump .hxs__stat-num { transform: scale(1.02); }
.hxs__stat-num small { margin-left: 6px; font-size: 0.42em; font-weight: 700; letter-spacing: 0; opacity: 0.85; }
.hxs__big-label,
.hxs__stat-label { font-size: clamp(15px, 0.9rem + 0.3vw, 18px); font-weight: 600; line-height: 1.4; color: var(--hxs-r-ink-2); }

/* CTA inside the results card */
.hxs a.hxs__btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  gap: 10px;
  min-height: 52px;
  margin-top: clamp(24px, 3vw, 34px);
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  overflow: hidden;
  isolation: isolate;
  font: 700 15px/1.2 var(--hxs-font, inherit);
  letter-spacing: 0.01em;
  text-decoration: none !important;
  cursor: pointer;
  transition: transform 320ms var(--hxs-spring), box-shadow 320ms var(--hxs-ease), filter 200ms linear;
}
.hxs a.hxs__btn svg { flex: none; transition: transform 320ms var(--hxs-spring); }
.hxs .hxs__results--blue a.hxs__btn,
.hxs .hxs__results--blue a.hxs__btn:hover,
.hxs .hxs__results--blue a.hxs__btn:focus,
.hxs .hxs__results--blue a.hxs__btn:visited {
  background: var(--hxs-btn-o, linear-gradient(180deg, #FFFFFF 0%, #EEF1FF 100%));
  color: var(--hxs-btn-ink-o, #25325F);
}
.hxs .hxs__results--blue a.hxs__btn { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 12px 26px -12px rgba(7, 23, 49, 0.5); }
.hxs .hxs__results--glass a.hxs__btn,
.hxs .hxs__results--glass a.hxs__btn:hover,
.hxs .hxs__results--glass a.hxs__btn:focus,
.hxs .hxs__results--glass a.hxs__btn:visited {
  background: var(--hxs-btn-o, var(--hxs-btn-bg));
  color: var(--hxs-btn-ink-o, var(--hxs-btn-ink));
}
.hxs .hxs__results--glass a.hxs__btn { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), inset 0 -2px 0 rgba(7, 23, 49, 0.12), var(--hxs-btn-shadow); }
.hxs a.hxs__btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.45) 48%, transparent 66%);
  transform: translate3d(-110%, 0, 0);
  pointer-events: none;
}
@media (hover: hover) {
  .hxs a.hxs__btn:hover { transform: translate3d(0, -2px, 0); filter: saturate(1.06) brightness(1.03); }
  .hxs a.hxs__btn:hover svg { transform: translate3d(3px, 0, 0); }
  .hxs a.hxs__btn:hover::after { transform: translate3d(110%, 0, 0); transition: transform 900ms var(--hxs-ease); }
}
.hxs a.hxs__btn:active { transform: translate3d(0, 1px, 0) scale(0.99); }
.hxs a.hxs__btn:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--hxs-focus-ring); }

/* ---------- Disclaimer ---------- */
.hxs .hxs__note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  max-width: 920px;
  margin: clamp(18px, 2.2vw, 26px) 0 0;
  padding: 0 4px;
  font-size: 12.5px;
  font-style: normal;
  line-height: 1.55;
  color: var(--hxs-note, var(--hxs-ink-3));
}
.hxs .hxs__note svg { flex: none; margin-top: 2px; opacity: 0.85; }
.hxs--head-center .hxs__note { margin-left: auto; margin-right: auto; justify-content: center; text-align: center; }
.hxs--head-center .hxs__results-title { text-align: left; }

.hxs-sr {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Entrance ---------- */
.hxs--js [data-hxs-reveal] {
  opacity: 0;
  transform: translate3d(0, 20px, 0);
  transition: opacity 800ms var(--hxs-ease), transform 900ms var(--hxs-ease);
}
.hxs--js .hxs__panel[data-hxs-reveal] { transition-delay: 60ms; }
.hxs--js .hxs__results[data-hxs-reveal] { transition-delay: 160ms; }
.hxs--js .hxs__note[data-hxs-reveal] { transition-delay: 280ms; }
.hxs--js.is-in [data-hxs-reveal] { opacity: 1; transform: none; }
.hxs--js.is-in.is-settled .hxs__calc .hxs__results { transition-delay: 0ms; transition: transform 600ms var(--hxs-ease), box-shadow 500ms var(--hxs-ease); }

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .hxs__outputs { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: minmax(0, 1fr); }
  .hxs__hero,
  .hxs__stat { padding: 0; }
  .hxs__stat {
    margin-top: 22px;
    padding-top: 22px;
    border-left: 0;
    border-top: 1px solid var(--hxs-r-divider);
  }
  .hxs__big, .hxs__stat-num { font-size: clamp(40px, 13vw, 60px); }
  @supports (font-size: 1cqi) {
    .hxs__big, .hxs__stat-num,
    .hxs__outputs:has(.hxs__stat + .hxs__stat) .hxs__big,
    .hxs__outputs:has(.hxs__stat + .hxs__stat) .hxs__stat-num { font-size: clamp(38px, 15cqi, 60px); }
  }
}
@media (max-width: 520px) {
  .hxs { --hxs-radius: 24px; --hxs-radius-surface: 26px; }
  .hxs__panel, .hxs__results { padding: 24px; }
  .hxs__field-head { flex-direction: column; align-items: stretch; gap: 14px; }
  .hxs__value { align-self: flex-start; padding: 6px 14px 6px 12px; }
  .hxs .hxs__results-title { margin-bottom: 18px; }
  .hxs a.hxs__btn { align-self: stretch; }
}

@media (prefers-reduced-motion: reduce) {
  .hxs__glow span, .hxs__eyebrow-dot { animation: none; }
  .hxs__results, .hxs__big, .hxs__results-glow { transition: none; transform: none !important; }
  .hxs--js [data-hxs-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ==========================================================================
   Email capture: the CTA opens an email-only form over the calculator
   ========================================================================== */
.hxs__calc { position: relative; }
.hxs__cap { position: absolute; inset: -10px; z-index: 30; border-radius: calc(var(--hxs-radius) + 8px); }
.hxs__cap[hidden] { display: none; }
.hxs__cap-veil {
  position: absolute; inset: 0; border-radius: inherit; cursor: pointer;
  background: rgba(244, 246, 255, 0.42);
  -webkit-backdrop-filter: blur(16px) saturate(150%); backdrop-filter: blur(16px) saturate(150%);
  opacity: 0; transition: opacity 420ms var(--hxs-ease);
}
.hxs__cap.is-open .hxs__cap-veil { opacity: 1; }
.hxs__cap-card {
  position: absolute; left: 0; top: 0; isolation: isolate;
  width: min(470px, calc(100% - 24px)); padding: 28px 28px 24px;
  border-radius: 26px; text-align: left; color: var(--hxs-ink); font-family: var(--hxs-font, inherit);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 249, 255, 0.84) 52%, rgba(255, 255, 255, 0.92) 100%);
  -webkit-backdrop-filter: blur(24px) saturate(190%); backdrop-filter: blur(24px) saturate(190%);
  box-shadow:
    inset 0 1.5px 1px rgba(255, 255, 255, 0.95),
    inset 0 -40px 60px -40px rgba(51, 90, 240, 0.16),
    0 0 0 0.5px rgba(37, 50, 95, 0.1),
    0 34px 80px -30px rgba(37, 50, 95, 0.55),
    0 30px 70px -40px rgba(51, 90, 240, 0.6);
  opacity: 0; transform: translate3d(0, 14px, 0) scale(0.95);
  transform-origin: var(--hxs-cap-ox, 20%) var(--hxs-cap-oy, 100%);
  transition: opacity 360ms var(--hxs-ease), transform 640ms var(--hxs-spring), top 380ms var(--hxs-ease);
}
.hxs__cap-card.is-placing { transition: opacity 360ms var(--hxs-ease), transform 640ms var(--hxs-spring); }
.hxs__cap-card::before {
  content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit; padding: 1.2px; pointer-events: none;
  background: linear-gradient(135deg, #fff 0%, rgba(255, 255, 255, 0.25) 28%, rgba(255, 255, 255, 0) 52%, rgba(255, 255, 255, 0.25) 76%, rgba(255, 255, 255, 0.9) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude;
}
.hxs__cap.is-open .hxs__cap-card { opacity: 1; transform: none; }
.hxs .hxs__cap-x {
  position: absolute; top: 14px; right: 14px; z-index: 3; display: grid; place-items: center;
  width: 34px; height: 34px; margin: 0; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  color: var(--hxs-ink-2); background: rgba(255, 255, 255, 0.7);
  box-shadow: inset 0 1px 1px #fff, 0 0 0 0.5px rgba(37, 50, 95, 0.12);
  transition: transform 260ms var(--hxs-spring), background 200ms;
}
.hxs .hxs__cap-x:hover { background: #fff; transform: rotate(90deg); }
.hxs .hxs__cap-x:focus-visible { outline: 2px solid var(--hxs-accent); outline-offset: 2px; }

.hxs__cap-step { display: none; }
.hxs__cap-step.is-current { display: block; animation: hxs-cap-in 460ms var(--hxs-ease) both; }
@keyframes hxs-cap-in { from { opacity: 0; transform: translate3d(0, 6px, 0); } to { opacity: 1; transform: none; } }

.hxs .hxs__cap-title {
  margin: 0; padding-right: 34px; font-family: inherit; font-size: clamp(21px, 2.1vw, 25px); font-weight: 700;
  line-height: 1.15; letter-spacing: -0.02em; color: var(--hxs-ink); text-wrap: balance;
}
.hxs__cap-amt { color: var(--hxs-accent); font-variant-numeric: tabular-nums; white-space: nowrap; }
.hxs .hxs__cap-body { margin: 8px 0 0; font-size: 14.5px; line-height: 1.5; color: var(--hxs-ink-2); text-wrap: pretty; }

.hxs__cap-form { margin: 18px 0 0; }
.hxs__cap-row {
  display: flex; align-items: center; gap: 6px; padding: 5px 5px 5px 6px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: inset 0 1px 1px #fff, 0 0 0 0.5px rgba(37, 50, 95, 0.16), 0 12px 30px -22px rgba(37, 50, 95, 0.5);
  transition: box-shadow 240ms var(--hxs-ease), background 240ms;
}
.hxs__cap-row:focus-within { background: #fff; box-shadow: inset 0 1px 1px #fff, 0 0 0 2px var(--hxs-accent), 0 0 0 6px var(--hxs-focus-ring); }
.hxs .hxs__cap-input {
  flex: 1 1 auto; min-width: 0; width: auto; height: 46px; margin: 0; padding: 0 14px;
  border: 0; border-radius: 999px; outline: none; box-shadow: none; background: transparent;
  -webkit-appearance: none; appearance: none;
  font: 500 16px/1.2 var(--hxs-font, inherit); color: var(--hxs-ink);
}
.hxs .hxs__cap-input::placeholder { color: var(--hxs-ink-3); opacity: 1; }
.hxs .hxs__cap-btn {
  position: relative; flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; margin: 0; padding: 0 20px; border: 0; border-radius: 999px; cursor: pointer; white-space: nowrap;
  -webkit-appearance: none; appearance: none; text-transform: none;
  font: 700 15px/1 var(--hxs-font, inherit); letter-spacing: -0.005em; color: #fff;
  background: var(--hxs-btn-o, var(--hxs-btn-bg));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), inset 0 -2px 0 rgba(7, 23, 49, 0.12), var(--hxs-btn-shadow);
  transition: transform 260ms var(--hxs-spring), filter 200ms;
}
.hxs .hxs__cap-btn:hover { transform: translateY(-1px); filter: brightness(1.05); }
.hxs .hxs__cap-btn:active { transform: scale(0.98); }
.hxs .hxs__cap-btn:focus-visible { outline: 2px solid var(--hxs-ink); outline-offset: 2px; }
.hxs__cap-arrow { transition: transform 260ms var(--hxs-spring); }
.hxs .hxs__cap-btn:hover .hxs__cap-arrow { transform: translateX(2px); }
.hxs__cap-spin { display: none; width: 16px; height: 16px; border: 2px solid rgba(255, 255, 255, 0.45); border-top-color: #fff; border-radius: 50%; animation: hxs-cap-spin 800ms linear infinite; }
@keyframes hxs-cap-spin { to { transform: rotate(360deg); } }
.hxs__cap-form.is-busy .hxs__cap-spin { display: block; }
.hxs__cap-form.is-busy .hxs__cap-arrow { display: none; }
.hxs__cap-form.is-busy .hxs__cap-btn { pointer-events: none; }
.hxs .hxs__cap-error { margin: 8px 0 0 14px; font-size: 13px; line-height: 1.4; color: #C7382F; }
.hxs .hxs__cap-error:empty { display: none; }
.hxs__cap-form.is-shake .hxs__cap-row { animation: hxs-cap-shake 420ms var(--hxs-ease); }
@keyframes hxs-cap-shake { 0%, 100% { transform: none; } 20% { transform: translateX(-7px); } 45% { transform: translateX(6px); } 70% { transform: translateX(-3px); } }
.hxs .hxs__cap-note { margin: 10px 0 0 14px; font-size: 12.5px; line-height: 1.45; color: var(--hxs-ink-3); }

/* Sent */
.hxs__cap-check {
  display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 16px; border-radius: 50%; color: #fff;
  background: var(--hxs-btn-bg); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), var(--hxs-btn-shadow);
  animation: hxs-cap-pop 620ms var(--hxs-spring) both;
}
.hxs__cap-check path { stroke-dasharray: 24; stroke-dashoffset: 24; animation: hxs-cap-draw 520ms var(--hxs-ease) 220ms forwards; }
@keyframes hxs-cap-pop { from { transform: scale(0.6); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes hxs-cap-draw { to { stroke-dashoffset: 0; } }
.hxs .hxs__cap-back {
  display: inline-flex; align-items: center; gap: 6px; margin: 16px 0 0; padding: 0; border: 0; background: none; cursor: pointer;
  font: 700 14px/1.2 var(--hxs-font, inherit); color: var(--hxs-accent); text-transform: none;
}
.hxs .hxs__cap-back:hover { text-decoration: underline; text-underline-offset: 3px; }
.hxs a.hxs__btn.is-sent svg { display: none; }

@media (max-width: 640px) {
  .hxs__cap-card { width: calc(100% - 16px); padding: 24px 20px 20px; border-radius: 22px; }
  .hxs__cap-row { flex-direction: column; align-items: stretch; gap: 8px; padding: 6px; border-radius: 22px; }
  .hxs .hxs__cap-btn { width: 100%; }
  .hxs .hxs__cap-error, .hxs .hxs__cap-note { margin-left: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  .hxs__cap-veil, .hxs__cap-card { transition-duration: 1ms !important; }
  .hxs__cap-card { transform: none; }
  .hxs__cap-step.is-current, .hxs__cap-check, .hxs__cap-check path { animation: none !important; stroke-dashoffset: 0; }
}
