:root {
  --cream: #faf6f0;
  --cream-deep: #f0e8dc;
  --sand: #e8dfd2;
  --white: #ffffff;
  --sage: #5c7a6a;
  --sage-dark: #3f5749;
  --sage-light: #8fa897;
  --amber: #c4893a;
  --amber-light: #e0b06a;
  --amber-dark: #9a6828;
  --burgundy: #6b3a2e;
  --ink: #2c2a26;
  --muted: #6b6560;
  --line: rgba(92, 122, 106, 0.18);
  --shadow: 0 18px 44px rgba(44, 42, 38, 0.10);
  --shadow-soft: 0 8px 24px rgba(196, 137, 58, 0.12);
  --radius: 20px;
  --radius-sm: 12px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Source Sans 3", "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 0%, rgba(196, 137, 58, 0.07), transparent 38%),
    radial-gradient(circle at 92% 8%, rgba(92, 122, 106, 0.08), transparent 34%),
    linear-gradient(180deg, var(--cream) 0%, #fdf9f4 48%, var(--cream-deep) 100%);
  overflow-x: hidden;
}

h1, h2, h3, .display {
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-weight: 600;
  letter-spacing: 0.01em;
}

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--amber);
  color: var(--white);
  font-weight: 700;
  transition: top 0.15s ease;
}

.skip-link:focus { top: 16px; outline: 3px solid var(--sage); outline-offset: 2px; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--sage);
  outline-offset: 2px;
}

.container {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
}

.announcement {
  background: linear-gradient(90deg, var(--sage-dark), var(--sage));
  color: var(--cream);
  text-align: center;
  padding: 10px 16px;
  font-size: 0.92rem;
}

.announcement strong { color: var(--amber-light); }

.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 246, 240, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  height: 52px;
  width: auto;
  max-width: min(260px, 72vw);
  object-fit: contain;
}

.page-home .home-logo-band {
  padding: 18px 0 8px;
  text-align: center;
  background: rgba(250, 246, 240, 0.92);
  border-bottom: 1px solid var(--line);
}

.page-home .brand--hero {
  justify-content: center;
}

.page-home .brand-logo--hero {
  width: min(820px, 96vw);
  height: auto;
  max-width: none;
  object-fit: contain;
}

.page-home .topbar:not(.topbar--nav-only) {
  box-shadow: 0 4px 20px rgba(44, 42, 38, 0.06);
}

.page-home .topbar {
  min-height: 78px;
}

.page-home .topbar .nav-shell {
  min-height: 48px;
  align-items: center;
}

.page-home .topbar .brand--sticky {
  flex-shrink: 0;
}

.page-home .topbar .brand-logo {
  height: 48px;
  width: auto;
  max-width: min(200px, 48vw);
  object-fit: contain;
  opacity: 1;
  transition: opacity 0.2s ease;
}

.page-home .topbar--nav-only .brand--sticky {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.page-home .topbar--nav-only .nav-shell {
  justify-content: center;
}

.page-home .topbar:not(.topbar--nav-only) .nav-shell {
  justify-content: space-between;
}

.page-home .nav-links {
  justify-content: center;
}

@media (prefers-reduced-motion: reduce) {
  .page-home .topbar .brand-logo {
    transition: none;
  }
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--sage), var(--sage-dark));
  display: grid;
  place-items: center;
  color: var(--cream);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 700;
  box-shadow: var(--shadow-soft);
}

.brand-text strong {
  display: block;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.45rem;
  line-height: 1.1;
}

.brand-text span {
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.nav-links a {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--muted);
  transition: background 0.15s, color 0.15s;
}

.nav-links a:hover,
.nav-links a.active {
  background: rgba(92, 122, 106, 0.12);
  color: var(--sage-dark);
}

.use-case-card h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
  font-family: "Cormorant Garamond", Georgia, serif;
}

.use-case-card p {
  margin: 0;
}

.nav-cta {
  padding: 10px 18px;
}

.measure-help-links a {
  color: var(--sage-dark);
  font-weight: 700;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 10px;
  padding: 8px 12px;
  cursor: pointer;
  font-weight: 700;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: linear-gradient(135deg, var(--amber), var(--amber-dark));
  color: var(--white);
  box-shadow: var(--shadow-soft);
}

.btn-secondary {
  background: var(--white);
  color: var(--sage-dark);
  border: 2px solid var(--line);
}

.btn-sage {
  background: var(--sage);
  color: var(--white);
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--sage-dark);
}

