/* Fonte Inter (SIL Open Font License), servida localmente — sem CDN */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
                 U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
                 U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
                 U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF,
                 U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* =========================================================
   Rota Norte Transportes — folha de estilo unica
   Linguagem visual de pagina de acompanhamento de entrega
   de marketplace: barra amarela, fundo cinza claro, cards
   brancos, azul de acao, cantos de 8px.
   Rebrand: troque apenas as variaveis abaixo.
   ========================================================= */

:root {
  --amarelo: #ffe600;
  --amarelo-escuro: #f2d900;
  --azul: #3483fa;
  --azul-escuro: #2968c8;
  --azul-claro: #e3edfb;
  --verde: #00a650;
  --verde-claro: #e6f7ec;
  --vermelho: #f23d4f;
  --laranja: #ff7733;

  /* texto e neutros no padrão do Mercado Livre (E6 / 8C / 66 sobre preto) */
  --ink: rgba(0, 0, 0, .9);
  --ink-2: rgba(0, 0, 0, .55);
  --muted: rgba(0, 0, 0, .45);
  --line: rgba(0, 0, 0, .12);
  --line-soft: rgba(0, 0, 0, .07);
  --bg: #ffffff;
  --bg-gray: #ededed;
  --bg-soft: #f5f5f5;
  --marca: #0a2c42;

  --radius: 6px;
  --radius-sm: 6px;
  --radius-lg: 8px;
  --shadow: 0 1px 2px rgba(0, 0, 0, .12), 0 0 1px rgba(0, 0, 0, .18);
  --shadow-pop: 0 8px 24px rgba(0, 0, 0, .12);
  /* aliases de compatibilidade com o tema anterior */
  --warn: #a4560a;
  --ok: #00a650;
  --danger: #b3261e;
  --brand-900: rgba(0, 0, 0, .9);
  --brand-800: #ffffff;
  --accent: #3483fa;

  --max: 1180px;
  --font: "Proxima Nova", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
          Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

/* o atributo hidden precisa vencer regras de display dos componentes */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }
a { color: var(--azul); text-decoration: none; }
a:hover { color: var(--azul-escuro); }

