/*
  Coving: wall thermostat product page (Screenery template)
  1. Tokens, then the materials: lime plaster lit from the left (an SVG diffuse-lighting texture), honed stone,
     board-marked concrete with tie holes. Every section is one of these surfaces.
  2. The dial (SVG, three ring finishes), the schedule rows and editor, the estimate, the drawing and spec,
     the compatibility form, the order and its states.
  3. Notes, questions, footer, then the breakpoints at 1100, 860 and 560 px and reduced motion.
*/

:root {
  /* Surfaces */
  --plaster: #e6e0d5;
  --plaster-hi: #f1ece3;
  --lime: #ece7dd;
  --stone: #d6cfc2;
  --concrete: #bdb8af;
  --slab: #efebe4;
  /* Ink */
  --ink: #23211d;
  --ink-2: #4a463f;
  --ink-3: #514c44;
  --rule: rgba(35, 33, 29, 0.22);
  --rule-soft: rgba(35, 33, 29, 0.12);
  /* The one accent: heat */
  --ember: #a9431e;
  --ember-soft: rgba(169, 67, 30, 0.12);
  --bad: #9b2f22;
  /* Type */
  --sans: "Host Grotesk", system-ui, sans-serif;
  --mono: "B612 Mono", ui-monospace, monospace;
  --t-display: clamp(2.4rem, 1.6rem + 3.2vw, 4.4rem);
  --t-head: clamp(1.9rem, 1.4rem + 1.9vw, 3rem);
  --t-body: 1.0625rem;
  --t-small: 0.8125rem;
  /* Space and shape */
  --gutter: clamp(16px, 4vw, 56px);
  --s1: 0.5rem; --s2: 1rem; --s3: 1.5rem; --s4: 2.5rem; --s5: 4rem; --s6: clamp(4.5rem, 3rem + 6vw, 8.5rem);
  --r: 3px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  /* Raking-light texture: fractal noise lit by a distant light low on the left */
  --tex: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='520' height='520'%3E%3Cfilter id='n' x='0' y='0'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.011 .018' numOctaves='5' seed='7' stitchTiles='stitch'/%3E%3CfeDiffuseLighting lighting-color='%23fff' surfaceScale='2.4' diffuseConstant='1.1'%3E%3CfeDistantLight azimuth='185' elevation='24'/%3E%3C/feDiffuseLighting%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --tex-fine: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n' x='0' y='0'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.6' numOctaves='2' seed='3' stitchTiles='stitch'/%3E%3CfeDiffuseLighting lighting-color='%23fff' surfaceScale='1.2'%3E%3CfeDistantLight azimuth='200' elevation='40'/%3E%3C/feDiffuseLighting%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  color-scheme: light;
  accent-color: var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; scrollbar-color: var(--ink-3) var(--plaster); }
