/* ==========================================================================
   ALL BLUE SCREENS — stylesheet
   Mobile-first. Tiers: phone <640 · small tablet 640–767 · tablet 768–1023 · desktop ≥1024
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --sky-50: #F4F9FE;
  --sky-100: #E3F0FA;
  --sky-200: #C9E3F5;
  --sky-300: #8CC6EE;
  --blue-600: #0F7DC2;
  --blue-800: #0B5A8C;
  --navy-900: #12304A;
  --navy-950: #0B2138;
  --slate-500: #4F6782;
  --slate-300: #B7C6D6;
  --white: #FFFFFF;
  --green-700: #237A4B;
  --green-100: #E1F3E8;
  --red-700: #B23A3A;
  --red-100: #FBE8E8;
  --amber-500: #D99A1E;

  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 16px;
  --shadow: 0 10px 30px rgba(18, 48, 74, .14);
  --gutter: 16px;
  --section: clamp(48px, 8vw, 96px);
  --nav-h: 64px;
  --mesh-line: rgba(140, 198, 238, .32);

  /* door preview parts */
  --housing: 12px;
  --bar: 12px;
  --trim: 6px;
}
@media (min-width: 640px) { :root { --gutter: 24px; --housing: 14px; --bar: 14px; --trim: 8px; } }
@media (min-width: 1024px) { :root { --gutter: 32px; --housing: 18px; --bar: 16px; --trim: 10px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.6;
  color: var(--navy-900);
  background: var(--sky-50);
}
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
a { color: var(--blue-600); }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; font-weight: 800; letter-spacing: -0.01em; }
p, ul, ol { margin: 0; }
strong { font-weight: 700; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--sky-300); outline-offset: 2px; }
[id] { scroll-margin-top: calc(var(--nav-h) + 12px); }
.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;
}
.icon { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.icon-sm { width: 18px; height: 18px; }
.icon-fill { fill: currentColor; stroke: none; }

.container { width: min(1200px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.section { padding-block: var(--section); }
.section-tint { background: var(--sky-100); }
.section-white { background: var(--white); }
.section-head { max-width: 62ch; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head h2 { font-size: clamp(1.6rem, 3.2vw, 2.25rem); margin-bottom: 10px; }
.section-head p { color: var(--slate-500); font-size: 1.0625rem; }

.mesh-bg {
  background-color: var(--sky-50);
  background-image:
    linear-gradient(var(--mesh-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--mesh-line) 1px, transparent 1px);
  background-size: 10px 10px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px;
  border-radius: var(--r-sm);
  font-weight: 700; text-decoration: none; white-space: nowrap;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn-primary { background: var(--blue-600); color: var(--white); }
.btn-primary:hover { background: var(--blue-800); }
.btn-secondary { background: var(--white); color: var(--blue-800); border: 1.5px solid var(--sky-200); }
.btn-secondary:hover { border-color: var(--blue-600); }
.btn-quiet { background: var(--sky-100); color: var(--navy-900); }
.btn-quiet:hover { background: var(--sky-200); }
.btn-lg { min-height: 52px; padding: 0 28px; font-size: 1.0625rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .6; cursor: default; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--sky-200);
}
.nav { display: flex; align-items: center; gap: 10px; min-height: var(--nav-h); position: relative; }
.brand {
  display: flex; align-items: center; gap: 10px; margin-right: auto;
  color: var(--navy-900); text-decoration: none;
  font-weight: 800; font-size: 1rem; letter-spacing: .04em; white-space: nowrap;
}
.brand-mark { width: 32px; height: 32px; flex: none; }
.brand b { color: var(--blue-600); font-weight: 800; }
.nav-links {
  list-style: none; padding: 8px; margin: 0;
  display: none;
  position: absolute; top: 100%; left: 0; right: 0;
  background: var(--white); border-bottom: 1px solid var(--sky-200);
  box-shadow: var(--shadow);
}
.nav-links.is-open { display: block; }
.nav-links a {
  display: block; padding: 12px 14px; border-radius: var(--r-sm);
  color: var(--navy-900); text-decoration: none; font-weight: 700;
}
.nav-links a:hover { background: var(--sky-100); }
.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: var(--r-sm);
  border: 1.5px solid var(--sky-200); color: var(--navy-900);
}
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }
.nav-cta { padding-inline: 14px; }
.label-long { display: none; }
@media (min-width: 480px) { .label-long { display: inline; } .label-short { display: none; } }
@media (min-width: 1024px) {
  .nav { gap: 16px; }
  .nav-links {
    display: flex; position: static; padding: 0; gap: 4px;
    background: none; border: 0; box-shadow: none;
  }
  .nav-links a { padding: 8px 12px; }
  .nav-toggle { display: none; }
  .nav-cta { padding-inline: 20px; margin-left: 8px; }
}

/* ---------- Page views ---------- */
.page-section { display: none; }
.page-section.is-active { display: block; }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(40px, 7vw, 88px); border-bottom: 1px solid var(--sky-200); }
.hero-grid { display: grid; gap: 40px; align-items: center; }
.made-in {
  display: inline-flex; align-items: center; gap: 8px;
  margin-bottom: 18px; padding: 8px 14px 8px 10px; border-radius: 999px;
  background: var(--white); border: 1px solid var(--sky-200);
  font-weight: 700; font-size: .95rem; color: var(--navy-900);
}
.made-in .icon { width: 22px; height: 22px; color: #D52B1E; }
.hero h1 { font-size: clamp(2rem, 4.6vw, 3.25rem); max-width: 20ch; letter-spacing: -0.02em; }
.hero-lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--slate-500); max-width: 52ch; margin: 20px 0 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { margin-top: 20px; font-size: .9rem; color: var(--slate-500); }
.hero-art { width: 100%; max-width: 560px; margin-inline: auto; filter: drop-shadow(0 20px 30px rgba(18, 48, 74, .12)); }
.hero-screen { animation: screen-close 1.8s cubic-bezier(.2, .8, .2, 1) .5s both; }
@keyframes screen-close { from { transform: translateX(-236px); } to { transform: translateX(0); } }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: 1.1fr 1fr; gap: 56px; } }

