:root {
  /* Design System BCWI */
  --font-display: "Sansation", sans-serif;
  --font-body: "Montserrat", sans-serif;

  --orange: #ee4d1a;
  --salmon: #ff845d;
  --light-salmon: #fff6f4;
  --mid-salmon: #ffe8e1;
  --petroleum: #29282d;
  --gold-petroleum: #282624;
  --silver: #e8eaf2;
  --steel: #4a4a4a;
  --aluminum: #a2a2a2;
  --white: #ffffff;
  --dark-petroleum: #212224;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --space-10: 128px;

  --bc-corner-x: 20px;
  --bc-corner-y: 40px;
  --mini-bc-corner-x: 10px;
  --mini-bc-corner-y: 20px;

  /* Aliases legados do protótipo para preservar as cenas existentes. */
  --bg: #fffdfb;
  --surface: var(--white);
  --surface-soft: var(--light-salmon);
  --surface-warm: var(--mid-salmon);
  --ink: #26211f;
  --muted: #756e6a;
  --line: #e7d8d0;
  --line-strong: #d5b8aa;
  --orange-dark: var(--orange);
  --orange-soft: var(--mid-salmon);
  --shadow: 0 18px 60px rgba(83, 45, 26, .08);
  --radius: 0;
  --max: 1440px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}
button, input, textarea, select { font: inherit; }
button { color: inherit; }
a { color: inherit; }
[hidden] { display: none !important; }

