/* ==========================================================================
   99Envio — folha de estilos única (Fase 16)
   --------------------------------------------------------------------------
   Substitui as 14 camadas anteriores (app.css, redesign*.css, fase7…fase15,
   site-consolidado-2026.css). Carregada por layouts/site.php, layouts/painel.php
   e layouts/admin.php. Nenhuma outra folha do projeto é necessária, exceto
   trustindex-google-widget.css (carregada pelo próprio widget de avaliações).

   Organização (mobile-first; media queries ficam junto do componente):
     01. Fontes locais
     02. Tokens (cores, tipografia, espaço, raios, sombras)
     03. Reset e base
     04. Tipografia
     05. Layout (container, seções, grids, utilitários de pilha)
     06. Cabeçalho e navegação pública
     07. Rodapé e barra de ação mobile
     08. Botões
     09. Formulários
     10. Cartões, ícones, badges, alertas
     11. Tabelas, barras de ferramentas, abas, estados vazios
     12. Site público: hero, faixas, seções da home
     13. Site público: páginas internas (cotação, rastreio, contato, sobre…)
     14. Autenticação e páginas de erro
     15. App shell (área do cliente e administração)
     16. Área do cliente e administração: componentes de tela
     17. Terceiros (Trustindex, widget de atendimento)
     18. Acessibilidade, movimento e impressão
     19. Utilitários
   ========================================================================== */

/* 01. Fontes locais ------------------------------------------------------- */
/* Inter e Sora (variáveis, subconjunto latin — cobre o português). Servidas
   do próprio site: não dependem do Google Fonts nem de exceções na CSP. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin-var.woff2") format("woff2");
}
@font-face {
  font-family: "Sora";
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url("../fonts/sora-latin-var.woff2") format("woff2");
}

/* 02. Tokens --------------------------------------------------------------- */
:root {
  /* Marca */
  --orange-50: #fff4ed;
  --orange-100: #ffe6d5;
  --orange-200: #ffc9a8;
  --orange-400: #f78a4f;
  --orange-500: #f26522;   /* laranja da marca — destaques, ícones, foco */
  --orange-600: #cc4a10;   /* fundo de botão: contraste 4,6:1 com texto branco */
  --orange-700: #b23f0d;   /* texto/links laranja sobre fundo claro */
  /* Contorno de foco: --orange-400 dava 2,4:1 sobre branco (mínimo 3:1,
     WCAG 1.4.11). Em fundo claro vale o 700 (5,8:1); nos blocos azul-marinho
     o 400 volta (no navy o 700 cai para ~2,6:1). */
  --focus: var(--orange-700);
  --navy-950: #070e1a;
  --navy-900: #0b1424;
  --navy-800: #12203a;
  --navy-700: #183452;
  --navy-600: #25466b;

  /* Texto e superfícies */
  --ink: #142238;          /* títulos e texto principal */
  --ink-2: #334155;        /* corpo de texto */
  --text-muted: #5b6b82;   /* texto secundário: 5:1 sobre o fundo */
  --text-subtle: #8a98ad;  /* placeholders e metadados não essenciais */
  --text-on-dark: #c9d3e1;
  --text-on-dark-muted: #a3b1c6;
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --surface-3: #eef2f7;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  /* Borda de campo: 3,42:1 sobre branco (WCAG 1.4.11 pede 3:1 para o
     contorno que identifica o campo; --border-strong dava 1,48:1). */
  --border-input: #7d8ca2;

  /* Estados */
  /* Canal WhatsApp: mesma cor de --success, mas papel próprio (o design.md
     reserva as cores de estado para estado real, não para marca de canal). */
  --whatsapp: #15803d;
  --whatsapp-hover: #116630;
  --success: #15803d;
  --success-bg: #ecfdf3;
  --success-border: #abefc6;
  --danger: #b42318;
  --danger-bg: #fef3f2;
  --danger-border: #fecdca;
  --warning: #b54708;
  --warning-bg: #fffaeb;
  --warning-border: #fedf89;
  --info: #175cd3;
  --info-bg: #eff8ff;
  --info-border: #b2ddff;

  /* Aliases usados por scripts das páginas (mantidos de propósito) */
  --accent: var(--orange-600);
  --text: var(--ink);

  /* Tipografia */
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Sora", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  /* Espaço, raios, sombras. Uso (docs/design.md): --radius-sm em botão e
     campo, --radius em cartão, --radius-pill só em chip/selo. --radius-lg e
     --radius-xl ficaram sem uso nas folhas e seguem aqui por compatibilidade. */
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --radius-pill: 999px;
  --shadow-xs: 0 1px 2px rgba(16, 24, 40, .05);
  --shadow-sm: 0 1px 3px rgba(16, 24, 40, .07), 0 1px 2px rgba(16, 24, 40, .04);
  --shadow-md: 0 10px 28px -10px rgba(16, 24, 40, .18);
  --shadow-lg: 0 24px 56px -16px rgba(11, 20, 36, .32);
  --ring: 0 0 0 3px rgba(242, 101, 34, .32);

  /* Espaço em base 8 (27/10/2026): antes só havia --gutter e --section-y,
     e cada componente inventava o seu valor. */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;

  /* Layout */
  --header-h: 72px;
  --container: 1200px;
  --gutter: 16px;
  /* Respiro entre seções na escala de 8 (27/10/2026): era 56/88 px, fora da
     escala, e somava ~300 px à home de 7.424 px (M5). */
  --section-y: var(--space-7);

  --ease: cubic-bezier(.2, .8, .2, 1);
  --dur: .18s;
}
@media (min-width: 768px) {
  :root { --gutter: 24px; --section-y: var(--space-8); }
}

