/* =====================================================================
   Identidade final: tipografia de alto padrão, firme e legível,
   menos caixas, seções mais juntas. Carregado por último.
   ===================================================================== */
:root {
  --display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Manrope', system-ui, sans-serif;
  --text: #f3eee6;
  --sand: #ddd2bf;
  --mute: #b9c1c7;
  --line: rgba(221, 210, 191, 0.18);
  --line-strong: rgba(221, 210, 191, 0.34);
  --ink-soft: rgba(255, 255, 255, 0.86);
}

body { font-family: var(--sans); font-weight: 500; font-size: 17px; line-height: 1.6; color: var(--text); }
.display { font-family: var(--display); font-weight: 600; font-optical-sizing: auto; letter-spacing: -0.012em; line-height: 1.06; }
.display em { font-style: normal; color: var(--accent); }
.mono { font-family: var(--sans); font-size: 0.86rem; font-weight: 600; letter-spacing: 0; text-transform: none; }
.kicker { color: var(--accent); font-weight: 600; letter-spacing: 0; text-transform: none; font-size: 0.9rem; }
strong, b { font-weight: 700; }
.btn { font-family: var(--sans); font-weight: 700; letter-spacing: 0.005em; }

/* atalho de teclado e utilitários de acessibilidade */
.skip { position: fixed; left: 12px; top: -64px; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: 10px 16px; border-radius: 6px; font-weight: 700; text-decoration: none; transition: top 0.2s; }
.skip:focus { top: 12px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* marca: leva de volta ao início */
.brand { cursor: pointer; }
.brand-word { font-family: var(--display); font-weight: 600; font-size: 1.85rem; letter-spacing: -0.01em; }
.brand-sub { font-family: var(--sans); font-weight: 600; font-size: 0.82rem; letter-spacing: 0.01em; color: var(--ink-soft); }
.nav-back, .nav-cta { font-weight: 600; }

/* ---------- tela principal ---------- */
.hp { width: 330px; padding: 24px 24px 20px; background: rgba(10, 16, 24, 0.56); border: 0; border-radius: 6px; }
.hp-title { font-family: var(--display); font-weight: 600; font-size: 2.35rem; line-height: 1.04; }
.hp-lead { font-weight: 500; font-size: 0.9rem; color: var(--ink-soft); }
.hp-lbl { font-weight: 600; font-size: 0.9rem; color: var(--ink-soft); }
.hp-num { font-family: var(--display); font-weight: 600; font-size: 4.4rem; }
.hp-type { font-weight: 700; font-size: 1rem; }
.hp-desc { font-weight: 500; font-size: 0.88rem; color: var(--ink-soft); }
.hp-price { font-weight: 600; color: var(--ink-soft); }
.hp-link { font-weight: 600; color: var(--ink-soft); }
.hp-units button { font-weight: 600; }
.hp-units button b { font-family: var(--display); font-weight: 600; }
.hp-units button span, .hp-units button i { font-weight: 500; color: var(--ink-soft); }
.hero .hl-num { font-family: var(--sans); font-weight: 600; }
.kp-t { font-weight: 700; }

/* ---------- dentro do apartamento ---------- */
.room-title { font-family: var(--display); font-weight: 600; }
.room-line { font-weight: 500; color: var(--ink-soft); }
.room-pills button { font-weight: 600; }
.room-more button, .room-note { font-weight: 600; }
.co-floor, .ap-title, .ap-price, .ap-stats dd, .co-price { font-family: var(--display); font-weight: 600; }
.co-head, .co-spec, .co-go, .ap-head, .ap-stats dt, .ap-text { font-weight: 600; }
.lbl { font-family: var(--sans); font-weight: 700; letter-spacing: 0; text-transform: none; font-size: 0.74rem; }

/* ---------- seções: sem caixas, mais juntas ---------- */
.sheet-wrap { box-shadow: 0 -60px 90px 30px var(--night); }
.sheet { padding: clamp(48px, 6vw, 84px) var(--gut) 0; max-width: 1240px; }
.sheet-head { margin-bottom: 28px; max-width: 780px; }
.sheet-head .display { font-size: clamp(2.1rem, 4.2vw, 3.4rem); }
.lead { font-size: 1.05rem; font-weight: 500; color: var(--sand); margin-top: 12px; }

.types { gap: clamp(28px, 4vw, 56px); }
.type { background: none; border: 0; border-top: 1px solid var(--line-strong); border-radius: 0; padding: 18px 0 0; gap: 14px; }
.type h3 { font-family: var(--display); font-weight: 600; font-size: 2.1rem; }
.type .area { font-family: var(--display); font-weight: 600; font-size: 1.6rem; }
.type-meta { margin: 0; font-weight: 600; font-size: 0.9rem; color: var(--mute); }
.type .plan { padding: 0; border-radius: 6px; overflow: hidden; background: #f4f1ec; }
.type .plan img { height: 300px; padding: 10px; }
.type p { font-weight: 500; }
.rooms { font-size: 0.92rem; font-weight: 500; }
.rooms li { padding: 7px 0; }
.rooms li span:last-child { font-family: var(--sans); font-size: 0.88rem; font-weight: 700; color: var(--sand); }
.type-actions { margin-top: 4px; }

.decor { margin-top: clamp(36px, 5vw, 56px); }
.decor-title { margin: 0 0 14px; font-weight: 700; color: var(--sand); }
.shot { flex: 0 0 min(330px, 72vw); }
.shot img { border-radius: 6px; }
.shot span { font-family: var(--sans); font-weight: 600; font-size: 0.9rem; color: var(--mute); letter-spacing: 0; text-transform: none; }

.lazer-tabs { gap: 4px 22px; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.lazer-tabs button { background: none; border: 0; border-radius: 0; padding: 10px 0; font-weight: 700; font-size: 0.95rem; color: var(--mute); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.lazer-tabs button[aria-selected='true'] { background: none; color: var(--text); border-color: var(--accent); }
.lazer-main { border-radius: 6px; }
.lazer-side h3 { font-family: var(--display); font-weight: 600; font-size: 2.1rem; }
.lazer-floor { margin: 0 0 6px; color: var(--accent); font-weight: 700; }
.lazer-side p { font-weight: 500; }
.lazer-mini button { border-radius: 6px; }
.lazer-plan { background: none; border: 0; padding: 0; }

.place { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.place-text .display { font-size: clamp(2.1rem, 4.2vw, 3.4rem); }
.addr { margin: 18px 0 12px; font-weight: 700; color: var(--sand); }
.link-arrow { color: var(--accent); font-weight: 700; text-decoration: none; border-bottom: 1px solid rgba(255, 154, 77, 0.45); padding-bottom: 2px; }
.link-arrow:hover { border-color: var(--accent); }
.place-img { margin: 0; }
.place-img img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 6px; }
.place-img figcaption { margin-top: 10px; font-weight: 600; font-size: 0.88rem; color: var(--mute); }

.facts { padding-top: clamp(40px, 5vw, 64px); }
.stats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; background: none; border: 0; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); border-radius: 0; overflow: visible; }
.stats div { background: none; padding: 20px 16px 18px 0; }
.stats div + div { padding-left: 18px; border-left: 1px solid var(--line); }
.stats dt { font-family: var(--sans); font-weight: 600; font-size: 0.86rem; color: var(--mute); letter-spacing: 0; text-transform: none; }
.stats dd { font-family: var(--display); font-weight: 600; font-size: clamp(1.6rem, 2.6vw, 2.4rem); margin-top: 4px; }
.facts-cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); margin-top: 36px; }
.h-small { font-family: var(--sans); font-weight: 700; font-size: 1rem; color: var(--sand); letter-spacing: 0; text-transform: none; margin: 0 0 10px; }
.team li { padding: 10px 0; font-weight: 500; }
.team li span:last-child { font-weight: 700; }
.progress li { font-weight: 600; }
.progress .pct { font-family: var(--sans); font-weight: 700; color: var(--sand); }

