/* ════════════════════════════════════════════════════════════════
   Homepage LoteApp — estrutura/tipografia inspiradas em zatten.com,
   recoloridas para a paleta da logo LoteApp.
   Paleta logo: verde #2F7D32 · azul profundo #0A5C89 · azul-céu #4C9CCB
   Base clara (estilo zatten) · Sora + JetBrains Mono.
   ════════════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* superfícies claras */
  --bg:          #F4F7F9;   /* fundo da página (off-white frio) */
  --bg-warm:     #EEF3F6;   /* faixa alternada */
  --surface:     #FFFFFF;   /* cards */
  --border:      #E2E8EC;   /* borda hairline */
  --border-2:    #D3DCE2;

  /* texto */
  --ink:         #0F1A24;   /* texto principal (quase-preto azulado) */
  --muted:       #566673;   /* texto secundário */
  --faint:       #5E6C77;   /* legendas (contraste AA) */

  /* marca (da logo) */
  --primary:     #246BFD;   /* azul do app (FlutterFlow) — CTAs, links */
  --primary-2:   #1E58CF;   /* hover */
  --sky:         #4C9CCB;   /* azul-céu — acento suave */
  --sky-soft:    rgba(76,156,203,0.14);
  --green:       #2F7D32;   /* verde da logo */
  --green-2:     #276B2A;
  --green-soft:  rgba(47,125,50,0.13);
  --navy:        #14293D;   /* base escura (faixa/rodapé) */

  /* status de lote */
  --st-livre:    #2F7D32;
  --st-reserva:  #E0A106;
  --st-vendido:  #C0392F;

  /* versões suaves dos status (dashboard demo + mini-visuais dos recursos) */
  --dv-livre:      color-mix(in srgb, var(--st-livre) 50%, white);
  --dv-reserva:    color-mix(in srgb, var(--st-reserva) 50%, white);
  --dv-vendido:    color-mix(in srgb, var(--st-vendido) 50%, white);
  --dv-caucionado: color-mix(in srgb, #64748B 45%, white);
  --dv-primary:    color-mix(in srgb, var(--primary) 42%, white);

  --r-btn:  10px;
  --r-card: 16px;
  --r-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(15,26,36,0.05);
  --shadow:    0 12px 34px rgba(15,26,36,0.09);
  --shadow-lg: 0 30px 70px rgba(15,26,36,0.14);

  --font: 'Sora', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-display: 'Manrope', 'Sora', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --maxw: 1160px;
}

html { scroll-behavior: smooth; }

body {
  min-height: 100%;
  position: relative;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* fundo elegante: leve degradê (cores da logo) + grade de linhas translúcidas */
body::after {
  content: ''; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(1100px 640px at 50% -8%, rgba(76,156,203,0.13), transparent 62%),
    radial-gradient(900px 520px at 100% 8%, rgba(47,125,50,0.06), transparent 60%),
    linear-gradient(180deg, #FAFCFD 0%, var(--bg) 46%);
}
body::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1500px; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(15,26,36,0.045) 1px, transparent 1px),
    linear-gradient(to right, rgba(15,26,36,0.045) 1px, transparent 1px);
  background-size: 58px 58px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 32%, transparent 92%);
          mask-image: linear-gradient(180deg, #000 0%, #000 32%, transparent 92%);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
::selection { background: rgba(36,107,253,0.16); }

/* foco de teclado visível (WCAG 2.4.7) */
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 4px; }
.cta-band a:focus-visible, footer a:focus-visible { outline-color: #fff; }

/* ════════════════ Estrutura ════════════════ */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
section { position: relative; }
.section { padding: clamp(4.5rem, 9vw, 7rem) 0; }
.section-alt { background: rgba(20,41,61,0.028); }

/* rótulo em mono (eyebrow, estilo zatten) */
.eyebrow {
  display: inline-block; font-family: var(--mono);
  font-size: 11px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--primary); margin-bottom: 16px;
}
.sec-title {
  font-size: clamp(1.9rem, 4.4vw, 2.75rem);
  font-weight: 600; line-height: 1.06; letter-spacing: -0.02em; color: var(--ink);
  max-width: 20ch;
}
.sec-title.center { margin: 0 auto; text-align: center; max-width: 24ch; }
.sec-intro { color: var(--muted); font-size: 1.06rem; max-width: 58ch; margin-top: 16px; }
.sec-intro.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ════════════════ Botões ════════════════ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font); font-size: 15px; font-weight: 500; line-height: 1;
  padding: 13px 22px; border-radius: var(--r-btn);
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform .14s ease, background .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.btn svg { width: 18px; height: 18px; }
.btn:active { transform: translateY(1px); }
.btn-primary { color: #fff; background: var(--primary); }
.btn-primary:hover { background: var(--primary-2); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(36,107,253,0.26); }
.btn-ghost { color: var(--ink); background: var(--surface); border-color: var(--border-2); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }
.btn-sm { padding: 8px 15px; font-size: 13.5px; }

/* ════════════════ Navbar ════════════════ */
#navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 50; }
/* barra flutuante de vidro (cantos arredondados + leve transparência) */
.nav-inner {
  max-width: var(--maxw); width: calc(100% - 32px); margin: 14px auto 0;
  padding: 6px 12px; display: flex; align-items: center; gap: 16px; position: relative;
  background: rgba(255,255,255,0.66);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
          backdrop-filter: blur(14px) saturate(1.4);
  border: 1px solid rgba(210,220,226,0.65);
  border-radius: 15px;
  box-shadow: 0 6px 24px rgba(15,26,36,0.06);
  transition: background .25s ease, box-shadow .25s ease;
}
#navbar.scrolled .nav-inner { background: rgba(255,255,255,0.82); box-shadow: 0 10px 30px rgba(15,26,36,0.10); }

.brand { display: flex; align-items: center; gap: 9px; flex-shrink: 0; }
.brand-full { height: 25px; width: auto; display: block; }
.brand-logo { width: 34px; height: 34px; object-fit: contain; }
.brand-name { font-size: 19px; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); }
.brand-name span { color: var(--primary); }

.nav-links {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  display: flex; align-items: center; gap: 2px;
}
.nav-links > a, .nav-item > a {
  color: var(--muted); font-size: 14px; font-weight: 400; white-space: nowrap;
  padding: 7px 13px; border-radius: var(--r-pill); transition: color .15s, background .15s;
}
.nav-links > a:hover, .nav-item > a:hover { color: var(--ink); background: rgba(15,26,36,0.05); }

