/* Altini Multimarcas — layout no padrão "Gira Pátio" (claro, cards, hero com foto) */

:root {
  --bg: #FAFAF9;
  --surface: #FFFFFF;
  --soft: #EEF3F8;
  --text: #0B0B14;
  --muted: #6B7280;
  --muted-2: #9CA3AF;
  --line: #E6E8EC;
  --accent: #0A5BD8;
  --accent-dark: #0847A8;
  --accent-soft: rgba(10, 91, 216, .12);
  --dark: #0A0A0A;
  --dark-2: #141414;
  --novo: #1D4ED8;
  --wa: #22C55E;
  --wa-dark: #16A34A;
  --ok: #16A34A;
  --r: 14px;
  --r-lg: 18px;
  --shadow: 0 10px 30px -12px rgba(11, 11, 20, .18), 0 2px 6px rgba(11, 11, 20, .05);
  --shadow-lg: 0 24px 60px -24px rgba(11, 11, 20, .35);
  --font: "Instrument Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --nav-h: 64px;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1200px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--dark); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .rv { transition: none !important; } }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--bg); font-size: 15px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
main { background: var(--bg); min-height: 60vh; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -.02em; line-height: 1.12; }
p { margin: 0; }
.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: 16px; top: 16px; background: #fff; padding: 10px 14px; border-radius: 10px; z-index: 999; }
.wrap { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }
.label { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.label.muted { color: var(--muted); }
.h1 { font-size: clamp(30px, 4.4vw, 52px); }
.h2 { font-size: clamp(24px, 2.6vw, 30px); }
.h3 { font-size: 17px; }
.lede { color: var(--muted); font-size: 15px; max-width: 60ch; }
.center { text-align: center; }
.center .lede { margin-inline: auto; }

/* ---------- botões ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: 14px; font-weight: 600; font-size: 15px; line-height: 1; border: 1px solid transparent; white-space: nowrap; transition: background .18s, border-color .18s, transform .18s, color .18s; -webkit-tap-highlight-color: transparent; }
.btn:active { transform: scale(.98); }
.btn svg { width: 16px; height: 16px; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); }
.btn-ghost { background: rgba(255, 255, 255, .06); color: #fff; border-color: rgba(255, 255, 255, .18); }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); }
.btn-outline { background: var(--surface); color: var(--text); border-color: var(--line); }
.btn-outline:hover { border-color: var(--text); }
.btn-dark { background: var(--dark); color: #fff; }
.btn-dark:hover { background: #222; }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: var(--wa-dark); }
.btn-sm { padding: 8px 14px; font-size: 13px; border-radius: 10px; }
.btn-lg { padding: 14px 26px; font-size: 15px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ---------- header ---------- */
.nav { position: fixed; inset: 0 0 auto 0; height: var(--nav-h); z-index: 50; display: flex; align-items: center; background: rgba(255, 255, 255, .72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -.02em; font-size: 20px; }
.brand img { height: 34px; width: auto; }
.brand-mark { display: flex; flex-direction: column; line-height: 1; }
.brand small { font-size: 9px; letter-spacing: .18em; font-weight: 700; color: var(--muted); margin-top: 3px; }
.nav-links { display: flex; gap: 2px; margin-inline: auto; }
.nav-links a { padding: 8px 12px; border-radius: 10px; font-size: 14px; font-weight: 500; color: #374151; transition: background .15s, color .15s; }
.nav-links a:hover { background: #F3F4F6; }
.nav-links a.active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-phone { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; color: #374151; }
.nav-phone svg { width: 16px; height: 16px; }
.burger { display: none; width: 40px; height: 40px; border-radius: 10px; align-items: center; justify-content: center; }
.burger span { display: block; width: 20px; height: 2px; background: currentColor; position: relative; }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: currentColor; }
.burger span::before { top: -6px; } .burger span::after { top: 6px; }
.nav-wa-m { display: none; width: 40px; height: 40px; border-radius: 10px; align-items: center; justify-content: center; color: var(--wa); }
.nav-wa-m svg { width: 24px; height: 24px; }
.menu { position: fixed; inset: var(--nav-h) 0 0 0; z-index: 49; background: #fff; padding: 16px var(--gutter) 32px; display: none; flex-direction: column; gap: 2px; overflow: auto; }
.menu.open { display: flex; }
.menu a { font-size: 18px; font-weight: 600; padding: 14px 4px; border-bottom: 1px solid var(--line); }
.menu .menu-foot { margin-top: 20px; display: grid; gap: 10px; }
@media (max-width: 960px) {
  .nav-links, .nav-phone, .nav .btn { display: none; }
  .burger, .nav-wa-m { display: inline-flex; }
}

/* ---------- hero ---------- */
.hero { position: relative; margin-top: var(--nav-h); min-height: 520px; display: flex; align-items: center; background: var(--dark); color: #fff; overflow: hidden; }
.hero .bg { position: absolute; inset: 0; }
.hero .bg img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 30%; }
.hero .bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 0, 0, .86) 0%, rgba(0, 0, 0, .62) 42%, rgba(0, 0, 0, .12) 75%, rgba(0, 0, 0, .05) 100%); }
.hero .wrap { position: relative; padding: 72px 0 96px; display: grid; gap: 18px; max-width: 640px; margin-left: max(var(--gutter), (100% - var(--max)) / 2); }
.hero h1 { font-size: clamp(34px, 4.6vw, 54px); line-height: 1.08; max-width: 12ch; }
.hero p { color: rgba(255, 255, 255, .78); font-size: 16px; max-width: 46ch; }
.hero .ctas { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.hero .proof { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 8px; font-size: 13px; color: rgba(255, 255, 255, .7); }
.hero .proof b { display: block; font-size: 20px; color: #fff; letter-spacing: -.02em; }
@media (max-width: 760px) {
  .hero { min-height: 0; display: block; }
  .hero .bg { position: relative; aspect-ratio: 4 / 3; }
  .hero .bg::after { background: linear-gradient(180deg, rgba(0, 0, 0, 0) 55%, var(--dark) 100%); }
  .hero .wrap { padding: 8px 0 80px; margin-inline: auto; max-width: none; width: calc(100% - 2 * var(--gutter)); }
  .hero .ctas .btn { flex: 1 1 100%; padding: 14px; }
}

/* ---------- busca flutuante ---------- */
.search-wrap { position: relative; z-index: 3; margin-top: -48px; }
.search-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); padding: 16px; display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 12px; align-items: end; max-width: 880px; margin-inline: auto; }
.search-card .title { display: none; }
.field { display: grid; gap: 6px; }
.field label { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.field label svg { width: 12px; height: 12px; color: var(--accent); }
.field select, .field input, .field textarea { width: 100%; padding: 11px 13px; border-radius: 11px; border: 1px solid var(--line); background: #F9FAFB; font-size: 14px; outline: none; appearance: none; -webkit-appearance: none; transition: border-color .15s, background .15s; }
.field select { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2.5'><path d='M6 9l6 6 6-6'/></svg>"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }
.field select:focus, .field input:focus, .field textarea:focus { border-color: var(--accent); background: #fff; }
.field textarea { min-height: 110px; resize: vertical; }
.field .hint { font-size: 12px; color: var(--muted); }
@media (max-width: 860px) { .search-card { grid-template-columns: 1fr; padding: 18px; } .search-card .title { display: block; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; } .search-wrap { margin-top: -56px; } }

/* ---------- seções ---------- */
.section { padding: clamp(48px, 6vw, 80px) 0; }
.section.soft { background: var(--soft); }
.section.dark { background: var(--dark); color: #fff; }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.sec-head .t { display: grid; gap: 8px; }
.sec-head.center { flex-direction: column; align-items: center; text-align: center; }
.link-accent { color: var(--accent); font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; }
.link-accent svg { width: 14px; height: 14px; }

/* ---------- cards de veículo ---------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 1000px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid { grid-template-columns: 1fr; } }
.car { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; position: relative; transition: transform .25s, box-shadow .25s; display: flex; flex-direction: column; }
.car:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.car .ph { position: relative; aspect-ratio: 4 / 3; background: #EEF0F3; overflow: hidden; }
.car .ph img { width: 100%; height: 100%; object-fit: cover; }
.car .badge { position: absolute; top: 10px; left: 10px; font-size: 11px; font-weight: 700; padding: 4px 9px; border-radius: 7px; background: var(--novo); color: #fff; }
.car .badge.used { background: #111827; }
.car .badge.sold { background: #6B7280; }
.car .badge.fipe { left: auto; right: 10px; background: var(--ok); }
.car .body { padding: 14px 16px 16px; display: grid; gap: 4px; flex: 1; }
.car .marca { font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.car h3 { font-size: 16px; font-weight: 700; }
.car .versao { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.car .specs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 10px; margin: 10px 0 12px; font-size: 12px; color: #4B5563; }
.car .specs span { display: inline-flex; align-items: center; gap: 6px; }
.car .specs svg { width: 13px; height: 13px; color: var(--muted-2); flex: none; }
.car .foot { display: flex; justify-content: space-between; align-items: end; padding-top: 12px; border-top: 1px solid var(--line); margin-top: auto; }
.car .por { font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.car .price { font-size: 19px; font-weight: 800; letter-spacing: -.02em; }
.car .ver { font-size: 12px; font-weight: 600; background: #111827; color: #fff; padding: 6px 10px; border-radius: 8px; display: inline-flex; gap: 4px; align-items: center; }
.car .ver svg { width: 12px; height: 12px; }
.car a.cover { position: absolute; inset: 0; z-index: 1; }
.car.sold .ph img { filter: grayscale(1); opacity: .75; }
.demo-note { background: var(--accent-soft); color: var(--accent-dark); border-radius: 12px; padding: 12px 16px; font-size: 13px; margin-bottom: 18px; }
.demo-note a { text-decoration: underline; }

/* ---------- por que comprar ---------- */
.feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 860px) { .feats { grid-template-columns: 1fr; } }
.feat { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px; display: grid; gap: 8px; align-content: start; }
.feat .ic { width: 40px; height: 40px; border-radius: 10px; background: var(--accent); color: #fff; display: grid; place-items: center; margin-bottom: 6px; }
.feat .ic svg { width: 20px; height: 20px; }
.feat h3 { font-size: 16px; }
.feat p { font-size: 13px; color: var(--muted); }
.feat .q { font-size: 13px; font-style: italic; color: var(--text); padding-top: 8px; border-top: 1px dashed var(--line); margin-top: 4px; }

/* ---------- como funciona ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px; display: grid; gap: 8px; }
.step .n { width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 13px; font-weight: 700; display: grid; place-items: center; }
.step h3 { font-size: 16px; } .step p { font-size: 13px; color: var(--muted); }

/* ---------- CTA escuro ---------- */
.cta { text-align: center; display: grid; gap: 16px; justify-items: center; }
.cta h2 { max-width: 20ch; font-size: clamp(24px, 3vw, 34px); }
.cta p { color: rgba(255, 255, 255, .7); max-width: 50ch; }
.cta .row { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 6px; }

/* ---------- Sophia ---------- */
.sophia { display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.sophia .avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 24px; overflow: hidden; }
.sophia .avatar img { width: 100%; height: 100%; object-fit: cover; }
.sophia blockquote { margin: 0; font-size: 14px; color: #374151; }
.sophia cite { display: block; font-style: normal; font-size: 12px; color: var(--muted); margin-top: 6px; }
@media (max-width: 760px) { .sophia { grid-template-columns: 1fr; } }

/* ---------- rodapé ---------- */
footer { background: var(--dark); color: #fff; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; padding: 48px 0 32px; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr; gap: 24px; } }
.foot-grid .brand { color: #fff; margin-bottom: 14px; }
.foot-grid .brand small { color: rgba(255, 255, 255, .5); }
.foot-grid p { font-size: 13px; color: rgba(255, 255, 255, .65); max-width: 40ch; }
.foot-grid h4 { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #5B93F0; margin-bottom: 12px; }
.foot-grid .item { display: flex; gap: 8px; font-size: 13px; color: rgba(255, 255, 255, .8); margin-bottom: 8px; }
.foot-grid .item svg { width: 14px; height: 14px; flex: none; margin-top: 3px; color: #5B93F0; }
.foot-grid a.item:hover { color: #fff; }
.foot-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 16px 0; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 12px; color: rgba(255, 255, 255, .5); }

/* ---------- cabeçalho de página ---------- */
.page-head { margin-top: var(--nav-h); background: var(--soft); padding: 40px 0 28px; }
.page-head.dark { background: var(--dark); color: #fff; text-align: center; padding: 56px 0; background-image: radial-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px); background-size: 22px 22px; }
.page-head.grad { background: linear-gradient(100deg, #0B0B14 0%, #1a2233 45%, var(--accent-dark) 100%); color: #fff; text-align: center; padding: 56px 0; }
.page-head.dark .lede, .page-head.grad .lede { color: rgba(255, 255, 255, .75); margin-inline: auto; }
.page-head.dark .label, .page-head.grad .label { color: rgba(255, 255, 255, .7); }
.page-head .t { display: grid; gap: 8px; }
.page-head .t .count { font-size: 14px; color: var(--muted); }
.page-head .t .cta-row { margin-top: 12px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ---------- estoque ---------- */
.pills { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.pills button { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 13px; font-weight: 600; color: #374151; }
.pills button svg { width: 14px; height: 14px; }
.pills button.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.stock { display: grid; grid-template-columns: 260px 1fr; gap: 24px; align-items: start; }
.filters { position: sticky; top: calc(var(--nav-h) + 16px); background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px; display: grid; gap: 16px; }
.filters .f-head { display: flex; justify-content: space-between; align-items: center; }
.filters .f-head b { font-size: 15px; }
.filters .f-head button { font-size: 12px; color: var(--accent); font-weight: 600; }
.filters .seg { display: flex; gap: 4px; background: #F3F4F6; padding: 4px; border-radius: 10px; }
.filters .seg button { flex: 1; padding: 7px; border-radius: 8px; font-size: 12px; font-weight: 600; color: #4B5563; }
.filters .seg button.active { background: var(--accent); color: #fff; }
.range { display: grid; gap: 8px; }
.range .val { display: flex; justify-content: space-between; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.range .val b { color: var(--accent); letter-spacing: 0; text-transform: none; font-size: 12px; }
.range input[type=range] { width: 100%; accent-color: var(--accent); }
.range .minmax { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted-2); }
.stock-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.stock-top .count { color: var(--muted); font-size: 14px; }
.stock-top select { padding: 9px 34px 9px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); font-size: 13px; font-weight: 500; appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2.5'><path d='M6 9l6 6 6-6'/></svg>"); background-repeat: no-repeat; background-position: right 12px center; }
.filters-toggle { display: none; }
.empty { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 36px; text-align: center; display: grid; gap: 12px; justify-items: center; grid-column: 1 / -1; }
.empty p { color: var(--muted); max-width: 44ch; font-size: 14px; }
@media (max-width: 900px) {
  .stock { grid-template-columns: 1fr; }
  .filters { position: fixed; inset: auto 0 0 0; z-index: 60; border-radius: 20px 20px 0 0; max-height: 84vh; overflow: auto; transform: translateY(105%); transition: transform .3s cubic-bezier(.2, .7, .2, 1); box-shadow: 0 -20px 60px rgba(0, 0, 0, .3); padding-bottom: calc(20px + env(safe-area-inset-bottom)); }
  .filters.open { transform: none; }
  .filters-toggle { display: inline-flex; }
  #overlay.on { position: fixed; inset: 0; background: rgba(11, 11, 20, .5); z-index: 55; }
}

/* ---------- página do veículo ---------- */
.veh-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: calc(var(--nav-h) + 20px) 0 18px; flex-wrap: wrap; }
.veh-top a, .veh-top button { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; font-weight: 500; color: var(--muted); }
.veh-top a svg, .veh-top button svg { width: 15px; height: 15px; }
.veh-top button { border: 1px solid var(--line); background: var(--surface); padding: 7px 12px; border-radius: 9px; color: var(--text); }
.veh { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; align-items: start; }
.veh > * { min-width: 0; }
.vtabs { display: flex; width: fit-content; max-width: 100%; }
@media (max-width: 1000px) { .veh { grid-template-columns: 1fr; } }
.gallery { display: grid; gap: 10px; }
.gallery .main { position: relative; aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; background: #EEF0F3; cursor: zoom-in; }
.gallery .main img { width: 100%; height: 100%; object-fit: cover; }
.gallery .main .count { position: absolute; right: 12px; bottom: 12px; background: rgba(0, 0, 0, .7); color: #fff; font-size: 12px; padding: 5px 9px; border-radius: 8px; }
.gallery .nav-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .92); display: grid; place-items: center; box-shadow: var(--shadow); }
.gallery .nav-btn.prev { left: 12px; } .gallery .nav-btn.next { right: 12px; }
.gallery .thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.gallery .thumbs button { aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; border: 2px solid transparent; opacity: .85; }
.gallery .thumbs button.active { border-color: var(--text); opacity: 1; }
.gallery .thumbs img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 600px) { .gallery .thumbs { gap: 6px; } }
.vtabs { display: inline-flex; gap: 2px; background: #F3F4F6; padding: 4px; border-radius: 12px; margin: 26px 0 18px; overflow-x: auto; max-width: 100%; }
.vtabs button { padding: 8px 14px; border-radius: 9px; font-size: 13px; font-weight: 600; color: #4B5563; white-space: nowrap; }
.vtabs button.active { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.vpanel { display: none; } .vpanel.active { display: block; }
.vpanel h3 { font-size: 16px; margin: 18px 0 10px; }
.vpanel h3:first-child { margin-top: 0; }
.vpanel p { color: #4B5563; font-size: 14px; max-width: 70ch; white-space: pre-line; }
.hl { display: flex; gap: 8px; flex-wrap: wrap; }
.hl span { display: inline-flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; font-size: 13px; font-weight: 600; }
.hl span svg { width: 14px; height: 14px; color: var(--accent); }
.checklist { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 24px; }
.checklist div { display: flex; gap: 8px; align-items: center; font-size: 13px; }
.checklist div svg { width: 14px; height: 14px; color: var(--ok); flex: none; }
@media (max-width: 600px) { .checklist { grid-template-columns: 1fr; } }
.speclist { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 24px; }
.speclist div { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.speclist div span { color: var(--muted); }
@media (max-width: 600px) { .speclist { grid-template-columns: 1fr; } }

.buy { position: sticky; top: calc(var(--nav-h) + 16px); background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px; display: grid; gap: 14px; }
.buy .pill { display: inline-flex; width: fit-content; background: #111827; color: #fff; padding: 4px 9px; border-radius: 7px; font-size: 11px; font-weight: 700; }
.buy .pill.new { background: var(--novo); }
.buy .marca { font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
.buy h2 { font-size: 24px; }
.buy .versao { font-size: 13px; color: var(--muted); }
.buy .plabel { font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: 8px; }
.buy .price { font-size: 30px; font-weight: 800; letter-spacing: -.03em; color: var(--accent); line-height: 1; }
.buy .fin { font-size: 12px; color: var(--muted); margin-top: 4px; }
.buy .tags { display: flex; gap: 6px; flex-wrap: wrap; }
.buy .tags span { font-size: 11px; font-weight: 600; background: #F3F4F6; padding: 4px 8px; border-radius: 6px; color: #374151; }
.buy .tags span.ok { background: #DCFCE7; color: #166534; }
.buy .mini { display: grid; gap: 6px; }
.buy .mini div { display: flex; align-items: center; gap: 10px; background: #F9FAFB; border-radius: 10px; padding: 9px 12px; font-size: 13px; }
.buy .mini div svg { width: 14px; height: 14px; color: var(--muted); flex: none; }
.buy .mini div span { color: var(--muted); font-size: 11px; display: block; }
.buy .mini div b { font-weight: 600; display: block; }
.buy .actions { display: grid; gap: 8px; }
.buy .fine { font-size: 12px; color: var(--muted); display: flex; gap: 6px; align-items: center; background: #F9FAFB; padding: 9px 12px; border-radius: 10px; }
.buy .fine svg { width: 14px; height: 14px; color: var(--ok); flex: none; }
.stickybar { display: none; }
@media (max-width: 1000px) {
  .buy { position: static; }
  .stickybar { display: flex; position: fixed; inset: auto 0 0 0; z-index: 40; background: rgba(255, 255, 255, .94); backdrop-filter: blur(12px); border-top: 1px solid var(--line); padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); align-items: center; justify-content: space-between; gap: 12px; }
  .stickybar .price { font-weight: 800; font-size: 18px; color: var(--accent); }
  .stickybar .price small { display: block; font-size: 11px; color: var(--muted); font-weight: 500; }
  body.has-stickybar { padding-bottom: 76px; }
  body.has-stickybar .wa-float { display: none; }
}
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(0, 0, 0, .95); display: grid; grid-template-rows: auto 1fr auto; color: #fff; }
.lightbox .lb-top { display: flex; justify-content: space-between; align-items: center; padding: 14px var(--gutter); font-size: 13px; }
.lightbox .lb-top button { width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .12); display: grid; place-items: center; }
.lightbox .lb-img { display: grid; place-items: center; min-height: 0; padding: 0 var(--gutter); }
.lightbox .lb-img img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 10px; }
.lightbox .lb-nav { display: flex; justify-content: center; gap: 10px; padding: 14px; }
.lightbox .lb-nav button { padding: 10px 18px; border-radius: 10px; background: rgba(255, 255, 255, .12); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }

/* ---------- financiamento / vender / contato ---------- */
.two-col { display: grid; grid-template-columns: 1.2fr .9fr; gap: 20px; align-items: start; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px; display: grid; gap: 16px; }
.card h2 { font-size: 18px; }
.card .note { font-size: 12px; color: var(--muted); }
.result { background: var(--dark); color: #fff; border-radius: 16px; padding: 22px; display: grid; gap: 12px; }
.result .label { color: rgba(255, 255, 255, .6); }
.result .big { font-size: 32px; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.result .big small { font-size: 14px; font-weight: 500; color: rgba(255, 255, 255, .6); letter-spacing: 0; }
.result .rows { display: grid; gap: 6px; font-size: 13px; color: rgba(255, 255, 255, .7); padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, .12); }
.result .rows div { display: flex; justify-content: space-between; gap: 12px; }
.result .rows b { color: #fff; }
.result .note { font-size: 11px; color: rgba(255, 255, 255, .5); }
.banks { display: flex; flex-wrap: wrap; gap: 6px; }
.banks span { border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; font-size: 12px; font-weight: 600; background: var(--surface); }
.ok-box { background: #DCFCE7; color: #166534; border-radius: 12px; padding: 16px; display: grid; gap: 6px; }
.ok-box b { font-size: 16px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
.stepper { display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; margin-bottom: 20px; }
.stepper div { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; color: var(--muted); }
.stepper div i { width: 24px; height: 24px; border-radius: 50%; background: #E5E7EB; color: #374151; display: grid; place-items: center; font-style: normal; font-size: 11px; font-weight: 700; }
.stepper div.active i, .stepper div.done i { background: var(--accent); color: #fff; }
.stepper div.active { color: var(--text); }
.stepper .sep { width: 24px; height: 1px; background: var(--line); }
.dz { border: 2px dashed var(--line); border-radius: 12px; padding: 24px; text-align: center; display: grid; gap: 4px; justify-items: center; cursor: pointer; }
.dz:hover, .dz.over { border-color: var(--accent); background: #F9FAFB; }
.dz b { font-size: 14px; } .dz span { font-size: 12px; color: var(--muted); }
.dz input { display: none; }
.thumbs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 8px; }
.thumbs-grid div { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: #EEF0F3; }
.thumbs-grid img { width: 100%; height: 100%; object-fit: cover; }
.thumbs-grid button { position: absolute; top: 6px; right: 6px; width: 24px; height: 24px; border-radius: 50%; background: rgba(0, 0, 0, .75); color: #fff; display: grid; place-items: center; }
.row-btns { display: flex; gap: 10px; justify-content: space-between; flex-wrap: wrap; }
.contact-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 700px) { .contact-cards { grid-template-columns: 1fr; } }
.ccard { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px; display: grid; gap: 4px; align-content: start; }
.ccard .ic { width: 38px; height: 38px; border-radius: 10px; background: var(--accent); color: #fff; display: grid; place-items: center; margin-bottom: 8px; }
.ccard .ic svg { width: 18px; height: 18px; }
.ccard b { font-size: 15px; } .ccard p { font-size: 13px; color: var(--muted); } .ccard .val { font-size: 13px; font-weight: 600; color: var(--accent); margin-top: 4px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 700px) { .stats { grid-template-columns: 1fr; } }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 26px; text-align: center; display: grid; gap: 4px; justify-items: center; }
.stat .ic { width: 42px; height: 42px; border-radius: 11px; background: var(--accent); color: #fff; display: grid; place-items: center; margin-bottom: 8px; }
.stat .ic svg { width: 20px; height: 20px; }
.stat b { font-size: 24px; color: var(--accent); letter-spacing: -.02em; }
.stat span { font-size: 13px; color: var(--muted); }
.visit { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
@media (max-width: 860px) { .visit { grid-template-columns: 1fr; } }
.visit .info { display: grid; gap: 14px; margin-top: 18px; }
.visit .info div { display: flex; gap: 12px; font-size: 13px; }
.visit .info div svg { width: 16px; height: 16px; color: var(--accent); flex: none; margin-top: 2px; }
.visit .info b { display: block; font-size: 13px; }
.visit .info span { color: var(--muted); }
.map { border-radius: 16px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4 / 3; background: #EEF0F3; }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
.frame { border-radius: 16px; overflow: hidden; aspect-ratio: 4 / 3; background: #EEF0F3; }
.frame img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- WhatsApp flutuante / reveal / toast ---------- */
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 45; width: 54px; height: 54px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 12px 30px -8px rgba(34, 197, 94, .6); }
.wa-float svg { width: 26px; height: 26px; }
.rv { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.rv.in { opacity: 1; transform: none; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); background: var(--dark); color: #fff; padding: 11px 16px; border-radius: 10px; font-size: 13px; font-weight: 500; opacity: 0; transition: all .3s; z-index: 200; pointer-events: none; }
.toast.on { opacity: 1; transform: translateX(-50%); }
.notfound { min-height: 50vh; display: grid; place-content: center; text-align: center; gap: 14px; padding-top: var(--nav-h); }

/* ---------- modal (proposta de troca) ---------- */
.modal { position: fixed; inset: 0; z-index: 120; background: rgba(11, 11, 20, .6); backdrop-filter: blur(4px); display: grid; place-items: end center; padding: 0; overflow: auto; }
.modal-box { background: var(--surface); width: min(640px, 100%); max-height: 92vh; overflow: auto; border-radius: 20px 20px 0 0; padding: 22px 20px calc(22px + env(safe-area-inset-bottom)); display: grid; gap: 16px; }
.modal-head { display: flex; justify-content: space-between; gap: 12px; align-items: start; }
.modal-head h2 { font-size: 20px; margin: 4px 0 6px; }
.modal-head .note { font-size: 13px; color: var(--muted); }
.modal-x { width: 36px; height: 36px; border-radius: 10px; background: #F3F4F6; display: grid; place-items: center; flex: none; }
@media (min-width: 700px) { .modal { place-items: center; padding: 24px; } .modal-box { border-radius: 20px; padding: 26px; } }

/* ---------- Início: conversa com a Sophia ---------- */
.talk { position: relative; margin-top: var(--nav-h); background: var(--dark); color: #fff; overflow: hidden; padding: 40px 0 28px; }
.talk .bg { position: absolute; inset: 0; }
.talk .bg img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 30%; opacity: .5; }
.talk .bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 10, 10, .95) 0%, rgba(10, 10, 10, .8) 45%, rgba(10, 10, 10, .55) 100%); }
.talk-in { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 470px); gap: clamp(24px, 5vw, 64px); align-items: center; }
.talk-copy { display: grid; gap: 16px; }
.talk-copy .label { color: rgba(255, 255, 255, .6); }
.talk-copy h1 { font-size: clamp(30px, 4.2vw, 50px); line-height: 1.08; max-width: 13ch; }
.talk-copy p { color: rgba(255, 255, 255, .76); font-size: 16px; max-width: 44ch; }
.talk-copy .proof { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 6px; font-size: 13px; color: rgba(255, 255, 255, .66); }
.talk-copy .proof b { display: block; font-size: 20px; color: #fff; letter-spacing: -.02em; }
.talk-skip { position: relative; margin-top: 18px; text-align: right; }
.talk-skip a { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: rgba(255, 255, 255, .72); }
.talk-skip a:hover { color: #fff; }
.talk-skip svg { width: 15px; height: 15px; }

.chat { display: flex; flex-direction: column; height: min(660px, calc(100svh - var(--nav-h) - 96px)); min-height: 460px; background: var(--surface); color: var(--text); border-radius: 24px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .06); overflow: hidden; }
.chat-top { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .92); }
.chat-av { width: 40px; height: 40px; border-radius: 50%; background: var(--dark); color: #fff; display: grid; place-items: center; font-weight: 700; overflow: hidden; flex: none; position: relative; }
.chat-av img { width: 100%; height: 100%; object-fit: cover; }
.chat-id { display: grid; line-height: 1.25; min-width: 0; }
.chat-id b { font-size: 15px; }
.chat-id span { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-reset { margin-left: auto; font-size: 12px; font-weight: 600; color: var(--muted); padding: 6px 10px; border-radius: 999px; border: 1px solid var(--line); }
.chat-reset:hover { color: var(--text); border-color: var(--text); }
.chat-log { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 18px 14px 8px; display: flex; flex-direction: column; gap: 8px; background: #F6F7F9; scrollbar-width: thin; }
.cb { max-width: 84%; padding: 10px 14px; border-radius: 18px; font-size: 15px; line-height: 1.45; animation: cbIn .28s ease-out both; overflow-wrap: anywhere; }
.cb.bot { align-self: flex-start; background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.cb.me { align-self: flex-end; background: var(--dark); color: #fff; border-bottom-right-radius: 6px; }
.cb.note { background: #FFFDF5; font-size: 13px; }
.cb.wide { max-width: 100%; width: 100%; padding: 0; background: none; border: 0; }
.cb.media { padding: 4px; }
.cb-media { margin: 0; }
.cb-media img, .cb-media video { width: 100%; max-height: 420px; object-fit: cover; border-radius: 14px; background: #000; }
.cb-media figcaption { font-size: 13px; color: var(--muted); padding: 6px 8px 4px; }
.cb.typing { padding: 12px 14px; }
.dots { display: inline-flex; gap: 4px; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted-2); animation: dot 1s infinite ease-in-out; }
.dots i:nth-child(2) { animation-delay: .15s; } .dots i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
@keyframes cbIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .cb { animation: none; } .dots i { animation: none; opacity: .6; } }

.chat-ctl { padding: 0 14px; background: var(--surface); border-top: 1px solid transparent; }
.chat-ctl.on { padding: 12px 14px calc(12px + env(safe-area-inset-bottom)); border-top-color: var(--line); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.chip { padding: 11px 16px; border-radius: 999px; border: 1.5px solid var(--text); background: var(--surface); font-weight: 600; font-size: 14px; line-height: 1.1; transition: background .15s, color .15s, transform .15s; animation: cbIn .25s ease-out both; }
.chip:hover { background: var(--text); color: #fff; }
.chip:active { transform: scale(.97); }
.chip[disabled] { opacity: .4; pointer-events: none; }
.chip.sm { padding: 7px 12px; font-size: 13px; }
.chat-in { display: flex; gap: 8px; }
.chat-in input { flex: 1; min-width: 0; padding: 12px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: #F6F7F9; font-size: 16px; }
.chat-in input:focus { outline: none; border-color: var(--text); background: var(--surface); }
.chat-in button { width: 46px; height: 46px; border-radius: 50%; background: var(--dark); color: #fff; display: grid; place-items: center; flex: none; }
.chat-in button svg { width: 18px; height: 18px; }
.chat-note { font-size: 12px; color: var(--muted); text-align: center; margin-top: 8px; }

.depos { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 2px 6px; scrollbar-width: none; }
.depos::-webkit-scrollbar { display: none; }
.depo { flex: 0 0 min(250px, 78%); scroll-snap-align: start; margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 14px; display: grid; gap: 8px; align-content: start; }
.depo .stars { display: flex; gap: 2px; color: var(--accent); }
.depo blockquote { margin: 0; font-family: "Source Serif 4", Georgia, serif; font-style: italic; font-size: 15px; line-height: 1.45; }
.depo figcaption { font-size: 12px; color: var(--muted); }

.cars-row { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 2px 6px; scrollbar-width: none; }
.cars-row::-webkit-scrollbar { display: none; }
.mini { flex: 0 0 min(220px, 72%); scroll-snap-align: start; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.mini img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--soft); }
.mini .mb { padding: 10px 12px 12px; display: grid; gap: 2px; }
.mini .mb b { font-size: 15px; }
.mini .mb span { font-size: 12px; color: var(--muted); }
.mini .mb strong { font-size: 17px; margin-top: 2px; }
.mini .ma { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.mini .ma a { font-size: 13px; font-weight: 600; color: var(--muted); text-decoration: underline; }

@media (max-width: 900px) {
  .talk { padding: 18px 0 18px; }
  .talk-in { grid-template-columns: 1fr; gap: 16px; }
  .talk-copy { gap: 8px; }
  .talk-copy h1 { font-size: 26px; max-width: 18ch; }
  .talk-copy > p:not(.label), .talk-copy .label { display: none; }
  .talk-copy .proof { display: none; }
  .talk-copy h1 { font-size: 24px; }
  .chat { height: calc(100svh - var(--nav-h) - 128px); min-height: 430px; border-radius: 20px; }
  body.is-home .wa-float { display: none; }
  .talk-skip { text-align: center; margin-top: 12px; }
}

/* prévia dentro do painel */
html.previa .nav, html.previa #footer, html.previa .wa-float, html.previa .talk-copy, html.previa .talk-skip, html.previa .talk ~ section, html.previa .skip { display: none !important; }
html.previa .talk { margin: 0; padding: 0; background: none; }
html.previa .talk .bg { display: none; }
html.previa .talk-in { display: block; width: 100%; }
html.previa .chat { height: 100svh; min-height: 0; border-radius: 0; box-shadow: none; }
html.previa body, html.previa main { background: var(--surface); min-height: 0; }
.chat-err { font-size: 13px; color: var(--text); margin: 8px 4px 0; font-weight: 600; }
.talk-chat { min-width: 0; }
.chat { width: 100%; }
.chat-log > .cb { min-width: 0; }

/* funil: home travada até a pessoa abrir o WhatsApp */
body.gate .nav-links, body.gate .nav-cta, body.gate .menu, body.gate #footer, body.gate .wa-float, body.gate .talk-skip, body.gate .talk ~ section { display: none !important; }
body.gate .nav .wrap { justify-content: center; }
body.gate .talk { min-height: calc(100svh - var(--nav-h)); display: flex; align-items: center; }
body.gate .talk-in { width: min(var(--max), 100% - 2 * var(--gutter)); }
.cb-media { position: relative; }
.cb-media .som { position: absolute; top: 10px; left: 10px; padding: 7px 12px; border-radius: 999px; background: rgba(11, 11, 12, .72); color: #fff; font-size: 12px; font-weight: 600; backdrop-filter: blur(6px); }
