/* Fit-out budget estimator */
.est-warning { background: var(--ink); color: var(--on-dark); padding: 14px var(--pad); font-family: var(--display); font-size: 1.125rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; text-align: center; }
.est-hero { padding-block: clamp(32px, 5vw, 72px) clamp(28px, 4vw, 56px); display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 20px clamp(24px, 5vw, 80px); align-items: end; }
.est-hero h1 { font-size: clamp(3rem, 8vw, 7rem); line-height: .9; }
.est-hero p { font-size: 1.1875rem; max-width: 30em; color: var(--muted); }
.est { padding-bottom: var(--section); }
.est-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 4vw, 72px); align-items: start; }
.est fieldset { margin: 0 0 clamp(36px, 5vw, 56px); padding: 0; border: 0; min-width: 0; }
.est legend { padding: 0; margin-bottom: 18px; font-family: var(--display); font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 700; line-height: 1; text-transform: uppercase; }
.est legend span { color: var(--brass-deep); margin-right: .35em; }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.tiles--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tile { position: relative; display: block; cursor: pointer; }
.tile input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tile > span { display: grid; gap: 4px; align-content: start; height: 100%; min-height: 76px; padding: 16px 18px; border: 1.5px solid var(--hair); background: var(--bone); transition: background .2s, border-color .2s; }
.tile b { font-family: var(--display); font-size: 1.375rem; font-weight: 600; line-height: 1.1; letter-spacing: .02em; text-transform: uppercase; }
.tile small { font-size: .9375rem; line-height: 1.4; color: var(--muted); }
.tile:hover > span { border-color: var(--olive); }
.tile input:checked + span { background: var(--brass); border-color: var(--ink); }
.tile input:checked + span small { color: var(--ink); }
.tile input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 3px; }
.area-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: stretch; }
.area-row input[type="text"] { flex: 1 1 200px; min-width: 0; min-height: 76px; padding: 0 20px; border: 1.5px solid var(--olive); border-radius: 0; background: var(--bone); color: var(--ink); font-family: var(--display); font-size: 2.5rem; font-weight: 700; }
.area-row input[type="text"]:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.area-row .tiles { flex: 0 0 auto; grid-template-columns: repeat(2, 110px); }
.est-hint { margin-top: 10px; font-size: .9375rem; color: var(--muted); }
.est-hint.is-error { color: #9a3412; font-weight: 500; }
.est-optional { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.est-field { display: grid; gap: 8px; }
.est-field label { font-family: var(--display); font-size: 1.0625rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }
.est-field label i { font-style: normal; text-transform: none; letter-spacing: 0; font-family: var(--sans); font-size: .9375rem; color: var(--muted); }
.est-field input { width: 100%; min-height: 52px; padding: 12px 14px; border: 1.5px solid var(--hair); border-radius: 0; background: var(--bone); color: var(--ink); font-size: 1rem; }
.est-field input:hover { border-color: var(--olive); }
.est-field input:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-color: var(--ink); }
.est-field input[aria-invalid="true"] { border-color: #9a3412; }
.est-field .err { font-size: .9375rem; color: #9a3412; }

.est-side { position: sticky; top: calc(var(--nav-h) + 20px); display: grid; gap: 0; background: var(--ink); color: var(--on-dark); --hair: var(--hair-light); --muted: var(--on-dark-muted); }
.est-side > div { padding: clamp(20px, 2.6vw, 32px); }
.est-side h2 { font-size: clamp(1.75rem, 2.6vw, 2.25rem); line-height: 1; color: var(--on-dark); }
.brief { margin: 16px 0 0; display: grid; gap: 0; }
.brief > div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 9px 0; border-top: 1px solid var(--hair-light); }
.brief dt { font-family: var(--display); font-size: 1rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--brass); }
.brief dd { margin: 0; }
.gate { border-top: 1px solid var(--hair-light); background: var(--ink-2); }
.gate > p { margin-top: 8px; color: var(--on-dark-muted); }
.gate-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.gate .est-field input { background: rgba(243, 238, 230, .06); border-color: rgba(243, 238, 230, .35); color: var(--on-dark); }
.gate .est-field input:hover { border-color: rgba(243, 238, 230, .6); }
.gate .est-field input:focus-visible { outline-color: var(--brass); border-color: var(--brass); }
.gate .est-field input[aria-invalid="true"] { border-color: #f0b7a5; }
.gate .est-field .err { color: #f0b7a5; }
.gate .est-field label i { color: var(--on-dark-muted); }
.gate .btn { margin-top: 18px; width: 100%; justify-content: center; background: var(--brass); color: var(--ink); }
.gate .btn:hover { background: var(--cream); }
.gate .btn:disabled { opacity: .6; cursor: progress; }
.gate-small { margin-top: 12px; font-size: .875rem; line-height: 1.5; color: var(--on-dark-muted); }
.gate-status { margin-top: 10px; font-size: .9375rem; color: #f0b7a5; }
.gate-status a { color: var(--on-dark); }

.result { background: var(--brass); color: var(--ink); clip-path: polygon(0 0, 100% 2.5%, 100% 100%, 0 97.5%); padding-block: clamp(28px, 3.4vw, 44px) !important; }
.result-label { font-family: var(--display); font-size: 1.0625rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.result-range { margin-top: 6px; font-family: var(--display); font-size: clamp(2.5rem, 4.6vw, 4rem); font-weight: 700; line-height: .92; text-transform: uppercase; font-variant-numeric: tabular-nums; }
.result-sub { margin-top: 10px; font-weight: 500; }
.result-more { border-top: 1px solid var(--hair-light); }
.bars { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.bars li { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; font-size: .9375rem; }
.bars i { grid-column: 1 / -1; height: 6px; background: var(--hair-light); position: relative; }
.bars i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); background: var(--brass); }
.result-extras { margin: 16px 0 0; padding: 0; list-style: none; font-size: .9375rem; }
.result-extras li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-top: 1px solid var(--hair-light); }
.result-note { margin-top: 16px; font-size: .875rem; line-height: 1.5; color: var(--on-dark-muted); }
.result-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.result-actions .btn { background: var(--cream); color: var(--ink); flex: 1 1 auto; justify-content: center; }
.result-actions .btn-line { color: var(--on-dark); flex: 1 1 auto; justify-content: center; border: 1px solid rgba(243, 238, 230, .45); padding: 0 18px; min-height: 52px; }
.result-actions .btn-line::after { display: none; }

@media (max-width: 1000px) { .est-hero, .est-grid { grid-template-columns: minmax(0, 1fr); } .est-side { position: static; } }
@media (max-width: 640px) { .tiles, .tiles--2, .est-optional, .gate-fields { grid-template-columns: minmax(0, 1fr); } .area-row .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); flex: 1 1 100%; } }

/* a lighter, cleaner voice for the estimator: regular-width Barlow, sentence case, medium weight */
.est-hero h1 { font-family: var(--sans); font-weight: 300; font-size: clamp(2.5rem, 5.4vw, 4.75rem); line-height: 1.02; letter-spacing: -.02em; text-transform: none; }
.est legend { font-family: var(--sans); font-weight: 500; font-size: clamp(1.25rem, 1.7vw, 1.5rem); line-height: 1.2; letter-spacing: -.005em; text-transform: none; }
.est legend span { font-weight: 400; }
.tile b { font-family: var(--sans); font-weight: 500; font-size: 1.0625rem; line-height: 1.25; letter-spacing: 0; text-transform: none; }
.tile small { font-size: .875rem; }
.area-row input[type="text"] { font-family: var(--sans); font-weight: 400; font-size: 1.75rem; letter-spacing: -.01em; }
.est-field label { font-family: var(--sans); font-weight: 500; font-size: .9375rem; letter-spacing: 0; text-transform: none; }
.est-side h2 { font-family: var(--sans); font-weight: 500; font-size: 1.375rem; line-height: 1.2; letter-spacing: -.005em; text-transform: none; }
.brief dt { font-family: var(--sans); font-weight: 400; font-size: .9375rem; letter-spacing: 0; text-transform: none; }
.gate .btn, .result-actions .btn, .result-actions .btn-line { font-family: var(--sans); font-weight: 500; font-size: 1rem; letter-spacing: 0; text-transform: none; }
.result-label { font-family: var(--sans); font-weight: 500; font-size: .9375rem; letter-spacing: 0; text-transform: none; }
.result-range { font-family: var(--sans); font-weight: 400; font-size: clamp(1.75rem, 2.9vw, 2.5rem); line-height: 1.1; letter-spacing: -.02em; text-transform: none; }
.est-warning { font-family: var(--sans); font-weight: 500; font-size: 1rem; letter-spacing: 0; text-transform: none; }

/* ── the playful layer: shapes, slanted tiles, a drawing that follows the answers ── */
.est-hero { position: relative; align-items: center; }
.est-hero h1 { position: relative; z-index: 0; padding: .55em .5em .6em 0; }
.est-hero h1::before { content: ""; position: absolute; z-index: -1; inset: 0 -4% 0 -12%; background: var(--brass); clip-path: polygon(0 10%, 96% 0, 100% 62%, 84% 100%, 40% 90%, 6% 100%); }
.est legend { display: flex; align-items: baseline; gap: .4em; }
.est legend span { font-family: var(--display); font-weight: 700; font-size: 2.75rem; line-height: .8; color: var(--brass); margin: 0; }
.tile > span { border: 0; background: var(--cream); transition: background .2s, transform .25s var(--ease); }
.tile:nth-child(3n+1) > span { clip-path: polygon(0 0, 100% 5%, 98% 100%, 2% 95%); }
.tile:nth-child(3n+2) > span { clip-path: polygon(2% 4%, 100% 0, 100% 96%, 0 100%); }
.tile:nth-child(3n) > span { clip-path: polygon(0 3%, 97% 0, 100% 100%, 3% 97%); }
.tile:hover > span { background: var(--cream); transform: rotate(-1deg) scale(1.02); }
.tile:nth-child(even):hover > span { transform: rotate(1deg) scale(1.02); }
.tile input:checked + span { background: var(--olive); color: var(--bone); transform: none; }
.tile input:checked + span small { color: var(--on-dark-muted); }
.tile input:checked + span b::after { content: ""; display: inline-block; width: .5em; height: .6em; margin-left: .5em; background: var(--brass); clip-path: polygon(0 0, 100% 50%, 0 100%); }
.tile input:focus-visible + span { outline: 0; box-shadow: inset 0 0 0 3px var(--brass-deep); }
.area-row input[type="text"] { border: 0; border-bottom: 3px solid var(--ink); background: transparent; padding-inline: 4px; }
.area-row input[type="text"]:focus-visible { outline: 0; border-bottom-color: var(--brass-deep); background: var(--cream); }
.est-field input { border-width: 0 0 2px; background: var(--cream); }
.est-side { background: none; filter: drop-shadow(0 0 0 transparent); }
.est-side > div:first-child { background: var(--ink); clip-path: polygon(0 3%, 100% 0, 100% 100%, 0 100%); padding-top: clamp(30px, 3.4vw, 44px); }
.est-side .gate { clip-path: polygon(0 0, 100% 0, 100% 97%, 94% 100%, 0 98%); padding-bottom: clamp(30px, 3.4vw, 44px); }
.est-side .result-more { background: var(--ink); clip-path: polygon(0 0, 100% 0, 100% 98%, 60% 100%, 0 97%); padding-bottom: clamp(30px, 3.4vw, 44px); }
.gate .btn { clip-path: polygon(0 8%, 100% 0, 98% 100%, 2% 92%); min-height: 60px; transition: transform .25s var(--ease), background .2s; }
.gate .btn:hover { transform: rotate(-1deg); }
.gate .est-field input { border-width: 0 0 2px; }
.sketch { display: block; width: 100%; height: auto; margin-bottom: 18px; overflow: visible; }
.sketch .ln { fill: none; stroke: var(--cream); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.sketch .thin { fill: none; stroke: var(--sage); stroke-width: 1; vector-effect: non-scaling-stroke; }
.sketch .dash { stroke-dasharray: 4 5; }
.sketch .f-brass { fill: var(--brass); } .sketch .f-olive { fill: var(--olive); } .sketch .f-cream { fill: var(--cream); }
.sketch text { font-family: var(--display); font-size: 11px; font-weight: 500; letter-spacing: .08em; fill: var(--brass); }
@media (prefers-reduced-motion: no-preference) { .sketch .pop { animation: pop .45s var(--ease) both; transform-box: fill-box; transform-origin: 50% 100%; } }
@keyframes pop { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
@media (max-width: 1000px) { .est-hero h1::before { inset: 0 -6% 0 -8%; } }

.result-extras { margin-top: 14px; }
.result-extras li:first-child { border-top: 0; }
.result-key { margin-top: 18px; padding: 14px 16px; background: var(--brass); color: var(--ink); font-weight: 500; line-height: 1.4; clip-path: polygon(0 0, 100% 6%, 99% 100%, 1% 94%); }
.result-warn { color: #f0b7a5; }