h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.2; font-weight: 600; letter-spacing: -.01em; color: var(--ink); }
h1 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
h2 { font-size: clamp(1.3rem, 2.2vw, 1.75rem); }
h3 { font-size: 1.05rem; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: clamp(34px, 5vw, 56px) 0; }
.section--soft { background: var(--bg-soft); }
.section--gray { background: var(--bg-gray); }
.section--dark { background: #2d2d2d; color: #fff; }
.section--dark h2, .section--dark h3 { color: #fff; }

.eyebrow { display: inline-block; font-size: .78rem; font-weight: 600; color: var(--ink-2); margin-bottom: 8px; }
.lead { font-size: 1rem; color: var(--ink-2); max-width: 62ch; margin-bottom: 0; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* ---------------- Header (barra amarela) ---------------- */
.site-header { position: sticky; top: 0; z-index: 60; background: var(--amarelo); box-shadow: 0 1px 0 rgba(0, 0, 0, .06); }
.site-header__in { display: flex; align-items: center; gap: 14px; height: 60px; }

.logo { display: flex; align-items: center; gap: 9px; color: var(--marca); flex: 0 0 auto; }
.logo:hover { color: var(--marca); }
.logo__mark { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--marca); color: #fff; flex: 0 0 auto; }
.logo__mark svg { width: 18px; height: 18px; }
.logo__txt { font-weight: 700; font-size: 1rem; line-height: 1.05; letter-spacing: -.02em; }
.logo__txt small { display: block; font-size: .62rem; font-weight: 600; color: rgba(0, 0, 0, .55); letter-spacing: .02em; }

.header-search { flex: 1 1 auto; display: flex; max-width: 520px; background: #fff; border-radius: 4px; overflow: hidden; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); }
.header-search input { flex: 1 1 auto; border: 0; background: transparent; padding: 0 14px; height: 38px; font: inherit; font-size: .9rem; color: var(--ink); min-width: 0; border-radius: 0; }
.header-search input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--azul); }
.header-search button { border: 0; background: #fff; padding: 0 13px; cursor: pointer; color: rgba(0, 0, 0, .55); display: grid; place-items: center; border-left: 1px solid var(--line-soft); }
.header-search button:hover { color: var(--azul); }
.header-search svg { width: 17px; height: 17px; }

.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav a { padding: 8px 10px; border-radius: 5px; font-size: .86rem; font-weight: 500; color: rgba(0, 0, 0, .78); white-space: nowrap; }
.nav a:hover { background: rgba(0, 0, 0, .06); color: var(--ink); }
.nav a[aria-current="page"] { font-weight: 700; color: var(--ink); }
.nav a.nav__destaque { color: var(--azul); font-weight: 700; }
.nav a.nav__destaque:hover { background: var(--azul-claro); color: var(--azul-escuro); }

.header-cta { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.nav-toggle { display: none; margin-left: auto; border: 0; background: rgba(0, 0, 0, .08); width: 38px; height: 38px; border-radius: 6px; cursor: pointer; padding: 0; place-items: center; }
.nav-toggle span { display: block; width: 17px; height: 2px; background: var(--ink); margin: 3px auto; border-radius: 2px; }

@media (max-width: 1080px) {
  .header-search { display: none; }
  .header-cta .btn--ghost { display: none; }
}
@media (max-width: 900px) {
  .nav-toggle { display: grid; }
  .nav {
    position: fixed; inset: 60px 0 auto 0; flex-direction: column; align-items: stretch;
    background: #fff; padding: 10px 14px 16px; gap: 0; margin: 0;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow-pop);
    transform: translateY(-6px); opacity: 0; pointer-events: none; transition: .15s ease;
  }
  .nav[data-open="true"] { transform: none; opacity: 1; pointer-events: auto; }
  .nav a { padding: 12px 8px; font-size: .95rem; border-bottom: 1px solid var(--line-soft); }
}

/* ---------------- Botoes ---------------- */
.btn {
  --btn-bg: var(--azul); --btn-fg: #fff; --btn-bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 40px; padding: 8px 16px; border-radius: var(--radius-sm);
  border: 1px solid var(--btn-bd); background: var(--btn-bg); color: var(--btn-fg);
  font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap;
  text-decoration: none; transition: background .15s ease, box-shadow .15s ease;
}
.btn:focus-visible { outline: none; box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--azul); }
.btn:hover { color: var(--btn-fg); filter: brightness(1.04); box-shadow: 0 2px 8px rgba(0, 0, 0, .12); }
.btn:active { filter: brightness(.96); }
.btn--primary { --btn-bg: var(--azul); }
.btn--outline { --btn-bg: #fff; --btn-fg: var(--azul); --btn-bd: #d6d6d6; }
.btn--outline:hover { --btn-bg: var(--azul-claro); --btn-bd: var(--azul-claro); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); }
.btn--ghost:hover { --btn-bg: rgba(0, 0, 0, .06); box-shadow: none; }
.btn--lg { min-height: 48px; padding: 12px 24px; font-size: 16px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: progress; }

/* ---------------- Hero ---------------- */
.hero { position: relative; background: #fff; border-bottom: 1px solid var(--line-soft); }
.hero__in { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; padding-top: clamp(30px, 4.5vw, 54px); padding-bottom: clamp(30px, 4.5vw, 54px); }
.hero h1 { font-size: clamp(1.7rem, 3vw, 2.4rem); color: var(--ink); margin-bottom: 12px; hyphens: none; }
.hero h1 em { font-style: normal; color: var(--azul); }
.hero__lead { color: var(--ink-2); font-size: 1.02rem; max-width: 52ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.hero__badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 0; padding: 0; list-style: none; }
.hero__badges li { font-size: .78rem; font-weight: 500; color: var(--ink-2); background: var(--bg-soft); border: 1px solid var(--line-soft); padding: 5px 10px; border-radius: 999px; }

.track-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow); position: relative; }
.track-card h3 { margin-bottom: 4px; font-size: 1.05rem; }
.track-card__sub { color: var(--ink-2); font-size: .86rem; margin-bottom: 14px; }
.track-card .field { margin-bottom: 10px; }
.track-card__hint { font-size: .76rem; color: var(--muted); margin: 10px 0 0; }
.track-card__hint code { background: var(--bg-soft); padding: 2px 5px; border-radius: 4px; font-size: .74rem; }

@media (max-width: 940px) {
  .hero__in { grid-template-columns: 1fr; gap: 26px; }
  .track-card { max-width: 460px; }
}

/* ---------------- Faixa de numeros ---------------- */
.stats { background: var(--bg-gray); border-bottom: 1px solid #dedede; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: #dedede; }
.stats__item { background: var(--bg-gray); padding: 20px 16px; text-align: center; }
.stats__num { font-size: clamp(1.3rem, 2.2vw, 1.75rem); font-weight: 700; color: var(--ink); letter-spacing: -.02em; }
.stats__num span { color: var(--azul); }
.stats__lbl { font-size: .76rem; color: var(--ink-2); }
@media (max-width: 720px) { .stats__grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------------- Cards / grids ---------------- */
.grid { display: grid; gap: 16px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }
.grid > *, .split > * { min-width: 0; }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; transition: box-shadow .15s ease, border-color .15s ease; }
.card--hover:hover { box-shadow: var(--shadow); border-color: #d5d5d5; }
.card--flat { box-shadow: none; }
.card__icon { width: 38px; height: 38px; border-radius: 8px; display: grid; place-items: center; background: var(--azul-claro); color: var(--azul); margin-bottom: 12px; }
.card__icon svg { width: 20px; height: 20px; }
.card h3 { margin-bottom: 6px; }
.card p { color: var(--ink-2); font-size: .9rem; margin-bottom: 0; }
.card__list { margin: 12px 0 0; padding: 0; list-style: none; font-size: .88rem; color: var(--ink-2); }
.card__list li { position: relative; padding-left: 20px; margin-bottom: 6px; }
.card__list li::before { content: ""; position: absolute; left: 0; top: .45em; width: 10px; height: 6px; border-left: 2px solid var(--verde); border-bottom: 2px solid var(--verde); transform: rotate(-45deg); }
.card__link { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; font-size: .86rem; margin-top: 12px; }

/* ---------------- Formularios ---------------- */
.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; }
.field > label { font-size: .8rem; font-weight: 600; color: var(--ink-2); }
.field .hint { font-size: .74rem; color: var(--muted); font-weight: 400; }
input, select, textarea {
  font: inherit; font-size: 14px; color: var(--ink);
  border: 1px solid rgba(0, 0, 0, .2); border-radius: var(--radius-sm);
  padding: 12px; background: #fff; width: 100%; transition: border-color .15s, box-shadow .15s;
}
input, select { height: 48px; }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--azul); box-shadow: 0 0 0 2px rgba(52, 131, 250, .2);
}
input::placeholder, textarea::placeholder { color: #a0a0a0; }
textarea { min-height: 96px; resize: vertical; }
.row { display: grid; gap: 0 12px; }
.row--2 { grid-template-columns: 1fr 1fr; }
.row--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 620px) { .row--2, .row--3 { grid-template-columns: 1fr; } }
.check { display: flex; align-items: flex-start; gap: 9px; font-size: .85rem; color: var(--ink-2); margin: 4px 0 14px; }
.check input { width: 16px; height: 16px; margin-top: 2px; flex: 0 0 auto; accent-color: var(--azul); }
.form-note { font-size: .76rem; color: var(--muted); margin-top: 10px; }

.alert { border-radius: var(--radius-sm); padding: 11px 13px; font-size: .86rem; margin-bottom: 12px; display: none; }
.alert--error { background: #fdecec; color: #b3261e; border: 1px solid #f6cfcf; }
.alert--ok { background: var(--verde-claro); color: #0b7a3d; border: 1px solid #c4e9d3; }
.alert[data-show="true"] { display: block; }

/* ---------------- Resultado da cotacao ---------------- */
.quote-result { display: none; }
.quote-result[data-show="true"] { display: block; }
.quote-result__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--line-soft); margin-bottom: 12px; flex-wrap: wrap; }
.quote-total { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 700; letter-spacing: -.02em; color: var(--ink); line-height: 1.05; }
.quote-total small { display: block; font-size: .74rem; color: var(--ink-2); font-weight: 500; margin-bottom: 4px; }
.quote-row { display: flex; justify-content: space-between; gap: 14px; padding: 7px 0; font-size: .9rem; border-bottom: 1px solid var(--line-soft); }
.quote-row:last-of-type { border-bottom: 0; }
.quote-row span:first-child { color: var(--ink-2); }
.quote-row span:last-child { font-weight: 600; font-variant-numeric: tabular-nums; }
.quote-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 14px 0 0; }
.kpi { background: var(--bg-soft); border-radius: var(--radius-sm); padding: 10px 12px; }
.kpi b { display: block; font-size: 1rem; font-weight: 700; }
.kpi span { font-size: .7rem; color: var(--ink-2); }
@media (max-width: 560px) { .quote-kpis { grid-template-columns: 1fr 1fr; } }

