/* ============================================================
   Residente — home: o condomínio em 3D onde o produto acontece
   Linguagem do manual da marca: grafite + cinza obra, rótulos em
   mono numerados, notas tracejadas, cotas. Degradê G6 só onde o
   manual deixa: botão (texto grafite), barras e fios.
   ============================================================ */

/* ---------- fontes ----------
   No próprio site (Inter variável e IBM Plex Mono, licença OFL em assets/fonts/): sem ida ao Google, e a Inter
   é pré-carregada no <head>. As "Fallback" são Arial (Apple e Windows) e Roboto (Android) com as medidas da
   Inter (largura medida em 400 e 600–800): quando a Inter chega e troca, o texto quase não sai do lugar. */
@font-face { font-family: "Inter"; src: url(/assets/fonts/inter-latin-wght.woff2) format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Mono"; src: url(/assets/fonts/ibm-plex-mono-latin-400.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Mono"; src: url(/assets/fonts/ibm-plex-mono-latin-500.woff2) format("woff2"); font-weight: 500; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Mono"; src: url(/assets/fonts/ibm-plex-mono-latin-600.woff2) format("woff2"); font-weight: 600; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter Fallback"; src: local("Arial"), local("ArialMT"); font-weight: 100 500; size-adjust: 106%; ascent-override: 91.4%; descent-override: 22.7%; line-gap-override: 0%; }
@font-face { font-family: "Inter Fallback"; src: local("Arial Bold"), local("Arial-BoldMT"); font-weight: 600 900; size-adjust: 102%; ascent-override: 95%; descent-override: 23.6%; line-gap-override: 0%; }
@font-face { font-family: "Inter Fallback R"; src: local("Roboto"), local("Roboto-Regular"); font-weight: 100 500; size-adjust: 106.4%; ascent-override: 91.1%; descent-override: 22.6%; line-gap-override: 0%; }
@font-face { font-family: "Inter Fallback R"; src: local("Roboto Bold"), local("Roboto-Bold"); font-weight: 600 900; size-adjust: 108.5%; ascent-override: 89.3%; descent-override: 22.2%; line-gap-override: 0%; }
@font-face { font-family: "Plex Fallback"; src: local("Menlo"), local("Consolas"), local("Roboto Mono"), local("Courier New"); size-adjust: 100%; ascent-override: 102.5%; descent-override: 27.5%; line-gap-override: 0%; }

