/* Identidade AXIA: azul-marinho #0d3754 + verde-petróleo #1d8d91 (cores da logo) */
:root {
  --navy: #0d3754;
  --navy-2: #134a6e;
  --teal: #1d8d91;
  --bg: #f3f6f7;
  --panel: #ffffff;
  --ink: #0f2233;
  --muted: #64717d;
  --line: #e2e8ec;
  --soft: #eef3f5;
  --primary: var(--navy);
  --accent: var(--teal);
  --accent-soft: #e2f2f2;
  --ok: #1d8d91;
  --danger: #b3261e;
  --radius: 14px;
  --shadow-sm: 0 1px 2px rgba(13, 55, 84, 0.06), 0 2px 8px rgba(13, 55, 84, 0.06);
  --shadow: 0 12px 32px rgba(13, 55, 84, 0.14);
  --top: 64px;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: Manrope, system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.muted { color: var(--muted); }
.sm { font-size: 13px; }
.xs { font-size: 12px; }
.ic { width: 18px; height: 18px; flex: none; }

/* ---------- Topo ---------- */
.topbar {
  height: var(--top);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  position: relative; z-index: 30;
}
.brand { display: flex; align-items: center; gap: 12px; }
.logo-img { height: 24px; width: auto; display: block; }
.brand-div { width: 1px; height: 22px; background: var(--line); }
.brand .sub { font-weight: 700; color: var(--teal); letter-spacing: 0.14em; text-transform: uppercase; font-size: 13px; }
.nav { display: flex; gap: 8px; align-items: center; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 16px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--panel);
  font-weight: 700; font-size: 14px; white-space: nowrap;
  transition: background 0.15s, border-color 0.15s, transform 0.1s, box-shadow 0.15s;
}
.btn .ic { width: 16px; height: 16px; }
.btn:hover:not(:disabled) { border-color: #c5d0d7; }
.btn:active:not(:disabled) { transform: scale(0.98); }
.btn:disabled { opacity: 0.4; cursor: default; }
.btn.primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn.primary:hover:not(:disabled) { background: var(--navy-2); border-color: var(--navy-2); }
.btn.accent { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 6px 16px rgba(29, 141, 145, 0.28); }
.btn.accent:hover:not(:disabled) { background: #187a7e; border-color: #187a7e; }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: var(--soft); }
.btn.sm { padding: 7px 12px; font-size: 13px; }
.btn.lg { padding: 14px 22px; font-size: 15px; }
.btn.block { width: 100%; }
.btn.icon { width: 44px; height: 44px; padding: 0; }
.avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--teal)); color: #fff; font-weight: 700; font-size: 14px;
  display: grid; place-items: center;
}
.menu {
  position: absolute; top: 58px; right: 20px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow); padding: 6px; min-width: 230px;
}
.menu .who { padding: 10px 12px; font-size: 12.5px; color: var(--muted); border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.menu button, .menu a { display: block; width: 100%; text-align: left; padding: 10px 12px; border-radius: 8px; font-size: 14px; color: inherit; text-decoration: none; }
.menu button:hover, .menu a:hover { background: var(--soft); }
.menu a[hidden] { display: none; }

/* ---------- Layout principal ---------- */
.app {
  display: grid;
  grid-template-columns: 1fr 460px;
  height: calc(100vh - var(--top));
  height: calc(100dvh - var(--top));
}
body.landing-mode .app { grid-template-columns: 1fr; }
body.landing-mode .panel,
body.landing-mode .view-switch,
body.landing-mode .stage-info,
body.landing-mode .stage-hint { display: none; }

.stage { position: relative; overflow: hidden; background: #dbe7ec; min-height: 0; }
#viewer { position: absolute; inset: 0; }
#viewer canvas { display: block; touch-action: none; }
.labels-layer { position: absolute; inset: 0; pointer-events: none; }
.room-label {
  background: rgba(255, 255, 255, 0.94);
  padding: 4px 8px; border-radius: 8px;
  font-size: 11px; line-height: 1.25; text-align: center; white-space: nowrap;
  box-shadow: 0 2px 8px rgba(13, 55, 84, 0.16);
  border-top: 2px solid var(--teal);
}
.room-label.narrow { padding: 3px 5px; font-size: 10px; }
.room-label b { display: block; font-weight: 700; color: var(--navy); }
.room-label span { color: var(--muted); }

.glass {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}
.view-switch {
  position: absolute; top: 16px; left: 50%; transform: translateX(-50%);
  display: flex; padding: 4px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}
.view-switch button {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--muted);
  transition: background 0.2s, color 0.2s;
}
.view-switch button .ic { width: 16px; height: 16px; }
.view-switch button:hover { color: var(--ink); }
.view-switch button.active { background: var(--navy); color: #fff; }
.stage-info {
  position: absolute; left: 16px; bottom: 16px;
  display: flex; gap: 6px; flex-wrap: wrap;
}
.stage-info .chip {
  background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm); padding: 8px 12px; font-size: 13px;
}
.stage-tools { position: absolute; right: 16px; bottom: 16px; display: flex; gap: 8px; z-index: 2; }
.icon-btn {
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(10px); box-shadow: var(--shadow);
  display: grid; place-items: center; color: var(--navy);
}
.icon-btn.on { background: var(--navy); color: #fff; }
.stage-hint {
  position: absolute; top: 66px; left: 50%; transform: translateX(-50%);
  margin: 0; font-size: 12px; color: rgba(15, 34, 51, 0.5); pointer-events: none; white-space: nowrap;
}

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 9px; border-radius: 999px;
  background: var(--soft); color: var(--ink); font-size: 12px; font-weight: 700;
}
.chip .ic { width: 15px; height: 15px; color: var(--teal); }

/* ---------- Painel ---------- */
.panel {
  display: flex; flex-direction: column; min-height: 0;
  background: var(--panel); border-left: 1px solid var(--line);
}
.panel-head { display: flex; gap: 10px; align-items: center; padding: 14px 20px 10px; }
.name-wrap { flex: 1; min-width: 0; }
.name-wrap small { display: block; font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; }
.name-wrap input {
  width: 100%;
  font: inherit; font-weight: 800; font-size: 17px; color: var(--navy);
  border: 1px solid transparent; border-radius: 8px;
  padding: 3px 8px; margin-left: -8px; background: transparent;
}
.name-wrap input:hover, .name-wrap input:focus { border-color: var(--line); outline: none; background: var(--soft); }

.steps {
  display: flex; gap: 2px; padding: 0 14px 10px;
  overflow-x: auto; scrollbar-width: none;
}
.steps::-webkit-scrollbar { display: none; }
.step {
  display: flex; align-items: center; gap: 6px; flex: none;
  padding: 7px 10px; border-radius: 999px;
  font-size: 13px; font-weight: 700; color: var(--muted);
  transition: background 0.15s, color 0.15s;
}
.step:hover { color: var(--ink); }
.step span { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; background: var(--soft); transition: background 0.2s; }
.step.active { color: var(--navy); background: var(--soft); }
.step.active span { background: var(--navy); color: #fff; }
.step.done span { background: var(--accent-soft); color: var(--teal); }
.progress { height: 3px; background: var(--line); }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--navy), var(--teal)); transition: width 0.4s ease; }

