:root {
  --ink: #14233b;
  --muted: #677184;
  --paper: #f6f7f8;
  --white: #ffffff;
  --line: #dfe3e8;
  --blue: #69459a;
  --blue-dark: #4c2f75;
  --yellow: #c9a7e8;
  font-family: "DM Sans", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--paper); }
button, input, select, textarea { font: inherit; }
button, label, select { -webkit-tap-highlight-color: transparent; }

.site-header {
  height: 84px; padding: 0 clamp(20px, 5vw, 78px); display: flex; align-items: center;
  justify-content: space-between; background: var(--white); border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 13px; color: var(--ink); text-decoration: none; }
.brand-logo { width: 62px; height: 62px; object-fit: contain; }
.brand-mark { width: 46px; height: 46px; display: grid; place-items: center; color: white; background: var(--blue); font: 800 18px/1 Manrope, sans-serif; letter-spacing: -1px; }
.brand strong, .brand small { display: block; }
.brand strong { font: 800 17px/1.15 Manrope, sans-serif; }
.brand small { margin-top: 3px; color: var(--muted); font-size: 12px; }
.header-nav { display: flex; align-items: center; gap: 25px; }
.header-nav a { color: var(--ink); font-weight: 700; text-decoration: none; border-bottom: 2px solid transparent; padding: 8px 0; }
.header-nav a:hover, .header-nav a:last-child { border-bottom-color: var(--yellow); }