:root {
  --teal: #19B5B6; --agua: #19B8A5; --esmeralda: #19B78C; --verde: #1BC670; --lima: #4CDB1B;
  --g6: linear-gradient(105deg, #19B5B6 0%, #19B8A5 30%, #19B78C 55%, #1BC670 79%, #4CDB1B 100%);
  --g6-x: linear-gradient(90deg, #19B5B6 0%, #19B8A5 30%, #19B78C 55%, #1BC670 79%, #4CDB1B 100%);
  --g6-y: linear-gradient(180deg, #19B5B6 0%, #19B8A5 30%, #19B78C 55%, #1BC670 79%, #4CDB1B 100%);

  --grafite: #0E2B26; --grafite-2: #12352F; --grafite-3: #1A3F38;
  --obra: #EDF1EF; --white: #fff;
  --ink: #0E2B26; --ink-2: #2A423D; --muted: #4B5F5A; --muted-2: #5B6E69;
  --line: #D2DCD8; --line-2: #E3E9E6;
  --b700: #0E654D; --b800: #0A4938; --tint: #E8F8F4; --tint-2: #D1F1E8;
  --on-dark: #EDF1EF; --on-dark-2: #A3C4BC; --line-dark: rgba(237, 241, 239, .14);
  --wa: #127A3D;
  /* superfícies e tons que mudam no modo escuro (ver o fim do arquivo) */
  --surface: #fff; --surface-2: #fff;
  --obra-rgb: 237, 241, 239;   /* fundo da página, para véus com transparência */
  --edge-rgb: 14, 43, 38;      /* fios e bordas finas sobre a cena */
  --dash: #BFCCC7; --log-off: #627470; --warn: #8A5A00; --warn-dot: #F0A500;
  --chat-bg: var(--grafite);
  color-scheme: light;

  --font: "Inter", "Inter Fallback", "Inter Fallback R", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "IBM Plex Mono", "Plex Fallback", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --maxw: 1240px;
  --gutter: clamp(16px, 4.4vw, 48px);
  --hdr: 72px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --shadow: 0 1px 2px rgba(14, 43, 38, .05), 0 34px 70px -40px rgba(14, 43, 38, .42);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  font-family: var(--font); font-size: 17px; line-height: 1.6; letter-spacing: -0.011em;
  color: var(--ink); background: var(--obra);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 3px solid var(--b700); outline-offset: 3px; }
h1, h2, h3 { font-weight: 800; letter-spacing: -0.04em; line-height: 1.02; text-wrap: balance; }
p { text-wrap: pretty; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.mono { font-family: var(--mono); font-size: .72rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--grafite); color: #fff; padding: 10px 14px; border-radius: 3px; }
.skip:focus { top: 12px; }
.link { color: var(--b700); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }

/* ---------- botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 48px; padding: 0 20px; border-radius: 3px;
  font-weight: 700; font-size: .98rem; letter-spacing: -0.01em; white-space: nowrap;
  transition: transform .3s var(--ease), background-position .6s var(--ease), background-color .2s, color .2s, box-shadow .2s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-lg { height: 56px; padding: 0 24px; font-size: 1.03rem; }
.btn-sm { height: 40px; padding: 0 15px; font-size: .9rem; gap: 8px; }
.btn-sm svg { width: 16px; height: 16px; }
.btn-block { width: 100%; }
/* primário: degradê G6 com texto grafite (5,98–8,23:1). O canto chanfrado ecoa o beiral do símbolo. */
.btn-primary {
  background: var(--g6); background-size: 190% 100%; background-position: 0 0; color: var(--grafite);
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
}
.btn-primary:hover { background-position: 100% 0; transform: translateY(-1px); }
.btn-primary:focus-visible { outline: none; box-shadow: inset 0 0 0 3px var(--grafite); }
.btn-ghost { box-shadow: inset 0 0 0 1.5px var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--surface); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: #0f6a35; transform: translateY(-1px); }

/* ---------- palco 3D ---------- */
/* palco com a altura grande da tela (100lvh): não muda de tamanho quando a barra do navegador aparece e some */
.stage { position: fixed; left: 0; top: 0; width: 100%; height: 100vh; height: 100lvh; z-index: 0; pointer-events: none; }
#gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity .6s ease; }
.gl-ready #gl { opacity: 1; }
.no-webgl #gl { display: none; }

/* etiquetas presas a pontos do mundo 3D: módulos (tag) e notificações do sistema (chip) */
.pins { position: absolute; inset: 0; overflow: hidden; }
.tag3d { position: absolute; left: 0; top: 0; opacity: 0; transition: opacity .35s ease; will-change: transform, opacity; }
.tag3d.on { opacity: 1; }
.tag3d i { position: absolute; left: -4px; top: -4px; width: 8px; height: 8px; border-radius: 50%; background: var(--esmeralda); box-shadow: 0 0 0 2px var(--surface), 0 0 0 3px rgba(var(--edge-rgb), .25); }
.tag3d b { position: absolute; left: -.5px; bottom: 5px; width: 1px; height: 30px; background: var(--ink); opacity: .55; }
.tag3d span {
  position: absolute; left: -1px; bottom: 34px; white-space: nowrap;
  font: 500 10.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase;
  background: var(--surface); color: var(--ink); padding: 6px 8px; border: 1px solid rgba(var(--edge-rgb), .18);
}
.tag3d.flip span { left: auto; right: -1px; }
.tag3d.chip b { height: 22px; }
.tag3d.chip span {
  bottom: 26px; display: grid; grid-template-columns: auto 1fr; column-gap: 9px; row-gap: 3px; align-items: center;
  padding: 10px 13px 10px 11px; border-radius: 4px; border: 0; text-transform: none; letter-spacing: 0;
  box-shadow: 0 1px 2px rgba(14, 43, 38, .08), 0 14px 32px -14px rgba(14, 43, 38, .45);
  transform: translateY(6px); transition: transform .45s var(--ease);
}
.tag3d.chip.on span { transform: none; }
.tag3d.chip em { grid-row: span 2; width: 22px; height: 22px; border-radius: 50%; background: var(--tint-2); position: relative; }
.tag3d.chip em::after { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: var(--esmeralda); }
.tag3d.chip strong { font: 600 13px/1.2 var(--font); letter-spacing: -0.01em; color: var(--ink); }
.tag3d.chip small { font: 500 10.5px/1.2 var(--mono); letter-spacing: .06em; color: var(--b700); text-transform: uppercase; }
.tag3d.dark span { background: rgba(14, 43, 38, .82); color: var(--on-dark); border-color: rgba(237, 241, 239, .22); }
.tag3d.dark b { background: var(--on-dark); }
.tag3d.dark i { box-shadow: 0 0 0 2px var(--grafite), 0 0 0 3px rgba(237, 241, 239, .35); background: var(--lima); }

/* relógio da maquete */
.hud {
  position: absolute; left: var(--gutter); bottom: 22px; display: flex; align-items: center; gap: 10px;
  padding: 7px 11px; border-radius: 2px; background: rgba(var(--obra-rgb), .8);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font: 500 11.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink);
  opacity: 0; transition: opacity .4s ease, color .4s ease;
}
.hud.on { opacity: 1; }
.hud.dark { color: var(--on-dark); background: rgba(14, 43, 38, .62); }
.hud-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--esmeralda); animation: pulse 2.4s ease-in-out infinite; }
.hud-clock { font-weight: 600; font-variant-numeric: tabular-nums; }
.hud-label::before { content: "— "; opacity: .5; }
.hud-label:empty { display: none; }
@keyframes pulse { 50% { opacity: .35; } }

/* trilho de progresso: o degradê atravessa a página uma vez, do teal ao lima */
.rail { position: fixed; right: 12px; top: 50%; height: 34vh; width: 2px; transform: translateY(-50%); background: rgba(var(--edge-rgb), .1); z-index: 40; }
.rail-fill { display: block; width: 100%; height: 0; background: var(--g6-y); background-size: 100% 34vh; }

/* ---------- cabeçalho ---------- */
.hdr { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--hdr); transition: background-color .3s, box-shadow .3s, color .3s; }
.hdr.is-solid { background: rgba(var(--obra-rgb), .84); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); box-shadow: 0 1px 0 var(--line); }
.hdr.is-dark { background: rgba(14, 43, 38, .72); color: var(--on-dark); box-shadow: 0 1px 0 var(--line-dark); }
.hdr-in { height: 100%; max-width: calc(var(--maxw) + 120px); margin-inline: auto; padding-inline: var(--gutter); display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.22rem; letter-spacing: -0.03em; }
.brand-mark { width: 28px; height: 29px; }
.nav { display: flex; gap: 26px; margin-left: auto; font-size: .93rem; font-weight: 500; }
.nav a { position: relative; opacity: .82; transition: opacity .2s; }
.nav a:hover { opacity: 1; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--g6-x); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav a:hover::after { transform: scaleX(1); }
.hdr-cta { display: flex; gap: 10px; }
.hdr.is-dark .btn-ghost { box-shadow: inset 0 0 0 1.5px var(--on-dark); color: var(--on-dark); }
.hdr.is-dark .btn-ghost:hover { background: var(--on-dark); color: var(--grafite); }

/* ---------- conteúdo acima do palco ---------- */
main, .ftr { position: relative; z-index: 1; }

