/* Utopia web revamp v3 — price explorer (pop-up estimator). Built by assets/js/estimator.js on first open.
   Phone: a full-screen sheet. Desktop: a centred card about 920 px wide.
   Colours from tokens.css only. Motion: transform and opacity only; none when paused or reduced. */

dialog.est{box-sizing:border-box;position:fixed;inset:0;margin:0;padding:0;border:0;width:100%;max-width:100%;height:100%;max-height:100%;background:var(--linen);color:var(--ink-2);font:400 16px/1.5 var(--f-body);-webkit-font-smoothing:antialiased;overflow:hidden;overscroll-behavior:contain}
dialog.est[open]{display:flex;flex-direction:column}
dialog.est *,dialog.est *::before,dialog.est *::after{box-sizing:border-box}
dialog.est::backdrop{background:color-mix(in srgb,var(--obsidian) 52%,transparent)}
dialog.est p,dialog.est h2{margin:0}
dialog.est fieldset{margin:0;padding:0;border:0;min-width:0}
dialog.est legend{padding:0}
dialog.est :focus-visible{outline:2px solid var(--blue);outline-offset:3px;border-radius:4px}

/* open: the card rises a little, the backdrop fades in */
dialog.est[open]{animation:est-in 320ms var(--ease) both}
dialog.est[open]::backdrop{animation:est-fade 240ms ease both}
@keyframes est-in{from{opacity:0;transform:translate3d(0,14px,0) scale(.985)}to{opacity:1;transform:none}}
@keyframes est-fade{from{opacity:0}to{opacity:1}}

/* ---------- head ---------- */
.est__head{flex:none;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 10px 10px 16px;border-bottom:1px solid var(--hair);background:var(--linen)}
.est__title{font:700 20px/1.15 var(--f-display);letter-spacing:-.025em;color:var(--ink)}
.est__close{flex:none;display:grid;place-items:center;width:44px;height:44px;padding:0;border:0;border-radius:50%;background:transparent;color:var(--ink-2);cursor:pointer;transition:background-color 160ms ease}
.est__close svg{width:16px;height:16px;display:block}
.est__close:hover{background:var(--bone)}

/* ---------- body ---------- */
.est__body{flex:1 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding:14px 16px 20px;display:grid;gap:16px;align-content:start}
.est__cols{display:grid;gap:20px;min-width:0}
.est__col{display:grid;gap:14px;align-content:start;min-width:0}
.est__q{display:block;font:700 16px/1.25 var(--f-display);letter-spacing:-.015em;color:var(--ink);margin-bottom:10px}

/* hidden real inputs: the label face is the control */
.est-dept,.est-size,.est-mod{position:relative;display:block;cursor:pointer;-webkit-tap-highlight-color:transparent}
.est-dept input,.est-size input,.est-mod input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}
.est-dept input:focus-visible+span,.est-size input:focus-visible+span,.est-mod input:focus-visible+span{outline:2px solid var(--blue);outline-offset:2px}

/* ---------- department picker ---------- */
.est-depts{display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr));gap:4px;padding:4px!important;border-radius:var(--r-card);background:var(--bone)}
.est-dept{grid-column:span 2}
.est-dept:nth-child(n+4){grid-column:span 3}
.est-dept__face{display:flex;align-items:center;justify-content:center;min-height:44px;padding:4px 8px;border-radius:var(--r-btn);font:600 14.5px/1.15 var(--f-display);letter-spacing:-.01em;color:var(--ink-2);text-align:center;white-space:nowrap;transition:background-color 160ms ease,color 160ms ease}
.est-dept:hover .est-dept__face{color:var(--ink)}
.est-dept input:checked+.est-dept__face{background:var(--blue-deep);background-image:var(--sheen);color:var(--white);box-shadow:var(--shadow)}

/* ---------- banner: the engraved strip slides to the department's scene ---------- */
.est-banner{display:flex;align-items:center;gap:14px;padding:0 14px 0 0;border-radius:var(--r-card);background:var(--paper);overflow:hidden;min-height:104px}
.est-art{flex:none;width:104px;aspect-ratio:1/1;overflow:hidden;background:var(--linen)}
.est-art__strip{display:block;width:calc(var(--n,5) * 100%);max-width:none;height:100%;mix-blend-mode:multiply;transform:translate3d(calc(var(--art-i,0) * -100% / var(--n,5)),0,0);transition:transform 560ms var(--ease)}
.est-banner__txt{min-width:0;display:grid;gap:4px}
.est-banner__name{font:700 22px/1.1 var(--f-display);letter-spacing:-.03em;color:var(--ink);text-wrap:balance}
.est-banner__line{font:400 15px/1.4 var(--f-body);color:var(--mute);text-wrap:pretty}