/* item de nav com mega-menu (popup ao passar o mouse) */
.nav-item { position: relative; display: flex; align-items: center; padding-bottom: 16px; margin-bottom: -16px; }
.nav-item > a { display: inline-flex; align-items: center; gap: 5px; }
.chev { width: 13px; height: 13px; transition: transform .22s ease; }
.nav-item.has-mega:hover .chev, .nav-item.has-mega:focus-within .chev { transform: rotate(180deg); }
.mega {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(10px);
  width: 490px; background: var(--surface); border: 1px solid var(--border); border-radius: 18px;
  box-shadow: var(--shadow-lg); padding: 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 2px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .2s ease, transform .24s cubic-bezier(.16,1,.3,1); z-index: 60;
}
.nav-item.has-mega:hover .mega, .nav-item.has-mega:focus-within .mega {
  opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0);
}
.mega-it { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 12px; transition: background .14s ease; }
.mega-it:hover { background: rgba(76,156,203,0.10); }
.mega-ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--sky-soft); color: var(--primary); flex-shrink: 0; transition: transform .18s ease; }
.mega-it:hover .mega-ic { transform: scale(1.08); }
.mega-ic svg { width: 19px; height: 19px; }
.mega-tx b { display: block; font-size: 13.5px; font-weight: 500; color: var(--ink); }
.mega-tx em { display: block; font-size: 12px; font-style: normal; color: var(--muted); margin-top: 1px; }

.nav-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.nav-actions .btn-primary { padding-left: 28px; padding-right: 28px; }
.nav-toggle { display: none; width: 40px; height: 40px; border: 1px solid var(--border-2); background: var(--surface); border-radius: 10px; color: var(--ink); cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle svg { width: 20px; height: 20px; }

/* ════════════════ Hero (centralizado, estilo zatten) ════════════════ */
.hero { padding: 150px 0 70px; text-align: center; }
.hero-eyebrow { justify-content: center; }
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6.2vw, 4.4rem);
  font-weight: 700; line-height: 1.02; letter-spacing: -0.035em; color: var(--ink);
  max-width: 16ch; margin: 0 auto;
}
.sec-title, .cta-band h2 { font-family: var(--font-display); font-weight: 700; }
.hero-title .g { color: var(--primary); }
.hero-sub { font-size: clamp(1.05rem, 1.7vw, 1.22rem); color: var(--muted); max-width: 52ch; margin: 22px auto 32px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

.social {
  display: inline-flex; align-items: center; justify-content: center; gap: 11px;
  margin-top: 30px; flex-wrap: nowrap; max-width: 100%; text-align: center;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 999px; padding: 6px 22px 6px 8px; box-shadow: var(--shadow-sm);
}
.social p { color: var(--muted); font-size: 0.9rem; min-width: 0; flex: 1; text-align: center; }
.social .avatars { flex-shrink: 0; }
.social .av { width: 30px; height: 30px; border-color: #fff; }
.avatars { display: flex; }
.av {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  font-size: 11px; font-weight: 600; color: #fff; letter-spacing: .02em;
  background: var(--c, var(--primary)); border: 2px solid var(--bg); margin-left: -9px;
}
.av:first-child { margin-left: 0; }
.av-logo { background: #fff; overflow: hidden; padding: 0; }
.av-logo img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

/* janela de produto (mostra o "mapa de lotes") */
.hero-window {
  position: relative; margin: 54px auto 0; max-width: 880px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 18px; box-shadow: var(--shadow-lg); overflow: hidden;
}
.win-bar { display: flex; align-items: center; gap: 8px; padding: 13px 16px; border-bottom: 1px solid var(--border); }
.win-dots { display: flex; gap: 6px; }
.win-dots i { width: 11px; height: 11px; border-radius: 50%; background: var(--border-2); }
.win-title { font-family: var(--mono); font-size: 12px; color: var(--faint); margin-left: 8px; }

.lotmap { display: flex; gap: 26px; align-items: center; justify-content: center; flex-wrap: wrap; padding: 28px; text-align: left; }
.lm-bar { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; margin-bottom: 14px; }
.lm-bar .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); }
.lm-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; width: min(384px, calc(100vw - 104px)); }
.lm-tile { aspect-ratio: 1; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 500; color: #fff; }
.lm-tile.s { background: var(--st-livre); }
.lm-tile.r { background: var(--st-reserva); color: #14293D; }
.lm-tile.v { background: var(--st-vendido); }
.lm-tile.sel { outline: 2px solid var(--primary); outline-offset: 2px; }
.lm-legend { display: flex; gap: 15px; margin-top: 16px; flex-wrap: wrap; }
.lm-lg { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--muted); }
.lm-lg i { width: 10px; height: 10px; border-radius: 3px; }
.lm-lg i.s { background: var(--st-livre); } .lm-lg i.r { background: var(--st-reserva); } .lm-lg i.v { background: var(--st-vendido); }

.lm-card { width: 214px; flex-shrink: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 16px; box-shadow: var(--shadow-sm); }
.lm-card .t { font-size: 14.5px; font-weight: 600; margin-bottom: 8px; }
.lm-card .pill { display: inline-block; font-size: 11px; font-weight: 500; padding: 3px 10px; border-radius: var(--r-pill); margin-bottom: 12px; color: var(--green-2); background: var(--green-soft); }
.lm-card .price { color: var(--primary); font-size: 21px; font-weight: 600; letter-spacing: -0.01em; }
.lm-card .area { color: var(--muted); font-size: 12.5px; margin: 3px 0 14px; }
.lm-card .cta { display: block; text-align: center; background: var(--primary); color: #fff; font-weight: 500; font-size: 13px; padding: 11px; border-radius: var(--r-btn); }

/* animação sutil (respeita reduced-motion mais abaixo) */
@keyframes tilePop { from { opacity: 0; transform: scale(.55); } to { opacity: 1; transform: none; } }
@keyframes tileTurn { 0%,60% { background: var(--st-livre); } 78%,100% { background: var(--st-reserva); } }
.js .lm-tile { opacity: 0; animation: tilePop .42s ease forwards; animation-delay: calc(var(--i,0) * 36ms); }
.js .lm-tile.turn { animation: tilePop .42s ease calc(var(--i,0)*36ms) forwards, tileTurn 2.6s ease 1.7s forwards; }

/* ════════════════ Problema (linha do tempo) ════════════════ */
.problems { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; margin-top: 34px; }
.problem { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); padding: 24px 22px; transition: transform .18s ease, box-shadow .18s ease; }
.problem:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.p-head { display: flex; align-items: center; gap: 12px; margin-bottom: 15px; }
.p-icon { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: rgba(192,57,47,0.10); color: var(--st-vendido); flex-shrink: 0; }
.p-icon svg { width: 21px; height: 21px; }
.p-time { font-family: var(--mono); font-size: 10.5px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }
.problem h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: 8px; }
.problem p { color: var(--muted); font-size: 0.96rem; }
/* animação "digitando" (feed ao vivo de mensagens) */
.p-q { min-height: 1.5em; }
.p-desc { transition: opacity .35s ease; }
.p-caret { display: none; width: 2px; height: 0.95em; margin-left: 2px; vertical-align: -1px; border-radius: 1px; background: var(--st-vendido); }
.problem.is-typing .p-caret { display: inline-block; animation: caretBlink 1s steps(1) infinite; }
@keyframes caretBlink { 50% { opacity: 0; } }
.p-dots { display: none; align-items: center; gap: 5px; height: 0.95em; }
.problem.is-dots .p-q-text { display: none; }
.problem.is-dots .p-dots { display: inline-flex; }
.p-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--faint); opacity: .5; animation: dotBounce 1.1s infinite ease-in-out; }
.p-dots i:nth-child(2) { animation-delay: .15s; }
.p-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes dotBounce { 0%, 65%, 100% { transform: translateY(0); opacity: .45; } 32% { transform: translateY(-4px); opacity: 1; } }
/* marca-texto no título (varre por baixo de "custa caro") */
.p-accent { position: relative; white-space: nowrap; }
.p-accent::before { content: ''; position: absolute; left: -4px; right: -4px; bottom: 0.06em; height: 0.4em; z-index: -1; background: rgba(192,57,47,0.16); border-radius: 4px; transform: scaleX(1); transform-origin: left; }
/* desfecho */
.p-close { margin-top: 40px; text-align: center; font-size: clamp(1.15rem, 2.2vw, 1.5rem); font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
.p-close span { color: var(--st-vendido); }

/* ════════════════ Recursos (grade) ════════════════ */
/* bento assimétrico: mapa grande + 2 no topo direito + 3 embaixo */
.features { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-top: 40px; }
.feature { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); padding: 22px; transition: transform .18s ease, box-shadow .18s ease; }
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.feature h3 { font-size: 1.12rem; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 7px; }
.feature p { color: var(--muted); font-size: 0.95rem; }
.feature--map { grid-column: 1 / 3; grid-row: 1 / 3; }