/* 03. Reset e base --------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Âncoras (#empresas etc.) param abaixo do cabeçalho fixo */
  scroll-padding-top: calc(var(--header-h) + 16px);
}
body {
  margin: 0;
  min-width: 320px;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd, pre { margin: 0; }
ul, ol { margin: 0; padding: 0; }
ul[class], ol[class] { list-style: none; }
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
svg { flex-shrink: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
hr { border: 0; border-top: 1px solid var(--border); margin: 24px 0; }
table { border-collapse: collapse; }
[hidden] { display: none !important; }
::selection { background: rgba(242, 101, 34, .2); }
main { display: block; }

/* 04. Tipografia ----------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.02em;
  text-wrap: balance;
  overflow-wrap: break-word;
}
h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.25rem); }
h2 { font-size: clamp(1.625rem, 1.25rem + 1.6vw, 2.375rem); }
h3 { font-size: 1.25rem; letter-spacing: -.01em; }
h4 { font-size: 1.0625rem; letter-spacing: -.005em; }
p { overflow-wrap: break-word; }
strong, b { font-weight: 600; color: inherit; }
small { font-size: .8125rem; }
code, kbd, samp {
  font-family: var(--font-mono);
  font-size: .875em;
  background: var(--surface-3);
  border-radius: 6px;
  padding: .1em .4em;
  overflow-wrap: anywhere;
}
pre { font-family: var(--font-mono); }

.lead { font-size: 1.0625rem; line-height: 1.7; color: var(--text-muted); }
@media (min-width: 768px) { .lead { font-size: 1.125rem; } }

.link {
  color: var(--orange-700);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(178, 63, 13, .35);
  text-underline-offset: 3px;
}
.link:hover { text-decoration-color: currentColor; }
.link--arrow { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.link--arrow:hover { text-decoration: underline; }
.link--muted { color: var(--text-muted); font-weight: 500; text-decoration: none; }
.link--muted:hover { color: var(--ink); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  margin-bottom: 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--orange-100);
  background: var(--orange-50);
  color: var(--orange-700);
  font-size: .8125rem;
  font-weight: 600;
  /* Sem caixa alta espaçada (27/10/2026): rótulo em CAIXA ALTA sobre todo
     título era um dos sinais de "site de modelo" apontados na proposta (A8). */
  letter-spacing: 0;
  line-height: 1.4;
  text-transform: none;
}
.eyebrow--on-dark {
  border-color: rgba(242, 101, 34, .4);
  background: rgba(242, 101, 34, .16);
  color: var(--orange-200);
}

/* 05. Layout --------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: calc(860px + 2 * var(--gutter)); }
.container--tight { max-width: calc(640px + 2 * var(--gutter)); }

.section { padding-block: var(--section-y); }
.section--tight { padding-block: calc(var(--section-y) * .6); }
.section--muted { background: var(--surface); border-block: 1px solid var(--border); }
.section--flush-top { padding-top: 0; }

.section-head { max-width: 720px; margin: 0 auto 40px; text-align: center; }
.section-head h2 { margin-bottom: 12px; }
@media (min-width: 768px) { .section-head { margin-bottom: 56px; } }

.grid { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) {
  .grid--2, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 700px) { .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 900px) { .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.grid--tight { gap: 12px; }

.stack { display: grid; gap: 16px; align-content: start; }
.stack > * { min-width: 0; }
.stack--sm { gap: 8px; }
.stack--lg { gap: 24px; }
.cluster { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.cluster--sm { gap: 8px; }
.cluster--between { justify-content: space-between; }
.cluster--end { justify-content: flex-end; }
.cluster--center { justify-content: center; }

/* 06. Cabeçalho e navegação pública --------------------------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--dur) var(--ease);
}
.header.scrolled { box-shadow: 0 6px 24px -12px rgba(16, 24, 40, .18); }
.header__inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  height: var(--header-h);
}
.logo { display: inline-flex; align-items: center; flex-shrink: 0; border-radius: var(--radius-sm); }
.logo__img { width: auto; height: 38px; }
@media (min-width: 768px) { .logo__img { height: 42px; } }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
}
.nav-toggle:hover { background: var(--surface-2); }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* Menu móvel: painel abaixo do cabeçalho */
.nav {
  position: absolute;
  top: 100%;
  /* Cobre a largura do cabeçalho sem passar dela: com -gutter ia de -16 a
     406 px numa tela de 390 e os botões encostavam na borda. */
  left: 0;
  right: 0;
  display: none;
  flex-direction: column;
  gap: 16px;
  max-height: calc(100dvh - var(--header-h));
  overflow-y: auto;
  padding: 12px var(--gutter) 20px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 24px 40px -24px rgba(16, 24, 40, .35);
}
.nav.is-open { display: flex; }
.nav__links { display: grid; gap: 2px; }
.nav__link {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 12px;
  border: 0;
  border-radius: var(--radius-sm);
  background: none;
  color: var(--ink-2);
  font-size: .9375rem;
  font-weight: 500;
  text-align: left;
  white-space: nowrap;
  transition: background-color var(--dur), color var(--dur);
}
.nav__link:hover { background: var(--surface-2); color: var(--ink); }
.nav__link.is-active { color: var(--orange-700); font-weight: 600; background: var(--orange-50); }
.nav__link--strong { color: var(--orange-700); font-weight: 600; }
.nav__actions {
  display: grid;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.nav__actions form { display: contents; }
@media (min-width: 1100px) {
  .nav-toggle { display: none; }
  .nav {
    position: static;
    display: flex;
    flex: 1;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    max-height: none;
    overflow: visible;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
  }
  .nav__links { display: flex; align-items: center; gap: 2px; margin-inline: auto; }
  .nav__link { padding: 8px 12px; font-size: .9rem; }
  .nav__link.is-active { background: transparent; box-shadow: inset 0 -2px 0 var(--orange-500); border-radius: 0; }
  .nav__actions { display: flex; align-items: center; gap: 10px; padding: 0; border: 0; }
}

/* 07. Rodapé e barra de ação mobile --------------------------------------- */
.footer {
  background: var(--navy-950);
  color: var(--text-on-dark-muted);
  padding: 56px 0 28px;
  font-size: .9375rem;
}
.footer a:not(.btn) { color: var(--text-on-dark); transition: color var(--dur); }
.footer a:not(.btn):hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer__grid { display: grid; gap: 36px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .footer__grid { grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 48px; } }
.footer__brand .logo__img { height: 44px; }
.footer__about { margin: 16px 0 20px; max-width: 34ch; line-height: 1.7; }
.footer__title {
  margin-bottom: 14px;
  color: #fff;
  font-family: var(--font-display);
  font-size: .9375rem;
  font-weight: 600;
}
.footer__list { display: grid; gap: 10px; }
.footer__list li { display: flex; gap: 10px; align-items: flex-start; }
.footer__list svg { margin-top: 3px; color: var(--orange-400); }
.footer__seals { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.footer__seals a { display: inline-flex; border-radius: var(--radius-sm); }
.footer__seals img { height: 36px; width: auto; padding: 4px 8px; border-radius: var(--radius-sm); background: #fff; }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 44px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: .8125rem;
  color: var(--text-on-dark-muted);
}

.mobile-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 45;
  display: flex;
  gap: 10px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: var(--surface);
  border-top: 1px solid var(--border);
  box-shadow: 0 -10px 30px -18px rgba(16, 24, 40, .4);
}
.mobile-cta .btn { flex: 1; min-height: 46px; padding-inline: 10px; }
body:has(.mobile-cta) { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
@media (min-width: 769px) {
  .mobile-cta { display: none; }
  body:has(.mobile-cta) { padding-bottom: 0; }
}

/* Texto corrido (política de privacidade): medida de leitura e ritmo. */
.prose { max-width: 68ch; color: var(--ink-2); line-height: 1.7; }
.prose h2 { margin: var(--space-7) 0 var(--space-3); color: var(--ink); font-size: 1.375rem; line-height: 1.3; }
.prose h2:first-child { margin-top: 0; }
.prose p,
.prose ul,
.prose .table-wrap { margin: 0 0 var(--space-4); }
.prose ul { padding-left: var(--space-5); list-style: disc; }
.prose li + li { margin-top: var(--space-2); }
.prose a { color: var(--orange-700); text-decoration: underline; text-underline-offset: 3px; }
.prose .table-wrap { max-width: none; }
.prose .table td { vertical-align: top; }

/* Links legais do rodapé (privacidade e preferências de cookies) */
.footer__legal { display: inline-flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); }
.footer__legal a,
.footer__legal .link-btn { color: var(--text-on-dark-muted); text-decoration: underline; text-underline-offset: 3px; }
.footer__legal a:hover,
.footer__legal .link-btn:hover { color: #fff; }

/* Botão com cara de link (ação que não navega, ex.: abrir preferências) */
.link-btn {
  display: inline;
  padding: 0;
  border: 0;
  background: none;
  color: var(--orange-700);
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

/* Aviso de cookies (partials/consentimento.php). Não é modal: a página
   continua usável. Fica acima da barra fixa do celular. */
.consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  padding: var(--space-4) var(--gutter) calc(var(--space-4) + env(safe-area-inset-bottom));
  border-top: 1px solid var(--border);
  background: var(--surface);
  box-shadow: 0 -12px 32px -18px rgba(16, 24, 40, .45);
}
/* Na 1ª visita pelo celular, aviso + barra fixa + chat cobriam ~31% da tela
   e quase todo o formulário de cotação. O aviso tem botões próprios, então
   enquanto ele está aberto a barra e o chat saem de cena. */
body.consent-aberto .mobile-cta,
body.consent-aberto #wc-btn { display: none !important; }
.consent__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3) var(--space-5);
  max-width: var(--container);
  margin: 0 auto;
}
.consent__texto { flex: 1 1 32ch; }
.consent__titulo { margin: 0 0 var(--space-1); color: var(--ink); font-family: var(--font-display); font-size: 1rem; font-weight: 700; }
.consent__texto p { margin: 0; color: var(--ink-2); font-size: .875rem; line-height: 1.5; }
.consent__texto a { color: var(--orange-700); font-weight: 600; }
.consent__acoes { display: flex; gap: var(--space-2); flex: 0 0 auto; }
.consent__acoes .btn { min-height: 44px; }
@media (max-width: 479px) {
  .consent { padding-block: var(--space-3) calc(var(--space-3) + env(safe-area-inset-bottom)); }
  .consent__titulo { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .consent__extra { display: none; }
  .consent__texto p { font-size: .8125rem; }
  .consent__inner { gap: var(--space-2); }
  .consent__acoes { flex: 1 1 100%; }
  .consent__acoes .btn { flex: 1; }
}
/* Tela baixa (celular deitado, zoom de 200%): nada fixo além do aviso, e ele
   enxuto; senão sobravam ~120 px para ler e preencher (WCAG 1.4.10). */
@media (max-height: 500px) {
  .header { position: static; }
  .mobile-cta { position: static; }
  body:has(.mobile-cta) { padding-bottom: 0; }
  html:has(.mobile-cta) { scroll-padding-bottom: calc(var(--consent-h, 0px) + 16px); }
  html { scroll-padding-top: 16px; }
  .consent { padding-block: var(--space-2); }
  .consent__titulo, .consent__extra { display: none; }
  .consent__texto p { font-size: .8125rem; }
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 1000;
  padding: 12px 16px;
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font-weight: 600;
  box-shadow: var(--shadow-md);
}
.skip-link:focus { top: 12px; }

.back-to-top {
  position: fixed;
  right: 28px;
  bottom: 96px;
  z-index: 44;
  display: none;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity var(--dur), transform var(--dur);
}
.back-to-top.is-visible { opacity: 1; pointer-events: auto; transform: none; }
@media (min-width: 769px) { .back-to-top { display: grid; } }

/* 08. Botões --------------------------------------------------------------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid var(--border-strong);
  /* Botão e campo com o mesmo raio de 8 px (docs/design.md): 12 px fica só
     para cartões, e pílula só para chip/selo. */
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: .9375rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease),
    color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.btn:hover { border-color: var(--text-subtle); background: var(--surface-2); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.btn:disabled,
.btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }

.btn--accent,
.btn--primary {
  border-color: var(--orange-600);
  background: var(--orange-600);
  color: #fff;
  box-shadow: 0 6px 16px -8px rgba(204, 74, 16, .7);
}
.btn--accent:hover,
.btn--primary:hover { border-color: var(--orange-700); background: var(--orange-700); color: #fff; }
.btn--dark { border-color: var(--navy-800); background: var(--navy-800); color: #fff; }
.btn--dark:hover { border-color: var(--navy-700); background: var(--navy-700); color: #fff; }
.btn--outline { border-color: var(--border-strong); background: var(--surface); color: var(--ink); }
.btn--outline:hover { border-color: var(--orange-600); background: var(--orange-50); color: var(--orange-700); }
.btn--ghost { border-color: transparent; background: transparent; color: var(--ink-2); }
.btn--ghost:hover { border-color: transparent; background: var(--surface-3); color: var(--ink); }
.btn--ghost-light { border-color: rgba(255, 255, 255, .32); background: rgba(255, 255, 255, .08); color: #fff; }
.btn--ghost-light:hover { border-color: rgba(255, 255, 255, .55); background: rgba(255, 255, 255, .16); color: #fff; }
.btn--whatsapp { border-color: var(--whatsapp); background: var(--whatsapp); color: #fff; }
.btn--whatsapp:hover { border-color: var(--whatsapp-hover); background: var(--whatsapp-hover); color: #fff; }
/* Contorno verde: WhatsApp como 2ª ação ao lado de um botão laranja cheio. */
.btn--whatsapp-outline { border-color: var(--whatsapp); background: var(--surface); color: var(--whatsapp); }
.btn--whatsapp-outline:hover { background: var(--success-bg); color: var(--whatsapp-hover); }
.btn--danger { border-color: var(--danger); background: var(--danger); color: #fff; }
.btn--danger:hover { border-color: #912018; background: #912018; color: #fff; }
.btn--danger-outline { border-color: var(--danger-border); background: var(--surface); color: var(--danger); }
.btn--danger-outline:hover { border-color: var(--danger); background: var(--danger-bg); color: var(--danger); }

.btn--sm { min-height: 36px; padding: 6px 12px; font-size: .8125rem; gap: 6px; }
.btn--lg { min-height: 52px; padding: 13px 24px; font-size: 1rem; }
.btn--block { width: 100%; white-space: normal; }
.btn--icon { width: 40px; min-height: 40px; padding: 0; }
@media (max-width: 1099px) { .btn--block-mobile { width: 100%; } }

/* Estado de carregamento (aria-busy="true") */
.btn[aria-busy="true"] { pointer-events: none; }
.btn[aria-busy="true"]::after {
  content: "";
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* 09. Formulários ---------------------------------------------------------- */
.field { position: relative; display: grid; gap: 6px; margin-bottom: 16px; min-width: 0; align-content: start; }
.field > .text-muted,
.field-hint { font-size: .8125rem; line-height: 1.45; color: var(--text-muted); }
.field-error { font-size: .8125rem; line-height: 1.45; color: var(--danger); font-weight: 500; }
.field--tight { margin-bottom: 0; }
.field--full { grid-column: 1 / -1; }

.label {
  display: block;
  color: var(--ink);
  font-size: .875rem;
  font-weight: 600;
  line-height: 1.4;
}
.label .text-muted { font-weight: 400; }
.req { color: var(--orange-700); font-weight: 700; }

.input,
.select,
.textarea {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 10px 14px;
  border: 1px solid var(--border-input);
  border-radius: var(--radius-sm);
  background-color: var(--surface);
  color: var(--ink);
  font-size: 1rem; /* 16px evita zoom automático no iOS */
  line-height: 1.4;
  box-shadow: var(--shadow-xs);
  transition: border-color var(--dur), box-shadow var(--dur), background-color var(--dur);
}
/* Exemplo em --text-muted (5,4:1); o texto já começa com "Ex.:" para não
   parecer valor preenchido. --text-subtle (2,9:1) não era legível. */
.input::placeholder,
.textarea::placeholder { color: var(--text-muted); opacity: 1; }
.input:hover,
.select:hover,
.textarea:hover { border-color: var(--text-muted); }
.input:focus,
.select:focus,
.textarea:focus {
  outline: none;
  border-color: var(--orange-500);
  box-shadow: 0 0 0 3px rgba(242, 101, 34, .2);
}
.input[readonly],
.textarea[readonly] { background-color: var(--surface-3); color: var(--ink-2); }
.input:disabled,
.select:disabled,
.textarea:disabled { background-color: var(--surface-3); color: var(--text-muted); cursor: not-allowed; }
.input:user-invalid,
.select:user-invalid,
.textarea:user-invalid,
.field.has-error .input { border-color: var(--danger); }
.input.is-invalid,
.ss.has-error .ss__input { border-color: var(--danger); }
.input:user-invalid:focus,
.select:user-invalid:focus { box-shadow: 0 0 0 3px rgba(180, 35, 24, .18); }
textarea.input,
.textarea { min-height: 120px; resize: vertical; }
.input--mono { font-family: var(--font-mono); font-size: .875rem; }
.input--sm,
.select--sm { min-height: 38px; padding: 6px 10px; font-size: .875rem; border-radius: var(--radius-sm); }

select.select,
select.input {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235B6B82' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  cursor: pointer;
}
select.select--sm { padding-right: 32px; background-position: right 8px center; }

input[type="checkbox"],
input[type="radio"] { width: 18px; height: 18px; margin: 0; accent-color: var(--orange-600); flex-shrink: 0; }
.check {
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--ink);
  font-size: .9375rem;
  font-weight: 500;
  cursor: pointer;
}
.check input { margin-top: 2px; }

.form-row-2,
.form-row-3,
.form-row-4 { display: grid; gap: 0 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 560px) {
  .form-row-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-row-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .form-row-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 900px) { .form-row-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.form-row-3--always { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 10px; }

.form-section { padding-top: 24px; margin-top: 8px; border-top: 1px solid var(--border); }
.form-section:first-child,
.form-section--first { padding-top: 0; margin-top: 0; border-top: 0; }
.form-section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  margin-bottom: 16px;
}
.form-section__title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--ink);
}
.form-section__num {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: var(--radius-sm);
  background: var(--orange-50);
  border: 1px solid var(--orange-100);
  color: var(--orange-700);
  font-family: var(--font-sans);
  font-size: .8125rem;
  font-weight: 700;
}
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.form-actions__note { flex: 1 1 260px; margin: 0; font-size: .875rem; color: var(--text-muted); }
.form-actions__buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.form-actions__buttons > .btn { min-width: 0; white-space: normal; }
@media (max-width: 419px) { .form-actions__buttons > .btn { flex: 1 1 100%; } }
.form-msg { margin-top: 12px; font-size: .875rem; font-weight: 500; }
.form-msg--success { color: var(--success); }
.form-msg--error { color: var(--danger); }

/* Campo com botão (rastreio, chave de API) */
.input-group { display: flex; flex-wrap: wrap; gap: 10px; }
.input-group > .input { flex: 1 1 240px; }
.input-group > .btn { flex: 0 0 auto; }
.input-group--end { align-items: flex-end; }
.input-group > .grow { flex: 1 1 280px; }
@media (max-width: 479px) { .input-group > .btn { flex: 1 1 100%; } }

/* Senha com botão mostrar/ocultar (criado pelo app.js) */
.password-wrap { position: relative; }
.password-wrap .input { padding-right: 76px; }
.password-toggle {
  position: absolute;
  top: 50%;
  right: 6px;
  transform: translateY(-50%);
  min-height: 34px;
  padding: 4px 10px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--orange-700);
  font-size: .8125rem;
  font-weight: 600;
}
.password-toggle:hover { background: var(--orange-50); }

/* Controle segmentado (gerado a partir de <select data-segmented>) */
.segmented {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-3);
}
.segmented__btn {
  flex: 1 1 auto;
  min-width: 0;
  /* Quebra linha com espaçamento de texto aumentado (WCAG 1.4.12): com
     nowrap "Importação" estourava a tela de 320 px. */
  white-space: normal;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--ink-2);
  font-size: .875rem;
  font-weight: 600;
  transition: background-color var(--dur), color var(--dur), border-color var(--dur);
}
.segmented__btn:hover { background: var(--surface); color: var(--ink); }
.segmented__btn[aria-pressed="true"] {
  /* Seleção neutra (branco com borda): em laranja cheio ela competia com o
     botão "Continuar" — três blocos laranja no mesmo cartão. */
  border-color: var(--border-input);
  background: var(--surface);
  color: var(--ink);
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}
.segmented__btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; }
@media (max-width: 479px) { .segmented__btn { padding: 8px 10px; font-size: .8125rem; } }
.segmented-source { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Combobox com busca (app.js → searchableSelect) */
.ss { position: relative; }
.ss__input { padding-right: 36px; }
.ss__list {
  position: absolute;
  z-index: 30;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  max-height: 264px;
  margin: 0;
  padding: 4px;
  overflow-y: auto;
  list-style: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-lg);
}
.ss__item { padding: 9px 12px; border-radius: var(--radius-sm); font-size: .9375rem; cursor: pointer; }
.ss__item:hover,
.ss__item.is-active { background: var(--orange-50); color: var(--orange-700); }

/* 10. Cartões, ícones, badges, alertas ----------------------------------- */
.card {
  position: relative;
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  /* Cartão comum só com o fio, sem sombra (docs/design.md): sombra fica para
     o que flutua de verdade (menu, aviso, widget). */
}
@media (min-width: 768px) { .card { padding: 28px; } }
.card--pad-lg { padding: 24px; }
@media (min-width: 768px) { .card--pad-lg { padding: 40px; } }
.card--hover { transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur); }
.card--hover:hover { transform: translateY(-3px); border-color: var(--orange-200); box-shadow: var(--shadow-md); }
.card--accent { border-color: var(--orange-500); box-shadow: 0 0 0 1px var(--orange-500), var(--shadow-sm); }
.card__header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  margin-bottom: 18px;
}
.card__title { font-size: 1.125rem; }
.card__text { color: var(--text-muted); }
.card > h3 + p, .card > h3 + .card__text { margin-top: 8px; }

.icon-tile {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border: 1px solid var(--orange-100);
  border-radius: var(--radius-sm);
  background: var(--orange-50);
  color: var(--orange-700);
}
.icon-tile--sm { width: 40px; height: 40px; }
.icon-tile--lg { width: 56px; height: 56px; }
/* Azul e violeta eram só decoração e fugiam da paleta (proposta A9): agora
   seguem a marca. Verde fica para estado real (entregue, confirmado). */
.icon-tile--blue,
.icon-tile--violet { border-color: var(--orange-100); background: var(--orange-50); color: var(--orange-700); }
.icon-tile--green { border-color: var(--success-border); background: var(--success-bg); color: var(--success); }
.icon-tile--gray { border-color: var(--border); background: var(--surface-2); color: var(--text-muted); }
.icon-tile--on-dark { border-color: rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .08); color: var(--orange-400); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--surface-2);
  color: var(--ink-2);
  font-size: .75rem;
  font-weight: 600;
  line-height: 1.6;
  white-space: nowrap;
  vertical-align: middle;
}
.badge--success,
.badge--warning,
.badge--danger,
.badge--info { padding-left: 8px; }
.badge--success::before,
.badge--warning::before,
.badge--danger::before,
.badge--info::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.badge--success { border-color: var(--success-border); background: var(--success-bg); color: var(--success); }
.badge--warning { border-color: var(--warning-border); background: var(--warning-bg); color: var(--warning); }
.badge--danger { border-color: var(--danger-border); background: var(--danger-bg); color: var(--danger); }
.badge--info { border-color: var(--info-border); background: var(--info-bg); color: var(--info); }
.badge--brand { border-color: var(--orange-100); background: var(--orange-50); color: var(--orange-700); }
.badge--neutral { border-color: var(--border); background: var(--surface-2); color: var(--ink-2); }
.badge--carrier { border-color: var(--border); background: var(--surface); color: var(--ink); letter-spacing: .02em; }

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border: 1px solid var(--success-border);
  border-radius: var(--radius-pill);
  background: var(--success-bg);
  color: var(--success);
  font-size: .8125rem;
  font-weight: 600;
  white-space: nowrap;
}
.status-pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }

.alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 16px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--ink-2);
  font-size: .9375rem;
  line-height: 1.5;
}
.alert > svg { margin-top: 2px; }
.alert--success { border-color: var(--success-border); background: var(--success-bg); color: #075c2a; }
.alert--danger { border-color: var(--danger-border); background: var(--danger-bg); color: var(--danger); }
.alert--warning { border-color: var(--warning-border); background: var(--warning-bg); color: #93370d; }
.alert--info { border-color: var(--info-border); background: var(--info-bg); color: #1849a9; }
.alert pre { margin-top: 10px; padding: 10px; border-radius: var(--radius-sm); background: rgba(0, 0, 0, .05); font-size: .75rem; white-space: pre-wrap; word-break: break-word; }
.alert .btn { margin-top: 12px; }

.callout {
  display: flex;
  gap: 14px;
  padding: 16px 18px;
  /* Fio de 1 px como os outros blocos: a borda grossa num lado só era um dos
     sinais genéricos da proposta (A8). */
  border: 1px solid var(--orange-100);
  border-radius: var(--radius);
  background: var(--orange-50);
  color: var(--ink-2);
  line-height: 1.6;
}
.callout strong { color: var(--ink); }
.callout--warning { border-color: var(--warning-border); background: var(--warning-bg); }
.callout--success { border-color: var(--success-border); background: var(--success-bg); }

/* 11. Tabelas, barras de ferramentas, abas, estados vazios ---------------- */
.table-wrap {
  position: relative; /* contém elementos .sr-only/absolutos dentro da tabela (evita rolagem lateral da página) */
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.table-wrap:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: .875rem;
}
.table-wrap > .table { min-width: 600px; }
.table-wrap > .table--compact { min-width: 0; }
.table th {
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-muted);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}
.table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--ink-2);
  vertical-align: middle;
}
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background-color var(--dur); }
.table tbody tr:hover { background: #fafbfd; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table .actions { text-align: right; white-space: nowrap; }
.table .nowrap { white-space: nowrap; }
.table .cell-title { color: var(--ink); font-weight: 600; }
.table .cell-sub { display: block; color: var(--text-muted); font-size: .8125rem; }
.table .amount-in { color: var(--success); font-weight: 600; }
.table .amount-out { color: var(--danger); font-weight: 600; }
.table select,
.table .select { min-width: 128px; }
.table-actions .btn--sm { min-width: 92px; }
.table-actions { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; align-items: center; }
.table-actions form { display: flex; gap: 6px; align-items: center; margin: 0; }
.table-actions .input { width: 96px; }
.table-actions .input--wide { width: 180px; }
.row-hidden { display: none; }
@media (max-width: 639px) {
  .js .table-wrap > .table--stack { min-width: 0; }
  .js .table--stack thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  .js .table--stack,
  .js .table--stack tbody,
  .js .table--stack tr { display: block; width: 100%; }
  .js .table--stack tr { padding: 12px 16px; border-bottom: 1px solid var(--border); }
  .js .table--stack tbody tr:last-child { border-bottom: 0; }
  .js .table--stack tr.row-hidden { display: none; }
  .js .table--stack td {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 5px 0;
    border: 0;
    text-align: right;
  }
  /* Texto longo (política de privacidade): rótulo em cima e texto à esquerda.
     Alinhado à direita em 3 a 5 linhas ficava difícil de ler. */
  .js .prose .table--stack td { display: block; text-align: left; }
  .js .prose .table--stack td::before { display: block; max-width: none; margin-bottom: 2px; }
  .js .table--stack td::before {
    content: attr(data-label);
    flex: 0 0 auto;
    max-width: 42%;
    padding-top: 2px;
    color: var(--text-muted);
    font-size: .6875rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-align: left;
    text-transform: uppercase;
  }
  .js .table--stack td[data-label=""]::before { content: none; }
  .js .table--stack .td-content { min-width: 0; overflow-wrap: anywhere; }
  .js .table--stack td.actions .td-content,
  .js .table--stack .table-actions { justify-content: flex-end; }
  .js .table--stack .table-actions { flex-wrap: wrap; }
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid var(--border);
}
@media (min-width: 768px) { .toolbar { padding: 16px 20px; } }
.search { position: relative; flex: 1 1 240px; max-width: 420px; }
.search > svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--text-subtle); pointer-events: none; }
.search .input { min-height: 42px; padding-left: 40px; }

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 2px;
}
.tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 7px 14px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--ink-2);
  font-size: .875rem;
  font-weight: 600;
  white-space: nowrap;
}
.tab:hover { background: var(--surface-3); color: var(--ink); }
.tab[aria-pressed="true"] { border-color: var(--orange-200); background: var(--orange-50); color: var(--orange-700); }
.tab__count {
  min-width: 22px;
  padding: 0 6px;
  border-radius: var(--radius-pill);
  background: var(--surface-3);
  color: var(--ink-2);
  font-size: .75rem;
  text-align: center;
}
.tab[aria-pressed="true"] .tab__count { background: var(--surface); color: var(--orange-700); }

.empty {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 40px 20px;
  text-align: center;
}
.empty__title { color: var(--ink); font-weight: 600; font-size: 1rem; margin-top: 8px; }
.empty__text { max-width: 42ch; color: var(--text-muted); font-size: .9375rem; }
.empty .btn { margin-top: 12px; }
.empty--compact { padding: 28px 16px; }
.no-results { padding: 24px 16px; color: var(--text-muted); text-align: center; font-size: .9375rem; }

.skeleton {
  border-radius: var(--radius-sm);
  background: linear-gradient(90deg, var(--surface-3) 25%, #e3e9f1 50%, var(--surface-3) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
}
.skeleton--card { height: 96px; border-radius: var(--radius); }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* Listas com marcador ------------------------------------------------------ */
.check-list { display: grid; gap: 10px; }
.check-list li { position: relative; padding-left: 30px; line-height: 1.55; color: var(--ink-2); }
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--orange-600) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.check-list--on-dark li { color: var(--text-on-dark); }
.x-list { display: grid; gap: 10px; }
.x-list li { position: relative; padding-left: 30px; line-height: 1.55; }
.x-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--danger-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23B42318' stroke-width='3' stroke-linecap='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'/%3E%3Cline x1='6' y1='6' x2='18' y2='18'/%3E%3C/svg%3E") center / 12px no-repeat;
  box-shadow: inset 0 0 0 1px var(--danger-border);
}

/* 12. Site público: hero, faixas, seções da home -------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  /* Embaixo sem a folga de 96–144 px: ela existia para a faixa de destaques
     subir sobre o hero, e a faixa agora fica logo abaixo, sem cartão. */
  padding: 48px 0 var(--space-7);
  background: var(--navy-900);
  color: #fff;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  /* Até 767 px vai a versão de 800 px (19 KB): a foto fica sob uma camada
     escura e quase não aparece, não vale baixar a de 1400 px. A URL tem de
     ser a mesma do preload em layouts/site.php, senão baixa duas vezes. */
  background: url("../img/hero-entrega-800.webp") center right / cover no-repeat;
  opacity: .8;
}
@media (min-width: 768px) {
  .hero::before { background-image: url("../img/hero-entrega.webp"); }
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(11, 20, 36, .86) 0%, rgba(11, 20, 36, .93) 100%);
}
@media (min-width: 1024px) {
  .hero::after {
    background:
        linear-gradient(100deg, var(--navy-900) 0%, rgba(11, 20, 36, .92) 36%, rgba(11, 20, 36, .6) 68%, rgba(11, 20, 36, .42) 100%);
  }
}
@media (min-width: 768px) { .hero { padding: 72px 0 var(--space-8); } }
@media (min-width: 1100px) { .hero { padding: 88px 0 72px; } }
/* minmax(0,1fr): sem isso a coluna crescia até o conteúdo mais largo do
   passo 3 (botões lado a lado) e o cartão era cortado entre 360 e 430 px,
   escondendo o WhatsApp e o botão "Ver opções de frete". */
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: center; }
@media (min-width: 1024px) {
  .hero__grid { grid-template-columns: minmax(0, 1.08fr) minmax(380px, .92fr); gap: 56px; }
}
.hero h1 {
  max-width: 22ch;
  color: #fff;
  font-size: clamp(1.875rem, 1.25rem + 2.6vw, 3.125rem);
  line-height: 1.1;
  letter-spacing: -.03em;
  text-wrap: balance;
}
/* Logotipos das transportadoras no lugar da etiqueta de texto */
.hero__partners { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 18px; }
.hero__partner { display: grid; place-items: center; height: 34px; padding: 6px 12px; border-radius: var(--radius-sm); background: var(--surface); box-shadow: 0 8px 20px -10px rgba(0, 0, 0, .7); }
.hero__partner img { width: auto; height: 18px; }
.hero__partners-text { margin-left: 4px; color: var(--text-on-dark); font-size: .8125rem; font-weight: 600; }
.quote-widget__lead { margin: -8px 0 16px; color: var(--text-muted); font-size: .875rem; }