.form-sheet { max-width: 1240px; padding-bottom: clamp(48px, 6vw, 84px); }
.form-sheet > * { max-width: 780px; }
.lead-form { background: none; border: 0; border-radius: 0; padding: 0; gap: 22px; }
.field label, .field legend { font-family: var(--sans); font-weight: 700; font-size: 0.9rem; color: var(--sand); letter-spacing: 0; text-transform: none; }
.field input[type='text'], .field input[type='tel'] { background: transparent; border: 0; border-bottom: 1px solid var(--line-strong); border-radius: 0; padding: 12px 0; font-weight: 600; font-size: 1.05rem; }
.field input:focus { border-color: var(--accent); }
.chips span { font-weight: 600; }
.check { font-weight: 500; }
.check a { color: var(--sand); }
.form-error { color: #ffb3a7; font-weight: 700; }
.demo-note { font-weight: 600; font-size: 0.84rem; color: var(--mute); letter-spacing: 0; text-transform: none; text-align: left; }
.lead-done { background: none; border: 0; border-left: 2px solid var(--accent); border-radius: 0; padding: 4px 0 4px 22px; }
.lead-done h3 { font-family: var(--display); font-weight: 600; font-size: 2.4rem; }
.payload { font-family: ui-monospace, Consolas, monospace; font-weight: 500; }

/* rodapé com os dados legais */
.foot { padding: 36px var(--gut) 56px; margin-top: clamp(40px, 5vw, 64px); max-width: 1240px; }
.foot-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 14px 28px; margin-bottom: 18px; }
.foot-brand { margin: 0; }
.foot-links { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.foot-links a { color: var(--sand); font-weight: 600; font-size: 0.9rem; text-decoration: none; border-bottom: 1px solid var(--line); }
.foot-links a:hover { border-color: var(--sand); }
.foot-legal { max-width: 920px; margin: 0 0 12px; font-size: 0.84rem; line-height: 1.7; font-weight: 500; color: var(--mute); }
.foot-legal strong { color: var(--sand); }

/* aviso de privacidade */
.consent { position: fixed; left: 16px; bottom: 16px; z-index: 45; max-width: 540px; display: flex; gap: 14px; align-items: center; background: rgba(10, 15, 21, 0.95); border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; color: var(--text); font-size: 0.88rem; font-weight: 500; box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35); }
.consent p { margin: 0; }
.consent a { color: var(--sand); }
.consent[hidden] { display: none !important; }