/* ---- mini-visuais que demonstram cada função ---- */
.fm-status, .fm-sim, .fm-reserva, .fm-crm, .fm-spark { margin-bottom: 16px; }
/* mapa (card grande): prévia do mapa que preenche a altura */
.fm-map { position: relative; flex: 1; min-height: 320px; margin-bottom: 16px; display: flex; align-items: center; justify-content: center; padding: 0; overflow: hidden; border: 1px solid var(--border); border-radius: 12px; background: linear-gradient(160deg, rgba(76,156,203,.07), rgba(47,125,50,.05)); }
/* facade: carrega o mapa 3D real só ao clicar (performance) */
.fm-facade { position: relative; display: block; width: 100%; height: 100%; min-height: inherit; padding: 0; border: 0; background: transparent; cursor: pointer; overflow: hidden; font-family: inherit; text-decoration: none; color: inherit; }
.fm-poster { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; transition: transform .4s ease; }
.fm-poster svg, .fm-poster img { width: 100%; height: 100%; display: block; }
.fm-poster img { object-fit: cover; object-position: center; }
.fm-facade::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 50% 46%, rgba(15,26,36,.10), transparent 62%); pointer-events: none; }
.fm-facade:hover .fm-poster, .fm-facade:focus-visible .fm-poster { transform: scale(1.04); }
.fm-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 56px; height: 56px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 26px rgba(36,107,253,.42); transition: transform .2s ease; }
.fm-facade:hover .fm-play, .fm-facade:focus-visible .fm-play { transform: translate(-50%,-50%) scale(1.09); }
.fm-play svg { width: 23px; height: 23px; margin-left: 3px; }
.fm-cta { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); background: rgba(255,255,255,.92); border: 1px solid var(--border); padding: 5px 12px; border-radius: 999px; white-space: nowrap; backdrop-filter: blur(4px); }
/* estado ao vivo (iframe) + carregando + abrir */
.fm-map.is-live { background: var(--bg); }
.fm-map.is-live iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.fm-loading { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; background: var(--bg); font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); text-align: center; padding: 16px; }
.fm-loading a { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }
.fm-spin { width: 30px; height: 30px; border-radius: 50%; border: 3px solid var(--border-2); border-top-color: var(--primary); animation: fmSpin .8s linear infinite; }
@keyframes fmSpin { to { transform: rotate(360deg); } }
.fm-live-open { position: absolute; top: 10px; right: 10px; z-index: 2; display: inline-flex; align-items: center; gap: 5px; font-family: var(--mono); font-size: 10px; letter-spacing: .05em; text-transform: uppercase; color: var(--ink); background: rgba(255,255,255,.92); border: 1px solid var(--border); padding: 5px 10px; border-radius: 999px; text-decoration: none; backdrop-filter: blur(4px); box-shadow: var(--shadow-sm); }
.fm-live-open:hover { color: var(--primary); }
@media (prefers-reduced-motion: reduce) { .fm-spin { animation: none; } }
/* disponibilidade: pills de status */
.fm-status { display: flex; flex-wrap: wrap; gap: 7px; }
.fm-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink); background: var(--bg); border: 1px solid var(--border); padding: 5px 10px; border-radius: 999px; }
.fm-pill i { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
/* simulação: mini-resumo com barra de entrada */
.fm-sim { background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 11px 12px; }
.fm-sim-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-size: 12px; color: var(--muted); }
.fm-sim-row b { color: var(--ink); font-weight: 600; white-space: nowrap; }
.fm-bar { height: 5px; border-radius: 3px; background: var(--border-2); margin: 8px 0; overflow: hidden; }
.fm-bar i { display: block; width: 15%; height: 100%; background: var(--primary); border-radius: 3px; }
/* reserva: selo "7 dias" */
.fm-reserva { display: inline-flex; align-self: flex-start; align-items: center; gap: 10px; background: var(--green-soft); border: 1px solid rgba(47,125,50,.2); border-radius: 12px; padding: 9px 13px; }
.fm-shield { width: 24px; height: 24px; color: var(--green-2); flex-shrink: 0; }
.fm-shield svg { width: 24px; height: 24px; }
.fm-reserva-tx { display: flex; flex-direction: column; line-height: 1.25; }
.fm-reserva-tx b { font-size: 13px; color: var(--ink); }
.fm-reserva-tx em { font-style: normal; font-size: 11.5px; color: var(--faint); }
/* CRM: linhas de cliente */
.fm-crm { display: grid; gap: 8px; }
.fm-crm-row { display: flex; align-items: center; gap: 9px; background: var(--bg); border: 1px solid var(--border); border-radius: 9px; padding: 7px 9px; }
.fm-av { width: 22px; height: 22px; border-radius: 50%; background: var(--sky-soft); border: 1px solid var(--border-2); flex-shrink: 0; }
.fm-lines { flex: 1; display: grid; gap: 4px; min-width: 0; }
.fm-lines i { height: 5px; border-radius: 3px; background: var(--border-2); }
.fm-lines i:first-child { width: 68%; }
.fm-lines i:last-child { width: 44%; }
.fm-doc { width: 15px; height: 19px; border-radius: 3px; border: 1.5px solid var(--border-2); flex-shrink: 0; }
.fm-ia { font-family: var(--mono); font-size: 10px; font-weight: 600; color: var(--primary); background: var(--sky-soft); padding: 3px 6px; border-radius: 6px; flex-shrink: 0; }
/* dashboard: mini-barras (VGV) */
.fm-spark-v { display: block; font-size: 1.05rem; font-weight: 700; color: var(--ink); margin-bottom: 9px; }
.fm-spark-v em { font-style: normal; font-size: 11.5px; font-weight: 400; color: var(--faint); margin-left: 7px; }
.fm-bars { display: flex; align-items: flex-end; gap: 5px; height: 42px; }
.fm-bars i { flex: 1; border-radius: 3px 3px 0 0; background: var(--dv-primary); min-height: 4px; }