/* Rota aérea decorativa (SVG absoluto atrás do conteúdo) */
.hero__route { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; pointer-events: none; }
.hero > .container { position: relative; z-index: 1; }
.hero__route-line { fill: none; stroke: rgba(255, 255, 255, .3); stroke-width: 1.5; stroke-dasharray: 6 10; }
.hero__route-dot { fill: #ffd8c2; filter: drop-shadow(0 0 8px rgba(242, 101, 34, .9)); opacity: 0; }
/* Sem avião voando e sem entrada em sequência (27/10/2026): o único momento
   animado do site é o mapa de rotas (docs/design.md). A entrada também
   escondia o título — que é o elemento do LCP — por quase 1 s. */
.hero__sub {
  max-width: 54ch;
  margin: 18px 0 22px;
  color: var(--text-on-dark);
  font-size: 1.0625rem;
  line-height: 1.7;
}
.hero__sub strong { color: #fff; }
@media (max-width: 479px) { .hero__sub-extra { display: none; } }
.hero__points { display: grid; gap: 8px; margin-bottom: 28px; }
.hero__points li { display: flex; align-items: center; gap: 10px; color: var(--text-on-dark); font-size: .9375rem; }
.hero__points svg { color: var(--orange-400); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
/* Formas de pagamento aceitas, logo abaixo dos botões do hero */
.hero__pay { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 16px; color: var(--text-on-dark); font-size: .875rem; }
.hero__pay-item { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border: 1px solid rgba(255, 255, 255, .22); border-radius: var(--radius-pill); color: #fff; font-weight: 600; }
.hero__pay-item svg { color: var(--orange-400); }
@media (max-width: 479px) { .hero__actions .btn { flex: 1 1 100%; } }
.hero__actions { align-items: center; }
.hero__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 44px;
  color: var(--text-on-dark);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.hero__link:hover { color: #fff; }
/* Celular: o formulário de cotação precisa aparecer cedo (antes começava em
   ~785 px de 844 e a barra fixa + o chat cobriam o título). Logos, formas de
   pagamento e a lista de vantagens continuam no rodapé do hero e no resto da
   página. */
@media (max-width: 479px) {
  .hero { padding-top: var(--space-5); }
  .hero__partners, .hero__pay, .hero__points { display: none; }
  .hero__sub { margin: var(--space-3) 0 var(--space-4); font-size: 1rem; line-height: 1.6; }
}
/* Widget de cotação rápida (cartão branco sobre o hero) */
.quote-widget {
  position: relative;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink-2);
  box-shadow: 0 32px 64px -24px rgba(0, 0, 0, .55);
}
@media (min-width: 768px) { .quote-widget { padding: 28px; } }
.quote-widget__title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
}
.quote-widget__note {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  color: var(--text-muted);
  font-size: .8125rem;
  line-height: 1.5;
}
.quote-widget__note svg { margin-top: 2px; color: var(--orange-600); }
.quote-widget .field { margin-bottom: 14px; }
.hq-stepper { margin-bottom: 18px; }
.hq-dots { display: flex; gap: 6px; margin-bottom: 8px; }
.hq-dot { flex: 1; height: 5px; border-radius: 3px; background: var(--surface-3); transition: background-color .25s; }
.hq-dot.is-active { background: var(--orange-500); }
.hq-step-label { color: var(--text-muted); font-size: .8125rem; font-weight: 600; }
.hq-step__intro { margin-bottom: 14px; color: var(--text-muted); font-size: .875rem; }
.hq-nav { display: flex; gap: 10px; margin-top: 18px; }
.hq-nav .btn { flex: 1; min-width: 0; }
.hq-nav .btn-label { white-space: normal; }
.hq-nav #hq-back { flex: 0 0 auto; }
.hq-error { margin-top: 14px; color: var(--danger); font-size: .875rem; font-weight: 500; }
.hq-results { display: grid; gap: 10px; margin-top: 16px; }
.hq-results:empty { display: none; }
.hq-results__titulo { margin: 0; color: var(--ink); font-weight: 700; }
.hq-results__titulo:focus { outline: none; }
.quote-mini {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.quote-mini--best { border-color: var(--orange-500); background: var(--orange-50); }
.quote-mini__info { display: flex; align-items: center; gap: 10px; min-width: 0; }
.quote-mini__logo { display: inline-flex; padding: 5px 8px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: #fff; }
.quote-mini__logo img { height: 20px; width: auto; }
.quote-mini__service { color: var(--ink); font-size: .875rem; font-weight: 600; }
.quote-mini__meta { color: var(--text-muted); font-size: .75rem; }
.quote-mini__price { flex-shrink: 0; text-align: right; }
.quote-mini__value { color: var(--ink); font-family: var(--font-display); font-weight: 700; }
.quote-mini__cta { padding: 0; border: 0; background: none; color: var(--orange-700); font-size: .8125rem; font-weight: 600; cursor: pointer; }
.quote-mini__cta:hover { text-decoration: underline; }

/* Faixa de destaques logo abaixo do hero (27/10/2026): quatro itens
   separados por fio de 1 px, sem cartão nem sombra. Os cartões brancos
   flutuando sobre a foto eram mais um bloco de "cartões idênticos" (A8).
   O fio sai do gap de 1 px sobre fundo --border: funciona com 1, 2 ou 4
   colunas sem regra por posição. */
.feature-strip { border-bottom: 1px solid var(--border); background: var(--surface); }
.feature-strip__grid { display: grid; gap: 1px; grid-template-columns: minmax(0, 1fr); background: var(--border); }
@media (min-width: 480px) { .feature-strip__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .feature-strip__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.feature-card {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  min-width: 0;
  padding: var(--space-4);
  background: var(--surface);
}
@media (min-width: 1024px) { .feature-card { padding: var(--space-5); } }
.feature-card .icon-tile { width: 40px; height: 40px; }
.feature-card__title { color: var(--ink); font-family: var(--font-display); font-size: 1rem; font-weight: 600; line-height: 1.3; }
.feature-card__text { margin-top: 2px; color: var(--text-muted); font-size: .875rem; line-height: 1.5; }

/* Cabeçalho de seção da home: título à esquerda, apoio à direita no desktop */
.section--white { background: var(--surface); }
.section-intro { display: grid; gap: 12px; margin-bottom: 32px; }
.section-intro h2 { max-width: 22ch; }
.section-intro .lead { max-width: 52ch; }
@media (min-width: 900px) {
  .section-intro { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: end; gap: 56px; margin-bottom: 48px; }
}
.section-intro--aside > div { display: grid; gap: 12px; }
@media (min-width: 900px) { .section-intro--aside .rating-summary { justify-self: end; } }

/* O que a 99 faz: uma foto e três itens curtos (27/10/2026). Substitui os
   três blocos alternados foto+texto com cartões flutuando sem parar (M5):
   a home tinha 7.424 px e repetia "Seguro opcional" seis vezes. */
.does { display: grid; gap: var(--space-6); align-items: center; }
@media (min-width: 900px) { .does { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: var(--space-8); } }
.does__media { min-width: 0; margin: 0; }
.does__media img { width: 100%; height: auto; aspect-ratio: 801 / 698; border-radius: var(--radius); object-fit: cover; }
@media (max-width: 899px) { .does__media img { aspect-ratio: 16 / 10; object-position: center 22%; } }
/* Título e apoio empilhados dentro da coluna de texto (o padrão é lado a lado) */
.section-intro--stack { margin-bottom: var(--space-6); }
@media (min-width: 900px) { .section-intro--stack { grid-template-columns: minmax(0, 1fr); gap: var(--space-3); margin-bottom: var(--space-6); } }
.does__list { display: grid; gap: var(--space-5); }
.does__item { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--space-2) var(--space-4); align-items: start; }
.does__item .icon-tile { grid-row: span 2; width: 44px; height: 44px; }
.does__title { font-size: 1.125rem; line-height: 1.3; }
.does__text { color: var(--text-muted); line-height: 1.65; }
.does__text .link { white-space: nowrap; }

/* Cobertura: faixa escura com mapa de rotas, transportadoras e números */
.coverage {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: var(--section-y);
  background: var(--navy-900);
  color: var(--text-on-dark);
}
.coverage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 50% 60% at 95% 100%, rgba(37, 70, 107, .55), transparent 70%);
}
.coverage__grid { display: grid; gap: 36px; align-items: center; }
@media (min-width: 1024px) {
  .coverage__grid { grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); gap: 40px; }
}
.coverage__copy { min-width: 0; }
.coverage h2 { max-width: 14ch; color: #fff; font-size: clamp(1.875rem, 1.25rem + 2.4vw, 2.875rem); line-height: 1.08; letter-spacing: -.03em; }
.coverage__text { max-width: 46ch; margin: 16px 0 28px; color: var(--text-on-dark); line-height: 1.7; }
.coverage__carriers { display: flex; flex-wrap: wrap; gap: 12px; }
.carrier-card {
  display: grid;
  place-items: center;
  width: 150px;
  height: 64px;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  box-shadow: 0 14px 30px -16px rgba(0, 0, 0, .7);
}
.carrier-card img { width: auto; max-height: 34px; object-fit: contain; }
.coverage__note { display: flex; align-items: center; gap: 8px; margin-top: 16px; color: var(--text-on-dark-muted); font-size: .875rem; }
.coverage__note svg { color: var(--orange-400); }

.route-map { position: relative; min-width: 0; aspect-ratio: 1800 / 690; }
@media (max-width: 1023px) { .route-map { margin-inline: calc(-1 * var(--gutter)); } }
/* Abaixo de 1024 px o mapa ocupa a largura da tela: bordas suavizadas */
@media (max-width: 1023px) {
  .route-map {
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
  }
}
/* Celular: mapa inteiro com pontos maiores (mapa-pontos-m.svg) e traços mais grossos */
@media (max-width: 767px) {
  .route-map__arc { stroke-width: 9; }
  .route-map__dest { r: 13px; }
  .route-map__origin { r: 15px; }
}
.route-map__dots,
.route-map__routes { position: absolute; inset: 0; width: 100%; height: 100%; }
.route-map__routes { overflow: visible; }
.route-map__arc { fill: none; stroke: var(--orange-500); stroke-width: 5; stroke-linecap: round; opacity: .85; }
.route-map__dest { fill: var(--orange-400); transform-box: fill-box; transform-origin: center; }
.route-map__origin { fill: #fff; stroke: var(--orange-500); stroke-width: 5; }
.route-map__pulse { fill: var(--orange-500); opacity: .3; }
.route-map__label {
  position: absolute;
  z-index: 1;
  padding: 3px 8px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 6px;
  background: rgba(11, 20, 36, .88);
  color: #fff;
  font-size: .75rem;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
  pointer-events: none;
  transform: translate(-50%, calc(-100% - 9px));
}
.route-map__label--below { transform: translate(-50%, 9px); }
.route-map__label--left { transform: translate(calc(-100% - 10px), -50%); }
.route-map__label--right { transform: translate(12px, -50%); }
.route-map__label--origin { border-color: transparent; background: var(--orange-600); transform: translate(-50%, 10px); }
@media (max-width: 899px) { .route-map__label:not(.route-map__label--origin) { display: none; } }

/* O ÚNICO momento animado do site (docs/design.md): as rotas saem de Goiânia
   e se desenham uma vez, em ~1,2 s, quando a faixa entra na tela. Sem pulso
   infinito na origem e sem "voos" circulando: movimento que não para cansa e
   disputa atenção com o formulário. Com movimento reduzido, o mapa já vem pronto. */
@media (prefers-reduced-motion: no-preference) {
  .js .route-map.is-ready .route-map__arc {
    stroke-dasharray: var(--len) var(--len);
    stroke-dashoffset: var(--len);
    transition: stroke-dashoffset .9s cubic-bezier(.55, .1, .25, 1) calc(var(--i) * .04s);
  }
  .js .coverage.is-inview .route-map__arc { stroke-dashoffset: 0; }
  .js .route-map.is-ready .route-map__dest,
  .js .route-map.is-ready .route-map__label { opacity: 0; transition: opacity .25s var(--ease) calc(var(--i) * .04s + .9s); }
  .js .route-map.is-ready .route-map__label--origin { transition-delay: 0s; }
  .js .coverage.is-inview .route-map__dest,
  .js .coverage.is-inview .route-map__label { opacity: 1; }
}

.coverage__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 16px;
  margin: 40px 0 0;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, .12);
}
@media (min-width: 768px) { .coverage__stats { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 56px; } }
.coverage__stats > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 6px; min-width: 0; }
.coverage__stats dd {
  margin: 0;
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 1.5rem + 2.6vw, 3.5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.035em;
  font-variant-numeric: tabular-nums;
}

.coverage__stats .stat-prefix { margin-right: .12em; color: var(--text-on-dark-muted); font-family: var(--font-sans); font-size: .9375rem; font-weight: 600; letter-spacing: 0; }
.coverage__stats dt { color: var(--text-on-dark-muted); font-size: .9375rem; }

/* Como funciona: trilha com os três passos */
.route-steps { position: relative; }
.route-steps__list { display: grid; gap: 28px; }
.route-step { position: relative; min-width: 0; padding-left: 76px; }
.route-step__node {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 2px solid var(--orange-600);
  border-radius: 50%;
  background: var(--orange-600);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  box-shadow: 0 0 0 6px var(--orange-50);
}
.route-step__title { margin: 4px 0 8px; font-size: 1.1875rem; }
.route-step__text { color: var(--text-muted); line-height: 1.7; }
/* Conector vertical (mobile) */
.route-step:not(:last-child)::before,
.route-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 64px;
  bottom: -22px;
  left: 27px;
  width: 2px;
  border-radius: 1px;
}
.route-step:not(:last-child)::before { background: repeating-linear-gradient(180deg, var(--border-strong) 0 6px, transparent 6px 12px); }
.route-step:not(:last-child)::after { background: var(--orange-500); }
.route-steps__track { display: none; }
@media (min-width: 768px) {
  /* Número de passos vem de --steps no .route-steps (padrão 3). */
  .route-steps__list { grid-template-columns: repeat(var(--steps, 3), minmax(0, 1fr)); gap: 32px; }
  .route-step { padding: 84px 0 0; }
  .route-step:not(:last-child)::before,
  .route-step:not(:last-child)::after { display: none; }
  .route-steps__track {
    position: absolute;
    top: 27px;
    left: 28px;
    right: calc((100% - (var(--steps, 3) - 1) * 32px) / var(--steps, 3) - 28px);
    display: block;
    height: 2px;
    background: repeating-linear-gradient(90deg, var(--border-strong) 0 8px, transparent 8px 16px);
  }
  .route-steps__fill { position: absolute; inset: 0; background: var(--orange-500); transform-origin: left; }
}
/* Sem trilha que se preenche nem pacote viajando (27/10/2026): o único
   movimento do site é o mapa de rotas; aqui os passos já aparecem prontos. */
.how__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 44px; }
.how__cta-note { color: var(--text-muted); font-size: .9375rem; }
@media (max-width: 479px) { .how__cta .btn { flex: 1 1 100%; } }