/* ---------- Trust bar ---------- */
.trust { background: var(--white); border-bottom: 1px solid var(--sky-200); }
.trust-list {
  list-style: none; padding: 24px 0; margin-block: 0;
  display: flex; flex-direction: column; gap: 14px;
}
.trust-list li { display: flex; align-items: center; gap: 14px; font-weight: 700; font-size: 1.1rem; line-height: 1.3; }
.trust-icon {
  flex: none; width: 48px; height: 48px; border-radius: 50%;
  background: var(--sky-100); color: var(--blue-600);
  display: grid; place-items: center;
}
.trust-icon .icon { width: 26px; height: 26px; }
@media (min-width: 640px) {
  .trust-list { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 16px 40px; padding: 28px 0; }
}
@media (min-width: 1024px) {
  .trust-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px 24px; }
  .trust-list li { font-size: 1.15rem; }
}

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: 20px; }
.grid-models, .grid-3 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-models { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .grid-models { grid-template-columns: repeat(4, 1fr); } }

.card {
  background: var(--white); border: 1px solid var(--sky-200);
  border-radius: var(--r-md); padding: 24px;
  display: flex; flex-direction: column; gap: 10px;
}
.card h3 { font-size: 1.125rem; }
.card p { color: var(--slate-500); font-size: .95rem; }
.card .icon { color: var(--blue-600); width: 28px; height: 28px; }
.card-price { font-weight: 800; color: var(--blue-800); }
/* Mirage model number above a product name */
.card .card-code, .model-info .model-code { font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--blue-600); margin-bottom: -6px; }
.model-info .model-code { margin-bottom: 2px; }
.card .btn { margin-top: auto; align-self: flex-start; }
.card-photo { overflow: hidden; }
.card-media {
  width: calc(100% + 48px); max-width: none; height: auto; margin: -24px -24px 8px;
  aspect-ratio: 4 / 3; object-fit: cover; background: var(--sky-100);
}

/* ---------- Gallery ---------- */
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.chip {
  min-height: 40px; padding: 0 16px; border-radius: 999px;
  border: 1.5px solid var(--sky-200); background: var(--white);
  font-weight: 700; font-size: .9rem; color: var(--navy-900);
}
.chip:hover { border-color: var(--blue-600); }
.chip[aria-pressed="true"] { background: var(--blue-600); border-color: var(--blue-600); color: var(--white); }
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 640px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; } }
@media (min-width: 1024px) { .gallery-grid { grid-template-columns: repeat(4, 1fr); } }
.photo-btn {
  display: block; width: 100%; overflow: hidden; border-radius: var(--r-md);
  background: var(--sky-100); aspect-ratio: 4 / 3;
}
.photo-btn img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.photo-btn:hover img { transform: scale(1.04); }
.gallery-more { margin-top: 20px; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 400;
  display: none; align-items: center; justify-content: center;
  padding: 56px 12px; background: rgba(11, 33, 56, .92);
}
.lightbox.is-open { display: flex; }
.lb-figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; max-width: 100%; max-height: 100%; }
.lb-figure img { max-width: 100%; max-height: calc(100vh - 150px); width: auto; height: auto; border-radius: var(--r-sm); background: var(--navy-950); }
.lb-figure figcaption { color: var(--sky-200); font-size: .9rem; text-align: center; max-width: 60ch; }
.lb-btn {
  position: absolute; width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .14); color: var(--white);
}
.lb-btn:hover { background: rgba(255, 255, 255, .26); }
.lb-close { top: 10px; right: 10px; }
.lb-prev, .lb-next { top: 50%; transform: translateY(-50%); }
.lb-prev { left: 8px; }
.lb-next { right: 8px; }
.lb-prev .icon { transform: rotate(90deg); }
.lb-next .icon { transform: rotate(-90deg); }
@media (min-width: 768px) { .lightbox { padding: 56px 80px; } .lb-prev { left: 16px; } .lb-next { right: 16px; } }