/* ════════════════ Jornada (01–05) ════════════════ */
/* jornada = linha do tempo (estilo zatten) */
.jhead { text-align: center; }
.chip { display: inline-block; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); background: var(--surface); border: 1px solid var(--border); padding: 6px 14px; border-radius: 999px; margin-bottom: 18px; }
.journey { display: grid; grid-template-columns: repeat(5,1fr); gap: 18px; margin-top: 48px; position: relative; }
.journey::before { content: ''; position: absolute; top: 33px; left: 10%; right: 10%; border-top: 2px dashed var(--border-2); z-index: 0; }
.jstep { display: flex; flex-direction: column; }
.j-top { display: flex; justify-content: center; margin-bottom: 22px; position: relative; z-index: 1; }
.j-ring { position: relative; width: 66px; height: 66px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); color: var(--primary); }
.j-ring svg { width: 27px; height: 27px; }
.j-num { position: absolute; top: -7px; right: -8px; font-family: var(--mono); font-size: 10px; font-weight: 600; color: var(--primary); background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 2px 7px; }
.j-card { flex: 1; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); padding: 18px 18px 16px; text-align: left; }
.j-card h3 { font-size: 1.02rem; font-weight: 600; margin-bottom: 6px; }
.j-card p { color: var(--muted); font-size: 0.9rem; margin-bottom: 15px; }
.j-tag { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; align-self: flex-start; font-family: var(--mono); font-size: 10px; letter-spacing: .05em; text-transform: uppercase; color: var(--primary); background: var(--sky-soft); padding: 4px 9px; border-radius: 999px; }
.j-tag::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--primary); flex-shrink: 0; }

/* ════════════════ Showcase (VGV) ════════════════ */
.showcase { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.sc-copy ul { list-style: none; margin-top: 22px; display: grid; gap: 13px; }
.sc-copy li { display: flex; gap: 11px; align-items: flex-start; color: var(--muted); }
.sc-copy li svg { width: 20px; height: 20px; color: var(--green); flex-shrink: 0; margin-top: 2px; }
.sc-copy li b { color: var(--ink); font-weight: 600; }

.dash { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); padding: 22px; max-width: 400px; margin: 0 auto; box-shadow: var(--shadow); }
.dash-head { display: flex; align-items: center; gap: 11px; margin-bottom: 18px; }
.dash-ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--sky-soft); color: var(--primary); flex-shrink: 0; }
.dash-ic svg { width: 20px; height: 20px; }
.dash-head strong { display: block; font-size: 1rem; font-weight: 600; }
.dash-head span { color: var(--muted); font-size: 0.86rem; }
.dash-pill { margin-left: auto; font-family: var(--mono); font-size: 11px; font-weight: 500; color: var(--green-2); background: var(--green-soft); padding: 5px 9px; border-radius: var(--r-pill); }
.dash-label { font-family: var(--mono); font-size: 10.5px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }
.dash-hero { font-size: 1.85rem; font-weight: 600; letter-spacing: -0.02em; margin: 3px 0 16px; }
.dash-bar { display: flex; gap: 2px; height: 14px; border-radius: 7px; overflow: hidden; margin-bottom: 16px; }
.dash-bar i { display: block; }
.dash-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--border); }
.dash-row:first-of-type { border-top: none; }
.dash-dot { width: 11px; height: 11px; border-radius: 3px; flex-shrink: 0; }
.dash-name { color: var(--muted); font-size: 0.94rem; }
.dash-val { margin-left: auto; font-weight: 600; font-size: 0.96rem; }

/* ════════════════ Antes / Depois ════════════════ */
/* cards no estilo "pílulas" (referência zatten): lado ruim neutro/apagado,
   lado bom na cor da marca, seta ligando os dois */