/* Avaliações: resumo da nota ao lado do título */
.rating-summary { display: flex; align-items: center; gap: 14px; }
.rating-summary__value { color: var(--ink); font-family: var(--font-display); font-size: 3.25rem; font-weight: 700; line-height: 1; letter-spacing: -.04em; }
.rating-summary__meta { display: grid; gap: 4px; color: var(--text-muted); font-size: .875rem; font-weight: 500; }
.rating-stars { display: inline-flex; gap: 2px; color: var(--orange-500); }
.rating-summary__link { font-size: .875rem; }

/* Depoimentos (fallback manual) */
.testimonials { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .testimonials { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.testimonial { display: flex; flex-direction: column; gap: 12px; }
.testimonial__stars { color: var(--orange-500); letter-spacing: 2px; }
.testimonial__text { flex: 1; color: var(--ink-2); line-height: 1.7; }
.testimonial__author { color: var(--ink); font-weight: 600; font-size: .9375rem; }
.testimonial__place { color: var(--text-muted); font-size: .8125rem; }

/* FAQ: introdução fixa à esquerda, perguntas à direita */
.faq-layout { display: grid; gap: 32px; }
@media (min-width: 960px) {
  .faq-layout { grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: 64px; align-items: start; }
  .faq-layout__intro { position: sticky; top: calc(var(--header-h) + 32px); }
}
.faq-layout__intro h2 { margin-bottom: 12px; }
/* .help-card (fundo escuro) é definido em "Rastreamento"; aqui só o espaçamento */
.faq-layout__intro .help-card { margin-top: 28px; }
.help-card__title { font-size: 1.0625rem; }
.help-card__text { line-height: 1.6; }
.help-card__actions { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 419px) { .help-card__actions .btn { flex: 1 1 100%; } }
/* Perguntas um pouco mais justas (27/10/2026): o FAQ era o bloco mais alto da home. */
.faq { display: grid; gap: var(--space-2); }
.faq__item { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.faq__item:hover { border-color: var(--border-strong); }
.faq__item[open] { border-color: var(--orange-200); }
.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-3) var(--space-4);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.45;
  list-style: none;
  cursor: pointer;
  border-radius: var(--radius);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "";
  flex: 0 0 28px;
  height: 28px;
  border-radius: 50%;
  /* Fechado em cinza: 10 círculos laranja empilhados eram acento demais. */
  background: var(--surface-3) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23334155' stroke-width='2.6' stroke-linecap='round'%3E%3Cline x1='12' y1='5' x2='12' y2='19'/%3E%3Cline x1='5' y1='12' x2='19' y2='12'/%3E%3C/svg%3E") center / 16px no-repeat;
  transition: transform .25s var(--ease), background-color .25s var(--ease);
}
.faq__item[open] summary::after {
  transform: rotate(45deg);
  background-color: var(--orange-50);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23B23F0D' stroke-width='2.6' stroke-linecap='round'%3E%3Cline x1='12' y1='5' x2='12' y2='19'/%3E%3Cline x1='5' y1='12' x2='19' y2='12'/%3E%3C/svg%3E");
}
.faq__item summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.faq__answer { padding: 0 var(--space-4) var(--space-4); color: var(--ink-2); line-height: 1.7; }
.faq__answer .link { display: inline-block; margin-top: 8px; }

/* Empresas (B2B): faixa escura, duas colunas no desktop, uma no mobile */
.b2b {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--navy-900);
  color: var(--text-on-dark);
}
.b2b::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(rgba(255, 255, 255, .06) 1.2px, transparent 1.6px) 0 0 / 22px 22px,
    linear-gradient(160deg, var(--navy-800) 0%, var(--navy-900) 70%);
}
.b2b__grid { display: grid; gap: 36px; align-items: center; }
@media (min-width: 960px) {
  .b2b__grid { grid-template-columns: minmax(0, 1.05fr) minmax(380px, .95fr); gap: 64px; }
}
.b2b__copy { min-width: 0; }
.b2b__copy h2 { max-width: 18ch; margin-bottom: 14px; color: #fff; }
.b2b__copy .lead { max-width: 52ch; color: var(--text-on-dark); }
.b2b__perks { display: grid; gap: 4px; margin-top: 28px; }
/* Lista com fio, não cartões: eram 3 frases curtas numa grade 2+1, com a
   terceira sozinha na linha (formato segue o conteúdo, docs/design.md). */
.b2b__perk {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: var(--space-2) 0;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  color: var(--text-on-dark);
  font-size: .9375rem;
  font-weight: 500;
  line-height: 1.4;
}
.b2b__perk-icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: rgba(242, 101, 34, .16);
  color: var(--orange-400);
}
.b2b__form { min-width: 0; color: var(--ink-2); }
.b2b__form h3 { margin-bottom: 4px; }
.b2b__form .card__text { margin-bottom: 18px; font-size: .9375rem; }
@media (max-width: 419px) {
  .b2b__form .btn--lg { padding-inline: 14px; font-size: .9375rem; }
  .b2b__form .btn--lg > svg { display: none; }
}

/* Faixa de chamada final */
.cta-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 40px 22px;
  border-radius: var(--radius);
  background: linear-gradient(120deg, var(--navy-900) 0%, var(--navy-700) 100%);
  color: var(--text-on-dark);
  text-align: center;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  /* Sem mancha decorativa (27/10/2026): fundo chapado, textura de pontos. */
  background: radial-gradient(rgba(255, 255, 255, .06) 1.2px, transparent 1.6px) 0 0 / 22px 22px;
}
@media (min-width: 768px) { .cta-band { padding: 64px 48px; } }
.cta-band h2 { color: #fff; max-width: 24ch; margin-inline: auto; }
.cta-band p { max-width: 56ch; margin: 14px auto 28px; color: var(--text-on-dark); }
.cta-band__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
/* A variante .cta-band--split e a etiqueta ilustrada (.ship-label) saíram
   com a home mais curta (27/10/2026). */

.quote-option__form { display: contents; }
.quote-option__hint { flex-basis: 100%; color: var(--text-muted); font-size: .75rem; }
@media (min-width: 640px) { .quote-option__hint { flex-basis: auto; text-align: right; } }

/* 13. Site público: páginas internas -------------------------------------- */
.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: var(--space-6) var(--space-7);
  background: var(--navy-900);
  color: #fff;
}
/* Topo das páginas internas (27/10/2026): azul-marinho chapado com o mapa de
   pontos (o mesmo do mapa de rotas da home) bem discreto, sem foto. A foto
   de banco "FRAGILE" se repetia em todos os cabeçalhos (M6), e o topo alto
   empurrava o conteúdo útil — na cotação, o formulário — para baixo. */
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("../img/mapa-pontos.svg") right -8% center / auto 150% no-repeat;
  opacity: .22;
}
@media (min-width: 768px) { .page-hero { padding-block: var(--space-6) 40px; } }
.page-hero h1 { color: #fff; font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.5rem); }
.page-hero p { max-width: 60ch; margin-top: var(--space-2); color: var(--text-on-dark); font-size: 1.0625rem; }
.page-hero__accent { display: block; margin-top: 6px; color: var(--text-on-dark); font-family: var(--font-display); font-size: clamp(1.125rem, 1rem + .6vw, 1.375rem); font-weight: 600; }
.page-hero__grid { display: grid; gap: 28px; align-items: center; }
@media (min-width: 960px) { .page-hero__grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); } }
.page-hero__visual { display: none; }
@media (min-width: 960px) {
  .page-hero__visual { display: block; justify-self: end; max-width: 360px; filter: drop-shadow(0 24px 40px rgba(0, 0, 0, .45)); }
}
.page-hero__visual--cutout { max-height: 420px; width: auto; }
@media (min-width: 960px) {
  .page-hero--overlap .page-hero__visual--cutout {
    align-self: end;
    margin-bottom: -120px;
    -webkit-mask-image: linear-gradient(#000 72%, transparent 98%);
    mask-image: linear-gradient(#000 72%, transparent 98%);
  }
}
.page-hero--center { text-align: center; }
.page-hero--center p { margin-inline: auto; }
.page-hero--overlap { padding-bottom: calc(var(--space-8) + var(--space-5)); }
@media (min-width: 768px) { .page-hero--overlap { padding-bottom: calc(var(--space-8) + var(--space-6)); } }

.overlap-up { position: relative; z-index: 2; margin-top: calc(-1 * var(--space-8)); }

/* Cotação */
.quote-layout { display: grid; gap: 24px; align-items: start; }
@media (min-width: 1024px) { .quote-layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; } }
.quote-aside { display: grid; gap: 16px; }
@media (min-width: 1024px) { .quote-aside { position: sticky; top: calc(var(--header-h) + 24px); } }
.quote-aside h3 { font-size: 1.0625rem; margin-bottom: 16px; }
.quote-aside .check-list { font-size: .9375rem; }
.help-card { background: var(--navy-900); border-color: var(--navy-800); color: var(--text-on-dark); }
.help-card h3 { color: #fff; margin-bottom: 8px; }
.help-card p { margin-bottom: 16px; color: var(--text-on-dark-muted); font-size: .9375rem; }

.box-rows { display: grid; gap: 12px; }
.linha-caixa,
.linha-item {
  display: grid;
  gap: 12px;
  align-items: end;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
}
.linha-caixa { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.linha-item { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.linha-item > .field:first-child { grid-column: 1 / -1; }
.linha-caixa > .field,
.linha-item > .field { margin: 0; }
.linha-caixa > .field:has(.remover),
.linha-item > .field:has(.remover) { grid-column: 1 / -1; }
@media (min-width: 768px) {
  .linha-caixa { grid-template-columns: repeat(4, minmax(0, 1fr)) auto; }
  .linha-item { grid-template-columns: 2fr 1fr 1.2fr 1.2fr auto; }
  .linha-item > .field:first-child,
  .linha-caixa > .field:has(.remover),
  .linha-item > .field:has(.remover) { grid-column: auto; }
}
.box-tools { display: flex; flex-wrap: wrap; gap: 8px var(--space-3); align-items: flex-end; }
.box-tools__preset { flex: 1 1 240px; min-width: 0; margin: 0; }
.box-tools__preset .select { width: 100%; }
.box-tools #add-caixa { min-height: 46px; }
@media (max-width: 479px) { .box-tools { flex-direction: column; align-items: stretch; } }
.form-note { margin: 0 0 var(--space-4); color: var(--text-muted); font-size: .875rem; }

.quote-results { display: grid; gap: 12px; margin-top: 24px; }
.quote-results:empty { display: none; }
.quote-results__count:focus { outline: none; }
.quote-results__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; color: var(--text-muted); font-size: .9375rem; }
.quote-results__head strong { color: var(--ink); }
.quote-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px 18px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
@media (min-width: 640px) { .quote-option { grid-template-columns: auto minmax(0, 1fr) auto; padding: 20px 22px; } }
.quote-option--best { border-color: var(--orange-500); box-shadow: 0 0 0 1px var(--orange-500), var(--shadow-md); }
.quote-option__logo {
  display: grid;
  place-items: center;
  width: 84px;
  height: 52px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
}
.quote-option__logo img { max-height: 32px; width: auto; object-fit: contain; }
.quote-option__name { margin-top: 6px; color: var(--ink); font-family: var(--font-display); font-size: 1.0625rem; font-weight: 600; }
.quote-option__meta { color: var(--text-muted); font-size: .875rem; }
.quote-option__warn { margin-top: 4px; color: var(--danger); font-size: .8125rem; }
.quote-option__side { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
@media (min-width: 640px) { .quote-option__side { grid-column: auto; flex-direction: column; align-items: flex-end; justify-content: center; } }
.quote-option__price { color: var(--ink); font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; line-height: 1.1; white-space: nowrap; }

/* Rastreamento */
.track-card { max-width: 780px; margin-inline: auto; }
.track-card h2 { font-size: 1.25rem; margin-bottom: 16px; }
.track-card .input { min-height: 52px; font-size: 1.0625rem; }
.track-card .btn { min-height: 52px; }
.track-hint { display: flex; align-items: flex-start; gap: 8px; margin-top: 12px; color: var(--text-muted); font-size: .875rem; }
.track-hint svg { margin-top: 3px; color: var(--orange-600); }
.track-result { max-width: 780px; margin: 24px auto 0; }
.track-summary { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 24px; }
.track-summary__status { margin-top: 10px; font-size: 1.375rem; }
.track-summary__meta { display: grid; gap: 10px; text-align: left; }
@media (min-width: 640px) { .track-summary__meta { text-align: right; } }
.track-code {
  display: inline-block;
  margin-top: 2px;
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: .9375rem;
  overflow-wrap: anywhere;
}
.meta-label { color: var(--text-muted); font-size: .8125rem; }
.track-progress {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin: 24px 0 8px;
  counter-reset: none;
}
.track-progress__step { position: relative; display: grid; justify-items: center; gap: 8px; text-align: center; }
.track-progress__step + .track-progress__step::before {
  content: "";
  position: absolute;
  top: 19px;
  right: calc(50% + 22px);
  width: calc(100% - 38px);
  height: 2px;
  background: var(--border);
}
.track-progress__dot {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 2px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text-subtle);
  transition: background-color var(--dur), border-color var(--dur), color var(--dur);
}
.track-progress__dot--active { border-color: var(--orange-600); background: var(--orange-600); color: #fff; }
.track-progress__label { color: var(--text-muted); font-size: .75rem; font-weight: 600; line-height: 1.3; }

.timeline { position: relative; display: grid; }
.timeline__item {
  position: relative;
  margin-left: 7px;
  padding: 0 0 22px 26px;
  border-left: 2px solid var(--border);
}
.timeline__item:last-child { padding-bottom: 0; border-left-color: transparent; }
.timeline__item::before {
  content: "";
  position: absolute;
  left: -9px;
  top: 2px;
  width: 16px;
  height: 16px;
  border: 3px solid var(--border-strong);
  border-radius: 50%;
  background: var(--surface);
}
.timeline__item--current::before { border-color: var(--orange-600); background: var(--orange-600); box-shadow: 0 0 0 4px rgba(242, 101, 34, .18); }
.timeline__date { color: var(--text-muted); font-size: .8125rem; }
.timeline__status { margin-top: 2px; color: var(--ink); font-weight: 600; line-height: 1.45; }
.timeline__location { margin-top: 2px; color: var(--text-muted); font-size: .875rem; }

/* Serviços / O que enviar / Sobre / Contato */
.service-card { display: flex; flex-direction: column; gap: 12px; height: 100%; }
.service-card h3 { margin-top: 4px; }
.service-card p { color: var(--text-muted); }
.service-card .check-list { margin-top: 4px; font-size: .9375rem; }
.service-card__cta { margin-top: auto; padding-top: 8px; }

.split { display: grid; gap: 24px; align-items: start; }
.split--stretch { align-items: stretch; }
@media (min-width: 960px) { .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; } }
@media (min-width: 960px) { .split--wide-left { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); } }
@media (min-width: 960px) { .split--form-right { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); } }

.stat-band { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 768px) { .stat-band { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } }
.stat-band__item { padding: 20px 16px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); text-align: center; }
/* Mesmo padrão dos números da home: cor do texto, sem laranja (laranja cheio
   é só da ação principal). */
