/* Thermosill v2. Editorial system: white canvas, near-black ink, one red accent (#db2832),
   DM Sans headlines with tight tracking, 12-16px cards, pill buttons. */
:root {
  --bg: #ffffff;
  --surface: #f6f6f5;
  --surface-2: #ededec;
  --ink: #171614;
  --ink-2: #2c2a27;
  --muted: #4d4d4d;
  --line: #e8e8e7;
  --line-strong: rgba(23, 22, 20, 0.8);
  --accent: #db2832;
  --accent-soft: rgba(219, 40, 50, 0.06);
  /* AAA text-safe reds: --accent stays for marks, icons, borders and bars. */
  --accent-ink: #9e1a22;
  --accent-hover: color-mix(in srgb, #9e1a22 85%, #000);
  --accent-on-dark: #ff8a90;
  --on-ink: #ffffff;
  --on-ink-muted: rgba(255, 255, 255, 0.74);
  --on-ink-line: rgba(255, 255, 255, 0.12);
  --danger: #b3261e;
  --sans: "DM Sans", ui-sans-serif, system-ui, sans-serif;
  --mono: "DM Sans", ui-sans-serif, system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --r-lg: 16px;
  --r: 12px;
  --pill: 100px;
  --gutter: clamp(16px, 3vw, 40px);
  color-scheme: light;
}
/* Light only: the design and the AAA contrast checks assume a white page. */


* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  letter-spacing: -0.002em;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "cv11", "ss01";
}
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
img, svg { display: block; max-width: 100%; }
::selection { background: var(--accent); color: #fff; }

.wrap { width: 100%; max-width: 1440px; margin-inline: auto; padding-inline: var(--gutter); }
.mono { font-variant-numeric: tabular-nums; }
.label { font-size: 12px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
h1, h2, h3, h4 { margin: 0; font-weight: 500; font-optical-sizing: auto; }
h1 { font-size: clamp(48px, 7vw, 112px); letter-spacing: -0.022em; line-height: 0.95; }
h2 { font-size: clamp(36px, 4.4vw, 60px); letter-spacing: -0.018em; line-height: 1.02; }
h3 { font-size: clamp(22px, 2vw, 28px); letter-spacing: -0.01em; line-height: 1.15; }
h4 { font-size: clamp(24px, 2.6vw, 44px); letter-spacing: -0.014em; line-height: 1.12; }
p { margin: 0; text-wrap: pretty; }
h1, h2, h3, h4, .page-title, .compare-time, summary { text-wrap: balance; }
.help, .lede { text-wrap: pretty; max-width: 52ch; }
:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 3px; border-radius: 4px; }
.hero :focus-visible, .photo-card:focus-visible, .cta-block :focus-visible { outline-color: #fff; }
.dim { color: var(--muted); }
.lede { font-size: 17px; color: var(--muted); max-width: 44ch; line-height: 1.5; }
.ph { font-size: 17px; line-height: 1; }
.accent { color: var(--accent-ink); }

/* ---------- Buttons: pills ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 46px; padding: 0 22px; border-radius: var(--pill);
  --btn-bg: var(--ink); --btn-fg: var(--bg); --btn-hover: var(--ink-2);
  border: 0; background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 500; font-size: 15px; letter-spacing: -0.004em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .3s var(--ease), color .3s var(--ease), transform .2s var(--ease);
}
.btn .ph { font-size: 15px; transition: transform .4s var(--ease); }
.btn:hover .ph-arrow-right { transform: translateX(3px); }
.btn:hover .ph-arrow-left { transform: translateX(-3px); }
.btn:hover .ph-arrow-up-right { transform: translate(2px, -2px); }
.btn:active { transform: scale(0.97); }
/* Variants set these three colours and never their own hover, so a hover can't land on the wrong text colour. */
.btn:hover:not([disabled]) { background: var(--btn-hover); }
.btn-ghost { --btn-bg: var(--surface-2); --btn-fg: var(--ink); --btn-hover: color-mix(in srgb, var(--surface-2) 80%, var(--ink)); }
.btn-accent { --btn-bg: var(--accent-ink); --btn-fg: #fff; --btn-hover: var(--accent-hover); }
.on-ink .btn { --btn-bg: var(--on-ink); --btn-fg: var(--ink); --btn-hover: var(--surface-2); }
.on-ink .btn-ghost { --btn-bg: var(--on-ink-line); --btn-fg: var(--on-ink); --btn-hover: rgba(255, 255, 255, .22); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .35; cursor: not-allowed; }
.link-btn { background: none; border: 0; padding: 0; color: inherit; font-weight: 500; cursor: pointer; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.link-btn:hover { color: var(--accent-ink); }
.tag { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 14px; border-radius: var(--pill); border: 0; font-size: 13px; background: var(--surface-2); }
button.tag { cursor: pointer; transition: background .2s; }
button.tag:hover { background: color-mix(in srgb, var(--surface-2) 80%, var(--ink)); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.site-header .wrap { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 80px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 500; font-size: 20px; letter-spacing: -0.012em; text-decoration: none; }
.logo-mark { width: 20px; height: 20px; border-radius: 2px; background: var(--accent); flex-shrink: 0; }
.logo { flex-shrink: 0; }
.logo img { display: block; width: auto; height: 44px; }
@media (max-width: 360px) { .logo img { height: 38px; } }
.footer-logo { display: block; width: auto; height: 56px; margin-bottom: 28px; }
.nav { display: flex; gap: 36px; }
.nav a { text-decoration: none; font-size: 16px; font-weight: 500; transition: color .2s; }
.nav a:hover, .nav a.active { color: var(--accent-ink); }
.header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 24px; }
.header-phone { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; text-decoration: none; }
.header-phone .ph { color: var(--accent); }
.cart-btn { display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 8px 0 20px; border-radius: var(--pill); background: var(--ink); color: var(--bg); text-decoration: none; font-size: 15px; font-weight: 500; transition: background .25s; }
.cart-btn:hover { background: var(--ink-2); }
.cart-btn > .ph { display: none; }
.cart-count { font-size: 12px; font-variant-numeric: tabular-nums; min-width: 30px; height: 30px; padding: 0 8px; border-radius: var(--pill); display: grid; place-items: center; background: var(--accent-ink); color: #fff; }
.cart-count.bump { animation: bump .5s var(--ease); }
@keyframes bump { 35% { transform: scale(1.3); } }

/* ---------- Hero: inset full-bleed photo ---------- */
.hero { padding: 0 12px 12px; }
.hero-frame { position: relative; border-radius: var(--r-lg); overflow: hidden; min-height: min(calc(100dvh - var(--chrome, 80px) - 12px), 900px); display: flex; flex-direction: column; justify-content: space-between; padding: clamp(20px, 3vw, 40px); color: #fff; isolation: isolate; }
.hero-frame > .photo { position: absolute; inset: 0; z-index: -1; }
.hero-frame > .photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,16,12,.28) 0%, rgba(20,16,12,0) 30%, rgba(20,16,12,0) 45%, rgba(20,16,12,.68) 100%); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.chip { display: inline-flex; align-items: center; gap: 10px; height: 34px; padding: 0 16px 0 12px; border-radius: var(--pill); background: rgba(20, 16, 12, .66); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); font-size: 13px; font-weight: 500; width: fit-content; }
.chip .ph { color: var(--accent-on-dark); font-size: 15px; }
.hero-bottom { margin-top: auto; display: flex; justify-content: space-between; align-items: end; gap: 24px; }
.hero h1 { color: #fff; font-size: clamp(52px, 7.6vw, 124px); min-width: 0; }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.hero h1 .line > span { display: block; }
.finder-card {
  width: min(360px, 100%); flex-shrink: 0; border-radius: var(--r-lg); padding: 18px 18px 20px;
  display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: #171614;
  /* Frosted glass over the hero photo. Opaque enough to keep the text at AAA. */
  background: rgba(255,255,255,.8);
  -webkit-backdrop-filter: blur(24px) saturate(160%); backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid rgba(255,255,255,.55);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 20px 50px rgba(0,0,0,.22);
  /* translate/scale rather than transform, so hover isn't overridden by the entrance animation. */
  transition: translate .6s cubic-bezier(.22,1,.36,1), scale .6s cubic-bezier(.22,1,.36,1), box-shadow .6s cubic-bezier(.22,1,.36,1), background-color .6s ease;
}
.finder-card:hover { translate: 0 -6px; scale: 1.015; background: rgba(255,255,255,.88); box-shadow: inset 0 1px 0 rgba(255,255,255,.8), 0 32px 70px rgba(0,0,0,.3); }
.finder-card:active { translate: 0 -2px; scale: 1.005; transition-duration: .15s; }
.finder-card .fc-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.finder-card .label { color: #4d4d4d; }
.finder-card .fc-code { font-size: 12px; font-weight: 500; font-variant-numeric: tabular-nums; color: #171614; transition: opacity .3s; }
.finder-card .fc-code span { color: var(--accent-ink); }
.fc-stage { height: 200px; margin: 4px -6px 6px; border-radius: var(--r); background: rgba(246,246,245,.6); display: grid; place-items: center; overflow: hidden; }
.fc-stage svg { width: 100%; height: 100%; overflow: visible; }
.fc-stage { position: relative; }
.fc-draw { width: 100%; height: 100%; display: block; }
.fc-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }

.fc-stage .len-dim { stroke: var(--accent); stroke-width: 1.2; vector-effect: non-scaling-stroke; fill: none; }
.fc-stage .len-text { fill: var(--accent); font: 500 13px var(--sans); }
.finder-card .gc-foot { display: flex; justify-content: space-between; align-items: end; gap: 12px; }
.finder-card strong { font-size: 22px; font-weight: 500; letter-spacing: -0.01em; line-height: 1.2; }
.finder-card .ph { font-size: 20px; transition: transform .6s cubic-bezier(.22,1,.36,1), color .3s; }
.finder-card:hover .ph { transform: translate(3px, -3px); color: var(--accent); }

/* ---------- Sections ---------- */
section.band { padding: clamp(80px, 10vw, 140px) 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: var(--muted); margin-bottom: 20px; }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); }

.about { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(24px, 5vw, 80px); }
.about h4 { color: var(--ink); }
.about h4 .dim { color: var(--muted); }
.about .btn { margin-top: 32px; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2vw, 32px); margin-top: clamp(56px, 7vw, 100px); }
.stats > div { border-top: 1px solid var(--line); padding-top: 20px; }
.stats .stat-label { font-size: 14px; font-weight: 500; }
.stats strong { display: block; font-size: clamp(56px, 6vw, 88px); font-weight: 500; letter-spacing: -0.022em; line-height: 1; margin: clamp(28px, 4vw, 56px) 0 12px; font-variant-numeric: tabular-nums; }
.stats span { display: block; color: var(--muted); font-size: 14px; }

/* Giant word with photos scrolling over it */

/* Dark numbered list panel */
.panel-dark { background: #171614; color: #ffffff; border-radius: var(--r-lg); padding: clamp(24px, 4vw, 56px); }
.panel-dark .panel-head { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: end; margin-bottom: clamp(32px, 4vw, 56px); }
.panel-dark .panel-head p { color: rgba(255,255,255,.74); max-width: 44ch; justify-self: end; }
.num-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(255,255,255,.1); }
.num-list a { display: grid; grid-template-columns: 56px 1fr auto auto 24px; gap: 16px; align-items: center; padding: 20px 8px; border-bottom: 1px solid rgba(255,255,255,.1); text-decoration: none; font-size: clamp(17px, 1.5vw, 20px); font-weight: 500; letter-spacing: -0.006em; transition: background .3s var(--ease), padding .4s var(--ease); }
.num-list a:hover { background: rgba(255,255,255,.04); padding-left: 16px; }
.num-list .n { font-size: 13px; color: rgba(255,255,255,.74); font-variant-numeric: tabular-nums; }
.num-list .meta { font-size: 14px; color: rgba(255,255,255,.74); font-weight: 400; }
.num-list .price { font-size: 15px; font-variant-numeric: tabular-nums; min-width: 72px; text-align: right; }
.num-list .ph { font-size: 17px; transition: transform .4s var(--ease), color .3s; }
.num-list a:hover .ph { transform: translate(2px, -2px); color: var(--accent); }

/* How it works: three cards */
/* How it works: dark band, accordion left, a sill finder window bleeding off the right edge. */
.how { background: var(--ink); color: var(--on-ink); padding-block: clamp(56px, 7vw, 112px); overflow: hidden; scroll-margin-top: var(--chrome, 68px); }
.how-inner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 8fr); gap: clamp(40px, 5vw, 88px); align-items: center; padding-left: max(var(--gutter), calc((100vw - 1440px) / 2 + var(--gutter))); }
.how .eyebrow { color: var(--on-ink-muted); }
.how-copy :focus-visible { outline-color: #fff; }
.how-list { list-style: none; margin: clamp(32px, 4vw, 56px) 0 0; padding: 0; }
.how-list > li { border-bottom: 1px solid var(--on-ink-line); }
.how-list h3 { font-size: inherit; letter-spacing: inherit; }
.how-tab { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: clamp(18px, 1.8vw, 26px) 0; background: none; border: 0; cursor: pointer; font: inherit; text-align: left; font-size: clamp(22px, 2.3vw, 32px); font-weight: 500; letter-spacing: -0.014em; line-height: 1.15; color: rgba(255, 255, 255, .58); transition: color .4s var(--ease); }
.how-tab:hover, .on > h3 > .how-tab { color: #fff; }
.how-tab .ph { font-size: 28px; flex-shrink: 0; }
.how-text { display: grid; grid-template-rows: 0fr; visibility: hidden; position: relative; transition: grid-template-rows .55s var(--ease), visibility .55s; }
.on > .how-text { grid-template-rows: 1fr; visibility: visible; }
.how-text p { margin: 0; min-height: 0; overflow: hidden; color: var(--on-ink-muted); font-size: 17px; line-height: 1.5; max-width: 44ch; }
.on > .how-text p { padding-bottom: clamp(20px, 2vw, 28px); }
.how-cta { margin-top: clamp(28px, 3vw, 40px); --btn-bg: #fff; --btn-fg: var(--ink); --btn-hover: var(--surface-2); }

.how-window { display: grid; grid-template-columns: 170px minmax(0, 1fr); background: var(--surface); color: var(--ink); border-radius: var(--r-lg) 0 0 var(--r-lg); padding: 10px 0 10px 10px; min-width: 0; container-type: inline-size; }
.hw-rail { display: flex; flex-direction: column; padding: 18px 14px; font-size: 14px; }
.hw-rail ul { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 4px; }
.hw-rail li { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; color: var(--muted); transition: background .4s var(--ease), color .4s var(--ease); }
.hw-rail li.on { background: var(--surface-2); color: var(--ink); font-weight: 500; }
.hw-rail-foot { margin-top: auto; padding: 40px 10px 4px; display: flex; gap: 8px; font-size: 12px; line-height: 1.35; color: var(--muted); }
.hw-main { background: #fff; border-radius: var(--r) 0 0 var(--r); padding: 16px clamp(16px, 2.4vw, 32px) clamp(20px, 2.4vw, 32px); min-width: 0; }
.hw-crumbs { font-size: 13px; color: var(--muted); padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.hw-crumbs span { margin-inline: 6px; }
.hw-crumbs b { font-weight: 500; color: var(--ink); }
.hw-panels { display: grid; }
.hw-panel { grid-area: 1 / 1; display: flex; flex-direction: column; opacity: 0; transform: translateY(10px); visibility: hidden; transition: opacity .35s var(--ease), transform .55s var(--ease), visibility .35s; min-width: 0; }
.hw-panel.on { opacity: 1; transform: none; visibility: visible; }
.hw-title { padding-block: 22px 20px; }
.hw-title h4 { font-size: clamp(24px, 2.4vw, 32px); letter-spacing: -0.016em; }
.hw-title p { margin: 6px 0 0; font-size: 14px; color: var(--muted); }
.hw-cols { flex: 1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.hw-side { display: grid; gap: 12px; min-width: 0; }
.hw-card { border: 1px solid var(--line); border-radius: var(--r); padding: 16px; min-width: 0; font-size: 14px; }
.hw-card .label { display: block; margin-bottom: 10px; }
.hw-card .label.hw-gap { margin-top: 18px; }
.hw-options { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.hw-options li { display: flex; align-items: center; gap: 12px; padding: 7px; border: 1px solid var(--line); border-radius: 10px; font-weight: 500; }
.hw-options li.on { border-color: var(--ink); }
.hw-options .ph { margin-left: auto; margin-right: 4px; color: var(--accent); }
.hw-art { width: 40px; height: 40px; border-radius: 6px; overflow: hidden; flex-shrink: 0; }
.hw-art svg { display: block; width: 100%; height: 100%; }
.hw-big { font-size: 34px; font-weight: 500; letter-spacing: -0.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.hw-big small { font-size: 15px; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.hw-slider { height: 4px; margin-top: 16px; border-radius: 4px; background: var(--surface-2); }
.hw-slider i { display: block; height: 100%; border-radius: inherit; background: var(--ink); }
.hw-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.hw-chips span { padding: 6px 12px; border-radius: var(--pill); background: var(--surface); font-weight: 500; font-size: 13px; }
.hw-chips span.on { background: var(--ink); color: #fff; }
.hw-draw { display: grid; place-items: center; background: var(--surface); border-color: transparent; }
.hw-draw .sill-svg { width: 100%; max-height: 300px; }
.hw-row { display: flex; justify-content: space-between; gap: 12px; padding-block: 7px; color: var(--muted); }
.hw-row strong { color: var(--ink); font-weight: 500; white-space: nowrap; font-variant-numeric: tabular-nums; }
.hw-row.total { margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--ink); font-weight: 500; }
.hw-swatches { display: flex; gap: 8px; }
.hw-swatches span { width: 28px; height: 28px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(23, 22, 20, .14); }
.hw-swatches span.on { outline: 2px solid var(--ink); outline-offset: 2px; }
.hw-note { margin: 0; font-size: 14px; line-height: 1.45; color: var(--muted); }
.hw-allow { display: grid; align-items: center; }
.hw-allow .allow-fig { margin: 0; }
.hw-colour { display: grid; gap: 12px; }
.hw-shots { position: relative; aspect-ratio: 2 / 1; border-radius: var(--r); overflow: hidden; background: var(--surface); }
.hw-shots img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; opacity: 0; transition: opacity .35s var(--ease); }
.hw-shots img.on { opacity: 1; }
.hw-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(84px, 1fr)); gap: 8px; }
.hw-tiles li { display: grid; gap: 6px; font-size: 13px; color: var(--muted); cursor: pointer; }
.hw-tiles img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: 40% 55%; border-radius: 6px; }
.hw-tiles li:hover { color: var(--ink); }
.hw-tiles li.on { color: var(--ink); font-weight: 500; }
.hw-tiles li.on img { outline: 2px solid var(--ink); outline-offset: 2px; }
.hw-canopy { display: grid; gap: 12px; }
.hw-canopy img { display: block; width: 100%; height: auto; border-radius: var(--r); }
.hw-canopy .hw-note { margin-top: 10px; }
.how-ctas { display: flex; flex-wrap: wrap; gap: 8px; margin-top: clamp(28px, 3vw, 40px); }
.how-ctas .how-cta { margin-top: 0; }
.how-ctas .btn-ghost { --btn-bg: var(--on-ink-line); --btn-fg: var(--on-ink); --btn-hover: rgba(255, 255, 255, .22); }
.canopy-how { margin-top: clamp(64px, 8vw, 112px); }
.hw-btn { display: grid; place-items: center; height: 42px; margin-top: 14px; border-radius: var(--pill); background: var(--ink); color: #fff; font-weight: 500; }
@container (max-width: 560px) {
  .hw-cols { grid-template-columns: minmax(0, 1fr); align-content: start; }
}
@media (max-width: 1240px) {
  .how-window { grid-template-columns: minmax(0, 1fr); }
  .hw-rail { display: none; }
}
@media (min-width: 1025px) {
  /* The active divider fills over 4 seconds, then the next step opens. Resting on the list pauses it. */
  .how.auto .on > .how-text::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: #fff; transform-origin: left; animation: how-timer 4s linear forwards paused; }
  .how.auto.playing:not(:has(.how-window:hover)) .how-list:not(:hover) .on > .how-text::after { animation-play-state: running; }
}
@keyframes how-timer { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* Photo cards grid (2 x 2) */
.range-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 24px; margin-bottom: clamp(32px, 4vw, 56px); }
/* Tiles follow the Munster Coving megamenu: square, square-cornered photos with a name and a small category. */
.prod-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(24px, 2.4vw, 36px) 16px; }
.prod { display: block; color: inherit; text-decoration: none; }
.prod-img { display: block; aspect-ratio: 1; overflow: hidden; background: var(--surface); }
.prod-img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.prod-img.fit { background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.prod-img.fit img { object-fit: contain; padding: 8px; }
.prod:hover .prod-img img { transform: scale(1.04); }
.prod-name { display: block; margin-top: 12px; font-size: 15px; line-height: 1.25; }
.prod-tag { display: block; margin-top: 4px; font-size: 12px; line-height: 1.5; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.prod-ask { display: flex; flex-direction: column; aspect-ratio: 1; padding: 16px; background: var(--ink); color: var(--on-ink); min-width: 0; }
.prod-ask h3 { font-size: 20px; line-height: 1.15; }
.prod-ask p { margin: 6px 0 auto; font-size: 13px; color: var(--on-ink-muted); }
.prod-ask a { color: inherit; font-size: 13px; font-weight: 500; padding-block: 3px; text-underline-offset: 3px; }
.prod-ask a:focus-visible { outline-color: #fff; }
.mega-all { display: inline-flex; align-items: center; gap: 8px; color: inherit; font-weight: 500; text-decoration: none; padding-bottom: 6px; border-bottom: 1px solid currentColor; }
.pp-list { padding-block: clamp(24px, 3vw, 40px) clamp(56px, 7vw, 96px); }
.range-head.split { flex-direction: row; justify-content: space-between; align-items: end; text-align: left; flex-wrap: wrap; }
.photo-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.photo-card { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r-lg); overflow: hidden; color: #fff; text-decoration: none; display: flex; flex-direction: column; justify-content: space-between; padding: clamp(18px, 2vw, 28px); isolation: isolate; }
.photo-card .photo { position: absolute; inset: 0; z-index: -1; }
.photo-card .photo img { transition: transform 1.4s var(--ease); }
.photo-card:hover .photo img { transform: scale(1.04); }
.photo-card .photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,16,12,.55), transparent 30%, transparent 45%, rgba(20,16,12,.78)); }
.photo-card .pc-tag { font-size: 13px; font-weight: 500; }
.photo-card .pc-foot { display: flex; justify-content: space-between; align-items: end; gap: 16px; }
.photo-card h3 { font-size: clamp(24px, 2.4vw, 34px); letter-spacing: -0.014em; }
.photo-card small { display: block; font-size: 13px; margin-top: 4px; }
.plus { width: 40px; height: 40px; border-radius: var(--pill); display: grid; place-items: center; background: rgba(255,255,255,.18); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); flex-shrink: 0; transition: background .3s, transform .4s var(--ease); }
.photo-card:hover .plus { background: var(--accent); transform: rotate(90deg); }

/* Compare */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.compare-col { padding: clamp(28px, 4vw, 48px); border-radius: var(--r-lg); background: var(--surface); }
.compare-col.us { background: var(--accent-ink); color: #fff; }
.compare-col.us .label, .compare-col.us p { color: #fff !important; }
.compare-time { font-size: clamp(56px, 7vw, 104px); font-weight: 500; letter-spacing: -0.024em; line-height: 1; margin: 18px 0 6px; }
.compare-col ul { list-style: none; padding: 0; margin: 32px 0 0; }
.compare-col li { display: flex; gap: 14px; align-items: baseline; padding: 12px 0; border-top: 1px solid var(--line); }
.compare-col.us li { border-color: rgba(255,255,255,.22); }
.compare-col li .ph { position: relative; top: 3px; flex-shrink: 0; }
.compare-col.them li { color: var(--muted); }

/* FAQ */
.faq { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(24px, 5vw, 80px); }
.faq-head .lede { margin-top: 16px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 0; font-size: 17px; font-weight: 500; letter-spacing: -0.006em; cursor: pointer; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary .ph { transition: transform .4s var(--ease); flex-shrink: 0; }
.faq-list details[open] summary .ph { transform: rotate(45deg); color: var(--accent); }
.faq-list details.closing summary .ph { transform: none; color: inherit; }
.faq-list details p { color: var(--muted); padding: 0 48px 24px 0; max-width: 64ch; }

/* CTA */
.cta-block { position: relative; min-height: 560px; display: grid; place-items: center; text-align: center; overflow: hidden; color: #fff; border-radius: var(--r-lg); isolation: isolate; }
.cta-block .photo { position: absolute; inset: 0; z-index: -1; }
.cta-block .photo::after { content: ""; position: absolute; inset: 0; background: rgba(20, 16, 12, .7); }
.cta-inner { padding: clamp(32px, 6vw, 80px); max-width: 820px; display: flex; flex-direction: column; align-items: center; }
.cta-inner .label { color: #fff; margin-bottom: 20px; }
.cta-inner h2 { font-size: clamp(40px, 5.6vw, 80px); letter-spacing: -0.022em; }
.cta-inner p { color: #fff; margin-top: 18px; max-width: 46ch; font-size: 17px; }
.cta-btns { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 32px; }
.cta-inner .btn { --btn-bg: #fff; --btn-fg: #171614; --btn-hover: var(--surface-2); }
.cta-inner .btn.btn-glass { --btn-bg: rgba(255,255,255,.2); --btn-fg: #fff; --btn-hover: rgba(255,255,255,.3); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }

/* ---------- Footer ---------- */
.site-footer { padding: clamp(64px, 8vw, 120px) 0 32px; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding-bottom: clamp(56px, 7vw, 96px); }
.footer-top .logo-mark { width: 28px; height: 28px; margin-bottom: 28px; }
.footer-top .statement { font-size: clamp(18px, 1.6vw, 22px); letter-spacing: -0.008em; line-height: 1.4; max-width: 30ch; }
.footer-top .statement span { color: var(--muted); }
.footer-big a { display: block; width: fit-content; font-size: clamp(18px, 1.6vw, 22px); letter-spacing: -0.008em; text-decoration: none; padding: 2px 0; transition: color .2s; }
.footer-big a:hover { color: var(--accent-ink); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; font-size: 14px; }
.footer-grid h4 { font-size: 14px; font-weight: 500; letter-spacing: -0.004em; margin: 0 0 10px; }
.footer-grid p { padding-top: 3px; }
.footer-grid p { color: var(--muted); }
.footer-grid a { display: block; width: fit-content; text-decoration: none; padding: 3px 0; transition: color .2s; }
.footer-grid a:hover { color: var(--accent-ink); }
.footer-legal { margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }

/* ---------- Page shell ---------- */
.page-head { padding-top: 32px; }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 24px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--accent-ink); }
.page-title { font-size: clamp(44px, 6vw, 88px); letter-spacing: -0.022em; margin-bottom: 36px; }

/* ---------- Sill drawing ---------- */
.sill-svg { width: 100%; height: auto; overflow: visible; }
.sill-svg .body { transition: fill .6s var(--ease); }
.sill-svg .outline { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.sill-svg .dims { stroke: currentColor; opacity: .45; fill: none; vector-effect: non-scaling-stroke; }
.sill-svg text { fill: currentColor; font-family: var(--sans); }

/* ---------- Tiles (profiles list) ---------- */
.tile { background: var(--surface); border-radius: var(--r-lg); padding: 24px; position: relative; overflow: hidden; text-decoration: none; display: flex; flex-direction: column; gap: 6px; transition: background .35s var(--ease), transform .5s var(--ease); }
.tile h3 { font-size: 22px; }
.tile .label { text-transform: none; letter-spacing: 0; font-size: 13px; font-weight: 400; }
.tile.product:hover { background: var(--surface-2); }
.tile.product:hover .tile-svg { transform: translateY(-4px); }
.tile-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.tile-top .label { color: var(--ink); font-weight: 500; }
.tile-svg { transition: transform .6s var(--ease); }
.sills-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.sills-grid .tile { min-height: 300px; }
.sills-grid .tile .tile-svg { margin-top: auto; height: 130px; display: flex; align-items: end; justify-content: center; }
.sills-grid .tile .tile-svg svg { width: 100%; height: 100%; }

/* ---------- Finder ---------- */
.finder { display: grid; grid-template-columns: 300px 1fr; gap: 12px; align-items: stretch; }
.finder-rail { background: #171614; color: #ffffff; padding: 28px; border-radius: var(--r-lg); --on-ink: #ffffff; --on-ink-muted: rgba(255,255,255,.74); --on-ink-line: rgba(255,255,255,.12); }
.finder-rail .label { color: var(--on-ink-muted); }
.rail-steps { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 4px; }
.rail-steps li { display: flex; gap: 14px; align-items: center; padding: 12px 14px; border-radius: var(--r); color: var(--on-ink-muted); font-size: 15px; position: relative; transition: color .3s, background .3s; }
.rail-steps li .n { font-size: 12px; width: 20px; font-variant-numeric: tabular-nums; }
.rail-steps li.done { color: var(--on-ink); cursor: pointer; }
.rail-steps li.done:hover { background: rgba(255,255,255,.06); }
.rail-steps li.done .n { color: var(--accent-on-dark); }
.rail-steps li.current { color: var(--on-ink); font-weight: 500; background: rgba(255,255,255,.08); }
.rail-steps li.current .n { color: var(--accent-on-dark); }
.rail-summary { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--on-ink-line); font-size: 14px; display: grid; gap: 10px; }
.rail-summary div { display: flex; justify-content: space-between; gap: 12px; }
.rail-summary span:first-child { color: var(--on-ink-muted); }
.rail-skip { margin-top: 28px; font-size: 14px; color: var(--on-ink-muted); }
.rail-skip a { color: var(--on-ink); }

.finder-panel { background: var(--surface); padding: clamp(24px, 4vw, 56px); min-height: 600px; border-radius: var(--r-lg); }
.finder-panel h2 { font-size: clamp(32px, 3.6vw, 52px); margin: 10px 0 14px; }
.finder-panel .help { color: var(--muted); max-width: 60ch; }
.step-enter > * { animation: stepIn .6s var(--ease) both; }
.step-enter > *:nth-child(2) { animation-delay: .04s; }
.step-enter > *:nth-child(3) { animation-delay: .08s; }
.step-enter > *:nth-child(4) { animation-delay: .12s; }
.step-enter > *:nth-child(n+5) { animation-delay: .16s; }
@keyframes stepIn { from { opacity: 0; transform: translateY(14px); } }

.options { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; margin-top: 36px; }
.option {
  text-align: left; background: var(--bg); border: 0; border-radius: var(--r); padding: 20px; cursor: pointer;
  display: flex; flex-direction: column; gap: 6px; min-height: 168px; position: relative;
  transition: background .35s var(--ease), color .35s var(--ease), transform .3s var(--ease);
}
.option .ph { font-size: 26px; transition: transform .45s var(--ease); }
@media (hover: hover) {
  .option:hover { background: var(--surface-2); }
  .option:hover .ph { transform: translateY(-3px); }
}
.option.selected { background: var(--ink); color: var(--bg); }
.option.selected .ph { color: var(--accent); }
.option.selected small { color: color-mix(in srgb, var(--bg) 62%, transparent); }
.option strong { font-size: 17px; font-weight: 500; letter-spacing: -0.006em; margin-top: 28px; }
.option small { color: var(--muted); font-size: 13px; line-height: 1.45; }
.finder-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }

.slider-block { margin-top: 40px; display: grid; grid-template-columns: 1fr 320px; gap: 40px; align-items: center; }
.big-readout { font-size: clamp(72px, 8vw, 120px); font-weight: 500; letter-spacing: -0.024em; line-height: 1; font-variant-numeric: tabular-nums; }
.big-readout small { font-size: 16px; letter-spacing: 0; color: var(--muted); margin-left: 8px; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 32px; background: transparent; margin-top: 16px; }
input[type="range"]::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: var(--surface-2); }
input[type="range"]::-moz-range-track { height: 4px; border-radius: 4px; background: var(--surface-2); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); margin-top: -9px; border: 3px solid var(--surface); box-shadow: 0 1px 4px rgba(0,0,0,.2); transition: transform .2s; }
input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--accent); border: 3px solid var(--surface); }
input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.2); }
input[type="range"]:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }
.range-labels { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.diagram { background: var(--bg); border-radius: var(--r); padding: 16px; color: var(--ink); }
.diagram svg { width: 100%; }
.diagram .frame, .diagram .bar, .diagram text.v { transition: transform .35s var(--ease); }

.windows-list { display: grid; gap: 8px; margin-top: 32px; }
.window-row { display: grid; grid-template-columns: 40px 1fr 140px 48px; gap: 12px; align-items: end; background: var(--bg); border-radius: var(--r); padding: 14px; animation: stepIn .5s var(--ease) both; }
.window-row .idx { font-size: 12px; color: var(--muted); padding-bottom: 15px; font-variant-numeric: tabular-nums; }
.field { display: grid; gap: 8px; }
.field label { font-size: 13px; color: var(--muted); }
.input, select.input {
  width: 100%; height: 48px; padding: 0 16px; border-radius: var(--r);
  border: 1px solid var(--line); background: #fff; font-size: 16px;
  transition: border-color .2s, box-shadow .2s;
}
@media (hover: hover) { .input:hover { border-color: color-mix(in srgb, var(--ink) 30%, transparent); } }
.input:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.input::placeholder { color: var(--muted); }
.input-suffix { position: relative; }
.input-suffix .input { padding-right: 46px; font-variant-numeric: tabular-nums; }
.input-suffix span { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-size: 12px; color: var(--muted); pointer-events: none; }
.icon-btn { width: 48px; height: 48px; border: 0; border-radius: var(--pill); background: var(--surface-2); cursor: pointer; display: grid; place-items: center; transition: background .2s, color .2s; }
.icon-btn:hover:not([disabled]) { background: var(--ink); color: var(--bg); }
.icon-btn[disabled] { opacity: .3; cursor: not-allowed; }

/* Result */
.result { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 32px; }
.result > * { background: var(--bg); border-radius: var(--r-lg); }
.result-card { background: #171614 !important; color: #ffffff; padding: 32px; display: flex; flex-direction: column; gap: 18px; }
.result-card .label { color: rgba(255,255,255,.74); }
.result-card .code { font-size: clamp(56px, 6vw, 88px); font-weight: 500; letter-spacing: -0.024em; line-height: 1; }
.result-card .btn { --btn-bg: var(--accent-ink); --btn-fg: #fff; --btn-hover: var(--accent-hover); }
.result-side { padding: 32px; display: flex; flex-direction: column; gap: 24px; }
.why { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.why li { display: grid; grid-template-columns: 22px 1fr; gap: 8px; font-size: 15px; }
.why li .ph { position: relative; top: 3px; color: var(--accent); }
.estimate { border-top: 1px solid var(--line); padding-top: 20px; }
.estimate .price { font-size: 44px; font-weight: 500; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.alt-list { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }

/* ---------- Product ---------- */
.product-layout { display: grid; grid-template-columns: 1.05fr 1fr; gap: 12px; align-items: stretch; }
.product-visual { background: #171614; color: #ffffff; padding: clamp(24px, 4vw, 48px); position: relative; border-radius: var(--r-lg); }
.product-visual-inner { position: sticky; top: 108px; }
.product-visual .label { color: rgba(255,255,255,.74); }
.product-visual .sill-svg { margin: 40px auto; max-width: 520px; }
.spec-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.spec-grid div { padding: 14px 16px; background: rgba(255,255,255,.06); border-radius: var(--r); }
.spec-grid span { display: block; font-size: 12px; color: rgba(255,255,255,.74); }
.spec-grid strong { font-size: 24px; font-weight: 500; letter-spacing: -0.012em; }
.config { background: var(--surface); padding: clamp(24px, 4vw, 48px); border-radius: var(--r-lg); }
.config h1 { font-size: clamp(40px, 4.4vw, 64px); }
.config-section { padding: 28px 0; border-top: 1px solid var(--line); }
.config-section .row-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 16px; gap: 12px; }
.config-section h3 { font-size: 17px; font-weight: 500; letter-spacing: -0.006em; }
.config-section h3 .n { font-size: 12px; color: var(--accent-ink); font-weight: 500; margin-right: 10px; }
.matched { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; padding: 7px 14px; border-radius: var(--pill); background: var(--accent-soft); color: var(--accent-ink); margin-bottom: 18px; }
.swatches { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.swatch { display: flex; flex-direction: column; gap: 8px; padding: 0; background: none; border: 0; cursor: pointer; font-size: 12px; text-align: left; color: var(--muted); }
.swatch i { display: block; aspect-ratio: 1; border-radius: var(--r); border: 1px solid var(--line); outline: 2px solid transparent; outline-offset: 3px; transition: outline-color .25s, transform .3s var(--ease); }
.swatch:hover i { transform: translateY(-2px); }
.swatch.selected { color: var(--ink); }
.swatch.selected i { outline-color: var(--accent); }
.cutlist { display: grid; gap: 8px; }
.cut-row { display: grid; grid-template-columns: 1fr 120px 48px; gap: 8px; align-items: end; animation: stepIn .45s var(--ease) both; }
.toggle-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 0; cursor: pointer; }
.toggle-row + .toggle-row { border-top: 1px solid var(--line); }
.toggle-row strong { font-weight: 500; }
.toggle-row small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.switch { position: relative; width: 46px; height: 26px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.switch span { position: absolute; inset: 0; border-radius: var(--pill); background: var(--surface-2); transition: background .3s var(--ease); }
.switch span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .35s var(--ease); }
.switch input:checked + span { background: var(--accent); }
.switch input:checked + span::after { transform: translateX(20px); }
.switch input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.breakdown { padding-top: 20px; border-top: 1px solid var(--line); display: grid; gap: 8px; font-size: 14px; color: var(--muted); }
.breakdown div { display: flex; justify-content: space-between; font-variant-numeric: tabular-nums; }
.dispatch { display: flex; align-items: center; gap: 10px; margin-top: 16px; font-size: 14px; }
.dispatch .ph { color: var(--accent); }
.price-box { position: sticky; bottom: 12px; margin-top: 20px; background: #171614; color: #ffffff; padding: 18px 18px 18px 24px; border-radius: var(--r-lg); display: flex; align-items: center; justify-content: space-between; gap: 16px; box-shadow: 0 12px 32px rgba(23,22,20,.18); }
.price-box .total { font-size: 34px; font-weight: 500; letter-spacing: -0.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.price-box small { display: block; color: rgba(255,255,255,.74); font-size: 13px; margin-top: 6px; }
.price-box .btn { --btn-bg: var(--accent-ink); --btn-fg: #fff; --btn-hover: var(--accent-hover); }
.error { color: var(--danger); font-size: 13px; margin-top: 12px; }

/* ---------- Cart / checkout ---------- */
.cart-layout { display: grid; grid-template-columns: 1fr 400px; gap: clamp(24px, 3vw, 40px); align-items: start; }
.cart-items { display: grid; gap: 10px; }
.cart-item { border-radius: var(--r-lg); background: var(--surface); display: grid; grid-template-columns: 280px minmax(0, 1fr); overflow: hidden; animation: stepIn .5s var(--ease) both; }
.cart-item h3 { font-size: 20px; font-weight: 500; }
.cart-meta { color: var(--muted); font-size: 14px; margin-top: 8px; display: grid; gap: 2px; }
.cart-actions { display: flex; gap: 20px; margin-top: 16px; font-size: 14px; }
.cart-price { font-size: 22px; font-weight: 500; letter-spacing: -0.012em; text-align: right; font-variant-numeric: tabular-nums; }
.summary { position: sticky; top: 100px; border-radius: var(--r-lg); background: var(--surface); padding: 28px; }
.summary h3 { margin-bottom: 20px; font-weight: 500; }
.summary .btn-solid, .summary .btn:not(.btn-ghost) { --btn-bg: var(--accent-ink); --btn-fg: #fff; --btn-hover: var(--accent-hover); }
.sum-row { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; font-size: 15px; font-variant-numeric: tabular-nums; }
.sum-row.total { border-top: 1px solid var(--line); margin-top: 14px; padding-top: 18px; font-size: 26px; font-weight: 500; letter-spacing: -0.014em; }
.free-note { margin: 16px 0 12px; font-size: 13px; color: var(--muted); }
.empty { padding: clamp(64px, 10vw, 128px) clamp(24px, 4vw, 56px); border-radius: var(--r-lg); background: var(--surface); }
.empty h2 { margin: 0 0 16px; }
.empty .lede { margin-bottom: 28px; }

.checkout-steps { display: flex; gap: 6px; margin-bottom: 20px; width: fit-content; flex-wrap: wrap; }
.checkout-steps > span { height: 36px; padding: 0 16px 0 14px; font-size: 14px; font-weight: 500; color: var(--muted); display: inline-flex; align-items: center; gap: 8px; border-radius: var(--pill); background: var(--surface); border: 1px solid var(--line); }
.checkout-steps > span .mono { font-size: 12px; opacity: .8; }
.checkout-steps > span .ph { font-size: 14px; color: var(--accent); }
.checkout-steps > span.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.checkout-steps > span.done { color: var(--ink); }
.form-card { border-radius: var(--r-lg); background: var(--surface); padding: 32px; }
.form-card + .form-card { margin-top: 10px; }
.form-card.active-card > * { animation: stepIn .55s var(--ease) both; }
.form-card.collapsed { padding: 22px 32px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.form-card.collapsed .done-summary { color: var(--muted); font-size: 14px; margin-top: 4px; }
.form-card.locked { color: var(--muted); padding: 22px 32px; background: transparent; border: 1px solid var(--line); }
.form-card h3 { margin-top: 10px; font-weight: 500; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 22px; }
.form-grid .full { grid-column: 1 / -1; }
.radio-cards { display: grid; gap: 8px; margin-top: 22px; }
.radio-cards.two { grid-template-columns: 1fr 1fr; }
.radio-card { display: flex; gap: 14px; align-items: center; padding: 18px; background: var(--bg); border-radius: var(--r); cursor: pointer; border: 1px solid transparent; transition: background .3s var(--ease), border-color .3s; }
.radio-card:hover { background: var(--surface-2); }
.radio-card input { accent-color: var(--accent); width: 16px; height: 16px; }
.radio-card .rc-body { flex: 1; }
.radio-card strong { font-weight: 500; }
.radio-card small { display: block; color: var(--muted); font-size: 13px; }
.radio-card:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.note { margin-top: 18px; padding: 14px 16px; border-radius: var(--r); background: var(--bg); font-size: 14px; }

.confirm { background: #171614; color: #ffffff; padding: clamp(32px, 6vw, 80px); border-radius: var(--r-lg); }
.confirm h1 { font-size: clamp(48px, 6.4vw, 100px); }
.confirm .label { color: rgba(255,255,255,.74); }
.confirm p { color: rgba(255,255,255,.74); }
.confirm .total { font-size: clamp(40px, 4vw, 56px); font-weight: 500; letter-spacing: -0.02em; margin-top: 28px; }
.confirm .btn { --btn-bg: #ffffff; --btn-fg: #171614; --btn-hover: var(--surface-2); }
.confirm .btn-ghost { --btn-bg: rgba(255,255,255,.12); --btn-fg: #ffffff; --btn-hover: rgba(255,255,255,.22); }
.after-order { margin-top: clamp(48px, 6vw, 96px); }
.after-order h2 { margin-bottom: 24px; font-size: clamp(24px, 3vw, 36px); font-weight: 500; letter-spacing: -0.014em; }
.order-to { margin: 24px 0 0; padding-top: 16px; border-top: 1px solid var(--line); font-size: 15px; }
.order-to .label { display: block; margin-bottom: 8px; }
.more-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.more-grid .prod-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.more-feature { display: flex; flex-direction: column; min-width: 0; }
.more-feature .prod-img { position: relative; flex: 1; aspect-ratio: auto; }
.more-feature .prod-img img { position: absolute; inset: 0; }
.more-feature .prod-name { font-size: 20px; }
@media (max-width: 720px) {
  .more-grid { grid-template-columns: minmax(0, 1fr); }
  .more-feature { order: -1; }
  .more-feature .prod-img { flex: none; aspect-ratio: 4 / 3; }
}
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 56px; }
.timeline div { border-top: 2px solid rgba(255,255,255,.14); padding-top: 16px; font-size: 14px; color: rgba(255,255,255,.74); position: relative; }
.timeline div.on::before { content: ""; position: absolute; top: -2px; left: 0; height: 2px; width: 100%; background: var(--accent); transform-origin: left; animation: line 1.2s var(--ease) .3s both; }
@keyframes line { from { transform: scaleX(0); } }
.timeline strong { display: block; font-size: 16px; font-weight: 500; color: #ffffff; }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, calc(100% + 32px));
  background: #171614; color: #ffffff; padding: 10px 10px 10px 20px; border-radius: var(--pill);
  display: flex; align-items: center; gap: 16px; z-index: 100; font-size: 14px; max-width: calc(100% - 32px);
  box-shadow: 0 16px 40px rgba(23,22,20,.25); transition: transform .55s var(--ease), visibility 0s .55s; visibility: hidden;
}
.toast.show { transform: translate(-50%, 0); visibility: visible; transition: transform .55s var(--ease); }
.toast a { color: #fff; background: var(--accent-ink); border-radius: var(--pill); padding: 9px 16px; text-decoration: none; font-weight: 500; white-space: nowrap; }
.toast a:hover { background: color-mix(in srgb, var(--accent-ink) 85%, #000); }

/* ---------- Motion ---------- */
#app.route-enter { animation: routeIn .6s var(--ease) both; }
@keyframes routeIn { from { opacity: 0; transform: translateY(10px); } }

[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
[data-reveal].in { opacity: 1; transform: none; }

.hero h1 .line > span { animation: lineUp 1.2s var(--ease) .2s both; }
.hero h1 .line:nth-child(2) > span { animation-delay: .3s; }
.hero-frame > .photo { animation: frameIn 1.4s var(--ease) both; }
.hero-frame > .photo img { animation: settle 2.4s var(--ease) both; }
.hero .chip { animation: fadeUp 1s var(--ease) .5s both; }
.finder-card { animation: fadeUp 1s var(--ease) .65s both; }
@keyframes lineUp { from { transform: translateY(110%); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } }
@keyframes frameIn { from { clip-path: inset(6% 4% 6% 4% round 16px); } to { clip-path: inset(0 0 0 0 round 16px); } }
@keyframes settle { from { transform: scale(1.12); } }

/* Sill outline draws itself, then the coating fills in. */
/* Dashes on a non-scaling stroke run in screen pixels and would cut the outline short, so this one scales with the drawing. */
.sill-svg.draw .outline { vector-effect: none; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.6s var(--ease) .5s forwards; }
.sill-svg.draw .body, .sill-svg.draw .hatch-fill { opacity: 0; animation: fadeIn .8s var(--ease) 1.5s forwards; }
.sill-svg.draw .dims, .sill-svg.draw text { opacity: 0; animation: fadeDim .6s var(--ease) 1.9s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadeIn { to { opacity: 1; } }
@keyframes fadeDim { to { opacity: .55; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .sill-svg.draw .outline { stroke-dasharray: none; stroke-dashoffset: 0; }
  .sill-svg.draw .body, .sill-svg.draw .hatch-fill { opacity: 1; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1240px) and (min-width: 1025px) {
  .prod-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 1024px) {
  .site-header .wrap { grid-template-columns: 1fr auto; }
  .nav { display: none; }
  .about, .faq, .product-layout, .cart-layout, .result, .footer-top { grid-template-columns: 1fr; }
  .finder { grid-template-columns: 1fr; }
  .rail-steps { grid-template-columns: repeat(4, 1fr); }
  .rail-steps li { flex-direction: column; align-items: flex-start; gap: 4px; font-size: 13px; }
  .rail-summary, .rail-skip { display: none; }
  .product-visual-inner, .summary { position: static; }
  .sills-grid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: 1fr 1fr; }
  .prod-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  /* Stacked: the window sits under the accordion, inside the gutters. */
  .how-inner { grid-template-columns: minmax(0, 1fr); padding-inline: var(--gutter); }
  .how-window { border-radius: var(--r-lg); padding: 10px; }
  .hw-main { border-radius: var(--r); }
  .panel-dark .panel-head { grid-template-columns: 1fr; }
  .panel-dark .panel-head p { justify-self: start; }
}
@media (max-width: 720px) {
  .prod-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .header-phone { display: none; }
  .site-header .wrap { height: 68px; }
  .hero { padding: 0 8px 8px; }
  .hero-frame { min-height: calc(100dvh - var(--chrome, 68px) - 8px); }
  .hero-bottom { flex-direction: column; align-items: stretch; }
  .finder-card { width: 100%; }
  .hero-frame { overflow: visible; padding-bottom: 0; min-height: calc(100dvh - var(--chrome, 68px) - 8px + var(--fc-h, 0px) / 2); }
  .hero-frame > .photo { bottom: calc(var(--fc-h, 0px) / 2); border-radius: inherit; overflow: hidden; }
  .fc-stage { height: 170px; }
  .compare, .photo-cards, .sills-grid { grid-template-columns: 1fr; }
  .how-window { padding: 6px; }
  .sills-grid .tile { min-height: 210px; }
  .sills-grid .tile .tile-svg { height: 100px; }
  .cart-actions { gap: 4px 16px; flex-wrap: wrap; }
  .cart-actions .link-btn { padding: 10px 0; }
  .num-list a { grid-template-columns: 36px 1fr auto 20px; }
  .num-list .meta { display: none; }
  .stats strong { font-size: 56px; }
  .slider-block { grid-template-columns: 1fr; }
  .window-row { grid-template-columns: 1fr 88px 48px; }
  .window-row .idx { display: none; }
  .swatches { grid-template-columns: repeat(3, 1fr); }
  .form-grid, .radio-cards.two { grid-template-columns: 1fr; }
  .spec-grid { grid-template-columns: 1fr 1fr; }
  .timeline { grid-template-columns: 1fr 1fr; }
  .form-card, .form-card.collapsed, .form-card.locked { padding: 20px; }
  .price-box .total { font-size: 28px; }
  .cta-block { min-height: 480px; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Builder: full-screen configurator (Tesla / Mac style) ---------- */
body.app-mode .site-footer { display: none; }
body.app-mode { overflow: hidden; }
.builder { display: grid; grid-template-columns: 1fr minmax(380px, 440px); gap: 12px; height: calc(100dvh - var(--chrome, 110px)); padding: 0 12px 12px; }
.b-stage { position: relative; background: var(--surface); border-radius: var(--r-lg); display: flex; flex-direction: column; padding: clamp(20px, 3vw, 36px); min-height: 0; overflow: hidden; }
.b-stage-top { display: flex; justify-content: space-between; align-items: start; gap: 16px; }
.b-code { font-size: clamp(44px, 5vw, 76px); font-weight: 500; letter-spacing: -0.022em; line-height: 1; margin-top: 8px; transition: opacity .4s; }
.b-code.ghosted { color: #6b6b6b; }
.b-dims { color: var(--muted); font-size: 14px; margin-top: 8px; font-variant-numeric: tabular-nums; }
.b-canvas { flex: 1; min-height: 0; display: grid; place-items: center; }
.b-canvas svg { width: 100%; height: 100%; max-height: 100%; }
.b-canvas .face, .fc-stage .face { stroke-width: 1.3; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.b-canvas .len-dim { stroke: var(--accent); stroke-width: 1.2; vector-effect: non-scaling-stroke; fill: none; }
.b-canvas .len-text { fill: var(--accent); font: 500 14px var(--sans); }
/* Frame-position step: the sill seen side-on in a slice through the wall. */
.b-canvas .sc-wall { fill: color-mix(in srgb, var(--ink) 9%, transparent); }
.b-canvas .sc-frame { fill: #3b3936; }
.b-canvas .sc-glass { fill: #c7dbe3; }
.b-canvas .sc-edge { stroke: color-mix(in srgb, var(--ink) 45%, transparent); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.b-canvas .sc-face { stroke: var(--ink); stroke-width: 1.2; stroke-dasharray: 5 4; vector-effect: non-scaling-stroke; }
.b-canvas .sc-label { fill: var(--muted); font-family: var(--sans); font-weight: 500; }
.b-canvas .sc-dim { stroke: var(--accent); stroke-width: 1.6; fill: none; vector-effect: non-scaling-stroke; }
.b-canvas .sc-dim-text { fill: var(--accent); font-family: var(--sans); font-weight: 600; }
.b-facts { display: flex; flex-wrap: wrap; gap: 8px; min-height: 34px; }
.b-facts span { background: var(--bg); border-radius: var(--pill); padding: 7px 14px; font-size: 13px; font-weight: 500; animation: fadeUp .5s var(--ease) both; }

.b-side { display: flex; flex-direction: column; min-height: 0; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--bg); overflow: hidden; }
.b-progress { padding: 20px 24px 16px; border-bottom: 1px solid var(--line); }
.b-bars { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.b-bars span { height: 4px; border-radius: 4px; background: var(--surface-2); transition: background .4s var(--ease); }
.b-bars span.done { background: var(--ink); cursor: pointer; }
.b-bars span.on { background: var(--accent); }
.b-step-name { margin-top: 12px; font-size: 15px; font-weight: 500; display: flex; gap: 10px; align-items: baseline; }
.b-step-name span { font-size: 12px; color: var(--muted); font-weight: 400; }
.b-body { flex: 1; overflow-y: auto; padding: 24px; overscroll-behavior: contain; }
.b-body h2 { font-size: clamp(26px, 2.2vw, 32px); letter-spacing: -0.014em; }
.b-body .help { color: var(--muted); margin-top: 8px; font-size: 14px; }
.b-rows { display: grid; gap: 8px; margin-top: 20px; }
.b-row { display: grid; grid-template-columns: 20px 1fr 24px; gap: 14px; align-items: center; text-align: left; padding: 16px; border-radius: var(--r); border: 1px solid var(--line); background: var(--bg); cursor: pointer; transition: border-color .25s, background .25s; }
/* Hover only with a real pointer: touch screens keep :hover on the last tapped element. */
@media (hover: hover) { .b-row:hover { border-color: color-mix(in srgb, var(--ink) 35%, transparent); } }
.b-row strong { display: block; font-weight: 500; font-size: 15px; }
.b-row small { display: block; color: var(--muted); font-size: 13px; line-height: 1.4; margin-top: 2px; }
.b-row .ph { font-size: 22px; color: var(--muted); }
.b-radio { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid color-mix(in srgb, var(--ink) 35%, transparent); transition: border .2s; }
.b-row.selected { border-color: var(--accent); background: var(--accent-soft); }
.b-row.selected .b-radio { border: 5px solid var(--accent); }
.b-row.selected .ph { color: var(--accent); }
/* Picture fills the right fifth of the row, edge to edge. */
.b-row:has(.b-art) { grid-template-columns: 20px 1fr 20%; padding-right: 0; overflow: hidden; }
.b-art { align-self: stretch; margin-block: -16px; min-height: 72px; border-left: 1px solid var(--line); transition: border-color .25s; }
.b-art svg { display: block; width: 100%; height: 100%; }
.b-row.selected .b-art { border-left-color: var(--accent); }
.b-dial { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 20px; margin-top: 16px; }
.b-readout { font-size: clamp(44px, 4vw, 60px); white-space: nowrap; }
.b-dial .range-labels { margin-top: 2px; }
.b-body .windows-list { margin-top: 20px; }
.b-body .window-row { grid-template-columns: 1fr 84px 44px; background: var(--surface); }
.b-body .window-row .idx { display: none; }
.b-swatches { grid-template-columns: repeat(5, 1fr); margin-top: 20px; }
.b-colour-view { margin: 16px 0 0; }
.b-colour-view div { position: relative; aspect-ratio: 8 / 5; border-radius: var(--r); overflow: hidden; background: var(--surface); }
.b-colour-view img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .25s ease; }
.b-colour-view img.on { opacity: 1; }
.b-colour-view figcaption { margin-top: 8px; font-size: 12px; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .b-colour-view img { transition: none; } }
.b-foot { border-top: 1px solid var(--line); padding: 16px 24px 20px; display: grid; gap: 14px; }
.b-price { display: flex; justify-content: space-between; align-items: end; gap: 12px; }
.b-total { font-size: 30px; font-weight: 500; letter-spacing: -0.018em; line-height: 1.1; }
.b-price small { color: var(--muted); font-size: 12px; text-align: right; max-width: 22ch; }
.b-actions { display: flex; gap: 8px; }
.b-actions .btn-ghost { width: 46px; padding: 0; flex-shrink: 0; }
.b-next { flex: 1; }

@media (max-width: 900px) {
  /* Phone and tablet: compact sticky sill on top, questions flow with the page, price bar fixed to the bottom. */
  body.app-mode { overflow: auto; }
  .builder { display: block; height: auto; padding: 0 8px; }
  /* The frame-position step has little to answer, so the sill stage takes more of the screen there. */
  .builder { --stage-h: max(22svh, 170px); }
  .builder.is-side { --stage-h: max(34svh, 230px); }
  .b-stage { position: sticky; top: var(--hdr, 68px); z-index: 3; height: var(--stage-h); transition: height .45s var(--ease); padding: 10px 14px 8px; border-radius: var(--r-lg); }
  .b-stage-top { align-items: center; }
  .b-code { font-size: 22px; line-height: 1.1; }
  .b-dims, .b-stage .label { display: none; }
  .b-facts { display: none; }
  .b-canvas { padding: 6px 24px 2px; }
  .b-side { border: 0; border-radius: 0; overflow: visible; background: none; }
  .b-progress { position: sticky; top: calc(var(--hdr, 68px) + var(--stage-h)); z-index: 2; background: var(--bg); padding: 10px 8px 8px; }
  .b-body { overflow: visible; padding: 20px 8px calc(150px + env(safe-area-inset-bottom)); }
  .b-body h2 { font-size: 26px; }
  .b-row { padding: 14px; }
  .b-art { margin-block: -14px; }
  .b-swatches { grid-template-columns: repeat(5, 1fr); gap: 8px; }
  .b-foot { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 92%, transparent); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-top: 1px solid var(--line); padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); gap: 10px; box-shadow: 0 -8px 24px rgba(0,0,0,.06); }
  .b-total { font-size: 24px; }
  .b-price .label { font-size: 11px; }
  .b-actions .btn { height: 48px; }
  /* One row: price on the left, buttons on the right. */
  .b-foot { grid-template-columns: 124px 1fr; align-items: center; gap: 14px; padding-top: 10px; padding-bottom: calc(10px + env(safe-area-inset-bottom)); }
  .b-price small { display: none; }
  .b-total { font-size: 22px; }
  .b-step-name { margin-top: 8px; font-size: 14px; }
  .b-code { font-size: 30px; }
  .b-body { padding-bottom: calc(100px + env(safe-area-inset-bottom)); }
  .b-readout { font-size: 36px; }
  .b-dial { gap: 16px; margin-top: 8px; }
  .allow-fig { padding: 12px; }

}

/* ---------- Cart itemisation ---------- */
.cart-media { position: relative; margin: 0; min-height: 240px; background: var(--line); }
.cart-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; }
.cart-media.is-custom { display: grid; place-items: center; padding: 24px; }
.cart-media.is-custom .cart-section { position: static; width: 100%; max-width: 200px; }
.cart-section { position: absolute; left: 12px; top: 12px; width: 136px; padding: 12px; border-radius: var(--r); background: var(--bg); display: grid; gap: 8px; font-size: 12px; font-variant-numeric: tabular-nums; }
.cart-body { padding: 24px; min-width: 0; }
.cart-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.cart-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.cart-tags span { display: inline-flex; align-items: center; gap: 8px; background: var(--bg); border-radius: var(--pill); padding: 4px 12px; font-size: 13px; }
.cart-tags i { width: 12px; height: 12px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .2); }
.cart-note { margin: 12px 0 0; font-size: 12px; color: var(--muted); }
.cart-lines { list-style: none; margin: 20px 0 0; padding: 0; border-top: 1px solid var(--line); font-size: 15px; }
.cart-lines li { display: grid; grid-template-columns: 1fr auto 96px; gap: 16px; padding: 9px 0; font-variant-numeric: tabular-nums; }
.cart-lines li.group { font-weight: 500; padding-top: 14px; }
.cart-lines li.group + li.group, .cart-lines li.sub + li.group { border-top: 1px solid var(--line); margin-top: 6px; }
.cart-lines li.sub { padding: 4px 0 4px 20px; color: var(--muted); font-size: 14px; position: relative; }
.cart-lines li.sub::before { content: ""; position: absolute; left: 4px; top: 0; bottom: 0; width: 1px; background: var(--line); }
.cart-lines .qty { color: var(--muted); text-align: right; }
.cart-lines .amt { text-align: right; }
.cart-item .cart-actions { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
@media (max-width: 720px) {
  .cart-item { grid-template-columns: minmax(0, 1fr); }
  .cart-media { min-height: 0; aspect-ratio: 8 / 5; }
  .cart-section { left: 8px; top: 8px; width: 104px; padding: 8px; gap: 4px; }
  .cart-body { padding: 16px; }
  .cart-lines li { grid-template-columns: 1fr auto 76px; gap: 10px; }
}

/* Install kit contents */
.kit-details { border-top: 1px solid var(--line); }
.kit-details summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 14px 0; font-size: 14px; font-weight: 500; }
.kit-details summary::-webkit-details-marker { display: none; }
.kit-details summary::after { content: ""; width: 7px; height: 7px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: translateY(-2px) rotate(45deg); transition: transform .2s var(--ease); }
.kit-details[open] summary::after { transform: translateY(1px) rotate(225deg); }
.kit-details ul { list-style: none; margin: 0 0 12px; padding: 0 0 0 16px; border-left: 1px solid var(--line); display: grid; gap: 10px; }
.kit-details li { display: flex; justify-content: space-between; gap: 16px; font-size: 14px; font-variant-numeric: tabular-nums; }
.kit-details li strong { font-weight: 500; display: block; }
.kit-details li small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }

/* Selects: custom chevron with room either side */
select.input, select {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  padding-right: 48px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none' stroke='%23141414' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 18px center; background-size: 12px;
}
select.input { padding-left: 16px; }

/* Inner pages: the header keeps the page's own .wrap edges. The homepage and sill finder run full width,
   so there it lines up with the hero's inner edges (frame inset + frame padding). */
body.wide-page .site-header .wrap { max-width: none; padding-inline: calc(12px + clamp(20px, 3vw, 40px)); }
@media (max-width: 720px) { body.wide-page .site-header .wrap { padding-inline: calc(8px + clamp(20px, 3vw, 40px)); } }

textarea.input { height: auto; min-height: 76px; padding: 14px 16px; line-height: 1.5; resize: vertical; display: block; }
.input::placeholder { color: #9a9a9a; opacity: 1; }

/* Builder: drag to turn the sill */
.b-canvas { cursor: grab; touch-action: pan-y; user-select: none; border-radius: var(--r); }
.b-canvas.grabbing { cursor: grabbing; }
.b-canvas:focus-visible { outline-offset: -2px; }
.b-hint { position: absolute; right: clamp(20px, 3vw, 36px); bottom: clamp(20px, 3vw, 36px); display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); background: var(--bg); border-radius: var(--pill); padding: 8px 14px; pointer-events: none; transition: opacity .4s var(--ease); }
.b-hint.gone, .b-hint.flat { opacity: 0; }
@media (max-width: 900px) { .b-hint { display: none; } }

/* Help video: a "How to" card in the corner of the sill stage. Its video autoplays muted and opens into a full viewer. */
.b-stage { --tile-w: clamp(150px, 13vw, 196px); --tile-gap: 16px; }
.help-dock { position: absolute; right: var(--tile-gap); bottom: var(--tile-gap); z-index: 2; display: flex; flex-direction: column; align-items: flex-end; }
.help-tile { position: relative; width: var(--tile-w); transform-origin: 100% 100%; display: flex; flex-direction: column; padding: 0; border: 0; border-radius: 14px; overflow: hidden; background: var(--bg); text-align: left; cursor: pointer; box-shadow: 0 10px 28px rgba(23, 22, 20, .16), 0 0 0 1px rgba(23, 22, 20, .05); transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.help-tile-media { position: relative; display: block; aspect-ratio: 9 / 16; overflow: hidden; background: var(--ink); }
.help-tile-media video { display: block; width: 100%; height: 100%; object-fit: cover; }
.help-tile-play { position: absolute; inset: 0; margin: auto; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-size: 18px; color: #fff; background: rgba(255, 255, 255, .22); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: transform .45s var(--ease), background .3s; }
.help-tile-cap { display: grid; gap: 3px; padding: 10px 12px 12px; }
.help-tile-kicker { font-size: 11px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--accent-ink); }
.help-tile-title { font-size: 13px; font-weight: 500; line-height: 1.25; color: var(--ink); }
.help-tile-len { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.help-tile-len .ph { font-size: 13px; }
@media (hover: hover) {
  .help-tile:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(23, 22, 20, .22), 0 0 0 1px rgba(23, 22, 20, .05); }
  .help-tile:hover .help-tile-play { transform: scale(1.1); background: var(--accent); }
}
.help-tile:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.help-tile.is-away .help-tile-media { visibility: hidden; }
.help-min { position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; border-radius: 50%; border: 0; display: grid; place-items: center; font-size: 15px; color: #fff; background: rgba(0, 0, 0, .38); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); cursor: pointer; transition: background .25s, opacity .3s; }
.help-min:hover { background: rgba(0, 0, 0, .6); }
.help-min:focus-visible, .help-pill:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.help-pill { display: none; align-items: center; gap: 8px; height: 44px; padding: 0 18px 0 12px; border: 0; border-radius: var(--pill); background: var(--ink); color: #fff; font-size: 14px; font-weight: 500; cursor: pointer; box-shadow: 0 8px 22px rgba(23, 22, 20, .2); transition: background .25s, transform .4s var(--ease); }
.help-pill .ph { font-size: 22px; color: var(--accent-on-dark); }
.help-pill > span:first-of-type { font-size: 11px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--accent-on-dark); }
.help-pill-title { color: rgba(255, 255, 255, .9); }
.help-pill:hover { background: var(--ink-2); transform: translateY(-2px); }
.help-dock.is-min .help-tile, .help-dock.is-min .help-min { display: none; }
.help-dock.is-min .help-pill { display: inline-flex; animation: helpIn .45s var(--ease) both; }
.help-dock:not(.is-min) .help-tile { animation: helpIn .5s var(--ease) both; }
@keyframes helpIn { from { opacity: 0; transform: scale(.6); } }
.help-dock.is-intro:not(.is-min) .help-tile { animation: helpIntro 2.4s var(--ease) both; }
.help-dock.is-intro .help-min { opacity: 0; pointer-events: none; }
.help-dock.intro-done:not(.is-min) .help-tile { animation: none; }
@keyframes helpIntro {
  0% { opacity: 0; transform: scale(calc(var(--intro-s, 2) * .85)); }
  15% { opacity: 1; transform: scale(var(--intro-s, 2)); }
  55% { transform: scale(var(--intro-s, 2)); }
  100% { opacity: 1; transform: scale(1); }
}
.help-dock { transform-origin: 100% 100%; }
.b-hint { right: calc(var(--tile-gap) + var(--tile-w) + 12px); }
.b-facts { padding-right: calc(var(--tile-w) + 16px); }
.b-stage:has(.help-dock.is-min) .b-hint { right: var(--tile-gap); bottom: calc(var(--tile-gap) + 54px); }
.b-canvas { padding-right: calc(var(--tile-w) - 16px); }
@media (max-width: 900px) {
  /* Phones: just the video, with a red "How to" tag across its foot. */
  .b-stage { --tile-w: 56px; --tile-gap: 10px; }
  .help-dock { bottom: 16px; }
  .help-dock.is-min .help-tile { display: flex; }
  .help-min, .help-dock.is-min .help-pill { display: none; }
  .help-tile { overflow: visible; background: none; box-shadow: none; border-radius: 8px; }
  .help-tile-media { border-radius: 8px; box-shadow: 0 6px 16px rgba(23, 22, 20, .22); }
  .help-tile-play { width: 26px; height: 26px; font-size: 12px; }
  .help-tile-cap { position: absolute; left: 50%; bottom: -7px; transform: translateX(-50%); padding: 0; }
  .help-tile-title, .help-tile-len { display: none; }
  .help-tile-kicker { white-space: nowrap; font-size: 9px; letter-spacing: .05em; color: #fff; background: var(--accent-ink); border-radius: var(--pill); padding: 3px 7px; }
  .b-canvas { padding-right: calc(var(--tile-w) + 14px); }
}

.hv { position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; }
.hv-head { position: relative; display: flex; align-items: baseline; gap: 10px; margin: 0; color: #fff; font-size: 17px; font-weight: 500; letter-spacing: -0.01em; }
.hv-head span { font-size: 11px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--accent-on-dark); }
.hv-scrim { position: absolute; inset: 0; background: rgba(12, 11, 10, .84); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.hv-panel { position: relative; width: min(calc(100vw - 32px), 460px, calc((100dvh - 110px) * 0.5625)); aspect-ratio: 9 / 16; border-radius: 20px; overflow: hidden; background: #000; transform-origin: 0 0; touch-action: none; user-select: none; -webkit-user-select: none; cursor: grab; box-shadow: 0 30px 80px rgba(0, 0, 0, .45); transition: transform .45s var(--ease); }
.hv-panel:active { cursor: grabbing; }
.hv-panel video { display: block; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.hv-close { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border-radius: 50%; border: 0; display: grid; place-items: center; font-size: 20px; color: #fff; background: rgba(255, 255, 255, .16); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); cursor: pointer; transition: background .25s; }
.hv-close:hover { background: rgba(255, 255, 255, .28); }
.hv-close:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.hv-paused { position: absolute; inset: 0; margin: auto; width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; font-size: 30px; color: #fff; background: rgba(255, 255, 255, .18); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); opacity: 0; transform: scale(.9); transition: opacity .25s, transform .35s var(--ease); pointer-events: none; }
.hv.is-paused .hv-paused { opacity: 1; transform: none; }
.hv-bar { position: absolute; left: 16px; right: 16px; bottom: 14px; height: 3px; border-radius: 3px; overflow: hidden; background: rgba(255, 255, 255, .25); }
.hv-bar span { display: block; height: 100%; background: #fff; transform-origin: 0 50%; transform: scaleX(0); }
html.hv-open { overflow: hidden; }
/* Phone keyboard open: unpin the sill and progress so the field stays in view. The price bar stays. */
@media (max-width: 900px) {
  body.typing .b-stage, body.typing .b-progress { position: static; }
}

.finder-card .fc-badge { display: inline-flex; align-items: center; gap: 5px; margin-bottom: 8px; padding: 4px 10px 4px 8px; border-radius: var(--pill); background: rgba(23,22,20,.06); font-size: 12px; font-weight: 500; color: #171614; }
.finder-card .fc-badge .ph { font-size: 14px; color: var(--accent); transform: none !important; }
.finder-card .gc-foot > span { display: flex; flex-direction: column; align-items: flex-start; }
.footer-big { grid-column: 2 / -1; }
@media (max-width: 1024px) { .footer-big { grid-column: auto; } }

/* End allowance: 75 mm each side of the opening */
.allow-fig { margin: 20px 0 4px; padding: 16px 16px 12px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); }
.allow-fig svg { width: 100%; max-width: 420px; display: block; overflow: visible; }
.allow-fig text { font-family: var(--sans); font-size: 12px; fill: var(--ink); }
.allow-fig .af-plus { font-size: 14px; font-weight: 600; fill: #9e1a22; }
.allow-fig .af-mid { fill: var(--muted); }
.allow-fig .af-total { font-weight: 500; }
.allow-fig figcaption { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 13px; color: var(--ink); }
.af-key { width: 22px; height: 14px; flex-shrink: 0; border: 1.5px solid #9e1a22; background: repeating-linear-gradient(45deg, #db2832 0 2px, rgba(219,40,50,.16) 2px 5px); }
.sill-calc { grid-column: 1 / -1; margin: 0; font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.sill-calc strong { color: var(--ink); font-weight: 600; }
.b-canvas .allow, .fc-stage .allow { stroke: #9e1a22; stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.allow-tag rect { fill: #9e1a22; }
.allow-tag text { fill: #fff; font: 600 13px var(--sans); }
.allow-tag path { stroke: #9e1a22; stroke-width: 1.6; }

/* Canopies */
.canopy-hero { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 64px); align-items: center; }
.canopy-hero .page-title { margin: 0 0 20px; }
.ch-facts { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; }
.ch-facts li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.ch-facts .ph { font-size: 20px; color: var(--accent); flex-shrink: 0; }
.ch-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.ch-photo { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 5; max-height: 78dvh; justify-self: end; }
.ch-photo img, .canopy-feature img { width: 100%; height: 100%; object-fit: cover; display: block; }
.canopy-enquiry h2 { font-size: clamp(30px, 3.4vw, 44px); letter-spacing: -0.02em; margin: 0 0 12px; }
.canopy-value { margin-top: clamp(64px, 8vw, 112px); }
.canopy-value h2 { font-size: clamp(30px, 3.4vw, 44px); letter-spacing: -0.02em; margin: 0 0 12px; }
.canopy-value .lede { margin: 0; }
.cv-stats, .cv-site ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.cv-stats { margin-top: 28px; }
.cv-stats li { padding: 24px; background: var(--surface); border-radius: var(--r-lg); }
.cv-stats strong, .cv-site li strong { display: block; font-size: clamp(30px, 3.4vw, 44px); font-weight: 500; letter-spacing: -0.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.cv-stats strong { color: var(--accent-ink); }
.cv-stats span, .cv-site li span { display: block; margin-top: 8px; font-size: 14px; }
.cv-site { margin-top: 12px; padding: clamp(24px, 4vw, 48px); background: var(--ink); color: #fff; border-radius: var(--r-lg); }
.cv-site h3 { font-size: clamp(20px, 2vw, 24px); font-weight: 500; }
.cv-site p { margin: 8px 0 0; font-size: 15px; color: rgba(255, 255, 255, .74); }
.cv-site ul { margin-top: 24px; }
.cv-site li span { color: rgba(255, 255, 255, .74); }
.cv-note { margin: 12px 0 0; font-size: 12px; color: var(--muted); }
.canopy-enquiry [hidden] { display: none; }
.canopy-value > .label { display: block; margin-bottom: 12px; }
.cv-site .btn, .cf-copy .btn { --btn-bg: #ffffff; --btn-fg: #171614; --btn-hover: var(--surface-2); margin-top: 24px; }
.cn-label { display: block; margin-bottom: 8px; font-size: 14px; }
.canopy-enquiry .swatch i { max-width: 64px; }
@media (max-width: 720px) {
  .cv-stats { grid-template-columns: minmax(0, 1fr); }
  .cv-site ul { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .cv-site li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
  .cv-site li span { margin-top: 0; }
}
.canopy-feature { display: grid; grid-template-columns: 1fr 1fr; margin-top: clamp(64px, 8vw, 112px); border-radius: var(--r-lg); overflow: hidden; background: var(--ink); color: #fff; }
.canopy-feature img { height: min(78dvh, 700px); object-position: center 18%; }
.cf-copy { order: -1; align-self: end; padding: clamp(24px, 4vw, 56px); max-width: 44ch; }
.cf-copy h2 { font-size: clamp(36px, 5vw, 72px); letter-spacing: -0.024em; line-height: 1; margin: 0 0 16px; }
.cf-copy p { font-size: 17px; color: rgba(255,255,255,.86); }
.canopy-enquiry { display: grid; grid-template-columns: 1fr 1.3fr; gap: 40px; margin-top: clamp(64px, 8vw, 112px); padding: clamp(24px, 4vw, 48px); background: var(--surface); border-radius: var(--r-lg); scroll-margin-top: 100px; }
.canopy-enquiry .input { background-color: var(--bg); }
.canopy-enquiry .form-grid { margin-top: 0; }
.cn-contact { margin-top: 24px; font-size: 15px; line-height: 1.7; }
.cn-contact a { font-weight: 500; }
@media (max-width: 900px) {
  .canopy-hero, .canopy-enquiry { grid-template-columns: 1fr; }
  .ch-photo { aspect-ratio: 4 / 3; }
  .canopy-feature { grid-template-columns: 1fr; }
  .canopy-feature img { height: auto; aspect-ratio: 4 / 5; }
  .cf-copy { order: 0; }
}
@media (max-width: 480px) { .ch-facts { grid-template-columns: 1fr; } }


/* ---------- Mobile menu ---------- */
.menu-btn { display: none; width: 46px; height: 46px; border-radius: var(--pill); border: 1px solid var(--line); background: var(--bg); cursor: pointer; position: relative; flex-shrink: 0; }
.menu-btn span { position: absolute; left: 14px; right: 14px; height: 1.6px; background: var(--ink); border-radius: 2px; transition: transform .35s cubic-bezier(.22,1,.36,1), top .35s cubic-bezier(.22,1,.36,1); }
.menu-btn span:first-child { top: 18px; }
.menu-btn span:last-child { top: 26px; }
body.menu-open .menu-btn span:first-child { top: 22px; transform: rotate(45deg); }
body.menu-open .menu-btn span:last-child { top: 22px; transform: rotate(-45deg); }
.mobile-menu { position: fixed; inset: var(--hdr-bottom, 104px) 0 0 0; z-index: 49; background: var(--bg); padding: 16px calc(8px + clamp(20px, 3vw, 40px)) calc(32px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; overflow-y: auto; animation: menuIn .4s cubic-bezier(.22,1,.36,1) both; }
.mobile-menu[hidden] { display: none; }
.mobile-menu nav { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.mobile-menu nav a { display: flex; justify-content: space-between; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 26px; font-weight: 500; letter-spacing: -0.012em; text-decoration: none; }
.mobile-menu nav a .ph { font-size: 20px; color: var(--muted); }
.mobile-menu nav a.active { color: var(--accent-ink); }
.mm-foot { margin-top: auto; padding-top: 32px; display: grid; gap: 6px; font-size: 15px; color: var(--muted); }
.mm-foot a { color: var(--ink); font-weight: 500; }
@keyframes menuIn { from { opacity: 0; transform: translateY(-8px); } }
body.menu-open { overflow: hidden; }
@media (max-width: 1024px) {
  .menu-btn { display: inline-block; }
  .header-actions { gap: 10px; }
}
@media (max-width: 720px) {
  .cart-btn { height: 46px; padding: 0 6px 0 16px; }
}

/* Product pages */
.pdp { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; padding-block: clamp(24px, 3vw, 40px) clamp(48px, 6vw, 80px); }
.pdp-gallery { position: sticky; top: calc(var(--chrome, 80px) + 16px); display: grid; gap: 10px; min-width: 0; }
.pdp-main { position: relative; aspect-ratio: 1; background: var(--surface); overflow: hidden; }
.pdp-zoom { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.pdp-zoom img { width: 100%; height: 100%; object-fit: contain; display: block; }
.pdp-main.fit { aspect-ratio: 2 / 1; background: #fff; }
.pdp-nav { position: absolute; top: 50%; width: 44px; height: 44px; margin-top: -22px; display: grid; place-items: center; border: 0; border-radius: 50%; background: #fff; color: var(--ink); font-size: 18px; cursor: pointer; box-shadow: 0 2px 10px rgba(0,0,0,.14); transition: background .3s var(--ease); }
.pdp-nav:hover { background: var(--surface-2); }
.pdp-nav.prev { left: 12px; }
.pdp-nav.next { right: 12px; }
.pdp-thumbs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; position: relative; }
.pdp-thumbs::-webkit-scrollbar { display: none; }
.pdp-thumbs button { flex: 0 0 clamp(60px, 10.5%, 84px); aspect-ratio: 1; padding: 0; border: 0; background: var(--surface); cursor: pointer; opacity: .65; outline: 2px solid transparent; outline-offset: -2px; transition: opacity .3s var(--ease); }
.pdp-thumbs button:hover { opacity: 1; }
.pdp-thumbs button[aria-current] { opacity: 1; outline-color: var(--ink); }
.pdp-thumbs img, .pdp-swatches img, .pdp-grid img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pdp-info { min-width: 0; }
.pdp-info .prod-tag { display: block; margin-top: 18px; }
.pdp-info .page-title { margin-top: 8px; font-size: clamp(36px, 4vw, 56px); line-height: 1.04; }
.pdp-price { margin: 12px 0 0; font-size: 19px; font-weight: 500; }
.pdp-lede { margin: 12px 0 0; font-size: 17px; line-height: 1.5; color: var(--muted); max-width: 52ch; text-wrap: pretty; }
.pdp-opt { margin-top: 24px; min-width: 0; }
.pdp-opt > .label { display: block; margin-bottom: 10px; }
.pdp-opt > .label b { font-weight: 500; color: var(--ink); }
.pdp-swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 8px; }
.pdp-swatches button { aspect-ratio: 1; padding: 0; border: 0; background: var(--surface); cursor: pointer; outline: 2px solid transparent; outline-offset: 2px; transition: outline-color .25s var(--ease); }
.pdp-swatches button:hover { outline-color: var(--line); }
.pdp-swatches button[aria-checked="true"] { outline-color: var(--ink); }
.pdp-note { margin: 10px 0 0; font-size: 13px; color: var(--muted); }
.pdp-seg { display: flex; flex-wrap: wrap; gap: 6px; }
.pdp-seg button { min-height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: var(--pill); background: none; color: var(--ink); font: inherit; font-size: 14px; cursor: pointer; transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease); }
.pdp-seg button:hover { border-color: var(--ink); }
.pdp-seg button[aria-checked="true"] { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.pdp-stepper { display: inline-flex; align-items: center; height: 44px; border: 1px solid var(--line); border-radius: var(--pill); }
.pdp-stepper button { width: 44px; height: 100%; display: grid; place-items: center; border: 0; border-radius: var(--pill); background: none; color: var(--ink); cursor: pointer; transition: background .25s var(--ease); }
.pdp-stepper button:hover { background: var(--surface-2); }
.pdp-stepper input { width: 44px; border: 0; background: none; color: var(--ink); font: inherit; font-weight: 500; text-align: center; appearance: textfield; -moz-appearance: textfield; }
.pdp-stepper input::-webkit-outer-spin-button, .pdp-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pdp-summary { margin-top: 24px; padding: 18px 20px; background: var(--surface); border-radius: var(--r); }
.pdp-summary p { margin: 0 0 12px; font-size: 14px; }
.pdp-summary div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.pdp-summary strong { font-size: 20px; font-weight: 500; letter-spacing: -0.01em; }
.pdp-summary small { display: block; margin-top: 6px; font-size: 13px; color: var(--muted); }
.pdp-ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.pdp-ctas .btn { flex: 1 1 200px; justify-content: center; }
.pdp-trust { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 18px 0 0; padding: 0; font-size: 14px; color: var(--muted); }
.pdp-trust li { display: flex; align-items: center; gap: 6px; }
.pdp-trust .ph { color: var(--ink); }
.pdp-acc { margin-top: 28px; }
.pdp-acc details p:not(:last-child) { padding-bottom: 12px; }
.pdp-points { list-style: none; margin: 0; padding: 0 0 24px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; }
.pdp-points li { display: flex; align-items: center; gap: 8px; }
.pdp-points .ph { color: var(--accent); }
.pdp-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.pdp-grid button { display: block; width: 100%; aspect-ratio: 1; padding: 0; border: 0; background: var(--surface); cursor: zoom-in; overflow: hidden; }
.pdp-grid img { transition: transform .6s var(--ease); }
.pdp-grid button:hover img { transform: scale(1.03); }
.pdp-steps ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.pdp-steps li { padding-top: 16px; border-top: 1px solid var(--line); }
.pdp-steps li span { font-size: 14px; color: var(--accent-ink); font-weight: 500; }
.pdp-steps h3 { margin: 8px 0 6px; font-size: 20px; letter-spacing: -0.01em; }
.pdp-steps p { margin: 0; color: var(--muted); text-wrap: pretty; }
.pdp-selection { margin: 18px 0 0; font-weight: 500; }
.pdp-sticky { display: none; }
.pdp-lb { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(23,22,20,.94); overflow: hidden; }
.pdp-lb[open] { display: grid; place-items: center; }
.pdp-lb::backdrop { background: rgba(23,22,20,.94); }
.pdp-lb > img { max-width: min(92vw, 1400px); max-height: 84dvh; object-fit: contain; }
.pdp-lb .pdp-nav.close { top: 16px; right: 16px; margin: 0; }
.pdp-lb-count { position: absolute; top: 28px; left: 20px; color: var(--on-ink-muted); font-size: 14px; }
.pdp-lb-pick { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); --btn-bg: #fff; --btn-fg: var(--ink); --btn-hover: var(--surface-2); white-space: nowrap; }
.pdp-lb-pick:active { transform: translateX(-50%) scale(.97); }
@media (max-width: 1024px) {
  .pdp { grid-template-columns: minmax(0, 1fr); }
  .pdp-gallery { position: static; }
  .pdp-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .pdp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .pdp-steps ol { grid-template-columns: minmax(0, 1fr); }
  .pdp-nav { width: 40px; height: 40px; margin-top: -20px; }
  .pdp-sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; gap: 8px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); background: var(--bg); border-top: 1px solid var(--line); transform: translateY(110%); transition: transform .4s var(--ease); }
  .pdp-sticky.show { transform: none; }
  .pdp-sticky .btn:first-child { flex: 1; justify-content: center; }
}

/* Rounded product imagery */
.prod-img, .pdp-main, .pdp-grid button { border-radius: var(--r); overflow: hidden; }
.prod-ask { border-radius: var(--r); }
.pdp-thumbs button, .pdp-swatches button { border-radius: 8px; }
.pdp-thumbs img, .pdp-swatches img { border-radius: 8px; }
@media (max-width: 1100px) and (min-width: 1025px) { .header-phone { display: none; } }

/* Products mega menu */
.mega-trigger { display: inline-flex; align-items: center; gap: 4px; padding: 0; border: 0; background: none; color: inherit; font: inherit; font-size: 16px; font-weight: 500; cursor: pointer; transition: color .2s; }
.mega-trigger .ph { font-size: 13px; transition: transform .3s var(--ease); }
.mega-trigger:hover, .mega-trigger.active, .mega.open .mega-trigger { color: var(--accent-ink); }
.mega.open .mega-trigger .ph { transform: rotate(180deg); }
/* Keeps the pointer on target while it crosses from the link down to the panel. */
.mega-trigger { position: relative; }
.mega.open .mega-trigger::after { content: ""; position: absolute; left: -12px; right: -12px; top: 100%; height: 32px; }
.mega-panel { position: absolute; left: 0; right: 0; top: 100%; width: min(1200px, calc(100% - 48px)); margin-inline: auto; border-radius: 0 0 var(--r-lg) var(--r-lg); max-height: calc(100dvh - var(--hdr-bottom, 80px)); overflow-y: auto; background: var(--bg); border-top: 1px solid var(--line); visibility: hidden; opacity: 0; transform: translateY(-6px); transition: opacity .25s var(--ease), transform .35s var(--ease), visibility .25s; }
.mega-panel { pointer-events: none; }
.mega.open .mega-panel { visibility: visible; opacity: 1; transform: none; pointer-events: auto; }
.site-header:has(.mega.open) { background: var(--bg); box-shadow: 0 0 0 100vmax rgba(23,22,20,.28); clip-path: inset(0 -100vmax -100vmax -100vmax); }
.mega-inner { padding: 28px 32px 32px; }
.mega-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 20px; }
.mega-head h2 { font-size: 24px; letter-spacing: -0.015em; line-height: 1.2; }
.mega-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px 16px; }
.mega-grid .prod:hover .prod-name { color: var(--accent-ink); }
@media (prefers-reduced-motion: reduce) { .mega-panel { transition: none; transform: none; } }

/* Products in the phone menu */
.mm-products { border-bottom: 1px solid var(--line); }
.mm-products summary { list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 18px 0; font-size: 26px; font-weight: 500; letter-spacing: -0.012em; cursor: pointer; }
.mm-products summary::-webkit-details-marker { display: none; }
.mm-products summary .ph { font-size: 20px; color: var(--muted); transition: transform .3s var(--ease); }
.mm-products[open] summary .ph { transform: rotate(180deg); }
.mm-products summary.active { color: var(--accent-ink); }
.mm-grid { list-style: none; margin: 0; padding: 4px 0 8px; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 18px 12px; }
.mobile-menu nav a.prod { display: block; padding: 0; border: 0; font-size: inherit; font-weight: 400; letter-spacing: 0; }
.mobile-menu nav a.mm-all { justify-content: flex-start; gap: 8px; padding: 14px 0 20px; border: 0; font-size: 16px; }

/* File upload on product pages */
.pdp-drop { position: relative; display: grid; justify-items: center; gap: 4px; padding: 24px 20px; border: 1px dashed var(--muted); border-radius: var(--r); background: var(--surface); text-align: center; cursor: pointer; transition: background .25s var(--ease), border-color .25s var(--ease); }
.pdp-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.pdp-drop .ph { font-size: 22px; margin-bottom: 4px; }
.pdp-drop strong { font-size: 15px; font-weight: 500; }
.pdp-drop small { font-size: 13px; color: var(--muted); text-wrap: balance; }
.pdp-drop.over { border-color: var(--accent-ink); background: var(--surface-2); }
.pdp-drop:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 2px; }
@media (hover: hover) { .pdp-drop:hover { border-color: var(--ink); background: var(--surface-2); } }
@media (hover: none) { .pdp-drop strong span { display: none; } }
#ppFileError { margin-top: 10px; }
.pdp-files { list-style: none; margin: 0; padding: 0; }
.pdp-files:not(:empty) { margin-top: 8px; }
.pdp-files li { display: flex; align-items: center; gap: 10px; min-height: 48px; border-bottom: 1px solid var(--line); font-size: 14px; }
.pdp-files span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pdp-files small { flex-shrink: 0; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.pdp-file-remove { flex-shrink: 0; display: grid; place-items: center; width: 44px; height: 44px; margin-right: -12px; border: 0; border-radius: 50%; background: none; color: var(--muted); cursor: pointer; transition: background .25s var(--ease), color .25s var(--ease); }
.pdp-file-remove:hover { background: var(--surface-2); color: var(--ink); }

/* Product page sections: heading in the left column, content across the right two */
.pdp-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.pdp-split .range-head { align-items: flex-start; text-align: left; gap: 20px; margin: 0; }
.pdp-split .range-head h2 { font-size: clamp(32px, 3.4vw, 48px); letter-spacing: -0.02em; line-height: 1.05; }
.pdp-steps .pdp-split ol { grid-template-columns: minmax(0, 1fr); gap: 0; border-bottom: 1px solid var(--line); }
.pdp-steps .pdp-split li { display: grid; grid-template-columns: 28px minmax(0, 1fr) minmax(0, 1.4fr); gap: 4px 12px; align-items: baseline; padding: 22px 0; }
.pdp-steps .pdp-split h3 { margin: 0; }
@media (max-width: 900px) {
  .pdp-split { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .pdp-steps .pdp-split li { grid-template-columns: 28px minmax(0, 1fr); }
  .pdp-steps .pdp-split p { grid-column: 2; }
}

/* Size rows on product pages */
.pdp-sizes { display: grid; gap: 14px; }
.pdp-size-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 10px; align-items: end; }
.pdp-size-row.single { grid-template-columns: minmax(0, 1fr) auto; }
.pdp-sizes.many .pdp-size-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto 44px; }
.pdp-sizes.many .pdp-size-row.single { grid-template-columns: minmax(0, 1fr) auto 44px; }
.pdp-size-remove { display: none; width: 44px; height: 44px; place-items: center; border: 0; border-radius: 50%; background: none; color: var(--muted); cursor: pointer; transition: background .25s var(--ease), color .25s var(--ease); }
.pdp-sizes.many .pdp-size-remove { display: grid; }
.pdp-size-remove:hover { background: var(--surface-2); color: var(--ink); }
.pdp-size-add { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 6px; padding: 0; border: 0; background: none; color: var(--ink); font: inherit; font-size: 15px; font-weight: 500; cursor: pointer; }
@media (hover: hover) { .pdp-size-add:hover { color: var(--accent-ink); } }
.pdp-size-qty .pdp-stepper { height: 48px; }
@media (max-width: 560px) {
  .pdp-size-row, .pdp-size-row.single, .pdp-sizes.many .pdp-size-row, .pdp-sizes.many .pdp-size-row.single { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-bottom: 14px; border-bottom: 1px solid var(--line); }
  .pdp-size-row.single .field:first-child { grid-column: 1 / -1; }
  .pdp-size-qty { grid-column: 1; }
  .pdp-size-remove { grid-column: 2; justify-self: end; }
}

/* Development quote */
.dq-lede { max-width: 56ch; margin: 0; }
.dq-layout { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start; margin-top: clamp(32px, 4vw, 48px); padding-bottom: clamp(64px, 8vw, 112px); }
.dq-block { border: 0; border-top: 1px solid var(--line); margin: 0; padding: 24px 0 32px; min-width: 0; display: grid; gap: 12px; }
.dq-block legend { float: left; width: 100%; padding: 0; margin-bottom: 16px; font-size: 20px; font-weight: 500; letter-spacing: -0.01em; }
.dq-block .form-grid { margin-top: 0; }
.q-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.q-pill { position: relative; cursor: pointer; }
.q-pill input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.q-pill span { display: block; padding: 10px 16px; border-radius: var(--pill); background: var(--surface); font-size: 15px; transition: background .15s, color .15s; }
.q-pill:hover span { background: var(--surface-2); }
.q-pill input:checked + span { background: var(--ink); color: #fff; }
.q-pill input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.dq-product { background: var(--surface); border-radius: var(--r); }
.dq-product .q-pill span { background: var(--bg); }
.dq-product .q-pill:hover span { background: var(--surface-2); }
.dq-product .q-pill input:checked + span { background: var(--ink); }
.dq-check { display: flex; gap: 14px; align-items: center; padding: 16px 18px; cursor: pointer; }
.dq-check input { width: 18px; height: 18px; accent-color: var(--accent); flex-shrink: 0; }
.dq-check strong { display: block; font-weight: 500; }
.dq-check small { display: block; font-size: 13px; color: var(--muted); }
.dq-more { padding: 0 18px 18px; }
.dq-more[hidden] { display: none; }
.dq-label { display: block; margin: 12px 0 8px; font-size: 14px; }
.dq-label:first-child { margin-top: 0; }
.dq-aside { position: sticky; top: 104px; padding: clamp(20px, 2.4vw, 32px); background: var(--surface); border-radius: var(--r-lg); }
.dq-aside h2 { margin: 0 0 8px; font-size: 24px; letter-spacing: -0.016em; }
.dq-aside p { margin: 0 0 16px; color: var(--muted); }
.dq-aside .cn-contact { margin: 24px 0 0; color: inherit; }
@media (max-width: 1024px) {
  .dq-layout { grid-template-columns: minmax(0, 1fr); }
  .dq-aside { position: static; }
}