/* ---------------- Rastreio: layout ---------------- */
.page-head { padding: 20px 0 16px; }
.page-title { font-size: clamp(1.35rem, 2.4vw, 1.7rem); margin-bottom: 4px; }
.page-sub { color: var(--ink-2); font-size: .92rem; margin: 0; }
.breadcrumb { font-size: .8rem; color: var(--ink-2); margin-bottom: 10px; }
.breadcrumb a { color: var(--ink-2); }
.breadcrumb a:hover { color: var(--azul); }

.search-bar { display: flex; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 7px; margin: 14px 0 0; max-width: 620px; }
.search-bar input { border: 0; height: 40px; padding: 8px 10px; font-size: 14px; text-transform: uppercase; letter-spacing: .04em; font-weight: 600; }
.search-bar input:focus { box-shadow: none; }
.search-bar .btn { flex: 0 0 auto; }

.track-layout { display: grid; grid-template-columns: 300px 1fr; gap: 16px; align-items: start; margin-top: 16px; }
@media (max-width: 940px) {
  .track-layout { grid-template-columns: 1fr; }
  .track-main { order: 1; }
  .track-side { order: 2; }
}

.track-side { display: grid; gap: 12px; position: sticky; top: 76px; }
@media (max-width: 940px) { .track-side { position: static; } }