.stat-band__value { display: block; color: var(--ink); font-family: var(--font-display); font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.125rem); font-weight: 700; line-height: 1.1; }
.stat-band__label { display: block; margin-top: 6px; color: var(--text-muted); font-size: .8125rem; }
.stat-band--overlap { position: relative; z-index: 2; margin-top: -48px; }

.contact-card { display: flex; align-items: center; gap: 14px; padding: 16px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-xs); }
a.contact-card:hover { border-color: var(--orange-200); box-shadow: var(--shadow-md); }
.contact-card__label { color: var(--ink); font-weight: 600; }
.contact-card__value { color: var(--text-muted); font-size: .9375rem; overflow-wrap: anywhere; }

/* Lista de proibidos (27/10/2026): lista simples com fio entre os itens, sem
   cartão (M7) — eram 10 cartões idênticos para dez linhas de texto. Em duas
   colunas cada coluna tem o próprio fio, por isso a borda fica em cada item. */
.prohibited-list { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: var(--space-7); border-top: 1px solid var(--border); }
@media (min-width: 768px) { .prohibited-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.prohibited-item { display: flex; align-items: flex-start; gap: var(--space-3); padding-block: var(--space-3); border-bottom: 1px solid var(--border); color: var(--ink-2); line-height: 1.5; }
.prohibited-item svg { margin-top: 2px; color: var(--danger); }

/* Pedido sem cadastro (checkout): passos, formulário, revisão, pagamento ---- */
.checkout-head {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 28px 0 88px;
  background: var(--navy-900);
  color: #fff;
}
.checkout-head::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(rgba(255, 255, 255, .06) 1.2px, transparent 1.6px) 0 0 / 22px 22px;
}
@media (min-width: 768px) { .checkout-head { padding: 36px 0 104px; } }
.checkout-head__title { margin-top: 22px; color: #fff; font-size: clamp(1.625rem, 1.2rem + 1.8vw, 2.25rem); }
.checkout-head__sub { max-width: 60ch; margin-top: 10px; color: var(--text-on-dark); }

.steps-bar { display: flex; gap: 6px; }
.steps-bar__item { flex: 1 1 0; min-width: 0; }
.steps-bar__link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0 10px;
  border-top: 3px solid rgba(255, 255, 255, .18);
  color: var(--text-on-dark-muted);
  font-size: .8125rem;
  font-weight: 600;
  line-height: 1.2;
}
.steps-bar__num {
  display: grid;
  flex: none;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  font-size: .75rem;
}
.steps-bar__item.is-done .steps-bar__link { border-top-color: var(--orange-500); color: var(--text-on-dark); }
.steps-bar__item.is-done .steps-bar__num { background: var(--orange-600); }
.steps-bar__item.is-current .steps-bar__link { border-top-color: #fff; color: #fff; }
.steps-bar__item.is-current .steps-bar__num { background: #fff; color: var(--navy-900); }
a.steps-bar__link:hover { color: #fff; }
@media (max-width: 599px) {
  .steps-bar__item { flex: 0 0 auto; }
  .steps-bar__item.is-current { flex: 1 1 auto; }
  .steps-bar__link { padding-right: 10px; }
  .steps-bar__label { display: none; white-space: nowrap; }
  .steps-bar__item.is-current .steps-bar__label { display: inline; }
}

.checkout { position: relative; z-index: 2; margin-top: -64px; }
.checkout .alert { margin-bottom: 20px; }
.checkout__grid { display: grid; gap: 24px; align-items: start; }
@media (min-width: 1024px) {
  .checkout__grid { grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; }
  .summary-card { position: sticky; top: calc(var(--header-h) + 20px); }
}

/* Rota travada (vem da cotação) */
.route-lock {
  display: grid;
  gap: 10px 16px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}
@media (min-width: 640px) { .route-lock { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; } }
.route-lock__item { display: grid; min-width: 0; }
.route-lock__item small { color: var(--text-muted); font-size: .75rem; font-weight: 600; letter-spacing: .02em; }
.route-lock__item strong { color: var(--ink); font-size: .9375rem; overflow-wrap: anywhere; }
.route-lock__arrow { display: none; color: var(--orange-500); }
@media (min-width: 640px) { .route-lock__arrow { display: block; } .route-lock__change { grid-column: 1 / -1; } }
.route-lock__change { font-size: .875rem; }

/* Resumo lateral */
.summary-card {
  display: grid;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}
.summary-card__carrier { display: flex; align-items: center; gap: 12px; min-width: 0; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.summary-card__carrier .carrier-logo-chip { flex: none; }
.summary-card__carrier > div { min-width: 0; }
.summary-card__carrier strong { display: block; color: var(--ink); font-size: .9375rem; line-height: 1.3; }
.summary-card__carrier small { color: var(--text-muted); font-size: .75rem; }
.summary-card__rows { display: grid; gap: 10px; margin: 0; }
.summary-card__rows > div { display: grid; gap: 2px; }
.summary-card__rows dt { color: var(--text-muted); font-size: .75rem; font-weight: 600; }
.summary-card__rows dd { margin: 0; color: var(--ink); font-size: .9375rem; }
.summary-card__pkg { display: block; }
.summary-card__total { display: flex; align-items: baseline; justify-content: space-between; padding-top: 14px; border-top: 1px solid var(--border); color: var(--text-muted); }
.summary-card__total strong { color: var(--ink); font-family: var(--font-display); font-size: 1.625rem; font-weight: 700; letter-spacing: -.02em; }
.summary-card__note { display: flex; gap: 6px; color: var(--text-muted); font-size: .8125rem; line-height: 1.5; }
.summary-card__note svg { flex: none; margin-top: 2px; color: var(--orange-600); }

@media (max-width: 1023px) {
  /* Celular/tablet: resumo compacto no topo (transportadora + valor); os
     detalhes da rota já aparecem no formulário e na revisão. */
  .summary-card { order: -1; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 6px 16px; padding: 14px 16px; }
  .summary-card__carrier { padding-bottom: 0; border-bottom: 0; }
  .summary-card__rows { display: none; }
  .summary-card__total { flex-direction: column; align-items: flex-end; gap: 0; padding-top: 0; border-top: 0; font-size: .75rem; }
  .summary-card__total { padding-left: 12px; }
  .summary-card__total strong { font-size: 1.375rem; }
  .summary-card__carrier strong { font-size: .875rem; }
  .summary-card__carrier small { white-space: nowrap; }
  .summary-card__note { grid-column: 1 / -1; margin: 0; padding-top: 10px; border-top: 1px solid var(--border); }
}

/* Campo apontado pelo servidor */
.input.is-invalid, .select.is-invalid { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(180, 35, 24, .14); }
.field-counter { display: block; margin-top: 4px; color: var(--text-muted); font-size: .75rem; text-align: right; }
.field-counter.is-full { color: var(--danger); font-weight: 600; }
.status-card--warning .status-card__icon { background: var(--warning-bg); color: var(--warning); }

/* Revisão */
.review-block { padding: 20px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
.review-pair { display: grid; gap: 20px; }
@media (min-width: 768px) { .review-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.review-block__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.review-block__title { display: flex; align-items: center; gap: 8px; font-size: 1.0625rem; }
.review-block__title svg { color: var(--orange-600); }
.review-block__name { color: var(--ink); font-weight: 600; }
.review-block__text { margin-top: 4px; color: var(--ink-2); line-height: 1.6; }
.review-rows { display: grid; gap: 10px; margin: 0; }
.review-rows > div { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 8px; }
.review-rows dt { color: var(--text-muted); font-size: .875rem; }
.review-rows dd { margin: 0; color: var(--ink); font-size: .9375rem; overflow-wrap: anywhere; }
.review-rows--compact { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--border); }
.review-rows--compact > div { grid-template-columns: 96px minmax(0, 1fr); }
@media (max-width: 479px) { .review-rows > div, .review-rows--compact > div { grid-template-columns: 1fr; gap: 2px; } }
.check--lg { align-items: flex-start; gap: 12px; color: var(--ink-2); line-height: 1.55; }
.check--lg input { margin-top: 3px; width: 20px; height: 20px; }

/* Pagamento */
.pay-options { display: grid; gap: 12px; }
.pay-option { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); transition: border-color var(--dur) var(--ease); }
.pay-option[open] { border-color: var(--orange-300, var(--orange-200)); box-shadow: 0 12px 28px -18px rgba(204, 74, 16, .45); }
.pay-option__head { display: flex; align-items: center; gap: 14px; padding: 16px 18px; cursor: pointer; list-style: none; border-radius: var(--radius); }
.pay-option__head::-webkit-details-marker { display: none; }
.pay-option__head:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.pay-option__icon { display: grid; flex: none; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--surface-3); color: var(--ink); }
.pay-option__icon--pix { background: #e7f8ef; color: #15803d; }
.pay-option__text { display: grid; gap: 2px; min-width: 0; flex: 1; }
.pay-option__text strong { color: var(--ink); }
.pay-option__text small { color: var(--text-muted); font-size: .8125rem; }
.pay-option__tag { flex: none; padding: 4px 10px; border-radius: var(--radius-pill); background: var(--orange-50); color: var(--orange-700); font-size: .75rem; font-weight: 700; }
.pay-option__body { padding: 4px 18px 20px; }
.pix-box { display: grid; gap: 20px; }
@media (min-width: 640px) { .pix-box { grid-template-columns: 220px minmax(0, 1fr); } }
.pix-box__qr { justify-self: center; padding: 10px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
.pix-box__qr img { width: 200px; height: 200px; }
.pix-box__value { color: var(--text-muted); }
.pix-box__value strong { color: var(--ink); font-family: var(--font-display); font-size: 1.375rem; }
.pix-box__steps { display: grid; gap: 6px; margin: 10px 0 14px; padding-left: 20px; color: var(--ink-2); font-size: .9375rem; list-style: decimal; }
.pix-box__steps li { padding-left: 4px; }
.pix-box__wait { display: flex; align-items: center; gap: 8px; margin-top: 12px; color: var(--text-muted); font-size: .875rem; }
.spinner { display: inline-block; width: 16px; height: 16px; border: 2px solid var(--border-strong); border-top-color: var(--orange-500); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Acompanhamento */
.status-card { display: flex; gap: 18px; align-items: flex-start; }
.status-card__icon { display: grid; flex: none; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--surface-3); color: var(--ink); }
.status-card--success .status-card__icon { background: var(--success-bg); color: var(--success); }
.status-card--danger .status-card__icon { background: var(--danger-bg); color: var(--danger); }
.status-card--info .status-card__icon, .status-card--warning .status-card__icon { background: var(--orange-50); color: var(--orange-600); }
.status-card__body { min-width: 0; flex: 1; }
.status-card__lead { display: flex; align-items: center; gap: 8px; margin-top: 12px; color: var(--ink); font-weight: 600; }
.track-code-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 8px; }
.track-code-row .track-code { font-size: 1.125rem; }
.next-steps { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border); }
.next-steps__list { display: grid; gap: 8px; margin-top: 10px; padding-left: 20px; color: var(--ink-2); line-height: 1.6; list-style: decimal; }
@media (max-width: 479px) { .status-card { flex-direction: column; } }

/* 14. Autenticação e páginas de erro -------------------------------------- */
.auth {
  display: grid;
  place-items: center;
  min-height: calc(100vh - var(--header-h));
  padding: 32px var(--gutter) 48px;
  background:
    radial-gradient(ellipse 50% 50% at 0% 0%, rgba(242, 101, 34, .08), transparent 70%),
    radial-gradient(ellipse 50% 50% at 100% 100%, rgba(24, 52, 82, .08), transparent 70%),
    var(--bg);
}
.auth-card {
  display: grid;
  width: 100%;
  max-width: 480px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}
@media (min-width: 960px) {
  .auth-card--split { max-width: 960px; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
}
.auth-card__aside {
  position: relative;
  isolation: isolate;
  display: none;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  padding: 40px;
  background: var(--navy-900);
  color: var(--text-on-dark);
}
.auth-card__aside::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 70% 50% at 100% 0%, rgba(242, 101, 34, .28), transparent 70%),
    linear-gradient(180deg, rgba(11, 20, 36, .9) 0%, rgba(11, 20, 36, .72) 50%, rgba(11, 20, 36, .95) 100%),
    url("../img/hero-entrega.webp") center / cover no-repeat;
}
@media (min-width: 960px) { .auth-card--split .auth-card__aside { display: flex; } }
.auth-card__aside h2,
.auth-card__aside-title { color: #fff; font-family: var(--font-display); font-size: 1.75rem; font-weight: 700; line-height: 1.2; }
.auth-card__aside p { margin-top: 10px; color: var(--text-on-dark); }
.auth-card__main { padding: 28px 22px; }
@media (min-width: 480px) { .auth-card__main { padding: 40px; } }
.auth-card__title { font-size: 1.75rem; }
.auth-card__subtitle { margin: 6px 0 24px; color: var(--text-muted); }
.auth-card__links { display: grid; gap: 10px; margin-top: 20px; text-align: center; font-size: .9375rem; color: var(--text-muted); }

.error-page { display: grid; place-items: center; min-height: calc(70vh - var(--header-h)); padding: 56px var(--gutter); text-align: center; }
.error-page__code { color: var(--orange-600); font-family: var(--font-display); font-size: clamp(4rem, 3rem + 6vw, 7rem); font-weight: 800; line-height: 1; letter-spacing: -.04em; }
.error-page h1 { margin: 12px 0 10px; font-size: clamp(1.625rem, 1.3rem + 1.4vw, 2.25rem); }
.error-page p { max-width: 46ch; margin: 0 auto 24px; color: var(--text-muted); }

/* 15. App shell (área do cliente e administração) ------------------------- */
body.app-body { background: var(--bg); }
.app { display: grid; grid-template-columns: minmax(0, 1fr); min-height: 100vh; }
@media (min-width: 1024px) {
  /* A coluna da sidebar fica azul-marinho mesmo quando a página é mais alta que a tela */
  .app { grid-template-columns: 264px minmax(0, 1fr); background: linear-gradient(90deg, var(--navy-900) 264px, var(--bg) 264px); }
}

.app__sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  width: min(288px, 86vw);
  padding: 20px 14px calc(20px + env(safe-area-inset-bottom));
  overflow-y: auto;
  background: var(--navy-900);
  color: var(--text-on-dark);
  transform: translateX(-100%);
  visibility: hidden;
  transition: transform .24s var(--ease), visibility 0s linear .24s;
}
.app__sidebar.is-open {
  transform: none;
  visibility: visible;
  transition: transform .24s var(--ease), visibility 0s;
  box-shadow: 24px 0 48px -24px rgba(0, 0, 0, .6);
}
@media (min-width: 1024px) {
  .app__sidebar {
    position: sticky;
    top: 0;
    width: auto;
    height: 100vh;
    transform: none;
    visibility: visible;
    transition: none;
    border-right: 1px solid rgba(255, 255, 255, .06);
  }
}
.app__brand { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 4px 8px 20px; }
.app__brand .logo__img { height: 38px; }
.app__close {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--radius);
  background: transparent;
  color: #fff;
}
@media (min-width: 1024px) { .app__close { display: none; } }
.app__nav { display: grid; gap: 2px; }
.app__nav-label {
  padding: 18px 12px 6px;
  color: #7f8ea6;
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.app__link {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 42px;
  padding: 9px 12px;
  border: 0;
  border-radius: 10px;
  background: none;
  color: var(--text-on-dark);
  font-size: .9375rem;
  font-weight: 500;
  text-align: left;
  text-decoration: none;
  transition: background-color var(--dur), color var(--dur);
}
.app__link svg { opacity: .85; }
.app__link:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.app__link.is-active { background: var(--orange-600); color: #fff; font-weight: 600; box-shadow: 0 8px 18px -10px rgba(204, 74, 16, .9); }
.app__link.is-active svg { opacity: 1; }
.app__link:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; }
.app__sidebar-foot { display: grid; gap: 2px; margin-top: auto; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .08); }
.app__sidebar-foot form { margin: 0; }
.app__backdrop {
  position: fixed;
  inset: 0;
  z-index: 55;
  display: none;
  border: 0;
  background: rgba(7, 14, 26, .55);
}
body.app-menu-open { overflow: hidden; }
body.app-menu-open .app__backdrop { display: block; }
@media (min-width: 1024px) {
  body.app-menu-open { overflow: auto; }
  body.app-menu-open .app__backdrop { display: none; }
}

.app__main { display: flex; flex-direction: column; min-width: 0; }
.app__topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 10px var(--gutter);
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid var(--border);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
@media (min-width: 1024px) { .app__topbar { padding-inline: 32px; } }
.app__toggle {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
}
@media (min-width: 1024px) { .app__toggle { display: none; } }
.app__topbar-title {
  min-width: 0;
  margin-right: auto;
  overflow: hidden;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.app__topbar-actions { display: flex; align-items: center; gap: 10px; }
.app__user { display: flex; align-items: center; gap: 10px; min-width: 0; }
.app__user-name { display: none; color: var(--ink); font-size: .875rem; font-weight: 600; white-space: nowrap; }
.app__user-role { display: block; color: var(--text-muted); font-size: .75rem; font-weight: 500; }
@media (min-width: 640px) { .app__user-name { display: block; } }
.avatar {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border: 1px solid var(--orange-100);
  border-radius: 50%;
  background: var(--orange-50);
  color: var(--orange-700);
  font-size: .875rem;
  font-weight: 700;
}
.app__content {
  width: 100%;
  max-width: 1360px;
  margin-inline: auto;
  padding: 20px var(--gutter) 104px; /* espaço inferior: botão de atendimento flutuante */
}
@media (min-width: 1024px) { .app__content { padding: 32px 32px 104px; } }

/* 16. Área do cliente e administração: componentes de tela --------------- */
.page-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 24px;
  margin-bottom: 24px;
}
.page-header__title { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); }
.page-header__subtitle { margin-top: 4px; color: var(--text-muted); }
.page-header__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; color: var(--text-muted); font-size: .875rem; }
.page-header__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.back-link { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 14px; color: var(--text-muted); font-size: .875rem; font-weight: 500; }
.back-link:hover { color: var(--ink); }