/* ---------- modules ---------- */
.est-mods__list{display:grid;gap:8px}
.est-mod__face{display:flex;align-items:flex-start;gap:12px;min-height:60px;padding:11px 14px 11px 12px;border-radius:var(--r-card);background:var(--white);box-shadow:inset 0 0 0 1px var(--hair);transition:background-color 160ms ease,box-shadow 160ms ease}
.est-mod__box{flex:none;display:grid;place-items:center;width:22px;height:22px;margin-top:1px;border-radius:var(--r-chip);background:var(--white);box-shadow:inset 0 0 0 1.5px color-mix(in srgb,var(--ink) 34%,transparent);color:var(--white);transition:background-color 160ms ease,box-shadow 160ms ease}
.est-mod__tick{width:14px;height:14px;opacity:0;transform:scale(.6);transition:opacity 160ms ease,transform 240ms var(--ease)}
.est-mod__txt{display:grid;gap:2px;min-width:0}
.est-mod__k{font:600 16px/1.25 var(--f-display);letter-spacing:-.01em;color:var(--ink)}
.est-mod__d{font:400 14px/1.4 var(--f-body);color:var(--mute)}
.est-mod:hover .est-mod__face{box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--blue) 45%,transparent)}
.est-mod input:checked+.est-mod__face{background:var(--blue-wash);box-shadow:inset 0 0 0 1.5px var(--blue)}
.est-mod input:checked+.est-mod__face .est-mod__box{background:var(--blue-deep);background-image:var(--sheen);box-shadow:none}
.est-mod input:checked+.est-mod__face .est-mod__tick{opacity:1;transform:none}
.est-mod input:checked+.est-mod__face .est-mod__d{color:var(--ink-2)}

/* ---------- build size ---------- */
.est-sizes__row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.est-size__face{position:relative;display:grid;gap:2px;align-content:center;justify-items:center;min-height:58px;padding:8px 6px;border-radius:var(--r-btn);background:var(--white);box-shadow:inset 0 0 0 1px var(--hair);text-align:center;transition:background-color 160ms ease,box-shadow 160ms ease}
.est-size__k{font:700 15.5px/1.15 var(--f-display);letter-spacing:-.01em;color:var(--ink)}
.est-size__d{font:400 14px/1.2 var(--f-body);color:var(--mute)}
.est-size:hover .est-size__face{box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--blue) 45%,transparent)}
.est-size.is-suggested .est-size__face::after{content:"";position:absolute;top:7px;right:7px;width:7px;height:7px;border-radius:50%;background:var(--blue-light)}
.est-size input:checked+.est-size__face{background:var(--blue-deep);background-image:var(--sheen);box-shadow:var(--shadow)}
.est-size input:checked+.est-size__face .est-size__k{color:var(--white)}
.est-size input:checked+.est-size__face .est-size__d{color:var(--on-dark-2)}
.est-size.is-suggested input:checked+.est-size__face::after{background:var(--blue-pale)}
.est-suggest{margin-top:10px!important;font:500 14px/1.4 var(--f-body);color:var(--blue-mid)}

/* ---------- estimate card ---------- */
.est-card{display:grid;gap:14px;padding:16px;border-radius:var(--r-card);background:var(--blue-wash);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--blue) 14%,transparent)}
.est-chart{--bars-h:112px;display:flex;align-items:flex-end;gap:12px;min-height:calc(var(--bars-h) + 54px)}
.est-g{display:grid;gap:6px;min-width:0}
.est-g--build{flex:var(--n) 1 0;min-width:132px}
.est-g--after{flex:3 1 0;min-width:132px}
.est-g__val{font:700 15px/1.2 var(--f-display);letter-spacing:-.01em;color:var(--blue-deep);font-variant-numeric:tabular-nums}
.est-g--after .est-g__val{color:var(--blue-mid)}
.est-g__val span{font:500 14px/1.2 var(--f-body);letter-spacing:0;color:var(--ink-2)}
.est-g--build .est-g__val{white-space:nowrap}
.est-g--after .est-g__val{white-space:nowrap}
.est-g__bars{display:flex;align-items:flex-end;gap:4px;height:var(--bars-h)}
.est-g--after .est-g__bars{height:calc(var(--bars-h) * var(--h,.333))}
.est-bar{display:block;flex:1 1 0;max-width:44px;height:100%;border-radius:5px 5px 0 0;background:var(--blue-deep);background-image:var(--sheen);transform-origin:50% 100%}
.est-g--after .est-bar{background-color:var(--blue-light);opacity:var(--o,1)}
.est-g__cap{padding-top:7px;border-top:1.5px solid color-mix(in srgb,var(--blue-mid) 38%,transparent);font:500 14px/1.25 var(--f-body);color:var(--ink-2);white-space:nowrap}
.est-chart.is-anim .est-bar{animation:est-rise 520ms var(--ease) both;animation-delay:calc(var(--i,0) * 45ms)}
.est-chart.is-anim .est-g__val{animation:est-fade 420ms ease both;animation-delay:120ms}
@keyframes est-rise{from{transform:scaleY(0);opacity:0}to{transform:none;opacity:var(--o,1)}}
/* Enterprise: no number, only empty outlines */
.est-chart--contact{display:grid;align-content:end;gap:6px}
.est-ghost{display:flex;align-items:flex-end;gap:4px;height:var(--bars-h)}
.est-ghost i{display:block;flex:1 1 0;max-width:44px;height:100%;border-radius:5px 5px 0 0;border:1.5px dashed color-mix(in srgb,var(--blue-mid) 42%,transparent);border-bottom:0}
.est-ghost i:nth-child(n+7){height:33.3%}
.est-chart--contact.is-anim .est-ghost i{animation:est-fade 420ms ease both;animation-delay:calc(var(--i,0) * 30ms)}