.order-head { display: flex; gap: 12px; align-items: center; padding-bottom: 12px; border-bottom: 1px solid var(--line-soft); }
.order-thumb { width: 46px; height: 46px; border-radius: 8px; background: var(--bg-soft); display: grid; place-items: center; color: var(--marca); flex: 0 0 auto; }
.order-thumb svg { width: 24px; height: 24px; }
.order-head strong { display: block; font-size: .92rem; }
.order-head .rota__codigo { font-size: .78rem; }
.order-meta { margin: 12px 0 0; display: grid; gap: 7px; }
.order-meta div { display: flex; justify-content: space-between; gap: 10px; font-size: .86rem; }
.order-meta dt { color: var(--ink-2); }
.order-meta dd { margin: 0; font-weight: 600; text-align: right; }

.eta-card { padding: 0; overflow: hidden; }
.eta-band {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 14px;
  padding: 16px 20px; background: var(--azul-claro); border-bottom: 1px solid #cfe0f8;
}
.eta-band[data-status="ENTREGUE"] { background: var(--verde-claro); border-bottom-color: #c4e9d3; }
.eta-band[data-status="AGUARDANDO_COLETA"] { background: var(--bg-soft); border-bottom-color: var(--line-soft); }
.eta-band .badge { margin-top: 2px; }
.eta-body { padding: 16px 20px 14px; }
.eta-card__top { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: flex-start; }
.eta-label { font-size: .8rem; color: var(--ink-2); display: block; margin-bottom: 2px; }
.eta-date { font-size: clamp(1.25rem, 2.2vw, 1.6rem); font-weight: 700; letter-spacing: -.02em; }
.eta-date small { font-weight: 500; color: var(--ink-2); font-size: .8rem; display: block; letter-spacing: 0; }
.eta-route { text-align: left; font-size: .86rem; color: var(--ink-2); margin-bottom: 2px; }
.eta-route b { display: block; font-size: 1rem; color: var(--ink); }

/* stepper */
.stepper { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); margin: 22px 0 0; padding: 0; position: relative; }
.stepper::before { content: ""; position: absolute; left: 8%; right: 8%; top: 9px; height: 3px; border-radius: 2px; background: var(--line); z-index: 0; }
.stepper__prog { position: absolute; left: 8%; top: 9px; height: 3px; border-radius: 2px; background: var(--verde); z-index: 1; transition: width .5s ease; }
.stepper__step { position: relative; z-index: 2; display: grid; justify-items: center; gap: 7px; text-align: center; padding: 0 4px; }
.stepper__dot { width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 3px solid var(--line); display: grid; place-items: center; transition: border-color .2s ease, background .2s ease; }
.stepper__dot svg { width: 12px; height: 12px; color: #a8b3bf; opacity: 1; }
.stepper__step[data-estado="done"] .stepper__dot svg { color: #fff; }
.stepper__step[data-estado="now"] .stepper__dot svg { color: var(--azul); }
.stepper__label { font-size: .74rem; color: var(--muted); line-height: 1.25; }
.stepper__step[data-estado="done"] .stepper__dot { background: var(--verde); border-color: var(--verde); }
.stepper__step[data-estado="done"] .stepper__dot svg { opacity: 1; }
.stepper__step[data-estado="done"] .stepper__label { color: var(--ink); }
.stepper__step[data-estado="now"] .stepper__dot { border-color: var(--azul); background: #fff; box-shadow: 0 0 0 4px rgba(52, 131, 250, .16); }
.stepper__step[data-estado="now"] .stepper__label { color: var(--azul); font-weight: 700; }
@media (max-width: 620px) { .stepper__label { font-size: .66rem; } }

/* timeline */
.timeline { list-style: none; margin: 16px 0 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 9px; top: 10px; bottom: 10px; width: 2px; background: var(--line-soft); }
.timeline li { position: relative; padding: 0 0 20px 34px; }
.timeline li::before { content: ""; position: absolute; left: 3px; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid #d6d6d6; }
.timeline li[data-concluido="true"]::before { border-color: var(--verde); background: var(--verde); }
.timeline__data { font-size: .74rem; color: var(--muted); }
.timeline__titulo { font-weight: 600; margin: 1px 0 1px; font-size: .93rem; }
.timeline__desc { font-size: .86rem; color: var(--ink-2); margin: 0; }
.timeline__local { font-size: .78rem; color: var(--ink-2); }

.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; font-size: .74rem; font-weight: 700; }
.badge--transito { background: #fff3e0; color: #a4560a; }
.badge--entregue { background: var(--verde-claro); color: #0b7a3d; }
.badge--aguardando { background: var(--bg-soft); color: var(--ink-2); }

/* ---------------- Mapa de rota ---------------- */
.section--rota { background: #fff; border-top: 1px solid var(--line-soft); }
.rota__topo { display: flex; gap: 24px; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; margin-bottom: 18px; }
.rota__topo > div { max-width: 640px; }
.rota__busca { display: flex; gap: 8px; flex-wrap: nowrap; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 7px; }
.rota__busca input { border: 0; min-width: 0; flex: 1 1 auto; text-transform: uppercase; letter-spacing: .04em; font-weight: 600; font-size: .88rem; }
.rota__busca input:focus { box-shadow: none; }
.rota__grid { display: grid; grid-template-columns: 1.58fr .82fr; gap: 16px; align-items: start; }
@media (max-width: 900px) { .rota__grid { grid-template-columns: 1fr; } }

.rota__mapa-card { padding: 10px 10px 6px; }
.rota__mapa { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 220px; background: linear-gradient(180deg, #f7fbff 0%, #eef4f9 100%); border: 1px solid var(--line-soft); }
.mapa__carregando, .mapa__vazio { display: grid; place-items: center; min-height: 220px; margin: 0; color: var(--muted); font-size: .88rem; font-weight: 500; }
.mapa__svg { width: 100%; height: auto; display: block; }

.mapa__uf { fill: #eaeef2; stroke: #d3dbe2; stroke-width: 1; transition: fill .2s; vector-effect: non-scaling-stroke; }
.mapa__uf:hover { fill: #dfe7ee; }
.mapa__rota { stroke: #b8c4d0; stroke-width: 2.5; stroke-dasharray: 7 7; animation: mapaTraco 1.8s linear infinite; vector-effect: non-scaling-stroke; }
.mapa__percorrido { stroke: url(#gradRota); stroke-width: 4.5; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.mapa__halo { opacity: .14; }
.mapa__ponto--origem .mapa__halo { fill: var(--marca); }
.mapa__ponto--origem .mapa__disco { fill: var(--marca); }
.mapa__ponto--origem .mapa__miolo { fill: #fff; }
.mapa__ponto--destino .mapa__halo { fill: var(--azul); }
.mapa__ponto--destino .mapa__disco { fill: var(--azul); }
.mapa__ponto--destino .mapa__miolo { fill: #fff; }
.mapa__svg[data-status="ENTREGUE"] .mapa__ponto--destino .mapa__disco { fill: var(--verde); }
.mapa__svg[data-status="ENTREGUE"] .mapa__ponto--destino .mapa__halo { fill: var(--verde); }
.mapa__label { font-family: var(--font); font-weight: 600; fill: var(--ink); paint-order: stroke; stroke: #fff; stroke-width: 3.5px; stroke-linejoin: round; }
.mapa__truck-bg { fill: #fff; stroke: var(--azul); stroke-width: 3; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .18)); }
.mapa__pulso { fill: none; stroke: var(--azul); stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: mapaPulso 2.2s ease-out infinite; }
@keyframes mapaPulso { 0% { transform: scale(.65); opacity: .75; } 70% { transform: scale(1.45); opacity: .1; } 100% { transform: scale(1.7); opacity: 0; } }
@keyframes mapaTraco { to { stroke-dashoffset: -28; } }
@media (prefers-reduced-motion: reduce) { .mapa__rota, .mapa__pulso { animation: none; } }

.rota__legenda { display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 9px 4px 3px; font-size: .74rem; color: var(--ink-2); }
.rota__legenda span { display: inline-flex; align-items: center; gap: 6px; }
.lg { width: 12px; height: 5px; border-radius: 3px; display: inline-block; }
.lg--origem { background: var(--marca); }
.lg--destino { background: var(--azul); }
.lg--trecho { background: var(--azul); height: 3px; }
.lg--resto { background: repeating-linear-gradient(90deg, #b8c4d0 0 4px, transparent 4px 8px); height: 3px; }

.rota__painel { padding: 18px; }
.rota__codigo { font-size: .78rem; font-weight: 700; letter-spacing: .05em; color: var(--muted); }
.rota__trecho { font-size: 1rem; font-weight: 700; letter-spacing: -.01em; margin: 6px 0 2px; }
.rota__cidades { font-size: .82rem; color: var(--ink-2); margin-bottom: 12px; }
.rota__dados { margin: 0; display: grid; gap: 7px; }
.rota__dados div { display: flex; justify-content: space-between; gap: 10px; font-size: .85rem; }
.rota__dados dt { color: var(--ink-2); }
.rota__dados dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }

.rota__barra { height: 6px; border-radius: 999px; background: var(--line-soft); overflow: hidden; margin: 14px 0 7px; }
.rota__barra > i { display: block; height: 100%; border-radius: 999px; background: var(--verde); transition: width .8s ease; }
.rota__progresso-txt { font-size: .78rem; color: var(--ink-2); font-weight: 600; }

.rota__evento { margin-top: 14px; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--bg-soft); border-left: 3px solid var(--azul); }
.rota__evento strong { display: block; font-size: .86rem; font-weight: 600; }
.rota__evento span { font-size: .76rem; color: var(--ink-2); }

.rota__chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 16px; }
.chip { font: inherit; font-size: .76rem; font-weight: 600; cursor: pointer; background: #fff; border: 1px solid #d6d6d6; color: var(--ink-2); padding: 7px 12px; border-radius: 999px; }
.chip:hover { border-color: var(--azul); color: var(--azul); }
.chip[aria-pressed="true"] { background: var(--azul-claro); border-color: var(--azul-claro); color: var(--azul-escuro); }
.chip--acao { background: var(--azul); border-color: var(--azul); color: #fff; }
.chip--acao:hover { background: var(--azul-escuro); border-color: var(--azul-escuro); color: #fff; }

/* ---------------- Tabela ---------------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table { border-collapse: collapse; width: 100%; font-size: .9rem; min-width: 520px; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line-soft); }
th { background: var(--bg-soft); font-size: .76rem; font-weight: 600; color: var(--ink-2); }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fafafa; }

/* ---------------- FAQ ---------------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 600; padding: 14px 30px 14px 0; list-style: none; position: relative; font-size: .95rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 1.3rem; font-weight: 400; color: var(--azul); line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq p { color: var(--ink-2); padding-right: 24px; font-size: .9rem; }

/* ---------------- CTA ---------------- */
.cta-band { background: var(--azul-claro); border: 1px solid #cfe0f8; border-radius: var(--radius-lg); padding: clamp(24px, 3.5vw, 34px); display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.cta-band h2 { margin-bottom: 6px; }
.cta-band p { color: var(--ink-2); margin: 0; max-width: 52ch; font-size: .92rem; }

/* ---------------- Footer ---------------- */
.site-footer { background: #fff; border-top: 1px solid var(--line); padding: 34px 0 20px; font-size: .86rem; }
.site-footer h4 { margin: 0 0 10px; font-size: .8rem; color: var(--ink); font-weight: 600; }
.site-footer a { color: var(--ink-2); }
.site-footer a:hover { color: var(--azul); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 7px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 28px; }
.footer-brand .logo { margin-bottom: 10px; color: var(--marca); }
.footer-bottom { margin-top: 26px; padding-top: 16px; border-top: 1px solid var(--line-soft); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .78rem; color: var(--muted); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* =========================================================
   Tela de rastreio ao vivo (estilo app)
   ========================================================= */
.tela-app { background: #f0f0f0; }
@media (max-width: 900px) { .tela-app { padding-bottom: 62px; } }

.app-bar {
  position: sticky; top: 0; z-index: 1200;
  display: flex; align-items: center; gap: 8px;
  height: 56px; padding: 0 8px;
  background: var(--amarelo); box-shadow: 0 1px 0 rgba(0, 0, 0, .08);
}
.app-bar__icon {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  border: 0; background: transparent; color: var(--ink); cursor: pointer; flex: 0 0 auto;
}
.app-bar__icon:hover { background: rgba(0, 0, 0, .08); color: var(--ink); }
.app-bar__icon svg { width: 21px; height: 21px; }
.app-bar__marca { display: flex; align-items: center; gap: 8px; min-width: 0; }
.app-bar__marca .logo__mark { width: 26px; height: 26px; }
.app-bar__marca .logo__mark svg { width: 16px; height: 16px; }
.app-bar__marca strong { display: block; font-size: .9rem; line-height: 1.1; }
.app-bar__marca small { display: block; font-size: .72rem; color: rgba(0, 0, 0, .6); line-height: 1.2; }
.app-bar__acoes { margin-left: auto; display: flex; gap: 2px; }

.ao-vivo { display: flex; flex-direction: column; height: calc(100dvh - 56px - 62px); min-height: 460px; }
.ao-vivo__mapa { position: relative; flex: 1 1 auto; min-height: 240px; background: #e8edf1; overflow: hidden; }
.mapa-host { position: absolute; inset: 0; z-index: 1; }
.mapa-fallback { position: absolute; inset: 0; padding: 8px; background: #eef4f9; display: flex; align-items: center; }
.leaflet-container { font-family: var(--font); background: #e8edf1; }
.leaflet-tile { filter: saturate(.82) contrast(.97) brightness(1.03); }
.leaflet-control-attribution { font-size: 10px; margin-right: 58px !important; }
@media (max-width: 900px) { body.com-tabbar { padding-bottom: 62px; } }

.mapa-selo { position: absolute; left: 12px; bottom: 14px; z-index: 600; display: flex; align-items: center; gap: 8px; }
.mapa-selo__logo {
  background: #fff; border-radius: 10px; padding: 6px 10px; font-size: .72rem; font-weight: 700;
  letter-spacing: .02em; color: var(--ink); box-shadow: var(--shadow);
}
.pill { display: inline-flex; align-items: center; padding: 4px 9px; border-radius: 999px; font-size: .7rem; font-weight: 700; }
.pill--verde { background: var(--verde); color: #fff; box-shadow: var(--shadow); }

.mapa-fab {
  position: absolute; right: 12px; bottom: 12px; z-index: 600;
  width: 42px; height: 42px; border-radius: 50%; border: 0; background: #fff; color: var(--ink);
  display: grid; place-items: center; box-shadow: 0 2px 8px rgba(0, 0, 0, .22); cursor: pointer;
}
.mapa-fab svg { width: 20px; height: 20px; }
.mapa-fab:hover { color: var(--azul); }

/* marcadores */
.marcador-entregador {
  width: 46px; height: 46px; border-radius: 50%; background: #fff; border: 3px solid var(--azul);
  display: grid; place-items: center; box-shadow: 0 2px 10px rgba(0, 0, 0, .28);
}
.marcador-entregador svg { width: 24px; height: 24px; color: var(--marca); }
.marcador-entregador { position: relative; }
.marcador-entregador::after {
  content: ""; position: absolute; inset: -7px; border-radius: 50%;
  border: 2px solid rgba(52, 131, 250, .55);
  animation: pulsoEntregador 2.4s ease-out infinite;
}
@keyframes pulsoEntregador {
  0% { transform: scale(.82); opacity: .85; }
  70% { transform: scale(1.35); opacity: 0; }
  100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .marcador-entregador::after { animation: none; } }
.marcador-destino svg { width: 34px; height: 34px; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .3)); }
.marcador-cd {
  width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--marca);
  box-shadow: 0 1px 4px rgba(0, 0, 0, .3);
}

/* folha inferior */
.folha {
  position: relative; z-index: 700; flex: 0 0 auto; background: #fff;
  border-radius: 18px 18px 0 0; padding: 8px 18px 14px;
  box-shadow: 0 -6px 22px rgba(0, 0, 0, .14); margin-top: -18px;
}
.folha__pega { width: 38px; height: 4px; border-radius: 999px; background: #e2e2e2; margin: 0 auto 10px; }
.folha__linha { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.folha__live { display: inline-flex; align-items: center; gap: 6px; }
.live {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: .64rem; font-weight: 800; letter-spacing: .1em;
  color: #d93025; background: #fdeceb; padding: 3px 8px 3px 7px; border-radius: 999px;
}
.live i { width: 6px; height: 6px; border-radius: 50%; background: #e53935; animation: pulsoLive 1.6s ease-in-out infinite; }
.live[data-estado="pausado"] { color: #6f6f6f; background: #f1f1f1; }
.live[data-estado="pausado"] i { background: #b0b0b0; animation: none; }
.live[data-estado="entregue"] { color: #0b7a3d; background: var(--verde-claro); }
.live[data-estado="entregue"] i { background: var(--verde); animation: none; }
.live[data-estado="aguardando"] { color: #6f6f6f; background: #f1f1f1; }
.live[data-estado="aguardando"] i { background: #b0b0b0; animation: none; }
.live[data-estado="fora"] { color: #6f6f6f; background: #ededed; }
.live[data-estado="fora"] i { background: #b0b0b0; animation: none; }
.live[data-estado="tentativa"] { color: #a4560a; background: #fff3e0; }
.live[data-estado="tentativa"] i { background: #f5a623; animation: none; }

.pill--ambar { background: #f5a623; color: #fff; box-shadow: var(--shadow); }
@keyframes pulsoLive {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.5); opacity: .35; }
}
.folha__pausa {
  width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line);
  background: #fff; color: var(--ink-2); display: grid; place-items: center; cursor: pointer; padding: 0;
}
.folha__pausa:hover { border-color: var(--azul); color: var(--azul); }
.folha__pausa svg { width: 13px; height: 13px; }
.folha__pausa[aria-pressed="true"] { border-color: var(--azul); color: #fff; background: var(--azul); }
@media (prefers-reduced-motion: reduce) { .live i { animation: none; } }

.tag-servico { display: inline-flex; align-items: center; gap: 3px; color: var(--verde); font-size: .72rem; font-weight: 800; letter-spacing: .06em; }
.tag-servico svg { width: 13px; height: 13px; }
.folha__prazo { display: flex; align-items: center; gap: 6px; margin: 6px 0 8px; font-size: .78rem; font-weight: 600; color: var(--verde); }
.folha__prazo i { width: 7px; height: 7px; border-radius: 50%; background: var(--verde); }
.folha__prazo[data-tom="alerta"] { color: #a4560a; }
.folha__prazo[data-tom="alerta"] i { background: #f5a623; }
.folha__titulo { font-size: 1.28rem; font-weight: 700; line-height: 1.24; letter-spacing: -.02em; margin: 0 0 6px; }
.folha__sub { font-size: .86rem; color: var(--ink-2); margin: 0 0 14px; }

.folha__trilho { display: flex; align-items: center; gap: 8px; padding-right: 4px; }
.folha__barra { position: relative; flex: 1 1 auto; height: 4px; border-radius: 999px; background: #e6e6e6; overflow: hidden; }
.folha__barra > i { display: block; height: 100%; width: 0; background: var(--ink); border-radius: 999px; transition: width .8s ease; }
.folha__ponta { width: 12px; height: 12px; border-radius: 50%; border: 2px solid #cfcfcf; flex: 0 0 auto; }

.folha__rodape { display: flex; align-items: center; gap: 14px; margin-top: 12px; flex-wrap: wrap; }
.folha__meta { display: grid; gap: 1px; }
.folha__meta span { font-size: .68rem; color: var(--muted); }
.folha__meta strong { font-size: .82rem; }
.folha__rodape .btn { margin-left: auto; }

@media (min-width: 901px) {
  .ao-vivo { display: block; position: relative; height: 600px; }
  .mapa-selo { left: 24px; bottom: auto; top: 24px; }
  .ao-vivo__mapa { position: absolute; inset: 0; }
  .folha {
    position: absolute; left: 24px; bottom: 24px; width: 420px; margin: 0;
    border-radius: 14px; padding: 16px 20px 18px; border: 1px solid rgba(0, 0, 0, .06);
    box-shadow: 0 12px 34px rgba(0, 0, 0, .22);
  }
  .folha__pega { display: none; }
  .folha__titulo { font-size: 1.42rem; }
  .mapa-fab { bottom: 24px; }
}

/* detalhes */
.detalhes { padding: 22px 0 34px; background: #f0f0f0; }
.detalhes__topo { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.detalhes__titulo { font-size: 1.2rem; margin: 0 0 2px; }
.card-titulo { font-size: .98rem; margin-bottom: 6px; }
.pipe { color: #c9c9c9; margin: 0 6px; }

/* login */
.tela-login { background: var(--bg-gray); min-height: 100dvh; }
.login-wrap { max-width: 430px; margin: 0 auto; padding: 34px 18px 40px; }
.login-card { padding: 24px; }
.campo-senha { position: relative; display: flex; }
.campo-senha input { padding-right: 70px; }
.campo-senha__ver {
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  border: 0; background: transparent; color: var(--azul); font: inherit;
  font-size: .76rem; font-weight: 600; cursor: pointer; padding: 8px 10px;
}
.campo-senha__ver:hover { color: var(--azul-escuro); }

/* cadastro de pedido */
.origem-fixa {
  display: flex; align-items: center; gap: 10px;
  background: #f5f8fb; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px 14px;
}
.origem-fixa__icone {
  width: 34px; height: 34px; border-radius: 9px; background: var(--azul-claro); color: var(--azul);
  display: grid; place-items: center; flex: 0 0 auto;
}
.origem-fixa__icone svg { width: 18px; height: 18px; }
.origem-fixa__rotulo { display: block; font-size: .72rem; color: var(--ink-2); }
.origem-fixa strong { font-size: 1rem; line-height: 1.2; }
.origem-fixa__cidade { display: block; font-size: .78rem; color: var(--ink-2); }
.origem-fixa .pill { margin-left: auto; }
.pill--cinza { background: #ededed; color: var(--ink-2); }

.pedido-linha {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 4px; border-bottom: 1px solid var(--line-soft); color: var(--ink);
}
.pedido-linha:last-child { border-bottom: 0; }
.pedido-linha:hover { background: #fafafa; color: var(--ink); }
.pedido-linha strong { display: block; font-size: .9rem; line-height: 1.25; }
.pedido-linha span { font-size: .78rem; color: var(--ink-2); }
.pedido-linha__seta { font-size: 1.2rem; color: var(--muted); }

/* barra de navegacao inferior */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1300;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  background: #fff; border-top: 1px solid var(--line);
  padding: 6px 2px calc(6px + env(safe-area-inset-bottom));
}
.tabbar__item { display: grid; justify-items: center; gap: 3px; padding: 3px; color: #7c7c7c; font-size: .66rem; font-weight: 600; }
.tabbar__item svg { width: 22px; height: 22px; }
.tabbar__item[aria-current="page"] { color: var(--azul); }
@media (min-width: 901px) { .tabbar { display: none; } .tela-app { padding-bottom: 0; } }

/* ---------------- Utilitarios ---------------- */
.mt-0 { margin-top: 0 !important; }
.mt-2 { margin-top: 12px; }
.mt-3 { margin-top: 20px; }
.mb-0 { margin-bottom: 0 !important; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(22px, 4vw, 48px); align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.reveal { opacity: 0; transform: translateY(10px); transition: opacity .4s ease, transform .4s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }
.skip-link { position: absolute; left: -9999px; top: 0; background: #fff; color: var(--ink); padding: 10px 16px; z-index: 200; font-weight: 600; }
.skip-link:focus { left: 0; }
.muted { color: var(--muted); }
.small { font-size: .82rem; }
.divider { height: 1px; background: var(--line-soft); margin: 24px 0; }
.mono { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; letter-spacing: .03em; }
.route-art { width: 100%; height: auto; border-radius: var(--radius); }