.badge-veteran {
  background: linear-gradient(135deg, rgba(107, 58, 46, 0.08), rgba(196, 137, 58, 0.10));
  border-color: rgba(107, 58, 46, 0.22);
}

.hero {
  padding: 48px 0 64px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 36px;
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  line-height: 1.05;
  margin: 0 0 16px;
}

.hero-copy p.lead {
  font-size: 1.12rem;
  line-height: 1.65;
  color: var(--muted);
  margin: 0 0 24px;
  max-width: 52ch;
}

.hero-media {
  position: relative;
  border-radius: calc(var(--radius) + 8px);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--sand);
  aspect-ratio: 4/3;
}

.hero-media video,
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-media .overlay-card {
  position: absolute;
  left: 16px;
  bottom: 16px;
  right: 16px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  font-size: 0.92rem;
}

.section {
  padding: 56px 0;
}

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 36px;
}

.section-head h2 {
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  margin: 0 0 12px;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.product-card {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.18s, box-shadow 0.18s;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 48px rgba(44, 42, 38, 0.14);
}

.product-card .thumb {
  aspect-ratio: 16/10;
  background: var(--sand);
  overflow: hidden;
}

.product-card .thumb video,
.product-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card .body {
  padding: 18px 18px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-card h3 {
  margin: 0 0 8px;
  font-size: 1.35rem;
}

.product-card p {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.55;
  font-size: 0.95rem;
  flex: 1;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.trust-card {
  padding: 22px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
}

.trust-card h3 {
  margin: 0 0 8px;
  font-size: 1.2rem;
}

.trust-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 0.94rem;
}

.warm-panel {
  background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(240,232,220,0.85));
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  padding: 32px;
  box-shadow: var(--shadow);
}

.veteran-section {
  padding-top: 0;
}

.veteran-section-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
  max-width: 560px;
  margin: 0 auto;
}

.veteran-badge {
  width: min(240px, 58vw);
  height: auto;
  display: block;
}

.veteran-section-copy {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.65;
}

.video-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}

.video-thumb {
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--ink);
  aspect-ratio: 9/16;
  position: relative;
}

.video-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-thumb span {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
}

.footer {
  background: var(--sage-dark);
  color: var(--cream);
  padding: 48px 0 28px;
  margin-top: 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  gap: 28px;
}

.footer h4 {
  margin: 0 0 12px;
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber-light);
}

.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer li { margin-bottom: 8px; }

.footer a {
  color: rgba(250, 246, 240, 0.82);
  font-size: 0.92rem;
}

.footer a:hover { color: var(--white); }

.footer-bottom {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.12);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  font-size: 0.88rem;
  color: rgba(250, 246, 240, 0.65);
}

.footer-legal {
  width: 100%;
  margin: 0;
  padding: 0 0 4px;
  font-size: 0.72rem;
  line-height: 1.55;
  color: rgba(250, 246, 240, 0.48);
  text-align: center;
}

.legal-fine-print {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 0.75rem;
  line-height: 1.55;
  color: var(--muted);
}

/* Configurator */
.config-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 28px;
  align-items: start;
  padding: 32px 0 56px;
}

.config-panel {
  background: rgba(255,255,255,0.92);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.config-panel h1 {
  margin: 0 0 8px;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.config-panel .subtitle {
  color: var(--muted);
  margin: 0 0 24px;
  line-height: 1.55;
}

.form-section {
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.form-section:last-of-type { border-bottom: none; }

.form-section h2 {
  font-size: 1.25rem;
  margin: 0 0 14px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field.full { grid-column: 1 / -1; }

.form-field label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--sage-dark);
}

.form-field .hint {
  font-size: 0.8rem;
  color: var(--muted);
}

.form-field input,
.form-field select,
.form-field textarea {
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font: inherit;
  background: var(--white);
}

.form-field textarea { min-height: 90px; resize: vertical; }

.form-field input[type="file"] {
  padding: 10px;
  font-size: 0.9rem;
  background: var(--cream);
}

.submit-status-error { color: #9a3412; }

.option-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}

.option-card {
  position: relative;
}

.option-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.option-card label {
  display: block;
  padding: 12px;
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 600;
  text-align: center;
  transition: border-color 0.15s, background 0.15s;
}

.option-card input:checked + label {
  border-color: var(--sage);
  background: rgba(92, 122, 106, 0.08);
}

.summary-panel {
  position: sticky;
  top: 88px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}

.summary-panel h3 {
  margin: 0 0 14px;
  font-size: 1.2rem;
}

.summary-list {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  font-size: 0.9rem;
}

.summary-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
}

.summary-list li span:first-child { color: var(--muted); }

.product-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.product-tabs a {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--white);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--muted);
}