/* ---------- abertura ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; padding-top: calc(var(--hdr) + 24px); }
/* véu à esquerda: o condomínio roda inteiro ao fundo, mas o texto sempre tem fundo calmo */
.hero::before { content: ""; position: absolute; inset: 0 auto 0 0; width: min(64vw, 960px); background: linear-gradient(90deg, var(--obra) 0%, var(--obra) 64%, rgba(var(--obra-rgb), 0) 100%); pointer-events: none; }
.hero-in { position: relative; flex: 1; display: flex; align-items: center; padding-block: 24px; }
.hero-copy { max-width: min(640px, 47vw); }
.hero-fallback { display: none; }
.no-webgl .hero-fallback { display: block; }
@media (min-width: 900px) {
  /* sem 3D: o painel real fica na coluna da direita, ao lado do texto */
  .no-webgl .hero-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 4vw, 64px); }
  .no-webgl .hero-copy { max-width: none; }
  .no-webgl .hero h1 { font-size: clamp(2.2rem, 3.5vw, 3.6rem); }
}
/* o que o sistema elimina: riscado em degradê, um de cada vez */
.strike { text-decoration: none; position: relative; white-space: nowrap; color: var(--muted-2); transition: color .6s ease; }
.strike::after { content: ""; position: absolute; left: -1%; right: -1%; top: 55%; height: .065em; min-height: 3px; background: var(--g6); border-radius: 2px; transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease); }
.struck .strike::after { transform: scaleX(1); }
.struck .strike:nth-of-type(2)::after { transition-delay: .35s; }
.struck .strike:nth-of-type(3)::after { transition-delay: .7s; }
.no-js .strike::after { transform: scaleX(1); }
.kicker { display: flex; align-items: center; gap: 12px; margin-bottom: 26px; font: 500 .74rem/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--b700); }
.kicker-bar { width: 30px; height: 3px; background: var(--g6); }
.hero h1 { font-size: clamp(2.3rem, 4.1vw, 4.1rem); line-height: .98; letter-spacing: -0.048em; }
.hl { color: var(--b700); }
.lead { font-size: clamp(1.05rem, 1.3vw, 1.2rem); line-height: 1.55; color: var(--muted); max-width: 46ch; }
.hero .lead { margin-top: 26px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.facts { list-style: none; padding: 20px 0 0; margin: 40px 0 0; display: flex; gap: clamp(20px, 3vw, 40px); border-top: 1px solid var(--line); max-width: 540px; }
.facts b { display: block; font-size: 1.5rem; font-weight: 800; letter-spacing: -0.035em; font-variant-numeric: tabular-nums; }
.facts span { display: block; font-size: .82rem; color: var(--muted); line-height: 1.35; margin-top: 2px; }

.clients { position: relative; padding: 18px 0 26px; background: var(--obra); border-top: 1px solid var(--line); }
.clients-label { text-align: center; color: var(--muted-2); margin-bottom: 16px; font-size: .68rem; }
.clients-mask { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.clients-track { display: flex; align-items: center; gap: 60px; width: max-content; animation: marquee 52s linear infinite; }
.clients-track img { height: 34px; width: auto; filter: grayscale(1) contrast(1.05); opacity: .55; mix-blend-mode: multiply; }
@keyframes marquee { to { transform: translateX(-50%); } }
/* âncoras da home anterior (#recursos, #historias, #baixar-app…) apontando para as seções novas */
.alias { display: block; height: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ---------- capítulos 3D ---------- */
.chapter { position: relative; height: 240vh; overflow-x: clip; }
#visao-geral { height: 270vh; }
.pin {
  position: sticky; top: 0; height: 100vh; height: 100svh;
  display: flex; align-items: center;
  max-width: calc(var(--maxw) + 120px); margin-inline: auto;
  padding: calc(var(--hdr) + 20px) var(--gutter) 48px;
}
[data-side="right"] .pin { justify-content: flex-end; }
.card {
  width: min(450px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: 3px;
  padding: 26px 28px 26px; box-shadow: var(--shadow);
}
.card-head {
  display: flex; align-items: baseline; gap: 10px; padding-bottom: 14px; margin-bottom: 18px; border-bottom: 1px solid var(--line-2);
  font: 500 .72rem/1 var(--mono); letter-spacing: .15em; text-transform: uppercase; color: var(--muted);
}
.card-n { color: var(--b700); font-weight: 600; }
.card-head time { margin-left: auto; color: var(--b700); font-weight: 600; letter-spacing: .08em; }
.card h2 { font-size: clamp(1.55rem, 2.15vw, 2.05rem); line-height: 1.05; letter-spacing: -0.038em; margin-bottom: 14px; }
.card > p { font-size: 1rem; color: var(--ink-2); line-height: 1.55; }
.card-note { margin-top: 14px; padding: 12px 14px; border: 1px dashed var(--dash); font-size: .92rem !important; color: var(--muted) !important; }
.card-note strong { color: var(--ink); }
.card-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 18px; border-top: 1px solid var(--line-2); }
.card-stats div { padding: 14px 10px 0 0; }
.card-stats dt { font-size: 1.38rem; font-weight: 800; letter-spacing: -0.035em; line-height: 1.1; }
.card-stats dd { margin: 4px 0 0; font-size: .78rem; color: var(--muted); line-height: 1.35; }
.log { list-style: none; margin: 18px 0 0; padding: 10px 0 0; border-top: 1px dashed var(--dash); font: 400 .75rem/1.35 var(--mono); letter-spacing: .02em; }
/* registro que ainda não aconteceu: cinza legível (4,9:1 no branco); ao acontecer, escurece e ganha o ponto verde */
.log li { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: baseline; padding: 5px 0; transform: translateX(-4px); transition: transform .35s var(--ease); }
.log li.on { transform: none; }
.log li:not(.on) > * { color: var(--log-off) !important; }
.log li > * { transition: color .35s ease; }
.log time { color: var(--muted-2); font-variant-numeric: tabular-nums; }
.log span { color: var(--ink); }
.log b { font-weight: 600; color: var(--b700); }
.log li.on b::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--esmeralda); margin-right: 6px; vertical-align: 1px; }
.log li.is-warn b { color: var(--warn); }
.log li.is-warn.on b::before { background: var(--warn-dot); }
.checks { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 7px; font-size: .9rem; color: var(--ink-2); line-height: 1.4; }
.checks li { display: flex; gap: 9px; align-items: flex-start; }
.checks svg { width: 16px; height: 16px; flex: none; color: var(--b700); margin-top: 2px; }
.stores { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.store { display: inline-flex; align-items: center; gap: 9px; height: 46px; padding: 0 14px 0 12px; border-radius: 3px; background: var(--grafite); color: #fff; font-weight: 700; font-size: .95rem; line-height: 1.05; transition: transform .25s var(--ease), background .2s; }
.store:hover { background: var(--grafite-3); transform: translateY(-1px); }
.store svg { width: 20px; height: 20px; }
.store small { display: block; font-weight: 500; font-size: .66rem; opacity: .75; letter-spacing: .02em; }
.card-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; padding-top: 14px; width: 100%; border-top: 1px solid var(--line-2); font-weight: 700; font-size: .92rem; color: var(--b700); }
.card-link svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.card-link:hover svg { transform: translateX(4px); }
.card-foot { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line-2); color: var(--muted-2); font-size: .64rem; }

/* noite */
.chapter-night { height: 230vh; }
.night { max-width: 620px; color: var(--on-dark); position: relative; isolation: isolate; }
.night::before { content: ""; position: absolute; inset: -90px -140px -90px -200px; z-index: -1; background: radial-gradient(closest-side, rgba(14, 43, 38, .94) 55%, rgba(14, 43, 38, 0)); pointer-events: none; }
.night .card-head { color: var(--on-dark-2); border-color: var(--line-dark); }
.night .card-n, .night .card-head time { color: var(--lima); }
.night-count { font-size: clamp(4.4rem, 12.5vw, 11.5rem); font-weight: 800; letter-spacing: -0.065em; line-height: .86; margin: 6px 0 18px; font-variant-numeric: tabular-nums; }
.night-count span { background: var(--g6); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .04em; }
.night-lead { font-size: clamp(1.1rem, 1.7vw, 1.45rem); line-height: 1.45; color: var(--on-dark); max-width: 34ch; }
.night-cap { margin-top: 22px; color: var(--on-dark-2); font-size: .66rem; }
.night .card-head { gap: 14px; }

/* ---------- seções sólidas ---------- */
.solid { position: relative; z-index: 2; }
.sec { padding: clamp(84px, 11vw, 150px) 0; }
.sec-obra { background: var(--obra); }
.sec-white { background: var(--surface); }
.sec-label { display: flex; gap: 10px; align-items: baseline; margin-bottom: 20px; font: 500 .74rem/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.sec-label span { color: var(--b700); font-weight: 600; }
.sec-label.on-dark { color: var(--on-dark-2); }
.sec-label.on-dark span { color: var(--lima); }
.sec h2, .cta h2 { font-size: clamp(2.1rem, 4.3vw, 3.6rem); letter-spacing: -0.048em; line-height: 1.0; }
.sec-head { max-width: 780px; margin-bottom: clamp(38px, 5vw, 66px); }
.sec-head .lead { margin-top: 20px; }

/* 05 por dentro */
.demo { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 88px); align-items: center; }
.demo-copy .lead { margin-top: 20px; }
.demo-copy .btn { margin-top: 30px; }
.tags { list-style: none; padding: 0; margin: 26px 0 32px; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { font: 500 .7rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; padding: 9px 11px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); }
.tags .tag-more { border-style: dashed; background: transparent; color: var(--muted-2); }
.demo-art { position: relative; margin: 0 0 40px; padding: 0 6% 0 0; }
.browser { border-radius: 6px; overflow: hidden; background: #1d2a31; box-shadow: 0 2px 4px rgba(14, 43, 38, .06), 0 50px 90px -50px rgba(14, 43, 38, .55); }
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: linear-gradient(#2b3b44, #1d2a31); }
.browser-bar i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .22); }
.browser-bar em { margin-left: 10px; font: 500 10px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .45); font-style: normal; }
.browser img { width: 100%; height: auto; }
.handset { position: absolute; right: 0; bottom: -10%; width: 25%; padding: 1.3%; border-radius: 13% / 6%; background: linear-gradient(150deg, #33454e, #10181d 45%, #253038); box-shadow: 0 26px 46px -22px rgba(14, 43, 38, .7); }
.handset img { width: 100%; height: auto; border-radius: 11.5% / 5.2%; }
.callout { position: absolute; display: flex; align-items: center; gap: 8px; color: var(--b700); font-size: .62rem; }
.callout i { display: block; width: 34px; height: 1px; border-top: 1px dashed var(--b700); }
.callout-web { left: 0; top: -30px; }
.callout-web i { order: 2; }
.callout-app { right: 0; bottom: calc(-10% - 30px); }

/* 06 histórias */
.quote { margin: 0 0 clamp(64px, 8vw, 110px); padding-left: clamp(18px, 3vw, 34px); position: relative; max-width: 1020px; }
.quote::before { content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 3px; background: var(--g6-y); }
.quote blockquote p { font-size: clamp(1.45rem, 2.8vw, 2.45rem); font-weight: 650; line-height: 1.22; letter-spacing: -0.032em; color: var(--ink); }
.quote figcaption { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; font-size: .95rem; color: var(--muted); }
.quote figcaption b { color: var(--ink); }
.videos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.vcard { position: relative; aspect-ratio: 9 / 16; overflow: hidden; border-radius: 3px; background: var(--grafite); text-align: left; isolation: isolate; }
.vcard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.vcard::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14, 43, 38, 0) 45%, rgba(14, 43, 38, .88)); }
.vcard:hover img { transform: scale(1.04); }
.vcard-play { position: absolute; z-index: 2; left: 16px; top: 16px; width: 46px; height: 46px; display: grid; place-items: center; background: var(--g6); color: var(--grafite); clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 0 100%); }
.vcard-play svg { width: 18px; height: 18px; margin-left: 2px; }
.vcard-meta { position: absolute; z-index: 2; left: 16px; right: 16px; bottom: 16px; color: #fff; display: grid; gap: 3px; }
.vcard-meta .mono { color: var(--lima); font-size: .62rem; }
.vcard-meta b { font-size: 1.08rem; letter-spacing: -0.02em; }
.vcard-meta small { color: var(--on-dark-2); font-size: .82rem; line-height: 1.3; }
.vcard video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 3; background: #000; }

/* 07 cronograma */
.gantt { border-top: 1px solid var(--line); }
.gantt-scale { display: grid; grid-template-columns: repeat(5, 1fr) auto; color: var(--muted-2); padding: 12px 0; border-bottom: 1px dashed var(--dash); font-size: .64rem; }
.gantt-scale span:last-child { text-align: right; }
.gantt-row { display: grid; grid-template-columns: 1fr; gap: 14px; padding: 22px 0 26px; border-bottom: 1px solid var(--line); position: relative; }
.gantt-bar { position: relative; height: 34px; display: flex; align-items: center; padding-left: 12px; color: var(--grafite); background: var(--g6-x); }
.gantt-bar .mono { font-size: .64rem; font-weight: 600; }
.gb-1 { width: 40%; margin-left: 0; background-size: 250% 100%; background-position: 0% 0; }
.gb-2 { width: 40%; margin-left: 40%; background-size: 250% 100%; background-position: 66.667% 0; }
.gb-3 { width: 20%; margin-left: 80%; background-size: 500% 100%; background-position: 100% 0; clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%); }
.gantt-txt { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 8px 40px; align-items: baseline; }
.gantt-txt h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); letter-spacing: -0.03em; }
.gantt-txt p { color: var(--muted); font-size: 1rem; }