.compare { display: grid; grid-template-columns: 1fr auto 1fr; align-items: stretch; gap: 20px; margin-top: 40px; }
.cmp { border-radius: 24px; padding: 30px 28px; }
.cmp.bad { background: color-mix(in srgb, var(--navy) 3.5%, #FDFDFC); border: 1px solid var(--border); }
.cmp.good { background: var(--surface); border: 1.5px solid color-mix(in srgb, var(--primary) 30%, white); box-shadow: var(--shadow); }

.cmp-head { display: flex; align-items: center; gap: 15px; margin-bottom: 22px; }
.cmp .badge { width: 46px; height: 46px; display: grid; place-items: center; flex-shrink: 0; }
.cmp .badge svg { width: 20px; height: 20px; }
.cmp.bad .badge { background: rgba(15,26,36,0.06); color: var(--faint); border-radius: var(--r-pill); }
.cmp.good .badge { background: var(--primary); color: #fff; border-radius: 15px; box-shadow: 0 8px 20px rgba(36,107,253,0.32); }
.cmp-kicker { display: block; font-family: var(--mono); font-size: 10.5px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 3px; }
.cmp.bad .cmp-kicker { color: var(--faint); }
.cmp.good .cmp-kicker { color: var(--primary); }
.cmp h3 { font-size: 1.22rem; font-weight: 600; line-height: 1.3; }

.cmp ul { list-style: none; display: grid; gap: 10px; }
.cmp li { display: flex; align-items: center; gap: 12px; padding: 11px 16px; border-radius: 14px; font-size: 0.95rem; }
.cmp li::before { content: ''; flex-shrink: 0; width: 22px; height: 22px; border-radius: var(--r-pill); background-position: center; background-repeat: no-repeat; background-size: 11px; }
.cmp.bad li { background: var(--surface); border: 1px solid var(--border); color: var(--muted); }
.cmp.bad li::before { background-color: rgba(15,26,36,0.06); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M6 6l12 12M18 6L6 18' stroke='%23566673' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E"); }
.cmp.good li { background: rgba(36,107,253,0.05); border: 1px solid color-mix(in srgb, var(--primary) 22%, white); color: var(--ink); }
.cmp.good li::before { background-color: color-mix(in srgb, var(--primary) 15%, white); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M5 12.5l4 4 10-10' stroke='%23246BFD' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }

.cmp-arrow { align-self: center; width: 42px; height: 42px; border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); display: grid; place-items: center; color: var(--primary); }
.cmp-arrow svg { width: 19px; height: 19px; }

/* coreografia de entrada: os dois lados convergem, pílulas caem em cascata,
   selos pipocam, a seta entra com mola e o card bom "acende" por último */
.js .cmp.bad.reveal { transform: translateX(-26px); }
.js .cmp.good.reveal { transform: translateX(26px); }
.js .cmp.reveal.in { transform: none; }

@media (prefers-reduced-motion: no-preference) {
  .js .cmp li { opacity: 0; transform: translateY(16px) scale(.96); }
  .js .cmp.in li {
    opacity: 1; transform: none;
    transition: opacity .55s cubic-bezier(.16,1,.3,1), transform .55s cubic-bezier(.16,1,.3,1);
  }
  .js .cmp.in li:nth-child(1) { transition-delay: .12s; }
  .js .cmp.in li:nth-child(2) { transition-delay: .21s; }
  .js .cmp.in li:nth-child(3) { transition-delay: .30s; }
  .js .cmp.in li:nth-child(4) { transition-delay: .39s; }
  .js .cmp.in li:nth-child(5) { transition-delay: .48s; }

  /* selo (✕/✓) pipoca com overshoot logo depois da pílula pousar */
  .js .cmp li::before { scale: 0; }
  .js .cmp.in li::before { scale: 1; transition: scale .5s cubic-bezier(.34,1.56,.64,1); }
  .js .cmp.in li:nth-child(1)::before { transition-delay: .26s; }
  .js .cmp.in li:nth-child(2)::before { transition-delay: .35s; }
  .js .cmp.in li:nth-child(3)::before { transition-delay: .44s; }
  .js .cmp.in li:nth-child(4)::before { transition-delay: .53s; }
  .js .cmp.in li:nth-child(5)::before { transition-delay: .62s; }

  /* badge do cabeçalho nasce com pop */
  .js .cmp .badge { scale: 0; }
  .js .cmp.in .badge { scale: 1; transition: scale .55s cubic-bezier(.34,1.56,.64,1) .08s; }

  /* seta: entra com mola e fica pulsando de leve, apontando a transformação */
  .js .cmp-arrow.reveal { transform: scale(.3); transition: opacity .45s ease, transform .6s cubic-bezier(.34,1.56,.64,1); }
  .js .cmp-arrow.reveal.in { transform: none; }
  .cmp-arrow svg { animation: cmpNudge 1.7s ease-in-out 1.4s infinite; }

  /* card "Com o LoteApp" acende no final: borda e halo azuis chegam por último */
  .js .cmp.good.reveal { border-color: var(--border); box-shadow: none; }
  .js .cmp.good.reveal.in {
    border-color: color-mix(in srgb, var(--primary) 30%, white);
    box-shadow: var(--shadow), 0 0 0 5px rgba(36,107,253,0.07);
    transition: opacity .7s ease, transform .7s ease, border-color .5s ease .65s, box-shadow .7s ease .65s;
  }
}
@keyframes cmpNudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(4px); } }

/* ════════════════ O app (vitrine multiplataforma) ════════════════ */
.phones { display: grid; grid-template-columns: repeat(3, auto); justify-content: center; align-items: end; gap: clamp(10px, 3vw, 44px); margin-top: 48px; }
.phone { margin: 0; text-align: center; }
.phone img { width: min(238px, 24vw); height: auto; filter: drop-shadow(0 26px 44px rgba(15,26,36,0.22)); }
.phone--main img { width: min(276px, 28vw); }
.phone figcaption { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); margin-top: 16px; }

/* entrada: os três sobem em cascata (o observer já escalona o .in) */
.js .phones .phone.reveal { transform: translateY(48px); }
.js .phones .phone--main.reveal { transform: translateY(28px); }
.js .phones .phone.reveal.in { transform: none; }

/* badges das lojas + acesso web */
.stores { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px; margin-top: 44px; }
/* variante clara (seção do app): pílula branca com ícone oficial */
.stores--light .store-badge { background: var(--surface); color: var(--ink); border-color: var(--border); border-radius: 16px; padding: 12px 20px 13px; box-shadow: var(--shadow-sm); }
.stores--light .store-badge svg { width: 27px; height: 27px; }
.stores--light .store-badge em { color: var(--muted); opacity: 1; }
.stores--light .store-badge:hover { border-color: var(--border-2); }
.store-badge { display: inline-flex; align-items: center; justify-content: center; gap: 11px; min-width: 192px; background: var(--navy); color: #fff; border: 1px solid transparent; border-radius: 13px; padding: 10px 20px 11px; transition: transform .15s ease, box-shadow .15s ease; }
.store-badge:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.store-badge svg { width: 24px; height: 24px; flex-shrink: 0; }
.store-badge span { display: block; text-align: left; line-height: 1.2; }
.store-badge em { display: block; font-style: normal; font-size: 10.5px; opacity: .72; }
.store-badge b { font-size: 1.02rem; font-weight: 600; letter-spacing: -0.01em; }
.store-web { flex-basis: 100%; text-align: center; color: var(--muted); font-size: 0.93rem; margin-top: 4px; }
.store-web a { color: var(--primary); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* variante para a faixa escura do CTA final */
.stores--dark { margin-top: 30px; }
.stores--dark .store-badge { background: rgba(255,255,255,0.09); border-color: rgba(255,255,255,0.22); }
.stores--dark .store-badge:hover { background: rgba(255,255,255,0.16); box-shadow: none; }

/* ════════════════ Resultados (números reais) ════════════════ */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 44px; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); padding: 28px 26px 26px; box-shadow: var(--shadow-sm); }
.stat-ic { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 22px; background: var(--green-soft); color: var(--green); }
.stat:nth-child(odd) .stat-ic { background: color-mix(in srgb, var(--primary) 12%, #fff); color: var(--primary); }
.stat-ic svg { width: 24px; height: 24px; }
.stat-n { display: block; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.85rem, 3vw, 2.4rem); letter-spacing: -0.02em; color: var(--ink); line-height: 1.04; }
.stat-d { display: block; margin-top: 11px; color: var(--muted); font-size: 0.94rem; line-height: 1.45; }

/* ════════════════ FAQ ════════════════ */
.faq-wrap { max-width: 820px; }
.faq { margin-top: 40px; display: grid; gap: 12px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.faq-item summary { display: flex; align-items: center; gap: 14px; cursor: pointer; list-style: none; padding: 20px 22px; font-size: 1.04rem; font-weight: 500; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-n { font-family: var(--mono); font-size: 0.82rem; font-weight: 500; color: var(--primary); flex-shrink: 0; }
.faq-chev { width: 11px; height: 11px; margin-left: auto; flex-shrink: 0; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .2s ease; }
.faq-item[open] .faq-chev { transform: rotate(225deg); }
.faq-a { padding: 0 22px 22px 52px; color: var(--muted); font-size: 0.97rem; }

/* ════════════════ CTA final (faixa navy) ════════════════ */
.cta-band { background: var(--navy); border-radius: 28px; padding: clamp(2.6rem,6vw,4.6rem) 24px; text-align: center; position: relative; overflow: hidden; }
.cta-band::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 50% 0%, rgba(76,156,203,0.22), transparent 60%); pointer-events: none; }
.cta-band h2 { font-size: clamp(1.9rem,4vw,2.7rem); font-weight: 600; letter-spacing: -0.02em; color: #fff; position: relative; }
.cta-band p { color: rgba(255,255,255,0.72); margin: 14px auto 30px; max-width: 48ch; position: relative; }
.cta-band-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; position: relative; }
.btn-ghost-invert { color: #fff; background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.22); }
.btn-ghost-invert:hover { background: rgba(255,255,255,0.14); border-color: rgba(255,255,255,0.4); transform: translateY(-2px); }
.btn-ghost-invert .sb-icon { width: 18px; height: 18px; }
.cta-band-note { color: rgba(255,255,255,0.6); font-size: 0.9rem; margin: 22px auto 0; max-width: 48ch; position: relative; }
.cta-band-note a { color: rgba(255,255,255,0.85); text-decoration: underline; text-underline-offset: 2px; }
.cta-band-note a:hover { color: #fff; }

/* ════════════════ Rodapé (navy) ════════════════ */
footer { background: var(--navy); color: #fff; padding: 56px 0 40px; }
.foot-grid { display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; align-items: flex-start; }
.foot-brand { max-width: 300px; }
.foot-brand .brand { margin-bottom: 12px; }
.foot-brand .brand-name { color: #fff; }
.foot-brand .brand-name span { color: var(--sky); }
.foot-brand p { color: rgba(255,255,255,0.62); font-size: 0.92rem; }
.foot-links { display: flex; gap: 56px; flex-wrap: wrap; }
.foot-col h4 { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: rgba(255,255,255,0.5); margin-bottom: 14px; }
.foot-col a { display: block; color: rgba(255,255,255,0.78); font-size: 0.94rem; padding: 5px 0; transition: color .15s; }
.foot-col a:hover { color: #fff; }
.foot-bottom { margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.12); color: rgba(255,255,255,0.5); font-size: 0.86rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ════════════════ Reveal ════════════════ */
.reveal { transition: opacity .7s ease, transform .7s ease; }
.js .reveal { opacity: 0; transform: translateY(22px); }
.js .reveal.in { opacity: 1; transform: none; }

/* ════════════════ Responsivo ════════════════ */
@media (max-width: 960px) {
  .problems, .features { grid-template-columns: 1fr 1fr; }
  .feature--map { grid-column: 1 / -1; grid-row: auto; }
  .journey { grid-template-columns: 1fr 1fr 1fr; }
  .journey::before { display: none; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .showcase { grid-template-columns: 1fr; gap: 34px; }
  .sec-title { max-width: none; }
}
@media (max-width: 960px) {
  .nav-links { position: absolute; top: 66px; left: 16px; right: 16px; flex-direction: column; align-items: stretch; gap: 4px; padding: 10px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow); transform: translateY(-10px); opacity: 0; pointer-events: none; transition: opacity .18s ease, transform .18s ease; }
  .nav-links.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav-links > a, .nav-item > a { padding: 12px 14px; }
  .nav-item { display: block; padding-bottom: 0; margin-bottom: 0; }
  .mega, .chev { display: none; }
  .nav-toggle { display: inline-flex; }
}
@media (max-width: 680px) {
  .problems, .features, .journey, .compare { grid-template-columns: 1fr; }
  .cmp-arrow { justify-self: center; rotate: 90deg; }
  /* vitrine do app vira carrossel com swipe */
  .phones { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; justify-content: flex-start; gap: 18px; padding: 6px 4px 14px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .phones::-webkit-scrollbar { display: none; }
  .phone { flex: 0 0 66%; scroll-snap-align: center; }
  .phone img, .phone--main img { width: 100%; }
  .feature--map { grid-column: auto; grid-row: auto; }
  .lm-card { width: 100%; max-width: 320px; }
  .lotmap { padding: 20px 16px; }
  .hero { padding-top: 120px; }
  .social .avatars .av:nth-child(n+5) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { transition: none; }
  .js .lm-tile, .js .lm-tile.turn { opacity: 1; animation: none; }
}

/* ════════════════════════════════════════════════════════════════
   MOVIMENTO — "o mapa ganha vida conforme você rola"
   Scroll-driven (animation-timeline) como enhancement; fallback = estático.
   Tudo dentro de prefers-reduced-motion: no-preference.
   ════════════════════════════════════════════════════════════════ */
@property --a { syntax: '<angle>'; initial-value: 0deg; inherits: false; }

@keyframes iconPop { 0% { scale: .4; opacity: 0; } 70% { scale: 1.12; } 100% { scale: 1; opacity: 1; } }
@keyframes girar   { to { --a: 360deg; } }
@keyframes enche   { to { transform: scaleX(1); } }
@keyframes fillBar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes flutua  { from { transform: translateY(28px) scale(.985); } to { transform: translateY(-16px) scale(1); } }
@keyframes faqIn   { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* barra de progresso de leitura no topo */
#progresso { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 100;
  background: linear-gradient(90deg, var(--primary), var(--green)); transform-origin: left; transform: scaleX(0); }
@supports (animation-timeline: scroll()) {
  #progresso { animation: enche linear both; animation-timeline: scroll(root block); }
}

/* palco do hero: glow girando atrás da janela */
.hero-stage { position: relative; max-width: 1140px; margin: 52px auto 0; }
.hero-stage .hero-window { margin: 0; max-width: none; position: relative; z-index: 1; }
.faq-n { display: inline-block; }

@media (prefers-reduced-motion: no-preference) {
  .hero-stage::before {
    content: ''; position: absolute; inset: -3px; border-radius: 22px; z-index: 0;
    background: conic-gradient(from var(--a), var(--primary), var(--sky), var(--green), var(--primary));
    filter: blur(20px); opacity: .4; animation: girar 8s linear infinite;
  }
  details[open] .faq-a { animation: faqIn .28s ease; }

  /* marca-texto do título "custa caro": some e varre ao entrar */
  .js .p-accent::before { transform: scaleX(0); }
  .js .sec-title.in .p-accent::before { transform: scaleX(1); transition: transform .75s cubic-bezier(.16,1,.3,1) .3s; }


  @supports (animation-timeline: view()) {
    /* ÍCONES QUE CRESCEM AO ENTRAR NA SEÇÃO (cascata via --i, setado no main.js) */
    .j-ring, .faq-n, .dash-ic, .p-icon, .stat-ic {
      animation: iconPop linear both; animation-timeline: view();
      animation-range: entry calc(6% + var(--i, 0) * 4%) cover 42%;
    }
    /* dashboard: barras preenchem + card e mockup flutuam (parallax leve) */
    .dash-bar i { transform-origin: left; animation: fillBar linear both; animation-timeline: view(); animation-range: entry 24% cover 60%; }
    .dash { animation: flutua linear both; animation-timeline: view(); animation-range: cover; }
  }
}

/* ════════════════════════════════════════════════════════════════
   SIMULADOR DE PROPOSTA (demo interativa no hero)
   ════════════════════════════════════════════════════════════════ */
.sim { display: grid; grid-template-columns: 1.12fr 0.88fr; gap: 24px; padding: 24px 26px 26px; align-items: start; text-align: left; }
.sim-form { min-width: 0; }
.sim-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.sim-kicker { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }
.sim-lote { font-family: var(--font-display); font-size: 1.12rem; font-weight: 700; margin-top: 3px; }
.sim-price { font-size: 1.3rem; font-weight: 700; color: var(--primary); white-space: nowrap; letter-spacing: -0.01em; }
.sim-price span { font-size: 0.78rem; color: var(--muted); font-weight: 500; }
.sim-lbl { display: block; font-size: 12.5px; font-weight: 500; color: var(--muted); margin: 14px 0 6px; }
.sim-selectwrap { position: relative; }
.sim-selectwrap::after { content: ''; position: absolute; right: 14px; top: 45%; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-50%) rotate(45deg); pointer-events: none; }
.sim-select { -webkit-appearance: none; appearance: none; width: 100%; font-family: var(--font); font-size: 14px; color: var(--ink); background: var(--surface); border: 1px solid var(--border-2); border-radius: 10px; padding: 11px 34px 11px 14px; cursor: pointer; transition: border-color .15s; }
.sim-select:hover { border-color: var(--primary); }
.sim-info { font-size: 12px; color: var(--faint); margin-top: 8px; line-height: 1.4; }
.sim-entrada { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 18px 0 9px; }
.sim-entrada .sim-lbl { margin: 0; }
.sim-entrada-v { font-size: 14px; color: var(--muted); }
.sim-entrada-v b { color: var(--primary); font-weight: 700; }
.sim-slider { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 999px; background: var(--border-2); outline: none; cursor: pointer; }
.sim-slider::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: var(--primary); border: 3px solid #fff; box-shadow: 0 2px 6px rgba(15,26,36,.25); cursor: pointer; }
.sim-slider::-moz-range-thumb { width: 20px; height: 20px; border: 3px solid #fff; border-radius: 50%; background: var(--primary); box-shadow: 0 2px 6px rgba(15,26,36,.25); cursor: pointer; }
.sim-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 6px; align-items: end; }
.sim-field { min-width: 0; }
.sim-summary { background: var(--bg); border: 1px solid var(--border); border-radius: 14px; padding: 18px; }
.sim-sum-title { display: block; font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); margin-bottom: 10px; }
.sim-line { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--muted); padding: 8px 0; border-top: 1px solid var(--border); }
.sim-line:first-of-type { border-top: none; }
.sim-line b { color: var(--ink); font-weight: 600; }
.sim-line-v { color: var(--ink); font-size: 13.5px; white-space: nowrap; }
.sim-total-lbl { font-size: 12px; color: var(--muted); margin-top: 12px; }
.sim-total { font-size: 1.5rem; font-weight: 700; color: var(--primary); letter-spacing: -0.01em; }
.sim-cta { display: block; text-align: center; background: var(--primary); color: #fff; font-weight: 600; font-size: 14px; padding: 12px; border-radius: 10px; margin-top: 14px; transition: background .15s ease, transform .12s ease; }
.sim-cta:hover { background: var(--primary-2); transform: translateY(-1px); }
.sim-note { font-size: 11px; color: var(--faint); text-align: center; margin-top: 10px; }
/* demonstrativo de pagamento (espelha o card do app; preenche a altura da simulação) */
.sim-schedule { grid-column: 1 / -1; background: var(--bg); border: 1px solid var(--border); border-radius: 14px; padding: 14px 18px 13px; }
.sched-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 2px; }
.sched-title { font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.sched-sub { font-family: var(--mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.sched-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
.sched-col { min-width: 0; }
.sched-sec { font-size: 11.5px; font-weight: 600; color: var(--faint); padding: 7px 0 1px; }
.sched-row { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: baseline; padding: 5px 0; font-size: 12.5px; border-top: 1px solid var(--border); }
.sched-lbl { color: var(--muted); }
.sched-val { color: var(--ink); font-weight: 500; text-align: right; white-space: nowrap; }
.sched-val .q { color: var(--faint); font-weight: 400; }
.sched-total { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-top: 9px; padding-top: 10px; border-top: 1px solid var(--border-2); }
.sched-total-l { color: var(--ink); font-weight: 600; font-size: 13px; }
.sched-total-v { color: var(--primary); font-weight: 700; font-size: 15px; white-space: nowrap; }
@media (max-width: 700px) { .sim { grid-template-columns: 1fr; gap: 16px; padding: 20px 18px 22px; } .sim-two { grid-template-columns: 1fr; } .sched-cols { grid-template-columns: 1fr; gap: 0; } .sched-col + .sched-col .sched-sec { padding-top: 14px; } }

[hidden] { display: none !important; }


/* ================================================================
   Tela de app no hero (sidebar + simulador) - maior, estilo zatten
   ================================================================ */
.app { display: grid; grid-template-columns: 212px 1fr; align-items: stretch; }
.app-side { border-right: 1px solid var(--border); background: var(--bg); padding: 18px 12px; }
.app-brand { display: flex; align-items: center; gap: 9px; padding: 0 6px 6px; margin-bottom: 14px; }
.app-brand img { width: 24px; height: 24px; object-fit: contain; }
.app-brand span { display: flex; flex-direction: column; line-height: 1.15; }
.app-brand b { font-size: 14px; font-weight: 700; color: var(--ink); }
.app-brand em { font-style: normal; font-size: 11px; color: var(--faint); }
.app-group { margin-bottom: 14px; }
.app-group-t { display: block; font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); padding: 0 8px; margin-bottom: 4px; }
.app-item { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 8px; font-size: 13px; color: var(--muted); }
.app-item svg { width: 16px; height: 16px; flex-shrink: 0; }
.app-item.active { background: var(--sky-soft); color: var(--primary); font-weight: 600; }
/* as duas views (Simulação e Dashboard) ocupam a MESMA célula empilhadas,
   então a janela tem sempre a altura da maior → tamanho idêntico, sem "pulo" ao trocar de aba */
.app-main { min-width: 0; display: grid; }
.app-main > .view { grid-area: 1 / 1; min-width: 0; }
.view--off { visibility: hidden; pointer-events: none; }
@media (max-width: 820px) { .app { grid-template-columns: minmax(0, 1fr); } .app-main, .app-side { min-width: 0; } }


/* ================================================================
   Abas do app (Simulacao | Dashboard) + Dashboard demo
   ================================================================ */
.app-item { width: 100%; text-align: left; background: transparent; border: 0; cursor: pointer; font-family: inherit; }
.app-item:hover { background: rgba(15,26,36,0.04); }
.app-item.active { background: var(--sky-soft); color: var(--primary); font-weight: 600; }

.dv { padding: 22px 24px 24px; text-align: left; }
.dv-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.dv-period { font-family: var(--mono); font-size: 11px; color: var(--faint); background: var(--bg); border: 1px solid var(--border); padding: 5px 10px; border-radius: 999px; white-space: nowrap; }
.dv-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 12px; }
.dv-kpi { background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 13px 14px; }
.dv-kpi-l { display: block; font-size: 12px; color: var(--muted); margin-bottom: 5px; }
.dv-kpi-v { font-size: 1.15rem; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
.dv-kpi-d { display: block; font-size: 11px; color: var(--faint); margin-top: 3px; }
.dv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.dv-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 16px; }
.dv-card-t { display: block; font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 14px; }
.dv-donut-wrap { display: flex; align-items: center; gap: 18px; }
.dv-donut { width: 118px; height: 118px; flex-shrink: 0; position: relative; }
.dv-donut-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.dv-donut-c { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; z-index: 1; font-size: 11px; color: var(--muted); }
.dv-donut-c b { font-size: 1.2rem; font-weight: 600; color: var(--ink); }
.dv-legend { display: grid; gap: 9px; font-size: 12.5px; color: var(--muted); flex: 1; min-width: 0; }
.dv-legend span { display: flex; align-items: center; gap: 8px; }
.dv-legend i { width: 8px; height: 8px; border-radius: 2px; flex-shrink: 0; }
.dv-legend b { color: var(--ink); font-weight: 600; margin-left: auto; }
.dv-line { width: 100%; }
.dv-line-svg { display: block; width: 100%; height: auto; }
.dv-line-area { fill: url(#dvLineFill); }
.dv-line-stroke { fill: none; stroke: var(--sky); stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; }
.dv-line-dot { fill: var(--sky); stroke: var(--surface); stroke-width: 2; }
.dv-line-x { display: flex; justify-content: space-between; margin-top: 8px; padding: 0 2px; }
.dv-line-x span { font-size: 11px; color: var(--faint); }
.dv-stack { display: flex; gap: 2px; height: 10px; border-radius: 5px; overflow: hidden; margin-bottom: 12px; }
.dv-stack i { display: block; }
.dv-stack-legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12.5px; color: var(--muted); }
.dv-stack-legend span { display: inline-flex; align-items: center; gap: 7px; }
.dv-stack-legend i { width: 8px; height: 8px; border-radius: 2px; }

@media (max-width: 820px) {
  .app-side { border-right: none; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 8px; padding: 8px 12px; }
  .app-brand { display: none; } /* mobile: cabeçalho do app sem logo (libera espaço p/ as abas) */
  .app-group-t { display: none; }
  .app-group { margin: 0; display: flex; gap: 8px; }
  .app-item { width: auto; padding: 8px 12px; }
}
@media (max-width: 700px) {
  .dv-kpis { grid-template-columns: 1fr 1fr; }
  .dv-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  /* card "Lotes por status" no mobile: gráfico maior e legenda como lista fina */
  .dv-donut-wrap { flex-direction: column; align-items: center; gap: 14px; }
  .dv-donut { width: 152px; height: 152px; }
  .dv-donut-c b { font-size: 1.6rem; }
  .dv-legend { width: 100%; gap: 0; font-size: 12.5px; }
  .dv-legend span { padding: 8px 2px; border-top: 1px solid var(--border); }
  .dv-legend span:first-child { border-top: none; }
}