@media (max-width: 980px) {
  .stats { grid-template-columns: repeat(3, 1fr); }
  .stats div:nth-child(4) { border-left: 0; padding-left: 0; }
  .stats div:nth-child(n+4) { border-top: 1px solid var(--line); }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .place, .facts-cols { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats div:nth-child(n) { border-left: 0; padding-left: 0; }
  .stats div:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line); }
  .stats div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .type .plan img { height: 220px; }
  .hp { width: auto; }
  .hp-title { font-size: 1.85rem; }
  .hp-num { font-size: 3.2rem; }
  .consent { left: 8px; right: 8px; bottom: 8px; flex-direction: column; align-items: flex-start; }
}

/* abaixo da torre a barra ganha fundo, para a marca não passar por cima do texto */
.nav { transition: background 0.35s, padding 0.35s, backdrop-filter 0.35s; }
body:not(.mode-explore) .nav { background: rgba(12, 17, 23, 0.86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); padding-top: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
body:not(.mode-explore) .nav .brand-word { font-size: 1.5rem; }
.foot { margin-top: 0; }
.lazer-side h3 { line-height: 1.1; margin: 0 0 12px; }
.check input[type='checkbox'] { accent-color: var(--accent); width: 20px; height: 20px; flex: 0 0 20px; margin-top: 2px; }
@media (max-width: 760px) { .team li { flex-wrap: wrap; gap: 2px 12px; } .team li span:last-child { text-align: right; margin-left: auto; } }

/* ---------- interior imersivo ---------- */
.in-hots { position: absolute; inset: 0; pointer-events: none; z-index: 4; }
.in-hot { position: absolute; left: 0; top: 0; display: flex; align-items: center; gap: 10px; padding: 0; margin: -14px 0 0 -14px; background: none; border: 0; color: #fff; font: 700 0.88rem/1 var(--sans); cursor: pointer; pointer-events: auto; transform-origin: 14px 14px; transition: opacity 0.35s; text-shadow: 0 1px 10px rgba(0, 0, 0, 0.55); }
.in-hot.off { opacity: 0; pointer-events: none; }
.in-hot i { position: relative; width: 28px; height: 28px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.95); background: rgba(255, 255, 255, 0.16); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35); flex: 0 0 28px; }
.in-hot i::after { content: ''; position: absolute; inset: 8px; border-radius: 50%; background: #fff; }
.in-hot i::before { content: ''; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.6); animation: in-ping 2.6s var(--ease, ease-out) infinite; }
.in-hot span { padding: 7px 12px; border-radius: 999px; background: rgba(12, 17, 23, 0.55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); opacity: 0.92; transition: opacity 0.25s, background 0.25s; white-space: nowrap; }
.in-hot:hover span, .in-hot:focus-visible span { opacity: 1; background: rgba(12, 17, 23, 0.8); }
.in-hot:hover i { background: rgba(255, 255, 255, 0.35); }
@keyframes in-ping { 0% { transform: scale(1); opacity: 0.9; } 70%, 100% { transform: scale(2.1); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .in-hot i::before { animation: none; } }

.in-cursor { position: absolute; left: 0; top: 0; width: 40px; height: 40px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.9); box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.18), inset 0 0 0 1px rgba(0, 0, 0, 0.12); background: radial-gradient(circle, rgba(255, 255, 255, 0.28) 0 18%, rgba(255, 255, 255, 0.08) 19% 100%); pointer-events: none; opacity: 0; z-index: 3; transition: opacity 0.2s; }
.in-cursor.on { opacity: 1; }
.in-cursor.go { animation: in-go 0.5s ease-out; }
@keyframes in-go { 0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7); } 100% { box-shadow: 0 0 0 22px rgba(255, 255, 255, 0); } }
body[data-ex="room"] #scene { touch-action: none; }
/* dentro do apartamento o cenário é o protagonista: textos menores, sem cobrir o ambiente */
body[data-ex="room"] .room-title { font-size: clamp(1.5rem, 2.6vw, 2.2rem); margin-bottom: 4px; }
body[data-ex="room"] .room-line { font-size: 0.86rem; margin-bottom: 12px; max-width: 420px; }
body[data-ex="room"] .room-pills button { padding: 7px 12px; font-size: 0.8rem; }
.nav-back { white-space: nowrap; }
@media (max-width: 760px) {
  body:not([data-ex="hero"]) .brand-sub { display: none; }
  body[data-ex="room"] .room-ui { bottom: 14px; }
  body[data-ex="room"] .room-title { font-size: 1.35rem; }
  body[data-ex="room"] .room-line { display: none; }
  body[data-ex="room"] .room-pills { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px 10px 0; padding-right: 16px; }
  body[data-ex="room"] .room-pills::-webkit-scrollbar { display: none; }
  body[data-ex="room"] .room-pills button { flex: 0 0 auto; }
  .in-hot { font-size: 0.8rem; }
}