.skip-link {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 200;
  padding: 10px 14px;
  background: var(--ink);
  color: white;
  transform: translateY(-160%);
}
.skip-link:focus { transform: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 0 max(28px, calc((100vw - var(--max)) / 2));
  border-bottom: 1px solid rgba(214, 181, 165, .65);
  background: rgba(255, 253, 251, .92);
  backdrop-filter: blur(18px);
}
.is-embedded .site-header { display: none; }
.is-embedded .configurator { min-height: 100dvh; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
  font-weight: 700;
}
.brand-mark {
  display: inline-flex;
  height: 40px;
  align-items: stretch;
}
.brand-mark strong {
  display: grid;
  place-items: center;
  padding: 0 11px;
  background: var(--orange);
  color: white;
  font-size: 18px;
}
.brand-mark i {
  width: 13px;
  background: #f5d7cb;
  clip-path: polygon(0 0, 45% 0, 100% 100%, 0 100%);
}
.brand-name { font-size: 17px; }
.site-nav { display: flex; align-items: center; gap: 28px; font-size: 14px; }
.site-nav a { text-decoration: none; color: #4f4844; }
.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.theme-toggle:hover { border-color: var(--orange); color: var(--orange); }
.theme-toggle-icon { font-size: 17px; line-height: 1; }

.story-scene {
  min-height: calc(100svh - 86px);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid #f1e5df;
  background: var(--bg);
}
.scene-inner {
  position: relative;
  width: min(var(--max), calc(100% - 64px));
  min-height: calc(100svh - 86px);
  margin: 0 auto;
}

.hero-inner { padding: clamp(60px, 9vh, 112px) 0 60px; }
.hero-copy { max-width: 1050px; }
.hero-copy h1 {
  margin: 0;
  color: var(--orange);
  font-size: clamp(44px, 5.4vw, 82px);
  line-height: 1.05;
  letter-spacing: -.045em;
  font-weight: 330;
}
.hero-copy h1 span,
.hero-copy h1 strong { display: block; }
.hero-copy h1 strong { font-weight: 770; }
.scroll-hint {
  position: absolute;
  right: 10%;
  top: 16%;
  width: 46px;
  height: 66px;
  border: 0;
  border-radius: 999px;
  background: var(--orange-soft);
  color: var(--orange);
  font-size: 28px;
  cursor: pointer;
  animation: floatHint 1.7s ease-in-out infinite;
}
@keyframes floatHint { 50% { transform: translateY(8px); } }

.conveyor-main {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 7vh;
  height: 310px;
}
.rollers {
  position: absolute;
  left: 0;
  right: 0;
  top: 95px;
  height: 145px;
  opacity: .62;
  background:
    radial-gradient(ellipse at center, transparent 62%, var(--line-strong) 64%, var(--line-strong) 66%, transparent 68%) 0 103px / 55px 35px repeat-x,
    repeating-linear-gradient(90deg, transparent 0 4px, var(--line-strong) 5px 6px, transparent 7px 55px);
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid rgba(213,184,170,.55);
}
.sensor-row {
  position: absolute;
  left: 5%;
  right: 4%;
  top: 34px;
  display: flex;
  justify-content: space-between;
}
.sensor-row i {
  width: 17px;
  height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
}
.wire-package,
.mini-conveyor .moving-packages span {
  position: absolute;
  width: 175px;
  height: 155px;
  border: 1px solid rgba(243,74,23,.52);
  background: rgba(255,255,255,.05);
  box-shadow: inset -10px -10px 0 rgba(255,231,222,.2);
}
.wire-package::after,
.mini-conveyor .moving-packages span::after {
  content: "";
  position: absolute;
  left: 8px;
  right: -8px;
  bottom: -12px;
  height: 12px;
  border: 1px solid rgba(243,74,23,.4);
  border-top: 0;
  transform: skewX(38deg);
}
.moving-packages { position: absolute; inset: 0; }
.p1 { left: 15%; top: 77px; }
.p2 { left: 35%; top: 70px; transform: rotate(.7deg); }
.p3 { left: 55%; top: 80px; }
.p4 { left: 76%; top: 82px; transform: rotate(.5deg); }
.technical-plane {
  position: absolute;
  right: -12vw;
  top: 12px;
  width: 42vw;
  height: 280px;
  background: rgba(243,74,23,.045);
  transform: skewX(18deg);
}

.difference-scene .scene-inner { padding-top: 30px; }
.conveyor-stack { position: absolute; inset: 0; opacity: .76; }
.mini-conveyor { position: absolute; left: 8%; right: 2%; height: 230px; }
.mini-conveyor.row-a { top: 2%; }
.mini-conveyor.row-b { top: 34%; }
.mini-conveyor.row-c { top: 66%; }
.mini-conveyor .rollers { top: 80px; height: 125px; }
.mini-conveyor .moving-packages span { width: 165px; height: 145px; top: 65px; }
.mini-conveyor .moving-packages span:nth-child(1) { left: 20%; }
.mini-conveyor .moving-packages span:nth-child(2) { left: 42%; }
.mini-conveyor .moving-packages span:nth-child(3) { left: 64%; }
.mini-conveyor .moving-packages span:nth-child(4) { left: 86%; }
.statement-card {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: min(930px, 76%);
  padding: 40px 44px;
  background: rgba(255, 246, 241, .91);
  border-left: 3px solid rgba(243,74,23,.18);
}
.statement-card h2 {
  margin: 0;
  color: var(--orange);
  font-size: clamp(38px, 4.2vw, 68px);
  line-height: 1.07;
  letter-spacing: -.04em;
  font-weight: 340;
}
.statement-card strong { font-weight: 780; }

.pitch-inner { display: grid; place-items: center; }
.monitor-wire {
  position: relative;
  width: min(940px, 78vw);
  height: min(580px, 58vw);
  color: var(--orange);
}
.monitor-screen {
  position: absolute;
  inset: 0 0 16% 0;
  display: grid;
  align-items: center;
  padding: 7% 9%;
  border: 2px solid rgba(243,74,23,.68);
  transform: perspective(1100px) rotateY(-2deg) skewY(.5deg);
}
.monitor-screen::after {
  content: "";
  position: absolute;
  right: -24px;
  top: 8px;
  bottom: -10px;
  width: 22px;
  border: 1px solid rgba(243,74,23,.6);
  border-left: 0;
  transform: skewY(23deg);
}
.monitor-screen p {
  margin: 0;
  max-width: 720px;
  font-size: clamp(30px, 3.35vw, 58px);
  line-height: 1.1;
  font-weight: 340;
  letter-spacing: -.035em;
}
.monitor-screen strong { display: block; margin-top: 10px; font-weight: 760; }
.monitor-neck {
  position: absolute;
  left: 46%;
  bottom: 6%;
  width: 9%;
  height: 15%;
  border: 2px solid rgba(243,74,23,.62);
  border-top: 0;
}
.monitor-base {
  position: absolute;
  left: 36%;
  bottom: 0;
  width: 30%;
  height: 8%;
  border: 2px solid rgba(243,74,23,.62);
  transform: perspective(500px) rotateX(64deg);
}
.scene-next {
  position: absolute;
  right: 0;
  bottom: 42px;
  border: 0;
  background: transparent;
  color: var(--orange-dark);
  cursor: pointer;
  font-size: 13px;
}
.scene-next span { margin-left: 8px; font-size: 20px; }
.auto-advance {
  position: absolute;
  left: 0;
  bottom: 38px;
  display: flex;
  gap: 5px;
  align-items: baseline;
  color: #9b8b82;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .1em;
}
.auto-advance strong { color: var(--orange); font-size: 14px; }

.choice-inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 980px;
}
.eyebrow,
.panel-kicker {
  margin: 0 0 14px;
  color: var(--orange);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .15em;
}
.config-head h2 {
  margin: 0;
  font-size: clamp(40px, 5vw, 74px);
  line-height: 1.04;
  letter-spacing: -.045em;
}
.choice-actions { display: flex; gap: 12px; margin-top: 34px; flex-wrap: wrap; }
.choice-note { max-width: 650px; color: var(--muted); margin-top: 18px; }