/* 08 antes e depois */
.compare { border: 1px solid var(--line); background: var(--surface); }
.compare-head, .compare-list li { display: grid; grid-template-columns: 1fr 1fr; }
.compare-head .compare-h { margin: 0; padding: 18px clamp(20px, 3vw, 40px); display: flex; align-items: center; gap: 10px; color: var(--muted); }
.compare-head .compare-h:first-child { background: var(--obra); }
.compare-head .compare-h + .compare-h { color: var(--b700); border-left: 1px solid var(--line); position: relative; }
.compare-head .compare-h + .compare-h::before { content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 3px; background: var(--g6); }
.compare-h svg { width: 18px; height: 18px; }
.compare-list { list-style: none; margin: 0; padding: 0; }
.compare-list li { border-top: 1px solid var(--line-2); }
.c-old, .c-new { margin: 0; padding: 16px clamp(20px, 3vw, 40px); font-size: 1.02rem; line-height: 1.4; display: flex; gap: 10px; align-items: flex-start; }
.c-old { background: var(--obra); color: var(--muted); }
.c-old > span { text-decoration: line-through; text-decoration-color: rgba(75, 95, 90, .35); }
.c-new { color: var(--ink); font-weight: 600; border-left: 1px solid var(--line); }
.c-old svg, .c-new svg { display: none; flex: none; width: 16px; height: 16px; margin-top: 3px; }