.step-body { flex: 1; overflow-y: auto; padding: 22px 20px 28px; scrollbar-width: thin; }
.step-body.enter > * { animation: rise 0.35s ease both; }
.step-body.enter > *:nth-child(2) { animation-delay: 0.04s; }
.step-body.enter > *:nth-child(3) { animation-delay: 0.08s; }
.step-body.enter > *:nth-child(4) { animation-delay: 0.12s; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }

.lead { margin-bottom: 20px; }
.step-count { font-size: 11.5px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--teal); }
.lead h2 { margin: 4px 0 6px; font-size: 24px; letter-spacing: -0.02em; color: var(--navy); }
.lead p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.grp { margin-bottom: 26px; }
.grp h3 { font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin: 0 0 10px; font-weight: 800; }
.note { font-size: 12.5px; color: var(--muted); margin: -2px 0 10px; line-height: 1.45; }
.note.center { text-align: center; margin-top: 14px; }

/* Cartões de opção */
.opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.opts.one { grid-template-columns: 1fr; }
.opts.three { grid-template-columns: repeat(3, 1fr); }
.opt {
  position: relative; text-align: left; background: var(--panel);
  border: 1.5px solid var(--line); border-radius: var(--radius);
  padding: 13px 14px; display: flex; flex-direction: column; gap: 4px;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.opt:hover { border-color: #c5d0d7; box-shadow: var(--shadow-sm); }
.opt.sel { border-color: var(--teal); box-shadow: 0 0 0 1px var(--teal), 0 6px 18px rgba(29, 141, 145, 0.14); }
.opt-check {
  position: absolute; top: 10px; right: 10px;
  width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--teal); color: #fff;
  opacity: 0; transform: scale(0.6); transition: opacity 0.15s, transform 0.15s;
}
.opt-check .ic { width: 13px; height: 13px; stroke-width: 3; }
.opt.sel .opt-check { opacity: 1; transform: none; }
.opt-sketch { display: block; background: var(--soft); border-radius: 10px; padding: 8px; margin-bottom: 6px; color: var(--navy); transition: background 0.15s; }
.opt.sel .opt-sketch { background: #eaf6f6; }
.sk { display: block; width: 100%; height: auto; max-height: 64px; }
.opt-title { font-weight: 800; font-size: 14px; color: var(--navy); padding-right: 22px; }
.opt-desc { font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.opt-extra { font-size: 12.5px; font-weight: 800; color: var(--teal); margin-top: auto; padding-top: 4px; }
.tier { color: var(--teal); font-size: 10px; letter-spacing: 2px; margin-right: 4px; vertical-align: 1px; }
.opts.three .opt { padding: 10px; }
.opts.three .opt-desc { display: none; }
.opts.three .opt-title { font-size: 13px; }

/* Modelos */
.models { display: grid; gap: 14px; }
.model {
  text-align: left; display: grid; grid-template-columns: 150px 1fr; overflow: hidden;
  border: 1.5px solid var(--line); border-radius: 16px; background: var(--panel);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.model:hover { border-color: #c5d0d7; box-shadow: var(--shadow-sm); }
.model.sel { border-color: var(--teal); box-shadow: 0 0 0 1px var(--teal), 0 8px 22px rgba(29, 141, 145, 0.16); }
.model-img { position: relative; background: linear-gradient(180deg, #c6dce5, #e6eef0); min-height: 128px; }
.model-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.model-tag {
  position: absolute; left: 8px; top: 8px;
  font-size: 10.5px; font-weight: 800; padding: 3px 8px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.92); color: var(--navy);
}
.model.sel .model-tag { background: var(--teal); color: #fff; }
.model-body { padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.model-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.model-name { font-size: 18px; font-weight: 800; color: var(--navy); }
.model-area { font-size: 13px; font-weight: 800; color: var(--teal); }
.model-desc { font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.model .chip { padding: 3px 7px; font-size: 11.5px; }
.model-price { display: flex; align-items: baseline; gap: 6px; margin-top: auto; }
.model-price small { font-size: 12px; color: var(--muted); }
.model-price b { font-size: 16px; color: var(--navy); }

/* Amostras de cor */
.swatches { display: flex; flex-wrap: wrap; gap: 14px 6px; }
.sw { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 80px; font-size: 11.5px; text-align: center; color: var(--muted); line-height: 1.25; font-weight: 600; }
.sw i {
  width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: inset 0 -8px 14px rgba(0, 0, 0, 0.1), inset 0 6px 10px rgba(255, 255, 255, 0.35);
  outline: 2px solid transparent; outline-offset: 3px;
  transition: outline-color 0.15s, transform 0.15s;
}
.sw:hover i { outline-color: #c5d0d7; transform: translateY(-1px); }
.sw.sel i { outline-color: var(--teal); }
.sw.sel { color: var(--navy); font-weight: 800; }
.sw em { font-style: normal; font-size: 11px; color: var(--teal); font-weight: 700; }

/* Linhas com ícone (contadores e chaves) */
.card-list { border: 1.5px solid var(--line); border-radius: var(--radius); padding: 0 14px; }
.card-list > :last-child { border-bottom: 0; }
.row-ic { width: 38px; height: 38px; border-radius: 10px; background: var(--soft); color: var(--teal); display: grid; place-items: center; flex: none; }
.row-ic:empty { display: none; }
.row-txt { flex: 1; min-width: 0; }
.stepper { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.stepper small, .toggle small { display: block; color: var(--muted); font-size: 12px; font-weight: 500; margin-top: 1px; }
.stepper b, .toggle b { font-size: 14px; }
.stp { display: flex; align-items: center; gap: 6px; }
.stp button { width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--line); font-size: 18px; line-height: 1; color: var(--navy); transition: border-color 0.15s, background 0.15s; }
.stp button:hover:not(:disabled) { border-color: var(--navy); background: var(--soft); }
.stp button:disabled { opacity: 0.35; cursor: default; }
.stp output { min-width: 26px; text-align: center; font-weight: 800; font-size: 17px; color: var(--navy); }

.toggle { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 0; text-align: left; border-bottom: 1px solid var(--line); }
.switch { width: 44px; height: 26px; border-radius: 999px; background: #cfd8de; position: relative; transition: background 0.2s; flex: none; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: left 0.2s; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2); }
.toggle.on .switch { background: var(--teal); }
.toggle.on .switch::after { left: 21px; }

/* Metragem */
.range { background: var(--soft); border-radius: var(--radius); padding: 16px 16px 12px; }
.range output { font-size: 32px; font-weight: 800; letter-spacing: -0.02em; color: var(--navy); }
.range-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.range-scale { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
input[type='range'] { width: 100%; accent-color: var(--teal); margin: 8px 0 4px; }
.tag { font-size: 12px; font-weight: 800; padding: 5px 10px; border-radius: 999px; background: #fff; color: var(--teal); }

.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table td { padding: 9px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.table td:last-child { text-align: right; font-weight: 700; padding-left: 12px; white-space: nowrap; }
.table .dim { color: var(--muted); font-size: 11.5px; white-space: nowrap; }
.table tr.total td { font-weight: 800; border-bottom: 0; color: var(--navy); font-size: 14px; }

/* Rodapé */
.panel-foot {
  border-top: 1px solid var(--line); padding: 14px 20px;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  background: var(--panel);
}
.price small { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--muted); }
.price strong { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; color: var(--navy); }
.delta {
  font-weight: 800; font-size: 11.5px; padding: 1px 7px; border-radius: 999px; white-space: nowrap;
  opacity: 0; transform: translateY(4px); transition: opacity 0.2s, transform 0.2s;
}
.delta.show { opacity: 1; transform: none; }
.delta.up { background: #fdecea; color: var(--danger); }
.delta.down { background: var(--accent-soft); color: var(--teal); }
.foot-btns { display: flex; gap: 8px; }

/* ---------- Resumo ---------- */
.sum-hero {
  background: radial-gradient(120% 140% at 100% 0%, var(--teal) 0%, var(--navy) 55%);
  color: #fff; border-radius: 18px; padding: 20px; margin-bottom: 12px;
}
.sum-hero > small { opacity: 0.75; font-size: 12.5px; }
.sum-hero strong { display: block; font-size: 34px; font-weight: 800; margin: 2px 0 14px; letter-spacing: -0.02em; }
.sum-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.sum-stats span { background: rgba(255, 255, 255, 0.1); border-radius: 12px; padding: 10px; display: grid; gap: 2px; }
.sum-stats .ic { width: 16px; height: 16px; opacity: 0.8; margin-bottom: 2px; }
.sum-stats b { font-size: 15px; }
.sum-stats small { font-size: 11px; opacity: 0.75; }
.cta-col { display: grid; gap: 8px; margin-bottom: 26px; }
.btn-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.btn-row .btn { padding: 10px 8px; font-size: 13px; }
.srow { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: baseline; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.srow span { color: var(--muted); }
.srow b { text-align: right; color: var(--navy); }
.link { color: var(--teal); font-size: 12px; font-weight: 700; }
.link:hover { text-decoration: underline; }
.disclaimer { font-size: 12px; color: var(--muted); line-height: 1.5; background: var(--soft); border-radius: 12px; padding: 12px 14px; }

/* ---------- Landing ---------- */
.landing {
  position: fixed; top: var(--top); left: 0; right: 0; bottom: 0; z-index: 15;
  display: flex; align-items: center;
  background: linear-gradient(90deg, rgba(243, 246, 247, 0.98) 0%, rgba(243, 246, 247, 0.9) 36%, rgba(243, 246, 247, 0) 66%);
  pointer-events: none; opacity: 0; transition: opacity 0.4s;
}
body.landing-mode .landing { opacity: 1; }
body.landing-mode .landing-inner { pointer-events: auto; }
.landing-inner { max-width: 620px; padding: 0 6vw; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--teal);
  background: var(--accent-soft); padding: 6px 12px; border-radius: 999px;
}
.eyebrow i { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); }
.landing h1 { font-size: clamp(38px, 5.2vw, 64px); line-height: 1.02; letter-spacing: -0.035em; margin: 18px 0 18px; font-weight: 800; color: var(--navy); }
.landing h1 em { font-style: normal; background: linear-gradient(90deg, var(--navy), var(--teal)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.landing p { font-size: 17px; line-height: 1.55; color: #3c4c5a; margin: 0 0 28px; max-width: 510px; }
.landing-ctas { display: flex; gap: 10px; flex-wrap: wrap; }
.features { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; max-width: 580px; }
.features li { border-left: 2px solid var(--teal); padding-left: 12px; }
.features b { display: block; font-size: 14px; margin-bottom: 3px; color: var(--navy); }
.features span { font-size: 12.5px; color: var(--muted); line-height: 1.4; }

/* ---------- Modais ---------- */
.modal-wrap {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(10, 30, 46, 0.5); backdrop-filter: blur(3px);
  display: grid; place-items: center; padding: 16px;
  animation: fade 0.18s ease-out;
}
@keyframes fade { from { opacity: 0; } }
.modal {
  position: relative; background: var(--panel);
  border-radius: 22px; width: min(460px, 100%);
  max-height: calc(100dvh - 32px); overflow: auto;
  padding: 30px; box-shadow: 0 30px 80px rgba(10, 30, 46, 0.3);
  animation: pop 0.22s ease-out;
}
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(0.98); } }
.modal.lg { width: min(940px, 100%); }
.modal.auth::before {
  content: ''; display: block; height: 22px; margin-bottom: 18px;
  background: url('../img/axia-logo.png') left center / contain no-repeat;
}
.modal h2 { margin: 0 0 6px; font-size: 22px; letter-spacing: -0.01em; color: var(--navy); }
.modal > p, .modal .muted { font-size: 14px; line-height: 1.5; }
.modal .close { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 50%; color: var(--muted); }
.modal .close:hover { background: var(--soft); color: var(--ink); }
.tabs { display: flex; background: var(--soft); border-radius: 999px; padding: 4px; margin: 18px 0; }
.tabs button { flex: 1; padding: 8px; border-radius: 999px; font-weight: 700; font-size: 14px; color: var(--muted); }
.tabs button.active { background: #fff; color: var(--navy); box-shadow: 0 1px 4px rgba(13, 55, 84, 0.1); }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 13px; font-weight: 700; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 15px; padding: 11px 12px;
  border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px var(--accent-soft); }
.grid2 { display: grid; grid-template-columns: 1fr 100px; gap: 10px; }
.err { color: var(--danger); font-size: 13px; min-height: 18px; margin-bottom: 8px; }
.mini-sum { background: var(--soft); border-radius: 12px; padding: 12px 14px; margin: 14px 0 18px; display: grid; gap: 2px; font-size: 13px; border-left: 3px solid var(--teal); }
.mini-sum b { color: var(--navy); }
.mini-sum span { color: var(--muted); }
.success { text-align: center; padding: 10px 0 0; }
.check { width: 64px; height: 64px; border-radius: 50%; background: var(--accent-soft); color: var(--teal); font-size: 30px; font-weight: 800; display: grid; place-items: center; margin: 0 auto 14px; }
.success p { margin: 0 0 20px; }

.projects { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; margin-top: 18px; }
.pcard { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; background: #fff; transition: box-shadow 0.15s; }
.pcard:hover { box-shadow: var(--shadow-sm); }
.pcard img, .thumb-empty { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--soft); display: block; }
.pbody { padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.pbody b { color: var(--navy); }
.prow { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.pactions { display: flex; gap: 6px; padding: 0 14px 14px; }
.pcard.new { border-style: dashed; border-width: 1.5px; align-items: center; justify-content: center; min-height: 200px; font-weight: 800; color: var(--muted); }
.pcard.new:hover { border-color: var(--teal); color: var(--teal); }
.badge { font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 999px; background: var(--soft); color: var(--muted); white-space: nowrap; }
.badge.orcamento { background: var(--accent-soft); color: var(--teal); }

.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 60;
  transform: translate(-50%, 20px);
  background: var(--navy); color: #fff; padding: 12px 18px; border-radius: 12px;
  font-size: 14px; font-weight: 600; opacity: 0; pointer-events: none; transition: opacity 0.25s, transform 0.25s;
  box-shadow: var(--shadow);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Responsivo ---------- */
@media (max-width: 1180px) {
  .app { grid-template-columns: 1fr 420px; }
  .model { grid-template-columns: 120px 1fr; }
}

@media (max-width: 900px) {
  :root { --top: 58px; }
  body { overflow: auto; }
  .app { grid-template-columns: 1fr; grid-template-rows: 46vh auto; height: auto; min-height: calc(100dvh - var(--top)); }
  body.landing-mode .app { grid-template-rows: calc(100dvh - var(--top)); }
  .panel { border-left: 0; border-top: 1px solid var(--line); }
  .step-body { overflow: visible; padding: 18px 16px 24px; }
  .panel-head { padding: 12px 16px 8px; }
  .panel-foot { position: sticky; bottom: 0; padding: 12px 16px; box-shadow: 0 -6px 20px rgba(13, 55, 84, 0.08); }
  .price strong { font-size: 20px; }
  .stage-hint { display: none; }
  .stage-info { left: 10px; bottom: 10px; }
  .stage-info .chip { padding: 6px 9px; font-size: 12px; }
  .stage-tools { right: 10px; bottom: 10px; }
  .view-switch { top: 10px; }
  .view-switch button { padding: 7px 11px; }
  .hide-sm { display: none; }
  .landing {
    flex-direction: column; align-items: stretch; overflow-y: auto; padding: 24px 0;
    background: linear-gradient(0deg, rgba(243, 246, 247, 0.99) 55%, rgba(243, 246, 247, 0.55) 80%, rgba(243, 246, 247, 0) 100%);
  }
  .landing-inner { padding: 0 16px; margin-top: auto; }
  .landing h1 { font-size: 36px; margin: 14px 0 12px; }
  .landing p { font-size: 15px; margin-bottom: 18px; }
  .features { grid-template-columns: 1fr; gap: 8px; margin-top: 20px; }
  .features span { display: none; }
  .topbar { padding: 0 16px; }
  .logo-img { height: 20px; }
}

@media (max-width: 520px) {
  .opts, .opts.three { grid-template-columns: 1fr 1fr; }
  .model { grid-template-columns: 1fr; }
  .model-img { min-height: 150px; }
  .view-switch button span { display: none; }
  .hide-xs { display: none; }
  .sum-hero strong { font-size: 28px; }
  .grid2 { grid-template-columns: 1fr 84px; }
}

@media print {
  body { overflow: visible; background: #fff; }
  .topbar .nav, .steps, .progress, .panel-foot, .view-switch, .stage-tools, .stage-hint, .stage-info, .landing, .cta-col, .link, .panel-head .btn, .toast { display: none !important; }
  .app { display: block; height: auto; }
  .stage { height: 9cm; }
  #viewer canvas { width: 100% !important; height: auto !important; }
  .labels-layer { display: none; }
  .panel { border: 0; }
  .step-body { overflow: visible; }
  .step-body.enter > * { animation: none; }
}
