:root {
  --brand: #305874;
  --brand-dark: #1f3d52;
  --brand-tint: #e8eff4;
  --accent: #2f87ab; /* deeper take on the site's #4caac9, readable on light backgrounds */
  --ink: #1f2a33;
  --muted: #5f6b74;
  --line: #dfe3e5;
  --bg: #f7f6f3;
  --card: #ffffff;
  --radius: 14px;
  --brand-grad: linear-gradient(160deg, #3d6d8e 0%, #305874 45%, #1f3d52 100%);
  --header-h: 64px;
  --serif: 'Outfit', 'Inter', system-ui, sans-serif; /* headings: geometric, like the logo */
  --sans: 'Inter', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.5 var(--sans);
  padding-bottom: calc(88px + env(safe-area-inset-bottom));
}
button { font: inherit; color: inherit; cursor: pointer; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }

/* ---------- Header / progress ---------- */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h); padding: 0 16px; background: var(--card); border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 10;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--brand); text-decoration: none; }
.brand img { height: 48px; width: auto; }
@media (min-width: 700px) {
  :root { --header-h: 78px; }
  .topbar { padding: 0 28px; }
  .brand img { height: 64px; }
}

/* Trust strip, in the logo's red */
.trust {
  display: flex; justify-content: center; gap: 8px 22px; padding: 9px 16px; overflow-x: auto; scrollbar-width: none;
  background: var(--brand-grad); color: #e6eef4; font-size: 12.5px; font-weight: 500; letter-spacing: .02em; white-space: nowrap;
}
.trust span { display: inline-flex; align-items: center; }
.trust span + span::before { content: '◆'; font-size: 7px; opacity: .6; margin-right: 22px; }
.trust b { font-weight: 500; }
.trust .short { display: none; }
@media (max-width: 699px) {
  .trust { gap: 8px 14px; }
  .trust span + span::before { margin-right: 14px; }
  .trust .long, .trust .wide-only { display: none; }
  .trust .short { display: inline; }
  body:not([data-step="photo"]) .trust { display: none; }
}
.call {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--brand); font-weight: 600; text-decoration: none; font-size: 14px;
  border: 1.5px solid var(--brand); border-radius: 999px; padding: 6px 14px;
}
.call:hover { background: var(--brand); color: #fff; }
.call-num { display: none; }
@media (min-width: 700px) {
  .call-short { display: none; }
  .call-num { display: inline; }
}
body[data-step="photo"] .progress { display: none; }
.sample-link { display: block; margin: 14px auto 0; font-weight: 500; }

.progress { max-width: 1160px; margin: 0 auto; padding: 14px 16px 0; }
.progress ol { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.progress li { flex: 1; }
.progress button {
  width: 100%; border: 0; background: none; padding: 0; display: flex; flex-direction: column;
  align-items: center; gap: 6px; font-size: 11px; color: var(--muted);
}
.progress button::before {
  content: ''; display: block; width: 100%; height: 4px; border-radius: 2px; background: var(--line);
}
.progress b { display: none; }
.progress .done button::before, .progress .current button::before { background: var(--brand); }
.progress .current button { color: var(--ink); font-weight: 600; }
.progress button:disabled { cursor: default; }

/* ---------- Steps ---------- */
main { max-width: 1160px; margin: 0 auto; padding: 20px 16px 24px; }
h1, h2 { font-family: var(--serif); font-weight: 700; line-height: 1.1; margin: 4px 0 8px; letter-spacing: -0.02em; }
h1 { font-size: clamp(28px, 7vw, 40px); }
h1 em { color: var(--accent); font-style: normal; }
h2 { font-size: clamp(24px, 6vw, 32px); }
.lede { color: var(--muted); margin: 0 0 20px; }
.sub { font-size: 12px; text-transform: uppercase; letter-spacing: .16em; color: var(--muted); margin: 22px 0 10px; font-weight: 600; }

.dropzone {
  display: block; border: 2px dashed #c5d0d7; border-radius: calc(var(--radius) + 4px); background: var(--card);
  cursor: pointer; overflow: hidden; transition: border-color .15s, background .15s, box-shadow .15s;
  box-shadow: 0 10px 30px rgba(25, 45, 60, .07);
}
.dropzone.over, .dropzone:hover { border-color: var(--brand); background: #fbfdfe; box-shadow: 0 12px 34px rgba(25, 45, 60, .14); }
.dropzone:focus-within { outline: 3px solid rgba(25, 45, 60, .3); outline-offset: 2px; }
.dropzone.has-photo { border-style: solid; border-color: var(--line); }
.dropzone.has-photo .dz-empty { display: none; }
.dz-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; color: var(--muted); text-align: center; padding: 28px 20px;
}
.dz-empty svg { color: var(--brand); margin-bottom: 6px; }
.dz-empty strong { color: var(--ink); font-size: 19px; }
.dz-sub { font-size: 14px; }
.dz-btn { margin-top: 14px; display: inline-flex; align-items: center; justify-content: center; min-width: 220px; font-size: 16px; }
.dz-drop { font-size: 12.5px; margin-top: 6px; }
.dropzone img { width: 100%; max-height: 60vh; object-fit: contain; background: #111; }

.tips { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--muted); font-size: 13.5px; }
.tips li::before { content: '✓'; color: var(--brand); font-weight: 700; margin-right: 8px; }

/* Color swatches */
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 12px; }
.swatch { border: 0; background: none; padding: 0; text-align: center; }
.swatch .chip {
  display: block; aspect-ratio: 1; border-radius: 12px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08);
  transition: transform .12s;
}
.swatch .name { display: block; font-size: 12.5px; margin-top: 6px; line-height: 1.25; }
.swatch[aria-pressed="true"] .chip { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--brand); transform: scale(.96); }
.swatch[aria-pressed="true"] .name { font-weight: 600; }