.est-sum{display:grid;gap:2px;font-variant-numeric:tabular-nums}
.est-sum__a{font:500 16px/1.4 var(--f-body);color:var(--ink)}
.est-sum__b{font:500 16px/1.4 var(--f-body);color:var(--ink)}
.est-sum b{font-weight:700;font-family:var(--f-display);letter-spacing:-.01em;color:var(--blue-deep)}
.est-note{font:400 14px/1.45 var(--f-body);color:var(--mute);text-wrap:pretty}

.est-more{display:inline-flex;align-items:center;gap:8px;justify-self:start;min-height:44px;padding:0 2px;font:600 15px/1.2 var(--f-display);color:var(--ink-2);text-decoration:none;transition:color 160ms ease}
.est-more svg{flex:none;width:16px;height:16px;transition:transform 200ms var(--ease)}
.est-more:hover{color:var(--blue-mid)}
.est-more:hover svg{transform:translateX(3px)}

/* ---------- foot: the running total and the one green button ---------- */
.est__foot{flex:none;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 16px calc(10px + env(safe-area-inset-bottom,0px));border-top:1px solid var(--hair);background:var(--white)}
.est-total{display:grid;gap:1px;min-width:0;font-variant-numeric:tabular-nums}
.est-total b{font:700 17px/1.2 var(--f-display);letter-spacing:-.02em;color:var(--ink)}
.est-total span{font:400 14px/1.3 var(--f-body);color:var(--mute)}
/* the site's green button; these rules only matter on a page that does not load system.css */
.est__wa{position:relative;flex:none;display:inline-flex;align-items:center;justify-content:center;gap:10px;height:48px;padding:0 20px;border-radius:var(--r-btn);background:var(--wa);background-image:var(--wa-grad);color:var(--wa-ink);font:700 16px/1 var(--f-display);letter-spacing:-.01em;white-space:nowrap;text-decoration:none;box-shadow:0 0 0 1px color-mix(in srgb,var(--wa-deep) 22%,transparent),0 6px 18px -6px color-mix(in srgb,var(--wa) 70%,transparent)}
.est__wa .wa-i{flex:none;width:20px;height:20px;display:block}

@media (max-width:399px){
  .est-sum__a,.est-sum__b{font-size:14px}
  .est__wa{padding:0 14px;gap:8px}
  .est__foot{gap:10px}
}

/* ---------- wider phones and tablets ---------- */
@media (min-width:480px){
  .est-sizes__row{grid-template-columns:repeat(4,minmax(0,1fr))}
  .est-mods__list{grid-template-columns:repeat(2,minmax(0,1fr))}
  .est-art{width:128px}
  .est-banner{min-height:128px}
}
@media (min-width:600px){
  .est-bar,.est-ghost i{max-width:64px}
  .est-depts{display:flex!important}
  .est-dept,.est-dept:nth-child(n+4){flex:1 1 auto}
}

/* ---------- desktop: a centred card ---------- */
@media (min-width:860px){
  dialog.est{inset:0;margin:auto;width:min(920px,calc(100% - 48px));height:fit-content;max-height:min(calc(100dvh - 40px),820px);border-radius:var(--r-lg);box-shadow:var(--shadow-lift)}
  .est__head{padding:14px 14px 14px 28px;border-bottom:0}
  .est__title{font-size:24px}
  .est__body{padding:4px 28px 24px;gap:20px}
  .est__cols{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:28px}
  .est-mods__list{grid-template-columns:1fr}
  .est-art{width:132px}
  .est-banner{min-height:132px;gap:18px}
  .est-banner__name{font-size:26px}
  .est-card{padding:20px;gap:16px}
  .est-chart{--bars-h:168px}
  .est-bar,.est-ghost i{max-width:44px}
  .est__foot{padding:14px 28px}
  .est-total{display:flex;align-items:baseline;gap:10px}
  .est-total b{font-size:20px}
  .est-total span{font-size:15px}
}

/* ---------- still: reduced motion, the page's pause switch ---------- */
dialog.est.is-still,dialog.est.is-still::backdrop,dialog.est.is-still *{animation:none!important;transition:none!important}
body.paused dialog.est,body.paused dialog.est::backdrop,body.paused dialog.est *{animation:none!important;transition:none!important}
@media (prefers-reduced-motion:reduce){
  dialog.est,dialog.est::backdrop,dialog.est *{animation:none!important;transition:none!important}
}

/* CY 15 Nov: the monthly fee includes up to RM1,000 of token usage */
.est-sum__c{margin:6px 0 0;font:400 14px/1.4 var(--f-body);color:var(--mute)}
.est-total__inc{display:none}
@media (min-width:900px){.est-total__inc{display:inline}}
