:root {
  color-scheme: light;
  --navy-950: #081722;
  --navy-900: #0b1c29;
  --navy-800: #122a3b;
  --blue-700: #0d5f9c;
  --blue-600: #1479bd;
  --blue-500: #39a5e8;
  --orange-600: #e96f00;
  --orange-500: #ff7a00;
  --ink: #1f282f;
  --muted: #667580;
  --line: #dce3e7;
  --line-dark: #b8c4ca;
  --surface: #ffffff;
  --surface-soft: #f3f6f7;
  --success: #18845b;
  --danger: #b73535;
  --shadow-sm: 0 8px 24px rgba(7, 24, 35, 0.08);
  --shadow-lg: 0 28px 70px rgba(7, 24, 35, 0.18);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  font-family: "Segoe UI Variable Text", "Segoe UI", Roboto, Arial, ui-sans-serif, system-ui, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background: #edf2f4;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a,
label[for] {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 9999;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  color: white;
  background: var(--navy-950);
  border-radius: 8px;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  min-height: 82px;
  padding: 10px clamp(18px, 4vw, 64px);
  color: white;
  background: rgba(8, 23, 34, 0.97);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 6px 26px rgba(4, 16, 24, 0.14);
  backdrop-filter: blur(12px);
}

.visualizer-breadcrumbs {
  display: flex;
  width: min(1320px, calc(100% - 48px));
  align-items: center;
  gap: 9px;
  margin: 0 auto;
  padding-top: 18px;
  color: #657682;
  font-size: 13px;
  line-height: 1.35;
}

.visualizer-breadcrumbs a {
  color: #09669f;
  font-weight: 800;
}

.visualizer-breadcrumbs a:hover,
.visualizer-breadcrumbs a:focus-visible {
  color: #074d79;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: 216px;
  text-decoration: none;
}

.brand img {
  width: 76px;
  max-height: 60px;
  object-fit: contain;
  object-position: left center;
}

.brand-wordmark {
  display: flex;
  flex-direction: column;
  color: white;
  font-size: 1.32rem;
  font-weight: 950;
  line-height: 0.82;
  letter-spacing: 0.035em;
}

.brand-wordmark b:last-child {
  color: var(--blue-500);
}

.header-title {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding-left: 28px;
  margin-left: 22px;
  border-left: 1px solid rgba(255, 255, 255, 0.25);
}

.header-title span {
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.header-title small {
  color: #aebbc4;
  font-size: 0.75rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.phone-link {
  color: white;
  font-weight: 800;
  text-decoration: none;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  font-size: 0.84rem;
  font-weight: 850;
  line-height: 1;
  letter-spacing: 0.025em;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button:active {
  transform: translateY(0);
}

.button:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(57, 165, 232, 0.45);
  outline-offset: 2px;
}

.button-primary {
  color: #111a20;
  background: var(--orange-500);
  border-color: var(--orange-500);
  box-shadow: 0 8px 20px rgba(255, 122, 0, 0.22);
}

.button-primary:hover {
  background: #ff891f;
  box-shadow: 0 10px 25px rgba(255, 122, 0, 0.3);
}

.button-secondary {
  color: var(--navy-900);
  background: white;
  border-color: var(--line-dark);
}

.button-secondary:hover {
  border-color: var(--blue-600);
}

.button.compact {
  min-height: 44px;
  padding-inline: 17px;
}

.button-wide {
  width: 100%;
}

main {
  width: min(1700px, 100%);
  margin: 0 auto;
  padding: 0 clamp(14px, 3vw, 44px) 36px;
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 42px;
  padding: clamp(26px, 3.6vw, 46px) 0 24px;
}

.eyebrow {
  margin: 0 0 9px;
  color: var(--orange-600);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 840px;
  margin-bottom: 12px;
  color: var(--navy-950);
  font-size: clamp(2rem, 3.5vw, 3.75rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.intro-copy {
  max-width: 780px;
  margin-bottom: 0;
  color: #52616a;
  font-size: clamp(0.98rem, 1.5vw, 1.16rem);
  line-height: 1.6;
}

.step-list {
  display: flex;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.step-list li {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 136px;
  padding: 11px 13px;
  color: var(--navy-800);
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.step-list span {
  display: grid;
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  color: white;
  background: var(--blue-700);
  border-radius: 50%;
  place-items: center;
  font-size: 0.76rem;
  font-weight: 900;
}

.step-list strong {
  font-size: 0.76rem;
  white-space: nowrap;
}

.visualizer-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.52fr) minmax(350px, 0.6fr);
  align-items: start;
  gap: 18px;
}

.stage-card,
.control-panel {
  background: var(--surface);
  border: 1px solid rgba(184, 196, 202, 0.82);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.stage-card {
  min-width: 0;
  overflow: hidden;
}

.stage-toolbar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  background: white;
  border-bottom: 1px solid var(--line);
}

.photo-actions {
  display: flex;
  gap: 9px;
}

.upload-button span {
  margin-right: 5px;
  font-size: 1rem;
  line-height: 0;
}

.privacy-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #45565f;
  font-size: 0.75rem;
  font-weight: 750;
  white-space: nowrap;
}

.privacy-dot {
  width: 9px;
  height: 9px;
  background: var(--success);
  border: 2px solid #d7f2e7;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(24, 132, 91, 0.13);
}

.demo-room-picker {
  padding: 13px 14px 14px;
  background: #f5f8fa;
  border-bottom: 1px solid var(--line);
}

.demo-room-picker[hidden] {
  display: none;
}

.demo-room-picker-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.demo-room-picker-heading div {
  display: grid;
  gap: 2px;
}

.demo-room-picker-heading strong {
  color: var(--navy-900);
  font-size: 0.8rem;
}

.demo-room-picker-heading span {
  color: #5d6e77;
  font-size: 0.7rem;
}

.demo-room-picker-heading button {
  display: grid;
  width: 30px;
  height: 30px;
  padding: 0;
  color: #53636b;
  background: white;
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
  place-items: center;
  font-size: 1.15rem;
}

.demo-room-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.demo-room-card {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 5px;
  overflow: hidden;
  color: var(--navy-900);
  text-align: left;
  background: white;
  border: 1px solid #cbd6db;
  border-radius: 11px;
  cursor: pointer;
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.demo-room-card:hover {
  border-color: var(--blue-500);
  transform: translateY(-1px);
}

.demo-room-card.is-selected {
  border-color: var(--blue-700);
  box-shadow: 0 0 0 2px rgba(13, 95, 156, 0.14);
}

.demo-room-card img {
  width: 112px;
  height: 68px;
  object-fit: cover;
  border-radius: 7px;
}

.demo-room-card span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.demo-room-card strong {
  overflow: hidden;
  font-size: 0.76rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.demo-room-card small {
  color: #64757d;
  font-size: 0.64rem;
  line-height: 1.3;
}

.canvas-wrap {
  position: relative;
  display: grid;
  min-height: 0;
  overflow: hidden;
  background: #13202a;
  place-items: center;
  isolation: isolate;
  touch-action: pan-y pinch-zoom;
}

#visualizer-canvas {
  display: block;
  width: 100% !important;
  max-width: 100%;
  height: auto !important;
  image-rendering: auto;
  cursor: default;
}

.canvas-wrap.is-editing {
  touch-action: none;
}

.canvas-wrap.is-editing #visualizer-canvas {
  cursor: none;
}

.loading-state {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: white;
  background: rgba(8, 23, 34, 0.82);
  backdrop-filter: blur(4px);
}

.loading-state[hidden] {
  display: none;
}

.loading-state small {
  color: #c1ccd2;
}

.spinner {
  width: 34px;
  height: 34px;
  margin-bottom: 8px;
  border: 3px solid rgba(255, 255, 255, 0.25);
  border-top-color: var(--orange-500);
  border-radius: 50%;
  animation: spin 850ms linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.brush-cursor {
  position: absolute;
  z-index: 5;
  display: none;
  width: 56px;
  height: 56px;
  pointer-events: none;
  border: 2px solid white;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(8, 23, 34, 0.85);
  transform: translate(-50%, -50%);
}

.canvas-wrap.is-editing .brush-cursor {
  display: block;
}

.canvas-badges {
  position: absolute;
  inset: 12px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  pointer-events: none;
}

.canvas-badges span {
  padding: 7px 10px;
  color: white;
  background: rgba(8, 23, 34, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.canvas-wrap.is-editing .canvas-badges {
  display: none;
}

.detection-pill {
  position: absolute;
  z-index: 4;
  right: 14px;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 11px;
  color: white;
  background: rgba(8, 23, 34, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 820;
  backdrop-filter: blur(9px);
  pointer-events: none;
}

.detection-pill span {
  display: grid;
  width: 18px;
  height: 18px;
  color: white;
  background: var(--success);
  border-radius: 50%;
  place-items: center;
  font-size: 0.65rem;
}

.canvas-wrap.is-editing .detection-pill {
  display: none;
}

.demo-credit {
  position: absolute;
  z-index: 4;
  bottom: 14px;
  left: 14px;
  padding: 6px 9px;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(8, 23, 34, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  font-size: 0.6rem;
  font-weight: 760;
  text-decoration: none;
  backdrop-filter: blur(8px);
}

.demo-credit:hover {
  color: white;
  background: rgba(8, 23, 34, 0.9);
}

.demo-credit[hidden],
.canvas-wrap.is-editing .demo-credit {
  display: none;
}

.compare-bar {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto auto;
  align-items: center;
  gap: 18px;
  padding: 14px 16px;
  background: #f8fafb;
  border-top: 1px solid var(--line);
}

.view-presets {
  display: flex;
  padding: 3px;
  background: #e9eef1;
  border-radius: 9px;
}

.view-presets button {
  min-height: 33px;
  padding: 0 10px;
  color: #61717b;
  background: transparent;
  border: 0;
  border-radius: 6px;
  font-size: 0.68rem;
  font-weight: 820;
  cursor: pointer;
}

.view-presets button.is-active {
  color: var(--navy-900);
  background: white;
  box-shadow: 0 2px 7px rgba(8, 23, 34, 0.1);
}

.compare-bar label {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--blue-700);
  cursor: pointer;
}

#compare-slider {
  direction: rtl;
}

.tool-button {
  min-height: 39px;
  padding: 0 13px;
  color: var(--navy-800);
  background: white;
  border: 1px solid var(--line-dark);
  border-radius: 9px;
  font-size: 0.76rem;
  font-weight: 850;
  cursor: pointer;
}

.tool-button[aria-pressed="true"] {
  color: white;
  background: var(--blue-700);
  border-color: var(--blue-700);
}

.editor-tools {
  display: grid;
  grid-template-columns: 1fr auto minmax(120px, 180px) auto auto;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  color: white;
  background: var(--navy-900);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.editor-tools[hidden] {
  display: none;
}

.tool-title,
.tool-help {
  margin: 0;
}

.tool-title {
  font-size: 0.8rem;
  font-weight: 800;
}

.tool-help {
  margin-top: 3px;
  color: #9eafb9;
  font-size: 0.68rem;
}

.segmented-control {
  display: flex;
  padding: 3px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 9px;
}

.segmented-control button {
  min-height: 34px;
  padding: 0 11px;
  color: #cbd4d9;
  background: transparent;
  border: 0;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 800;
  cursor: pointer;
}

.segmented-control button.is-active {
  color: var(--navy-900);
  background: white;
}

.brush-size {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 8px;
  color: #cbd4d9;
  font-size: 0.7rem;
  font-weight: 800;
}

.editor-tools .button-secondary {
  min-height: 37px;
  padding-inline: 12px;
  font-size: 0.72rem;
}

.editor-tools .button-secondary:disabled {
  color: #76858e;
  background: #d8e0e4;
  border-color: #d8e0e4;
  cursor: not-allowed;
  transform: none;
}

.control-panel {
  position: sticky;
  top: 100px;
  max-height: calc(100vh - 116px);
  overflow: hidden auto;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 20px 14px;
}

.panel-header .eyebrow {
  margin-bottom: 3px;
}

.panel-header h2 {
  margin: 0;
  color: var(--navy-950);
  font-size: 1.4rem;
  letter-spacing: -0.025em;
}

.panel-header > span {
  padding: 6px 9px;
  color: var(--blue-700);
  background: #e8f3f9;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 850;
}

.collection-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  padding: 0 20px 12px;
}

.collection-tabs button {
  display: grid;
  gap: 2px;
  min-width: 0;
  min-height: 52px;
  padding: 8px 10px;
  color: #586872;
  text-align: left;
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
}

.collection-tabs button span {
  color: inherit;
  font-size: 0.76rem;
  font-weight: 900;
}

.collection-tabs button small {
  overflow: hidden;
  font-size: 0.62rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.collection-tabs button.is-active {
  color: white;
  background: var(--blue-700);
  border-color: var(--blue-700);
  box-shadow: 0 5px 14px rgba(20, 121, 189, 0.18);
}

.catalog-tools {
  padding: 0 20px 12px;
}

.search-field {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 12px;
  color: var(--muted);
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.search-field input {
  min-width: 0;
  height: 100%;
  padding: 0;
  background: transparent;
  border: 0;
  outline: 0;
}

.filter-list {
  display: flex;
  gap: 6px;
  margin-top: 10px;
}

.filter-list[hidden] {
  display: none;
}

.filter-list button {
  min-height: 32px;
  padding: 0 11px;
  color: #5b6972;
  background: white;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.69rem;
  font-weight: 820;
  cursor: pointer;
}

.filter-list button.is-active {
  color: white;
  background: var(--navy-800);
  border-color: var(--navy-800);
}

.sample-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  max-height: 330px;
  padding: 4px 20px 14px;
  overflow: hidden auto;
  scrollbar-color: #bdc8ce transparent;
  scrollbar-width: thin;
}

.sample-grid[aria-busy="true"] .sample-card {
  opacity: 0.72;
}

.sample-card {
  position: relative;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  text-align: left;
  background: white;
  border: 2px solid transparent;
  border-radius: 10px;
  cursor: pointer;
}

.sample-card:hover {
  border-color: #9fb2bd;
}

.sample-card[aria-pressed="true"] {
  border-color: var(--blue-600);
  box-shadow: 0 0 0 2px rgba(20, 121, 189, 0.14);
}

.sample-card[aria-pressed="true"]::after {
  content: "✓";
  position: absolute;
  top: 6px;
  right: 6px;
  display: grid;
  width: 22px;
  height: 22px;
  color: white;
  background: var(--blue-700);
  border: 2px solid white;
  border-radius: 50%;
  place-items: center;
  font-size: 0.68rem;
  font-weight: 900;
}

.sample-image {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  background: #e9edef;
  border-radius: 7px;
}

.sample-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transform: scale(1.4);
  transform-origin: top center;
}

.sample-card[data-collection="torginol"] img,
.selected-swatch-crop[data-collection="torginol"] img {
  transform: none;
}

.sample-card em {
  position: absolute;
  z-index: 3;
  top: 6px;
  left: 6px;
  padding: 4px 6px;
  color: var(--navy-900);
  background: rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  font-size: 0.54rem;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  backdrop-filter: blur(5px);
}

.sample-card span {
  display: block;
  min-width: 0;
  padding: 7px 5px 4px;
  overflow: hidden;
  color: var(--navy-900);
  font-size: 0.72rem;
  font-weight: 820;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sample-card small {
  display: block;
  overflow: hidden;
  padding: 0 5px 7px;
  color: #7a8991;
  font-size: 0.61rem;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.no-samples {
  padding: 18px 20px;
  color: var(--muted);
  text-align: center;
}

.finish-settings {
  margin: 0 20px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.finish-settings summary {
  padding: 13px 0;
  color: var(--navy-800);
  font-size: 0.76rem;
  font-weight: 850;
  cursor: pointer;
}

.settings-grid {
  display: grid;
  gap: 11px;
  padding: 2px 0 15px;
}

.settings-grid label {
  display: grid;
  grid-template-columns: 105px 1fr;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 760;
}

.recipe-panel {
  padding: 0 0 15px;
  border-top: 1px solid var(--line);
}

.recipe-panel[hidden] {
  display: none;
}

.recipe-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 0 9px;
}

.recipe-heading strong {
  color: var(--navy-900);
  font-size: 0.7rem;
}

.recipe-heading span {
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 800;
}

.recipe-colors {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.recipe-color {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
  min-width: 0;
  padding: 6px;
  background: #f5f8f9;
  border: 1px solid var(--line);
  border-radius: 7px;
}

.recipe-color i {
  width: 18px;
  height: 18px;
  border: 1px solid rgba(8, 23, 34, 0.16);
  border-radius: 4px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.recipe-color b {
  overflow: hidden;
  color: #4d5c64;
  font-size: 0.59rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recipe-color em {
  color: var(--blue-700);
  font-size: 0.58rem;
  font-style: normal;
  font-weight: 900;
}

.selected-finish {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 12px;
  align-items: center;
  margin: 16px 20px;
  padding: 10px;
  background: #f5f8f9;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.selected-swatch-crop {
  width: 58px;
  height: 58px;
  overflow: hidden;
  border-radius: 8px;
}

.selected-swatch-crop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transform: scale(1.4);
  transform-origin: top center;
}

.selected-finish div {
  display: flex;
  flex-direction: column;
}

.selected-finish small {
  color: var(--muted);
  font-size: 0.63rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.selected-finish strong {
  margin: 2px 0 1px;
  color: var(--navy-950);
  font-size: 1.02rem;
}

.selected-finish span {
  color: var(--muted);
  font-size: 0.72rem;
}

.panel-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 0 20px;
}

.panel-actions .button-wide {
  grid-column: 1 / -1;
}

.accuracy-note {
  margin: 14px 20px 20px;
  color: #6b777e;
  font-size: 0.64rem;
  line-height: 1.48;
}

.confidence-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 18px;
  overflow: hidden;
  color: white;
  background: #2b3c49;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.confidence-strip div {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 17px 20px;
  background: var(--navy-900);
}

.confidence-strip strong {
  font-size: 0.82rem;
}

.confidence-strip span {
  color: #afbec7;
  font-size: 0.7rem;
}

footer {
  display: flex;
  justify-content: center;
  gap: 28px;
  padding: 26px 18px 34px;
  color: #65737b;
  font-size: 0.7rem;
}

footer a {
  color: var(--blue-700);
  font-weight: 800;
}

.modal {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  visibility: hidden;
  opacity: 0;
  place-items: center;
  transition: opacity 180ms ease, visibility 180ms ease;
}

.modal.is-open {
  visibility: visible;
  opacity: 1;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 17, 26, 0.78);
  backdrop-filter: blur(8px);
}

.modal-panel {
  position: relative;
  z-index: 1;
  width: min(690px, calc(100% - 24px));
  max-height: calc(100vh - 24px);
  padding: clamp(22px, 4vw, 36px);
  overflow: hidden auto;
  background: white;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  width: 38px;
  height: 38px;
  padding: 0;
  color: var(--navy-900);
  background: #edf2f4;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  place-items: center;
  font-size: 1.4rem;
}

.modal-heading {
  padding-right: 42px;
}

.modal-heading h2 {
  margin-bottom: 7px;
  color: var(--navy-950);
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.modal-heading > p:last-child {
  margin-bottom: 22px;
  color: var(--muted);
  line-height: 1.5;
}

#quote-form {
  display: grid;
  gap: 13px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
}

#quote-form label:not(.consent-check) {
  display: grid;
  gap: 6px;
  color: #43525b;
  font-size: 0.74rem;
  font-weight: 800;
}

#quote-form input,
#quote-form select,
#quote-form textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 11px;
  color: var(--ink);
  background: #f8fafb;
  border: 1px solid var(--line-dark);
  border-radius: 9px;
}

#quote-form textarea {
  resize: vertical;
}

.honeypot {
  position: absolute !important;
  left: -9999px !important;
}

.consent-check {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: #43525b;
  font-size: 0.75rem;
  font-weight: 750;
  cursor: pointer;
}

.consent-check input {
  width: 18px !important;
  min-height: 18px !important;
  margin: 1px 0 0;
  accent-color: var(--blue-700);
}

.privacy-explainer {
  margin: -4px 0 1px 27px;
  color: var(--muted);
  font-size: 0.66rem;
  line-height: 1.45;
}

.form-status {
  margin: 0;
  padding: 10px 12px;
  color: var(--blue-700);
  background: #e9f4fa;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 750;
}

.form-status[data-type="error"] {
  color: var(--danger);
  background: #fbecec;
}

.form-status[data-type="success"] {
  color: var(--success);
  background: #e9f7f1;
}

.contact-alternatives {
  display: flex;
  justify-content: center;
  gap: 22px;
  margin-top: 2px;
  font-size: 0.7rem;
  font-weight: 800;
}

.contact-alternatives a {
  color: var(--blue-700);
}

.toast {
  position: fixed;
  z-index: 1500;
  right: 20px;
  bottom: 20px;
  max-width: min(370px, calc(100% - 40px));
  padding: 13px 16px;
  color: white;
  background: var(--navy-900);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px);
  transition: opacity 180ms ease, transform 180ms ease;
  font-size: 0.78rem;
  font-weight: 760;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1180px) {
  .intro {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .step-list {
    max-width: 600px;
  }

  .visualizer-layout {
    grid-template-columns: minmax(0, 1fr) 350px;
  }

  .editor-tools {
    grid-template-columns: 1fr auto;
  }

  .brush-size {
    grid-column: 1;
  }
}

@media (max-width: 900px) {
  .site-header {
    min-height: 70px;
    padding: 8px 14px;
  }

  .brand {
    width: 176px;
  }

  .brand img {
    width: 60px;
  }

  .brand-wordmark {
    font-size: 1.05rem;
  }

  .header-title,
  .phone-link {
    display: none;
  }

  .header-actions {
    grid-column: 3;
  }

  .button.compact {
    min-height: 42px;
    padding-inline: 13px;
    font-size: 0.73rem;
  }

  main {
    padding-inline: 10px;
  }

  .intro {
    padding: 28px 5px 22px;
  }

  .step-list {
    width: 100%;
    overflow-x: auto;
  }

  .step-list li {
    flex: 1 0 132px;
  }

  .visualizer-layout {
    grid-template-columns: 1fr;
  }

  .control-panel {
    position: static;
    max-height: none;
  }

  .sample-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    max-height: 390px;
  }

  .confidence-strip {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .brand {
    width: 158px;
  }

  .brand img {
    width: 53px;
    max-height: 50px;
  }

  .brand-wordmark {
    font-size: 0.95rem;
  }

  .header-actions {
    grid-column: 2;
  }

  .button.compact {
    min-height: 40px;
    padding-inline: 11px;
    font-size: 0.68rem;
  }

  h1 {
    font-size: clamp(2.15rem, 12vw, 3.45rem);
  }

  .intro-copy {
    font-size: 0.93rem;
  }

  .step-list {
    gap: 6px;
    overflow: visible;
  }

  .step-list li {
    flex: 1 1 0;
    min-width: 0;
    padding: 9px 6px;
    gap: 6px;
  }

  .step-list span {
    flex-basis: 24px;
    width: 24px;
    height: 24px;
  }

  .step-list strong {
    font-size: 0.61rem;
    white-space: normal;
  }

  .stage-card,
  .control-panel {
    border-radius: 16px;
  }

  .stage-toolbar {
    align-items: stretch;
    padding: 10px;
  }

  .photo-actions {
    flex: 1;
  }

  .photo-actions .button {
    flex: 1;
    min-height: 42px;
    padding-inline: 10px;
    font-size: 0.7rem;
  }

  .demo-room-picker {
    padding: 12px 10px;
  }

  .demo-room-card {
    grid-template-columns: 1fr;
    align-content: start;
    gap: 7px;
  }

  .demo-room-card img {
    width: 100%;
    height: 82px;
  }

  .demo-room-card span {
    padding: 0 4px 4px;
  }

  .privacy-pill {
    position: absolute;
    z-index: 4;
    top: 72px;
    right: 18px;
    padding: 6px 8px;
    color: white;
    background: rgba(8, 23, 34, 0.76);
    border-radius: 999px;
    backdrop-filter: blur(8px);
  }

  .canvas-wrap {
    min-height: 0;
  }

  #visualizer-canvas {
    width: 100% !important;
    max-width: 100%;
    height: auto !important;
    max-height: none;
  }

  .compare-bar {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 12px;
  }

  .view-presets {
    width: 100%;
  }

  .view-presets button {
    flex: 1;
  }

  .tool-button {
    width: 100%;
  }

  .editor-tools {
    grid-template-columns: 1fr;
    gap: 11px;
  }

  .brush-size {
    grid-column: auto;
  }

  .segmented-control button {
    flex: 1;
  }

  .panel-header {
    padding: 18px 14px 12px;
  }

  .catalog-tools,
  .collection-tabs,
  .sample-grid,
  .panel-actions {
    padding-right: 14px;
    padding-left: 14px;
  }

  .sample-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    max-height: none;
    overflow: visible;
  }

  .sample-card span {
    padding: 9px 7px 4px;
    font-size: 0.8rem;
  }

  .sample-card small {
    padding: 0 7px 9px;
    font-size: 0.68rem;
  }

  .demo-credit {
    bottom: 58px;
    font-size: 0.56rem;
  }

  .finish-settings,
  .selected-finish {
    margin-right: 14px;
    margin-left: 14px;
  }

  .accuracy-note {
    margin-right: 14px;
    margin-left: 14px;
  }

  .panel-actions {
    position: sticky;
    z-index: 10;
    bottom: 0;
    padding-top: 10px;
    padding-bottom: 12px;
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid var(--line);
    backdrop-filter: blur(10px);
  }

  footer {
    flex-direction: column;
    gap: 6px;
    text-align: center;
  }

  .modal-panel {
    width: 100%;
    max-height: 94vh;
    margin-top: auto;
    padding: 25px 18px calc(22px + env(safe-area-inset-bottom));
    border-radius: 20px 20px 0 0;
  }

  .modal {
    align-items: end;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