/* 09 dúvidas */
.faq-wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq-wrap .sec-head { position: sticky; top: calc(var(--hdr) + 32px); }
.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item h3 { font-size: inherit; letter-spacing: inherit; font-weight: inherit; }
.faq-q { width: 100%; display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; padding: 22px 0; text-align: left; font-size: 1.08rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.3; }
.faq-q .mono { color: var(--b700); font-size: .68rem; }
.faq-q svg { width: 20px; height: 20px; transition: transform .35s var(--ease); color: var(--muted); }
.faq-item.open .faq-q svg { transform: rotate(45deg); color: var(--b700); }
.faq-a { height: 0; overflow: hidden; transition: height .45s var(--ease); }
.faq-a-in { padding: 0 40px 24px 40px; color: var(--muted); }

/* 10 conteúdo */
.blog-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: clamp(36px, 5vw, 56px); }
.blog-head h2 { max-width: 18ch; }
.posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.post { display: flex; flex-direction: column; gap: 12px; padding: 26px; border: 1px solid var(--line); background: var(--obra); transition: border-color .25s, transform .3s var(--ease); }
.post:hover { border-color: var(--grafite); transform: translateY(-2px); }
.post .mono { color: var(--b700); font-size: .64rem; }
.post h3 { font-size: 1.3rem; letter-spacing: -0.03em; line-height: 1.15; }
.post p { color: var(--muted); font-size: .96rem; flex: 1; }
.post-more { display: inline-flex; gap: 8px; align-items: center; font-weight: 700; font-size: .92rem; }
.post-more svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.post:hover .post-more svg { transform: translateX(4px); }

/* 12 agendar */
.cta { padding: clamp(120px, 14vw, 200px) 0 clamp(80px, 10vw, 130px); color: var(--on-dark);
  background: linear-gradient(180deg, rgba(14, 43, 38, 0) 0, rgba(14, 43, 38, .82) 22%, var(--grafite) 46%); }
.cta-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 96px); align-items: center; }
.cta h2 { color: #fff; }
.cta .lead { color: var(--on-dark-2); margin-top: 20px; }
.cta-list { list-style: none; padding: 0; margin: 26px 0 30px; display: grid; gap: 10px; }
.cta-list li { display: flex; gap: 10px; align-items: flex-start; }
.cta-list svg { flex: none; width: 18px; height: 18px; margin-top: .2em; color: var(--lima); }
.form-card { background: var(--surface); color: var(--ink); padding: clamp(24px, 3vw, 36px); border-radius: 3px; box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .6); }
.form-card h3 { font-size: 1.6rem; letter-spacing: -0.035em; }
.form-sub { color: var(--muted); font-size: .95rem; margin: 8px 0 18px; }
/* cartão de contato: WhatsApp em destaque, atalho por perfil e o e-mail à vista */
.contact-num { margin-top: 10px; text-align: center; font: 500 .78rem/1.2 var(--mono); letter-spacing: .1em; color: var(--muted); }
.contact-who { margin: 24px 0 10px; color: var(--muted); }
.contact-chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.contact-chips a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 3px;
  box-shadow: inset 0 0 0 1px var(--line); background: var(--obra); font-size: .9rem; font-weight: 600; color: var(--ink);
  transition: box-shadow .2s, background-color .2s, color .2s; }
.contact-chips a:hover, .contact-chips a:focus-visible { outline: none; box-shadow: inset 0 0 0 1.5px var(--b700); background: var(--tint); color: var(--b800); }
.contact-mail { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center;
  margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line-2); }
.contact-mail > svg { width: 22px; height: 22px; color: var(--b700); }
.contact-mail p { font-size: .84rem; color: var(--muted); line-height: 1.4; }
.contact-mail a { font-weight: 700; color: var(--ink); white-space: nowrap; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
@media (max-width: 520px) {
  .contact-mail { grid-template-columns: auto minmax(0, 1fr); }
  .contact-copy { grid-column: 2; justify-self: start; }
}
.contact-mail a:hover { text-decoration-color: var(--b700); }
.contact-copy { height: 36px; padding: 0 12px; border-radius: 3px; box-shadow: inset 0 0 0 1px var(--line); background: var(--surface);
  font: 500 .66rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); cursor: pointer; transition: color .2s, box-shadow .2s; }
.contact-copy:hover, .contact-copy:focus-visible { outline: none; box-shadow: inset 0 0 0 1.5px var(--b700); color: var(--b700); }
.contact-copy.ok { box-shadow: inset 0 0 0 1.5px var(--b700); color: var(--b700); }