.intro { min-height: 630px; display: grid; grid-template-columns: minmax(320px, .82fr) minmax(480px, 1.18fr); background: var(--white); }
.intro-copy { display: flex; flex-direction: column; justify-content: center; padding: 72px clamp(28px, 6vw, 96px); }
.eyebrow { color: var(--blue); font-size: 13px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
h1, h2, h3 { font-family: Manrope, sans-serif; letter-spacing: -.045em; }
h1 { margin: 22px 0 24px; font-size: clamp(48px, 6vw, 82px); line-height: .98; }
h1 em { color: var(--blue); font-style: normal; }
.intro-copy p { max-width: 530px; margin: 0 0 32px; color: var(--muted); font-size: 18px; line-height: 1.65; }
.primary-cta { align-self: flex-start; display: inline-flex; align-items: center; justify-content: center; gap: 24px; border: 0; padding: 16px 22px; background: var(--blue); color: white; text-decoration: none; font-weight: 700; cursor: pointer; transition: background .2s, transform .2s; }
.primary-cta:hover { background: var(--blue-dark); transform: translateY(-2px); }
.product-shot { position: relative; margin: 0; min-height: 520px; overflow: hidden; background: #e9ecef; }
.product-shot img { width: 100%; height: 100%; object-fit: cover; }
.product-shot--logo { display: grid; place-items: center; padding: clamp(12px, 2vw, 28px); background: #fff; }
.product-shot--logo img { width: min(100%, 650px); height: auto; max-height: 100%; object-fit: contain; }
.product-shot figcaption { position: absolute; left: 28px; right: 28px; bottom: 26px; display: flex; align-items: center; gap: 16px; padding: 18px 20px; background: rgba(255,255,255,.9); backdrop-filter: blur(12px); font-weight: 700; }
.product-shot figcaption span { color: var(--blue); }

.configurator { padding: 92px clamp(20px, 5vw, 78px) 100px; }
.section-heading { max-width: 670px; margin-bottom: 44px; }
.section-heading h2 { margin: 10px 0 12px; font-size: clamp(36px, 4vw, 55px); }
.section-heading p { margin: 0; color: var(--muted); font-size: 17px; line-height: 1.6; }
.builder-grid { display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: 26px; align-items: start; }
.steps { display: grid; gap: 18px; }
.step-card { min-width: 0; margin: 0; padding: 28px; border: 1px solid var(--line); background: var(--white); }
.step-card legend { padding: 0 10px 0 0; font: 800 20px Manrope, sans-serif; }
.step-card legend span { display: inline-grid; width: 31px; height: 31px; margin-right: 10px; place-items: center; color: white; background: var(--ink); font-size: 14px; }
.choice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 10px 0 24px; }
.choice-card { position: relative; padding: 18px; border: 1px solid var(--line); cursor: pointer; transition: border .2s, box-shadow .2s; }
.choice-card input, .swatch input, .upload-zone input { position: absolute; opacity: 0; pointer-events: none; }
.choice-card strong, .choice-card small { display: block; }
.choice-card strong { margin-bottom: 7px; }
.choice-card small { color: var(--muted); line-height: 1.45; }
.choice-card.selected { border-color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); }
.choice-card.selected::after { content: "✓"; position: absolute; top: 10px; right: 12px; color: var(--blue); font-weight: 800; }
.product-choice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 12px; }
.product-choice { position: relative; display: block; overflow: hidden; border: 1px solid var(--line); background: white; transition: border .2s, box-shadow .2s, transform .2s; }
.product-choice:hover { transform: translateY(-2px); }
.product-selector { display: block; }
.product-choice.selected { border-color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); }
.product-choice.selected::after { content: "✓"; position: absolute; top: 10px; right: 10px; z-index: 2; display: grid; width: 28px; height: 28px; place-items: center; border-radius: 50%; color: white; background: var(--blue); font-weight: 800; }
.product-image { display: block; height: 250px; overflow: hidden; background: #f7f7f7; }
.product-image img { width: 100%; height: 100%; object-fit: contain; }
.product-info { display: block; padding: 4px 17px 17px; }
.product-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 48px; border-top: 1px solid var(--line); }
.product-row > span { color: var(--muted); font-size: 14px; }
.product-row strong { font: 800 18px Manrope, sans-serif; }
.product-row strong small { display: block; margin-top: 3px; color: var(--muted); font: 500 12px/1.35 "DM Sans", sans-serif; }
.product-row b { color: var(--blue); font-size: 14px; }
.quantity-row select { width: 142px; min-height: 40px; margin: 0; padding: 8px 10px; font-weight: 700; }
.product-choice.out-of-stock .product-image { opacity: .55; }
.product-choice.out-of-stock .stock-value { color: #9b2c2c; }
.catalogue-note { margin: 18px 0 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.catalogue-loading { grid-column: 1 / -1; margin: 0; padding: 28px; border: 1px dashed var(--line); color: var(--muted); text-align: center; }
.demo-note { margin: 14px 0 0; color: var(--muted); font-size: 13px; }
.field-label, .step-card > label:not(.upload-zone) { display: block; margin-bottom: 8px; font-weight: 700; }
select, input[type="text"], input[type="email"], textarea { width: 100%; min-height: 50px; margin-top: 8px; padding: 12px 14px; border: 1px solid #cfd5dd; border-radius: 0; background: white; color: var(--ink); outline: none; }
select:focus, input:focus, textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(18,89,216,.12); }
.color-row { display: flex; gap: 17px; flex-wrap: wrap; margin: 12px 0 27px; }
.swatch { text-align: center; cursor: pointer; }
.swatch span { display: block; width: 43px; height: 43px; margin: 0 auto 6px; border: 2px solid white; outline: 1px solid #cbd0d7; background: var(--swatch); border-radius: 50%; transition: transform .2s, outline .2s; }
.swatch small { color: var(--muted); }
.swatch.selected span { transform: scale(1.08); outline: 3px solid var(--blue); outline-offset: 2px; }
.quantity-line { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px 20px; }
.quantity-line > label { font-weight: 700; }
.quantity-line > small { grid-column: 1; color: var(--muted); }
.quantity-control { grid-row: span 2; display: grid; grid-template-columns: 46px 90px 46px; height: 48px; border: 1px solid #cfd5dd; }
.quantity-control button { border: 0; background: #f2f4f7; color: var(--ink); font-size: 23px; cursor: pointer; }
.quantity-control input { width: 100%; border: 0; text-align: center; font-weight: 800; -moz-appearance: textfield; }
.quantity-control input::-webkit-outer-spin-button, .quantity-control input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.price-scale { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); }
.price-scale > strong { display: block; margin-bottom: 12px; }
.price-tiers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.price-tier { padding: 12px 8px; border: 1px solid var(--line); text-align: center; background: #fafbfc; }
.price-tier span, .price-tier b { display: block; }
.price-tier span { margin-bottom: 4px; color: var(--muted); font-size: 13px; }
.price-tier.active { border-color: var(--blue); background: #edf4ff; color: var(--blue); }
.upload-zone { display: grid; place-items: center; padding: 30px 20px; border: 1px dashed #aab3c0; text-align: center; cursor: pointer; background: #fafbfc; }
.upload-zone:hover { border-color: var(--blue); background: #f4f8ff; }
.upload-icon { display: grid; place-items: center; width: 39px; height: 39px; margin-bottom: 10px; border-radius: 50%; color: white; background: var(--blue); font-size: 23px; }
.upload-zone small { margin-top: 5px; color: var(--muted); }
.file-preview { display: flex; align-items: center; gap: 13px; margin-top: 14px; padding: 12px; background: #f1f5fb; }
.file-preview img { width: 52px; height: 52px; object-fit: contain; background: white; }
.file-preview div { min-width: 0; flex: 1; }
.file-preview strong, .file-preview small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-preview small { color: var(--muted); }
.file-preview button { border: 0; color: #9b2c2c; background: none; cursor: pointer; }
.two-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 20px; }
.two-columns label { font-weight: 700; }
textarea { resize: vertical; }

.summary { position: sticky; top: 24px; padding: 30px; background: var(--ink); color: white; box-shadow: 0 18px 50px rgba(20,35,59,.15); }
.summary-top { display: flex; align-items: center; justify-content: space-between; }
.summary .eyebrow { color: #8eb7ff; }
.status { padding: 5px 9px; border: 1px solid rgba(255,255,255,.22); font-size: 12px; color: #cbd5e5; }
.summary h3 { margin: 14px 0 24px; font-size: 34px; }
.summary dl { margin: 0; }
.summary dl div { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 15px 0; border-top: 1px solid rgba(255,255,255,.13); }
.summary dt { color: #aeb9c9; }
.summary dd { margin: 0; text-align: right; font-weight: 700; }
#sum-color-dot { display: inline-block; width: 10px; height: 10px; margin-right: 7px; background: #ede5d5; border-radius: 50%; }
.notice { margin: 24px 0; color: #bdc7d5; font-size: 14px; line-height: 1.55; }
.total-line { display: flex; justify-content: space-between; align-items: baseline; gap: 18px; margin-top: 22px; padding: 20px 0 0; border-top: 2px solid rgba(255,255,255,.35); }
.total-line span { color: #c6d0dd; }
.total-line strong { color: var(--yellow); font: 800 28px Manrope, sans-serif; }
.submit-button { display: flex; width: 100%; justify-content: space-between; padding: 17px 18px; border: 0; background: var(--yellow); color: #172033; font-weight: 800; cursor: pointer; }
.submit-button:hover { background: #d9bdf0; }
.submit-button:disabled { opacity: .55; cursor: not-allowed; }
.form-error { margin: 13px 0 0; padding: 11px 12px; background: #ffe8e8; color: #8f2424; font-size: 14px; line-height: 1.45; }
.privacy { display: block; margin-top: 12px; color: #96a4b7; line-height: 1.4; }
.honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.contact-section { display: grid; grid-template-columns: minmax(280px,.8fr) minmax(420px,1.2fr); gap: clamp(40px,8vw,120px); padding: 92px clamp(20px,8vw,130px); background: var(--white); border-top: 1px solid var(--line); }
.contact-copy h2 { margin: 12px 0 20px; font-size: clamp(38px,5vw,64px); line-height: 1.05; }
.contact-copy p { max-width: 500px; margin: 0; color: var(--muted); font-size: 17px; line-height: 1.65; }
.contact-form { padding: 30px; color: white; background: var(--blue-dark); box-shadow: 0 18px 50px rgba(76,47,117,.18); }
.contact-form label { display: block; font-weight: 700; }
.contact-form .two-columns { margin-top: 0; margin-bottom: 20px; }
.contact-form input, .contact-form textarea { border-color: rgba(255,255,255,.32); }
.contact-submit { display: flex; width: 100%; justify-content: space-between; margin-top: 20px; padding: 17px 18px; border: 0; color: var(--ink); background: var(--yellow); font-weight: 800; cursor: pointer; }
.contact-submit:hover { background: #d9bdf0; }
.contact-submit:disabled { opacity: .6; cursor: wait; }
.contact-privacy { margin: 12px 0 0; color: #d8cae9; font-size: 13px; }
footer { display: flex; justify-content: space-between; gap: 20px; padding: 30px clamp(20px, 5vw, 78px); border-top: 1px solid var(--line); color: var(--muted); background: white; }
.admin-link { color: var(--muted); text-decoration: none; }
.admin-link:hover { color: var(--blue); }

.dialog-backdrop { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: 20px; background: rgba(8,18,34,.7); }
.dialog-backdrop[hidden] { display: none; }
.dialog { position: relative; width: min(500px, 100%); padding: 44px; background: white; text-align: center; box-shadow: 0 24px 80px rgba(0,0,0,.25); }
.dialog-close { position: absolute; top: 11px; right: 15px; border: 0; background: none; font-size: 28px; color: var(--muted); cursor: pointer; }
.dialog-check { display: grid; place-items: center; width: 50px; height: 50px; margin: 0 auto 18px; border-radius: 50%; background: #e4f4e9; color: #1b7738; font-size: 25px; }
.dialog h2 { margin: 0 0 12px; font-size: 31px; }
.dialog p { color: var(--muted); line-height: 1.55; }
.dialog .primary-cta { margin-top: 10px; }

@media (max-width: 980px) {
  .intro { grid-template-columns: 1fr; }
  .intro-copy { min-height: 480px; }
  .product-shot { min-height: 480px; }
  .builder-grid { grid-template-columns: 1fr; }
  .summary { position: static; }
  .contact-section { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .site-header { height: 72px; }
  .header-nav a:first-child { display: none; }
  .header-nav a:last-child { font-size: 0; }
  .header-nav a:last-child span { font-size: 24px; }
  .intro-copy { min-height: 440px; padding-top: 58px; padding-bottom: 58px; }
  .product-shot { min-height: 360px; }
  .product-shot img { object-position: center; }
  .configurator { padding-top: 68px; }
  .choice-grid, .two-columns, .product-choice-grid { grid-template-columns: 1fr; }
  .product-image { height: 280px; }
  .price-tiers { grid-template-columns: repeat(2, 1fr); }
  .step-card { padding: 22px 18px; }
  .quantity-line { grid-template-columns: 1fr; }
  .quantity-control { grid-row: auto; width: 182px; }
  .quantity-line > small { grid-column: auto; }
  footer { flex-direction: column; }
  .dialog { padding: 38px 24px; }
  .contact-section { padding-top: 68px; padding-bottom: 68px; }
  .contact-form { padding: 24px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
