/* GLN draft 16 — Configurator. Plain CSS, no build step. */

@font-face {
  font-family: "Mona Sans";
  src: url("fonts/mona-sans-latin-var.woff2") format("woff2");
  font-weight: 200 900;
  font-stretch: 75% 125%;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Arial scaled to Mona Sans' average width and vertical metrics, so a late font load doesn't reflow. */
@font-face {
  font-family: "Mona Fallback";
  src: local("Arial"), local("Helvetica");
  size-adjust: 104%;
  ascent-override: 104.8%;
  descent-override: 30.8%;
  line-gap-override: 0%;
}

:root {
  --canvas: #FAFAFA;
  --ink: #1F2124;
  --panel: #EEF0F2;
  --action: #1E8E5A;
  --action-dark: #187A4D;
  --muted: #5B6068;
  --line: #DCDFE3;
  --line-strong: #8A9097;
  --white: #FFFFFF;
  --ink-2: #2B2E32;
  --on-ink-muted: #A9AEB5;

  /* 1px up to 1440 wide, growing to 1.5px at 2560: layout, display type, spacing. */
  --u: clamp(1px, calc(1px + (100vw - 1440px) / 2240), 1.5px);
  /* 1px up to 1440, 1.3px at 2560: running text. */
  --t: clamp(1px, calc(1px + (100vw - 1440px) * 0.3 / 1120), 1.3px);

  --header-h: calc(64 * var(--u));
  --gutter: calc(40 * var(--u));
  --font: "Mona Sans", "Mona Fallback", system-ui, sans-serif;
  --ease-out: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: calc(16 * var(--t)); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.55;
  font-weight: 420;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
h1, h2, h3, p, dl, dd, figure, ul, ol { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
.num { font-variant-numeric: tabular-nums; }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

:focus-visible { outline: 2px solid var(--action); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: 12px; top: -80px; z-index: 100; background: var(--ink); color: var(--canvas); padding: 12px 16px; border-radius: 8px; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: 0 1.35em;
  border-radius: 999px; border: 1.5px solid transparent;
  font-size: max(19px, 1.1875rem); font-weight: 700; line-height: 1; letter-spacing: -0.005em;
  text-decoration: none; white-space: nowrap;
  transition: background-color .18s, border-color .18s, color .18s, transform .18s var(--ease-out);
}
.btn:active { transform: scale(.98); }
/* White on #1E8E5A is 4.15:1, so primary labels stay at 19px+ bold (WCAG large text). */
.btn-primary { background: var(--action); color: var(--white); }
.btn-primary:hover { background: var(--action-dark); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); font-weight: 600; font-size: max(17px, 1.0625rem); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-quiet { min-height: 44px; padding: 0 .25em; background: none; border: 0; border-radius: 4px; font-size: .9375rem; font-weight: 550; text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1px; color: var(--ink); }
.btn[disabled] { opacity: .35; pointer-events: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 30;
  height: var(--header-h);
  display: flex; align-items: center; gap: calc(40 * var(--u));
  padding: 0 var(--gutter);
  background: rgba(250, 250, 250, .94);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.wordmark {
  font-weight: 720; font-stretch: 125%; letter-spacing: .01em;
  font-size: calc(24 * var(--u)); line-height: 1; text-decoration: none;
  display: inline-flex; align-items: center; min-height: 44px;
}
.site-nav { margin-left: auto; }
.site-nav ul { display: flex; gap: calc(32 * var(--u)); }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; font-size: .9375rem; font-weight: 520; color: var(--ink); }
.site-nav a:hover { text-decoration: underline; text-underline-offset: .3em; text-decoration-thickness: 1px; }
.btn-header { min-height: calc(44 * var(--u)); }
.menu-btn { display: none; }

/* ---------- Configurator ---------- */
.config {
  display: grid;
  grid-template-columns: minmax(0, 62fr) minmax(0, 38fr);
  align-items: start;
  border-bottom: 1px solid var(--line);
}
.preview {
  position: sticky; top: var(--header-h);
  height: calc(100svh - var(--header-h));
  min-height: 420px;
  background: var(--panel);
  overflow: hidden;
}
.stage { position: absolute; inset: 0; overflow: hidden; }
.stage-photo { position: absolute; inset: 0; }
.room-layer { position: absolute; inset: 0; transition: opacity .5s var(--ease-out); }
.room-layer img { position: absolute; left: 0; top: 0; width: 100%; height: 100%; object-fit: cover; object-position: 100% 50%; max-width: none; }
.stage.cam .room-layer img { object-fit: fill; transform-origin: 0 0; will-change: transform; }
.room-layer.is-leaving { opacity: 0; }
.room-layer.is-entering { opacity: 0; }

.stage-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: hidden; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.stage-svg text { font-family: var(--font); font-variant-numeric: tabular-nums; }
.panel { cursor: grab; outline: none; transition: opacity .25s; }
.stage.is-dragging .panel { cursor: grabbing; }
.panel .p-focus { fill: none; stroke: var(--action); stroke-width: 2.5; opacity: 0; vector-effect: non-scaling-stroke; }
.panel:focus-visible .p-focus { opacity: 1; }
.panel.is-swapping { opacity: 0; }
.p-hit { fill: transparent; }

.dims line, .dims path { stroke: var(--ink); stroke-width: 1.25; fill: none; vector-effect: non-scaling-stroke; }
.dims .dim-bg { fill: rgba(250, 250, 250, .92); stroke: none; }
.dims text { fill: var(--ink); font-weight: 600; }
.dims .dim-unit { fill: var(--muted); font-weight: 500; }
.dims { transition: opacity .3s; }
.dims.is-hidden { opacity: 0; }

.guides { opacity: 0; transition: opacity .25s; }
.guides.is-on { opacity: 1; }
.guides .g-ok { stroke: var(--action); stroke-width: 4; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.guides .g-no { stroke: var(--ink); stroke-width: 1.5; stroke-dasharray: 5 6; opacity: .55; vector-effect: non-scaling-stroke; }
.guides .g-spot { fill: var(--action); }
.guides .g-block { fill: rgba(31, 33, 36, .06); stroke: rgba(31, 33, 36, .35); stroke-dasharray: 6 6; stroke-width: 1; vector-effect: non-scaling-stroke; }
.guides .g-block-label { fill: var(--ink); font-weight: 600; }
.guides .g-block-bg { fill: rgba(250, 250, 250, .92); }
.own-guides line { stroke-width: 2; vector-effect: non-scaling-stroke; }
.own-guides .og-floor { stroke: var(--action); }
.own-guides .og-ceil { stroke: var(--ink); stroke-dasharray: 8 6; }
.own-guides .og-handle { fill: var(--white); stroke-width: 2; vector-effect: non-scaling-stroke; cursor: ns-resize; }
.own-guides .og-handle.floor { stroke: var(--action); }
.own-guides .og-handle.ceil { stroke: var(--ink); }
.own-guides text { font-weight: 600; fill: var(--ink); }
.own-guides .og-label-bg { fill: rgba(250, 250, 250, .92); }

.stage-tag {
  position: absolute; margin: 0;
  display: inline-flex; align-items: center; gap: .5em;
  padding: .45em .8em; border-radius: 999px;
  background: rgba(250, 250, 250, .9);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  font-size: max(13px, .8125rem); font-weight: 520; line-height: 1.2; color: var(--ink);
  pointer-events: none;
}
.stage-tag-photo { left: calc(20 * var(--u)); bottom: calc(20 * var(--u)); }
.stage-hint { right: calc(20 * var(--u)); top: calc(20 * var(--u)); transition: opacity .4s, transform .4s var(--ease-out); }
.stage-hint.is-gone { opacity: 0; transform: translateY(6px); }
.stage-fit {
  position: absolute; left: calc(20 * var(--u)); top: calc(20 * var(--u)); margin: 0;
  display: inline-flex; align-items: center; gap: .6em;
  max-width: calc(55% - 40 * var(--u));
  padding: .5em .85em; border-radius: 10px;
  background: rgba(250, 250, 250, .92);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  font-size: max(13px, .8125rem); font-weight: 520; line-height: 1.3;
  pointer-events: none; transition: opacity .3s;
}
.stage-fit:empty { opacity: 0; }
.stage-fit::before { content: ""; width: .6em; height: .6em; border-radius: 50%; background: var(--action); flex: none; }
.stage-fit.is-tight::before { background: transparent; box-shadow: inset 0 0 0 2px var(--ink); }
.stage-noscript { position: absolute; left: 20px; top: 20px; margin: 0; padding: 10px 14px; background: var(--canvas); border-radius: 10px; }

/* Controls column */
.controls {
  display: flex; flex-direction: column;
  min-height: calc(100svh - var(--header-h));
  padding: calc(40 * var(--u)) var(--gutter) calc(28 * var(--u));
  background: var(--canvas);
}
.controls-head h1 {
  font-size: calc(44 * var(--u));
  font-weight: 560; font-stretch: 112%;
  line-height: 1.02; letter-spacing: -0.028em;
  max-width: 13em;
}
.controls-head h1 .line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.controls-head h1 .line > span { display: inline-block; }
.lede { margin-top: calc(14 * var(--u)); color: var(--muted); max-width: 34em; font-size: 1rem; line-height: 1.5; }

.stepper { margin-top: calc(26 * var(--u)); border-bottom: 1px solid var(--line); }
.stepper ol { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.stepper-btn {
  position: relative; display: flex; align-items: baseline; gap: .45em;
  min-height: 48px; padding: calc(10 * var(--u)) 2px calc(12 * var(--u));
  text-decoration: none; color: var(--muted);
  font-size: .9375rem; font-weight: 560; line-height: 1.2;
}
.stepper-num { font-variant-numeric: tabular-nums; font-size: .8125rem; font-weight: 600; color: var(--muted); }
.stepper-btn.is-done { color: var(--ink); }
.stepper-btn.is-done .stepper-num { color: var(--action-dark); }
.stepper-btn[aria-current="step"] { color: var(--ink); }
.stepper-btn[aria-current="step"] .stepper-num { color: var(--ink); }
.stepper-btn:hover { color: var(--ink); }
.stepper-mark { position: absolute; left: 0; right: 6px; bottom: -1px; height: 3px; border-radius: 2px; background: var(--action); }

.config-form { display: flex; flex-direction: column; flex: 1; }
.steps { position: relative; flex: 1; }
.step { padding-top: calc(24 * var(--u)); }
.steps.is-paged .step:not(.is-active) { display: none; }
.steps:not(.is-paged) .step + .step { margin-top: calc(28 * var(--u)); border-top: 1px solid var(--line); }
.step-title { font-size: calc(22 * var(--u)); font-weight: 600; font-stretch: 105%; letter-spacing: -0.012em; line-height: 1.2; outline: none; }
.step-help { margin-top: 4px; color: var(--muted); font-size: .9375rem; }
.touch-hint { display: none; }
.note { color: var(--muted); font-size: max(14px, .875rem); line-height: 1.45; }

/* Room tiles */
.tiles { border: 0; margin: calc(16 * var(--u)) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: calc(14 * var(--u)) calc(12 * var(--u)); }
.tile { position: relative; display: block; cursor: pointer; }
.tile input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tile picture, .tile-own-art { display: block; aspect-ratio: 4 / 3; border-radius: 5px; overflow: hidden; background: var(--panel); }
.tile picture img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease-out); }
.tile:hover picture img { transform: scale(1.03); }
.tile-name { display: block; margin-top: 7px; font-size: max(14px, .875rem); font-weight: 540; line-height: 1.25; color: var(--muted); }
.tile:has(input:checked) .tile-name { color: var(--ink); }
.tile-sub { display: block; font-weight: 450; color: var(--muted); font-size: max(13px, .8125rem); }
.tile-own-art { display: flex; align-items: center; justify-content: center; border: 1.5px dashed var(--line-strong); background: transparent; color: var(--ink); }
.tile-ring { position: absolute; inset: -5px; border: 2px solid var(--action); border-radius: 9px; pointer-events: none; }
.tile:has(input:focus-visible) { outline: 2px solid var(--action); outline-offset: 8px; border-radius: 6px; }

.own-calib { margin-top: calc(18 * var(--u)); padding: calc(16 * var(--u)); border-radius: 10px; background: var(--panel); display: grid; gap: 12px; }
.own-calib-lead { font-size: .9375rem; }
.field-row { display: grid; gap: 4px; }
.field-row label { font-size: max(14px, .875rem); font-weight: 550; }
.field-row-inline { grid-auto-flow: column; justify-content: start; align-items: center; gap: 12px; }
.field-row select { min-height: 44px; border: 1.5px solid var(--line-strong); border-radius: 8px; padding: 0 12px; background: var(--white); }

/* Range sliders */
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; background: transparent; margin: 0; --p: 50%; }
input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--action) var(--p), #C9CDD2 var(--p)); }
input[type="range"]::-moz-range-track { height: 6px; border-radius: 3px; background: #C9CDD2; }
input[type="range"]::-moz-range-progress { height: 6px; border-radius: 3px; background: var(--action); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -10px; border-radius: 50%; background: var(--white); border: 2px solid var(--ink); box-shadow: 0 1px 3px rgba(31, 33, 36, .25); }
input[type="range"]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--white); border: 2px solid var(--ink); }
input[type="range"]:focus-visible { outline: none; }
input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px var(--canvas), 0 0 0 5px var(--action); }