.primary-button,
.secondary-button,
.mini-button {
  min-height: 48px;
  border-radius: 6px;
  padding: 0 18px;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.primary-button {
  border: 1px solid var(--orange);
  background: var(--orange);
  color: white;
  font-weight: 750;
  box-shadow: 0 12px 26px rgba(243,74,23,.16);
}
.primary-button:hover { transform: translateY(-2px); box-shadow: 0 16px 30px rgba(243,74,23,.22); }
.secondary-button {
  border: 1px solid var(--line-strong);
  background: white;
  color: #473d38;
  font-weight: 650;
}
.secondary-button:hover { border-color: var(--orange); color: var(--orange-dark); }
.secondary-button:disabled { opacity: .42; cursor: default; }
.mini-button { min-height: 36px; border: 1px solid var(--line); background: white; color: var(--orange-dark); }
.full { width: 100%; }
.text-button { border: 0; background: transparent; color: var(--orange-dark); cursor: pointer; padding: 0; }
.text-button.small { font-size: 12px; }

.configurator {
  width: min(var(--max), calc(100% - 64px));
  margin: 0 auto;
  padding: 110px 0 90px;
  min-height: 100svh;
}
.config-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 56px;
}
.config-head h2 { font-size: clamp(48px, 6vw, 84px); }
.progress-wrap { width: 210px; color: var(--muted); font-size: 12px; text-align: right; }
.progress-track { height: 4px; background: #f0e7e2; margin-top: 14px; overflow: hidden; border-radius: 999px; }
.progress-track i { display: block; width: 25%; height: 100%; background: var(--orange); transition: width .3s ease; }

.form-step { min-height: 610px; }
.step-copy { display: flex; gap: 20px; align-items: flex-start; margin-bottom: 32px; }
.step-index {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--orange);
  font-size: 12px;
  font-weight: 800;
}
.step-copy h3 { margin: 0 0 6px; font-size: clamp(28px, 3vw, 44px); letter-spacing: -.025em; }
.step-copy p { margin: 0; color: var(--muted); }