.product-tabs a.active,
.product-tabs a:hover {
  background: var(--sage);
  color: var(--white);
  border-color: var(--sage);
}

.configure-intro {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 28px 0 8px;
  padding: 20px 22px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
}

.configure-intro-title {
  margin: 0 0 4px;
  font-size: 1.35rem;
}

.configure-intro-text {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.config-notice {
  margin: 0 0 16px;
  padding: 12px 16px;
  border-radius: var(--radius);
  background: rgba(107, 124, 94, 0.12);
  border: 1px solid rgba(107, 124, 94, 0.25);
  color: var(--sage-dark);
  font-size: 0.92rem;
  line-height: 1.5;
}

.order-progress {
  margin: 0 0 20px;
  padding: 16px 18px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
}

.order-progress-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
}

.order-progress-step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  color: var(--muted);
}

.order-progress-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  background: var(--sand);
  border: 1px solid var(--line);
  flex-shrink: 0;
}

.order-progress-step.active {
  color: var(--ink);
  font-weight: 700;
}

.order-progress-step.active .order-progress-num {
  background: var(--sage);
  color: var(--white);
  border-color: var(--sage);
}

.order-progress-step.done {
  color: var(--sage-dark);
}

.order-progress-step.done .order-progress-num {
  background: rgba(107, 124, 94, 0.15);
  border-color: rgba(107, 124, 94, 0.35);
  color: var(--sage-dark);
}

.order-save-banner {
  margin: 0 0 18px;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: rgba(196, 137, 58, 0.08);
  border: 1px solid rgba(196, 137, 58, 0.22);
  font-size: 0.9rem;
  line-height: 1.55;
}

.order-save-banner p {
  margin: 0;
}

.order-save-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.btn-sm {
  padding: 8px 14px;
  font-size: 0.82rem;
}

.import-json-label {
  cursor: pointer;
  margin: 0;
}

.form-validation-panel {
  margin-top: 12px;
  display: grid;
  gap: 8px;
}

.validation-msg {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  line-height: 1.5;
}

.validation-info {
  background: rgba(107, 124, 94, 0.1);
  border: 1px solid rgba(107, 124, 94, 0.2);
  color: var(--sage-dark);
}

.validation-tip {
  background: rgba(196, 137, 58, 0.1);
  border: 1px solid rgba(196, 137, 58, 0.22);
  color: #6b4a1e;
}

.validation-warn {
  background: rgba(196, 137, 58, 0.14);
  border: 1px solid rgba(196, 137, 58, 0.35);
  color: #7a4e12;
}

.validation-error {
  background: rgba(107, 58, 46, 0.08);
  border: 1px solid rgba(107, 58, 46, 0.25);
  color: var(--burgundy);
}

.room-suggestions-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}

.room-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.room-chip {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.room-chip:hover,
.room-chip:focus-visible {
  background: var(--sage);
  color: var(--white);
  border-color: var(--sage);
  outline: none;
}

.color-swatch-field .color-swatch-selected {
  margin: 0 0 10px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--sage-dark);
}

.color-swatch-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}

.color-swatch {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid rgba(44, 42, 38, 0.12);
  cursor: pointer;
  padding: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
  transition: transform 0.12s, box-shadow 0.12s, border-color 0.12s;
}

.color-swatch:hover,
.color-swatch:focus-visible {
  transform: scale(1.06);
  outline: none;
  border-color: var(--sage);
}

.color-swatch.active {
  border-color: var(--amber-dark);
  box-shadow: 0 0 0 3px rgba(196, 137, 58, 0.35);
}

