/* TruckMap · sistema visual: preto e branco, tipografia forte, mapa em primeiro plano. Acento âmbar da marca. */
:root {
  --ink: #000; --ink-2: #1f1f1f; --bg: #fff; --surface: #f6f6f6; --surface-2: #eeeeee; --surface-3: #e2e2e2;
  --line: #e8e8e8; --muted: #5e5e5e; --muted-2: #8a8a8a; --amber: #ff8a1b; --amber-ink: #8a4300; --link: #276ef1;
  --st-restriction: #c4291c; --st-restriction-bg: #fdeceb;
  --st-caution: #8a4a00; --st-caution-bg: #fff2df;
  --st-insufficient: #464b5c; --st-insufficient-bg: #eef0f4;
  --st-none: #0e5a9c; --st-none-bg: #e8f2fc;
  --r-sm: 8px; --r: 12px; --r-lg: 20px;
  --shadow: 0 1px 2px rgba(0,0,0,.06), 0 8px 24px rgba(0,0,0,.08);
  --shadow-lg: 0 10px 40px rgba(0,0,0,.18);
  --top-h: 64px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
html { scroll-behavior: smooth; }
body { font: 16px/1.5 var(--font); color: var(--ink); background: var(--bg); -webkit-text-size-adjust: 100%; -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column; }
a { color: var(--ink); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
svg.i { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- Barra superior ---------- */
.top { position: sticky; top: 0; z-index: 30; background: #000; color: #fff; display: flex; align-items: center; gap: 24px; padding: 0 24px; height: var(--top-h); }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 800; font-size: 21px; letter-spacing: -.02em; }
.logo { position: relative; width: 32px; height: 32px; border-radius: 9px; background: #fff; color: #000; display: grid; place-items: center; font-weight: 900; font-size: 20px; line-height: 1; }
.logo i { position: absolute; right: 5px; bottom: 5px; width: 7px; height: 7px; border-radius: 50%; background: var(--amber); }
.tabs { display: flex; gap: 4px; }
.tabs a { display: flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; padding: 8px 14px; border-radius: 999px; font-weight: 600; font-size: 15px; opacity: .78; transition: background .15s, opacity .15s; }
.tabs a svg.i { display: none; }
.tabs a:hover { opacity: 1; background: #1f1f1f; }
.tabs a[aria-current="page"] { opacity: 1; background: #fff; color: #000; }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.top-link { color: #fff; text-decoration: none; font-weight: 600; padding: 8px 14px; border-radius: 999px; }
.top-link:hover { background: #1f1f1f; }
.top-cta { background: #fff; color: #000; text-decoration: none; font-weight: 700; padding: 9px 18px; border-radius: 999px; }
.top-cta:hover { background: var(--surface-2); }
#nav { margin-left: auto; }

.banner-sim { background: #000; color: #ffd8a8; border-top: 1px solid #222; font-weight: 600; text-align: center; padding: 7px 12px; font-size: 13px; letter-spacing: .01em; }
.banner-sim::before { content: "SIMULADO"; background: var(--amber); color: #000; font-weight: 800; font-size: 11px; padding: 2px 7px; border-radius: 4px; margin-right: 8px; letter-spacing: .06em; }
.banner-off { background: var(--st-restriction-bg); color: var(--st-restriction); text-align: center; padding: 8px 12px; font-weight: 600; }

main { width: 100%; max-width: 1180px; margin: 0 auto; padding: 32px 24px 80px; flex: 1; }
main:focus { outline: none; }
main.wide { max-width: none; padding: 0; }
main.landing { max-width: none; padding: 0; }
h1 { font-size: clamp(28px, 4vw, 40px); line-height: 1.1; letter-spacing: -.025em; margin: 0 0 16px; font-weight: 800; }
h2 { font-size: 22px; letter-spacing: -.015em; margin: 28px 0 12px; font-weight: 700; }
h3 { font-size: 17px; margin: 18px 0 6px; font-weight: 700; }
p.lead { color: var(--muted); font-size: 17px; margin-top: -6px; }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 22px; margin-bottom: 16px; }
.grid { display: grid; gap: 16px; }
@media (min-width: 860px) { .grid.two { grid-template-columns: 1fr 1fr; } .grid.split { grid-template-columns: 420px 1fr; align-items: start; } }

/* ---------- Formulários ---------- */
label { display: block; font-weight: 600; margin: 16px 0 6px; font-size: 15px; }
.hint { color: var(--muted); font-size: 14px; font-weight: 400; }
input, select, textarea { width: 100%; font: inherit; padding: 13px 14px; border: 2px solid transparent; border-radius: var(--r-sm); background: var(--surface-2); color: var(--ink); min-height: 52px; transition: background .15s, border-color .15s; }
input:hover, select:hover, textarea:hover { background: var(--surface-3); }
input:focus, select:focus, textarea:focus { outline: none; border-color: #000; background: #fff; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #000 50%), linear-gradient(135deg, #000 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
textarea { min-height: 110px; resize: vertical; }
input[aria-invalid="true"], select[aria-invalid="true"] { border-color: var(--st-restriction); background: #fff; }
.field-error { color: var(--st-restriction); font-size: 14px; margin-top: 6px; font-weight: 500; }
.measure { display: grid; grid-template-columns: 1fr 100px; gap: 8px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; }
.check input { width: 22px; height: 22px; min-height: 0; margin-top: 2px; flex: none; accent-color: #000; padding: 0; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.row > .grow { flex: 1 1 200px; }

/* ---------- Botões ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 12px 22px; border-radius: var(--r-sm); border: 0; font: 600 16px var(--font); cursor: pointer; text-decoration: none; background: #000; color: #fff; transition: background .15s, transform .05s; }
.btn:hover { background: #333; }
.btn:active { transform: scale(.98); }
.btn.secondary { background: var(--surface-2); color: #000; }
.btn.secondary:hover { background: var(--surface-3); }
.btn.danger { background: var(--st-restriction); }
.btn.danger:hover { background: #9e1f15; }
.btn.amber { background: #000; color: #fff; }
.btn.amber::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--amber); }
.btn.light { background: #fff; color: #000; }
.btn.light:hover { background: var(--surface-2); }
.btn.ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,.35); }
.btn.ghost:hover { background: rgba(255,255,255,.1); }
.btn.big { min-height: 58px; font-size: 18px; width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.link-btn { background: none; border: 0; color: var(--ink); text-decoration: underline; font: inherit; cursor: pointer; padding: 4px; }

/* ---------- Estados da avaliação (cor nunca é o único sinal: ícone + texto) ---------- */
.status { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; font-weight: 700; font-size: 13px; }
.status .ic { font-size: 14px; line-height: 1; }
.status.restriction_found { color: var(--st-restriction); background: var(--st-restriction-bg); }
.status.caution { color: var(--st-caution); background: var(--st-caution-bg); }
.status.insufficient_data { color: var(--st-insufficient); background: var(--st-insufficient-bg); }
.status.no_restriction_found { color: var(--st-none); background: var(--st-none-bg); }

.option { border: 2px solid var(--line); border-radius: var(--r); padding: 16px 18px; margin-bottom: 12px; background: #fff; transition: border-color .15s, box-shadow .15s; }
.option[aria-current="true"] { border-color: #000; box-shadow: var(--shadow); }
.option header { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: center; }
.option h3 { font-size: 18px; }
.metrics { display: flex; gap: 18px; flex-wrap: wrap; color: var(--muted); font-size: 15px; margin: 10px 0; }
.metrics b { color: var(--ink); font-size: 17px; }

.findings { list-style: none; padding: 0; margin: 10px 0 0; }
.findings li { border-left: 4px solid var(--surface-3); background: var(--surface); padding: 12px 14px; border-radius: 0 var(--r-sm) var(--r-sm) 0; margin-bottom: 8px; }
.findings li.restriction_found { border-color: var(--st-restriction); }
.findings li.caution { border-color: var(--amber); }
.findings li.insufficient_data { border-color: var(--st-insufficient); }
.findings .meta { color: var(--muted); font-size: 13px; margin-top: 4px; }
.limitations { margin: 8px 0 0; padding-left: 20px; color: var(--ink-2); font-size: 15px; }
.limitations li { margin-bottom: 4px; }
.disclaimer { background: var(--surface); border-left: 4px solid var(--amber); border-radius: 0 var(--r-sm) var(--r-sm) 0; padding: 12px 14px; font-size: 15px; }

.list { list-style: none; padding: 0; margin: 0; }
.list li { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.list li:last-child { border-bottom: 0; }
.muted { color: var(--muted); }
.tag { display: inline-block; padding: 3px 9px; border-radius: 999px; background: var(--surface-2); color: #000; font-size: 12px; font-weight: 700; }
.empty { text-align: center; color: var(--muted); padding: 28px; }

/* ---------- Mapa ---------- */
.map { height: 440px; border-radius: var(--r-lg); background: var(--surface-2); overflow: hidden; }
.map.tall { height: calc(100vh - 280px); min-height: 320px; }
.map-fallback { display: flex; align-items: center; justify-content: center; text-align: center; color: var(--muted); padding: 16px; }
.leaflet-container { font: 13px var(--font); background: var(--surface-2); }
.leaflet-tile-pane { filter: grayscale(1) contrast(1.04) brightness(1.04); }
.leaflet-bar { border: 0 !important; box-shadow: var(--shadow) !important; border-radius: 10px !important; overflow: hidden; }
.leaflet-bar a { width: 38px !important; height: 38px !important; line-height: 38px !important; color: #000 !important; }
.leaflet-tooltip { font-weight: 700; border-radius: 8px; border: 0; box-shadow: var(--shadow); }
.leaflet-popup-content-wrapper { border-radius: 12px; }

/* Tela dividida: painel + mapa (planejar e resultado). Celular: mapa no topo e painel tipo "bottom sheet". */
.split-view { display: grid; grid-template-columns: minmax(380px, 460px) 1fr; min-height: calc(100vh - var(--top-h)); }
.split-panel { padding: 28px 28px 60px; background: #fff; box-shadow: 8px 0 30px rgba(0,0,0,.06); z-index: 2; }
.split-map { position: sticky; top: var(--top-h); height: calc(100vh - var(--top-h)); }
.split-map .map { height: 100%; border-radius: 0; }
.map-tools { position: absolute; left: 16px; bottom: 24px; z-index: 500; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.map-tools .btn { min-height: 44px; padding: 8px 16px; box-shadow: var(--shadow); }
.map-tools .hint { background: #fff; padding: 8px 12px; border-radius: 999px; box-shadow: var(--shadow); color: #000; }
.split-panel h1 { font-size: 30px; }
.split-panel .card { box-shadow: none; border: 0; padding: 0; background: transparent; }

/* Caixa de viagem: origem (círculo) → destino (quadrado), como um bilhete de viagem */
.trip { position: relative; background: var(--surface); border-radius: var(--r); padding: 6px 14px 10px 44px; margin: 14px 0; }
.trip::before { content: ""; position: absolute; left: 21px; top: 46px; height: calc(100% - 118px); min-height: 40px; border-left: 2px solid #000; }
.pp { position: relative; }
.pp > label { margin-top: 10px; font-size: 13px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.pp::before { content: ""; position: absolute; left: -29px; top: 47px; width: 12px; height: 12px; border-radius: 50%; border: 3px solid #000; background: #fff; }
.pp.dest::before { border-radius: 2px; background: #000; }
.pp input { background: #fff; }
.pp .chosen { margin: 8px 0 2px; font-size: 14px; }
.vehicle-pick { background: #000; color: #fff; border-radius: var(--r); padding: 14px 16px; display: flex; gap: 12px; align-items: center; }
.vehicle-pick svg.i { width: 28px; height: 28px; }
.vehicle-pick select { background-color: #1f1f1f; color: #fff; min-height: 44px; background-image: linear-gradient(45deg, transparent 50%, #fff 50%), linear-gradient(135deg, #fff 50%, transparent 50%); }
.vehicle-pick select:focus { border-color: var(--amber); background-color: #1f1f1f; }
.vehicle-pick .hint { color: #bdbdbd; margin: 6px 0 0; font-size: 13px; }
.vehicle-pick > div { flex: 1; min-width: 0; }

@media (max-width: 859px) {
  .split-view { display: flex; flex-direction: column; }
  .split-map { order: -1; position: relative; top: 0; height: 44vh; min-height: 260px; }
  .split-panel { margin-top: -22px; border-radius: 22px 22px 0 0; padding: 12px 18px 40px; box-shadow: 0 -10px 30px rgba(0,0,0,.12); }
  .split-panel::before { content: ""; display: block; width: 44px; height: 5px; border-radius: 3px; background: var(--surface-3); margin: 0 auto 14px; }
  .split-panel h1 { font-size: 26px; }
  .map-tools { bottom: 36px; }
}

/* ---------- Navegação ativa ---------- */
.nav-panel { position: sticky; top: var(--top-h); z-index: 10; background: #000; color: #fff; border-radius: var(--r-lg); padding: 20px; margin-bottom: 14px; box-shadow: var(--shadow-lg); }
.nav-panel .tag { background: #1f1f1f; color: #fff; }
.nav-next { font-size: 28px; font-weight: 800; line-height: 1.15; letter-spacing: -.02em; margin-top: 10px; }
.nav-dist { font-size: 48px; font-weight: 900; color: #fff; letter-spacing: -.03em; }
.nav-state { margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: #1a1a1a; font-weight: 600; }
.nav-state.warn { background: var(--amber); color: #000; }
.nav-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.nav-controls .btn.secondary { background: #262626; color: #fff; }
.nav-controls .btn.secondary:hover { background: #333; }

/* ---------- Avisos e diálogos ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: #000; color: #fff; padding: 14px 18px; border-radius: var(--r); box-shadow: var(--shadow-lg); max-width: min(92vw, 560px); z-index: 60; font-weight: 500; }
.toast.error { background: var(--st-restriction); }
.alert { border-radius: var(--r-sm); padding: 14px; margin: 12px 0; font-weight: 500; }
.alert.error { background: var(--st-restriction-bg); color: var(--st-restriction); }
.alert.info { background: var(--st-none-bg); color: var(--st-none); }
.alert small { display: block; opacity: .85; margin-top: 4px; font-weight: 400; }
dialog { border: 0; border-radius: var(--r-lg); padding: 0; max-width: min(560px, 94vw); box-shadow: var(--shadow-lg); }
dialog::backdrop { background: rgba(0,0,0,.6); backdrop-filter: blur(2px); }
dialog .card { margin: 0; box-shadow: none; border: 0; padding: 26px; }
.loading { display: flex; align-items: center; gap: 12px; color: var(--muted); padding: 24px; }
.spinner { width: 22px; height: 22px; border: 3px solid var(--surface-3); border-top-color: #000; border-radius: 50%; animation: spin 0.9s linear infinite; }
.btn .spinner { border-color: rgba(255,255,255,.3); border-top-color: #fff; }
@keyframes spin { to { transform: rotate(360deg); } }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 600; }
.table-wrap { overflow-x: auto; }
footer.site { display: flex; gap: 8px 20px; justify-content: center; flex-wrap: wrap; text-align: center; color: var(--muted); font-size: 13px; padding: 22px 16px 32px; border-top: 1px solid var(--line); }
footer.site a { color: var(--muted); }
body[data-route="planejar"] footer.site, body[data-route="rota"] footer.site, body[data-route="navegar"] footer.site { display: none; }

/* ---------- Celular: barra de abas inferior ---------- */
@media (max-width: 759px) {
  :root { --top-h: 56px; }
  .top { padding: 0 16px; height: var(--top-h); }
  .tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: #fff; border-top: 1px solid var(--line); justify-content: space-around; padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); box-shadow: 0 -6px 20px rgba(0,0,0,.06); }
  .tabs a { flex-direction: column; gap: 2px; color: var(--muted-2); padding: 6px 8px; font-size: 11px; font-weight: 600; opacity: 1; border-radius: 10px; min-width: 60px; }
  .tabs a svg.i { display: block; }
  .tabs a:hover { background: transparent; }
  .tabs a[aria-current="page"] { background: transparent; color: #000; }
  body.has-tabs { padding-bottom: 68px; }
  body[data-route="navegar"] .tabs { display: none; }
  body[data-route="navegar"].has-tabs { padding-bottom: 0; }
  .top-link { padding: 8px 10px; }
  .top-cta { padding: 8px 14px; }
  main { padding: 22px 16px 60px; }
  .card { padding: 18px; border-radius: 16px; }
  .nav-panel { top: 0; }
  .nav-dist { font-size: 40px; }
}

/* =====================================================================
   Página institucional
   ===================================================================== */
.hero { background: #000; color: #fff; position: relative; overflow: hidden; }
.hero-copy { position: relative; z-index: 2; max-width: 1180px; margin: 0 auto; padding: clamp(40px, 7vw, 96px) 24px 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: #cfcfcf; margin: 0 0 18px; }
.eyebrow::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 5px rgba(255,138,27,.2); }
.hero h1 { font-size: clamp(40px, 7.2vw, 88px); line-height: .98; letter-spacing: -.045em; max-width: 13ch; margin: 0 0 22px; font-weight: 900; }
.hero h1 em { font-style: normal; color: var(--amber); }
.hero-lead { font-size: clamp(17px, 2vw, 21px); color: #cfcfcf; max-width: 46ch; margin: 0 0 30px; line-height: 1.5; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-cta .btn { min-height: 56px; padding: 14px 28px; font-size: 17px; border-radius: 999px; }
.hero-note { color: #8f8f8f; font-size: 14px; margin-top: 16px; }
.hero-scene { position: relative; height: clamp(300px, 40vw, 560px); margin-top: clamp(-40px, -3vw, 0px); }
.hero-scene::before { content: ""; position: absolute; inset: 0 0 auto; height: 90px; background: linear-gradient(#000, transparent); z-index: 1; pointer-events: none; }
.scene { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.scene-brand { font: 900 64px var(--font); letter-spacing: -.04em; fill: #000; }
.chip { position: absolute; z-index: 2; display: flex; align-items: center; gap: 10px; background: rgba(18,18,18,.72); color: #fff; border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); padding: 10px 14px; border-radius: 14px; font-size: 14px; font-weight: 600; box-shadow: 0 10px 30px rgba(0,0,0,.4); animation: float 6s ease-in-out infinite; }
.chip b { font-size: 16px; }
.chip small { display: block; color: #a8a8a8; font-weight: 500; font-size: 12px; }
.chip svg.i { width: 20px; height: 20px; color: var(--amber); }
.chip.c1 { left: 6%; top: 18%; }
.chip.c2 { right: 7%; top: 12%; animation-delay: -2s; }
.chip.c3 { right: 5%; top: 36%; animation-delay: -4s; }
@keyframes float { 50% { transform: translateY(-8px); } }

.scene .stars circle { animation: twinkle 4s ease-in-out infinite; }
.scene .stars circle:nth-child(3n) { animation-delay: -1.3s; }
.scene .stars circle:nth-child(3n+1) { animation-delay: -2.6s; animation-duration: 5s; }
@keyframes twinkle { 50% { opacity: .25; } }
.scene .layer { will-change: transform; }
.scene .layer-far { animation: drift 140s linear infinite; }
.scene .layer-hills { animation: drift 60s linear infinite; }
.scene .layer-poles { animation: drift 7.27s linear infinite; }
.scene .layer-rail { animation: drift 5.3s linear infinite; }
@keyframes drift { to { transform: translateX(-1600px); } }
.scene .dash { stroke-dasharray: 60 50; animation: dash .5s linear infinite; }
@keyframes dash { to { stroke-dashoffset: 110; } }
.scene .wheel { transform-box: fill-box; transform-origin: center; animation: roll .74s linear infinite; }
@keyframes roll { to { transform: rotate(360deg); } }
.scene .truck-body { animation: bob 1.2s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-1.8px); } }
.scene .beam { animation: beam 3s ease-in-out infinite; }
@keyframes beam { 50% { opacity: .75; } }

.section { max-width: 1180px; margin: 0 auto; padding: clamp(56px, 8vw, 110px) 24px; }
.section.tight { padding-top: 0; }
.kicker { font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.section h2 { font-size: clamp(30px, 4.4vw, 52px); line-height: 1.04; letter-spacing: -.035em; margin: 0 0 18px; font-weight: 900; max-width: 20ch; }
.section .lede { font-size: clamp(17px, 1.8vw, 20px); color: var(--muted); max-width: 60ch; margin: 0; }
.statement { font-size: clamp(24px, 3.2vw, 38px); line-height: 1.25; letter-spacing: -.02em; font-weight: 700; max-width: 30ch; margin: 0; }
.statement span { color: var(--muted-2); }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 40px; }
.feature { background: var(--surface); border-radius: var(--r-lg); padding: 28px 24px; transition: transform .2s, box-shadow .2s, background .2s; }
.feature:hover { transform: translateY(-4px); background: #fff; box-shadow: var(--shadow); }
.feature .fi { width: 52px; height: 52px; border-radius: 14px; background: #000; color: #fff; display: grid; place-items: center; margin-bottom: 20px; }
.feature .fi svg.i { width: 26px; height: 26px; }
.feature h3 { font-size: 20px; margin: 0 0 8px; letter-spacing: -.01em; }
.feature p { color: var(--muted); margin: 0; }

.dark-band { background: #000; color: #fff; }
.dark-band .kicker { color: #9a9a9a; }
.dark-band .lede { color: #bdbdbd; }
.steps { list-style: none; padding: 0; margin: 44px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; counter-reset: step; }
.steps li { counter-increment: step; border-top: 2px solid #2a2a2a; padding-top: 22px; }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; font-size: 15px; font-weight: 800; color: var(--amber); margin-bottom: 10px; letter-spacing: .05em; }
.steps h3 { font-size: 21px; margin: 0 0 8px; }
.steps p { color: #a8a8a8; margin: 0; }

.showcase { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.state-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.state-list li { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; align-items: start; }
.state-list li p { grid-column: 2; margin: 0; color: var(--muted); font-size: 15px; }
.state-list .status { grid-row: span 2; align-self: start; min-width: 0; }

.phone { width: min(320px, 82vw); aspect-ratio: 9 / 18.5; margin: 0 auto; border-radius: 46px; background: #0b0b0b; padding: 12px; box-shadow: 0 40px 80px rgba(0,0,0,.28), inset 0 0 0 2px #2a2a2a; position: relative; }
.phone::before { content: ""; position: absolute; top: 20px; left: 50%; transform: translateX(-50%); width: 90px; height: 24px; border-radius: 14px; background: #000; z-index: 3; }
.phone-screen { position: relative; height: 100%; border-radius: 36px; overflow: hidden; background: #eee; }
.phone-map { position: absolute; inset: 0; width: 100%; height: 100%; }
.phone-route { stroke-dasharray: 700; stroke-dashoffset: 700; animation: draw 4s ease-out forwards infinite; }
@keyframes draw { 60%, 100% { stroke-dashoffset: 0; } }
.phone-car { animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .55; } }
.phone-top { position: absolute; left: 10px; right: 10px; top: 52px; background: #000; color: #fff; border-radius: 18px; padding: 14px 16px; z-index: 2; box-shadow: 0 10px 24px rgba(0,0,0,.3); }
.phone-top .row { gap: 10px; flex-wrap: nowrap; }
.phone-top svg.i { width: 30px; height: 30px; color: var(--amber); }
.phone-top b { font-size: 26px; letter-spacing: -.02em; display: block; line-height: 1; }
.phone-top span { color: #bdbdbd; font-size: 13px; }
.phone-bottom { position: absolute; left: 10px; right: 10px; bottom: 14px; background: #fff; border-radius: 18px; padding: 12px 14px; z-index: 2; box-shadow: 0 10px 24px rgba(0,0,0,.18); font-size: 13px; }
.phone-bottom .tag { background: #000; color: #fff; }

.honesty { background: var(--surface); border-radius: var(--r-lg); padding: clamp(26px, 4vw, 44px); display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: start; }
.honesty .fi { width: 56px; height: 56px; border-radius: 16px; background: var(--amber); color: #000; display: grid; place-items: center; }
.honesty h3 { font-size: 22px; margin: 0 0 6px; }
.honesty p { margin: 0; color: var(--ink-2); }

.cta-band { background: #000; color: #fff; border-radius: 28px; padding: clamp(36px, 6vw, 72px); display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; right: -80px; top: -80px; width: 280px; height: 280px; border-radius: 50%; background: radial-gradient(circle, rgba(255,138,27,.45), transparent 70%); }
.cta-band h2 { color: #fff; margin: 0; max-width: 18ch; }
.cta-band .hero-cta { position: relative; z-index: 1; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 859px) {
  .showcase { grid-template-columns: 1fr; }
  .chip.c3 { display: none; }
  .chip.c1 { left: 4%; top: 8%; }
  .chip.c2 { right: 4%; top: 30%; }
  .honesty { grid-template-columns: 1fr; }
}
@media (max-width: 520px) { .chip { font-size: 12px; padding: 8px 10px; } .chip b { font-size: 14px; } }

/* ---------- Autenticação ---------- */
.auth { max-width: 460px; margin: 0 auto; padding-top: 12px; }
.auth h1 { font-size: 34px; }
.auth .card { border: 0; box-shadow: none; padding: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .spinner, .scene *, .chip, .phone-route, .phone-car { animation: none !important; }
  .phone-route { stroke-dashoffset: 0; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
@media print {
  .top, .tabs, .btn, .nav-controls, .toast, .skip, .map-tools { display: none !important; }
  .card { box-shadow: none; break-inside: avoid; }
  .map { height: 300px; }
  .split-view { display: block; }
  .split-map { position: static; height: 300px; }
}
.split-panel .kicker { font-weight: 700; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 6px 0 8px; }
.route-arrow { color: var(--muted-2); font-weight: 500; }
.split-panel .card { border-top: 1px solid var(--line); border-radius: 0; padding-top: 6px; margin-top: 18px; }
/* O mapa (camadas do Leaflet com z-index alto) fica num contexto próprio, abaixo do painel */
.split-map { isolation: isolate; z-index: 1; }
.split-panel { position: relative; }