/* ---------- Comparison demo ---------- */
.demo-stage {
  --split: 50%;
  position: relative; aspect-ratio: 4 / 3;
  border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--sky-200); background: #A9D6F2;
  touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: ew-resize;
}
@media (min-width: 768px) { .demo-stage { aspect-ratio: 16 / 9; } }
@media (min-width: 1024px) { .demo-stage { aspect-ratio: 2 / 1; } }
.demo-scene { position: absolute; inset: 0; width: 100%; height: 100%; }
.demo-layer { position: absolute; inset: 0; }
.demo-closed { clip-path: inset(0 calc(100% - var(--split)) 0 0); }
.demo-open { clip-path: inset(0 0 0 var(--split)); }
.demo-mesh {
  position: absolute; inset: 0;
  background-color: rgba(255, 255, 255, .18);
  background-image:
    linear-gradient(rgba(18, 48, 74, .38) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 48, 74, .38) 1px, transparent 1px);
  background-size: 4px 4px;
}
.demo-chip {
  position: absolute; top: 14px; z-index: 2;
  padding: 6px 12px; border-radius: 999px;
  font-size: .8rem; font-weight: 700; white-space: nowrap;
  background: rgba(255, 255, 255, .94);
}
.demo-chip-in { left: 14px; color: var(--green-700); }
.demo-chip-out { right: 14px; color: var(--red-700); }
.demo-handle {
  position: absolute; top: 0; bottom: 0; left: var(--split); width: 3px;
  background: var(--white); transform: translateX(-50%);
  box-shadow: 0 0 0 1px rgba(18, 48, 74, .25); z-index: 3;
}
.demo-knob {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--white); color: var(--blue-800);
  display: grid; place-items: center; box-shadow: var(--shadow);
}
.demo-captions { display: grid; gap: 12px; margin-top: 16px; }
.demo-caption { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; color: var(--slate-500); }
.demo-caption::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; margin-top: 7px; }
.demo-caption-in::before { background: var(--green-700); }
.demo-caption-out::before { background: var(--red-700); }
@media (min-width: 768px) { .demo-captions { grid-template-columns: 1fr 1fr; gap: 24px; } }

.bug { position: absolute; width: 30px; height: 30px; will-change: transform; }
.bug-fly-1 { animation: fly-1 4.2s ease-in-out infinite alternate; }
.bug-fly-2 { animation: fly-2 5s ease-in-out infinite alternate; }
.bug-fly-3 { animation: fly-3 4.6s ease-in-out infinite alternate; }
@keyframes fly-1 { 0% { transform: translate(0, 0) rotate(0); } 35% { transform: translate(-90px, 40px) rotate(-18deg); } 70% { transform: translate(-180px, -30px) rotate(12deg); } 100% { transform: translate(-240px, 50px) rotate(-8deg); } }
@keyframes fly-2 { 0% { transform: translate(0, 0) rotate(0); } 40% { transform: translate(-120px, -50px) rotate(20deg); } 100% { transform: translate(-220px, 30px) rotate(-14deg); } }
@keyframes fly-3 { 0% { transform: translate(0, 0) rotate(0); } 50% { transform: translate(-80px, 70px) rotate(-25deg); } 100% { transform: translate(-200px, -20px) rotate(10deg); } }

/* ---------- Quiz ---------- */
.quiz { background: var(--white); border: 1px solid var(--sky-200); border-radius: var(--r-lg); padding: clamp(24px, 4vw, 40px); }
.quiz h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-bottom: 6px; }
.quiz > p { color: var(--slate-500); margin-bottom: 20px; }
.choice-lg {
  display: flex; align-items: center; gap: 14px; text-align: left;
  padding: 16px; border: 1.5px solid var(--sky-200); border-radius: var(--r-md);
  background: var(--sky-50); min-height: 44px; transition: border-color .15s, background-color .15s;
}
.choice-lg:hover { border-color: var(--blue-600); background: var(--sky-100); }
.choice-lg .icon { color: var(--blue-600); width: 28px; height: 28px; }
.choice-lg strong { display: block; font-size: 1rem; }
.choice-lg span { display: block; font-size: .85rem; color: var(--slate-500); }