/* por dentro: tour pelas telas reais */
.tour { margin-top: 8px; }
.tour-panel[hidden] { display: none !important; }
.tour-tabs { display: inline-flex; gap: 4px; padding: 4px; background: var(--obra); border: 1px solid var(--line); border-radius: 999px; margin-bottom: 28px; max-width: 100%; overflow-x: auto; }
.tour-tabs button { padding: 10px 18px; border-radius: 999px; font-weight: 700; font-size: .92rem; color: var(--muted); white-space: nowrap; transition: background .2s, color .2s, box-shadow .2s; }
.tour-tabs button[aria-selected="true"] { background: var(--surface-2); color: var(--ink); box-shadow: 0 1px 2px rgba(14, 43, 38, .12), 0 6px 16px -10px rgba(14, 43, 38, .4); }
.tour-web { display: grid; grid-template-columns: minmax(230px, 300px) minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
.tour-list { list-style: none; padding: 0; display: grid; gap: 2px; }
.tour-list button { display: grid; gap: 3px; width: 100%; text-align: left; padding: 12px 14px 12px 16px; border-left: 2px solid var(--line); transition: background .2s, border-color .2s; }
.tour-list button b { font-size: 1rem; letter-spacing: -0.01em; }
.tour-list button span { font-size: .86rem; color: var(--muted); line-height: 1.4; display: none; }
.tour-list button[aria-pressed="true"] { border-left-color: transparent; background: linear-gradient(var(--obra), var(--obra)) padding-box, var(--g6-y) border-box; border-left: 2px solid transparent; }
.tour-list button[aria-pressed="true"] span { display: block; }
.tour-list button:hover b { color: var(--b700); }
.tour-shot { margin: 0; }
.tour-shot img { width: 100%; height: auto; transition: opacity .16s ease; }
.tour-shot img.swap { opacity: 0; }
.tour-phones { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: clamp(16px, 2.4vw, 32px); align-items: start; }
.phone { margin: 0; }
.phone-frame { padding: 3.2%; border-radius: 15% / 7%; background: linear-gradient(150deg, #33454e, #10181d 45%, #253038); box-shadow: 0 26px 46px -24px rgba(14, 43, 38, .6); }
.phone-frame img { width: 100%; height: auto; border-radius: 12.5% / 5.8%; display: block; background: #fff; }
.phone figcaption { display: grid; gap: 3px; margin-top: 14px; }
.phone figcaption b { font-size: 1rem; }
.phone figcaption span { font-size: .88rem; color: var(--muted); line-height: 1.4; }
.tour-cta { margin-top: 36px; }

/* para quem é */
.who { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.who-card { display: flex; flex-direction: column; gap: 12px; padding: 24px 22px; background: var(--surface); border: 1px solid var(--line); position: relative; transition: transform .3s var(--ease), box-shadow .3s; }
.who-card::before { content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 3px; background: var(--g6); transform: scaleX(.18); transform-origin: left; transition: transform .5s var(--ease); }
.who-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.who-card:hover::before { transform: scaleX(1); }
.who-card .mono { color: var(--b700); font-size: .66rem; }
.who-card h3 { font-size: 1.32rem; letter-spacing: -0.03em; line-height: 1.12; }
.who-card p { color: var(--muted); font-size: .95rem; flex: 1; }
.who-more { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .9rem; }
.who-more svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.who-card:hover .who-more svg { transform: translateX(4px); }

/* módulos */
.mod-title { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-top: clamp(56px, 7vw, 96px); }
.mod-title b { font-size: 1.15rem; letter-spacing: -0.02em; }
.mod-title span { font: 500 .7rem/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--b700); }
.modules { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); margin-top: 14px; border-top: 1px solid var(--line); }
.modules-app { grid-template-columns: repeat(5, minmax(0, 1fr)); }
/* painel: 7 grupos do menu do sistema, em duas linhas */
.modules-panel { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 14px; }
/* app do morador: a grade real de ícones ao lado da lista dos serviços */
.app-services { display: grid; grid-template-columns: minmax(220px, 290px) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; margin-top: 14px; padding-top: 18px; border-top: 1px solid var(--line); }
.app-services .modules-app { margin-top: 0; border-top: 0; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.app-services .mod-group { padding-top: 0; padding-bottom: 18px; }
.app-grid { margin: 0; }
.app-grid img { width: 100%; height: auto; border-radius: 18px; background: #F2F2F7; box-shadow: 0 1px 2px rgba(14, 43, 38, .06), 0 22px 44px -26px rgba(14, 43, 38, .4); }
.app-grid figcaption { margin-top: 10px; font-size: .78rem; color: var(--muted-2); line-height: 1.4; }
.mod-group { padding: 18px 16px 0 0; }
.mod-group .mono { color: var(--b700); font-size: .64rem; margin-bottom: 12px; }
.mod-group ul { list-style: none; padding: 0; display: grid; gap: 7px; font-size: .95rem; font-weight: 600; color: var(--ink-2); }
.mod-group .is-ai { display: inline-flex; align-items: center; gap: 7px; }
.mod-group .is-ai::after { content: "IA"; font: 600 9.5px/1 var(--mono); letter-spacing: .08em; padding: 3px 5px; color: var(--grafite); background: var(--g6); border-radius: 2px; }

/* Resi IA */
.resi { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(36px, 6vw, 88px); align-items: center; }
.resi-copy .lead { margin-top: 20px; }
.chat { background: var(--chat-bg); color: var(--on-dark); border-radius: 6px; padding: 18px; box-shadow: 0 40px 80px -46px rgba(14, 43, 38, .7); }
.chat-head { display: flex; align-items: center; gap: 9px; padding-bottom: 14px; border-bottom: 1px solid var(--line-dark); color: var(--on-dark-2); font-size: .66rem; }
.chat-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lima); box-shadow: 0 0 0 4px rgba(76, 219, 27, .16); }
.chat-log { min-height: 168px; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; padding: 18px 0; }
.bubble { max-width: 86%; padding: 11px 14px; border-radius: 12px; font-size: .95rem; line-height: 1.45; }
.bubble-q { align-self: flex-end; background: rgba(237, 241, 239, .1); border-bottom-right-radius: 4px; }
/* a resposta da Resi é sempre um balão claro dentro do chat escuro: cores fixas, iguais nos dois temas */
.bubble-a { align-self: flex-start; background: #fff; color: var(--grafite); border-bottom-left-radius: 4px; }
.bubble-a b { color: #0E654D; }
.bubble-a.typing::after { content: "▍"; color: var(--esmeralda); animation: blink .8s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.chat-q { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 14px; border-top: 1px solid var(--line-dark); }
.chat-q button { font-size: .84rem; font-weight: 600; padding: 8px 12px; border-radius: 999px; color: var(--on-dark); box-shadow: inset 0 0 0 1px rgba(237, 241, 239, .28); transition: background .2s, color .2s, box-shadow .2s; }
.chat-q button:hover { box-shadow: inset 0 0 0 1px var(--esmeralda); }
.chat-q button[aria-pressed="true"] { background: var(--esmeralda); color: var(--grafite); box-shadow: none; }
.chat-note { margin-top: 12px; color: var(--on-dark-2); font-size: .6rem; opacity: .8; }

/* ---------- rodapé ---------- */
.ftr { background: var(--grafite); color: var(--on-dark-2); padding: 72px 0 34px; border-top: 1px solid var(--line-dark); }
.ftr-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
.brand-on-dark { color: #fff; }
.ftr-brand p { margin-top: 16px; max-width: 40ch; font-size: .95rem; line-height: 1.55; }
.ftr-social { list-style: none; display: flex; gap: 8px; margin: 22px 0 0; padding: 0; }
.ftr-social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 3px; box-shadow: inset 0 0 0 1px var(--line-dark); transition: color .2s, background-color .2s; }
.ftr-social a:hover { color: #fff; background: rgba(237, 241, 239, .08); }
.ftr-social svg { width: 18px; height: 18px; }
.ftr-col { display: grid; gap: 10px; align-content: start; font-size: .95rem; }
.ftr-col .mono { color: var(--on-dark); margin-bottom: 6px; font-size: .64rem; }
.ftr-col a:hover { color: #fff; }
.ftr-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--line-dark); font-size: .84rem; }

/* ---------- WhatsApp flutuante (celular) ---------- */
.wa-float { position: fixed; right: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 45; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: var(--wa); color: #fff; box-shadow: 0 12px 26px -10px rgba(14, 43, 38, .6), 0 0 0 1px rgba(255, 255, 255, .25) inset; opacity: 0; transform: translateY(14px) scale(.9); pointer-events: none; transition: opacity .3s ease, transform .35s var(--ease); }
.wa-float.on { opacity: 1; transform: none; pointer-events: auto; }
.wa-float svg { width: 28px; height: 28px; }
@media (min-width: 900px) { .wa-float { display: none; } }

/* ---------- a home do app inteira, rolando dentro do celular ---------- */
.phone-screen { position: relative; aspect-ratio: 1206 / 2622; border-radius: 12.5% / 5.8%; overflow: hidden; background: #F2F2F7; isolation: isolate; }
.phone-frame .phone-screen img { border-radius: 0; background: none; }
.ps-top, .ps-tabs { position: absolute; left: 0; width: 100%; z-index: 2; }
.ps-top { top: 0; }
.ps-tabs { bottom: 0; }
.ps-view { position: absolute; left: 0; right: 0; top: 15.75%; bottom: 9.9%; overflow: hidden; }
.ps-view img { animation: ps-roll 17s cubic-bezier(.45, 0, .2, 1) infinite; will-change: transform; }
.phone-scroll:hover .ps-view img { animation-play-state: paused; }
/* topo (o que precisa de atenção) → todos os serviços → volta */
@keyframes ps-roll { 0%, 12% { transform: translateY(0); } 46%, 70% { transform: translateY(-56.4%); } 96%, 100% { transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .ps-view img { animation: none; transform: translateY(-56.4%); } }

/* ---------- tela do painel ampliada (no celular o print do sistema fica pequeno) ---------- */
.tour-shot { cursor: zoom-in; position: relative; }
.zoom-hint { display: none; margin-top: 10px; font: 500 .7rem/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.zoom { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(14, 43, 38, .96); color: var(--on-dark); overflow: hidden; }
.zoom::backdrop { background: rgba(14, 43, 38, .6); }
.zoom-scroll { position: absolute; inset: 0; overflow: auto; overscroll-behavior: contain; display: flex; align-items: center; }
.zoom-scroll img { height: min(86dvh, 1200px); width: auto; max-width: none; margin: auto; padding: 0 16px; box-sizing: content-box; }
.zoom-close { position: absolute; top: calc(12px + env(safe-area-inset-top)); right: 12px; z-index: 2; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(237, 241, 239, .14); color: #fff; }
.zoom-close svg { width: 20px; height: 20px; }
.zoom-tip { position: absolute; left: 0; right: 0; bottom: calc(16px + env(safe-area-inset-bottom)); text-align: center; font: 500 .7rem/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark-2); pointer-events: none; }
@media (max-width: 899px) { .zoom-hint { display: block; } }

/* ---------- revelar ao rolar ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }


/* ---------- tablet e celular ---------- */
@media (max-width: 1100px) {
  .nav { display: none; }
  .who { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .modules { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 10px; }
  .hdr-cta { margin-left: auto; }
  .ftr-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 899px) {
  :root { --hdr: 62px; }
  body { font-size: 16px; }
  .hide-sm { display: none !important; }
  .brand { font-size: 1.1rem; }
  /* a faixa de cima é do condomínio 3D; o texto é uma folha que desliza por cima */
  .hero { padding-top: calc(var(--hdr) + 33vh); }
  .hero::before { display: none; }
  .hero-in { align-items: flex-start; padding-block: 22px 8px; background: var(--obra); position: relative; border-top: 1px solid var(--line); }
  /* sem 3D: o painel real ocupa o lugar da cena, em cima do texto */
  .no-webgl .hero { padding-top: calc(var(--hdr) + 16px); }
  .no-webgl .hero-in { flex-direction: column; align-items: stretch; border-top: 0; }
  .no-webgl .hero-fallback { order: -1; margin-bottom: 22px; }
  .tag3d span { font-size: 9.5px; letter-spacing: .08em; padding: 5px 7px; }
  .tag3d.chip span { padding: 8px 10px 8px 9px; column-gap: 7px; }
  .tag3d.chip em { width: 18px; height: 18px; }
  .tag3d.chip em::after { inset: 5.5px; }
  .tag3d.chip strong { font-size: 11.5px; }
  /* no celular o cartão só aparece (sem deslizar): texto andando frações de pixel parecia piscar */
  .tag3d.chip span, .tag3d.chip.on span { transform: none; transition: none; }
  .tag3d.chip small { font-size: 9.5px; }
  .clients { background: var(--obra); }
  .hero-copy { max-width: none; }
  .strike { white-space: normal; }
  .hero h1 { font-size: clamp(2.15rem, 9.4vw, 3rem); }
  .kicker { margin-bottom: 16px; }
  .hero .lead { margin-top: 16px; }
  .actions { margin-top: 22px; flex-wrap: nowrap; gap: 10px; }
  .actions .btn { flex: 1 1 auto; padding: 0 14px; font-size: .97rem; gap: 8px; }
  .actions .btn-primary svg { display: none; }
  .actions .btn-ghost { flex: 0 0 auto; }
  .facts { margin-top: 26px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
  .app-services { grid-template-columns: 1fr; }
  .app-grid { max-width: 330px; }
  .facts b { font-size: 1.2rem; }
  .facts span { font-size: .74rem; }
  .clients-track img { height: 26px; }
  .clients-track { gap: 40px; }

  .chapter { height: 180vh; }
  #visao-geral { height: 210vh; }
  .chapter-night { height: 200vh; }
  .pin { align-items: flex-end; padding: 0 10px 10px; }
  [data-side="right"] .pin { justify-content: center; }
  .card { width: 100%; padding: 16px 16px 14px; }
  .card-head { padding-bottom: 10px; margin-bottom: 12px; font-size: .64rem; }
  .card h2 { font-size: clamp(1.22rem, 5.6vw, 1.5rem); margin-bottom: 8px; }
  .card > p { font-size: .9rem; line-height: 1.45; }
  .card-note { display: none; }
  .card-stats { margin-top: 12px; }
  .card-stats div { padding-top: 10px; }
  .card-stats dt { font-size: 1.1rem; }
  .card-stats dd { font-size: .7rem; }
  .checks { display: none; }
  .log { margin-top: 12px; font-size: .66rem; }
  .log li { padding: 3px 0; gap: 8px; }
  .stores { margin-top: 12px; }
  .store { height: 42px; font-size: .88rem; }
  .card-foot { display: none; }
  .card-link { margin-top: 10px; padding-top: 10px; font-size: .84rem; }
  /* no celular o relógio sai: o cartão de cada capítulo já mostra o nome e a hora (dois relógios confundiam) */
  .hud { display: none; }
  /* capítulo 04: sem a lista de avisos, o cartão encolhe e o celular do app ganha a tela de cima */
  #app .log { display: none; }
  .rail { display: none; }

  .night { padding-bottom: 8vh; }
  .chapter-night .pin { align-items: flex-end; padding: 0 var(--gutter) 24px; }

  .demo { grid-template-columns: 1fr; }
  .tour-web { grid-template-columns: 1fr; }
  .tour-list { grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; gap: 6px; padding-bottom: 6px; order: 2; }
  .tour-list button { border-left: 0; border-bottom: 2px solid var(--line); padding: 8px 10px; }
  .tour-list button[aria-pressed="true"] { border-bottom-color: var(--esmeralda); background: none; border-left: 0; }
  .tour-list button span { display: none !important; }
  .tour-tabs { display: flex; width: 100%; }
  .tour-tabs button { flex: 1 1 0; padding: 9px 6px; font-size: .8rem; }
  .tour-phones { grid-template-columns: repeat(4, 62%); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); margin-inline: calc(var(--gutter) * -1); padding: 0 var(--gutter) 10px; }
  .phone { scroll-snap-align: start; }
  .demo-art { margin-top: 30px; }
  .callout { display: none; }
  .videos { grid-template-columns: repeat(4, 72%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
  .vcard { scroll-snap-align: start; }
  .gantt-txt { grid-template-columns: 1fr; }
  /* no celular, cada par em bloco: o problema riscado em cima, a solução embaixo */
  .compare-head { display: none; }
  .compare-list li { grid-template-columns: 1fr; }
  .compare-list li:first-child { border-top: 0; }
  .c-old { padding: 14px 16px 6px; font-size: .92rem; background: none; }
  .c-new { padding: 2px 16px 16px; border-left: 0; font-size: 1rem; }
  .c-old svg, .c-new svg { display: block; }
  .c-old svg { color: #B4847A; }
  .c-new svg { color: var(--b700); }
  .faq-wrap { grid-template-columns: 1fr; }
  .faq-wrap .sec-head { position: static; }
  .faq-a-in { padding: 0 0 20px 0; }
  .blog-head { flex-direction: column; align-items: flex-start; }
  .posts { grid-template-columns: 1fr; }
  .cta-grid { grid-template-columns: 1fr; }
  .ftr-grid { grid-template-columns: 1fr; }
  .who { grid-template-columns: 1fr; }
  /* no celular, cada grupo vira um parágrafo corrido (as duas listas cabem em menos da metade da altura) */
  .modules, .modules-app, .app-services .modules-app { grid-template-columns: 1fr; row-gap: 4px; }
  .app-services .mod-group { padding: 14px 0 0; }
  .mod-group { padding: 14px 0 0; }
  .mod-group .mono { margin-bottom: 8px; }
  .mod-group ul { display: flex; flex-wrap: wrap; gap: 6px 0; font-size: .92rem; }
  .mod-group li:not(:last-child)::after { content: "·"; margin: 0 9px; color: var(--muted-2); font-weight: 400; }
  .resi { grid-template-columns: 1fr; }
  .bubble { font-size: .9rem; }
}

@media (prefers-reduced-motion: reduce) {
  .clients-track { animation: none; }
  .hud-dot, .bubble-a.typing::after { animation: none; }
  .strike::after { transition: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   Modo escuro (segue o tema do aparelho)
   A maquete continua com a luz do dia, num estúdio escuro: o fundo e a névoa do 3D viram o grafite
   da marca (story.js, setDark). Fundo grafite, cartões um tom acima, texto cinza obra, destaque esmeralda
   claro (7,3:1 no grafite). Os prints do sistema e dos apps continuam como são.
   ============================================================ */
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --obra: #0E2B26; --obra-rgb: 14, 43, 38;
    --surface: #13332D; --surface-2: #1A3E37;
    --ink: #EDF1EF; --ink-2: #CFDBD7; --muted: #A3B8B1; --muted-2: #8EA49D;
    --line: #2B4B44; --line-2: #22423B;
    --b700: #3CCB98; --b800: #6EDDB4; --tint: rgba(60, 203, 152, .12); --tint-2: rgba(60, 203, 152, .22);
    --edge-rgb: 237, 241, 239;
    --dash: #3A5A52; --log-off: #839891; --warn: #E8B04A; --warn-dot: #F0A500;
    --chat-bg: #0A221E;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 34px 70px -40px rgba(0, 0, 0, .75);
  }
  .clients-track img { mix-blend-mode: screen; filter: grayscale(1) invert(1) contrast(1.05); opacity: .62; }
  .chat { box-shadow: inset 0 0 0 1px var(--line), 0 40px 80px -46px rgba(0, 0, 0, .8); }
  .store { background: #08201C; box-shadow: inset 0 0 0 1px var(--line); }
  .store:hover { background: #0B2B25; }
  .browser { box-shadow: 0 0 0 1px var(--line), 0 50px 90px -50px rgba(0, 0, 0, .8); }
  .form-card { box-shadow: 0 0 0 1px var(--line), 0 40px 90px -40px rgba(0, 0, 0, .8); }
  .tour-tabs button[aria-selected="true"] { box-shadow: inset 0 0 0 1px var(--line); }
  .cta { background: linear-gradient(180deg, rgba(14, 43, 38, 0) 0, rgba(10, 34, 30, .9) 22%, #0A221E 46%); }
  .ftr { background: #0A221E; }
  .zoom { background: rgba(8, 30, 26, .97); }
  .post:hover { border-color: var(--b700); }
  .c-old > span { text-decoration-color: rgba(237, 241, 239, .3); }
}