/* Step 2: area */
.area { margin-top: calc(14 * var(--u)); }
.area-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.area-head label { font-weight: 550; font-size: .9375rem; }
.area-value { font-size: calc(40 * var(--u)); font-weight: 560; font-stretch: 110%; letter-spacing: -0.03em; line-height: 1; }
.area-value .num { display: inline-block; min-width: 1.3em; text-align: right; }
.area-scale { display: flex; justify-content: space-between; color: var(--muted); font-size: max(13px, .8125rem); margin-top: -4px; }
.size-row { margin-top: calc(14 * var(--u)); display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: calc(14 * var(--u)); align-items: stretch; }
.plan-wrap { margin: 0; display: grid; gap: 6px; align-content: start; }
.plan { width: 100%; height: auto; display: block; background: var(--panel); border-radius: 10px; }
.plan-room { fill: var(--white); stroke: var(--ink); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.plan-grid line { stroke: #B9BEC4; stroke-width: 1; stroke-dasharray: 3 3; vector-effect: non-scaling-stroke; }
.plan-panel { fill: var(--ink); }
.plan-cap { font-size: max(13px, .8125rem); color: var(--muted); line-height: 1.35; }
.count { display: grid; align-content: center; justify-items: start; gap: calc(8 * var(--u)); padding: calc(14 * var(--u)) calc(16 * var(--u)); border: 1px solid var(--line); border-radius: 10px; }
.count-label { font-weight: 600; font-size: .9375rem; }
.count-rec { color: var(--muted); font-size: max(14px, .875rem); line-height: 1.3; }
.count-ctrl { display: flex; align-items: center; gap: 6px; }
.count-btn { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line-strong); background: var(--white); font-size: 1.25rem; line-height: 1; display: grid; place-items: center; }
.count-btn:hover { border-color: var(--ink); }
.count-num { min-width: 1.6ch; text-align: center; font-size: calc(40 * var(--u)); font-weight: 580; font-stretch: 108%; letter-spacing: -0.03em; line-height: 1; }
.count-reset { min-height: 44px; }
#areaNote { margin-top: 10px; }

/* Segmented controls */
.seg { border: 0; margin: calc(18 * var(--u)) 0 0; padding: 0; min-width: 0; }
.seg legend { padding: 0; margin-bottom: 7px; font-size: max(14px, .875rem); font-weight: 600; }
.seg-track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 2px; padding: 4px; background: var(--panel); border-radius: 12px; }
.seg label { position: relative; display: flex; align-items: center; justify-content: center; min-height: calc(46 * var(--u)); cursor: pointer; border-radius: 9px; }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg label > span:first-of-type { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: .45em; font-size: .9375rem; font-weight: 520; color: var(--muted); transition: color .2s; white-space: nowrap; }
.seg label:has(input:checked) > span:first-of-type { color: var(--ink); font-weight: 620; }
.seg label:hover > span:first-of-type { color: var(--ink); }
.seg label:has(input:focus-visible) { outline: 2px solid var(--action); outline-offset: 1px; }
.seg-thumb { position: absolute; inset: 0; z-index: 0; background: var(--white); border-radius: 9px; box-shadow: 0 1px 2px rgba(31, 33, 36, .14), 0 0 0 1px rgba(31, 33, 36, .05); }
.seg-mount .seg-track label { min-height: calc(52 * var(--u)); }
.seg .legend-unit { display: none; }
.seg-note { margin-top: 8px; font-size: max(14px, .875rem); color: var(--muted); }
.fit { margin-top: calc(16 * var(--u)); display: flex; gap: .6em; align-items: baseline; font-size: .9375rem; font-weight: 520; min-height: 1.5em; }
.fit:empty { display: none; }
.fit::before { content: ""; flex: none; width: .6em; height: .6em; border-radius: 50%; background: var(--action); transform: translateY(-.05em); }
.fit.is-tight::before { background: transparent; box-shadow: inset 0 0 0 2px var(--ink); }
#outputNote { margin-top: 10px; }