/* ---------- How it works ---------- */
.steps { list-style: none; padding: 0; counter-reset: step; }
.grid-steps { grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 640px) { .grid-steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) {
  .grid-steps { grid-template-columns: repeat(5, 1fr); gap: 20px; }
  .steps.grid-steps li { padding-left: 0; padding-top: 52px; }
  .steps.grid-steps h3 { padding-top: 0; }
}
.steps li { position: relative; padding-left: 56px; }
.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--blue-600); color: var(--white);
  display: grid; place-items: center; font-weight: 800;
}
.steps h3 { font-size: 1.125rem; margin-bottom: 6px; padding-top: 6px; }
.steps p { color: var(--slate-500); font-size: .95rem; }

/* ---------- Warranty ---------- */
.warranty-grid { display: grid; gap: 20px; align-items: start; }
@media (min-width: 1024px) { .warranty-grid { grid-template-columns: 1.15fr 1fr; gap: 24px; } }
.table-wrap { overflow-x: auto; background: var(--white); border: 1px solid var(--sky-200); border-radius: var(--r-md); }
.warranty-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.warranty-table th, .warranty-table td { padding: 14px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--sky-100); }
.warranty-table thead th { background: var(--sky-100); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--slate-500); }
.warranty-table tbody th { font-weight: 700; width: 45%; }
.warranty-table td { color: var(--slate-500); }
.warranty-table td strong { color: var(--green-700); }
.warranty-table tr:last-child th, .warranty-table tr:last-child td { border-bottom: 0; }
.warranty-lists { display: grid; gap: 20px; }
.check-list, .x-list { list-style: none; padding: 0; display: grid; gap: 8px; font-size: .95rem; color: var(--slate-500); }
.check-list li, .x-list li { position: relative; padding-left: 26px; }
.check-list li::before, .x-list li::before {
  position: absolute; left: 0; top: 2px; width: 18px; height: 18px; border-radius: 50%;
  display: grid; place-items: center; font-size: .7rem; font-weight: 800;
}
.check-list li::before { content: "\2713"; background: var(--green-100); color: var(--green-700); }
.x-list li::before { content: "\2715"; background: var(--red-100); color: var(--red-700); }
.card-disclosure { gap: 0; }
.card-disclosure .x-list { margin-top: 14px; }
.disclosure-btn {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  text-align: left; font-weight: 800; color: var(--navy-900); min-height: 44px; margin-block: -10px;
}
.disclosure-btn .icon { color: var(--blue-600); width: 24px; height: 24px; transition: transform .2s ease; }
.disclosure-btn[aria-expanded="true"] .icon { transform: rotate(180deg); }

/* ---------- Reviews ---------- */
.stars { display: flex; gap: 2px; color: var(--amber-500); }
.stars .icon { width: 18px; height: 18px; fill: currentColor; stroke: none; }
.review-quote { font-size: 1rem; color: var(--navy-900); }
.review-by { margin-top: auto; padding-top: 8px; font-size: .9rem; }
.review-by strong { display: block; }
.review-by span { color: var(--slate-500); }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; }
.faq-item { border-bottom: 1px solid var(--sky-200); }
.faq-item h3 { font-size: 1.05rem; }
.faq-q {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 0; text-align: left; font-weight: 700; color: var(--navy-900);
}
.faq-q .icon { color: var(--blue-600); transition: transform .2s ease; }
.faq-q[aria-expanded="true"] .icon { transform: rotate(180deg); }
.faq-a { padding: 0 0 18px; color: var(--slate-500); max-width: 65ch; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--sky-100); border-block: 1px solid var(--sky-200); }
.cta-band .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding-block: clamp(32px, 5vw, 56px); }
.cta-band h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-bottom: 4px; }
.cta-band p { color: var(--slate-500); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: var(--sky-200); font-size: .95rem; }
.footer-grid { display: grid; gap: 32px; padding-block: 48px 32px; }
.site-footer h4 { color: var(--white); font-size: 1rem; margin-bottom: 12px; }
.site-footer .brand { color: var(--white); margin: 0 0 12px; }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-list { list-style: none; padding: 0; display: grid; gap: 10px; }
.footer-list li { display: flex; align-items: center; gap: 10px; }
.footer-list .icon { width: 20px; height: 20px; color: var(--sky-300); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding-block: 20px; font-size: .85rem; color: var(--slate-300); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }

/* ==========================================================================
   Configurator
   ========================================================================== */