.builder-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(320px, .85fr); gap: 22px; }
.option-pool { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.draggable-card {
  position: relative;
  min-height: 185px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 5px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
  text-align: left;
  cursor: grab;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.draggable-card::after {
  content: "";
  position: absolute;
  right: -26px;
  bottom: -26px;
  width: 58px;
  height: 58px;
  border: 1px solid rgba(243,74,23,.45);
  transform: rotate(45deg);
}
.draggable-card:hover { border-color: rgba(243,74,23,.58); transform: translateY(-2px); box-shadow: var(--shadow); }
.draggable-card.is-selected { border-color: var(--orange); background: var(--surface-soft); }
.draggable-card.dragging { opacity: .46; }
.card-code { position: absolute; left: 22px; top: 20px; color: var(--orange); font: 800 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .1em; }
.draggable-card > strong { font-size: 18px; }
.draggable-card > small { color: var(--muted); font-size: 13px; }

.card-visual {
  position: absolute;
  right: 24px;
  top: 20px;
  width: 150px;
  height: 58px;
  border: 1px solid rgba(243,74,23,.18);
  background: rgba(255,246,241,.42);
  overflow: hidden;
}
.visual-site-new i { position: absolute; left: 15px; right: 15px; height: 6px; border: 1px solid rgba(243,74,23,.5); transform: scaleX(.2); transform-origin: left; }
.visual-site-new i:nth-child(1) { top: 12px; }
.visual-site-new i:nth-child(2) { top: 26px; right: 48px; }
.visual-site-new i:nth-child(3) { top: 40px; right: 72px; }
.draggable-card:hover .visual-site-new i { animation: buildLines .8s ease forwards; }
.draggable-card:hover .visual-site-new i:nth-child(2) { animation-delay: .08s; }
.draggable-card:hover .visual-site-new i:nth-child(3) { animation-delay: .16s; }
@keyframes buildLines { to { transform: scaleX(1); } }

.visual-redesign .old,
.visual-redesign .new { position: absolute; top: 13px; width: 39px; height: 30px; border: 1px solid rgba(243,74,23,.56); }
.visual-redesign .old { left: 12px; border-radius: 5px; }
.visual-redesign .new { right: 12px; border-radius: 2px; }
.visual-redesign b { position: absolute; left: 61px; top: 27px; width: 28px; height: 1px; background: rgba(243,74,23,.7); }
.visual-redesign b::after { content: ""; position: absolute; right: -1px; top: -3px; width: 7px; height: 7px; border-top: 1px solid var(--orange); border-right: 1px solid var(--orange); transform: rotate(45deg); }
.draggable-card:hover .visual-redesign .old { animation: oldMove .9s ease both; }
.draggable-card:hover .visual-redesign .new { animation: newMove .9s ease both; }
@keyframes oldMove { 50% { transform: translateX(22px) scale(.82); opacity: .35; } }
@keyframes newMove { 50% { transform: translateX(-16px) scale(1.08); } }

.visual-brand-new i { position: absolute; width: 16px; height: 16px; border: 1px solid var(--orange); }
.visual-brand-new i:nth-child(1) { left: 22px; top: 12px; border-radius: 50%; }
.visual-brand-new i:nth-child(2) { left: 48px; top: 31px; transform: rotate(45deg); }
.visual-brand-new i:nth-child(3) { left: 84px; top: 13px; border-radius: 50%; }
.visual-brand-new b { position: absolute; right: 18px; top: 15px; width: 28px; height: 28px; background: var(--orange); opacity: .15; transform: rotate(45deg); }
.draggable-card:hover .visual-brand-new i { animation: converge .9s ease both; }
@keyframes converge { 55% { transform: translate(36px, 8px) rotate(45deg) scale(.7); opacity: .35; } }
.visual-rebrand .before,
.visual-rebrand .after { position: absolute; top: 14px; width: 31px; height: 31px; border: 1px solid var(--orange); }
.visual-rebrand .before { left: 22px; border-radius: 8px; transform: rotate(10deg); }
.visual-rebrand .after { right: 22px; transform: rotate(45deg); }
.visual-rebrand b { position: absolute; left: 69px; top: 17px; color: var(--orange); font-size: 22px; font-weight: 400; }
.draggable-card:hover .visual-rebrand .after { animation: refineMark .8s ease both; }
@keyframes refineMark { 50% { transform: rotate(135deg) scale(.72); } }

.drop-zone {
  min-height: 384px;
  padding: 20px;
  border: 1px dashed rgba(243,74,23,.7);
  border-radius: 16px;
  background: var(--surface-soft);
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: background .2s ease, transform .2s ease, border-color .2s ease;
}
.drop-zone.is-over { background: var(--orange-soft); border-color: var(--orange); transform: scale(1.01); }
.drop-empty { text-align: center; color: var(--muted); }
.drop-empty strong { display: block; margin-top: 8px; color: var(--ink); font-size: 12px; letter-spacing: .12em; }
.drop-empty span { font-size: 12px; }
.drop-icon { width: 48px; height: 48px; margin: 0 auto; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--orange); font-size: 26px; }
.selected-chips { display: grid; gap: 10px; }
.selected-chip { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 14px; background: white; border: 1px solid var(--line); border-left: 3px solid var(--orange); border-radius: 8px; }
.selected-chip span { font-weight: 700; }
.selected-chip button { border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 18px; }
.context-message { margin-top: 16px; padding: 18px 20px; border-left: 3px solid var(--orange); background: var(--surface-soft); color: #5f554f; }

input, textarea, select { width: 100%; border: 1px solid var(--line-strong); border-radius: 6px; background: white; padding: 13px 14px; color: var(--ink); outline: none; }
input:focus, textarea:focus, select:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(243,74,23,.1); }

.choice-fieldset { border: 0; margin: 0 0 32px; padding: 0; }
.choice-fieldset legend { font-size: 18px; font-weight: 780; margin-bottom: 14px; }
.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.choice-card input { position: absolute; opacity: 0; pointer-events: none; }
.choice-card span { display: grid; gap: 3px; min-height: 100px; padding: 18px; border: 1px solid var(--line); border-radius: 10px; background: white; cursor: pointer; }
.choice-card small { color: var(--muted); }
.choice-card input:checked + span { border-color: var(--orange); background: var(--surface-soft); box-shadow: inset 4px 0 0 var(--orange); }
.compact-options { display: flex; flex-wrap: wrap; gap: 9px; }
.compact-options button { border: 1px solid var(--line); border-radius: 999px; background: white; padding: 10px 14px; cursor: pointer; }
.compact-options button.is-selected { border-color: var(--orange); color: var(--orange-dark); background: var(--orange-soft); }
.product-question { margin-top: 20px; max-width: 620px; padding: 18px; border-left: 3px solid var(--orange); background: var(--surface-soft); }
.product-question label { display: block; font-weight: 750; margin-bottom: 8px; }

.feature-section { padding: 22px 0 28px; border-top: 1px solid var(--line); }
.feature-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.feature-heading h4 { margin: 0; font-size: 24px; }
.feature-heading > span { color: var(--muted); font-size: 12px; }
.feature-pool { grid-template-columns: repeat(4,minmax(0,1fr)); }
.draggable-card.compact { min-height: 130px; padding: 18px; }
.draggable-card.compact .card-code, .draggable-card.compact .card-visual { display: none; }
.drop-zone.horizontal { min-height: 115px; margin-top: 14px; justify-content: center; }
.drop-zone.horizontal .selected-chips { grid-template-columns: repeat(3,minmax(0,1fr)); }
.visual-section { margin-top: 10px; }
.compact-options.large button { border-radius: 8px; padding: 14px 16px; }

.summary-layout { display: grid; grid-template-columns: 1.2fr .8fr; gap: 18px; }
.project-summary, .contact-panel { padding: 26px; border: 1px solid var(--line); border-radius: 14px; background: white; }
.summary-top { display: flex; justify-content: space-between; gap: 20px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.summary-top h4 { margin: 0; font-size: 28px; }
.summary-id { color: var(--muted); font-size: 10px; font-family: ui-monospace, monospace; }
.summary-section { padding: 18px 0; border-bottom: 1px solid #f1e9e5; }
.summary-section h5 { margin: 0 0 8px; font-size: 12px; text-transform: uppercase; color: var(--orange); letter-spacing: .12em; }
.summary-section ul { margin: 0; padding-left: 18px; }
.summary-empty { color: var(--muted); margin: 0; }
.contact-panel h4 { margin: 0 0 16px; font-size: 26px; }
.contact-panel label { display: grid; gap: 6px; margin-bottom: 12px; font-size: 13px; font-weight: 700; }
.contact-panel .secondary-button { margin-top: 8px; }
.form-navigation { display: flex; justify-content: space-between; gap: 12px; margin-top: 32px; padding-top: 22px; border-top: 1px solid var(--line); }

.toast {
  position: fixed;
  z-index: 140;
  right: 22px;
  bottom: 22px;
  max-width: 420px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--orange);
  background: white;
  box-shadow: var(--shadow);
  transform: translateY(30px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.toast.is-visible { transform: none; opacity: 1; }
dialog { width: min(620px, calc(100% - 32px)); border: 1px solid var(--line); border-radius: 16px; padding: 32px; background: white; color: var(--ink); box-shadow: 0 30px 90px rgba(65,40,28,.18); }
dialog::backdrop { background: rgba(82,58,46,.18); backdrop-filter: blur(4px); }
.dialog-mark { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; background: var(--orange-soft); color: var(--orange); font-size: 26px; }
dialog h2 { font-size: 34px; line-height: 1.1; }
.dialog-actions { display: flex; gap: 10px; margin-top: 22px; }

@media (max-width: 1000px) {
  .builder-layout, .summary-layout { grid-template-columns: 1fr; }
  .drop-zone { min-height: 180px; }
  .feature-pool { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .drop-zone.horizontal .selected-chips { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 720px) {
  .site-header { height: 72px; padding: 0 18px; }
  .brand-name { display: none; }
  .site-nav { gap: 14px; }
  .site-nav a { display: none; }
  .configurator { width: min(100% - 32px, var(--max)); }
  .config-head { align-items: flex-start; flex-direction: column; }
  .progress-wrap { width: 100%; text-align: left; }
  .option-pool, .choice-grid, .feature-pool { grid-template-columns: 1fr; }
  .draggable-card { min-height: 160px; }
  .card-visual { width: 125px; }
  .feature-heading { align-items: flex-start; flex-direction: column; }
  .drop-zone.horizontal .selected-chips { grid-template-columns: 1fr; }
}

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

/* =========================================================
   BCWI DESIGN SYSTEM — CONFIGURADOR DE PROJETOS
   Mantém a lógica/UX do protótipo e substitui apenas a UI.
   ========================================================= */

.canto-bc {
  clip-path: polygon(
    0 0,
    calc(100% - var(--bc-corner-x)) 0,
    100% var(--bc-corner-y),
    100% 100%,
    0 100%
  );
}

.mini-canto-bc {
  clip-path: polygon(
    0 0,
    calc(100% - var(--mini-bc-corner-x)) 0,
    100% var(--mini-bc-corner-y),
    100% 100%,
    0 100%
  );
}

.configurator {
  --config-bg: var(--white);
  --config-surface: var(--light-salmon);
  --config-surface-strong: var(--mid-salmon);
  --config-surface-neutral: var(--silver);
  --config-text: var(--steel);
  --config-muted: var(--aluminum);
  --config-accent: var(--orange);
  --config-line: color-mix(in srgb, var(--steel) 18%, transparent);

  width: min(var(--max), calc(100% - var(--space-8)));
  margin: 0 auto;
  padding: var(--space-9) 0 var(--space-9);
  min-height: 100svh;
  color: var(--config-text);
  font-family: var(--font-body);
}

body[data-theme="dark"] .configurator {
  --config-bg: var(--dark-petroleum);
  --config-surface: var(--petroleum);
  --config-surface-strong: var(--gold-petroleum);
  --config-surface-neutral: color-mix(in srgb, var(--petroleum) 78%, var(--silver));
  --config-text: var(--aluminum);
  --config-muted: var(--aluminum);
  --config-accent: var(--salmon);
  --config-line: color-mix(in srgb, var(--aluminum) 20%, transparent);
}

.configurator h2,
.configurator h3,
.configurator h4,
.configurator h5,
.configurator legend,
.configurator .step-index,
.configurator .panel-kicker,
.configurator .eyebrow,
.configurator .card-code,
.configurator .drop-empty strong,
.configurator button {
  font-family: var(--font-display);
}

.configurator .config-head {
  align-items: flex-end;
  gap: var(--space-7);
  margin-bottom: var(--space-7);
}

.configurator .config-head h2 {
  margin: 0;
  color: var(--config-accent);
  font-size: clamp(30px, 3vw, 36px);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -.02em;
}

.configurator .config-head h2 strong,
.configurator .config-head h2 span {
  font-weight: 700;
}

.configurator .eyebrow,
.configurator .panel-kicker {
  margin: 0 0 var(--space-3);
  color: var(--config-accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
}

.configurator .progress-wrap {
  width: 240px;
  color: var(--config-muted);
  font-size: 12px;
  text-align: right;
}

.configurator .progress-track {
  height: 4px;
  margin-top: var(--space-3);
  overflow: hidden;
  border-radius: 0;
  background: var(--config-surface-neutral);
}

.configurator .progress-track i {
  display: block;
  width: 25%;
  height: 100%;
  background: var(--config-accent);
}

.configurator .form-step {
  min-height: 610px;
  padding: var(--space-7);
  background: var(--config-surface);
  clip-path: polygon(
    0 0,
    calc(100% - var(--bc-corner-x)) 0,
    100% var(--bc-corner-y),
    100% 100%,
    0 100%
  );
}

.configurator .step-copy {
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.configurator .step-index {
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 0;
  color: var(--config-accent);
  background: var(--config-surface-strong);
  font-size: 13px;
  font-weight: 700;
  clip-path: polygon(
    0 0,
    calc(100% - var(--mini-bc-corner-x)) 0,
    100% var(--mini-bc-corner-y),
    100% 100%,
    0 100%
  );
}

.configurator .step-copy h3 {
  margin: 0 0 var(--space-2);
  color: var(--config-accent);
  font-size: clamp(24px, 2vw, 28px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.015em;
}

.configurator .step-copy p {
  margin: 0;
  max-width: 900px;
  color: var(--config-text);
  font-size: clamp(16px, 1.25vw, 18px);
  line-height: 1.65;
}

.configurator .builder-layout {
  grid-template-columns: minmax(0, 2fr) minmax(320px, .9fr);
  gap: var(--space-5);
}

.configurator .option-pool {
  gap: var(--space-4);
}

.configurator .draggable-card {
  min-height: 185px;
  gap: var(--space-2);
  padding: var(--space-5);
  border: 0;
  border-radius: 0;
  background: var(--config-bg);
  color: var(--config-text);
  box-shadow: none;
  clip-path: polygon(
    0 0,
    calc(100% - var(--bc-corner-x)) 0,
    100% var(--bc-corner-y),
    100% 100%,
    0 100%
  );
  transition:
    transform .2s ease,
    background-color .2s ease,
    color .2s ease,
    box-shadow .2s ease;
}

.configurator .draggable-card::after {
  display: none;
}

.configurator .draggable-card:hover {
  border-color: transparent;
  background: color-mix(in srgb, var(--config-surface-strong) 72%, var(--config-bg));
  box-shadow: none;
  transform: translateY(-2px);
}

.configurator .draggable-card:focus-visible {
  outline: 0;
  box-shadow: inset 0 0 0 2px var(--config-accent);
}

.configurator .draggable-card.is-selected {
  border-color: transparent;
  background: var(--config-surface-strong);
  box-shadow: inset 4px 0 0 var(--config-accent);
}

.configurator .draggable-card.dragging {
  opacity: .46;
}

.configurator .card-code {
  left: var(--space-5);
  top: var(--space-5);
  color: var(--config-accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
}

.configurator .draggable-card > strong {
  color: var(--config-text);
  font-size: 18px;
  font-weight: 600;
}

.configurator .draggable-card > small {
  color: var(--config-muted);
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.45;
}

.configurator .card-visual {
  right: var(--space-5);
  top: var(--space-5);
  border: 0;
  border-radius: 0;
  background: var(--config-surface);
  clip-path: polygon(
    0 0,
    calc(100% - var(--mini-bc-corner-x)) 0,
    100% var(--mini-bc-corner-y),
    100% 100%,
    0 100%
  );
}

.configurator .visual-redesign .old,
.configurator .visual-redesign .new,
.configurator .visual-rebrand .before,
.configurator .visual-rebrand .after {
  border-radius: 0;
}

.configurator .drop-zone {
  min-height: 384px;
  padding: var(--space-5);
  border: 1px dashed color-mix(in srgb, var(--config-accent) 70%, transparent);
  border-radius: 0;
  background: var(--config-bg);
  clip-path: polygon(
    0 0,
    calc(100% - var(--bc-corner-x)) 0,
    100% var(--bc-corner-y),
    100% 100%,
    0 100%
  );
}

.configurator .drop-zone.is-over {
  border-color: var(--config-accent);
  background: var(--config-surface-strong);
  transform: scale(1.01);
}

.configurator .drop-empty {
  color: var(--config-muted);
}

.configurator .drop-empty strong {
  margin-top: var(--space-2);
  color: var(--config-text);
  font-size: 12px;
  font-weight: 700;
}

.configurator .drop-icon {
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 0;
  color: var(--config-accent);
  background: var(--config-surface);
  clip-path: polygon(
    0 0,
    calc(100% - var(--mini-bc-corner-x)) 0,
    100% var(--mini-bc-corner-y),
    100% 100%,
    0 100%
  );
}

.configurator .selected-chips {
  gap: var(--space-3);
}

.configurator .selected-chip {
  gap: var(--space-3);
  padding: 13px var(--space-4);
  border: 0;
  border-radius: 0;
  background: var(--config-surface);
  box-shadow: inset 3px 0 0 var(--config-accent);
  clip-path: polygon(
    0 0,
    calc(100% - var(--mini-bc-corner-x)) 0,
    100% var(--mini-bc-corner-y),
    100% 100%,
    0 100%
  );
}

.configurator .selected-chip span {
  color: var(--config-text);
  font-weight: 600;
}

.configurator .selected-chip button {
  color: var(--config-muted);
}

.configurator .context-message {
  margin-top: var(--space-4);
  padding: var(--space-5);
  border: 0;
  color: var(--config-text);
  background: var(--config-surface-strong);
  clip-path: polygon(
    0 0,
    calc(100% - var(--mini-bc-corner-x)) 0,
    100% var(--mini-bc-corner-y),
    100% 100%,
    0 100%
  );
}

.configurator input,
.configurator textarea,
.configurator select {
  border: 0;
  border-radius: 0;
  color: var(--steel);
  background: var(--silver);
  padding: 13px var(--space-4);
}

.configurator input::placeholder,
.configurator textarea::placeholder {
  color: color-mix(in srgb, var(--steel) 66%, transparent);
  opacity: 1;
}

.configurator input:focus,
.configurator textarea:focus,
.configurator select:focus {
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--config-accent) 14%, transparent);
}

.configurator .form-honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.configurator .contact-panel .field-hint {
  display: block;
  margin-top: var(--space-2);
  color: var(--steel);
  font-size: 12px;
  font-weight: 400;
}

.configurator .choice-fieldset {
  margin-bottom: var(--space-6);
}

.configurator .choice-fieldset legend {
  margin-bottom: var(--space-4);
  color: var(--config-text);
  font-size: 18px;
  font-weight: 600;
}

.configurator .choice-grid {
  gap: var(--space-3);
}

.configurator .choice-card span {
  min-height: 100px;
  gap: var(--space-1);
  padding: var(--space-5);
  border: 0;
  border-radius: 0;
  color: var(--config-text);
  background: var(--config-bg);
  clip-path: polygon(
    0 0,
    calc(100% - var(--mini-bc-corner-x)) 0,
    100% var(--mini-bc-corner-y),
    100% 100%,
    0 100%
  );
}

.configurator .choice-card small {
  color: var(--config-muted);
}

.configurator .choice-card input:checked + span {
  border-color: transparent;
  background: var(--config-surface-strong);
  box-shadow: inset 4px 0 0 var(--config-accent);
}

.configurator .compact-options {
  gap: var(--space-2);
}

.configurator .compact-options button {
  border: 0;
  border-radius: 0;
  background: var(--config-bg);
  padding: 10px var(--space-4);
  color: var(--config-text);
  clip-path: polygon(
    0 0,
    calc(100% - var(--mini-bc-corner-x)) 0,
    100% var(--mini-bc-corner-y),
    100% 100%,
    0 100%
  );
}

.configurator .compact-options button:hover,
.configurator .compact-options button:focus-visible {
  color: var(--config-accent);
  background: var(--config-surface-strong);
  outline: 0;
}

.configurator .compact-options button.is-selected {
  border-color: transparent;
  color: var(--config-accent);
  background: var(--config-surface-strong);
  box-shadow: inset 3px 0 0 var(--config-accent);
}

.configurator .product-question {
  margin-top: var(--space-5);
  max-width: 620px;
  padding: var(--space-5);
  border: 0;
  color: var(--config-text);
  background: var(--config-surface-strong);
  clip-path: polygon(
    0 0,
    calc(100% - var(--mini-bc-corner-x)) 0,
    100% var(--mini-bc-corner-y),
    100% 100%,
    0 100%
  );
}

.configurator .feature-section {
  padding: var(--space-5) 0 var(--space-6);
  border-top: 0;
}

.configurator .feature-section + .feature-section {
  margin-top: var(--space-6);
  padding-top: var(--space-6);
  border-top: 1px solid var(--config-line);
}

.configurator .feature-heading {
  gap: var(--space-5);
  margin-bottom: var(--space-4);
}

.configurator .feature-heading h4,
.configurator .summary-top h4,
.configurator .contact-panel h4 {
  margin: 0;
  color: var(--config-text);
  font-size: clamp(24px, 2vw, 28px);
  font-weight: 600;
  line-height: 1.2;
}

.configurator .feature-heading > span {
  color: var(--config-muted);
}

.configurator .draggable-card.compact {
  min-height: 130px;
  padding: var(--space-5);
}

.configurator .drop-zone.horizontal {
  min-height: 115px;
  margin-top: var(--space-4);
}

.configurator .compact-options.large button {
  border-radius: 0;
  padding: 14px var(--space-4);
}

.configurator .summary-layout {
  gap: var(--space-5);
}

.configurator .project-summary,
.configurator .contact-panel {
  padding: var(--space-6);
  border: 0;
  border-radius: 0;
  background: var(--config-bg);
  clip-path: polygon(
    0 0,
    calc(100% - var(--bc-corner-x)) 0,
    100% var(--bc-corner-y),
    100% 100%,
    0 100%
  );
}

.configurator .summary-top {
  gap: var(--space-5);
  padding-bottom: var(--space-5);
  border-bottom: 1px solid var(--config-line);
}

.configurator .summary-id {
  color: var(--config-muted);
}

.configurator .summary-section {
  padding: var(--space-5) 0;
  border-bottom: 1px solid var(--config-line);
}

.configurator .summary-section h5 {
  margin: 0 0 var(--space-2);
  color: var(--config-accent);
  font-size: 12px;
  font-weight: 700;
}

.configurator .summary-empty {
  color: var(--config-muted);
}

.configurator .contact-panel label {
  gap: var(--space-2);
  margin-bottom: var(--space-3);
  color: var(--config-text);
  font-weight: 600;
}

.configurator .form-navigation {
  margin-top: var(--space-6);
  padding-top: var(--space-5);
  border-top: 0;
}

.configurator .primary-button,
.configurator .secondary-button,
.configurator .mini-button,
dialog .primary-button,
dialog .secondary-button {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  font-family: var(--font-display);
  font-weight: 600;
  clip-path: polygon(
    0 0,
    calc(100% - var(--mini-bc-corner-x)) 0,
    100% var(--mini-bc-corner-y),
    100% 100%,
    0 100%
  );
}

.configurator .primary-button {
  background: var(--config-accent);
}

dialog .primary-button {
  background: var(--orange);
  color: var(--white);
}

.configurator .primary-button:hover {
  background: color-mix(in srgb, var(--config-accent) 86%, #000);
  box-shadow: none;
  transform: translateY(-2px);
}

dialog .primary-button:hover {
  background: color-mix(in srgb, var(--orange) 86%, #000);
  box-shadow: none;
  transform: translateY(-2px);
}

.configurator .secondary-button,
.configurator .mini-button,
dialog .secondary-button {
  color: var(--steel);
  background: var(--silver);
}

.configurator .secondary-button:hover,
.configurator .mini-button:hover {
  border-color: transparent;
  color: var(--config-accent);
  background: var(--mid-salmon);
}

dialog .secondary-button:hover {
  border-color: transparent;
  color: var(--orange);
  background: var(--mid-salmon);
}

.configurator .text-button {
  color: var(--config-accent);
  font-family: var(--font-display);
}

.configurator button:focus-visible,
dialog button:focus-visible {
  outline: 2px solid var(--config-accent, var(--orange));
  outline-offset: 3px;
}

/* Elementos sem canto BC no fluxo principal do configurador. */
.configurator .form-navigation .primary-button,
.configurator .form-navigation .secondary-button,
.configurator .draggable-card,
.configurator .drop-zone,
.configurator .selected-chip {
  clip-path: none;
}

.toast {
  border: 0;
  border-radius: 0;
  border-left: 0;
  color: var(--steel);
  background: var(--light-salmon);
  box-shadow: none;
  font-family: var(--font-body);
  clip-path: polygon(
    0 0,
    calc(100% - var(--mini-bc-corner-x)) 0,
    100% var(--mini-bc-corner-y),
    100% 100%,
    0 100%
  );
}

dialog {
  border: 0;
  border-radius: 0;
  padding: var(--space-7);
  color: var(--steel);
  background: var(--white);
  font-family: var(--font-body);
  box-shadow: 0 30px 90px rgba(33,34,36,.18);
  clip-path: polygon(
    0 0,
    calc(100% - var(--bc-corner-x)) 0,
    100% var(--bc-corner-y),
    100% 100%,
    0 100%
  );
}

dialog .dialog-mark {
  border-radius: 0;
  color: var(--orange);
  background: var(--mid-salmon);
  clip-path: polygon(
    0 0,
    calc(100% - var(--mini-bc-corner-x)) 0,
    100% var(--mini-bc-corner-y),
    100% 100%,
    0 100%
  );
}

dialog h2 {
  color: var(--orange);
  font-family: var(--font-display);
  font-size: clamp(30px, 3vw, 36px);
  font-weight: 300;
}

body[data-theme="dark"] {
  --bg: var(--dark-petroleum);
  --surface: var(--petroleum);
  --surface-soft: var(--gold-petroleum);
  --surface-warm: var(--petroleum);
  --ink: var(--aluminum);
  --muted: #b8b8b8;
  --line: rgba(162, 162, 162, .24);
  --line-strong: rgba(162, 162, 162, .42);
  background: var(--bg);
  color: var(--ink);
}

body[data-theme="dark"] .site-header {
  border-bottom-color: var(--line);
  background: rgba(33, 34, 36, .94);
}
body[data-theme="dark"] .site-nav a { color: var(--aluminum); }
body[data-theme="dark"] .theme-toggle {
  border-color: var(--line-strong);
  background: var(--petroleum);
  color: var(--aluminum);
}
body[data-theme="dark"] dialog {
  color: var(--aluminum);
  background: var(--petroleum);
}
body[data-theme="dark"] dialog::backdrop { background: rgba(0, 0, 0, .56); }
body[data-theme="dark"] .toast {
  color: var(--aluminum);
  background: var(--petroleum);
}

@media (max-width: 1000px) {
  .configurator .builder-layout,
  .configurator .summary-layout {
    grid-template-columns: 1fr;
  }

  .configurator .drop-zone {
    min-height: 180px;
  }
}

@media (max-width: 720px) {
  .configurator {
    width: min(100% - var(--space-6), var(--max));
    padding: var(--space-8) 0;
  }

  .configurator .config-head {
    align-items: flex-start;
    flex-direction: column;
    gap: var(--space-5);
    margin-bottom: var(--space-6);
  }

  .configurator .progress-wrap {
    width: 100%;
    text-align: left;
  }

  .configurator .form-step {
    min-height: auto;
    padding: var(--space-5);
  }

  .configurator .step-copy {
    gap: var(--space-3);
  }

  .configurator .step-index {
    width: 42px;
    height: 42px;
  }

  .configurator .option-pool,
  .configurator .choice-grid,
  .configurator .feature-pool {
    grid-template-columns: 1fr;
  }

  .configurator .project-summary,
  .configurator .contact-panel {
    padding: var(--space-5);
  }

  dialog {
    padding: var(--space-6);
  }
}
