/* =========================================================
   estimate.css — the free online estimate (estimate.html + js/estimate.js)
   Mint world, one question per screen: big caps question on the left, tap cards on the right.
   ========================================================= */
.ex {
  min-height: max(var(--sh), 760px); padding: clamp(112px, 15vh, 156px) 0 clamp(72px, 10vh, 120px); color: var(--navy);
  background:
    radial-gradient(55% 65% at 76% 58%, #b6ecc6 0%, rgba(182, 236, 198, 0) 70%),
    radial-gradient(70% 70% at 0% 0%, #83dda0 0%, rgba(131, 221, 160, 0) 70%),
    linear-gradient(160deg, #7ad9a7 0%, #71d4ab 55%, #5fc79d 100%);
}
.ex__wrap { display: flex; flex-direction: column; min-height: calc(max(var(--sh), 760px) - clamp(184px, 25vh, 276px)); }

/* top bar: back, kicker, count, progress */
.ex__bar { display: grid; grid-template-columns: auto 1fr auto; align-items: center; column-gap: 18px; row-gap: 14px; }
.ex__back { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px 0 12px; border-radius: 99px; border: 1.5px solid rgba(23, 12, 69, .25); font-weight: 700; font-size: 15px; color: var(--navy); transition: background-color .3s, color .3s, border-color .3s; }
.ex__back:hover { background: var(--navy); border-color: var(--navy); color: var(--lav); }
.ex__back[hidden] { display: none; }
.ex__kicker { grid-column: 2; font-weight: 700; font-size: 15px; letter-spacing: .14em; text-transform: uppercase; color: var(--navy); }
.ex__back[hidden] + .ex__kicker { grid-column: 1 / 3; }
.ex__count { grid-column: 3; font-weight: 700; font-size: 15px; letter-spacing: .04em; font-feature-settings: "tnum"; color: rgba(23, 12, 69, .7); }
.ex__track { grid-column: 1 / -1; height: 4px; border-radius: 4px; background: rgba(23, 12, 69, .12); overflow: hidden; }
.ex__fill { display: block; height: 100%; background: var(--navy); transform: scaleX(0); transform-origin: 0 50%; transition: transform .7s var(--ease-out); }
.ex.is-pick .ex__track, .ex.is-result .ex__track { visibility: hidden; }

/* a step: question left, answers right */
.ex__stage { flex: 1; display: flex; align-items: center; padding-top: clamp(36px, 6vh, 72px); }
.xs { width: 100%; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 96px); align-items: center; }
.xs__lead { font-weight: 700; font-size: clamp(24px, 2.5vw, 42px); letter-spacing: -.025em; line-height: 1.08; margin-bottom: 12px; }
/* eu-type hero: 900 caps, lines near touching, a light same-colour stroke adds weight without closing counters */
.xs__q { margin: 0; font-weight: 900; font-size: clamp(48px, 5.6vw, 104px); letter-spacing: 0; line-height: .86; text-transform: uppercase; text-wrap: balance;
  -webkit-text-stroke: .03em currentColor; paint-order: stroke fill; stroke-linejoin: miter; }
.xs__q:focus { outline: none; }
.xs__help { margin-top: clamp(18px, 2vw, 28px); max-width: 34ch; font-weight: 500; font-size: clamp(17px, 1.3vw, 20px); line-height: 1.4; color: rgba(23, 12, 69, .82); }
.xs__help a, .xs__alt a { font-weight: 700; text-decoration: none; border-bottom: 1.5px solid rgba(23, 12, 69, .35); }
.xs__alt { grid-column: 2; margin-top: -8px; font-weight: 500; font-size: 16px; color: rgba(23, 12, 69, .8); }

/* answer cards */
.xs__opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.xs__opts--many { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.xs__opts--ber { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.xo { position: relative; display: block; cursor: pointer; text-align: left; }
.xo input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.xo__in {
  display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; height: 100%; min-height: 112px; padding: 20px 22px;
  border-radius: 24px; background: rgba(255, 255, 255, .6); border: 1.5px solid rgba(23, 12, 69, .08); color: var(--navy);
  box-shadow: 0 1px 0 rgba(23, 12, 69, .04);
  transition: background-color .35s var(--ease-out), color .35s var(--ease-out), border-color .35s var(--ease-out), transform .45s var(--ease-out), box-shadow .45s var(--ease-out);
}
.xo--ic .xo__in { min-height: 150px; }
.xo__in svg { width: 44px; height: 44px; margin-bottom: auto; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.xo__in b { font-weight: 700; font-size: clamp(18px, 1.45vw, 22px); letter-spacing: -.025em; line-height: 1.1; }
.xo__in small { font-weight: 500; font-size: 14.5px; line-height: 1.3; color: rgba(23, 12, 69, .68); transition: color .35s; }
.xo:hover .xo__in { background: rgba(255, 255, 255, .88); transform: translateY(-3px); box-shadow: 0 18px 34px -22px rgba(23, 12, 69, .45); }
.xo input:checked + .xo__in, .xo:active .xo__in { background: var(--navy); border-color: var(--navy); color: var(--lav); transform: none; }
.xo input:checked + .xo__in small { color: rgba(245, 239, 242, .7); }
.xo input:focus-visible + .xo__in, button.xo:focus-visible .xo__in { outline: 2px solid var(--navy); outline-offset: 3px; }
button.xo { width: 100%; padding: 0; border: 0; background: none; font: inherit; }
.xo--big .xo__in { min-height: clamp(200px, 26vh, 260px); padding: 26px 28px; }
.xo--big .xo__in svg { width: 64px; height: 64px; }
.xo--big .xo__in b { font-size: clamp(24px, 2.2vw, 34px); }
.xo--big .xo__in small { font-size: 16px; }
.xs__opts--many .xo__in { min-height: 132px; padding: 18px; }
.xs__opts--many .xo__in svg { width: 38px; height: 38px; }

/* BER: the letter is the card */
.xo--ber .xo__in { min-height: 96px; align-items: center; justify-content: center; padding: 12px; }
.xo--ber .xo__in b { font-weight: 900; font-size: clamp(32px, 2.8vw, 44px); letter-spacing: -.04em; line-height: 1; }
.xo--ber-i { grid-column: 1 / -1; }
.xo--ber-i .xo__in { min-height: 58px; }
.xo--ber-i .xo__in b { font-weight: 700; font-size: 18px; letter-spacing: -.02em; }

/* number step */
.xs__num { display: flex; align-items: baseline; gap: 14px; padding: 8px 26px; border-radius: 28px; background: rgba(255, 255, 255, .6); border: 1.5px solid rgba(23, 12, 69, .08); }
.xs__num span { font-weight: 900; font-size: clamp(36px, 3.4vw, 56px); letter-spacing: -.04em; }
.xin--big { flex: 1; min-width: 0; height: auto; padding: 0; border: 0; background: none; font-weight: 900; font-size: clamp(64px, 7vw, 120px); letter-spacing: -.05em; color: var(--navy); font-feature-settings: "tnum"; -moz-appearance: textfield; }
.xin--big::-webkit-outer-spin-button, .xin--big::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.xin--big::placeholder { color: rgba(23, 12, 69, .22); }
.xin--big:focus { outline: none; }
.xs__num:focus-within { border-color: var(--navy); }
.xs__row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 18px; }
.xs__opts + .xs__row { grid-column: 2; margin-top: -14px; }
.xs > .xs__row { grid-column: 2; }
.xs__skip { padding: 6px 2px; border: 0; background: none; font-weight: 700; font-size: 16px; color: var(--navy); border-bottom: 1.5px solid rgba(23, 12, 69, .3); cursor: pointer; }
.xs__skip:hover { border-color: var(--navy); }
.xs--contact .xs__q { font-size: clamp(52px, 5.6vw, 100px); }

/* contact form card */
.xf { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 14px; padding: clamp(22px, 2.2vw, 32px); border-radius: 30px; background: rgba(255, 255, 255, .62); border: 1px solid rgba(23, 12, 69, .08); }
.xf__f { display: grid; gap: 6px; min-width: 0; }
.xf__f--wide, .xf__err, .xf .btn, .xf__fine { grid-column: 1 / -1; }
.xf label { font-weight: 700; font-size: 14px; letter-spacing: -.005em; color: rgba(23, 12, 69, .82); }
.xin {
  width: 100%; height: 50px; padding: 0 16px; border-radius: 14px; border: 1.5px solid rgba(23, 12, 69, .16); background: rgba(255, 255, 255, .85);
  font: inherit; font-weight: 500; font-size: 16px; color: var(--navy); transition: border-color .25s, box-shadow .25s;
}
textarea.xin { height: auto; min-height: 92px; padding: 12px 16px; resize: vertical; }
select.xin { appearance: none; padding-right: 40px; background: rgba(255, 255, 255, .85) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='18' height='18'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%23170c45' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 14px center; }
.xin:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(23, 12, 69, .1); }
.xin.is-bad { border-color: var(--magenta-d); }
.xf__err { padding: 10px 14px; border-radius: 12px; background: rgba(239, 42, 112, .12); color: var(--magenta-d); font-weight: 700; font-size: 15px; }
.xf__err[hidden] { display: none; }
.xf .btn { margin-top: 6px; }
.xf__fine { font-size: 13px; line-height: 1.4; color: rgba(23, 12, 69, .66); }

/* result */
.xs--result, .xs--contact { align-items: start; }
.xs--contact .xs__head { padding-top: clamp(8px, 2vh, 24px); }
.xs--result .xs__head { position: sticky; top: 120px; }
/* the result gets its own world: a big tonal disc behind the card, the faint grid, and a louder head */
.ex { position: relative; overflow: clip; }
.ex > .ex__wrap { position: relative; z-index: 1; }
.ex::before, .ex::after { content: ""; position: absolute; pointer-events: none; opacity: 0; transition: opacity .8s var(--ease-out); }
.ex::before {
  right: -14vw; top: 50%; width: min(1180px, 78vw); aspect-ratio: 1; transform: translateY(-46%); border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, .34) 0%, rgba(255, 255, 255, .2) 62%, rgba(255, 255, 255, .12) 99.5%, rgba(255, 255, 255, 0) 100%);
  box-shadow: 0 0 0 clamp(26px, 3vw, 48px) rgba(255, 255, 255, .08);
}
.ex::after {
  inset: 0;
  background-image: linear-gradient(rgba(23, 12, 69, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(23, 12, 69, .06) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(60% 70% at 26% 40%, #000 20%, transparent 100%);
  mask-image: radial-gradient(60% 70% at 26% 40%, #000 20%, transparent 100%);
}
.ex.is-result::before, .ex.is-result::after { opacity: 1; }
.xs--result .xs__lead { font-size: clamp(26px, 2.5vw, 40px); margin-bottom: .2em; }
.xs--result .xs__q { font-size: clamp(64px, 8.4vw, 152px); line-height: .84; }
.xs--result .xs__help { max-width: 30ch; font-size: clamp(19px, 1.6vw, 25px); line-height: 1.35; font-weight: 500; color: var(--navy); text-wrap: pretty; }
@media (max-width: 900px) {
  .ex::before { right: -40vw; top: 360px; width: 120vw; transform: none; }
  .ex::after { -webkit-mask-image: radial-gradient(90% 40% at 30% 12%, #000 20%, transparent 100%); mask-image: radial-gradient(90% 40% at 30% 12%, #000 20%, transparent 100%); }
  .xs--result .xs__q { font-size: clamp(56px, 15.5vw, 96px); }
  .xs--result .xs__help { max-width: 30ch; }
}
a.xr__urgent { display: block; margin-top: 24px; max-width: 34ch; padding: 14px 18px; border-radius: 18px; background: var(--magenta); color: var(--white); font-weight: 500; font-size: 16px; line-height: 1.35; text-decoration: none; white-space: normal; }
.xr__urgent b { font-weight: 700; }
.xr { display: grid; gap: 14px; }
.xr__card {
  padding: clamp(24px, 2.4vw, 36px); border-radius: 32px; color: var(--lav);
  background: radial-gradient(70% 60% at 100% 0%, rgba(105, 93, 134, .55) 0%, rgba(105, 93, 134, 0) 70%), linear-gradient(170deg, #1f1257 0%, #170c45 70%);
  box-shadow: 0 40px 80px -40px rgba(23, 12, 69, .55);
}
.xr__tag { font-weight: 700; font-size: 15px; letter-spacing: .14em; text-transform: uppercase; color: var(--mint); }
.xr__top { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 14px; }
.xr__top img { width: auto; height: clamp(110px, 10vw, 150px); object-fit: contain; filter: drop-shadow(0 10px 10px rgba(0, 0, 0, .35)); }
.xr__brand { font-weight: 700; font-size: 17px; color: rgba(245, 239, 242, .7); }
.xr__name { margin: 2px 0 6px; font-weight: 900; font-size: clamp(36px, 3.6vw, 60px); letter-spacing: -.045em; line-height: .9; text-transform: uppercase; }
.xr__meta { font-weight: 500; font-size: 16px; color: rgba(245, 239, 242, .72); }
.xr__price { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-top: 22px; padding-top: 18px; border-top: 1px solid rgba(245, 239, 242, .14); }
.xr__price span { flex: none; font-weight: 700; font-size: 16px; color: var(--mint); }
.xr__price strong { font-weight: 900; font-size: clamp(48px, 4.6vw, 80px); letter-spacing: -.05em; line-height: .86; font-feature-settings: "tnum"; color: var(--mint); }
.xr__price--tbc strong { white-space: nowrap; font-size: clamp(30px, 2.6vw, 42px); letter-spacing: -.035em; }
.xr__why { display: grid; gap: 10px; margin-top: 20px; }
.xr__why li { position: relative; padding-left: 22px; font-weight: 500; font-size: 15.5px; line-height: 1.4; color: rgba(245, 239, 242, .86); }
.xr__why li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 8px; height: 8px; border-radius: 50%; background: var(--mint); }
.xr__why b { color: var(--white); font-weight: 700; }
.xr__fine { margin-top: 18px; font-size: 12.5px; line-height: 1.45; color: rgba(245, 239, 242, .55); }
.xr__more { padding: clamp(22px, 2.2vw, 32px); border-radius: 30px; background: rgba(255, 255, 255, .62); border: 1px solid rgba(23, 12, 69, .08); }
.xr__h { font-weight: 700; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: rgba(23, 12, 69, .7); margin-bottom: 8px; }
.xr__row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid rgba(23, 12, 69, .1); }
.xr__card .xr__row { border-color: rgba(245, 239, 242, .14); }
.xr__rows { margin-top: 10px; }
.xr__row span { display: grid; gap: 2px; }
.xr__row b { font-weight: 700; font-size: 18px; letter-spacing: -.02em; }
.xr__row small { font-weight: 500; font-size: 14px; opacity: .7; }
.xr__row em { font-style: normal; font-weight: 700; font-size: 17px; white-space: nowrap; font-feature-settings: "tnum"; }
.xr__next { margin-top: 24px; }
.xr__next p:not(.xr__h) { font-weight: 500; font-size: 16px; line-height: 1.45; }
.xr__next a:not(.btn) { font-weight: 700; text-decoration: none; border-bottom: 1.5px solid rgba(23, 12, 69, .3); }
.xr__steps { display: grid; gap: 12px; margin: 6px 0 4px; counter-reset: s; }
.xr__steps li { counter-increment: s; display: grid; grid-template-columns: 34px 1fr; column-gap: 12px; font-size: 16px; line-height: 1.35; }
.xr__steps li::before { content: counter(s, decimal-leading-zero); grid-row: span 2; font-weight: 900; font-size: 15px; color: rgba(23, 12, 69, .45); padding-top: 2px; font-feature-settings: "tnum"; }
.xr__steps b { font-weight: 700; }
.xr__steps span { font-weight: 500; color: rgba(23, 12, 69, .75); }

/* Kelvin, the guide: stands at the inner edge of the question column, beside the answers.
   The soft contact shadow sits on his feet line (the bottom of every cutout). */
.xs__head { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 20px; }
.xs__head > * { grid-column: 1 / -1; }
.xs__head > .xs__help, .xs__head > .xr__urgent { grid-column: 1; }
.xs__head > .xk { grid-column: 2; grid-row: 3 / span 2; align-self: end; }   /* beside the help line, so tall questions keep him above the fold */
.xk { position: relative; width: fit-content; margin: clamp(20px, 3.4vh, 40px) 0 0 auto; pointer-events: none; }
.xk img { position: relative; z-index: 1; display: block; width: auto; height: clamp(190px, 30vh, 300px); }
.xk img { filter: drop-shadow(0 16px 20px rgba(23, 12, 69, .34)); }   /* soft body shadow so he lifts off the wash */
.xk::after {   /* dark contact shadow right under the feet */
  content: ""; position: absolute; left: 50%; bottom: -8px; width: 78%; height: 20px; transform: translateX(-50%);
  border-radius: 50%; background: radial-gradient(closest-side, rgba(23, 12, 69, .62) 0%, rgba(23, 12, 69, .3) 55%, rgba(23, 12, 69, 0) 100%);
}
.xk::before {   /* cast shadow on the floor, thrown back and right by a light up front left */
  content: ""; position: absolute; left: 58%; bottom: -14px; width: 120%; height: 40px; transform: translateX(-50%) skewX(-28deg);
  border-radius: 50%; background: radial-gradient(closest-side, rgba(23, 12, 69, .4) 0%, rgba(23, 12, 69, .16) 60%, rgba(23, 12, 69, 0) 100%);
  filter: blur(3px);
}
.js .xk::before { opacity: 0; transition: opacity .6s var(--ease-out) .2s; }
.js .xs.is-in .xk.is-ready::before { opacity: 1; }
.xk--boiler-reveal img { height: clamp(220px, 35vh, 350px); }   /* he holds the boiler overhead, so the cutout runs taller */
.xk--piggy-bank::after, .xk--greeter::after { width: 70%; }
.xs--result .xk { margin-top: clamp(16px, 2.6vh, 32px); }

/* step motion: fade, rise, blur (the type system's entrance) */
.js .xs { opacity: 0; transform: translateY(26px); filter: blur(8px); transition: opacity .55s var(--ease-out), transform .7s var(--ease-out), filter .55s var(--ease-out); }
.js .xs.from-back { transform: translateY(-26px); }
.js .xs.is-in { opacity: 1; transform: none; filter: none; }
.js .xs.to-next { opacity: 0; transform: translateY(-20px); filter: blur(6px); transition-duration: .22s; }
.js .xs.to-back { opacity: 0; transform: translateY(20px); filter: blur(6px); transition-duration: .22s; }
.rm .xs, .rm .xs.to-next, .rm .xs.to-back { transform: none; filter: none; transition: opacity .2s; }
.xs .xo__in { transition-delay: 0s; }
/* Kelvin's swap: a quiet fade-rise a beat after the step lands, the shadow fading with him */
.js .xk img { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease-out) .12s, transform .9s var(--ease-out) .12s; }
.js .xk::after { opacity: 0; transition: opacity .6s var(--ease-out) .2s; }
.js .xs.is-in .xk.is-ready img { opacity: 1; transform: none; }
.js .xs.is-in .xk.is-ready::after { opacity: 1; }
.rm .xk img { transform: none; transition: opacity .2s; }
.rm .xk::after { transition: opacity .2s; }
@media (prefers-reduced-motion: reduce) {
  .js .xk img { transform: none; transition: opacity .2s; }
  .js .xk::after { transition: opacity .2s; }
}

/* ---------- tablet + phone ---------- */
@media (max-width: 900px) {
  .xs { grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: start; }
  .xs__alt, .xs__opts + .xs__row, .xs > .xs__row { grid-column: 1; }
  .xs__opts + .xs__row { margin-top: -10px; }
  .xs--result .xs__head { position: static; }
  .ex__stage { align-items: flex-start; }
  .xs__opts--many { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* Kelvin moves up next to the lead line, above the question, and never shares a row with the answers */
  .xs__head { grid-template-columns: auto minmax(0, 1fr); column-gap: 14px; }
  .xs__head > *, .xs__head > .xs__help, .xs__head > .xr__urgent { grid-column: 1 / -1; }
  .xs__head > .xk { grid-column: 1; grid-row: 1; margin: 0 0 14px; }
  .xs__head > .xs__lead { grid-column: 2; grid-row: 1; align-self: end; margin-bottom: 22px; }
  .xk img, .xk--boiler-reveal img { height: 150px; }
  .xk::after { bottom: -7px; height: 14px; }
}
@media (max-width: 640px) {
  .ex { padding-top: 104px; }
  .ex__wrap { min-height: 0; }
  .ex__stage { padding-top: 28px; }
  .xs__q { font-size: clamp(42px, 12.4vw, 60px); }
  .xs--contact .xs__q { font-size: clamp(40px, 11.6vw, 56px); }
  .xo__in { min-height: 96px; padding: 16px; border-radius: 20px; }
  .xo--ic .xo__in { min-height: 124px; }
  .xo__in svg { width: 36px; height: 36px; }
  .xo--big .xo__in { min-height: 168px; }
  .xs__opts--ber { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .xf { grid-template-columns: minmax(0, 1fr); padding: 18px; border-radius: 24px; }
  .xr__card, .xr__more { border-radius: 24px; }
  .xr__top img { display: none; }
  .xk img { height: 112px; }
  .xk--boiler-reveal img { height: 124px; }
  .xs__head > .xk { margin-bottom: 10px; }
  .xs__head > .xs__lead { margin-bottom: 16px; }
}