.config { background: var(--white); }
/* Phones and tablets: plain block layout, and the preview column's own box is dropped
   (display: contents) so the door preview can stay stuck under the header while every
   option below it scrolls. Desktop restores the two-column grid. */
.config-layout { display: block; }
.config-preview { display: contents; }
.preview-stage {
  position: sticky; top: var(--nav-h); z-index: 30;
  height: clamp(200px, 40vh, 340px); height: clamp(200px, 40svh, 340px);
  display: grid; place-items: center; overflow: hidden;
  border-bottom: 1px solid var(--sky-200);
  background-color: var(--sky-50);
  background-image:
    linear-gradient(var(--mesh-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--mesh-line) 1px, transparent 1px);
  background-size: 10px 10px;
}
@media (min-width: 640px) { .preview-stage { height: clamp(260px, 45vh, 440px); height: clamp(260px, 45svh, 440px); } }
.model-info { margin: 16px var(--gutter) 0; background: var(--white); border: 1px solid var(--sky-200); border-radius: var(--r-md); padding: 16px 18px; }
.model-info h2 { font-size: 1.1rem; margin-bottom: 4px; }
.model-info p { font-size: .9rem; color: var(--slate-500); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.model-photos { display: flex; gap: 8px; margin-top: 12px; overflow-x: auto; padding-bottom: 2px; }
.model-photos .photo-btn { flex: none; width: 76px; aspect-ratio: 1; border-radius: var(--r-sm); }
.model-photos:empty { display: none; }
.tag { background: var(--sky-100); color: var(--blue-800); font-size: .75rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; }

.config-controls { display: flex; flex-direction: column; background: var(--white); margin-top: 16px; border-top: 1px solid var(--sky-200); }
.config-summary {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 12px var(--gutter);
  background: var(--white); border-bottom: 1px solid var(--sky-200);
}
.config-summary small { display: block; font-size: .75rem; color: var(--slate-500); font-weight: 700; }
.config-summary strong { font-size: 1.25rem; font-weight: 800; }
.steps-wrap { padding: 0 var(--gutter) 24px; }
.step { padding: 20px 0; border-bottom: 1px solid var(--sky-100); }
.step:last-child { border-bottom: 0; }
.step h3 { font-size: 1rem; margin-bottom: 12px; }
.steps-wrap { counter-reset: cstep; }
.steps-wrap .step { counter-increment: cstep; }
.step-num { color: var(--blue-600); margin-right: 6px; }
.step-num::before { content: counter(cstep); }
.hint { font-size: .82rem; color: var(--slate-500); margin-top: 10px; }
.notice { font-size: .85rem; color: var(--navy-900); background: #FDF3DC; border-left: 3px solid var(--amber-500); border-radius: var(--r-sm); padding: 10px 12px; margin-top: 12px; }
.range-ticks { display: flex; justify-content: space-between; font-size: .75rem; font-weight: 700; color: var(--slate-500); margin-top: -2px; }
.choice-list { display: grid; gap: 8px; }
.choice-inline { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.choice-inline span { font-size: .85rem; }
.sub-label { font-size: .85rem; font-weight: 700; color: var(--slate-500); margin: 14px 0 8px; }

.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice-row { display: flex; gap: 8px; }
.choice-row .choice { flex: 1; text-align: center; }
.choice {
  text-align: left; min-height: 44px; padding: 10px 14px;
  border: 1.5px solid var(--sky-200); border-radius: var(--r-sm); background: var(--white);
  transition: border-color .15s, background-color .15s;
}
.choice:hover { border-color: var(--blue-600); }
.choice[aria-pressed="true"] { border-color: var(--blue-600); background: var(--sky-100); box-shadow: inset 0 0 0 1px var(--blue-600); }
.choice strong { display: block; font-size: .95rem; }
.choice span { display: block; color: var(--slate-500); font-size: .8rem; }

.range-group { margin-top: 12px; }
.range-label { display: flex; justify-content: space-between; font-size: .9rem; font-weight: 700; margin-bottom: 4px; }
.range-label output { color: var(--blue-800); }
input[type="range"] { width: 100%; height: 32px; margin: 0; accent-color: var(--blue-600); cursor: pointer; }

.swatch-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.swatch {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 8px 2px; border-radius: var(--r-sm);
  font-size: .72rem; line-height: 1.2; text-align: center; color: var(--slate-500);
}
.swatch i { width: 34px; height: 34px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(18, 48, 74, .2); }
.swatch:hover { background: var(--sky-50); }
.swatch[aria-pressed="true"] { background: var(--sky-100); color: var(--navy-900); font-weight: 700; }
.swatch[aria-pressed="true"] i { box-shadow: 0 0 0 2px var(--white), 0 0 0 4px var(--blue-600); }
.swatch-textured i {
  background-image:
    radial-gradient(rgba(255, 255, 255, .35) .8px, transparent 1.2px),
    radial-gradient(rgba(0, 0, 0, .28) .8px, transparent 1.2px);
  background-size: 4px 4px, 5px 5px; background-position: 0 0, 2px 2px;
}
.swatch-custom i { background: conic-gradient(#D94B4B, #E8B53C, #6CB86A, #3C8DD9, #8B5CC7, #D94B4B); }
@media (min-width: 640px) and (max-width: 1023px) { .swatch-grid { grid-template-columns: repeat(6, 1fr); } .choice-grid { grid-template-columns: repeat(4, 1fr); } }

/* Phones and tablets: a fixed bottom bar with the live price next to the add button. */
.config-actions {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: flex; align-items: center; gap: 16px;
  padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom, 0px));
  background: var(--white); border-top: 1px solid var(--sky-200);
  box-shadow: 0 -8px 24px rgba(18, 48, 74, .08);
}
.config-actions .btn-block { flex: 1; width: auto; }
.bar-price { flex: none; line-height: 1.2; }
.bar-price small { display: block; font-size: .72rem; color: var(--slate-500); font-weight: 700; }
.bar-price strong { font-size: 1.1rem; font-weight: 800; white-space: nowrap; }
body[data-view="configurator-page"] { padding-bottom: 84px; }

@media (min-width: 1024px) {
  body[data-view="configurator-page"] { padding-bottom: 0; }
  .config-layout { display: grid; grid-template-columns: minmax(0, 1fr) 440px; }
  .config-preview {
    position: sticky; top: var(--nav-h); height: calc(100vh - var(--nav-h));
    padding: 24px var(--gutter); overflow: auto;
    display: flex; flex-direction: column; gap: 16px;
  }
  .preview-stage {
    position: relative; top: auto; z-index: auto; height: auto;
    flex: 1; min-height: 320px; border-bottom: 0; background: none;
  }
  /* Compact model card: text on the left, photo thumbnails in a small grid on the right. */
  .model-info {
    max-width: 760px; width: 100%; margin: 0 auto;
    display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 20px; align-items: start;
  }
  .model-info > * { grid-column: 1; }
  .model-info > .model-photos {
    grid-column: 2; grid-row: 1 / span 3;
    display: grid; grid-template-columns: repeat(3, 56px); gap: 6px; margin: 0; overflow: visible; padding: 0;
  }
  .model-info > .model-photos .photo-btn { width: 56px; }
  .config-controls { position: sticky; top: var(--nav-h); height: calc(100vh - var(--nav-h)); margin-top: 0; border-top: 0; border-left: 1px solid var(--sky-200); }
  .steps-wrap { flex: 1; overflow-y: auto; }
  .config-actions { position: static; display: block; box-shadow: none; padding: 16px var(--gutter); }
  .config-actions .btn-block { width: 100%; }
  .bar-price { display: none; }
}

/* Door preview */
/* The door is drawn to scale by JS (width and height in px). The trim around it is the
   house's door frame and stays white; the screen's housing and pull bar take the chosen
   colour (--frame). */
.door-wrap { position: relative; padding: 28px 44px 0 0; }
.measure {
  --tick: linear-gradient(rgba(15, 125, 194, .45), rgba(15, 125, 194, .45));
  position: absolute; display: flex; align-items: center; gap: 8px;
  font-size: .85rem; font-weight: 800; color: var(--blue-800);
}
.measure::before, .measure::after { content: ""; flex: 1; background: var(--blue-600); opacity: .45; }
.measure-w { top: 0; left: 0; right: 44px; height: 18px; justify-content: center; background: var(--tick) left center / 1px 12px no-repeat, var(--tick) right center / 1px 12px no-repeat; }
.measure-w::before, .measure-w::after { height: 1px; }
.measure-h { top: 28px; bottom: 0; right: 0; width: 44px; flex-direction: column; justify-content: center; background: var(--tick) center top / 12px 1px no-repeat, var(--tick) center bottom / 12px 1px no-repeat; }
.measure-h::before, .measure-h::after { width: 1px; }
.door-jamb {
  padding: var(--trim); background: var(--white);
  border: 1px solid #C9D6E2; border-radius: 3px;
  box-shadow: 0 1px 2px rgba(18, 48, 74, .08), 0 18px 28px -14px rgba(18, 48, 74, .4);
}
.door {
  --frame: #FFFFFF;
  --mesh-w: calc((100% - var(--housing) - var(--bar)) * .72);
  position: relative; overflow: hidden;
  border: 2px solid #DCE5EE;
  background: linear-gradient(#BFE0F6 0 58%, #8FC98D 58% 100%);
  transition: width .25s ease, height .25s ease;
}
/* French (double): two screens, each covering part of the opening, meeting near the middle. */
.door.is-double { --mesh-w: calc((100% - 2 * var(--housing) - 2 * var(--bar)) * .44); }
.housing, .pull {
  background: linear-gradient(90deg, rgba(255, 255, 255, .32), rgba(255, 255, 255, 0) 45%, rgba(0, 0, 0, .16)), var(--frame);
}
.housing-top, .pull-down {
  background: linear-gradient(180deg, rgba(255, 255, 255, .32), rgba(255, 255, 255, 0) 45%, rgba(0, 0, 0, .16)), var(--frame);
}
.housing { position: absolute; z-index: 4; }
.housing-left { left: 0; top: 0; bottom: 0; width: var(--housing); box-shadow: inset -1px 0 0 rgba(18, 48, 74, .3); }
.housing-right { right: 0; top: 0; bottom: 0; width: var(--housing); box-shadow: inset 1px 0 0 rgba(18, 48, 74, .3); }
.housing-top { left: 0; right: 0; top: 0; height: var(--housing); box-shadow: inset 0 -1px 0 rgba(18, 48, 74, .3); }
.mesh {
  position: absolute; top: 0; bottom: 0;
  background-color: rgba(255, 255, 255, .16);
  background-image:
    linear-gradient(rgba(18, 48, 74, .42) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 48, 74, .42) 1px, transparent 1px);
  background-size: 3px 3px;
  transition: width .2s ease;
}
.mesh-left { left: var(--housing); width: var(--mesh-w); }
.mesh-right { right: var(--housing); width: var(--mesh-w); }
.mesh-down { left: 0; right: 0; top: var(--housing); bottom: var(--bar); }
.pull {
  position: absolute; top: 0; bottom: 0; width: var(--bar); z-index: 3;
  box-shadow: 0 0 0 1px rgba(18, 48, 74, .3);
  transition: left .2s ease, right .2s ease;
}
.pull-left { left: calc(var(--housing) + var(--mesh-w)); }
.pull-right { right: calc(var(--housing) + var(--mesh-w)); }
.pull-down { top: auto; left: 0; right: 0; bottom: 0; width: auto; height: var(--bar); }
/* Handles sit in the middle of the pull bar. */
.handle {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: calc(var(--bar) * .45); height: min(30px, 30%); border-radius: 999px;
  background: var(--blue-600); box-shadow: 0 0 0 1px rgba(255, 255, 255, .5);
}
.handle.pivot-pro { width: calc(var(--bar) - 4px); height: min(40px, 38%); background: var(--white); border: 2px solid var(--blue-600); box-shadow: none; }
.handle.recessed { width: calc(var(--bar) * .3); height: min(22px, 24%); background: rgba(11, 33, 56, .6); }

/* ---------- Estimate drawer ---------- */
.drawer-backdrop {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(18, 48, 74, .4);
  opacity: 0; pointer-events: none; transition: opacity .2s ease;
}
.drawer-backdrop.is-open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 210;
  width: min(440px, 100vw);
  background: var(--white); box-shadow: var(--shadow);
  display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .25s ease;
}
.drawer.is-open { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px var(--gutter); border-bottom: 1px solid var(--sky-200); }
.drawer-head h2 { font-size: 1.1rem; }
.icon-btn { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--r-sm); color: var(--navy-900); }
.icon-btn:hover { background: var(--sky-100); }
.drawer-body { flex: 1; overflow-y: auto; padding: 16px var(--gutter); }
.drawer-foot { padding: 16px var(--gutter) calc(16px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--sky-200); background: var(--white); }
.cart-item { border: 1px solid var(--sky-200); border-radius: var(--r-sm); padding: 12px 14px; margin-bottom: 10px; display: grid; gap: 4px; }
.cart-item h4 { font-size: .95rem; }
.cart-item p { font-size: .85rem; color: var(--slate-500); }
.cart-note { font-size: .8rem; color: #8A5A00; }
.cart-item-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 4px; }
.cart-item-price { font-weight: 800; color: var(--blue-800); }
.link-btn { color: var(--slate-500); font-size: .85rem; font-weight: 700; text-decoration: underline; min-height: 32px; }
.link-btn:hover { color: var(--red-700); }
.cart-empty { color: var(--slate-500); text-align: center; padding: 40px 12px; }
.total-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.total-row strong { font-size: 1.25rem; font-weight: 800; color: var(--blue-800); }
.fine-print { font-size: .8rem; color: var(--slate-500); margin-bottom: 12px; }
.form-error { display: none; color: var(--red-700); background: var(--red-100); border-radius: var(--r-sm); padding: 8px 12px; font-size: .9rem; margin-top: 10px; }
.form-error.is-visible { display: block; }

/* ---------- Quote modal ---------- */
.modal {
  position: fixed; inset: 0; z-index: 300;
  display: none; align-items: flex-end; justify-content: center;
  background: rgba(18, 48, 74, .5);
}
.modal.is-open { display: flex; }
.modal-card {
  background: var(--white); width: 100%; max-height: 92vh; overflow-y: auto;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  padding: 24px var(--gutter) calc(24px + env(safe-area-inset-bottom, 0px));
}
.modal-card h2 { font-size: 1.25rem; margin-bottom: 4px; }
.modal-card > p { color: var(--slate-500); font-size: .95rem; margin-bottom: 18px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 6px; }
.fieldset { border: 0; padding: 0; margin: 4px 0 0; min-width: 0; }
.fieldset legend { font-weight: 800; font-size: .95rem; padding: 0; margin-bottom: 10px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field-row-num { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
.field-hint { display: block; font-size: .8rem; color: var(--slate-500); margin-top: 4px; }
.field input, .field textarea, .field select {
  width: 100%; min-height: 44px; padding: 10px 12px;
  border: 1.5px solid var(--sky-200); border-radius: var(--r-sm);
  font: inherit; color: inherit; background: var(--white);
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--blue-600); box-shadow: 0 0 0 3px var(--sky-200); }
.field input[type="file"] { padding: 8px; font-size: .9rem; }
.field textarea { resize: vertical; }
.modal-actions { display: flex; gap: 10px; margin-top: 20px; }
.modal-actions .btn { flex: 1; }
@media (min-width: 640px) {
  .modal { align-items: center; padding: 24px; }
  .modal-card { max-width: 480px; border-radius: var(--r-md); padding: 28px; }
}

/* ---------- Quote form: spam protection, consent ---------- */
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.turnstile:empty { display: none; }
.turnstile { margin: 4px 0 10px; min-height: 0; }
.consent { font-size: .8rem; color: var(--slate-500); margin-top: 12px; }
.consent a { color: var(--blue-800); }

/* ---------- Thank-you view ---------- */
.thanks { padding-block: clamp(32px, 6vw, 72px); }
.thanks-card {
  max-width: 720px; margin-inline: auto; background: var(--white);
  border: 1px solid var(--sky-200); border-radius: var(--r-lg); box-shadow: var(--shadow);
  padding: clamp(24px, 5vw, 44px); display: grid; gap: 14px;
}
.thanks-icon { width: 56px; height: 56px; border-radius: 50%; background: var(--green-100); color: var(--green-700); display: grid; place-items: center; }
.thanks-icon .icon { width: 30px; height: 30px; stroke-width: 2.5; }
.thanks-card h1 { font-size: clamp(1.6rem, 3.6vw, 2.25rem); letter-spacing: -0.02em; }
.thanks-card h1:focus { outline: none; }
.thanks-card h2 { font-size: 1.15rem; margin-top: 10px; }
.thanks-lead { font-size: 1.1rem; }
.thanks-lead strong { color: var(--blue-800); white-space: nowrap; }
.thanks-note { color: var(--slate-500); }
.thanks-warn { color: #8A5A00; background: #FBF0D9; border-radius: var(--r-sm); padding: 10px 14px; font-size: .9rem; }
.thanks-steps { display: grid; gap: 18px; margin-top: 4px; }
.thanks-summary { background: var(--sky-50); border: 1px solid var(--sky-200); border-radius: var(--r-md); padding: 16px 18px; display: grid; gap: 8px; }
.thanks-summary h2 { margin-top: 0; }
.thanks-items { list-style: none; padding: 0; display: grid; gap: 8px; }
.thanks-items li { display: flex; justify-content: space-between; gap: 12px; font-size: .95rem; border-bottom: 1px solid var(--sky-200); padding-bottom: 8px; }
.thanks-items small { display: block; color: var(--slate-500); font-size: .82rem; }
.thanks-items .price { font-weight: 800; color: var(--blue-800); white-space: nowrap; }
.thanks-contact { color: var(--slate-500); }
.thanks-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }

/* ---------- Privacy ---------- */
.privacy-body { max-width: 760px; display: grid; gap: 14px; }
.privacy-body h1 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); }
.privacy-body h1:focus { outline: none; }
.privacy-body h2 { font-size: 1.2rem; margin-top: 14px; }
.privacy-body ul { padding-left: 20px; display: grid; gap: 6px; }
.privacy-body p, .privacy-body li { color: var(--navy-900); }
.privacy-updated { color: var(--slate-500); font-size: .9rem; }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
