/* ═══ RESET & ROOT ═══════════════════════════════════════════════════════════ */
*,*::before,*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
:root {
  --p: #4C1CBC;
  --s: #DC0B6D;
  --black: #0a0a0a;
  --white: #fff;
  --g1: #f5f4f1;
  --g2: #eceae6;
  --g3: #d5d2cc;
  --g5: #8c8984;
  --g7: #46443f;
  --ease: cubic-bezier(.4,0,.2,1);
}
html, body {
  height: 100%;
  font-family: "DM Sans", sans-serif;
  color: var(--black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}
.disp {
  font-family: "HalyardDisplay-Medium", "Halyard Display", Georgia, serif;
}

/* ═══ LOADER BAR ══════════════════════════════════════════════════════════════ */
.ldr {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 999;
  background: linear-gradient(90deg, var(--p), var(--s));
}
.ldr.on {
  background: linear-gradient(90deg, transparent 0%, var(--p) 25%, var(--s) 60%, transparent 100%);
  background-size: 300% 100%;
  animation: lm 1.5s linear infinite;
}
@keyframes lm {
  0%   { background-position: 160% 0; }
  100% { background-position: -140% 0; }
}

/* ═══ HEADER ══════════════════════════════════════════════════════════════════ */
.hdr {
  position: fixed;
  top: 3px;
  left: 0;
  right: 0;
  height: 52px;
  background: var(--white);
  border-bottom: 1px solid var(--g2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  z-index: 100;
}
.hdr a { display: flex; align-items: center; }
.hdr img { display: block; height: 26px; width: auto; }
.htg {
  font-size: 10px;
  color: var(--g5);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.hdr-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.hdr-skip {
  background: none;
  border: 1px solid var(--g2);
  padding: 6px 13px;
  font-family: "DM Sans", sans-serif;
  font-size: 11px;
  color: var(--g5);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: color .15s, border-color .15s;
  white-space: nowrap;
}
.hdr-skip:hover { color: var(--p); border-color: var(--p); }
.hdr-skip svg { flex-shrink: 0; }

/* ═══ APP LAYOUT ══════════════════════════════════════════════════════════════ */
.app {
  position: fixed;
  top: 55px;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  overflow: hidden;
}
.lp {
  flex: 0 0 46%;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--g2);
  overflow: hidden;
}
.lpscr {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}
.rp {
  flex: 1;
  background: var(--g1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 22px 18px 14px;
}
.rphd { flex-shrink: 0; margin-bottom: 10px; }
.rpey {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--g5);
  margin-bottom: 4px;
}
.rpsr { display: flex; align-items: flex-end; gap: 6px; margin-bottom: 3px; }
.rpsc {
  font-size: 44px;
  line-height: 1;
  letter-spacing: -.04em;
  background: linear-gradient(135deg, var(--p), var(--s));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.rpsbl { font-size: 11px; color: var(--g5); padding-bottom: 8px; }
.rpst { font-size: 11px; color: var(--g5); line-height: 1.4; }
.rpbw {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
#bsvg { display: block; height: 100%; width: auto; max-width: 100%; }
#arch-canvas { display: block; width: 100%; height: 100%; }

/* ═══ CONFIGURATOR RIGHT PANEL (dark) ═══════════════════════════════════════ */
#cfg-rp {
  background: #0d0b12;
  padding: 18px 16px 10px;
}
#cfg-rp .rpey   { color: rgba(255,255,255,.3); }
#cfg-rp .rpst   { color: rgba(255,255,255,.35); }
#cfg-rp .cfg-dot { background: rgba(255,255,255,.12); }
#cfg-rp .cfg-dot.done { background: var(--p); }
#cfg-rp .cfg-dot.cur  { background: rgba(76,27,188,.4); }

.cfg-step-dots { display: flex; gap: 6px; margin-bottom: 4px; }
.cfg-dot {
  width: 22px;
  height: 3px;
  background: rgba(255,255,255,.12);
  transition: background .3s;
}
.cfg-dot.done { background: #6B4FBF; }
.cfg-dot.cur  { background: rgba(107,79,191,.5); }

/* ═══ SCREENS ══════════════════════════════════════════════════════════════════ */
.scr { display: none; flex: 1; flex-direction: column; min-height: 0; }
.scr.on { display: flex; }

/* ═══ INTRO WRAPPER ═══════════════════════════════════════════════════════════ */
.iw {
  padding: 40px 32px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.ebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--p);
  margin-bottom: 20px;
}
.ebrow::before,
.ebrow::after {
  content: "";
  display: block;
  width: 16px;
  height: 1px;
  background: var(--p);
}
.iw h1 {
  font-size: clamp(23px, 2.7vw, 35px);
  font-weight: 400;
  letter-spacing: -.03em;
  line-height: 1.1;
  margin-bottom: 14px;
}
.isub {
  font-size: 13px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--g7);
  margin-bottom: 28px;
}
.mpls { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 28px; }
.mp {
  padding: 6px 11px;
  border: 1px solid var(--g2);
  font-size: 11px;
  color: var(--g5);
  display: flex;
  align-items: center;
  gap: 5px;
}
.mpd { width: 5px; height: 5px; background: var(--p); flex-shrink: 0; }
.wl { border-top: 1px solid var(--g2); margin-bottom: 28px; }
.wi {
  padding: 12px 0;
  border-bottom: 1px solid var(--g2);
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.win { font-size: 10px; color: var(--g5); min-width: 16px; padding-top: 2px; }
.wit { font-size: 12px; line-height: 1.5; color: var(--g7); }
.wit strong { font-weight: 500; color: var(--black); display: block; margin-bottom: 1px; }

/* ═══ BUTTONS ══════════════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 11px 22px;
  font-family: "DM Sans", sans-serif;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border-radius: 0;
  text-decoration: none;
  border: 1.5px solid var(--p);
  background: transparent;
  color: var(--p);
  transition: background .15s, color .15s, border-color .15s;
}
.btn:hover { background: var(--black); color: var(--white); border-color: var(--black); }
.btng {
  background: linear-gradient(135deg, var(--p), var(--s));
  color: var(--white);
  border-color: transparent;
}
.btng:hover { background: var(--black); border-color: var(--black); }
.btnlg { padding: 13px 32px; font-size: 14px; }
.btn[disabled] { opacity: .3; pointer-events: none; }
.bbk {
  background: none;
  border: none;
  color: var(--g5);
  font-size: 12px;
  cursor: pointer;
  padding: 5px 0;
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: "DM Sans", sans-serif;
  transition: color .15s;
}
.bbk:hover { color: var(--black); }

/* ═══ QUESTION CHROME ══════════════════════════════════════════════════════════ */
.qtop {
  padding: 12px 24px;
  border-bottom: 1px solid var(--g2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
.slbl {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--p);
}
.ssq { width: 5px; height: 5px; background: var(--p); }
.qct { font-size: 11px; color: var(--g5); }
.qbd {
  padding: 28px 24px 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.qnm {
  font-size: 50px;
  line-height: 1;
  letter-spacing: -.04em;
  color: var(--g2);
  margin-bottom: -2px;
}
.qtx {
  font-size: clamp(14px, 1.8vw, 20px);
  font-weight: 400;
  letter-spacing: -.02em;
  line-height: 1.3;
  margin: 10px 0px 6px;
}
.qhn { font-size: 11px; color: var(--g5); margin-bottom: 20px; }
.qnv {
  padding: 12px 24px;
  border-top: 1px solid var(--g2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
.sds { display: flex; gap: 5px; }
.sd { width: 22px; height: 3px; background: var(--g2); transition: background .3s; }
.sd.done { background: var(--p); }
.sd.cur  { background: var(--p); opacity: .4; }
.nr { display: flex; align-items: center; gap: 12px; }

/* ═══ TILE GRID ════════════════════════════════════════════════════════════════ */
.tls { display: grid; gap: 7px; width: 100%; }
.tls.c2 { grid-template-columns: repeat(2, 1fr); }
.tls.c4 { grid-template-columns: repeat(2, 1fr); }
.tls.c1 { grid-template-columns: 1fr; }
.tile {
  padding: 14px 15px;
  border: 1.5px solid var(--g2);
  cursor: pointer;
  background: var(--white);
  display: flex;
  align-items: center;
  gap: 10px;
  transition: border-color .12s, background .12s, color .12s;
  user-select: none;
}
.tile:hover { border-color: var(--p); background: rgba(76,27,188,.04); }
.tile.sel { border-color: transparent; color: white; background: linear-gradient(135deg, var(--p), var(--s)); }
.trb {
  width: 13px;
  height: 13px;
  border: 1.5px solid var(--g3);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tile.sel .trb { border-color: rgba(255,255,255,.4); }
.trd { width: 5px; height: 5px; background: white; opacity: 0; transition: opacity .12s; }
.tile.sel .trd { opacity: 1; }
.tlb { font-size: 12px; line-height: 1.35; }
.tile.sel .tlb { font-weight: 500; }

/* ═══ SLIDER ═══════════════════════════════════════════════════════════════════ */
.slw { width: 100%; }
.sle { display: flex; justify-content: space-between; font-size: 11px; color: var(--g5); margin-bottom: 13px; }
input[type=range] {
  width: 100%;
  height: 2px;
  -webkit-appearance: none;
  appearance: none;
  outline: none;
  cursor: pointer;
  border-radius: 0;
}
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 19px;
  height: 19px;
  background: var(--p);
  cursor: pointer;
  border-radius: 0;
  transition: background .15s;
}
input[type=range]::-moz-range-thumb {
  width: 19px;
  height: 19px;
  background: var(--p);
  cursor: pointer;
  border-radius: 0;
  border: none;
}
.slpp { display: flex; justify-content: center; gap: 6px; margin-top: 13px; }
.spp {
  width: 27px;
  height: 27px;
  border: 1.5px solid var(--g2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 500;
  transition: all .15s;
  cursor: pointer;
  color: var(--g7);
}
.spp.on { border-color: transparent; color: white; background: linear-gradient(135deg, var(--p), var(--s)); }

/* ═══ GATE FORM ════════════════════════════════════════════════════════════════ */
.gsc {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 32px;
}
.gh { font-size: 25px; font-weight: 400; letter-spacing: -.02em; margin-bottom: 6px; }
.gsb { font-size: 12px; color: var(--g7); line-height: 1.65; margin-bottom: 20px; }
.frw { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-bottom: 10px; }
.fg { margin-bottom: 10px; }
.flb {
  display: block;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--g7);
  margin-bottom: 6px;
}
.fin {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid var(--g2);
  border-radius: 0;
  font-family: "DM Sans", sans-serif;
  font-size: 13px;
  color: var(--black);
  background: var(--white);
  outline: none;
  transition: border-color .15s;
}
.fin:focus { border-color: var(--p); }
.gnt { font-size: 11px; color: var(--g5); margin-top: 10px; line-height: 1.5; }

/* ═══ RESULTS SCREEN ═══════════════════════════════════════════════════════════ */
.resscr { overflow-y: auto; }
.rhs {
  background: var(--black);
  color: var(--white);
  padding: 44px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.rey {
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
  margin-bottom: 20px;
}
.aw { position: relative; display: inline-block; margin-bottom: 16px; }
.aw svg { display: block; width: 130px; height: 130px; }
.at {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}
.an { font-size: 32px; line-height: 1; }
.al {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(255,255,255,.4);
  margin-top: 2px;
}
.sbg {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 15px;
  border: 1px solid rgba(255,255,255,.15);
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 12px;
}
.spip { width: 6px; height: 6px; }
.sds2 { font-size: 13px; color: rgba(255,255,255,.55); max-width: 380px; line-height: 1.65; }
.rb { max-width: 660px; margin: 0 auto; padding: 30px 24px 0; width: 100%; }
.rst {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--g5);
  margin-bottom: 14px;
}

/* ═══ AI BLOCK ═════════════════════════════════════════════════════════════════ */
.aiblock { margin-bottom: 30px; padding: 22px; border: 1.5px solid var(--g2); }
.aiload { display: flex; align-items: center; gap: 12px; padding: 4px 0; }
.aidots { display: flex; gap: 5px; }
.aidots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--p), var(--s));
  animation: db 1.2s ease infinite;
}
.aidots span:nth-child(2) { animation-delay: .15s; }
.aidots span:nth-child(3) { animation-delay: .3s; }
@keyframes db {
  0%, 80%, 100% { transform: scale(.6); opacity: .4; }
  40%            { transform: scale(1); opacity: 1; }
}
.ailoadt { font-size: 12px; color: var(--g5); }
.aisummary { font-size: 13px; line-height: 1.7; color: var(--g7); font-style: italic; margin-bottom: 18px; }
.aihelplbl {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--p);
  margin-bottom: 5px;
}
.aihelptext { font-size: 13px; line-height: 1.65; color: var(--g7); }

/* ═══ DIMENSION LIST ═══════════════════════════════════════════════════════════ */
.dl { border: 1px solid var(--g2); margin-bottom: 30px; }
.dr {
  padding: 14px 18px;
  border-bottom: 1px solid var(--g2);
  display: grid;
  grid-template-columns: 1fr 58px;
  gap: 12px;
  align-items: center;
}
.dr:last-child { border-bottom: none; }
.dnm { font-size: 11px; font-weight: 500; margin-bottom: 7px; }
.dtr { height: 3px; background: var(--g2); }
.dfl {
  height: 100%;
  background: linear-gradient(90deg, var(--p), var(--s));
  transition: width 1.4s var(--ease);
}
.dpc { font-size: 20px; font-weight: 400; text-align: right; }
.dst { font-size: 9px; color: var(--g5); text-transform: uppercase; letter-spacing: .05em; text-align: right; }

/* ═══ RECOMMENDATIONS ══════════════════════════════════════════════════════════ */
.rcl { display: flex; flex-direction: column; gap: 8px; margin-bottom: 30px; }
.rc { padding: 17px; border: 1.5px solid var(--g2); display: flex; gap: 14px; align-items: flex-start; }
.rcn { font-size: 25px; font-weight: 400; color: var(--g2); line-height: 1; flex-shrink: 0; min-width: 30px; }
.rct { font-size: 12px; font-weight: 500; margin-bottom: 3px; }
.rcd { font-size: 12px; color: var(--g7); line-height: 1.6; }

/* ═══ CTA BLOCK ════════════════════════════════════════════════════════════════ */
.ctab { background: var(--g1); border: 1px solid var(--g2); padding: 26px; text-align: center; margin-bottom: 0; }
.ctah { font-size: 18px; font-weight: 400; letter-spacing: -.02em; margin-bottom: 6px; }
.ctas {
  font-size: 12px;
  color: var(--g7);
  margin-bottom: 18px;
  line-height: 1.6;
  max-width: 340px;
  margin-left: auto;
  margin-right: auto;
}
.ctabtns { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }

/* ═══ CONFIGURATOR SPECIFIC ════════════════════════════════════════════════════ */
.prefill-note {
  font-size: 10px;
  color: var(--p);
  margin-bottom: 18px;
  padding: 8px 10px;
  background: rgba(76,27,188,.05);
  border-left: 2px solid var(--p);
  line-height: 1.5;
}
.pri-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 7px; width: 100%; margin-bottom: 12px; }
.pri-card {
  padding: 14px;
  border: 1.5px solid var(--g2);
  cursor: pointer;
  background: var(--white);
  transition: border-color .12s, background .12s, color .12s;
  user-select: none;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.pri-card:hover { border-color: var(--p); background: rgba(76,27,188,.04); }
.pri-card.sel { border-color: transparent; color: white; background: linear-gradient(135deg, var(--p), var(--s)); }
.pri-card.disabled { opacity: .35; pointer-events: none; }
.pri-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}
.pri-icon svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pri-label { font-size: 12px; line-height: 1.3; }
.pri-card.sel .pri-label { font-weight: 500; }
.pri-counter { font-size: 11px; color: var(--g5); margin-bottom: 8px; }
.pri-counter span { color: var(--p); font-weight: 500; }

/* ═══ BLUEPRINT ════════════════════════════════════════════════════════════════ */
.bp-hero { background: var(--black); color: var(--white); padding: 44px 32px; text-align: center; }
.bp-tag {
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
  margin-bottom: 16px;
}
.bp-title {
  font-size: clamp(20px, 3vw, 30px);
  font-weight: 400;
  letter-spacing: -.02em;
  margin-bottom: 14px;
  line-height: 1.2;
}
.bp-summary { font-size: 13px; color: rgba(255,255,255,.6); max-width: 520px; margin: 0 auto; line-height: 1.7; font-style: italic; }
.bp-body { max-width: 680px; margin: 0 auto; padding: 30px 24px 0; width: 100%; }
.bp-stitle {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--g5);
  margin-bottom: 14px;
}
.mod-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 8px; margin-bottom: 30px; }
.mod-card { padding: 16px; border: 1.5px solid var(--g2); }
.mod-name { font-size: 12px; font-weight: 500; margin-bottom: 4px; color: var(--p); }
.mod-rationale { font-size: 11px; color: var(--g7); line-height: 1.5; }
.out-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 30px; }
.out-item { padding: 14px 16px; border: 1.5px solid var(--g2); display: flex; gap: 14px; align-items: flex-start; }
.out-pri { font-size: 10px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--p); min-width: 120px; padding-top: 2px; flex-shrink: 0; }
.out-text { font-size: 12px; color: var(--g7); line-height: 1.5; }
.phase-list { display: flex; flex-direction: column; margin-bottom: 30px; border: 1px solid var(--g2); }
.phase-item { padding: 16px 18px; border-bottom: 1px solid var(--g2); display: flex; gap: 16px; align-items: flex-start; }
.phase-item:last-child { border-bottom: none; }
.phase-num {
  font-size: 10px;
  font-weight: 500;
  color: var(--white);
  background: linear-gradient(135deg, var(--p), var(--s));
  padding: 3px 8px;
  flex-shrink: 0;
  line-height: 1.4;
  margin-top: 2px;
  white-space: nowrap;
}
.phase-title { font-size: 12px; font-weight: 500; margin-bottom: 3px; }
.phase-desc { font-size: 12px; color: var(--g7); line-height: 1.55; }
.int-note {
  padding: 14px 16px;
  background: rgba(76,27,188,.04);
  border: 1px solid rgba(76,27,188,.12);
  font-size: 12px;
  color: var(--g7);
  line-height: 1.55;
  margin-bottom: 30px;
}

/* ═══ ANIMATION ════════════════════════════════════════════════════════════════ */
@keyframes fuv {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.anim { animation: fuv .28s var(--ease) forwards; }

/* ═══ RESPONSIVE ═══════════════════════════════════════════════════════════════ */
@media (max-width: 760px) {
  html, body { overflow: auto; }
  .app { position: relative; top: auto; bottom: auto; height: auto; flex-direction: column; }
  .lp { flex: none; border-right: none; border-bottom: 1px solid var(--g2); }
  .lpscr { overflow-y: visible; }
  .rp { flex: none; height: 340px; }
  .tls.c2, .tls.c4, .pri-grid, .mod-grid { grid-template-columns: 1fr; }
  .iw, .gsc, .bp-hero { padding: 26px 18px; }
  .qbd { padding: 20px 16px 10px; }
  .qtop, .qnv { padding: 11px 16px; }
  .frw { grid-template-columns: 1fr; }
  .rb, .bp-body { padding: 24px 16px 0; }
  .rhs { padding: 30px 18px; }
}
@media (min-width: 1100px) {
  .tls.c4 { grid-template-columns: repeat(4, 1fr); }
}