/* Step 4: swatches */
.swatches { border: 0; margin: calc(16 * var(--u)) 0 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: calc(12 * var(--u)) calc(10 * var(--u)); }
.swatch { position: relative; display: block; cursor: pointer; text-align: center; }
.swatch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.swatch-chip {
  display: block; aspect-ratio: 3 / 5; border-radius: 4px;
  background-color: var(--c);
  background-image: linear-gradient(90deg,
    color-mix(in srgb, var(--c), #000 34%) 0%, color-mix(in srgb, var(--c), #000 8%) 16%,
    color-mix(in srgb, var(--c), #fff 38%) 42%, var(--c) 70%, color-mix(in srgb, var(--c), #000 40%) 100%);
  background-size: 9px 100%;
  box-shadow: inset 0 0 0 1px rgba(31, 33, 36, .12);
}
.swatch-metal .swatch-chip { background-image: linear-gradient(90deg, color-mix(in srgb, var(--c), #000 36%) 0%, color-mix(in srgb, var(--c), #000 6%) 18%, #F4F5F6 40%, color-mix(in srgb, var(--c), #fff 10%) 48%, var(--c) 70%, color-mix(in srgb, var(--c), #000 42%) 100%); }
.swatch-custom .swatch-chip { position: relative; }
.swatch-custom .swatch-chip::after { content: "+"; position: absolute; inset: auto 0 6px; color: var(--white); font-weight: 700; font-size: 1.1rem; text-shadow: 0 1px 2px rgba(0, 0, 0, .4); }
.swatch-name { display: block; margin-top: 6px; font-size: max(13px, .8125rem); font-weight: 540; color: var(--muted); }
.swatch:has(input:checked) .swatch-name { color: var(--ink); }
.swatch-ring { position: absolute; inset: -5px -5px auto; aspect-ratio: auto; height: calc(100% - 1.4em); border: 2px solid var(--action); border-radius: 8px; pointer-events: none; }
.swatch:has(input:focus-visible) { outline: 2px solid var(--action); outline-offset: 8px; border-radius: 6px; }
.finish-note { margin-top: calc(16 * var(--u)); font-size: .9375rem; }
.finish-note strong { font-weight: 650; }
.custom-colour { margin-top: 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; padding: 12px 14px; border-radius: 10px; background: var(--panel); }
.custom-colour > label { font-weight: 600; font-size: max(14px, .875rem); }
.custom-colour input[type="color"] { width: 52px; height: 44px; border: 1.5px solid var(--line-strong); border-radius: 8px; padding: 3px; background: var(--white); }
.custom-colour input[type="text"] { width: 7.5em; min-height: 44px; border: 1.5px solid var(--line-strong); border-radius: 8px; padding: 0 10px; background: var(--white); font-variant-numeric: tabular-nums; text-transform: uppercase; }
.custom-colour .note { flex-basis: 100%; }
#step-finish > .note:last-child { margin-top: 12px; }

/* Step 5: summary */
.sum { margin-top: calc(12 * var(--u)); }
.sum-row { display: grid; grid-template-columns: minmax(8em, 2fr) minmax(0, 3fr); gap: 12px; padding: calc(9 * var(--u)) 0; border-bottom: 1px solid var(--line); font-size: .9375rem; }
.sum-row dt { color: var(--muted); }
.sum-row dd { text-align: right; font-weight: 540; }
.sum-dot { display: inline-block; vertical-align: -0.1em; margin-right: .45em; width: .9em; height: .9em; border-radius: 3px; background: var(--dot, #B4B8BC); box-shadow: inset 0 0 0 1px rgba(31, 33, 36, .18); }
.sum-total { border-bottom: 0; padding-top: calc(14 * var(--u)); }
.sum-total dt { color: var(--ink); font-weight: 600; align-self: center; }
.sum-total dd { font-size: calc(24 * var(--u)); font-weight: 620; font-stretch: 106%; letter-spacing: -0.02em; }
.sum-note { margin-top: 4px; }
.contact { border: 0; margin: calc(22 * var(--u)) 0 0; padding: calc(18 * var(--u)) 0 0; border-top: 1px solid var(--line); }
.contact legend { font-weight: 650; font-size: 1.0625rem; padding: 0; float: left; width: 100%; margin-bottom: 12px; }
.contact-grid { clear: both; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; }
.field { display: grid; gap: 5px; align-content: start; }
.field-wide { grid-column: 1 / -1; }
.field label, .field legend { font-size: max(14px, .875rem); font-weight: 560; }
.optional { color: var(--muted); font-weight: 450; }
.field input, .field select, .field textarea {
  width: 100%; min-height: calc(48 * var(--u)); padding: 10px 12px;
  border: 1.5px solid var(--line-strong); border-radius: 8px; background: var(--white);
  font-size: 1rem; line-height: 1.3;
}
.field textarea { resize: vertical; min-height: calc(64 * var(--u)); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--action); outline: 2px solid color-mix(in srgb, var(--action), transparent 70%); outline-offset: 1px; }
.field input[aria-invalid="true"] { border-color: #B3261E; }
.field-err { font-size: max(14px, .875rem); color: #A1231B; }
.btn-send { margin-top: calc(18 * var(--u)); width: 100%; }
.sent { margin-top: 12px; padding: 12px 14px; border-radius: 10px; background: color-mix(in srgb, var(--action), #fff 88%); font-size: .9375rem; }
.sent strong { font-weight: 650; }

/* Controls foot */
.controls-foot { position: sticky; bottom: 0; z-index: 4; margin-top: calc(22 * var(--u)); padding: calc(14 * var(--u)) 0 calc(18 * var(--u)); background: var(--canvas); border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.mini { display: grid; gap: 1px; font-size: max(14px, .875rem); line-height: 1.3; }
.mini-spec { font-weight: 560; }
.mini-price { color: var(--muted); }
.mini-demo { font-size: max(12px, .75rem); border: 1px solid var(--line-strong); border-radius: 4px; padding: 0 .35em; margin-left: .2em; }
.foot-btns { display: flex; gap: 10px; margin-left: auto; }
.steps:not(.is-paged) ~ .controls-foot .foot-btns { display: none; }

/* ---------- Sections ---------- */
.sec { padding: calc(120 * var(--u)) var(--gutter); }
.sec-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: calc(64 * var(--u)); align-items: end; }
.sec h2 { font-size: calc(60 * var(--u)); font-weight: 560; font-stretch: 110%; letter-spacing: -0.035em; line-height: 1; }
.sec-lede { color: var(--muted); font-size: 1.125rem; line-height: 1.5; max-width: 34em; }
.sec h3 { font-size: calc(26 * var(--u)); font-weight: 600; font-stretch: 106%; letter-spacing: -0.015em; line-height: 1.15; }

.choice { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: calc(64 * var(--u)); padding-top: calc(48 * var(--u)); margin-top: calc(56 * var(--u)); border-top: 1px solid var(--line); }
.choice + .choice { margin-top: calc(48 * var(--u)); }
.choice-text { display: grid; gap: calc(14 * var(--u)); align-content: start; max-width: 32em; }
.choice-text strong { font-weight: 640; }
.choice-spec { font-size: 1rem; font-weight: 520; line-height: 1.6; padding-left: 14px; border-left: 3px solid var(--panel); }
.choice-art { margin: 0; }
.choice-art svg { width: 100%; height: auto; display: block; }
.choice-art figcaption { margin-top: 12px; color: var(--muted); font-size: max(14px, .875rem); max-width: 40em; }

.size-matrix { max-width: calc(900 * var(--u)); }
.size-matrix text { font-family: var(--font); font-variant-numeric: tabular-nums; font-size: 19px; fill: var(--muted); font-weight: 520; }
.sm-floor { stroke: var(--ink); stroke-width: 1.5; }
.sm-door { fill: none; stroke: var(--line-strong); stroke-width: 1.25; stroke-dasharray: 6 5; }
.sm-ticks line { stroke: var(--line-strong); stroke-width: 1.25; }
.sz { fill: none; stroke: #A2A7AD; stroke-width: 1.25; }
.sz.is-on { stroke: var(--ink); stroke-width: 1.75; }
.sz-fill { stroke: var(--ink); stroke-width: 1.5; }

.mount-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: calc(28 * var(--u)); max-width: calc(860 * var(--u)); }
.mount-art text { font-family: var(--font); font-size: 19px; fill: var(--muted); font-weight: 500; }
.mount-art .ma-title { font-size: 26px; fill: var(--ink); font-weight: 620; }
.mount-art .ma-sub { font-size: 19px; }
.ma-edge { stroke: var(--ink); stroke-width: 1.5; }
.ma-pipe { fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-dasharray: 5 4; }
.ma-fit { fill: var(--ink); }
.ma-panel { fill: #B4B8BC; stroke: var(--ink); stroke-width: 1.5; }
.ma-foot, .ma-bracket { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; }
.ma-dim path { fill: none; stroke: var(--ink); stroke-width: 1.25; }
.ma-dim text { fill: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.ma-note path { fill: none; stroke: var(--line-strong); stroke-width: 1; }

.finish-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: calc(28 * var(--u)) calc(20 * var(--u)); }
.finish-list li { display: grid; grid-template-columns: calc(64 * var(--u)) minmax(0, 1fr); grid-template-rows: auto 1fr; column-gap: calc(16 * var(--u)); align-items: start; }
.fl-strip {
  grid-row: 1 / span 2; display: block; height: calc(150 * var(--u)); border-radius: 3px;
  background-color: var(--c);
  background-image: linear-gradient(90deg, color-mix(in srgb, var(--c), #000 32%) 0%, color-mix(in srgb, var(--c), #000 8%) 16%, color-mix(in srgb, var(--c), #fff 36%) 42%, var(--c) 70%, color-mix(in srgb, var(--c), #000 40%) 100%);
  background-size: calc(10 * var(--u)) 100%;
  box-shadow: inset 0 0 0 1px rgba(31, 33, 36, .12), 0 calc(10 * var(--u)) calc(14 * var(--u)) calc(-8 * var(--u)) rgba(31, 33, 36, .35);
}
.fl-metal .fl-strip { background-image: linear-gradient(90deg, color-mix(in srgb, var(--c), #000 34%) 0%, color-mix(in srgb, var(--c), #000 6%) 18%, #F4F5F6 40%, color-mix(in srgb, var(--c), #fff 10%) 48%, var(--c) 70%, color-mix(in srgb, var(--c), #000 42%) 100%); }
.fl-name { font-weight: 640; font-size: 1.0625rem; padding-top: 4px; }
.fl-desc { color: var(--muted); font-size: max(14px, .9375rem); line-height: 1.45; }

/* How many */
.how-many { background: var(--panel); }
.hm-grid { margin-top: calc(48 * var(--u)); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: calc(56 * var(--u)) calc(64 * var(--u)); }
.hm-big { font-size: calc(40 * var(--u)); font-weight: 540; font-stretch: 108%; letter-spacing: -0.028em; line-height: 1.08; max-width: 14em; }
.hm-small { margin-top: calc(18 * var(--u)); color: var(--muted); max-width: 30em; }
.hm-table-wrap { overflow-x: auto; }
.hm-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: 1rem; }
.hm-table caption { text-align: left; font-weight: 600; margin-bottom: calc(10 * var(--u)); font-size: max(14px, .9375rem); }
.hm-table th, .hm-table td { padding: calc(12 * var(--u)) calc(10 * var(--u)); text-align: right; border-bottom: 1px solid #D3D7DB; }
.hm-table th:first-child { text-align: left; padding-left: 0; }
.hm-table thead th { font-weight: 560; color: var(--muted); font-size: max(14px, .875rem); }
.hm-table tbody th { font-weight: 560; }
.hm-table tbody td { font-size: calc(22 * var(--u)); font-weight: 540; }
.hm-table tr.is-here { background: var(--canvas); }
.hm-table td.is-here { position: relative; font-weight: 700; }
.hm-table td.is-here::after { content: ""; position: absolute; right: calc(10 * var(--u)); bottom: 6px; width: 1.1em; height: 3px; border-radius: 2px; background: var(--action); }
.hm-note, .hm-felt { display: grid; gap: calc(14 * var(--u)); align-content: start; max-width: 36em; }
.plain-list li { position: relative; padding-left: 1.1em; margin-bottom: 6px; }
.plain-list li::before { content: ""; position: absolute; left: 0; top: .72em; width: .45em; height: 1.5px; background: var(--ink); }
.felt { display: flex; align-items: flex-end; flex-wrap: wrap; gap: calc(14 * var(--u)) calc(18 * var(--u)); margin-top: calc(8 * var(--u)); }
.felt-item { display: grid; grid-template-columns: auto auto; column-gap: 2px; align-items: baseline; }
.felt-num { font-size: calc(56 * var(--u)); font-weight: 560; font-stretch: 108%; letter-spacing: -0.04em; line-height: 1; }
.felt-unit { font-size: calc(20 * var(--u)); font-weight: 560; color: var(--muted); }
.felt-cap { grid-column: 1 / -1; font-size: max(13px, .8125rem); color: var(--muted); margin-top: 4px; }
.felt-op { color: var(--muted); font-size: .9375rem; padding-bottom: calc(26 * var(--u)); }
.felt-result { padding: calc(10 * var(--u)) calc(16 * var(--u)) calc(8 * var(--u)); background: var(--canvas); border-radius: 10px; }

/* Showroom */
.showroom { background: var(--ink); color: var(--canvas); }
.showroom .sec-lede { color: var(--on-ink-muted); margin-top: calc(24 * var(--u)); }
.sr-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: calc(80 * var(--u)); align-items: start; }
.sr-facts { margin-top: calc(40 * var(--u)); display: grid; gap: 0; max-width: 36em; }
.sr-facts > div { display: grid; grid-template-columns: 8em minmax(0, 1fr); gap: 16px; padding: calc(14 * var(--u)) 0; border-top: 1px solid #3A3D42; }
.sr-facts dt { color: var(--on-ink-muted); }
.sr-facts a { text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1px; }
.showroom :focus-visible { outline-color: #3DBA7E; }
.visit { display: grid; gap: calc(14 * var(--u)); padding: calc(28 * var(--u)); background: var(--ink-2); border-radius: 14px; }
.visit h3 { margin-bottom: 4px; }
.visit .field label, .visit .field legend { color: var(--canvas); }
.visit .field input, .visit .field select { color: var(--ink); }
.vtime { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; }
.vtime legend { width: 100%; margin-bottom: 4px; padding: 0; }
.vtime label, .check { display: inline-flex; align-items: center; gap: .55em; min-height: 44px; font-size: .9375rem; font-weight: 480; cursor: pointer; }
.vtime input, .check input { width: 20px; height: 20px; accent-color: var(--action); margin: 0; flex: none; }
.check { align-items: flex-start; padding-top: 10px; line-height: 1.4; }
.check input { margin-top: 1px; }
.visit .field-err { color: #F2B8B5; }
.visit .sent { background: #25432F; color: var(--canvas); }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: calc(64 * var(--u)); align-items: start; }
.faq-list details { border-top: 1px solid var(--line); }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary {
  list-style: none; cursor: pointer; position: relative;
  padding: calc(20 * var(--u)) calc(48 * var(--u)) calc(20 * var(--u)) 0;
  font-size: 1.125rem; font-weight: 580; line-height: 1.35; min-height: 44px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::before, .faq-list summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 16px; height: 1.75px; background: var(--ink); transition: transform .3s var(--ease-out); }
.faq-list summary::after { transform: rotate(90deg); }
.faq-list details[open] summary::after { transform: rotate(0deg); }
.faq-list details p { padding: 0 calc(48 * var(--u)) calc(22 * var(--u)) 0; color: var(--muted); max-width: 40em; }

/* Footer */
.site-footer { padding: calc(64 * var(--u)) var(--gutter) calc(40 * var(--u)); border-top: 1px solid var(--line); }
.foot-grid { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: calc(40 * var(--u)); align-items: center; }
.wordmark-foot { font-size: calc(44 * var(--u)); }
.foot-line { color: var(--muted); }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px calc(24 * var(--u)); }
.foot-links a { display: inline-flex; min-height: 44px; align-items: center; text-decoration: none; font-weight: 520; }
.foot-links a:hover { text-decoration: underline; text-underline-offset: .3em; }
.foot-demo { margin-top: calc(32 * var(--u)); padding-top: calc(20 * var(--u)); border-top: 1px solid var(--line); color: var(--muted); font-size: max(14px, .875rem); max-width: 60em; }

/* ---------- Intro (one orchestrated moment, CSS only so it never waits for a CDN) ---------- */
@keyframes photoIn { from { opacity: 0; transform: scale(1.025); } to { opacity: 1; transform: none; } }
@keyframes lineUp { from { transform: translateY(104%); } to { transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes finRise { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.intro .stage-photo { animation: photoIn .75s var(--ease-out) .04s both; transform-origin: 70% 60%; }
.intro .controls-head h1 .line > span { transform: translateY(104%); }
.intro.fonts-ready .controls-head h1 .line > span { animation: lineUp .7s var(--ease-out) both; }
.intro.fonts-ready .controls-head h1 .line + .line > span { animation-delay: .07s; }
.intro .lede { animation: fadeIn .6s ease-out .28s both; }
.intro .stepper, .intro .steps { animation: fadeIn .6s ease-out .4s both; }
.intro .controls-foot { animation: fadeIn .6s ease-out .5s both; }
.intro .stage-tag, .intro .stage-fit { animation: fadeIn .5s ease-out 1.05s both; }
.fin-intro { transform-box: fill-box; transform-origin: 50% 100%; animation: finRise .72s cubic-bezier(.22, .8, .25, 1) both; }
.fade-intro { animation: fadeIn .45s ease-out both; }

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
  .site-nav ul { gap: 20px; }
  .swatches { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .swatch-chip { aspect-ratio: 3 / 4; }
}
@media (max-width: 1099px) {
  .site-nav { display: none; }
  .site-nav.is-open { display: block; position: absolute; left: 0; right: 0; top: 100%; background: var(--canvas); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 16px; }
  .site-nav.is-open ul { flex-direction: column; gap: 0; }
  .site-nav.is-open a { min-height: 48px; font-size: 1.0625rem; }
  .btn-header { margin-left: auto; }
  .menu-btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 1.5px solid var(--line-strong); border-radius: 999px; background: transparent; font-weight: 600; font-size: .9375rem; }
  html:not(.js) .site-nav { display: block; margin-left: 0; }
  html:not(.js) .menu-btn { display: none; }
}
@media (max-width: 959px) {
  :root { --header-h: 58px; --gutter: 20px; }
  .controls-foot { position: static; padding-bottom: 0; }
  .site-header { gap: 10px; }
  .sm-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 6px; }
  .size-matrix { min-width: 620px; }
  .mount-pair { grid-template-columns: minmax(0, 1fr); max-width: 460px; }
  .config { grid-template-columns: minmax(0, 1fr); }
  .preview { height: 45svh; min-height: 260px; max-height: 520px; z-index: 5; box-shadow: 0 1px 0 var(--line); }
  .controls { min-height: 0; padding: 22px var(--gutter) 28px; }
  .controls-head h1 { font-size: clamp(30px, 8vw, 40px); }
  .step-title { font-size: 1.25rem; }
  .area-value { font-size: 34px; }
  .count-num { font-size: 24px; }
  .sum-total dd { font-size: 22px; }
  .sec { padding: 72px var(--gutter); }
  .sec-head, .choice, .hm-grid, .sr-grid, .faq-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .sec h2 { font-size: clamp(34px, 9vw, 48px); }
  .sec h3 { font-size: 22px; }
  .choice { gap: 28px; }
  .hm-big { font-size: clamp(26px, 7vw, 34px); }
  .hm-table tbody td { font-size: 19px; }
  .felt-num { font-size: 44px; }
  .felt-unit { font-size: 18px; }
  .finish-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .finish-list li { grid-template-columns: 48px minmax(0, 1fr); }
  .fl-strip { height: 110px; background-size: 8px 100%; }
  .wordmark { font-size: 22px; }
  .wordmark-foot { font-size: 36px; }
  .foot-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .stage-tag-photo, .stage-hint, .stage-fit { font-size: 12.5px; }
  .stage-tag-photo { left: 12px; bottom: 12px; }
  .stage-hint { right: 12px; top: 12px; }
  .stage-fit { left: 12px; top: 12px; max-width: calc(100% - 24px); }
}
@media (max-width: 599px) {
  .stepper-btn { flex-direction: column; gap: 0; font-size: 14px; padding: 8px 0 10px; }
  .stepper-num { font-size: 12.5px; }
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .foot-btns { width: 100%; }
  .foot-btns .btn { flex: 1; }
  .finish-list { grid-template-columns: minmax(0, 1fr); }
  .sum-row { grid-template-columns: minmax(6.5em, 2fr) minmax(0, 3fr); }
  .felt-op { padding-bottom: 22px; }
  .btn-header { padding: 0 1em; }
  .stage-hint { display: none; }
  .stage-fit { max-width: calc(100% - 24px); }
  .touch-hint { display: block; }
  .seg .u { display: none; }
  .seg .legend-unit { display: inline; font-weight: 450; color: var(--muted); }
  .sr-facts > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .visit { padding: 20px; }
}

/* Very narrow screens (a phone at 150 % zoom) */
@media (max-width: 359px) {
  :root { --gutter: 14px; }
  .btn-header { display: none; }
  .menu-btn { margin-left: auto; }
  .site-nav .nav-quote { display: list-item; }
  .stepper-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .stepper-btn { align-items: center; justify-content: center; }
  .stepper-num { font-size: 15px; }
  .btn { white-space: normal; text-align: center; line-height: 1.15; padding-block: .6em; }
  .foot-btns { flex-direction: column-reverse; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .swatches { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .size-row { grid-template-columns: minmax(0, 1fr); }
}
.site-nav .nav-quote { display: none; }

/* Reduced motion: no intro, no transitions that move things, no sticky pinning. */
.reduced .preview { position: relative; top: auto; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .preview { position: relative; top: auto; }
  .tile:hover picture img { transform: none; }
}

/* Without JavaScript every step shows, stacked. */
html:not(.js) .foot-btns, html:not(.js) .stage-hint { display: none; }

/* ---------- Language switch: EN / 中文 ---------- */
.lang { display: flex; align-items: center; flex: none; }
.lang__btn { min-width: 44px; min-height: 44px; padding: 0 6px; background: none; border: 0; border-radius: 6px; font: inherit; font-size: .9375rem; font-weight: 450; color: var(--muted); cursor: pointer; }
.lang__btn[aria-pressed="true"] { color: var(--ink); font-weight: 650; text-decoration: underline; text-underline-offset: .35em; text-decoration-thickness: 1.5px; }
.lang__btn:hover { color: var(--ink); }
.lang__btn[lang="zh-CN"] { font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Source Han Sans SC", sans-serif; }
.lang__sep { color: var(--line-strong); font-size: .875rem; }
@media (max-width: 1099px) {
  .lang { margin-left: auto; }
  .btn-header { margin-left: 0; }
}
@media (max-width: 439px) {
  .btn-header { display: none; }
  .site-nav .nav-quote { display: list-item; }
  .site-header { gap: 6px; }
}

/* ---------- Simplified Chinese ---------- */
:root:lang(zh) { --font: "Mona Sans", "Noto Sans SC", "Noto Sans SC Fallback", "Mona Fallback", sans-serif; }
:lang(zh) body { line-height: 1.8; letter-spacing: 0; }
:lang(zh) .controls-head h1 { font-size: calc(38 * var(--u)); font-weight: 600; line-height: 1.3; letter-spacing: 0; max-width: 12em; }
:lang(zh) .controls-head h1 .line { padding-bottom: .12em; margin-bottom: -.12em; }
:lang(zh) .lede, :lang(zh) .sec-lede { line-height: 1.8; text-wrap: pretty; }
:lang(zh) .sec-lede { max-width: 32em; }
:lang(zh) .sec h2 { font-size: calc(48 * var(--u)); font-weight: 600; letter-spacing: 0; line-height: 1.3; text-wrap: balance; }
:lang(zh) .sec h3 { font-size: calc(23 * var(--u)); letter-spacing: 0; line-height: 1.4; }
:lang(zh) .step-title { letter-spacing: 0; line-height: 1.4; }
:lang(zh) .hm-big { font-size: calc(34 * var(--u)); letter-spacing: 0; line-height: 1.4; text-wrap: balance; }
:lang(zh) .note, :lang(zh) .fl-desc, :lang(zh) .count-rec, :lang(zh) .plan-cap { line-height: 1.7; }
:lang(zh) .tile-name { line-height: 1.4; }
:lang(zh) .area-value, :lang(zh) .count-num, :lang(zh) .felt-num, :lang(zh) .sum-total dd { letter-spacing: -0.01em; }
:lang(zh) .sec p, :lang(zh) .faq-grid dd, :lang(zh) .choice p { text-wrap: pretty; }
:lang(zh) .btn { letter-spacing: .02em; }
@media (max-width: 959px) {
  :lang(zh) .controls-head h1 { font-size: clamp(26px, 7vw, 34px); }
  :lang(zh) .sec h2 { font-size: clamp(28px, 7.6vw, 40px); }
  :lang(zh) .sec h3 { font-size: 20px; }
  :lang(zh) .hm-big { font-size: clamp(22px, 6vw, 28px); }
}