/* Cards (doors, hardware) */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.cards-sm { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); }
.card {
  background: var(--card); border: 1.5px solid var(--line); border-radius: var(--radius);
  padding: 12px; display: flex; flex-direction: column; align-items: center; gap: 8px; transition: border-color .12s;
}
.card .name { font-size: 14px; font-weight: 500; text-align: center; }
.card[aria-pressed="true"] { border-color: var(--brand); box-shadow: 0 0 0 1.5px var(--brand); background: var(--brand-tint); }
.door-art { width: 62%; }
.door-art svg, .door-art img { width: 100%; height: auto; filter: drop-shadow(0 4px 6px rgba(0,0,0,.12)); }
.hw-art { width: 100%; background: #eef1f2; border-radius: 8px; }
.hw-art svg { width: 100%; height: auto; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.finish {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 8px;
  border: 1.5px solid var(--line); border-radius: 999px; background: var(--card); font-size: 14px;
}
.finish .dot { width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }
.finish[aria-pressed="true"] { border-color: var(--brand); background: var(--brand-tint); font-weight: 600; }

/* ---------- Bottom nav ---------- */
.nav {
  position: fixed; inset: auto 0 0 0; z-index: 10;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.94);
  backdrop-filter: blur(8px); border-top: 1px solid var(--line);
}
.nav .btn.primary { flex: 1; max-width: 360px; margin-left: auto; }
.btn {
  border-radius: 999px; padding: 14px 22px; font-weight: 600; border: 1.5px solid transparent;
  min-height: 50px; transition: background .15s, opacity .15s;
}
.btn.primary { background: var(--brand-grad); color: #fff; box-shadow: 0 4px 14px rgba(25, 45, 60, .25); }
.btn.primary:hover { background: var(--brand-dark); }
.btn.primary:disabled { opacity: .4; cursor: not-allowed; }
.btn.ghost { background: var(--card); border-color: var(--line); }

/* ---------- Reveal ---------- */
.spinner {
  width: 54px; height: 54px; margin: 0 auto 20px; border-radius: 50%;
  border: 4px solid var(--brand-tint); border-top-color: var(--brand); animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.compare { position: relative; border-radius: var(--radius); overflow: hidden; background: #111; user-select: none; }
.compare > img { width: 100%; height: auto; }
.before-wrap { position: absolute; inset: 0; }
.before-wrap img { width: 100%; height: 100%; object-fit: cover; }
.handle { position: absolute; top: 0; bottom: 0; width: 3px; margin-left: -1.5px; background: #fff; pointer-events: none; }
.handle span {
  position: absolute; top: 50%; left: 50%; width: 40px; height: 40px; transform: translate(-50%, -50%);
  border-radius: 50%; background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.3);
}
.handle span::before { content: '‹ ›'; position: absolute; inset: 0; display: grid; place-items: center; font-weight: 700; color: var(--brand); }
.tag {
  position: absolute; top: 10px; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  background: rgba(0,0,0,.55); color: #fff; padding: 4px 10px; border-radius: 999px; pointer-events: none;
}
.tag-l { left: 10px; } .tag-r { right: 10px; }
.compare input[type=range] {
  position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: ew-resize; touch-action: pan-y;
}
.demo-note { font-size: 13px; color: var(--muted); background: #eef5f9; border-radius: 10px; padding: 10px 12px; }

input {
  font: inherit; font-size: 16px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px;
  background: #fff; width: 100%;
}
input:focus { outline: none; border-color: var(--brand); }
.lead {
  background: var(--brand-grad); color: #fff; border-radius: var(--radius); padding: 22px 18px; display: grid; gap: 10px;
}
.lead h3 { font-family: var(--serif); font-size: 22px; margin: 0; font-weight: 600; }
.lead p { margin: 0 0 6px; opacity: .85; font-size: 14px; }
.lead input { border-color: transparent; }
.lead .btn.primary { background: #fff; color: var(--brand); }
.form-msg { min-height: 1em; font-size: 14px; }



/* ---------- Home ---------- */
.home:not([hidden]) { display: grid; gap: 36px; }
.home h1 { margin-top: 8px; }
.showcase { margin: 0 10px 0 0; }
.showcase .eyebrow { margin: 0 0 12px; font-size: 12px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: #7b8790; }
.showcase .compare { box-shadow: 10px 12px 0 var(--brand), 0 14px 30px rgba(25, 45, 60, .22); }
.showcase figcaption { margin-top: 20px; font-size: 13px; color: var(--muted); text-align: center; }
@media (min-width: 900px) {
  .home:not([hidden]) { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: center; gap: 56px; min-height: calc(100vh - 150px); }
  .home h1 { font-size: 46px; }
  .home .lede { font-size: 17px; margin-bottom: 26px; }
}

/* ---------- Nav ---------- */
.nav-inner { max-width: 1160px; margin: 0 auto; display: flex; gap: 12px; justify-content: space-between; }

.compare.settling .before-wrap { transition: clip-path .45s cubic-bezier(.2, .7, .2, 1); }
.compare.settling .handle { transition: left .45s cubic-bezier(.2, .7, .2, 1); }

/* ---------- Looks ---------- */
.looks { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.look {
  background: var(--card); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 0; overflow: hidden;
  text-align: left; display: flex; flex-direction: column; transition: border-color .15s, transform .15s, box-shadow .15s;
}
.look:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(25, 45, 60, .08); }
.look[aria-pressed="true"] { border-color: var(--brand); box-shadow: 0 0 0 1.5px var(--brand); }
.look-art { display: block; aspect-ratio: 16 / 10; background: #eef1f2; }
.look-art svg { width: 100%; height: 100%; display: block; }
.look-name { padding: 10px 12px 0; font-weight: 600; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.look-name em {
  font-style: normal; font-size: 10.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase;
  color: var(--brand); background: var(--brand-tint); padding: 2px 7px; border-radius: 999px;
}
.looks-compact { grid-template-columns: repeat(2, 1fr); gap: 10px; }
.looks-compact .look-name { font-size: 13.5px; padding: 8px 10px 10px; }

/* ---------- Studio ---------- */
body[data-step="reveal"], body[data-step="photo"] { padding-bottom: 24px; }
.studio:not([hidden]) { display: grid; gap: 20px; }
.stage { min-width: 0; }

.compare.no-result .before-wrap, .compare.no-result .handle, .compare.no-result .tag,
.compare.no-result input { display: none; }
.render-overlay, .render-error {
  position: absolute; inset: 0; z-index: 3; display: grid; place-content: center; justify-items: center; gap: 12px;
  background: rgba(25, 45, 60, .55); backdrop-filter: blur(3px); color: #fff; text-align: center; padding: 20px;
}
.render-overlay p { font-family: var(--serif); font-size: 20px; margin: 0; }
.render-overlay .spinner { border-color: rgba(255,255,255,.25); border-top-color: #fff; margin: 0; }
.render-error p { margin: 0; max-width: 34ch; }

.stage-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 14px 0; }
.summary { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.summary strong { font-family: var(--serif); font-size: 20px; font-weight: 600; margin-right: 6px; }
.summary span {
  display: inline-flex; align-items: center; gap: 6px; background: var(--card); border: 1px solid var(--line);
  border-radius: 999px; padding: 4px 10px; font-size: 12.5px; font-weight: 500;
}
.summary i { width: 12px; height: 12px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }
.stage-actions { display: flex; gap: 8px; }
.btn.sm { min-height: 40px; padding: 8px 16px; font-size: 14px; }
.link { background: none; border: 0; padding: 0; color: var(--brand); font-weight: 600; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }

.saved { margin-top: 6px; }
.saved-head { display: flex; justify-content: space-between; align-items: baseline; }
.saved-head .sub { margin: 10px 0; }
.saved-list { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; }
.saved-item {
  flex: 0 0 132px; border: 1.5px solid var(--line); background: var(--card); border-radius: 10px; padding: 0; overflow: hidden; text-align: left;
}
.saved-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.saved-item span { display: block; padding: 6px 8px; font-size: 12.5px; font-weight: 600; }

.panel {
  background: var(--card); border: 1px solid var(--line); border-radius: calc(var(--radius) + 2px);
  padding: 14px; display: grid; gap: 16px; align-content: start; min-width: 0;
}
.tabs { display: flex; gap: 4px; background: var(--bg); border-radius: 999px; padding: 4px; overflow-x: auto; scrollbar-width: none; }
.tabs button {
  flex: 1; border: 0; background: none; border-radius: 999px; padding: 8px 12px; font-size: 13.5px; font-weight: 600;
  color: var(--muted); white-space: nowrap;
}
.tabs button[aria-selected="true"] { background: var(--card); color: var(--brand); box-shadow: 0 1px 4px rgba(0,0,0,.1); }
.tab-body { padding: 2px; }
.tab-body .sub:first-child { margin-top: 4px; }
.tab-body .swatches { grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 10px; }
.hint { margin: 0 0 10px; font-size: 13.5px; color: var(--muted); }
.finish.match { margin-bottom: 4px; }

/* "Tap to see your new kitchen" call to action: one big button across the top of the kitchen photo,
   the first thing customers see after changing an option (the photo stays pinned on phones). */
.update-bar {
  position: absolute; top: 12px; left: 12px; right: 12px; z-index: 4;
  display: grid; gap: 2px; justify-items: center; text-align: center;
  padding: 12px 18px; border: 0; border-radius: 16px; cursor: pointer;
  background: var(--brand-grad, var(--brand)); color: #fff;
  box-shadow: 0 10px 30px rgba(25, 45, 60, .45); font: inherit;
  animation: bar-in .35s ease-out;
}
.update-bar[hidden] { display: none; }
.update-bar b { font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.update-bar span { font-size: 13px; opacity: .85; }
.update-bar:hover { filter: brightness(1.08); }
.update-bar.nudge { animation: bar-in .35s ease-out, nudge 1.1s ease-out; }
@keyframes bar-in { from { opacity: 0; transform: translateY(-10px); } }
@keyframes nudge {
  0% { box-shadow: 0 10px 30px rgba(25, 45, 60, .45), 0 0 0 0 rgba(255, 255, 255, .7); }
  70% { box-shadow: 0 10px 30px rgba(25, 45, 60, .45), 0 0 0 12px rgba(255, 255, 255, 0); }
  100% { box-shadow: 0 10px 30px rgba(25, 45, 60, .45), 0 0 0 0 rgba(255, 255, 255, 0); }
}
@media (min-width: 960px) {
  .update-bar { left: 50%; right: auto; transform: translateX(-50%); min-width: 420px; }
  @keyframes bar-in { from { opacity: 0; transform: translate(-50%, -10px); } }
}
@media (max-width: 520px) {
  .update-bar { top: 8px; left: 8px; right: 8px; padding: 10px 14px; }
  .update-bar b { font-size: 15.5px; }
  .update-bar span { font-size: 12px; }
}
.compare:has(.update-bar:not([hidden])) .tag { display: none; }
@keyframes bar-in { from { opacity: 0; transform: translate(-50%, -10px); } }
@keyframes nudge {
  0% { box-shadow: 0 0 0 0 rgba(48, 88, 116, .55); }
  70% { box-shadow: 0 0 0 14px rgba(48, 88, 116, 0); }
  100% { box-shadow: 0 0 0 0 rgba(48, 88, 116, 0); }
}
@media (max-width: 520px) {
  .update-bar { padding: 6px 6px 6px 14px; gap: 10px; font-size: 13px; }
  .update-bar .btn { min-height: 42px; padding: 8px 14px; font-size: 14px; }
}

.price-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; display: grid; gap: 10px; }
.price-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price-head h3 { margin: 0; font-size: 15px; }
.price { font-size: 14px; color: var(--muted); }
.price.has-price { font-family: var(--serif); font-size: 24px; font-weight: 600; color: var(--brand); }
.price-inputs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.price-inputs label span { font-weight: 400; color: var(--muted); }
.price-inputs label { display: grid; gap: 4px; font-size: 13px; font-weight: 500; }
.price-inputs input { padding: 10px 12px; }
.price-card small { color: var(--muted); font-size: 12.5px; line-height: 1.4; }

.compare-dialog {
  width: min(1100px, calc(100vw - 32px)); max-height: calc(100vh - 32px); border: 0; border-radius: 18px; padding: 20px;
  background: var(--bg); color: var(--ink);
}
.compare-dialog::backdrop { background: rgba(25, 45, 60, .6); }
.compare-dialog-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.compare-dialog-head h2 { margin: 0; }
.compare-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.compare-grid figure { margin: 0; background: var(--card); border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.compare-grid img { width: 100%; }
.compare-grid figcaption { padding: 12px 14px; display: grid; gap: 4px; }
.compare-grid figcaption span { font-size: 13px; color: var(--muted); }
.compare-grid .link { justify-self: start; margin-top: 4px; }

@media (min-width: 640px) {
  .lead { grid-template-columns: 1fr 1fr; }
  .lead h3, .lead p, .lead .btn, .lead .form-msg { grid-column: 1 / -1; }
}
@media (min-width: 960px) {
  .studio:not([hidden]) {
    grid-template-columns: minmax(0, 1.75fr) minmax(340px, 1fr);
    grid-template-areas: "stage panel" "lead panel" "price panel";
    grid-template-rows: auto auto 1fr;
    align-items: start; column-gap: 28px;
  }
  .stage { grid-area: stage; }
  .price-card { grid-area: price; align-self: start; }
  .lead { grid-area: lead; grid-template-columns: 1fr 1fr 1fr 1fr; }
  .lead .btn { grid-column: 1 / -1; justify-self: start; min-width: 260px; }
  .panel {
    grid-area: panel; position: sticky; top: calc(var(--header-h) + 16px); max-height: calc(100vh - var(--header-h) - 32px);
    display: flex; flex-direction: column;
  }
  .panel .tab-body:not([hidden]) { flex: 1 1 auto; min-height: 120px; overflow-y: auto; }
  .panel > :not(.tab-body) { flex: none; }
}
@media (max-width: 959px) {
  /* Keep the kitchen in view while choosing options. */
  .studio .stage { display: contents; }
  .studio .compare { position: sticky; top: var(--header-h); z-index: 6; margin: 0 -16px; border-radius: 0; }
  /* Pinned photo never takes more than ~40% of the screen, so the options below stay usable
     (portrait phone photos would otherwise fill the screen). Preview is center-cropped only. */
  .studio .compare > img { max-height: 40vh; max-height: 40svh; object-fit: cover; }
  .studio .stage-bar { margin: 4px 0 0; }
}
.on-touch { display: none; }
@media (hover: none) {
  .on-hover, .dz-drop { display: none; }
  .on-touch { display: inline; }
}

/* ---------- Footer ---------- */
.site-footer {
  max-width: 1160px; margin: 40px auto 0; padding: 28px 16px 36px; border-top: 1px solid var(--line);
  display: grid; justify-items: center; gap: 6px; text-align: center; color: var(--muted); font-size: 13.5px;
}
.site-footer img { height: 96px; width: auto; margin-bottom: 4px; }
.footer-tag { font-family: var(--serif); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; font-size: 12px; color: var(--brand); }
.site-footer p { margin: 0; }
.footer-contact { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; }
.site-footer a { color: var(--brand); text-decoration: none; font-weight: 500; }
.site-footer a:hover { text-decoration: underline; }

/* Render progress */
.progress-track { width: min(280px, 70vw); height: 6px; border-radius: 3px; background: rgba(255,255,255,.25); overflow: hidden; }
.progress-fill { height: 100%; width: 0; border-radius: 3px; background: #fff; transition: width .25s linear; }
.render-overlay small { font-size: 13px; opacity: .85; min-height: 1.2em; }

/* Booking button: inline on desktop, floating on phones */
@media (max-width: 959px) {
  body[data-step="reveal"] { padding-bottom: 92px; }
  .book-btn {
    position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 19;
    min-height: 52px; font-size: 16px; box-shadow: 0 8px 30px rgba(25, 45, 60, .3);
  }
  body.lead-visible .book-btn { display: none; }
}

/* Decore doors, drawer fronts, uppers */
.card .name small { display: block; font-size: 11.5px; font-weight: 500; letter-spacing: .06em; color: var(--muted); margin-top: 2px; }
.door-art img { width: 100%; height: auto; max-height: 150px; object-fit: contain; border-radius: 2px; box-shadow: 0 4px 10px rgba(0,0,0,.12); }
.opt-art { width: 100%; height: 86px; display: grid; place-items: center; }
.opt-art img { max-width: 100%; max-height: 86px; width: auto; object-fit: contain; box-shadow: 0 3px 8px rgba(0,0,0,.12); }
.na-art { font-size: 12px; color: var(--muted); }
.card:disabled { opacity: .45; cursor: not-allowed; }
.swatch:disabled { opacity: .4; cursor: not-allowed; }
.swatch .na { display: block; font-size: 10.5px; color: var(--muted); }
.door-note { margin: 10px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--brand-tint); font-size: 13px; color: var(--ink); }

/* First visit to the studio: nudge toward the Looks tab */
.start-hint {
  position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 3; width: min(92%, 440px);
  display: grid; gap: 2px; padding: 12px 16px; border-radius: 14px; text-align: center;
  background: rgba(255, 255, 255, .94); box-shadow: 0 8px 26px rgba(0, 0, 0, .22); font-size: 13.5px; color: var(--muted);
}
.start-hint strong { color: var(--ink); font-size: 15px; }

/* Looks: real door + drawer photos in the look's finish */
.look-art.look-real {
  height: 132px; aspect-ratio: auto; overflow: hidden;
  display: flex; align-items: flex-end; justify-content: center; gap: 18px; padding: 12px 10px 0;
  background: linear-gradient(180deg, #f3f0eb 0%, #e6e0d6 100%);
}
.lr-set { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 5px; height: 100%; }
.lr-door { height: 84px; width: auto; box-shadow: 0 4px 10px rgba(0,0,0,.18); }
.lr-drawer { height: 22px; width: auto; box-shadow: 0 3px 8px rgba(0,0,0,.15); margin-bottom: 10px; }
.lr-island .lr-door { height: 84px; }
.lr-island em {
  display: block; height: 22px; margin-bottom: 10px; line-height: 22px; font-style: normal; font-size: 9.5px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; color: var(--muted); white-space: nowrap;
}
.look-meta { display: block; padding: 0 10px 10px; font-size: 12px; color: var(--muted); line-height: 1.3; }
.looks-compact .look-name { padding-bottom: 2px; }

/* Decore product photos on a soft backdrop */
.door-art { background: linear-gradient(180deg, #f3f1ed, #e8e4de); border-radius: 10px; padding: 14px 0; width: 100%; display: grid; place-items: center; }
.door-art img { width: auto; max-width: 62%; max-height: 150px; }
.opt-art { background: linear-gradient(180deg, #f3f1ed, #e8e4de); border-radius: 8px; padding: 8px; }

.island-mode { margin-bottom: 6px; }

.photo-status { margin: 12px 0 0; padding: 10px 14px; border-radius: 10px; background: var(--brand-tint); font-size: 14px; text-align: center; }
.photo-status.error { background: #fdecea; color: #8a2d1f; }
@media (max-width: 959px) {
  .start-hint { bottom: 10px; padding: 8px 12px; font-size: 12px; }
  .start-hint strong { font-size: 13.5px; }
}

/* Hardware tab: finish first, then even rows of four styles (2x2 on small phones) */
.hw-finishes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.hw-finishes .finish { justify-content: center; padding: 8px 10px; }
.hw-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.hw-grid .card { padding: 8px 6px 10px; gap: 6px; }
.hw-grid .name { font-size: 12.5px; line-height: 1.2; }
@media (max-width: 380px) { .hw-grid { grid-template-columns: repeat(2, 1fr); } }
.hw-finishes .finish { border-radius: 14px; font-size: 13px; line-height: 1.2; text-align: left; gap: 8px; }
.hw-finishes .finish .dot { flex: none; width: 20px; height: 20px; }