.color-swatch-special {
  background: linear-gradient(135deg, var(--cream-deep), var(--sand));
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.color-swatch-icon {
  font-size: 1rem;
  font-weight: 700;
  color: var(--muted);
}

.color-swatch-select {
  width: 100%;
  margin-top: 4px;
}

.config-preview-wrap {
  border-radius: var(--radius);
  overflow: hidden;
}

.room-visual-panel {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}

.room-visual-header {
  margin-bottom: 14px;
}

.room-visual-title {
  margin: 0 0 4px;
  font-size: 1.05rem;
  color: var(--sage-dark);
}

.room-visual-sub {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.45;
}

.room-visual {
  position: relative;
  height: 260px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: linear-gradient(180deg, #e8dfd2 0%, #d9cec0 100%);
}

.room-visual-wall {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #efe6da 0%, #e4d9cb 70%, #d8cdc0 100%);
}

.room-visual-floor {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 16%;
  background: linear-gradient(180deg, #c9b9a4, #b8a690);
}

.room-visual-recess {
  display: none;
  position: absolute;
  left: 50%;
  top: 15%;
  width: 50%;
  height: 54%;
  transform: translateX(-50%);
  background: #cfc3b3;
  border-radius: 3px;
  box-shadow: inset 0 6px 18px rgba(44, 42, 38, 0.28);
  z-index: 1;
}

.room-visual.mount-inside .room-visual-recess {
  display: block;
}

.room-visual-valance {
  display: none;
  position: absolute;
  left: 50%;
  top: 7%;
  width: 78%;
  height: 14px;
  transform: translateX(-50%);
  background: var(--shade-color, #d9c8a8);
  border-radius: 3px 3px 0 0;
  box-shadow: 0 4px 10px rgba(44, 42, 38, 0.2);
  z-index: 5;
}

.room-visual.mount-outside .room-visual-valance {
  display: block;
}

.room-visual-window-frame {
  position: absolute;
  left: 50%;
  top: 16%;
  width: 46%;
  height: 50%;
  transform: translateX(-50%);
  background: #7a6f62;
  border-radius: 3px;
  z-index: 2;
  transition: width 0.25s, height 0.25s, top 0.25s, box-shadow 0.25s, left 0.25s;
}

.room-visual.mount-inside .room-visual-window-frame {
  width: 44%;
  height: 48%;
  top: 18%;
  box-shadow: inset 0 0 0 2px #5c5348;
}

.room-visual.mount-outside .room-visual-window-frame {
  width: 58%;
  height: 54%;
  top: 11%;
  box-shadow: 0 10px 28px rgba(44, 42, 38, 0.28);
}

.room-visual-trim {
  position: absolute;
  inset: 0;
  border: 3px solid #f7f5ef;
  border-radius: 2px;
  pointer-events: none;
  z-index: 4;
}

.room-visual.mount-outside .room-visual-trim {
  border-color: rgba(247, 245, 239, 0.65);
}

.room-visual-glass {
  position: absolute;
  inset: 10px;
  background: linear-gradient(180deg, rgba(190, 220, 245, 0.65), rgba(150, 185, 220, 0.4));
  border-radius: 2px;
  z-index: 1;
}

.room-visual-shade {
  position: absolute;
  left: 10px;
  right: 10px;
  top: 10px;
  height: var(--shade-drop, 75%);
  border-radius: 2px 2px 0 0;
  background: var(--shade-color, #d9c8a8);
  transition: height 0.2s, background 0.2s, left 0.25s, right 0.25s, top 0.25s;
  z-index: 3;
  overflow: hidden;
}

.room-visual.mount-inside .room-visual-shade {
  left: 10px;
  right: 10px;
  top: 10px;
}

.room-visual.mount-outside .room-visual-shade {
  left: -14px;
  right: -14px;
  top: -18px;
  box-shadow: 0 6px 16px rgba(44, 42, 38, 0.18);
}

.room-visual-zebra-bands {
  position: absolute;
  inset: 0;
  transition: opacity 0.2s;
}

.room-visual-drapery-left,
.room-visual-drapery-right {
  position: absolute;
  top: 10px;
  bottom: 10px;
  width: 46%;
  background: var(--shade-color, #d9c8a8);
  z-index: 3;
  transition: transform 0.2s, background 0.2s;
  box-shadow: 0 4px 12px rgba(44, 42, 38, 0.12);
}

.room-visual-drapery-left {
  left: 10px;
  border-radius: 2px 0 0 2px;
}

.room-visual-drapery-right {
  right: 10px;
  border-radius: 0 2px 2px 0;
}

.room-visual.mount-outside .room-visual-drapery-left {
  left: -8px;
}

.room-visual.mount-outside .room-visual-drapery-right {
  right: -8px;
}

.room-visual-sill {
  position: absolute;
  left: 26%;
  right: 26%;
  top: calc(18% + 48% + 2px);
  height: 10px;
  background: #f7f5ef;
  border-radius: 0 0 4px 4px;
  box-shadow: 0 4px 8px rgba(44, 42, 38, 0.08);
  z-index: 2;
  transition: left 0.25s, right 0.25s, top 0.25s;
}

.room-visual.mount-outside .room-visual-sill {
  left: 18%;
  right: 18%;
  top: calc(11% + 54% + 2px);
}

.room-visual-caption {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 10px;
  margin: 0;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  font-size: 0.78rem;
  color: var(--sage-dark);
  text-align: center;
  z-index: 6;
  line-height: 1.35;
}

.room-visual-controls {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

.room-visual-toggle {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.room-visual-btn {
  flex: 1;
  min-width: 120px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.room-visual-btn.active,
.room-visual-btn:hover,
.room-visual-btn:focus-visible {
  background: var(--sage);
  color: var(--white);
  border-color: var(--sage);
  outline: none;
}

.room-visual-slider-wrap label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}

.room-visual-slider-wrap input[type="range"] {
  width: 100%;
  accent-color: var(--sage);
}

.room-visual-slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 4px;
}

.product-video-wrap {
  margin-top: 14px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #1e1c1a;
  aspect-ratio: 16 / 9;
}

.product-video-thumb {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #1e1c1a;
}

.order-print-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(30, 28, 26, 0.55);
}

.order-print-modal[hidden] {
  display: none !important;
}

body.order-print-open {
  overflow: hidden;
}

.order-print-dialog {
  width: min(100%, 900px);
  max-height: min(92vh, 900px);
  display: flex;
  flex-direction: column;
  background: var(--cream);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.order-print-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
}

.order-print-toolbar h2 {
  margin: 0;
  font-size: 1.2rem;
  color: var(--sage-dark);
}

.order-print-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.order-print-frame {
  flex: 1;
  width: 100%;
  min-height: 420px;
  border: 0;
  background: #fff;
}

.social-proof-section {
  background: rgba(255, 255, 255, 0.5);
}

.social-proof-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.social-proof-stat {
  text-align: center;
  padding: 20px 16px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
}

.social-proof-stat strong {
  display: block;
  font-size: 1.35rem;
  color: var(--sage-dark);
  margin-bottom: 4px;
}

.social-proof-stat span {
  font-size: 0.88rem;
  color: var(--muted);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.testimonial-card {
  margin: 0;
  padding: 22px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.testimonial-card p {
  margin: 0 0 14px;
  color: var(--ink);
  line-height: 1.6;
  font-size: 0.95rem;
}

.testimonial-card footer {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--sage-dark);
}

.social-proof-foot {
  margin: 24px 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.wizard-root {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(30, 28, 26, 0.45);
}

.wizard-root[hidden] {
  display: none !important;
}

body.wizard-open {
  overflow: hidden;
}

.wizard-card {
  width: min(100%, 520px);
  max-height: min(90vh, 640px);
  overflow: auto;
  padding: 28px;
  border-radius: calc(var(--radius) + 4px);
  background: var(--cream);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.wizard-kicker {
  margin: 0 0 8px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--sage-dark);
}

.wizard-card h2 {
  margin: 0 0 10px;
  font-size: 1.6rem;
}

.wizard-body {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.55;
}

.wizard-options {
  display: grid;
  gap: 10px;
  margin-bottom: 20px;
}

.wizard-option {
  text-align: left;
  padding: 14px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.wizard-option:hover,
.wizard-option:focus-visible {
  border-color: var(--sage);
  background: rgba(107, 124, 94, 0.08);
  outline: none;
}

.wizard-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.order-actions {
  white-space: nowrap;
}

.measure-figure {
  margin: 20px 0 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
}

.measure-figure img {
  display: block;
  width: 100%;
  height: auto;
}

.measure-figure figcaption {
  padding: 12px 16px;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--muted);
  background: rgba(92, 122, 106, 0.04);
}

.measure-figure.measure-video video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  background: #111;
}

.form-grid .fabric-reference,
.form-grid .measure-figure {
  grid-column: 1 / -1;
}

.measure-diagram {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 20px;
}

.measure-box {
  padding: 18px;
  border-radius: var(--radius-sm);
  background: rgba(92, 122, 106, 0.06);
  border: 1px solid var(--line);
}

.measure-box h4 { margin: 0 0 8px; }
.measure-box p { margin: 0; color: var(--muted); line-height: 1.55; font-size: 0.94rem; }

.order-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.order-head h2 { margin: 0; font-size: 1.5rem; }

.order-head-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); }

.order-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
  min-width: 960px;
}

.order-table th,
.order-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.order-table th {
  background: rgba(92, 122, 106, 0.08);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--sage-dark);
}

.order-table tbody tr:hover { background: rgba(250, 246, 240, 0.65); }

.order-actions { white-space: nowrap; }

.btn-link {
  border: none;
  background: none;
  padding: 0;
  margin-right: 10px;
  color: var(--sage-dark);
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
}

.btn-link.danger { color: var(--burgundy); }

.empty-order {
  margin: 0;
  padding: 24px;
  text-align: center;
  color: var(--muted);
  background: rgba(92, 122, 106, 0.05);
  border-radius: var(--radius-sm);
}

.smart-list {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.7;
}

.submit-status {
  margin: 14px 0 0;
  font-size: 0.92rem;
  color: var(--sage-dark);
  text-align: center;
}

.submit-status a { color: var(--amber-dark); font-weight: 700; }

.thank-you-page {
  max-width: 640px;
  padding: 72px 16px 96px;
  text-align: center;
}

.thank-you-page h1 {
  font-size: 2.2rem;
  margin: 24px 0 12px;
}

.thank-you-page p {
  color: var(--muted);
  line-height: 1.65;
}

@media (max-width: 960px) {
  .hero-grid,
  .config-layout,
  .footer-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .summary-panel { position: static; }
}

@media (max-width: 720px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding-bottom: 8px;
  }
  .nav-links.open { display: flex; }
  .nav-shell { flex-wrap: wrap; }
  .form-grid { grid-template-columns: 1fr; }
  .measure-diagram { grid-template-columns: 1fr; }
  .social-proof-stats,
  .testimonial-grid,
  .product-grid { grid-template-columns: 1fr; }
  .how-it-works-steps { grid-template-columns: 1fr; }
}

/* Content pages (FAQ, install, worksheet) */
.content-page {
  padding: 40px 0 56px;
  max-width: 820px;
}

.content-page h1 {
  font-size: 2.4rem;
  margin: 0 0 12px;
}

.content-lead {
  color: var(--muted);
  line-height: 1.65;
  margin: 0 0 28px;
}

.content-list {
  margin: 0;
  padding-left: 20px;
  line-height: 1.8;
  color: var(--muted);
}

.content-page h2 {
  font-size: 1.6rem;
  margin: 32px 0 12px;
}

.content-page h2:first-of-type {
  margin-top: 0;
}

/* How it works */
.how-it-works {
  background: rgba(255, 255, 255, 0.55);
}

.how-it-works-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 8px;
}

.how-step {
  padding: 22px 20px;
  border-radius: var(--radius-sm);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 2px 12px rgba(45, 42, 38, 0.04);
}

.how-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--sage);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.how-step h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
}