.section-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 32px 0 14px; }
.section-title h2 { font-size: 1.125rem; }
.section-title:first-child { margin-top: 0; }

.stat-grid { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 360px) { .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .stat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1100px) { .stat-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.stat-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: inherit;
  text-decoration: none;
  box-shadow: var(--shadow-xs);
  transition: border-color var(--dur), box-shadow var(--dur), transform var(--dur);
}
@media (min-width: 768px) { .stat-card { padding: 20px; } }
a.stat-card:hover { border-color: var(--orange-200); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.stat-card__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.stat-card__label { color: var(--text-muted); font-size: .8125rem; font-weight: 600; }
.stat-card__value {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(1.125rem, .95rem + 1.1vw, 1.875rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.02em;
  overflow-wrap: anywhere;
}
.stat-card__foot { display: flex; align-items: center; gap: 6px; color: var(--text-muted); font-size: .8125rem; }
.stat-card__foot--link { color: var(--orange-700); font-weight: 600; }
.stat-card--highlight .stat-card__value { color: var(--orange-600); }
.stat-card--alert { border-color: var(--warning-border); background: #fffcf5; }

.quick-grid { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 560px) { .quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .quick-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.action-card {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  min-height: 76px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  transition: border-color var(--dur), box-shadow var(--dur), transform var(--dur);
}
.action-card:hover { border-color: var(--orange-200); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.action-card__body { display: grid; min-width: 0; }
.action-card__title { font-weight: 600; line-height: 1.3; }
.action-card__text { color: var(--text-muted); font-size: .8125rem; }
.action-card__arrow { margin-left: auto; color: var(--text-subtle); }
.action-card--primary { border-color: var(--orange-600); background: var(--orange-600); color: #fff; }
.action-card--primary:hover { border-color: var(--orange-700); background: var(--orange-700); }
.action-card--primary .action-card__text,
.action-card--primary .action-card__arrow { color: #fff; }
.action-card--primary .icon-tile { border-color: rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .16); color: #fff; }

.panel-grid { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); align-items: stretch; margin-top: 28px; }
@media (min-width: 1100px) { .panel-grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); } }
.panel { position: relative; min-width: 0; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-xs); }
.panel__header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
}
@media (min-width: 768px) { .panel__header { padding: 18px 22px; } }
.panel__title { font-size: 1.0625rem; }
.panel__subtitle { margin-top: 2px; color: var(--text-muted); font-size: .875rem; }
.panel__link { display: inline-flex; align-items: center; gap: 4px; color: var(--orange-700); font-size: .875rem; font-weight: 600; white-space: nowrap; }
.panel__link:hover { text-decoration: underline; }
.panel .table-wrap { border: 0; border-radius: 0; }

.list { display: grid; }
.list > * + * { border-top: 1px solid var(--border); }
.list__item { display: flex; align-items: center; gap: 12px; padding: 14px 18px; min-width: 0; color: inherit; }
a.list__item:hover { background: var(--surface-2); }
a.list__item:hover .list__title { color: var(--orange-700); }
.list__main { display: grid; min-width: 0; }
.list__title { color: var(--ink); font-weight: 600; font-size: .9375rem; }
.list__meta { color: var(--text-muted); font-size: .8125rem; }
.list__side { display: grid; justify-items: end; gap: 2px; margin-left: auto; text-align: right; white-space: nowrap; }
.list__value { color: var(--ink); font-weight: 700; }

/* Carteira */
.balance-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px;
  border-radius: var(--radius);
  background: linear-gradient(125deg, var(--navy-900), var(--navy-700));
  color: var(--text-on-dark);
}
.balance-card::before { content: ""; position: absolute; z-index: -1; width: 320px; height: 320px; right: -120px; top: -160px; border-radius: 50%; background: radial-gradient(circle, rgba(242, 101, 34, .35), transparent 65%); }
.balance-card__label { color: var(--text-on-dark-muted); font-size: .875rem; font-weight: 500; }
.balance-card__value { margin-top: 4px; color: #fff; font-family: var(--font-display); font-size: clamp(1.875rem, 1.4rem + 2vw, 2.75rem); font-weight: 700; line-height: 1.1; letter-spacing: -.02em; }
.wallet-grid { display: grid; gap: 20px; align-items: start; margin-top: 20px; }
@media (min-width: 1200px) { .wallet-grid { grid-template-columns: minmax(0, 1.5fr) minmax(340px, 1fr); } }
.pix-key { padding: 14px; border: 1px dashed var(--border-strong); border-radius: var(--radius); background: var(--surface-2); margin-bottom: 18px; }
.pix-key strong { display: block; margin-top: 2px; color: var(--ink); font-family: var(--font-mono); font-size: .9375rem; word-break: break-all; }
.qr { display: grid; justify-items: center; margin: 4px 0 16px; }
.qr img { width: 100%; max-width: 240px; border: 1px solid var(--border); border-radius: var(--radius); padding: 8px; background: #fff; }
.pix-status { margin-top: 12px; color: var(--text-muted); font-size: .875rem; text-align: center; }

/* Emissão de etiqueta */
.service-options { display: grid; gap: 8px; }
.service-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  cursor: pointer;
  transition: border-color var(--dur), background-color var(--dur);
}
.service-option:hover { border-color: var(--orange-200); }
.service-option:has(input:checked) { border-color: var(--orange-500); background: var(--orange-50); }
.service-option--warn { border-color: var(--danger-border); }
.service-option__main { display: flex; align-items: center; gap: 12px; min-width: 0; }
.service-option__name { color: var(--ink); font-weight: 600; }
.service-option__meta { display: block; color: var(--text-muted); font-size: .8125rem; }
.service-option__note { display: block; margin-top: 2px; font-size: .8125rem; }
.service-option__note--warn { color: var(--danger); }
.service-option__note--ok { color: var(--success); }
.service-option__price { color: var(--ink); font-family: var(--font-display); font-size: 1.125rem; font-weight: 700; white-space: nowrap; }
.price-preview { padding: 16px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-2); margin-bottom: 18px; }
.price-preview__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 12px; color: var(--text-muted); font-size: .8125rem; }
.price-preview__balance { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); font-size: .875rem; }
.price-preview__balance.is-short { color: var(--danger); }

