:root {
  color-scheme: light;
  --ink: #10233b;
  --subtle: #42586c;
  --line: #cfdae2;
  --dark: #132d47;
  --accent: #066477;
  --light: #e7f2f4;
  font: 16px/1.5 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #f5f8fa;
}
* { box-sizing: border-box }
body { margin: 0 }
main { width: min(1120px, calc(100% - 48px)); margin: 0 auto; padding: 28px 0 42px }
header { display: flex; justify-content: space-between; align-items: center; padding-bottom: 20px; border-bottom: 1px solid var(--line) }
.wordmark { color: var(--dark); font-size: 1.65rem; font-weight: 900; letter-spacing: -.07em; text-decoration: none }
.wordmark span { margin-left: .35rem; font-weight: 650; letter-spacing: -.04em }
.demo-label { color: var(--subtle); font-size: .9rem; font-weight: 650 }
.intro { padding: clamp(24px, 5vw, 52px) 0 24px }
h1, h2, p { margin: 0 }
h1 { font-size: clamp(2.35rem, 5.2vw, 4.65rem); line-height: 1; letter-spacing: -.062em; font-weight: 790 }
.intro p { margin-top: 16px; max-width: 60ch; color: var(--subtle); font-size: 1.1rem }
nav { display: flex; gap: .45rem; margin-bottom: 12px; flex-wrap: wrap }
button { font: inherit; font-weight: 690; cursor: pointer; border: 1px solid transparent; border-radius: .6rem; padding: .65rem .9rem }
button:focus-visible, input:focus-visible, a:focus-visible { outline: 3px solid #087c99; outline-offset: 3px }
.step { background: transparent; color: var(--subtle); padding: .48rem .75rem; font-size: .9rem }
.step[aria-current] { color: #093b46; background: var(--light); border-color: #b7d4da }
.step:hover, .secondary:hover { background: var(--light) }
.primary { background: var(--dark); color: white; margin-top: 18px }
.primary:hover { background: #234b6d }
.secondary { background: white; color: var(--ink); border-color: var(--line); margin-top: 18px }
.workspace { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); background: white; border: 1px solid var(--line); border-radius: 1rem; overflow: hidden; box-shadow: 0 16px 38px #123b5a0b }
.image { margin: 0; position: relative; display: flex; align-items: stretch }
.facade { width: 100%; min-height: 380px; position: relative; isolation: isolate; overflow: hidden; background: radial-gradient(ellipse at 75% 15%, #f6f7eeaa, transparent 40%), linear-gradient(#98c4da 0%, #d7e8e8 72%, #c7cbc0 72%, #e0dfd3 100%) }
.facade::before { content: ""; position: absolute; inset: auto -12% 13% -12%; height: 11%; transform: skewY(-2deg); background: #69716b; opacity: .24; filter: blur(8px) }
.house { position: absolute; inset: 0 }
.wall { position: absolute; left: 10%; right: 10%; top: 39%; bottom: 17%; border-bottom: .65rem solid #806e5b; background: linear-gradient(90deg, #0002, transparent 20%, #fff1 56%, #0002), repeating-linear-gradient(0deg,#a35339 0 7px,#bd7860 7px 8px,#ac5d44 8px 14px,#bb775e 14px 15px); box-shadow: 10px 12px 20px #33483f45 }
.roof { position: absolute; left: 6%; right: 6%; top: 17%; height: 28%; clip-path: polygon(0 100%, 22% 0, 78% 0, 100% 100%); background: repeating-linear-gradient(2deg, #3e4c54 0 5px, #333e47 5px 7px); filter: drop-shadow(0 4px 4px #0005) }
.gutter { position: absolute; top: 43.5%; left: 6%; right: 6%; height: 2%; background: #27333c; z-index: 1 }
.window, .door { position: absolute; border: .31rem solid #f4e9d8; background: linear-gradient(148deg,#6b91a2,#b0c9d0 50%,#446375 52%,#7295a2); box-shadow: 0 3px 4px #4122178c, inset 0 0 0 2px #405d66 }
.window::after { content: ""; position: absolute; width: 4px; background: #eee5d8; top: 0; bottom: 0; left: 49% }
.west { top: 59%; left: 17%; width: 25%; height: 16% }
.east { top: 59%; left: 59%; width: 22%; height: 16% }
.top { top: 34%; left: 44%; width: 14%; height: 10%; z-index: 2 }
.door { top: 59%; left: 46%; width: 10%; bottom: 17%; background: linear-gradient(#28494c, #386062); box-shadow: 0 3px 3px #41221775 }
.measure { display: none; position: absolute; z-index: 3; outline: 2px solid #dcff8c; outline-offset: 3px; border-radius: 1px }
.facade.measured .measure { display: block }
.measure span { position: absolute; top: -1.55rem; left: -4px; background: #dcff8c; color: #223b27; padding: .05rem .35rem; font-size: .8rem; font-weight: 800 }
.measure.excluded { outline: 2px dashed #e2e8e9; opacity: .43 }
.measure.excluded span { background: #e2e8e9 }
figcaption { position: absolute; bottom: 13px; left: 14px; padding: .24rem .55rem; border-radius: .3rem; background: #132d47; color: white; font-size: .8rem }
.content { min-width: 0; padding: clamp(20px, 3.2vw, 36px) }
.panel h2 { font-size: clamp(1.35rem, 2.4vw, 1.8rem); line-height: 1.12; letter-spacing: -.035em }
.panel p { color: var(--subtle); margin-top: .7rem }
.scope { margin-top: 1.15rem; display: grid; padding: .75rem .85rem; gap: .18rem; border: 1px solid var(--line); border-radius: .55rem; background: #f7fafb }
.scope span { color: var(--subtle); font-size: .87rem }
.measurements, dl { margin: .9rem 0 0 }
.measurements > div { display: grid; grid-template-columns: 1.1rem minmax(0, 1fr) 4.3rem 1.45rem; gap: .42rem; align-items: center; min-height: 2.75rem; border-bottom: 1px solid var(--line) }
.measurements input[type="checkbox"] { width: 1rem; height: 1rem; margin: 0; accent-color: var(--accent) }
.measurements input[type="number"] { width: 100%; border: 1px solid #aebfc8; border-radius: .3rem; padding: .25rem .25rem .25rem .42rem; font: inherit; color: var(--ink) }
.total-small, dl > div { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; font-variant-numeric: tabular-nums }
dl > div { border-bottom: 1px solid var(--line); padding: .45rem 0 }
dd { margin: 0; font-weight: 650 }
.quote-total { color: #075969; font-weight: 800; border-bottom: 0; margin-top: .4rem }
.quote-total dd { font-size: 1.75rem; font-weight: 790; line-height: 1 }
.notes { display: grid; gap: .52rem; margin-top: 15px; color: var(--subtle); font-size: .91rem }
.notes strong { color: var(--ink) }
@media (max-width: 760px) {
  main { width: min(100% - 28px, 540px); padding-top: 18px }
  .workspace { grid-template-columns: 1fr }
  .facade { min-height: 245px; aspect-ratio: 1.65 }
  .step { padding: .42rem .5rem }
  nav { gap: .18rem }
  .intro br { display: none }
}
@media (max-width: 350px) {
  .step { font-size: .79rem }
  .measurements > div { font-size: .9rem }
}