body {
  margin: 0;
  background: var(--plaster);
  color: var(--ink);
  font: 400 var(--t-body)/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  caret-color: var(--ember);
}
::selection { background: var(--ink); color: var(--plaster-hi); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 2px; }
a { color: inherit; text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
h1, h2, h3 { margin: 0; font-weight: 400; line-height: 1.05; letter-spacing: -0.025em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
.num { font-variant-numeric: tabular-nums; }
.mono, time { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: 0; }
[hidden] { display: none !important; }
.defs { position: absolute; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 30; background: var(--ink); color: var(--plaster-hi); padding: 10px 14px; }
.skip:focus { top: 12px; }
.icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.wrap { width: min(1240px, 100% - 2 * var(--gutter)); margin-inline: auto; }

/* ---------- Header: opaque plaster strip ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: var(--s3);
  padding: 12px var(--gutter);
  background: var(--plaster);
  border-bottom: 1px solid var(--rule-soft);
}
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 500; font-size: 1.125rem; letter-spacing: -0.01em; min-height: 44px; }
.logo__mark { width: 28px; height: 28px; fill: none; stroke: var(--ink); stroke-width: 1.5; }
.logo__dot { fill: var(--ember); stroke: none; }
.top__nav { display: flex; gap: var(--s3); margin-left: auto; font-size: 0.9375rem; }
.top__nav a { text-decoration: none; color: var(--ink-2); padding: 10px 0; }
.top__nav a:hover { color: var(--ink); text-decoration: underline; }
.top__buy { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 18px; border: 1px solid var(--ink); border-radius: 999px; text-decoration: none; font-size: 0.9375rem; }
.top__buy:hover { background: var(--ink); color: var(--plaster-hi); }

/* ---------- Buttons and fields ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  font: 500 0.9688rem/1 var(--sans); color: var(--ink);
  border: 1px solid var(--ink); border-radius: 999px; background: transparent;
  text-decoration: none; cursor: pointer;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}
.btn--ink { background: var(--ink); color: var(--plaster-hi); }
.btn--ink:hover { background: #000; }
.btn--line:hover, .btn--small:hover { background: var(--ink); color: var(--plaster-hi); }
.btn--small { min-height: 40px; padding: 0 14px; font-size: 0.875rem; }
.btn--small .icon { width: 16px; height: 16px; }
.btn--wide { width: 100%; }
.btn[disabled] { opacity: 0.55; cursor: progress; }

.field { display: grid; gap: 6px; }
.field + .field { margin-top: var(--s2); }
.field--pair { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2); }
.field--pair > div { display: grid; gap: 6px; align-content: start; }
label, legend, .choice__label { font-size: 0.875rem; font-weight: 500; color: var(--ink-2); }
input:not([type=radio]):not([type=checkbox]), select {
  width: 100%; min-height: 46px; padding: 0 12px;
  font: 400 1rem var(--sans); color: var(--ink);
  background: #f8f6f1; border: 1px solid rgba(35, 33, 29, 0.4); border-radius: var(--r);
}
select { appearance: none; padding-right: 36px; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 19px) 21px, calc(100% - 14px) 21px; background-size: 5px 5px; background-repeat: no-repeat; }
input:focus-visible, select:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
[aria-invalid="true"] { border-color: var(--bad) !important; box-shadow: inset 0 0 0 1px var(--bad); }
.field__msg { color: var(--bad); font-size: 0.875rem; min-height: 0; }
.field__msg:empty { display: none; }
.field__hint { font-size: 0.8125rem; color: var(--ink-3); }

/* ---------- Materials ---------- */
.wall, .plaster, .lime, .stone, .concrete { position: relative; isolation: isolate; }
.wall::before, .plaster::before, .lime::before, .stone::before, .concrete::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: var(--tex); mix-blend-mode: multiply; opacity: 0.32;
}
.plaster { background: var(--plaster); }
.plaster--low { background: #e2dccf; }
.lime { background: var(--lime); }
.stone { background: var(--stone); }
.stone::before { background-image: var(--tex-fine); opacity: 0.35; }
/* Board-marked concrete with tie holes, as cast on site */
.concrete { background-color: var(--concrete); }
.concrete::before { opacity: 0.4; }
.concrete::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    radial-gradient(circle at 50% 50%, rgba(35, 33, 29, 0.26) 0 4px, rgba(255, 255, 255, 0.3) 5px, transparent 6.5px),
    linear-gradient(180deg, rgba(35, 33, 29, 0.09) 0 1px, transparent 1px 100%);
  background-size: 300px 180px, 100% 30px;
  background-position: 0 0, 0 0;
}
section { padding-block: var(--s6); }
.head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s4); align-items: end; margin-bottom: var(--s5); }
.head h2 { font-size: var(--t-head); max-width: 14ch; }
.head p { max-width: 60ch; color: var(--ink-2); }
.slab { background: var(--slab); border: 1px solid var(--rule-soft); border-radius: var(--r); padding: var(--s3); box-shadow: 0 1px 0 rgba(255,255,255,0.6) inset, 0 14px 30px -24px rgba(35, 33, 29, 0.55); }

