:root {
  --orange: #F07D1A;
  --orange-deep: #D9680A;
  --graphite: #2A2522;
  --concrete: #E9E6E1;
  --concrete-2: #F4F2EF;
  --olive: #6B7A3A;
  --white: #FFFFFF;
  --muted: #6E6660;
  --wa: #1FA855;
  --font-ui: 'Archivo', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --gutter: clamp(20px, 4vw, 56px);
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; background: var(--white); color: var(--graphite);
  font: 400 18px/1.5 var(--font-ui); font-variation-settings: 'wdth' 100;
  -webkit-font-smoothing: antialiased; overscroll-behavior: none;
}
[hidden] { display: none !important; }
img { max-width: 100%; }
h1, h2, h3 { margin: 0; font-weight: 850; font-stretch: 125%; font-variation-settings: 'wdth' 125; letter-spacing: -0.01em; line-height: 1.02; }
p { margin: 0; }

.screen { min-height: 100dvh; padding: env(safe-area-inset-top, 0px) 0 env(safe-area-inset-bottom, 0px); }

/* Botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 28px; border-radius: 14px; border: 0; cursor: pointer;
  font: 700 18px/1 var(--font-ui); font-variation-settings: 'wdth' 110; text-decoration: none;
  transition: transform .12s ease, background .2s, box-shadow .2s; -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.97); }
.btn:focus-visible, .icon-btn:focus-visible, .opt:focus-visible, .chip:focus-within, .seg button:focus-visible { outline: 3px solid var(--graphite); outline-offset: 3px; }
.btn-xl { min-height: 72px; padding: 0 44px; font-size: 22px; border-radius: 18px; }
.btn-dark { background: var(--graphite); color: var(--white); }
.btn-orange { background: var(--orange); color: var(--white); box-shadow: 0 6px 0 var(--orange-deep); }
.btn-orange:active { box-shadow: 0 2px 0 var(--orange-deep); transform: translateY(4px); }
.btn-ghost { background: transparent; color: var(--graphite); border: 2px solid var(--concrete); }
.btn-wa { background: var(--wa); color: #fff; }
.icon-btn { width: 56px; height: 56px; border-radius: 50%; border: 0; background: var(--concrete-2); color: var(--graphite); display: grid; place-items: center; cursor: pointer; }
.icon-btn:disabled { opacity: .3; }

/* ---------- Abertura ---------- */
.intro { background: var(--orange); color: var(--graphite); display: flex; flex-direction: column; overflow: hidden; }
.intro-top { padding: 28px var(--gutter) 0; }
.logo-t { height: 64px; filter: brightness(0) saturate(100%); opacity: .9; }
.intro-body { flex: 1; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; gap: 24px; padding: 0 0 0 var(--gutter); }
.intro-copy { max-width: 620px; padding-block: 32px; }
.intro h1 { font-size: clamp(44px, 6.6vw, 96px); color: var(--graphite); }
.intro .lead { margin-top: 24px; font-size: clamp(19px, 2vw, 24px); max-width: 30ch; line-height: 1.4; }
.intro .btn { margin-top: 36px; }
.intro .fine { margin-top: 28px; font-size: 15px; opacity: .78; }
.intro-model { height: min(78dvh, 720px); position: relative; }
.intro-model::after { content: ''; position: absolute; inset: auto 10% 6% 10%; height: 40px; background: radial-gradient(closest-side, rgba(0,0,0,.18), transparent); filter: blur(6px); z-index: -1; }
.intro .plan .rlabel { display: none; }
#start { animation: nudge 2.8s ease-in-out infinite; }
@keyframes nudge { 0%, 88%, 100% { transform: none; } 92% { transform: translateY(-4px); } 96% { transform: translateY(1px); } }