/* ---------- passeio 3D: mini-planta ---------- */
.tour-map { position: absolute; right: clamp(16px, 4vw, 64px); top: 84px; width: clamp(180px, 18vw, 260px); z-index: 4; border-radius: 8px; overflow: hidden; background: rgba(244, 241, 236, 0.92); box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35); }
.tour-map img { display: block; width: 100%; height: auto; opacity: 0.9; }
.tour-map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.tm-dot { fill: rgba(16, 22, 29, 0.5); stroke: #fff; stroke-width: 6; cursor: pointer; transition: fill 0.2s; }
.tm-dot:hover, .tm-dot:focus-visible { fill: var(--accent); outline: none; }
.tm-dot.on { fill: var(--accent); }
.tm-me path { fill: rgba(255, 154, 77, 0.35); }
.tm-me circle { fill: var(--accent); stroke: #fff; stroke-width: 7; }
body[data-ex="tour"] #scene { touch-action: none; }
@media (max-width: 760px) {
  .tour-map { width: 132px; top: 64px; right: 12px; }
  body[data-ex="tour"] .room-ui { bottom: 14px; }
  body[data-ex="tour"] .room-title { font-size: 1.35rem; }
  body[data-ex="tour"] .room-line { display: none; }
  body[data-ex="tour"] .room-pills { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px 10px 0; padding-right: 16px; }
  body[data-ex="tour"] .room-pills button { flex: 0 0 auto; }
}
body[data-ex="tour"] .room-title { font-size: clamp(1.5rem, 2.6vw, 2.2rem); margin-bottom: 4px; }
body[data-ex="tour"] .room-line { font-size: 0.86rem; margin-bottom: 12px; max-width: 420px; }
body[data-ex="tour"] .room-pills button { padding: 7px 12px; font-size: 0.8rem; }

/* ---------- passeio 3D: etiquetas e dica ---------- */
.tour-hots { position: absolute; inset: 0; pointer-events: none; z-index: 4; }
.tour-hots .in-hot.off { opacity: 0; pointer-events: none; }
body[data-ex="tour"] .tour-hots .in-hot { transition: opacity 0.3s; }
.tour-hint { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 6; margin: 0; display: flex; align-items: center; gap: 12px; padding: 14px 20px; border-radius: 999px; background: rgba(12, 17, 23, 0.72); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); color: #fff; font-weight: 600; font-size: 0.95rem; pointer-events: none; animation: rise 0.6s var(--ease, ease-out) both; transition: opacity 0.4s; text-align: center; }
.tour-hint.bye { opacity: 0; }
.th-hand { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #fff; flex: 0 0 22px; animation: th-swipe 1.8s ease-in-out infinite; }
@keyframes th-swipe { 0%, 100% { transform: translateX(-8px); } 50% { transform: translateX(8px); } }
@media (prefers-reduced-motion: reduce) { .th-hand { animation: none; } }
@media (max-width: 760px) { .tour-hint { font-size: 0.82rem; padding: 12px 16px; width: max-content; max-width: calc(100vw - 40px); white-space: normal; } }

.nav-back { margin-left: 14px; }

.tour-hint { top: 84px; transform: translateX(-50%); }
.tour-hint { top: 84px; left: 0; right: 0; margin: 0 auto; width: max-content; max-width: calc(100vw - 340px); transform: none; }
@media (max-width: 760px) { .tour-hint { top: auto; bottom: 150px; max-width: calc(100vw - 32px); } }
body:not([data-ex="hero"]) .nav-back { background: rgba(12, 17, 23, 0.55); padding: 8px 14px; border-radius: 999px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); text-shadow: none; }
body:not([data-ex="hero"]) .nav-back:hover { text-decoration: none; background: rgba(12, 17, 23, 0.75); }
@media (max-width: 760px) { .brand-sub { display: none; } .nav-cta { white-space: nowrap; padding: 8px 12px; font-size: 0.82rem; } .nav-back { white-space: nowrap; font-size: 0.86rem; } }
@media (max-width: 760px) { .tour-map { top: 78px; } }