/* ---------- 1. The wall ---------- */
.wall {
  padding: 0;
  min-height: calc(100svh - 69px);
  display: grid; grid-template-rows: 40px 1fr 56px;
  background:
    radial-gradient(120% 90% at 0% 10%, rgba(255, 250, 240, 0.75), transparent 60%),
    linear-gradient(100deg, #ece6db 0%, #e2dbcf 55%, #cfc7b9 100%);
  overflow: hidden;
}
.wall::before { opacity: 0.55; }
/* Picture rail: a moulded strip lit from above-left */
.wall__rail {
  align-self: end; height: 18px;
  background: linear-gradient(180deg, #f6f2ea 0 3px, #dad2c4 3px 6px, #efe9df 6px 11px, #c8bfb0 11px 14px, #a89f90 14px 15px, transparent 15px);
  box-shadow: 0 9px 10px -6px rgba(60, 50, 38, 0.28);
}
.wall__skirting {
  background: linear-gradient(180deg, #a59c8d 0 1px, #f3eee6 1px 5px, #e7e1d6 5px 14px, #d7cfc1 14px 100%);
  box-shadow: 0 -10px 14px -10px rgba(60, 50, 38, 0.35);
}
.wall__grid {
  width: min(1240px, 100% - 2 * var(--gutter)); margin-inline: auto;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--s4);
  align-items: center; padding-block: var(--s5);
}
.wall__copy { display: grid; gap: var(--s3); max-width: 36rem; }
.wall h1 { font-size: var(--t-display); font-weight: 300; letter-spacing: -0.035em; line-height: 1; }
.lede { color: var(--ink-2); max-width: 46ch; }
.wall__facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 0; margin: 0; border-top: 1px solid var(--rule); }
.wall__facts div { padding: 12px 24px 0 0; margin-right: 24px; }
.wall__facts div + div { border-left: 1px solid var(--rule); padding-left: 20px; }
.wall__facts dt { font-size: var(--t-small); color: var(--ink-3); }
.wall__facts dd { margin: 2px 0 0; font-size: 0.9375rem; }
.wall__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.wall__object { margin: 0; position: relative; display: grid; justify-items: center; gap: var(--s3); }
.switch {
  position: absolute; left: 2%; top: 14%;
  width: 86px; height: 86px; border-radius: 3px;
  background: linear-gradient(135deg, #f4f0e9, #dcd5c8);
  box-shadow: 1px 1px 0 rgba(255,255,255,0.7) inset, 10px 16px 18px -8px rgba(60, 50, 38, 0.35), 3px 4px 5px rgba(60, 50, 38, 0.18);
}
.switch__rocker { position: absolute; left: 33px; top: 26px; width: 20px; height: 34px; border-radius: 2px; background: linear-gradient(180deg, #ebe5da, #d3cbbd); box-shadow: 0 1px 0 #fff inset, 2px 3px 3px rgba(60, 50, 38, 0.25); }
.switch__screw { position: absolute; left: 40px; top: 8px; width: 7px; height: 7px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #f6f2ea, #a89f90); }
.switch__screw--b { top: auto; bottom: 8px; }

/* The dial and its finishes */
.dial { --bz-hi: #e2d9ca; --bz-mid: #bdb3a3; --bz-lo: #8f8576; width: min(440px, 80vw); aspect-ratio: 1; }
.dial[data-finish="lime"] { --bz-hi: #f6f3ec; --bz-mid: #e1dbcf; --bz-lo: #b9b1a2; }
.dial[data-finish="slate"] { --bz-hi: #77746e; --bz-mid: #4e4c48; --bz-lo: #2d2c2a; }
.dial__svg {
  width: 100%; height: 100%; display: block; overflow: visible; touch-action: none; cursor: grab;
  /* Light from the upper left, low: a long soft shadow down and right, plus a tight contact shadow */
  filter: drop-shadow(26px 30px 26px rgba(58, 46, 32, 0.32)) drop-shadow(4px 6px 5px rgba(58, 46, 32, 0.28));
  border-radius: 50%;
}
.dial__svg:active { cursor: grabbing; }
.dial__svg:focus-visible { outline: 2px solid var(--ink); outline-offset: 10px; }
.dial__ring { transition: transform 0.5s var(--ease); }
.dial.is-dragging .dial__ring { transition: none; }
.dial__knurl line { stroke: rgba(30, 25, 18, 0.22); stroke-width: 1.4; }
.dial[data-finish="slate"] .dial__knurl line { stroke: rgba(0, 0, 0, 0.45); }
.dial__notch { fill: #3a352e; }
.dial[data-finish="slate"] .dial__notch { fill: #d9d2c5; }
.dial__scale line { stroke: #8b8376; stroke-width: 1.3; }
.dial__scale line.major { stroke: #4a453d; stroke-width: 1.8; }
.dial__scale text { font: 400 15px var(--mono); fill: #5c574e; text-anchor: middle; dominant-baseline: middle; }
.dial__arc { fill: none; stroke: #3d3832; stroke-width: 3; stroke-linecap: round; transition: stroke 0.6s var(--ease); }
.dial.is-calling .dial__arc { stroke: var(--ember); }
.dial__set { font: 300 76px var(--sans); fill: var(--ink); text-anchor: middle; letter-spacing: -3px; font-variant-numeric: tabular-nums; }
.dial__set .dec { font-size: 40px; letter-spacing: -1px; }
.dial__unit { font: 400 17px var(--mono); fill: var(--ink-2); }
.dial__small { font: 700 15px var(--mono); fill: var(--ink-2); letter-spacing: 1px; }
.dial__room { text-anchor: middle; font-weight: 400; }
.dial__roomv { font: 500 19px var(--sans); letter-spacing: 0; fill: var(--ink); }
.dial__rule { stroke: rgba(35, 33, 29, 0.25); stroke-width: 1; }
.dial__ember { fill: #b6ada0; transition: fill 0.6s var(--ease); }
.dial.is-calling .dial__ember { fill: var(--ember); }
.dial.is-calling .dial__status text { fill: var(--ember); }
.dial--small { width: 220px; }
.dial--small .dial__svg { cursor: default; filter: drop-shadow(14px 16px 14px rgba(58, 46, 32, 0.3)) drop-shadow(2px 3px 3px rgba(58, 46, 32, 0.25)); }

/* Signature: a faint warm bloom on the plaster behind the dial while it calls for heat */
.wall__object::before {
  content: ""; position: absolute; left: 50%; top: 42%; width: 120%; aspect-ratio: 1; translate: -50% -50%; z-index: -1;
  background: radial-gradient(closest-side, rgba(214, 120, 70, 0.22), transparent 70%);
  opacity: 0; transition: opacity 1.6s var(--ease);
}
.wall__object.is-calling::before { opacity: 1; }

.caption { display: grid; gap: 4px; justify-items: center; text-align: center; font-size: var(--t-small); color: var(--ink-2); }
.caption .num { color: var(--ink); }
.caption__hint { color: var(--ink-3); }

/* ---------- 2. Schedule ---------- */
.sch { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s3); align-items: start; }
.sch__week { padding-top: var(--s2); }
.sch__axis { display: flex; justify-content: space-between; margin-left: 64px; font-size: 11px; color: var(--ink-3); padding-bottom: 6px; }
.sch__days { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.day__btn {
  all: unset; box-sizing: border-box; cursor: pointer; width: 100%;
  display: grid; grid-template-columns: 56px 1fr; gap: 8px; align-items: center; grid-column: 1 / -1;
  min-height: 44px; border-radius: var(--r); padding: 3px 0;
}
.day__name { font-size: 0.875rem; font-weight: 500; }
.day__bar { position: relative; height: 38px; display: flex; border-radius: 2px; overflow: hidden; box-shadow: 0 0 0 1px var(--rule-soft); }
.seg { height: 100%; display: flex; align-items: center; padding-left: 5px; font: 500 12px var(--sans); font-variant-numeric: tabular-nums; overflow: hidden; white-space: nowrap; border-right: 1px solid rgba(255,255,255,0.55); }
.seg--cool { background: #dcd6cb; color: var(--ink); }
.seg--mild { background: #a49c8e; color: var(--ink); }
.seg--warm { background: #3e3a34; color: #f1ece3; }
.day__btn:hover .day__name { text-decoration: underline; }
.day__btn[aria-pressed="true"] .day__name { font-weight: 600; }
.day__btn[aria-pressed="true"] .day__bar { box-shadow: 0 0 0 2px var(--ink); }
.day__btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.sch__key { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: var(--s2); font-size: var(--t-small); color: var(--ink-2); }
.k { width: 14px; height: 14px; border-radius: 2px; display: inline-block; box-shadow: 0 0 0 1px var(--rule-soft); }
.ki { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; margin-right: 10px; }
.k--cool { background: #dcd6cb; } .k--mild { background: #a49c8e; } .k--warm { background: #3e3a34; }

.sch__edithead { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; margin-bottom: var(--s2); }
.sch__edithead h3 { font-size: 1.5rem; }
.sch__copy { display: flex; flex-wrap: wrap; gap: 8px; }
.periods { display: grid; }
.period { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--rule-soft); }
.period__name { font-weight: 500; }
.period__name small { display: block; font-weight: 400; font-size: var(--t-small); color: var(--ink-3); }
.period input[type=time] { width: 124px; font-variant-numeric: tabular-nums; }
.stepper { display: inline-flex; align-items: center; border: 1px solid rgba(35, 33, 29, 0.4); border-radius: 999px; background: #f8f6f1; }
.stepper__b { all: unset; box-sizing: border-box; width: 44px; height: 44px; display: grid; place-items: center; cursor: pointer; border-radius: 50%; }
.stepper__b:hover { background: var(--rule-soft); }
.stepper__b:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
.stepper__b[disabled] { opacity: 0.35; cursor: not-allowed; }
.stepper output { min-width: 4.2ch; text-align: center; font-size: 0.9375rem; }
.sch__note { margin-top: var(--s2); font-size: var(--t-small); color: var(--ink-2); min-height: 1.2em; }

.est { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s3); margin-top: var(--s3); align-items: start; }
.est h3 { font-size: 1.5rem; margin-bottom: var(--s2); }
.est__big { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); padding-bottom: var(--s3); border-bottom: 1px solid var(--rule); }
.est__big p { display: grid; gap: 2px; }
.est__n { font-size: clamp(2.2rem, 1.4rem + 2.4vw, 3.4rem); font-weight: 300; line-height: 1.05; letter-spacing: -0.03em; }
.est__u { font-size: var(--t-small); color: var(--ink-3); }
.est__table { width: 100%; border-collapse: collapse; margin-top: var(--s1); font-size: 0.9375rem; }
.est__table th { text-align: left; font-weight: 400; color: var(--ink-2); padding: 9px 0; border-bottom: 1px solid var(--rule-soft); }
.est__table td { text-align: right; padding: 9px 0; border-bottom: 1px solid var(--rule-soft); white-space: nowrap; }
.est__total th, .est__total td { color: var(--ink); font-weight: 600; border-bottom: 0; }
.est__compare { margin-top: var(--s2); padding: 12px 14px; background: var(--ember-soft); border: 1px solid rgba(169, 67, 30, 0.25); border-radius: var(--r); font-size: 0.9375rem; }
.est__how { margin: var(--s3) 0 0; padding-left: 1.1em; display: grid; gap: 8px; font-size: 0.875rem; color: var(--ink-2); }

/* ---------- 3. Drawing ---------- */
.dwg { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s4); align-items: start; }
.dwg__fig { margin: 0; }
.dwg__fig svg { width: 100%; height: auto; display: block; }
.dwg__fig figcaption { margin-top: var(--s2); font-size: var(--t-small); color: var(--ink-2); }
.ln { fill: none; stroke: var(--ink); stroke-width: 1.4; }
.ln--thin { stroke-width: 0.8; stroke: var(--ink-3); }
.ln--hidden { stroke-dasharray: 6 4; stroke-width: 1; stroke: var(--ink-3); }
.ln--centre { stroke-dasharray: 18 4 3 4; stroke-width: 0.7; stroke: var(--ink-3); }
.ln--dim { stroke-width: 0.9; }
.ln--ext { stroke-width: 0.6; stroke: var(--ink-3); }
.ln--wall { stroke-width: 2.2; }
.ln--fill { fill: var(--ink); stroke: none; }
.dwg__t text { font: 400 13px var(--mono); fill: var(--ink); letter-spacing: 0.5px; }
.dwg__t text.sans { font: 500 14px var(--sans); }
.spec { margin: 0; border-top: 1px solid var(--ink); }
.spec div { display: grid; grid-template-columns: 9.5rem 1fr; gap: var(--s2); padding: 11px 0; border-bottom: 1px solid var(--rule); font-size: 0.9375rem; }
.spec dt { color: var(--ink-2); }
.spec dd { margin: 0; }

/* ---------- 4. Will it fit ---------- */
.fit { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--s5); align-items: start; }
.fit__intro { display: grid; gap: var(--s3); }
.fit__intro h2 { font-size: var(--t-head); max-width: 13ch; }
.fit__intro > p { color: var(--ink-2); max-width: 52ch; }
.fit__steps { margin: 0; padding: 0; list-style: none; counter-reset: s; border-top: 1px solid var(--rule); }
.fit__steps li { counter-increment: s; position: relative; padding: 12px 0 12px 2.2rem; border-bottom: 1px solid var(--rule); color: var(--ink-2); font-size: 0.9688rem; }
.fit__steps li::before { content: counter(s); position: absolute; left: 0; top: 14px; font: 400 0.875rem var(--mono); color: var(--ink); }
.fit__steps b { color: var(--ink); font-weight: 500; }
.fit__time { font-size: 0.9375rem; }
.fit__form { display: grid; gap: var(--s3); padding: var(--s4); }
.q { border: 0; margin: 0; padding: 0; display: grid; gap: 6px; }
.q legend { font-size: 1.0625rem; color: var(--ink); margin-bottom: 8px; padding: 0; }
.q.is-invalid .opt { border-color: rgba(155, 47, 34, 0.55); }
.opt { display: flex; gap: 12px; align-items: flex-start; padding: 11px 14px; min-height: 44px; border: 1px solid var(--rule); border-radius: var(--r); font-weight: 400; color: var(--ink); font-size: 0.9688rem; cursor: pointer; background: #f8f6f1; }
.opt:hover { border-color: var(--ink-3); }
.opt:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.opt input { margin: 3px 0 0; width: 18px; height: 18px; flex: none; }
.fit__form > .btn { justify-self: start; }
.verdict { display: grid; gap: var(--s2); padding-top: var(--s3); border-top: 1px solid var(--ink); }
.verdict:focus { outline: none; }
.verdict__title { display: flex; gap: 10px; align-items: center; font-size: 1.5rem; }
.verdict__title .icon { width: 26px; height: 26px; }
.verdict[data-kind="no"] .verdict__title { color: var(--bad); }
.verdict__list { margin: 0; padding-left: 1.1em; display: grid; gap: 6px; color: var(--ink-2); font-size: 0.9688rem; }
.verdict__kit { font-size: 0.875rem; }
.verdict .btn { justify-self: start; }

/* ---------- 5. Order ---------- */
.ord { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: var(--s5); align-items: start; }
.ord__make { display: grid; grid-template-columns: 240px 1fr; gap: var(--s3) var(--s4); }
.ord__preview { grid-row: span 5; padding-top: 8px; display: grid; justify-items: center; align-content: start; }
.choice { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; align-content: start; }
.choice legend, .choice__label { margin-bottom: 4px; padding: 0; }
.choice__hint { font-size: var(--t-small); color: var(--ink-3); }
#finishSet { display: flex; flex-wrap: wrap; gap: 8px; }
#finishSet legend { width: 100%; }
.sw { display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 16px 0 8px; border: 1px solid var(--rule); border-radius: 999px; background: #f8f6f1; font-weight: 400; color: var(--ink); font-size: 0.9375rem; cursor: pointer; }
.sw input { position: absolute; opacity: 0; pointer-events: none; }
.sw:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.sw:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 2px; }
.sw__chip { width: 28px; height: 28px; border-radius: 50%; box-shadow: inset -3px -4px 6px rgba(0,0,0,0.18), 0 0 0 1px var(--rule); }
.sw__chip--lime { background: #e8e2d6; } .sw__chip--stone { background: #bdb3a3; } .sw__chip--slate { background: #4e4c48; }
.choice .stepper { justify-self: start; }

.sum { width: 100%; border-collapse: collapse; margin-bottom: var(--s3); font-size: 0.9688rem; }
.sum th { text-align: left; font-weight: 400; color: var(--ink-2); padding: 10px 0; border-bottom: 1px solid var(--rule); }
.sum td { text-align: right; padding: 10px 0; border-bottom: 1px solid var(--rule); white-space: nowrap; font-variant-numeric: tabular-nums; }
.sum tfoot th, .sum tfoot td { color: var(--ink); font-weight: 600; border-bottom: 0; border-top: 1px solid var(--ink); padding-top: 14px; font-size: 1.0625rem; }
.form__err { display: flex; gap: 10px; align-items: flex-start; margin: var(--s2) 0; padding: 12px 14px; color: var(--bad); background: rgba(155, 47, 34, 0.08); border: 1px solid rgba(155, 47, 34, 0.35); border-radius: var(--r); font-size: 0.9375rem; }
.form__err[hidden] { display: none; }
#payBtn { margin-top: var(--s3); }
#payBtn.is-loading::before { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin 0.8s linear infinite; }
@keyframes spin { to { rotate: 360deg; } }
.done { display: grid; gap: var(--s2); }
.done:focus { outline: none; }
.done h3 { display: flex; gap: 10px; align-items: center; font-size: 1.5rem; line-height: 1.2; }
.done h3 .icon { width: 26px; height: 26px; }
.done p { color: var(--ink-2); }
.done .btn { justify-self: start; }

/* ---------- 6. Notes and questions ---------- */
.notes { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s5); }
.notes h2 { font-size: 2rem; margin-bottom: var(--s3); }
.notes__intro { color: var(--ink-2); max-width: 52ch; margin-top: calc(-1 * var(--s1)); margin-bottom: var(--s3); }
.log { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.log li { display: grid; grid-template-columns: 7.5rem 3.5rem 1fr; gap: var(--s2); padding: 14px 0; border-bottom: 1px solid var(--rule); font-size: 0.9375rem; }
.log time { color: var(--ink-2); font-size: 0.875rem; padding-top: 2px; }
.log b { font-weight: 500; font-size: 0.9375rem; font-variant-numeric: tabular-nums; }
.qa { border-top: 1px solid var(--ink); }
.qa details { border-bottom: 1px solid var(--rule); }
.qa summary { list-style: none; cursor: pointer; padding: 16px 32px 16px 0; position: relative; font-weight: 500; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: ""; position: absolute; right: 6px; top: 22px; width: 9px; height: 9px; border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); rotate: 45deg; transition: rotate 0.3s var(--ease); }
.qa details[open] summary::after { rotate: 225deg; top: 26px; }
.qa details p { padding: 0 0 16px; color: var(--ink-2); max-width: 60ch; }

/* ---------- Footer: slate ---------- */
.foot { background: #2f2d2a; color: #e6e0d5; padding-block: var(--s5); }
.foot__grid { display: grid; grid-template-columns: 1.2fr 1fr 1.2fr 1.4fr; gap: var(--s3); font-size: 0.9375rem; }
.foot__name { font-size: 1.5rem; font-weight: 500; }
.foot a { color: #f1ece3; }
.foot__small { font-size: var(--t-small); color: #c4bdb1; }

/* Quiet entrance for sections, from a visible default */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .slab, .dwg__fig, .spec { animation: settle linear both; animation-timeline: view(); animation-range: entry 0% entry 40%; }
    @keyframes settle { from { translate: 0 18px; } to { translate: 0 0; } }
  }
}

/* ---------- Breakpoints ---------- */
@media (max-width: 1100px) {
  .wall__grid { grid-template-columns: 1fr 1fr; }
  .switch { left: -4%; top: 6%; transform: scale(0.85); }
  .ord__make { grid-template-columns: 1fr; }
  .ord__preview { grid-row: auto; }
  .ord__preview .dial--small { width: 180px; }
  .fit { gap: var(--s4); }
}
@media (max-width: 860px) {
  .top__nav { display: none; }
  .top__buy { margin-left: auto; }
  .wall { min-height: auto; }
  .wall__grid { grid-template-columns: 1fr; padding-block: var(--s4) var(--s5); }
  .wall__object { order: -1; }
  .dial { width: min(360px, 78vw); }
  .switch { left: 0; top: 4%; }
  .head, .sch, .est, .dwg, .fit, .ord, .notes { grid-template-columns: 1fr; }
  .head { gap: var(--s2); margin-bottom: var(--s4); }
  .head h2 { max-width: 18ch; }
  .fit__intro h2 { max-width: 18ch; }
  .foot__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  :root { --t-body: 1rem; }
  .top { gap: 12px; }
  .wall__grid { padding-top: var(--s3); gap: var(--s3); }
  .dial { width: min(300px, 80vw); }
  .switch { width: 58px; height: 58px; left: -6px; top: 0; transform: none; }
  .switch__rocker { left: 22px; top: 17px; width: 14px; height: 24px; }
  .switch__screw { left: 26px; top: 5px; width: 6px; height: 6px; }
  .switch__screw--b { top: auto; bottom: 5px; }
  .wall__facts { grid-template-columns: 1fr; border-top: 0; }
  .wall__facts div, .wall__facts div + div { display: flex; justify-content: space-between; gap: 12px; margin: 0; padding: 9px 0; border-left: 0; border-top: 1px solid var(--rule); }
  .wall__facts dd { margin: 0; text-align: right; }
  .wall__actions .btn { flex: 1 1 100%; }
  .slab { padding: var(--s2); }
  .fit__form { padding: var(--s3) var(--s2); }
  .sch__axis { margin-left: 46px; }
  .day__btn { grid-template-columns: 38px 1fr; }
  .seg { font-size: 11px; padding-left: 3px; }
  .seg.is-narrow { font-size: 0; }
  .period { grid-template-columns: 1fr auto; row-gap: 8px; }
  .period__name { grid-column: 1 / -1; }
  .period input[type=time] { width: 128px; }
  .est__big { grid-template-columns: 1fr; gap: var(--s2); }
  .field--pair { grid-template-columns: 1fr; }
  .spec div { grid-template-columns: 1fr; gap: 2px; }
  .log li { grid-template-columns: 1fr auto; gap: 4px 12px; }
  .log li p { grid-column: 1 / -1; }
  .foot__grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
@media (max-width: 560px) {
  .dwg__t text { font-size: 21px; }
  .dwg__t text.sans { font-size: 22px; }
}