/* ---------- Quiz ---------- */
.quiz { display: flex; flex-direction: column; background: var(--white); }
.quiz-top { display: flex; align-items: center; gap: 20px; padding: 24px var(--gutter); }
.logo-s { height: 40px; }
.bricks { flex: 1; display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; list-style: none; margin: 0; padding: 0; max-width: 560px; margin-inline: auto; }
.bricks li { height: 14px; border-radius: 3px; background: var(--concrete); position: relative; overflow: hidden; }
.bricks li::after { content: ''; position: absolute; inset: 0; background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .45s cubic-bezier(.3,1.4,.5,1); }
.bricks li.done::after { transform: scaleX(1); }
.bricks li.now { background: #F9D5B4; }
.q-wrap { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 0 var(--gutter) 48px; max-width: 1180px; width: 100%; margin: 0 auto; }
.q-count { font-weight: 600; color: var(--muted); font-size: 18px; }
.q-title { margin-top: 10px; font-size: clamp(34px, 4.6vw, 64px); max-width: 18ch; }
.opts { margin-top: 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.opt {
  position: relative; text-align: left; min-height: 150px; padding: 22px 22px 20px; border-radius: 20px; cursor: pointer;
  border: 2px solid var(--concrete); background: var(--concrete-2); color: var(--graphite);
  display: flex; flex-direction: column; justify-content: space-between; gap: 18px;
  font: 700 22px/1.2 var(--font-ui); font-variation-settings: 'wdth' 105;
  transition: border-color .15s, background .15s, transform .12s; -webkit-tap-highlight-color: transparent;
}
.opt:active { transform: scale(.98); }
.opt .emo { font-size: 44px; line-height: 1; }
.opt.picked { border-color: var(--orange); background: #FFF1E4; }
.opt.picked::after { content: ''; position: absolute; top: 16px; right: 16px; width: 26px; height: 26px; border-radius: 50%; background: var(--orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12l4 4 8-9' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/18px no-repeat; }
.opt .sw { display: flex; height: 70px; border-radius: 12px; overflow: hidden; }
.opt .sw i { flex: 1; }
@media (hover: hover) { .opt:hover { border-color: #F4B07A; } }

/* ---------- Captura ---------- */
.lead-s { background: var(--concrete-2); }
.lead-grid { min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.lead-teaser { background: var(--orange); position: relative; overflow: hidden; }
.teaser-model { position: absolute; inset: 0; filter: blur(9px) saturate(.9); transform: scale(1.05); }
.lead-teaser::after { content: 'Quase lá'; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font: 850 clamp(30px, 4vw, 52px)/1 var(--font-ui); font-variation-settings: 'wdth' 125; color: var(--white); text-shadow: 0 2px 20px rgba(0,0,0,.2); }
.lead-form { padding: 48px var(--gutter); display: flex; flex-direction: column; gap: 14px; justify-content: center; max-width: 640px; }
.lead-form h2 { font-size: clamp(32px, 4vw, 52px); }
.lead-form .lead { color: var(--muted); margin-bottom: 8px; max-width: 42ch; }
.fld { display: flex; flex-direction: column; gap: 6px; border: 0; padding: 0; margin: 0; }
.fld > span, .fld legend { font-weight: 650; font-size: 16px; padding: 0; margin-bottom: 2px; }
.fld input {
  height: 60px; padding: 0 18px; border-radius: 14px; border: 2px solid var(--concrete); background: var(--white);
  font: 500 20px var(--font-ui); color: var(--graphite); outline: none; transition: border-color .15s;
}
.fld input:focus { border-color: var(--orange); }
.fld input[aria-invalid="true"] { border-color: #C0392B; }
.err { font-style: normal; color: #B3261E; font-size: 15px; min-height: 0; }
.err:empty { display: none; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; }
.chip span { display: inline-flex; align-items: center; min-height: 52px; padding: 0 18px; border-radius: 99px; border: 2px solid var(--concrete); background: var(--white); font-weight: 600; font-size: 17px; cursor: pointer; }
.chip input:checked + span { border-color: var(--graphite); background: var(--graphite); color: var(--white); }
.check { display: flex; gap: 14px; align-items: flex-start; font-size: 15px; color: var(--muted); line-height: 1.4; cursor: pointer; margin-top: 4px; }
.check input { width: 28px; height: 28px; accent-color: var(--orange); flex: none; margin: 0; }
.lead-form .btn { margin-top: 10px; align-self: flex-start; }

/* ---------- Resultado ---------- */
.result { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(340px, 1fr); height: 100dvh; background: var(--white); }
.res-plan { position: relative; background: var(--concrete); display: flex; flex-direction: column; min-height: 0; }
.plan-area { flex: 1; min-height: 0; }
.plan-tools { position: absolute; left: 20px; right: 20px; bottom: 20px; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; justify-content: space-between; pointer-events: none; }
.plan-tools > * { pointer-events: auto; }
.seg { display: inline-flex; background: var(--white); border-radius: 14px; padding: 5px; gap: 4px; box-shadow: 0 2px 10px rgba(42,37,34,.12); }
.seg button { border: 0; background: transparent; min-height: 46px; padding: 0 16px; border-radius: 10px; font: 650 16px var(--font-ui); color: var(--graphite); cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.seg button .dot { width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 2px rgba(0,0,0,.12); }
.seg button[aria-checked="true"] { background: var(--graphite); color: var(--white); }
.plan-hint { position: absolute; top: 20px; left: 20px; background: rgba(255,255,255,.9); padding: 10px 16px; border-radius: 99px; font-size: 15px; font-weight: 600; pointer-events: none; }
.room-card { position: absolute; top: 20px; right: 20px; width: min(320px, calc(100% - 40px)); background: var(--white); border-radius: 18px; padding: 20px 22px; box-shadow: 0 10px 30px rgba(42,37,34,.18); }
.room-card h3 { font-size: 24px; }
.room-card p { margin-top: 8px; font-size: 16px; color: var(--muted); }
.room-card .x { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; border: 0; background: none; font-size: 26px; cursor: pointer; color: var(--muted); }

.res-side { overflow-y: auto; padding: 28px clamp(20px, 3vw, 40px) 40px; display: flex; flex-direction: column; gap: 18px; }
.res-side .logo-s { align-self: flex-start; }
.res-hello { font-weight: 600; color: var(--muted); font-size: 18px; margin-top: 6px; }
.res-tipo { font-size: clamp(36px, 3.6vw, 54px); }
.res-tag { display: inline-block; align-self: flex-start; background: var(--orange); color: var(--white); padding: 6px 14px; border-radius: 99px; font-weight: 700; font-size: 16px; margin-top: -4px; }
.res-resumo { font-size: 17px; max-width: 46ch; }
.res-estilo { border-top: 2px solid var(--concrete); padding-top: 18px; }
.res-estilo h3 { font-size: 24px; font-variation-settings: 'wdth' 115; }
.res-estilo p { color: var(--muted); margin-top: 4px; }
.res-estilo ul { margin: 12px 0 0; padding-left: 20px; font-size: 16px; }
.res-estilo li { margin: 4px 0; }
.res-photo { margin: 0; position: relative; border-radius: 16px; overflow: hidden; }
.res-photo img { display: block; width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.res-photo figcaption { position: absolute; left: 12px; bottom: 12px; background: rgba(255,255,255,.92); padding: 5px 12px; border-radius: 99px; font-size: 14px; font-weight: 600; }
.moriah { background: #F3F1E6; border-radius: 16px; padding: 18px 20px; }
.logo-m { height: 34px; }
.moriah dl { margin: 14px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
.moriah dt { font-size: 14px; color: var(--olive); font-weight: 650; }
.moriah dd { margin: 2px 0 0; font-weight: 750; font-size: 18px; }
.moriah .perks { margin-top: 14px; font-size: 15px; color: #4E5530; }
.sent { background: #EAF6EE; color: #1E6B3A; padding: 12px 16px; border-radius: 12px; font-weight: 600; font-size: 16px; }
.share { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.share .btn-wa { flex: 1 1 220px; }
.qr-box { text-align: center; font-size: 13px; color: var(--muted); }
.qr-box #qr { width: 112px; height: 112px; }
.qr-box #qr img, .qr-box #qr svg { width: 100%; height: 100%; display: block; }
.res-side .fine { font-size: 13px; color: var(--muted); }

.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--graphite); color: #fff; padding: 14px 22px; border-radius: 14px; font-weight: 600; z-index: 10; max-width: calc(100% - 32px); }

/* ---------- Retrato / celular ---------- */
@media (max-width: 900px), (orientation: portrait) {
  .intro-body { grid-template-columns: 1fr; padding: 0 var(--gutter); }
  .intro-model { height: 42dvh; order: -1; margin-inline: calc(var(--gutter) * -1); }
  .intro-copy { padding-top: 0; }
  .lead-grid { grid-template-columns: 1fr; }
  .lead-teaser { min-height: 26dvh; }
  .result { grid-template-columns: 1fr; height: auto; }
  .res-plan { height: 68dvh; }
}
@media (max-width: 560px) {
  body { font-size: 17px; }
  .opts { grid-template-columns: 1fr 1fr; gap: 10px; }
  .opt { min-height: 120px; font-size: 18px; padding: 16px; }
  .opt .emo { font-size: 34px; }
  .plan-tools { left: 10px; right: 10px; bottom: 10px; }
  .seg button { padding: 0 10px; font-size: 14px; }
  .seg button .lbl { display: none; }
  .logo-t { height: 48px; }
  .quiz-top .logo-s { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.res-tipo .res-quartos { display: block; margin-top: 8px; font-size: .42em; font-weight: 700; font-variation-settings: 'wdth' 100; letter-spacing: 0; color: var(--graphite); line-height: 1.2; }
.lead-form { gap: 10px; padding-block: 32px; }
.sent.warn { background: #FDECEA; color: #8C1D18; }

/* ================= Resultado v2 ================= */
.result { grid-template-columns: minmax(0, 1.75fr) minmax(360px, 1fr); }
.res-plan {
  background:
    radial-gradient(circle at 1px 1px, rgba(42,37,34,.09) 1px, transparent 1.5px) 0 0 / 22px 22px,
    radial-gradient(120% 90% at 50% 45%, #F7F5F1 0%, #E6E2DC 100%);
  overflow: hidden;
}
.planhost.night { background: radial-gradient(120% 90% at 50% 45%, #2E3340 0%, #171A21 100%); }
.res-plan:has(.planhost.night) .legend, .res-plan:has(.planhost.night) .toolbar, .res-plan:has(.planhost.night) .seg-styles { box-shadow: 0 8px 30px rgba(0,0,0,.45); }

.glass { background: rgba(255,255,255,.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }

/* legenda de cômodos */
.legend {
  position: absolute; top: 18px; left: 18px; width: min(270px, calc(100% - 36px)); z-index: 5;
  background: rgba(255,255,255,.94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-radius: 16px; box-shadow: 0 8px 30px rgba(42,37,34,.14); overflow: hidden;
}
.legend summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding: 14px 16px 12px; font-weight: 800; font-size: 17px; font-variation-settings: 'wdth' 112;
}
.legend summary::-webkit-details-marker { display: none; }
.legend summary::after { content: ''; width: 9px; height: 9px; border-right: 2.5px solid #2A2522; border-bottom: 2.5px solid #2A2522; transform: rotate(45deg) translateY(-3px); margin-left: 4px; transition: transform .2s; flex: none; align-self: center; }
.legend[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.legend-total { margin-left: auto; font-weight: 700; font-size: 14px; color: var(--orange-deep); font-variation-settings: 'wdth' 100; }
.legend-list { list-style: none; margin: 0; padding: 0 8px 6px; counter-reset: c; }
.legend-list button {
  width: 100%; display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 10px;
  border: 0; background: transparent; border-radius: 10px; cursor: pointer; text-align: left;
  font: 600 15px var(--font-ui); color: var(--graphite);
}
.legend-list button::before { counter-increment: c; content: counter(c); width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--concrete); font-size: 12px; font-weight: 750; flex: none; }
.legend-list .nm { flex: 1; }
.legend-list .m2 { color: var(--muted); font-weight: 600; font-size: 14px; font-variant-numeric: tabular-nums; }
.legend-list button:hover { background: var(--concrete-2); }
.legend-list button.sel { background: var(--graphite); color: #fff; }
.legend-list button.sel::before { background: var(--orange); color: #fff; }
.legend-list button.sel .m2 { color: rgba(255,255,255,.75); }
.legend-note { margin: 0; padding: 10px 16px 14px; font-size: 12px; line-height: 1.4; color: var(--muted); border-top: 1px solid var(--concrete); }

/* estilos (topo direito) */
.seg-styles { position: absolute; top: 18px; right: 18px; z-index: 5; }

/* barra inferior */
.toolbar {
  position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 5;
  display: flex; align-items: center; gap: 6px; padding: 6px; border-radius: 18px;
  background: rgba(255,255,255,.94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(42,37,34,.18); max-width: calc(100% - 24px);
}
.toolbar .seg { box-shadow: none; background: var(--concrete-2); }
.tool {
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 16px; border-radius: 12px; border: 0;
  background: transparent; color: var(--graphite); font: 700 15px var(--font-ui); cursor: pointer; white-space: nowrap;
}
.tool svg { width: 18px; height: 18px; }
.tool:hover { background: var(--concrete-2); }
.tool[aria-pressed="true"] { background: var(--graphite); color: #fff; }
.tool-accent { background: var(--orange); color: #fff; }
.tool-accent:hover { background: var(--orange-deep); }
.tool:focus-visible { outline: 3px solid var(--graphite); outline-offset: 2px; }

/* legenda do tour */
.tour-cap {
  position: absolute; left: 50%; bottom: 92px; transform: translateX(-50%); z-index: 6;
  width: min(460px, calc(100% - 32px)); padding: 16px 20px; border-radius: 16px;
  background: rgba(42,37,34,.92); color: #fff; box-shadow: 0 10px 30px rgba(0,0,0,.25); text-align: center;
}
.tour-step { font-size: 13px; font-weight: 650; color: #F9C79A; }
.tour-cap h3 { font-size: 26px; margin-top: 4px; }
.tour-cap p:last-child { margin-top: 6px; font-size: 15px; color: rgba(255,255,255,.82); }

.room-card { top: auto; bottom: 92px; right: 18px; z-index: 6; }
.room-card .rc-m2 { margin-top: 2px !important; font-weight: 750; color: var(--orange-deep) !important; font-size: 15px !important; }

/* coluna lateral */
.res-side { gap: 16px; padding-top: 26px; border-left: 1px solid var(--concrete); }
.res-tipo { font-size: clamp(40px, 3.8vw, 58px); }
.res-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.res-meta .res-tag { margin: 0; }
.res-area { font-weight: 750; font-size: 16px; color: var(--graphite); padding: 6px 12px; border-radius: 99px; background: var(--concrete); }
.res-estilo { background: var(--concrete-2); border: 0; border-radius: 16px; padding: 18px 20px; }
.res-estilo ul { list-style: none; padding: 0; display: grid; gap: 8px; }
.res-estilo li { display: flex; gap: 10px; align-items: flex-start; }
.res-estilo li::before { content: ''; width: 8px; height: 8px; border-radius: 2px; background: var(--orange); margin-top: 8px; flex: none; }

@media (max-width: 900px), (orientation: portrait) {
  .res-plan { height: 74dvh; }
  .legend { width: auto; max-width: 240px; }
  .seg-styles { top: auto; bottom: 84px; right: 50%; transform: translateX(50%); }
  .tour-cap { bottom: 140px; }
  .room-card { bottom: 140px; left: 12px; right: 12px; width: auto; }
}
@media (max-width: 560px) {
  .legend { top: 10px; left: 10px; }
  .toolbar { bottom: 10px; gap: 2px; padding: 4px; }
  .tool { padding: 0 10px; font-size: 14px; }
  .tool-accent span { display: none; }
  .seg-styles { bottom: 76px; }
  .seg-view button { padding: 0 12px; }
}
@media (min-width: 901px) and (orientation: landscape) {
  .res-plan .plan-area { margin: 70px 0 84px 290px; }
}
@media (max-width: 900px), (orientation: portrait) {
  .res-plan .plan-area { margin: 56px 0 130px; }
}

/* ===== Cores de texto (contraste) ===== */
:root {
  --muted: #5A524C;          /* texto secundário: 7:1 no branco */
  --orange-ink: #B4560A;     /* laranja para texto em fundo claro */
  --orange-btn: #D9650C;     /* laranja de botão com texto branco */
  --ink: #241F1C;
}
body { color: var(--ink); }
h1, h2, h3, .res-tipo, .q-title { color: var(--ink); }
.btn-orange, .tool-accent { background: var(--orange-btn); }
.btn-orange { box-shadow: 0 6px 0 #A84D06; }
.tool-accent:hover { background: #BF5709; }
.res-tag { background: var(--orange-btn); }
.res-hello, .q-count, .lead-form .lead, .res-estilo p, .room-card p { color: var(--muted); }
.res-resumo, .res-estilo li { color: var(--ink); }
.room-card .rc-m2 { color: var(--orange-ink) !important; }
.moriah dt { color: #4F5A24; }
.moriah dd { color: var(--ink); }
.moriah .perks { color: #3F4720; }
.intro .lead { color: #2A2017; }
.intro .fine { color: #3A2A1A; opacity: 1; }
.res-side .fine, .legend-fine { color: var(--muted); }
.tour-step { color: #FFC48F; }

/* legenda: total no fim + entrada */
.legend-list .m2 { color: var(--muted); }
.legend-sum {
  display: flex; justify-content: space-between; align-items: baseline; margin: 2px 8px 0; padding: 12px 10px;
  border-top: 2px solid var(--ink); font-weight: 700; font-size: 15px;
}
.legend-sum strong { font-size: 19px; font-weight: 850; font-variation-settings: 'wdth' 112; color: var(--ink); }
.legend-note { display: flex; align-items: center; gap: 8px; color: var(--ink); font-size: 13px; padding-bottom: 6px; }
.legend-note.legend-fine { display: block; color: var(--muted); padding-top: 4px; border-top: 0; font-size: 12px; }
.legend-door { width: 18px; height: 6px; border-radius: 2px; background: #F07D1A; flex: none; }
@media (max-width: 900px), (orientation: portrait) {
  .result { grid-template-columns: 1fr; }
  .res-side { border-left: 0; border-top: 1px solid var(--concrete); }
}

/* ===== Planta baixa oficial (2D) ===== */
.plan2d { position: absolute; inset: 70px 0 84px 290px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; z-index: 1; }
.result.view-3d .plan2d { visibility: hidden; opacity: 0; pointer-events: none; }
.result:not(.view-3d) .plan-area { visibility: hidden; }
.plan2d { transition: opacity .35s; }
.p2-frame { position: relative; margin: 0; border-radius: 6px; box-shadow: 0 1px 0 rgba(0,0,0,.05), 0 18px 40px rgba(42,37,34,.18); background: #fff; }
.p2-frame img { display: block; width: 100%; height: 100%; border-radius: 6px; transition: filter .5s; }
.plan2d[data-estilo="natural"] .p2-frame img { filter: sepia(.22) saturate(1.15) brightness(1.02); }
.plan2d[data-estilo="minimal"] .p2-frame img { filter: saturate(.55) brightness(1.05); }
.plan2d[data-estilo="moderno"] .p2-frame img { filter: contrast(1.06); }
.p2-labels { position: absolute; inset: 0; }
.p2-tag {
  position: absolute; transform: translate(-50%, -50%); white-space: nowrap;
  padding: 3px 8px; border: 0; border-radius: 6px; cursor: pointer;
  background: rgba(255,255,255,.92); color: var(--ink);
  font: 700 11px/1.2 var(--font-ui); letter-spacing: .01em;
  box-shadow: 0 1px 4px rgba(0,0,0,.18);
}
.p2-tag.sel { background: var(--ink); color: #fff; }
.p2-entry { background: #F07D1A; color: #fff; cursor: default; pointer-events: none; }
.p2-src { margin: 0; font-size: 12px; color: var(--muted); font-weight: 600; }
.result.is-night .res-plan { background: radial-gradient(120% 90% at 50% 45%, #2E3340 0%, #171A21 100%); }
.planhost.night { background: transparent; }
@media (max-width: 900px), (orientation: portrait) {
  .plan2d { inset: 56px 8px 130px; }
}

/* ===== Sem 3D (Atalaia): esconde controles de maquete ===== */
.result.no-3d #v3d, .result.no-3d #night, .result.no-3d .seg-view { display: none; }
.p2-hit { background: transparent !important; box-shadow: none; color: transparent; width: 70px; height: 34px; }
.p2-hit.sel { background: rgba(240,125,26,.22) !important; outline: 2px solid #F07D1A; color: transparent; }
.teaser-img { position: absolute; inset: 8%; width: 84%; height: 84%; object-fit: contain; }

/* ===== Card do cômodo com foto ===== */
.room-card.has-foto { width: min(380px, calc(100% - 36px)); padding: 0 0 16px; overflow: hidden; }
.room-card.has-foto > :not(figure):not(.x) { margin-left: 20px; margin-right: 20px; }
.room-card.has-foto h3 { margin-top: 14px; }
.rc-foto { margin: 0; position: relative; }
.rc-foto img { display: block; width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.rc-foto figcaption { position: absolute; left: 10px; bottom: 8px; font-size: 12px; font-weight: 600; color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.7); }
.room-card.has-foto .x { z-index: 2; background: rgba(255,255,255,.92); border-radius: 50%; top: 10px; right: 10px; color: var(--ink); }
.rc-tour { margin-top: 12px; border: 0; background: var(--orange-btn); color: #fff; font: 700 14px var(--font-ui); padding: 10px 14px; border-radius: 10px; cursor: pointer; }

/* ===== Coluna lateral: prédio, galeria, vídeo, local ===== */
.res-side h3 { font-size: 20px; font-variation-settings: 'wdth' 112; }
.predio { background: #F3F1E6; border-radius: 16px; padding: 18px 20px; }
.predio[data-predio="atalaia"] { background: #EEF2F6; }
.predio-top { display: flex; gap: 14px; align-items: center; }
.predio-top .logo-m { height: 46px; width: auto; max-width: 110px; object-fit: contain; }
.predio-top h3 { font-size: 18px; }
.predio-top p { font-size: 13px; color: var(--muted); margin-top: 2px; }
.predio-dl { margin: 14px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; }
.predio-dl dt { font-size: 13px; color: var(--muted); font-weight: 650; }
.predio-dl dd { margin: 2px 0 0; font-weight: 800; font-size: 17px; color: var(--ink); }
.predio .perks { margin-top: 12px; font-size: 14px; color: var(--ink); }

.galeria { display: grid; gap: 10px; }
.gal-main { position: relative; border-radius: 14px; overflow: hidden; background: var(--concrete); }
.gal-main img { display: block; width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.gal-main p { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; padding: 22px 14px 10px; font-size: 13px; font-weight: 600; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.65)); }
.gal-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); font-size: 26px; line-height: 1; cursor: pointer; color: var(--ink); }
.gal-nav.prev { left: 10px; } .gal-nav.next { right: 10px; }
.gal-thumbs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.gal-thumbs button { flex: none; width: 76px; height: 54px; padding: 0; border: 2px solid transparent; border-radius: 9px; overflow: hidden; cursor: pointer; background: none; }
.gal-thumbs button.sel { border-color: var(--orange); }
.gal-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }

.video h3, .local h3, .difs h3 { margin-bottom: 10px; }
.vid-box { position: relative; aspect-ratio: 16/9; border-radius: 14px; overflow: hidden; background: #000; }
.vid-box iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vid-play { position: absolute; inset: 0; border: 0; padding: 0; cursor: pointer; background: #000; }
.vid-play img { width: 100%; height: 100%; object-fit: cover; opacity: .85; display: block; }
.vid-play span { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); background: var(--orange-btn); color: #fff; font: 800 16px var(--font-ui); padding: 12px 20px; border-radius: 12px; }

.chips-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips-list li { background: var(--concrete-2); border: 1px solid var(--concrete); padding: 7px 12px; border-radius: 99px; font-size: 14px; font-weight: 600; }
.loc-end { font-weight: 650; font-size: 15px; margin-bottom: 8px; }
.map-box { aspect-ratio: 16/10; border-radius: 14px; overflow: hidden; background: var(--concrete); }
.map-box iframe { width: 100%; height: 100%; border: 0; display: block; }
.loc-link { display: inline-block; margin-top: 8px; font-weight: 700; color: var(--orange-ink); }
.perto { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.perto li { display: flex; gap: 8px; font-size: 15px; }
.perto li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--olive); margin-top: 7px; flex: none; }

/* ===== Tour por dentro do apê ===== */
body.vt-open { overflow: hidden; }
.vt { position: fixed; inset: 0; z-index: 50; background: #0F0D0C; color: #fff; overflow: hidden; }
.vt-stage { position: absolute; inset: 0; cursor: pointer; }
.vt-layer { position: absolute; inset: 0; opacity: 0; transition: opacity .9s ease; overflow: hidden; }
.vt-layer.on { opacity: 1; }
.vt-layer img { position: absolute; inset: 0; width: 100%; height: 100%; }
.vt-layer.is-foto img { object-fit: cover; transform-origin: var(--ox, 50%) 50%; animation: vt-walk 6.5s ease-out forwards; }
.vt-layer.is-planta { background: #F4F2EF; }
.vt-layer.is-planta img { object-fit: contain; padding: 6vh 6vw 24vh; box-sizing: border-box; transform-origin: var(--ox) var(--oy); animation: vt-zoom 6.5s ease-in-out forwards; }
@keyframes vt-walk { from { transform: scale(1.02); } to { transform: scale(1.2); } }
@keyframes vt-zoom { from { transform: scale(1); } to { transform: scale(2.1); } }
.vt.paused .vt-layer img { animation-play-state: paused; }
.vt::after { content: ""; position: absolute; inset: auto 0 0 0; height: 46%; background: linear-gradient(transparent, rgba(0,0,0,.78)); pointer-events: none; }
.vt-progress { position: absolute; top: calc(14px + env(safe-area-inset-top, 0px)); left: 16px; right: 16px; z-index: 3; display: flex; gap: 5px; list-style: none; margin: 0; padding: 0; }
.vt-progress li { flex: 1; height: 4px; border-radius: 2px; background: rgba(255,255,255,.3); overflow: hidden; }
.vt-progress li i { display: block; height: 100%; width: 0; background: #fff; }
.vt-progress li.done i { width: 100%; }
.vt-progress li.now i { animation: vt-bar var(--dur, 5s) linear forwards; }
.vt.paused .vt-progress li.now i { animation-play-state: paused; }
@keyframes vt-bar { to { width: 100%; } }
.vt-map { position: absolute; z-index: 3; top: 34px; right: 16px; width: min(210px, 34vw); margin: 0; background: #fff; border-radius: 10px; padding: 6px; box-shadow: 0 8px 30px rgba(0,0,0,.4); transition: opacity .4s; box-sizing: border-box; }
.vt-map.dim { opacity: .55; }
.vt-map img { display: block; width: 100%; height: 100%; object-fit: contain; }
.vt-map-inner { position: relative; }
.vt-dot { position: absolute; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: #F07D1A; box-shadow: 0 0 0 4px rgba(240,125,26,.35); transition: left .8s ease, top .8s ease; animation: vt-pulse 1.4s ease-in-out infinite; }
@keyframes vt-pulse { 50% { box-shadow: 0 0 0 10px rgba(240,125,26,.1); } }
.vt-cap { position: absolute; z-index: 3; left: clamp(18px, 5vw, 64px); right: clamp(18px, 5vw, 64px); bottom: calc(96px + env(safe-area-inset-bottom, 0px)); max-width: 720px; }
.vt-step { font-weight: 700; font-size: 15px; color: #FFC48F; }
.vt-cap h2 { color: #fff; font-size: clamp(34px, 5vw, 64px); margin-top: 6px; }
.vt-txt { font-size: clamp(16px, 1.8vw, 20px); margin-top: 10px; color: rgba(255,255,255,.9); max-width: 52ch; }
.vt-src { font-size: 12px; margin-top: 8px; color: rgba(255,255,255,.6); }
.vt-ctrl { position: absolute; z-index: 3; left: 50%; transform: translateX(-50%); bottom: calc(22px + env(safe-area-inset-bottom, 0px)); display: flex; gap: 10px; }
.vt-ctrl button { width: 58px; height: 58px; border-radius: 50%; border: 0; background: rgba(255,255,255,.16); color: #fff; font-size: 26px; cursor: pointer; backdrop-filter: blur(8px); }
.vt-ctrl button:hover { background: rgba(255,255,255,.28); }
.vt-close { position: absolute; z-index: 4; left: 16px; top: 34px; border: 0; border-radius: 99px; padding: 10px 16px; background: rgba(0,0,0,.5); color: #fff; font: 700 14px var(--font-ui); cursor: pointer; backdrop-filter: blur(8px); }
.vt button:focus-visible { outline: 3px solid #F07D1A; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .vt-layer img { animation: none !important; } }
@media (max-width: 560px) { .vt-map { width: 38vw; } .vt-cap { bottom: 100px; } }
.vt-map { padding: 0; border: 6px solid #fff; box-sizing: content-box; }

/* seletor de estilo centralizado sobre a planta (fora da faixa da legenda) */
@media (min-width: 901px) and (orientation: landscape) {
  .seg-styles { right: auto; left: calc(290px + (100% - 290px) / 2); transform: translateX(-50%); }
  .plan2d { top: 88px; }
  .res-plan .plan-area { margin-top: 88px; }
}
.seg-styles button { justify-content: center; }

/* etiquetas da planta: pequenas, discretas, com câmera quando há foto */
.p2-tag { padding: 2px 7px 2px 6px; font-size: 10px; font-weight: 700; border-radius: 99px; background: rgba(255,255,255,.88); box-shadow: 0 1px 3px rgba(0,0,0,.16); display: inline-flex; align-items: center; gap: 4px; transition: transform .15s, background .15s; }
.p2-tag .cam { display: none; width: 11px; height: 11px; border-radius: 50%; background: var(--orange-btn) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 4 7.2 6H4a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-3.2L15 4H9Zm3 4.5a4.5 4.5 0 1 1 0 9 4.5 4.5 0 0 1 0-9Zm0 2a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5Z'/%3E%3C/svg%3E") center/7px no-repeat; flex: none; }
.p2-tag.has-foto .cam { display: inline-block; }
.p2-tag.has-foto { animation: tag-hint 2.4s ease-in-out 1.2s 2; }
@keyframes tag-hint { 50% { transform: translate(-50%, -50%) scale(1.12); background: #fff; } }
.p2-tag:hover { background: #fff; }
.p2-tag.sel { background: var(--ink); color: #fff; }
.p2-entry { font-size: 9px; padding: 2px 6px; }
.p2-hint { position: absolute; left: 12px; top: 12px; z-index: 2; margin: 0; font-size: 12px; font-weight: 650; color: var(--ink); background: rgba(255,255,255,.92); padding: 5px 10px; border-radius: 99px; box-shadow: 0 1px 4px rgba(0,0,0,.12); display: inline-flex; gap: 6px; align-items: center; pointer-events: none; }

/* ===== Coluna lateral com abas ===== */
.res-side { display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto; gap: 0; padding: 0; overflow: hidden; }
.rs-head { padding: 22px 26px 14px; display: flex; flex-direction: column; gap: 8px; }
.rs-brand { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.rs-brand .logo-s { height: 34px; }
.logo-predio { height: 38px; max-width: 120px; object-fit: contain; }
.rs-head .res-hello { margin: 4px 0 0; font-size: 15px; }
.rs-head .res-tipo { font-size: clamp(30px, 3vw, 44px); }
.rs-head .res-tipo .res-quartos { font-size: .45em; margin-top: 6px; }
.rs-tabs { display: flex; gap: 4px; padding: 0 18px; border-bottom: 1px solid var(--concrete); overflow-x: auto; scrollbar-width: none; }
.rs-tabs::-webkit-scrollbar { display: none; }
.rs-tabs button { flex: none; border: 0; background: none; padding: 12px 10px 11px; font: 700 14px var(--font-ui); color: var(--muted); border-bottom: 3px solid transparent; cursor: pointer; white-space: nowrap; }
.rs-tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--orange); }
.rs-tabs button:focus-visible { outline: 3px solid var(--ink); outline-offset: -3px; }
.rs-body { overflow-y: auto; padding: 18px 26px 18px; display: flex; flex-direction: column; gap: 16px; }
.rs-panel { display: flex; flex-direction: column; gap: 16px; }
.rs-panel[hidden] { display: none !important; }
.rs-foot { display: flex; gap: 10px; padding: 12px 18px calc(12px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--concrete); background: var(--white); }
.rs-foot .btn-wa { flex: 1; min-height: 52px; font-size: 16px; }
.rs-foot .btn-ghost { min-height: 52px; padding: 0 18px; font-size: 15px; }
.qr-line { display: flex; gap: 14px; align-items: center; background: var(--concrete-2); border-radius: 14px; padding: 12px; }
.qr-line #qr { width: 92px; height: 92px; flex: none; background: #fff; padding: 6px; border-radius: 8px; box-sizing: content-box; }
.qr-line #qr svg, .qr-line #qr img { width: 100%; height: 100%; display: block; }
.qr-line p { margin: 0; font-size: 14px; color: var(--muted); }
.qr-line b { color: var(--ink); }
.res-side .fine { margin-top: auto; }

/* dica sobre a planta */
.p2-hint { top: -34px; left: 0; }
.p2-hint .cam-i { width: 14px; height: 14px; border-radius: 50%; background: var(--orange-btn); display: inline-block; }

@media (max-width: 900px), (orientation: portrait) {
  .res-side { display: block; overflow: visible; }
  .rs-tabs { position: sticky; top: 0; z-index: 4; background: var(--white); }
  .rs-body { overflow: visible; }
  .rs-foot { position: sticky; bottom: 0; z-index: 4; }
}

/* legenda recolhida: planta usa a largura toda */
@media (min-width: 901px) and (orientation: landscape) {
  .result.legend-closed .plan2d { left: 18px; right: 18px; }
  .result.legend-closed .res-plan .plan-area { margin-left: 0; }
  .result.legend-closed .seg-styles { left: auto; right: 18px; transform: none; }
  .result.legend-closed .legend { width: auto; }
  .plan2d, .res-plan .plan-area { transition: left .3s ease, margin .3s ease; }
}
.legend:not([open]) summary::before { content: ''; }
.legend:not([open]) summary span::after { content: '  ver lista'; margin-left: 8px; font-weight: 600; color: var(--muted); font-size: 14px; }

/* ===== Abertura v2: cabe numa tela, fotos reais dos 2 prédios ===== */
.intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); height: 100dvh; min-height: 0; overflow: hidden; background: var(--orange); padding: 0; }
.intro-left { display: flex; flex-direction: column; justify-content: space-between; gap: 24px; padding: clamp(24px, 4vh, 48px) clamp(24px, 4vw, 64px); min-height: 0; }
.intro .logo-t { height: clamp(40px, 6vh, 60px); align-self: flex-start; }
.intro-copy { display: flex; flex-direction: column; gap: clamp(14px, 2.4vh, 24px); }
.intro h1 { font-size: clamp(36px, min(5.2vw, 8.5vh), 78px); line-height: .98; max-width: 11ch; color: var(--ink); }
.intro .lead { margin: 0; font-size: clamp(17px, 1.6vw, 21px); max-width: 34ch; line-height: 1.4; color: #2A1A0C; }
.intro-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.intro-chips li { background: rgba(255,255,255,.22); color: var(--ink); font-weight: 700; font-size: 14px; padding: 7px 12px; border-radius: 99px; }
.intro .btn { margin: 4px 0 0; align-self: flex-start; }
.intro-proof { margin: 0; font-size: 15px; color: #3A2410; }
.intro-proof b { font-weight: 850; color: var(--ink); }
.intro-right { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 14px 14px 14px 0; min-height: 0; }
.ib { position: relative; margin: 0; border-radius: 22px; overflow: hidden; background: #333; min-height: 0; box-shadow: 0 20px 40px rgba(90,40,0,.25); }
.ib img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: ib-drift 18s ease-in-out infinite alternate; }
.ib:nth-child(2) img { animation-delay: -9s; }
@keyframes ib-drift { from { transform: scale(1.04) translateY(0); } to { transform: scale(1.12) translateY(-2%); } }
.ib figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 48px 18px 18px; color: #fff; display: flex; flex-direction: column; gap: 2px; background: linear-gradient(transparent, rgba(0,0,0,.72)); }
.ib figcaption b { font-size: clamp(18px, 1.7vw, 24px); font-weight: 850; font-variation-settings: 'wdth' 110; }
.ib figcaption span { font-size: 14px; opacity: .9; }
.ib .ib-preco { margin-top: 6px; align-self: flex-start; background: var(--orange-btn); color: #fff; opacity: 1; font-weight: 800; padding: 4px 10px; border-radius: 99px; font-size: 13px; }
#start { animation: nudge 2.8s ease-in-out infinite; }

@media (max-width: 900px), (orientation: portrait) {
  .intro { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); height: auto; min-height: 100dvh; overflow: visible; }
  .intro-right { order: -1; height: 34dvh; padding: 12px 12px 0; }
  .intro-left { gap: 18px; }
  .intro h1 { font-size: clamp(34px, 9vw, 64px); max-width: 12ch; }
}
@media (prefers-reduced-motion: reduce) { .ib img { animation: none; } }

/* ===== Cadastro v2: cartão organizado e visível ===== */
.lead-s { background: var(--concrete); }
.lead-grid { min-height: 100dvh; }
.lead-form {
  align-self: center; justify-self: center; width: min(560px, calc(100% - 32px)); max-width: none;
  margin: 24px auto; padding: clamp(22px, 3vw, 34px); gap: 14px;
  background: var(--white); border-radius: 22px; box-shadow: 0 20px 50px rgba(42,37,34,.14);
}
.lead-form h2 { font-size: clamp(30px, 3.4vw, 44px); }
.lead-form .lead { color: var(--ink); font-size: 16px; margin: -4px 0 4px; max-width: none; }
.fld > span, .fld legend { font-size: 15px; font-weight: 750; color: var(--ink); margin-bottom: 0; }
.fld input { height: 56px; border: 2px solid #CFC8BF; background: #FCFBF9; font-size: 18px; }
.fld input::placeholder { color: #9A918A; }
.fld input:focus { border-color: var(--orange); background: #fff; box-shadow: 0 0 0 4px rgba(240,125,26,.18); }
.fld.prazo { margin-top: 2px; }
.chips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 6px; }
.chip span {
  width: 100%; justify-content: center; text-align: center; min-height: 56px; padding: 6px 10px; line-height: 1.2;
  border-radius: 14px; border: 2px solid #CFC8BF; background: #FCFBF9; font-size: 15px; font-weight: 700; color: var(--ink);
}
.chip input:checked + span { border-color: var(--orange); background: #FFF1E4; color: var(--ink); box-shadow: inset 0 0 0 1px var(--orange); }
.chip input:checked + span::before { content: "✓"; margin-right: 6px; color: var(--orange-btn); font-weight: 900; }
.chip:focus-within { outline: none; }
.chip input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 2px; }
.check { align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; background: var(--concrete-2); border: 2px solid transparent; color: var(--ink); font-size: 14px; margin-top: 6px; }
.check:has(input:checked) { border-color: var(--orange); background: #FFF1E4; }
.check input { width: 26px; height: 26px; }
.lead-form .btn { align-self: stretch; margin-top: 8px; }
.err { font-weight: 600; }
@media (max-width: 560px) { .chips { grid-template-columns: 1fr; } }

/* ===== Controles da planta mais compactos ===== */
.seg-styles { padding: 4px; border-radius: 12px; }
.seg-styles button { min-height: 36px; padding: 0 12px; font-size: 14px; border-radius: 9px; }
.seg-styles button .dot { width: 11px; height: 11px; }
@media (min-width: 901px) and (orientation: landscape) {
  .plan2d { top: 72px; }
  .res-plan .plan-area { margin-top: 72px; }
}
.p2-hint { top: auto; bottom: 10px; left: 50%; transform: translateX(-50%); font-size: 11px; padding: 4px 10px; white-space: nowrap; }
.p2-hint .cam-i { width: 11px; height: 11px; }

/* ===== Ver outros apês ===== */
.outros { position: relative; margin-top: 4px; }
.outros summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; font: 700 14px var(--font-ui); color: var(--ink); padding: 8px 14px; border-radius: 99px; border: 2px solid var(--concrete); background: var(--white); }
.outros summary::-webkit-details-marker { display: none; }
.outros summary::after { content: ""; width: 7px; height: 7px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg) translateY(-2px); }
.outros[open] summary { border-color: var(--orange); }
.outros-list { position: absolute; z-index: 20; top: calc(100% + 8px); left: 0; width: min(380px, calc(100vw - 32px)); max-height: 60vh; overflow-y: auto; background: var(--white); border-radius: 16px; box-shadow: 0 18px 44px rgba(42,37,34,.22); padding: 10px; display: grid; gap: 10px; }
.outros-h { margin: 4px 6px 0; font-size: 13px; font-weight: 800; color: var(--muted); }
.outros-grupo { display: grid; gap: 6px; }
.outro { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; border: 2px solid transparent; background: var(--concrete-2); border-radius: 12px; padding: 6px; cursor: pointer; font-family: var(--font-ui); color: var(--ink); }
.outro img { width: 64px; height: 48px; object-fit: contain; background: #fff; border-radius: 8px; flex: none; }
.outro b { display: block; font-size: 15px; }
.outro small { display: block; font-size: 13px; color: var(--muted); }
.outro:hover { border-color: #F4B07A; }
.outro.atual { border-color: var(--orange); background: #FFF1E4; }

/* barra de ferramentas centralizada sob a planta */
.toolbar { padding: 5px; gap: 4px; border-radius: 16px; }
.toolbar .tool, .toolbar .seg-view button { min-height: 42px; font-size: 14px; }
@media (min-width: 901px) and (orientation: landscape) {
  .toolbar { left: calc(290px + (100% - 290px) / 2); }
  .result.legend-closed .toolbar { left: 50%; }
}

/* ===== Coluna sem rolagem: tudo cabe na tela ===== */
.rs-head { padding: 16px 22px 10px; gap: 4px; }
.rs-brand .logo-s { height: 28px; }
.logo-predio { height: 32px; }
.rs-head .res-hello { margin-top: 2px; font-size: 14px; }
.rs-head .res-tipo { font-size: clamp(28px, 2.6vw, 38px); }
.rs-head .res-tipo .res-quartos { font-size: .46em; margin-top: 4px; }
.res-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 6px; }
.res-meta .res-tag, .res-meta .res-area { font-size: 14px; padding: 5px 12px; }
.res-meta .outros { margin: 0; }
.res-meta .outros summary { padding: 5px 12px; font-size: 13px; }
.rs-tabs { padding: 0 14px; }
.rs-tabs button { padding: 10px 9px 9px; font-size: 14px; }
.rs-body { padding: 14px 22px; gap: 12px; overflow-y: auto; }
.rs-panel { gap: 12px; }
.res-resumo { font-size: 15px; line-height: 1.45; margin: 0; }
.res-estilo { padding: 14px 16px; }
.res-estilo h3 { font-size: 18px; }
.res-estilo p { font-size: 14px; margin-top: 2px; }
.res-estilo ul { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.res-estilo li { margin: 0; font-size: 13px; background: var(--white); padding: 5px 10px; border-radius: 99px; gap: 6px; align-items: center; }
.res-estilo li::before { margin-top: 0; width: 6px; height: 6px; }
.sent { font-size: 14px; padding: 10px 14px; }
.qr-line { padding: 10px; gap: 12px; }
.qr-line #qr { width: 64px; height: 64px; padding: 4px; }
.qr-line p { font-size: 13px; }
.gal-main img { aspect-ratio: 16/10; }
.gal-thumbs button { width: 64px; height: 46px; }
.vid-nota { margin: 8px 0 0; font-size: 13px; color: var(--muted); }
.predio { padding: 14px 16px; }
.predio-dl { gap: 8px 14px; margin-top: 10px; }
.predio-dl dd { font-size: 16px; }
.predio .perks { font-size: 13px; margin-top: 8px; }
.difs h3 { font-size: 16px; margin-bottom: 8px; }
.chips-list { gap: 6px; }
.chips-list li { font-size: 13px; padding: 5px 10px; }
.rs-panel .fine { margin: 0; font-size: 12px; color: var(--muted); }
.map-box { aspect-ratio: 16/11; }
.loc-end { margin: 0; }
.perto { margin-top: 4px; gap: 4px; }
.perto li { font-size: 14px; }
.rs-foot { padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); }
.rs-foot .btn-wa, .rs-foot .btn-ghost { min-height: 48px; }

/* ===== Aba Prédio limpa ===== */
.predio { background: var(--concrete-2); }
.predio[data-predio="atalaia"] { background: var(--concrete-2); }
.predio-top .logo-m { height: 38px; max-width: 90px; }
.predio-top h3 { font-size: 17px; }
.predio-top p { font-size: 12px; }
.pd-preco { margin: 12px 0 0; font-size: 22px; font-weight: 850; font-variation-settings: 'wdth' 110; color: var(--ink); }
.pd-linha { margin: 6px 0 0; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 14px; color: var(--muted); }
.pd-linha b { color: var(--ink); font-weight: 750; }
.predio .perks { margin-top: 10px; font-size: 13px; color: var(--muted); }
.difs-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; }
.difs-list li { display: flex; gap: 8px; align-items: baseline; font-size: 14px; color: var(--ink); }
.difs-list li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); flex: none; transform: translateY(-2px); }

/* ===== Tour em vídeo ===== */
.vv { position: fixed; inset: 0; z-index: 60; background: #0F0D0C; display: grid; grid-template-rows: minmax(0, 1fr) auto; }
.vv-box { position: relative; min-height: 0; }
.vv-box iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vv-bar { display: flex; align-items: center; gap: 10px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); background: #1A1715; }
.vv-bar p { margin: 0 auto 0 0; color: #fff; font-weight: 700; font-size: 15px; }
.vv-btn { border: 0; border-radius: 12px; min-height: 48px; padding: 0 18px; font: 700 15px var(--font-ui); cursor: pointer; background: var(--orange-btn); color: #fff; }
.vv-close { background: rgba(255,255,255,.14); }
.vv-btn:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
@media (max-width: 560px) { .vv-bar { flex-wrap: wrap; } .vv-bar p { width: 100%; } }
.p2-tag.p2-entry { background: #F07D1A; color: #fff; }
@media (min-width: 901px) and (orientation: landscape) {
  .result { grid-template-columns: minmax(0, 1fr) clamp(360px, 30vw, 470px); }
}

/* ===== Abertura: cartões horizontais empilhados, sem distorção ===== */
.intro-right { grid-template-columns: 1fr; grid-template-rows: 1fr 1fr; gap: 14px; padding: 18px 18px 18px 0; }
.ib { border-radius: 20px; box-shadow: 0 14px 34px rgba(90,40,0,.22); }
.ib img { animation: none; transform: none; object-fit: cover; }
.ib-moriah img { object-position: 50% 45%; }
.ib-atalaia img { object-position: 50% 62%; }
.ib figcaption { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 60px 20px 18px; background: linear-gradient(transparent, rgba(0,0,0,.75)); }
.ib-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ib-txt b { font-size: clamp(20px, 1.9vw, 28px); line-height: 1.1; }
.ib-txt span { font-size: 14px; opacity: .9; }
.ib .ib-preco { margin: 0; align-self: flex-end; flex: none; font-size: 13px; font-weight: 600; padding: 8px 14px; border-radius: 12px; background: rgba(255,255,255,.95); color: var(--ink); text-align: right; line-height: 1.2; }
.ib .ib-preco strong { display: block; font-size: 17px; font-weight: 850; color: var(--orange-ink); }
@media (max-width: 900px), (orientation: portrait) {
  .intro-right { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr; padding: 12px 12px 0; }
  .ib figcaption { flex-direction: column; align-items: flex-start; padding: 40px 12px 12px; }
  .ib .ib-preco { align-self: flex-start; text-align: left; padding: 6px 10px; }
}

/* "Ver outros apês" em laranja */
.res-meta .outros summary, .outros summary { background: var(--orange-btn); border-color: var(--orange-btn); color: #fff; font-weight: 750; box-shadow: 0 3px 10px rgba(217,101,12,.3); }
.outros summary::after { border-color: #fff; }
.outros summary:hover { background: #BF5709; border-color: #BF5709; }
.outros[open] summary { background: #BF5709; border-color: #BF5709; }
.outros summary:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }

/* lista "outros apês" ocupa a largura da coluna (não corta) */
.rs-head { position: relative; }
.res-meta .outros, .outros { position: static; }
.outros-list { left: 14px; right: 14px; width: auto; top: calc(100% - 4px); max-height: min(62vh, 560px); }
.outro span { min-width: 0; }
.outro b, .outro small { white-space: normal; overflow-wrap: anywhere; }
@media (max-width: 900px), (orientation: portrait) {
  .outros-list { position: absolute; left: 8px; right: 8px; }
}

/* rodapé: botão WhatsApp numa linha, centralizado, sem corte */
.rs-foot { align-items: center; padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px)); }
.rs-foot .btn-wa { white-space: nowrap; justify-content: center; text-align: center; gap: 10px; font-size: 16px; padding: 0 16px; min-width: 0; }
.rs-foot .btn-ghost { flex: none; }
.wa-ico { width: 20px; height: 20px; flex: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M12 2a10 10 0 0 0-8.6 15.1L2 22l5-1.3A10 10 0 1 0 12 2Zm0 18.2c-1.6 0-3.1-.4-4.4-1.2l-.3-.2-3 .8.8-2.9-.2-.3A8.2 8.2 0 1 1 12 20.2Zm4.5-6.1c-.2-.1-1.5-.7-1.7-.8-.2-.1-.4-.1-.6.1l-.8 1c-.1.2-.3.2-.5.1a6.7 6.7 0 0 1-3.3-2.9c-.2-.4.3-.4.8-1.3.1-.2 0-.3 0-.4l-.8-1.8c-.2-.5-.4-.4-.6-.4h-.5a1 1 0 0 0-.7.3 3 3 0 0 0-.9 2.2 5.2 5.2 0 0 0 1.1 2.7 11.8 11.8 0 0 0 4.5 4c1.7.7 2.4.8 3.2.6.5-.1 1.5-.6 1.7-1.2.2-.6.2-1.1.2-1.2-.1-.1-.3-.2-.5-.3Z'/%3E%3C/svg%3E") center/contain no-repeat; }

/* tag do tipo em cor neutra (o laranja fica só para ações) */
.res-meta .res-tag, .res-tag { background: var(--concrete); color: var(--ink); box-shadow: none; }

/* tag + área + "ver outros apês" numa linha só */
.res-meta { flex-wrap: nowrap; gap: 6px; }
.res-meta .res-tag, .res-meta .res-area { font-size: 12.5px; padding: 6px 10px; white-space: nowrap; flex: none; }
.res-meta .outros { flex: none; margin-left: auto; }
.res-meta .outros summary { font-size: 12.5px; padding: 6px 11px; white-space: nowrap; gap: 6px; }
.res-meta .outros summary::after { width: 6px; height: 6px; }
@media (min-width: 901px) and (orientation: landscape) {
  .result { grid-template-columns: minmax(0, 1fr) clamp(390px, 30vw, 470px); }
}
.res-side, .rs-head, .res-meta { min-width: 0; }
.rs-head { padding-left: 18px; padding-right: 18px; }
@media (min-width: 901px) and (orientation: landscape) {
  .result { grid-template-columns: minmax(0, 1fr) clamp(410px, 31vw, 480px); }
}

/* "Ver outros apês" primeiro, em laranja; sem a tag do tipo */
.res-meta .res-tag { display: none !important; }
.res-meta .outros { order: -1; margin-left: 0; }
.res-meta .res-area { margin-left: 0; }

/* ===== Abertura moderna: fundo claro, laranja só nos destaques ===== */
.intro { background: #F1EFEC; color: var(--ink); }
.intro .logo-t { filter: none; opacity: 1; }
.intro h1 { color: var(--ink); letter-spacing: -0.02em; }
.intro .lead { color: #4A433E; }
.intro-chips li { background: #fff; color: var(--ink); border: 1px solid #E2DDD6; font-weight: 650; }
.intro-chips li::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); margin-right: 8px; vertical-align: 1px; }
.intro #start { background: var(--orange-btn); color: #fff; box-shadow: 0 10px 24px rgba(217,101,12,.28); }
.intro #start:hover { background: #BF5709; }
.intro-proof { color: #5A524C; padding-top: 16px; border-top: 1px solid #E2DDD6; max-width: 420px; }
.intro-proof b { color: var(--orange-ink); }
.ib { box-shadow: 0 18px 40px rgba(42,37,34,.16); }

/* cadastro: lado esquerdo neutro também */
.lead-teaser { background: #E6E2DC; }
.lead-teaser::after { color: var(--ink); text-shadow: 0 2px 16px rgba(255,255,255,.8); }

/* Dica no topo (no lugar do antigo seletor de estilos) */
.top-hint { margin: 0; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; pointer-events: none;
  background: #fff; color: var(--ink); font-size: 14px; font-weight: 650; padding: 9px 16px; border-radius: 12px;
  box-shadow: 0 4px 18px rgba(30,22,14,.10); }
.top-hint .cam-i { width: 12px; height: 12px; border-radius: 50%; background: var(--orange-btn); display: inline-block; flex: none; }
/* Dica do topo acompanha a planta quando a aba "Cômodos" fecha */
.result.legend-closed .seg-styles.top-hint { left: 50%; right: auto; transform: translateX(-50%); }
.vv-txt { margin-right: auto; min-width: 0; }
.vv-bar .vv-txt p { margin: 0; }
.vv-bar .vv-sub { margin-top: 3px; color: rgba(255,255,255,.75); font-weight: 500; font-size: 13px; }
@media (max-width: 560px) { .vv-txt { width: 100%; } }
/* Switch de paredes dentro do 3D (canto superior direito da maquete) */
.walls-sw { position: absolute; right: 18px; top: 18px; z-index: 6; display: none; align-items: center; gap: 4px;
  background: #fff; border-radius: 12px; padding: 4px 4px 4px 12px; box-shadow: 0 4px 18px rgba(30,22,14,.10); font-size: 13px; font-weight: 650; color: var(--ink); }
.result.view-3d .walls-sw { display: inline-flex; }
.walls-sw span { margin-right: 4px; color: #6E6660; }
.walls-sw button { border: 0; background: transparent; font: inherit; color: inherit; padding: 7px 12px; border-radius: 9px; cursor: pointer; min-height: 34px; }
.walls-sw button[aria-checked="true"] { background: var(--ink); color: #fff; }
@media (max-width: 900px) { .walls-sw { top: auto; bottom: 84px; right: 12px; } }
.walls-sw { top: 50%; right: 16px; bottom: auto; transform: translateY(-50%); flex-direction: column; align-items: stretch; padding: 8px 6px 6px; gap: 4px; }
.walls-sw span { margin: 0 0 2px; text-align: center; font-size: 12px; }
@media (max-width: 900px) { .walls-sw { top: 50%; bottom: auto; right: 10px; } }