/* Administração */
.message-list { display: grid; gap: 12px; }
.message { padding: 16px 18px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.message--new { border-left: 4px solid var(--orange-500); }
.message__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
.message__name { color: var(--ink); font-weight: 600; }
.message__contact { color: var(--text-muted); font-size: .875rem; overflow-wrap: anywhere; }
.message__body { margin-top: 10px; color: var(--ink-2); white-space: pre-wrap; overflow-wrap: anywhere; }
.message__side { display: grid; justify-items: start; gap: 8px; color: var(--text-muted); font-size: .8125rem; }
@media (min-width: 640px) { .message__side { justify-items: end; } }

.carrier-logo-chip { display: inline-grid; place-items: center; height: 40px; padding: 6px 12px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
.carrier-logo-chip img { height: 24px; width: auto; }

.code-block {
  margin: 4px 0 10px;
  padding: 12px 14px;
  overflow-x: auto;
  border-radius: var(--radius);
  background: var(--navy-950);
  color: #e2e8f0;
  font-family: var(--font-mono);
  font-size: .8125rem;
  line-height: 1.55;
  white-space: pre;
}
.endpoint { padding: 16px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.endpoint + .endpoint { margin-top: 12px; }
.endpoint__head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.endpoint__path { background: none; padding: 0; color: var(--ink); font-size: .9375rem; font-weight: 600; }
.endpoint__desc { margin: 8px 0 10px; color: var(--text-muted); font-size: .875rem; }
.endpoint__label { color: var(--text-muted); font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.max-w-form { max-width: 720px; }
.max-w-wide { max-width: 980px; }

/* 17. Terceiros ------------------------------------------------------------ */
/* Widget de avaliações (Trustindex): o embed usa <pre>; neutraliza o estilo
   padrão de <pre> para não quebrar o texto nem estourar a largura. */
.reviews-embed { min-width: 0; }
.reviews-embed pre.ti-widget { margin: 0; white-space: normal; font-family: var(--font-sans); overflow: hidden; }
.reviews-embed .ti-widget-container { max-width: 100%; }
/* A fonte do widget vem do CDN do Trustindex; sem ela, usa Inter (não serifada). */
.reviews-embed .ti-widget.ti-goog .ti-widget-container,
.reviews-embed .ti-widget.ti-goog .ti-widget-container * { font-family: var(--font-sans); }
/* Inter, não a Poppins do Trustindex: era uma 3ª família no site e 17 KB
   de fonte baixados do CDN deles. */
.reviews-embed .ti-profile-img { overflow: hidden; border-radius: 50%; }
.reviews-embed .ti-profile-img img { color: transparent; font-size: 0; }
.reviews-embed--static .ti-widget.ti-goog .ti-widget-container { display: block; }
/* Cabeçalho do widget (.ti-footer: foto do perfil, estrelas, total e botão
   "Avaliar") escondido sempre, com o loader carregado ou não (27/10/2026):
   a foto vinha quebrada, o botão "Avaliar" disputava com o CTA e a nota já
   aparece no cabeçalho da seção. Ficam só os cartões das avaliações. */
.reviews-embed .ti-widget .ti-footer,
.reviews-embed .ti-widget .ti-header-write-btn-container { display: none !important; }
.reviews-embed .ti-widget.ti-goog .ti-col-4 .ti-reviews-container { flex: 1 1 auto; width: 100%; max-width: 100%; }
/* Texto cortado em 6 linhas com "Ler mais" (app.js). Antes ia inteiro num
   cartão de altura fixa e as avaliações longas vazavam para fora do cartão. */
.reviews-embed--static .ti-widget.ti-goog .ti-review-content { display: -webkit-box !important; -webkit-box-orient: vertical; -webkit-line-clamp: 6 !important; height: auto !important; max-height: none !important; overflow: hidden !important; padding-right: 0 !important; }
.reviews-embed--static .ti-widget.ti-goog .ti-review-content.is-open { display: block !important; -webkit-line-clamp: unset !important; }
.reviews-embed--static .ti-widget.ti-goog .ti-review-item,
.reviews-embed--static .ti-widget.ti-goog .ti-review-item > .ti-inner { height: auto !important; min-height: 100%; }
.reviews-embed--static .ti-widget.ti-goog .ti-reviews-container-wrapper { align-items: stretch; }
.reviews-embed .ti-ler-mais { margin-top: 8px; padding: 0; border: 0; background: none; color: var(--orange-600); font: inherit; font-size: .875rem; font-weight: 600; cursor: pointer; }
.reviews-embed .ti-ler-mais:hover { text-decoration: underline; }
.reviews-embed--static .ti-widget.ti-goog .ti-read-more { display: none !important; }
.reviews-embed--static .ti-reviews-container-wrapper:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; border-radius: var(--radius); }
@media (max-width: 899px) {
  .reviews-embed--static .ti-widget.ti-goog .ti-reviews-container-wrapper {
    margin-inline: calc(-1 * var(--gutter)) !important;
    padding-inline: calc(var(--gutter) - 6px);
    scroll-padding-inline: calc(var(--gutter) - 6px);
  }
}
.reviews-embed--static .ti-stars-text { display: block; margin: 10px 0 8px; color: var(--orange-500); font-size: 1rem; letter-spacing: 2px; line-height: 1; }
.reviews-embed--static .ti-widget.ti-goog .ti-review-header { display: flex; align-items: center; gap: 10px; }
.reviews-embed--static .ti-widget.ti-goog .ti-name { color: var(--ink) !important; font-weight: 600 !important; }
.reviews-embed--static .ti-widget.ti-goog .ti-review-content { color: var(--ink-2) !important; line-height: 1.6 !important; }
.reviews-embed--static .ti-widget.ti-goog .ti-review-item > .ti-inner {
  height: 100%;
  padding: 20px !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius) !important;
  background: var(--surface) !important;
  box-shadow: none !important;
}
.reviews-embed--static .ti-widget.ti-goog .ti-col-4 .ti-footer,
.reviews-embed--static .ti-widget.ti-goog .ti-col-4 .ti-reviews-container { flex: none; width: auto; max-width: none; min-width: 0; padding-right: 0; }
.reviews-embed--static .ti-widget.ti-goog .ti-controls,
.reviews-embed--static .ti-widget.ti-goog .ti-controls-line { display: none !important; }
.reviews-embed--static .ti-widget.ti-goog .ti-reviews-container-wrapper {
  margin: 0 !important;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.reviews-embed--static .ti-widget.ti-goog .ti-col-4 .ti-review-item { flex: 0 0 min(300px, 86%); max-width: none; padding: 0 6px; scroll-snap-align: start; }
@media (min-width: 900px) {
  .reviews-embed--static .ti-widget.ti-goog .ti-col-4 .ti-review-item { flex-basis: 33.333%; }
}

/* Widget de atendimento (api.99envios.com.br injeta #wc-btn/#wc-panel).
   No celular o botão fica só com o ícone (52 px): com o rótulo "Fale conosco"
   ele cobria o título do formulário da home e o campo de CEP da cotação.
   O nome acessível continua no aria-label do botão. */
body #wc-btn.wc-pill { min-width: 56px; width: 56px; height: 56px; padding: 0; }
#wc-btn #wc-lbl { display: none; }
@media (max-width: 768px) {
  body #wc-btn.wc-pill { min-width: 52px; width: 52px; height: 52px; }
  body:has(.mobile-cta) #wc-btn { bottom: calc(80px + env(safe-area-inset-bottom)); right: 14px; }
  body:has(.mobile-cta) #wc-panel { bottom: calc(144px + env(safe-area-inset-bottom)); max-height: calc(100dvh - 180px); }
}
/* Sem o pulso infinito do botão (wc-pulse, vem do widget.js do CRM): o único
   movimento do site é o mapa de rotas (docs/design.md), e o pulso disputava
   atenção com o formulário de cotação o tempo todo. */
body #wc-btn.wc-pill { animation: none; }

/* 18. Acessibilidade, movimento e impressão ------------------------------ */
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.footer, .hero, .coverage, .b2b, .cta-band, .page-hero, .help-card, .checkout-head,
.auth-card__aside, .app__sidebar, .balance-card { --focus: var(--orange-400); }
/* Os elementos fixos (cabeçalho, barra do celular, aviso de cookies) não
   podem cobrir o campo que recebe o foco pelo Tab (WCAG 2.4.11): o navegador
   rola o foco para fora dessas faixas. */
html { scroll-padding-bottom: calc(var(--consent-h, 0px) + 16px); }
@media (max-width: 768px) {
  html:has(.mobile-cta) { scroll-padding-bottom: calc(68px + var(--consent-h, 0px) + 16px); }
}
a:focus-visible { border-radius: 4px; }
.input:focus-visible,
.select:focus-visible,
.textarea:focus-visible { outline: none; }

/* Sem "fade + sobe" nas seções (27/10/2026): .reveal e .animate-up ficam
   como classes neutras (o conteúdo aparece pronto). O efeito em toda seção
   era sinal de modelo pronto e escondia o texto até o JS rodar. O único
   momento animado é o mapa de rotas da home (seção 12). */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

@media (forced-colors: active) {
  .btn, .segmented__btn, .tab, .badge { border: 1px solid CanvasText; }
  .check-list li::before, .x-list li::before { forced-color-adjust: none; }
}

@media print {
  .header, .footer, .mobile-cta, .back-to-top, .app__sidebar, .app__topbar, .nav-toggle, #wc-btn, #wc-panel { display: none !important; }
  body { background: #fff; padding: 0 !important; }
  .app { display: block; }
  .card, .panel { box-shadow: none; break-inside: avoid; }
}

/* 19. Utilitários ---------------------------------------------------------- */
.hidden { display: none !important; }
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--text-muted); }
.text-accent { color: var(--orange-700); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-ink { color: var(--ink); }
.text-sm { font-size: .875rem; }
.text-xs { font-size: .8125rem; }
.fw-600 { font-weight: 600; }
.h-sm { font-size: 1.125rem; }
.mono { font-family: var(--font-mono); }
.nowrap { white-space: nowrap; }
.w-full { width: 100%; }
.mt-0 { margin-top: 0 !important; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }
.mt-12 { margin-top: 64px; }
.mb-0 { margin-bottom: 0 !important; }
.mb-2 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mx-auto { margin-inline: auto; }
@media (max-width: 479px) { .hide-xs { display: none !important; } }

/* ── Preço detalhado (frete / seguro / cupom) e cupom de desconto ── */
.summary-card__rows--price { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--border, #e5e7eb); gap: 6px; }
.summary-card__rows--price > div { display: flex; justify-content: space-between; gap: 12px; }
.summary-card__rows--price dd { margin: 0; font-weight: 600; }
.summary-card__rows--price .text-success { color: var(--success, #15803d); }
.coupon-box { margin-bottom: 16px; padding: 14px 16px; border: 1px dashed var(--border, #d1d5db); border-radius: 12px; background: var(--surface, #fff); }
.coupon-box__row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.coupon-box__row .input { flex: 1 1 180px; text-transform: uppercase; }
.coupon-box__applied { margin: 0; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.coupon-box__applied .link { background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; color: inherit; }
.quote-option__breakdown { margin: 0 0 2px; font-size: .78rem; line-height: 1.35; color: var(--text-muted, #6b7280); text-align: right; }
.quote-option__price small { font-size: .7em; font-weight: 600; color: var(--text-muted, #6b7280); }

/* 20. Ajustes da revisão de 27/10/2026 ------------------------------------ */
/* Botões do carrossel do Trustindex (div role=button de terceiros): foco
   visível como o resto do site; o padrão deles era 1 px cinza. */
.reviews-embed [role="button"]:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
/* Menos vazio abaixo das avaliações no celular e no tablet */
@media (max-width: 899px) { .section.reviews { padding-bottom: var(--space-7); } }
/* Celular: com um campo de formulário em foco, a bolha do chat sai de cena.
   Ela ficava sobre a borda direita dos campos (CEP, país) e da seta dos
   selects bem na hora de digitar. */
@media (max-width: 768px) {
  body:has(form :focus) #wc-btn { opacity: 0; pointer-events: none; }
}
/* Linha de etapas numerada (/rastrear): vertical no celular, horizontal no
   desktop, ligada por um fio. Mesmo vocabulário do "Como funciona" da home. */
.step-line { display: grid; gap: var(--space-4); margin: 0; padding: 0; list-style: none; counter-reset: etapa; }
.step-line__item { position: relative; display: grid; gap: 2px; padding-left: 44px; counter-increment: etapa; }
.step-line__item::before {
  content: counter(etapa);
  position: absolute; left: 0; top: 0;
  display: grid; place-items: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--navy-900); color: #fff; font-weight: 700; font-size: .875rem;
}
.step-line__item:not(:last-child)::after {
  content: ""; position: absolute; left: 14px; top: 34px; bottom: calc(-1 * var(--space-4) + 4px);
  width: 2px; background: var(--border);
}
.step-line__title { color: var(--ink); }
.step-line__text { color: var(--text-muted); font-size: .9375rem; line-height: 1.5; }
@media (min-width: 768px) {
  .step-line { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-5); }
  .step-line__item { padding: 44px 0 0; }
  .step-line__item:not(:last-child)::after { left: 38px; right: calc(-1 * var(--space-5) + 4px); top: 14px; bottom: auto; width: auto; height: 2px; }
}
/* /contato: um cartão só, com o botão do WhatsApp no topo e os outros canais
   como lista com fio (antes, 5 cartões iguais com sombra). */
.contact-list { gap: 0; padding: var(--space-4); border: 1px solid var(--border); border-radius: var(--radius-lg, 12px); background: var(--surface); align-self: start; }
.contact-list > .btn { margin-bottom: var(--space-2); }
.contact-list .contact-card { margin: 0; padding: var(--space-3) 0; border: 0; border-bottom: 1px solid var(--border); border-radius: 0; background: none; box-shadow: none; }
.contact-list .contact-card:last-child { border-bottom: 0; padding-bottom: 0; }
.contact-list a.contact-card:hover { box-shadow: none; }
.contact-list a.contact-card:hover .contact-card__label { color: var(--orange-700); }
.error-page__code-sm { margin: 0 0 var(--space-2); color: var(--text-on-dark); font-weight: 600; }
/* Texto com espaçamento aumentado (WCAG 1.4.12) em 320 px: botões grandes da
   faixa escura quebram linha em vez de estourar a tela. */
.cta-band .btn { white-space: normal; }
/* /cotacao em 320 px: os filhos da grade não podem passar da largura. */
.quote-layout > * { min-width: 0; }
.contact-list__numero { margin: 0 0 var(--space-2); color: var(--text-muted); font-size: .9375rem; text-align: center; }