.how-step p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 0.94rem;
}

.consultation-panel {
  margin-top: 36px;
  text-align: center;
}

.consultation-panel h2 {
  margin: 0 0 12px;
  font-size: 1.6rem;
}

.consultation-banner {
  margin-top: 0;
}

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.7);
  padding: 0 18px;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  padding: 16px 0;
  list-style: none;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  float: right;
  font-weight: 400;
  color: var(--sage-dark);
}

.faq-item[open] summary::after { content: "−"; }

.faq-item p {
  margin: 0 0 16px;
  line-height: 1.65;
  color: var(--muted);
}

/* Measure worksheet */
.worksheet-actions {
  margin-bottom: 28px;
}

.worksheet-actions .btn {
  margin-right: 10px;
  margin-top: 8px;
}

.worksheet-sheet {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 28px 24px 20px;
}

.worksheet-header {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--line);
}

.worksheet-header h2 {
  margin: 0 0 8px;
  font-size: 1.5rem;
}

.worksheet-header p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}

.worksheet-logo {
  flex-shrink: 0;
}

.worksheet-reminder {
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--muted);
  margin: 0 0 16px;
}

.worksheet-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.worksheet-table th,
.worksheet-table td {
  border: 1px solid #bbb;
  padding: 10px 8px;
  text-align: left;
  vertical-align: top;
}

.worksheet-table th {
  background: rgba(92, 122, 106, 0.12);
  font-weight: 700;
}

.worksheet-table td:first-child {
  width: 2em;
  text-align: center;
}

.worksheet-table td:nth-child(5),
.worksheet-table td:nth-child(6) {
  width: 12%;
}

.worksheet-footer {
  margin: 16px 0 0;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.5;
}

@media print {
  .no-print,
  .skip-link,
  .topbar,
  .footer,
  .announcement {
    display: none !important;
  }

  body.worksheet-page {
    background: #fff;
  }

  .worksheet-wrap {
    max-width: none;
    padding: 0;
  }

  .worksheet-sheet {
    border: none;
    padding: 0;
  }

  .worksheet-table {
    page-break-inside: avoid;
  }
}
