/* ===== Design tokens ===== */
:root {
  --primary: #0a3d62;
  --primary-700: #082c46;
  --primary-50: #eef3f9;
  --accent: #ff8a00;
  --accent-600: #e67a00;
  --text: #0f172a;
  --muted: #5b6b80;
  --line: #e6ecf2;
  --bg: #ffffff;
  --bg-soft: #f6f8fb;
  --success: #1aa257;
  --error: #d23a3a;
  --error-soft: #fde8e8;
  --shadow-sm: 0 1px 2px rgba(15,23,42,0.06), 0 1px 3px rgba(15,23,42,0.04);
  --shadow-md: 0 14px 30px rgba(10,61,98,0.10);
  --shadow-lg: 0 24px 60px rgba(10,61,98,0.18);
  --radius: 12px;
  --radius-lg: 18px;
  --container: 1200px;

  /* easings precisos e lentos */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-in-out-quart: cubic-bezier(0.76, 0, 0.24, 1);

  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-display: 'Plus Jakarta Sans', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 .5rem;
  color: var(--text);
}
h1 { font-size: clamp(2.1rem, 4.2vw, 3.4rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1.05; }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.3rem); font-weight: 800; letter-spacing: -0.025em; }
h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.015em; }
h4 { font-weight: 700; letter-spacing: -0.005em; }
p { margin: 0 0 1rem; color: var(--muted); }
ul { padding: 0; margin: 0; list-style: none; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.sr-only {
  position: absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden;
  clip: rect(0,0,0,0); border:0;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; font-size: .95rem; font-weight: 600; border-radius: 10px;
  border: 1px solid transparent; cursor: pointer;
  transition: background .35s var(--ease-out-quart), transform .45s var(--ease-out-expo), box-shadow .35s var(--ease-out-quart), border-color .35s var(--ease-out-quart);
  white-space: nowrap;
  font-family: var(--font-sans);
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-700); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-600); transform: translateY(-2px); box-shadow: 0 14px 30px rgba(255,138,0,0.32); }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--line); }
.btn-outline:hover { border-color: var(--primary); background: var(--primary-50); transform: translateY(-2px); }
.btn-block { width: 100%; }
.btn:disabled { opacity: .6; cursor: not-allowed; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .35s var(--ease-out-quart), background .35s var(--ease-out-quart);
}
.site-header.is-scrolled { box-shadow: 0 4px 20px rgba(15,23,42,0.05); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.logo { display: inline-flex; align-items: center; }
.logo-img {
  height: 44px; width: auto; max-width: 180px;
  object-fit: contain;
  display: block;
  transition: transform .35s var(--ease-out-quart);
}
.logo:hover .logo-img { transform: scale(1.03); }
.logo-img-footer {
  height: 56px; max-width: 220px;
  background: rgba(255, 255, 255, 0.95);
  padding: 6px 14px; border-radius: 10px;
  box-sizing: content-box;
}

.site-nav { display: flex; gap: 30px; }
.site-nav a {
  font-size: .95rem; font-weight: 500; color: var(--text); opacity: .75;
  transition: opacity .3s var(--ease-out-quart), color .3s var(--ease-out-quart);
  position: relative;
}
.site-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px;
  height: 2px; background: var(--accent); border-radius: 2px;
  transform: scaleX(0); transform-origin: left center;
  transition: transform .45s var(--ease-out-expo);
}
.site-nav a:hover { opacity: 1; color: var(--primary); }
.site-nav a:hover::after { transform: scaleX(1); }

.header-cta { padding: 10px 20px; }

.menu-toggle {
  display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px;
}
.menu-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: all .35s var(--ease-out-quart); }

/* ===== Hero ===== */
.hero {
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(255,138,0,0.18), transparent 60%),
    linear-gradient(135deg, var(--primary) 0%, #14517f 60%, #1a6aa1 100%);
  color: #fff; padding: 96px 0 120px; position: relative; overflow: hidden;
}
.hero::before {
  content:""; position:absolute; inset:0;
  background-image:
    radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.5 0'/></filter><rect width='180' height='180' filter='url(%23n)' opacity='0.4'/></svg>");
  background-size: 26px 26px, 180px 180px;
  opacity: .35; pointer-events: none;
  mix-blend-mode: overlay;
}
.hero-inner { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center; position: relative; }
.hero-content h1 { color: #fff; }
.hero-content h1 em { font-style: normal; color: #ffd166; font-weight: 800; }
.hero-sub { color: rgba(255,255,255,0.82); font-size: 1.1rem; max-width: 560px; margin-bottom: 28px; }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; font-size: .78rem; font-weight: 600;
  background: rgba(255,255,255,0.10); border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px; margin-bottom: 22px; letter-spacing: .08em; text-transform: uppercase;
  backdrop-filter: blur(6px);
}
.badge::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: #4ade80; box-shadow: 0 0 0 0 rgba(74,222,128,0.6);
  animation: pulse 2.4s var(--ease-in-out-quart) infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(74,222,128,0.6); }
  50% { box-shadow: 0 0 0 10px rgba(74,222,128,0); }
}

.track-form {
  display: flex; gap: 8px; background: #fff; padding: 8px; border-radius: 14px;
  box-shadow: var(--shadow-lg); max-width: 540px;
  transition: box-shadow .5s var(--ease-out-expo);
}
.track-form:focus-within { box-shadow: 0 28px 70px rgba(10,61,98,0.28); }
.track-form input {
  flex: 1; border: 0; outline: 0; font-size: 1rem; padding: 13px 14px; color: var(--text);
  background: transparent; font-family: var(--font-sans);
}
.track-form input::placeholder { color: #94a3b8; }
.track-form .btn { padding: 12px 22px; }
.track-form.is-invalid { animation: shake .5s var(--ease-in-out-quart); box-shadow: 0 0 0 3px rgba(210,58,58,0.18), var(--shadow-lg); }
@keyframes shake {
  10%, 90% { transform: translateX(-2px); }
  20%, 80% { transform: translateX(4px); }
  30%, 50%, 70% { transform: translateX(-7px); }
  40%, 60% { transform: translateX(7px); }
}

.track-error {
  display: block; margin-top: 10px; font-size: .85rem; color: var(--error);
  min-height: 1.1em;
  opacity: 0; transform: translateY(-4px);
  transition: opacity .35s var(--ease-out-quart), transform .35s var(--ease-out-quart);
}
.track-error.is-visible { opacity: 1; transform: translateY(0); }
.track-error-light { color: #ffb4b4; }

.hero-meta { display: flex; align-items: center; gap: 18px; margin-top: 26px; flex-wrap: wrap; color: rgba(255,255,255,0.82); font-size: .9rem; }
.rating { display: inline-flex; align-items: center; gap: 8px; }
.stars { color: #ffd166; letter-spacing: 3px; font-size: .95rem; }
.hero-meta-sep { width: 1px; height: 18px; background: rgba(255,255,255,0.25); }

.hero-art {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-foto {
  width: 100%;
  max-width: 380px;
  height: auto;
  display: block;
  border-radius: 24px;
  box-shadow:
    0 40px 80px -20px rgba(0, 0, 0, 0.55),
    0 18px 36px -12px rgba(0, 0, 0, 0.30),
    0 0 0 1px rgba(255, 255, 255, 0.08);
  transform: translateY(0);
  transition: transform .7s var(--ease-out-expo), box-shadow .5s var(--ease-out-quart);
}
.hero-foto:hover {
  transform: translateY(-6px);
  box-shadow:
    0 50px 100px -25px rgba(0, 0, 0, 0.60),
    0 24px 48px -14px rgba(0, 0, 0, 0.34),
    0 0 0 1px rgba(255, 255, 255, 0.12);
}

/* ===== Stats ===== */
.stats { margin-top: -56px; position: relative; z-index: 2; }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: #fff; border-radius: var(--radius-lg);
  padding: 36px; box-shadow: var(--shadow-lg);
  gap: 16px;
  border: 1px solid rgba(255,255,255,0.5);
}
.stat { text-align: center; padding: 10px; position: relative; }
.stat:not(:last-child)::after {
  content: ""; position: absolute; right: 0; top: 20%; bottom: 20%;
  width: 1px; background: var(--line);
}
.stat-num {
  font-family: var(--font-display); font-size: clamp(2rem, 3vw, 2.4rem);
  font-weight: 800; color: var(--primary); letter-spacing: -0.04em;
  display: inline-flex; align-items: baseline; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat-num em { color: var(--accent); font-style: normal; font-size: .7em; margin-left: 2px; }
.stat-label { color: var(--muted); font-size: .88rem; margin-top: 6px; }

/* ===== Section heads ===== */
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-head p { font-size: 1.05rem; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px; font-family: var(--font-sans);
}
.eyebrow::before {
  content: ""; width: 22px; height: 1px; background: var(--accent);
}
.eyebrow-light { color: #ffd166; }
.eyebrow-light::before { background: #ffd166; }
.section-head-light h2, .section-head-light p { color: #fff; }
.section-head-light p { color: rgba(255,255,255,0.8); }
.section-head h2 em { font-style: normal; color: var(--accent); font-weight: 800; }

/* ===== Services ===== */
.services { padding: 110px 0; }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.card {
  position: relative;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 30px 26px;
  transition: transform .6s var(--ease-out-expo), box-shadow .6s var(--ease-out-expo), border-color .35s var(--ease-out-quart);
  display: flex; flex-direction: column;
  overflow: hidden;
}
.card::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 3px; background: var(--accent);
  transform: scaleX(0); transform-origin: left center;
  transition: transform .7s var(--ease-out-expo);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.card:hover::after { transform: scaleX(1); }
.card-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 54px; height: 54px; border-radius: 14px; background: var(--primary-50); color: var(--primary);
  margin-bottom: 18px;
  transition: transform .6s var(--ease-out-expo);
}
.card:hover .card-icon { transform: rotate(-6deg) scale(1.06); }
.card h3 { margin-bottom: 6px; font-size: 1.2rem; }
.card p { font-size: .95rem; flex: 1; }
.price { margin: 14px 0 20px; }
.price-from { display: block; font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 2px; }
.price strong { font-family: var(--font-display); font-size: 1.7rem; color: var(--text); font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.card-featured { background: linear-gradient(160deg, var(--primary) 0%, #14517f 100%); color: #fff; border-color: transparent; }
.card-featured::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 16px 16px; opacity: .5; pointer-events: none;
}
.card-featured h3, .card-featured .price strong { color: #fff; }
.card-featured p { color: rgba(255,255,255,0.85); }
.card-featured .card-icon { background: rgba(255,255,255,0.14); color: #fff; }
.card-featured .price-from { color: rgba(255,255,255,0.7); }
.card-tag {
  position: absolute; top: 16px; right: 16px;
  background: var(--accent); color: #fff; font-size: .68rem; font-weight: 700;
  padding: 4px 10px; border-radius: 999px; letter-spacing: .08em; text-transform: uppercase;
}

/* ===== Features ===== */
.features { padding: 110px 0; background: var(--bg-soft); position: relative; }
.features-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.check-list { margin: 22px 0 30px; display: grid; gap: 12px; }
.check-list li {
  display: flex; gap: 12px; align-items: flex-start; color: var(--text); font-size: .98rem;
}
.check-list li::before {
  content: ""; flex: 0 0 22px; height: 22px; margin-top: 2px;
  border-radius: 8px; background: var(--primary-50);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M20 6L9 17l-5-5' stroke='%231aa257' stroke-width='3' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat; background-position: center; background-size: 14px;
}

/* Mapa Brasil */
.features-art { display: flex; justify-content: center; }
.map-frame {
  width: 100%; max-width: 460px;
  background: #fff; border: 1px solid var(--line); border-radius: 24px;
  padding: 22px 22px 18px;
  box-shadow: var(--shadow-md);
  position: relative;
}
.map-frame::before {
  content: ""; position: absolute; top: 14px; left: 22px;
  display: flex; gap: 6px;
  width: 36px; height: 8px;
  background:
    radial-gradient(circle at 4px 4px, #ff5f57 3.5px, transparent 4px),
    radial-gradient(circle at 16px 4px, #febc2e 3.5px, transparent 4px),
    radial-gradient(circle at 28px 4px, #28c840 3.5px, transparent 4px);
}
.map-svg { width: 100%; height: auto; margin-top: 18px; }
.map-shape { transition: fill .4s var(--ease-out-quart); }
.route {
  stroke-dashoffset: 220;
  animation: dash 6s var(--ease-in-out-quart) infinite;
}
.route-2 { animation-duration: 8s; animation-delay: .8s; }
.route-3 { animation-duration: 7s; animation-delay: 1.6s; }
@keyframes dash {
  0% { stroke-dashoffset: 220; }
  50% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -220; }
}
.city circle:last-child { transform-origin: center; animation: cityPulse 3.2s var(--ease-in-out-quart) infinite; }
.city:nth-child(odd) circle:last-child { animation-delay: .8s; }
.city:nth-child(3n) circle:last-child { animation-delay: 1.6s; }
@keyframes cityPulse {
  0%, 100% { transform: scale(1); opacity: .15; }
  50% { transform: scale(1.6); opacity: 0; }
}
.moving-truck {
  offset-path: path("M150 110 C 200 140, 240 170, 260 220 S 200 320, 180 380");
  offset-rotate: 0deg;
  animation: drive 9s var(--ease-in-out-quart) infinite;
}
@keyframes drive {
  0%, 100% { offset-distance: 0%; }
  50% { offset-distance: 100%; }
}

.map-legend {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: 10px; padding-top: 16px; border-top: 1px solid var(--line);
  font-size: .82rem;
}
.legend-row { display: inline-flex; align-items: center; gap: 8px; color: var(--text); font-weight: 500; }
.legend-row-muted { color: var(--muted); font-weight: 400; }
.legend-dot { width: 8px; height: 8px; border-radius: 50%; }
.legend-dot-live { background: var(--accent); box-shadow: 0 0 0 3px rgba(255,138,0,0.18); }
.legend-dot-stop { background: var(--primary); }

/* ===== Track section ===== */
.track-section {
  background: linear-gradient(135deg, var(--primary-700), var(--primary));
  color: #fff; padding: 100px 0; position: relative; overflow: hidden;
}
.track-section::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 28px 28px; opacity: .4; pointer-events: none;
}
.track-inner { position: relative; }
.track-form-lg { max-width: 640px; margin: 0 auto; padding: 10px; }
.track-form-lg input { padding: 18px 18px; font-size: 1.05rem; }
.track-form-lg .btn { padding: 16px 28px; font-size: 1rem; }
#trackError { display: block; max-width: 640px; margin: 12px auto 0; text-align: center; }
.track-result {
  max-width: 640px; margin: 24px auto 0; background: #fff; color: var(--text);
  border-radius: 16px; padding: 26px 28px; box-shadow: var(--shadow-md);
  transform: translateY(8px); opacity: 0;
  transition: opacity .55s var(--ease-out-expo), transform .55s var(--ease-out-expo);
}
.track-result.is-visible { opacity: 1; transform: translateY(0); }
.track-result.is-visible.is-hidden { opacity: 0; }

/* Cartão de resultado do CPF */
.rc-header {
  display: flex; gap: 14px; align-items: center; padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.rc-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: rgba(26,162,87,0.12); color: var(--success);
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.rc-eyebrow { font-size: .72rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); font-weight: 600; }
.rc-name { display: block; font-family: var(--font-display); font-size: 1.25rem; color: var(--text); margin-top: 2px; }
.rc-body { padding: 18px 0; display: grid; gap: 10px; }
.rc-row { display: grid; grid-template-columns: 110px 1fr; gap: 12px; font-size: .95rem; align-items: baseline; }
.rc-row span { color: var(--muted); font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.rc-row strong { color: var(--text); font-weight: 500; }
.rc-delivery {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 16px; background: var(--bg-soft); border-radius: 12px; margin-top: 8px;
}
.rc-delivery-dot {
  width: 10px; height: 10px; border-radius: 50%; background: var(--accent);
  margin-top: 6px; flex-shrink: 0;
  box-shadow: 0 0 0 0 rgba(255,138,0,0.5);
  animation: pulse 2.4s var(--ease-in-out-quart) infinite;
}
.rc-delivery strong { display: block; font-size: .95rem; color: var(--text); margin-bottom: 2px; }
.rc-delivery span { color: var(--muted); font-size: .88rem; }

.rc-empty { display: flex; gap: 14px; align-items: center; }
.rc-empty-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--error-soft); color: var(--error);
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.rc-empty strong { display: block; color: var(--text); font-size: 1rem; margin-bottom: 2px; }
.rc-empty span { color: var(--muted); font-size: .9rem; }

.rc-loading { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .95rem; }

/* =====================================================
   Card de Pedido / Linha do tempo
   ===================================================== */
.track-result:has(.rt-pedido) { padding: 0; background: transparent; box-shadow: none; }
.track-result .rt-pedido + .rt-pedido { margin-top: 20px; }

.rt-pedido {
  background: #fff; color: var(--text);
  border-radius: 16px; box-shadow: var(--shadow-md);
  padding: 26px 28px;
  text-align: left;
}

.rt-pedido-header {
  display: flex; align-items: center; gap: 12px;
  padding-bottom: 18px; margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.rt-pedido-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--primary-50); color: var(--primary);
  flex-shrink: 0;
}
.rt-pedido-header h4 {
  margin: 0; font-family: var(--font-sans); font-size: 1.02rem;
  color: var(--text); font-weight: 500; letter-spacing: 0;
}
.rt-pedido-header h4 strong { color: var(--primary); font-weight: 700; letter-spacing: .02em; }

.rt-info {
  background: var(--bg-soft); border-radius: 12px;
  padding: 18px 20px; margin-bottom: 22px;
}
.rt-info-row { font-size: .95rem; line-height: 1.6; margin-bottom: 6px; color: var(--muted); }
.rt-info-row:last-of-type { margin-bottom: 0; }
.rt-info-row span { color: var(--text); font-weight: 600; }
.rt-info-row strong { color: var(--text); font-weight: 500; }

.rt-objetos {
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  padding: 14px 16px; margin-top: 14px;
}
.rt-objetos > header {
  display: flex; align-items: center; gap: 6px;
  font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700;
  color: var(--muted); margin-bottom: 10px;
}
.rt-obj-row { display: flex; align-items: center; gap: 10px; font-size: .92rem; padding: 4px 0; }
.rt-qtd {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(10,61,98,0.08); color: var(--primary);
  font-size: .75rem; font-weight: 600;
  padding: 3px 10px; border-radius: 999px;
  flex-shrink: 0;
}
.rt-qtd::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--primary);
}
.rt-obj-desc { color: var(--text); font-weight: 500; }
.rt-obj-desc em { color: var(--muted); font-style: normal; font-weight: 400; margin-left: 4px; }

/* Linha do tempo vertical */
.rt-timeline {
  list-style: none; padding: 0; margin: 0;
  position: relative;
}
.rt-step {
  position: relative;
  display: grid; grid-template-columns: 44px 1fr;
  gap: 14px; align-items: flex-start;
  padding: 6px 0 22px;
}
.rt-step:last-child { padding-bottom: 0; }
.rt-step::before {
  content: ""; position: absolute;
  left: 21px; top: 44px; bottom: -6px;
  width: 2px; background: rgba(26,162,87,0.25);
  border-radius: 2px;
}
.rt-step:last-child::before { display: none; }
.rt-step-icon {
  width: 44px; height: 44px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(26,162,87,0.14); color: var(--success);
  flex-shrink: 0;
  transition: transform .5s var(--ease-out-expo);
}
.rt-step:hover .rt-step-icon { transform: scale(1.05); }
.rt-step-final .rt-step-icon {
  background: var(--success); color: #fff;
  box-shadow: 0 0 0 0 rgba(26,162,87,0.45);
  animation: pulseFinal 2.4s var(--ease-in-out-quart) infinite;
}
@keyframes pulseFinal {
  0%, 100% { box-shadow: 0 0 0 0 rgba(26,162,87,0.45); }
  50% { box-shadow: 0 0 0 10px rgba(26,162,87,0); }
}
.rt-step-body { padding-top: 4px; }
.rt-step-body strong {
  display: block; color: var(--success); font-size: 1rem;
  font-weight: 700; letter-spacing: -0.005em;
}
.rt-step-body span {
  display: block; color: var(--muted); font-size: .88rem; margin-top: 2px;
}
.rt-step-body time {
  display: block; color: #94a3b8; font-size: .78rem;
  margin-top: 4px; font-variant-numeric: tabular-nums;
}
.rt-step-empty .rt-step-icon { background: var(--bg-soft); color: var(--muted); }
.rt-step-empty .rt-step-body strong { color: var(--text); }

/* =====================================================
   Banner de pendência (IPI, documentação, etc)
   ===================================================== */
.rt-pedido.has-pendencia {
  border: 1px solid rgba(210,58,58,0.18);
  box-shadow: 0 0 0 4px rgba(210,58,58,0.05), var(--shadow-md);
}

.rt-pendencia {
  margin-top: 22px; padding: 22px 24px;
  background: linear-gradient(180deg, #fff7f7 0%, #fef0f0 100%);
  border: 1px solid rgba(210,58,58,0.18);
  border-left: 4px solid var(--error);
  border-radius: 14px;
  position: relative;
  animation: slideIn .6s var(--ease-out-expo);
  text-align: left;
}
.rt-pendencia-header {
  display: flex; gap: 14px; align-items: flex-start;
  margin-bottom: 12px;
}
.rt-pendencia-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 12px;
  background: var(--error); color: #fff;
  flex-shrink: 0;
  box-shadow: 0 6px 18px rgba(210,58,58,0.30);
  animation: pulseFinal 2.4s var(--ease-in-out-quart) infinite;
}
.rt-pendencia-eyebrow {
  display: inline-block; font-size: .68rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--error);
  margin-bottom: 2px;
}
.rt-pendencia-header strong {
  display: block;
  font-family: var(--font-display); font-size: 1.15rem;
  color: #6b1d1d; font-weight: 700; letter-spacing: -0.01em;
  line-height: 1.25;
}
.rt-pendencia-desc {
  color: #5b3535; font-size: .95rem; margin: 4px 0 14px;
  line-height: 1.55;
}
.rt-pendencia-meta {
  display: flex; gap: 24px; flex-wrap: wrap;
  padding: 12px 16px; background: rgba(255,255,255,0.7);
  border: 1px solid rgba(210,58,58,0.14); border-radius: 10px;
  margin-bottom: 14px;
}
.rt-pendencia-meta > div { display: flex; flex-direction: column; gap: 2px; }
.rt-pendencia-meta span {
  font-size: .72rem; text-transform: uppercase; letter-spacing: .1em;
  font-weight: 600; color: var(--muted);
}
.rt-pendencia-meta strong {
  font-family: var(--font-display); font-size: 1.15rem; color: var(--text);
  font-weight: 700; letter-spacing: -0.01em;
}

.rt-pendencia-figura {
  margin: 0 0 16px; padding: 0;
  border: 1px solid rgba(210,58,58,0.14); border-radius: 12px;
  overflow: hidden; background: #fff;
}
.rt-pendencia-figura img {
  display: block; width: 100%; height: auto;
  max-height: 360px; object-fit: cover;
  transition: transform .8s var(--ease-out-expo);
}
.rt-pendencia-figura:hover img { transform: scale(1.02); }
.rt-pendencia-figura figcaption {
  padding: 10px 14px; font-size: .82rem; color: var(--muted);
  background: var(--bg-soft); border-top: 1px solid var(--line);
}

.rt-pendencia-cta {
  display: flex; gap: 10px; flex-wrap: wrap;
}
.rt-pendencia-cta .btn { font-size: .92rem; padding: 11px 18px; }
.rt-pendencia-cta .btn-outline { background: #fff; border-color: rgba(210,58,58,0.25); color: var(--error); }
.rt-pendencia-cta .btn-outline:hover { background: rgba(210,58,58,0.06); border-color: var(--error); }

@media (max-width: 640px) {
  .rt-pendencia { padding: 18px; }
  .rt-pendencia-meta { gap: 16px; }
  .rt-pendencia-cta .btn { width: 100%; }
}

.rc-spinner, .btn-spinner {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2.5px solid rgba(10,61,98,0.18); border-top-color: var(--primary);
  animation: spin .9s linear infinite;
}
.btn-spinner { border-color: rgba(255,255,255,0.35); border-top-color: #fff; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn-spinner[hidden] { display: none; }
.btn-label[hidden] { display: none; }

/* ===== Contact ===== */
.contact { padding: 110px 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contact-list { display: grid; gap: 18px; margin: 26px 0 30px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list strong { display: block; font-size: .9rem; color: var(--text); margin-bottom: 2px; font-family: var(--font-sans); }
.contact-list a, .contact-list span { color: var(--muted); font-size: .95rem; }
.contact-list a { transition: color .3s var(--ease-out-quart); }
.contact-list a:hover { color: var(--primary); }
.ci-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; background: var(--primary-50); color: var(--primary);
  border-radius: 12px; flex-shrink: 0;
}
.contact-ctas { display: flex; gap: 12px; flex-wrap: wrap; }

.contact-form {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 34px; box-shadow: var(--shadow-sm);
}
.contact-form h3 { font-size: 1.35rem; margin-bottom: 22px; }

/* Field validation */
.field { display: block; margin-bottom: 14px; }
.field > span {
  display: block; font-size: .85rem; font-weight: 600; margin-bottom: 6px; color: var(--text);
}
.field > span em { color: var(--accent); font-style: normal; }
.field input, .field textarea, .contact-form textarea {
  width: 100%; padding: 13px 14px; border: 1.5px solid var(--line); border-radius: 10px;
  font: inherit; font-family: var(--font-sans); color: var(--text); background: #fff;
  transition: border-color .35s var(--ease-out-quart), box-shadow .35s var(--ease-out-quart), background-color .35s var(--ease-out-quart);
}
.field input::placeholder, .contact-form textarea::placeholder { color: #94a3b8; }
.field input:focus, .field textarea:focus, .contact-form textarea:focus {
  outline: 0; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(10,61,98,0.10);
}
.field.is-valid input { border-color: rgba(26,162,87,0.6); }
.field.is-invalid input, .field.is-invalid textarea {
  border-color: var(--error); background: var(--error-soft);
}
.field.is-invalid input:focus { box-shadow: 0 0 0 4px rgba(210,58,58,0.12); }
.field-error {
  display: block; min-height: 0; max-height: 0; overflow: hidden;
  font-size: .82rem; color: var(--error); margin-top: 0;
  transition: max-height .4s var(--ease-out-quart), margin-top .4s var(--ease-out-quart), opacity .35s var(--ease-out-quart);
  opacity: 0;
}
.field.is-invalid .field-error {
  max-height: 40px; margin-top: 6px; opacity: 1;
}
.field.is-invalid input { animation: shake .5s var(--ease-in-out-quart); }

.contact-form textarea { resize: vertical; min-height: 110px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-feedback {
  margin: 16px 0 0; padding: 12px 16px; border-radius: 10px;
  background: #e6f9ee; color: #117a40; font-size: .92rem; border: 1px solid rgba(26,162,87,0.25);
  display: flex; align-items: center; gap: 10px;
  animation: slideIn .55s var(--ease-out-expo);
}
.form-feedback[hidden] { display: none; }
.track-result[hidden] { display: none; }
.form-feedback::before {
  content: ""; width: 18px; height: 18px; border-radius: 50%;
  background: var(--success);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M20 6L9 17l-5-5' stroke='white' stroke-width='3.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat; background-position: center; background-size: 12px;
  flex-shrink: 0;
}
@keyframes slideIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== Footer ===== */
.site-footer { background: var(--primary-700); color: rgba(255,255,255,0.82); padding: 80px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 48px; padding-bottom: 56px; }
.footer-col h4 { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.footer-col ul { display: grid; gap: 10px; }
.footer-col a { font-size: .92rem; opacity: .78; transition: opacity .3s var(--ease-out-quart), color .3s var(--ease-out-quart); }
.footer-col a:hover { opacity: 1; color: var(--accent); }
.footer-brand p { color: rgba(255,255,255,0.7); margin-top: 16px; max-width: 320px; font-size: .92rem; }

.newsletter { display: flex; gap: 8px; margin-top: 12px; }
.newsletter input {
  flex: 1; padding: 12px 14px; border: 1.5px solid rgba(255,255,255,0.16); border-radius: 10px;
  background: rgba(255,255,255,0.06); color: #fff; font: inherit;
  transition: border-color .35s var(--ease-out-quart), background-color .35s var(--ease-out-quart);
}
.newsletter input::placeholder { color: rgba(255,255,255,0.5); }
.newsletter input:focus { outline: 0; border-color: var(--accent); background: rgba(255,255,255,0.10); }
.newsletter input.is-invalid { border-color: #ff7676; background: rgba(255,118,118,0.10); }
.newsletter .btn { padding: 12px 18px; font-size: .9rem; }

.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  padding: 22px 24px; border-top: 1px solid rgba(255,255,255,0.1);
  font-size: .85rem; color: rgba(255,255,255,0.6);
}

/* =====================================================
   Modal de pagamento (IPI Pix)
   ===================================================== */
.modal-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(8, 15, 28, 0.55);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  opacity: 0;
  transition: opacity .28s var(--ease-out-quart);
}
.modal-overlay.is-open { opacity: 1; }

.modal-dialog {
  position: relative;
  background: #fff; color: var(--text);
  border-radius: 18px;
  box-shadow: 0 30px 80px rgba(8, 15, 28, 0.32);
  width: 100%; max-width: 480px;
  padding: 30px 30px 28px;
  transform: translateY(20px) scale(0.96);
  transition: transform .42s var(--ease-out-expo);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
}
.modal-overlay.is-open .modal-dialog { transform: translateY(0) scale(1); }

.modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 34px; height: 34px; border-radius: 50%;
  border: 0; background: transparent; color: var(--muted);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background .25s var(--ease-out-quart), color .25s var(--ease-out-quart);
}
.modal-close:hover { background: var(--bg-soft); color: var(--text); }

.modal-title {
  font-family: var(--font-display); font-size: 1.3rem;
  font-weight: 800; letter-spacing: -0.02em;
  color: var(--text); margin: 0 0 8px; padding-right: 36px;
}
.modal-desc {
  font-size: .95rem; color: var(--muted);
  margin: 0 0 18px; line-height: 1.55;
}

.modal-objetos {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 18px;
}
.modal-objetos > header {
  display: flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 700;
  letter-spacing: .04em; text-transform: none;
  color: var(--text); margin-bottom: 10px;
}
.modal-objeto-item {
  font-size: .92rem; color: var(--text);
  padding: 4px 0;
  font-weight: 500;
}
.modal-objeto-item em { color: var(--muted); font-style: normal; font-weight: 400; margin-left: 2px; }

.modal-valor {
  font-size: 1rem; font-weight: 700;
  color: var(--error);
  margin: 0 0 18px;
}
.modal-valor strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.modal-info, .modal-warning {
  font-size: .9rem; color: var(--muted);
  margin: 0 0 12px; line-height: 1.55;
}
.modal-warning { color: #b04646; }

.modal-cta {
  margin-top: 6px;
  padding: 14px 22px;
  font-size: 1rem; font-weight: 700;
  letter-spacing: -0.005em;
  box-shadow: 0 12px 28px rgba(255, 138, 0, 0.32);
}
.modal-cta:disabled { box-shadow: none; }

/* QR code + copia-e-cola */
.modal-pix {
  margin-top: 18px; padding-top: 18px;
  border-top: 1px dashed var(--line);
  animation: slideIn .55s var(--ease-out-expo);
}
.modal-pix-status {
  display: flex; align-items: center; gap: 10px;
  background: rgba(255, 138, 0, 0.10);
  color: #a65500;
  font-size: .9rem; font-weight: 600;
  padding: 10px 14px; border-radius: 10px;
  margin-bottom: 16px;
}
.modal-pix-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(255,138,0,0.5);
  animation: pulse 1.6s var(--ease-in-out-quart) infinite;
  flex-shrink: 0;
}
.modal-pix-qr {
  display: flex; justify-content: center; padding: 14px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  margin-bottom: 16px;
}
.modal-pix-qr img {
  width: 220px; height: 220px; object-fit: contain;
  image-rendering: pixelated;
}
.modal-pix-label {
  display: block; font-size: .72rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 6px;
}
.modal-pix-copy { display: flex; gap: 8px; margin-bottom: 14px; }
.modal-pix-copy input {
  flex: 1; min-width: 0;
  padding: 11px 12px; border: 1.5px solid var(--line); border-radius: 10px;
  font: inherit; font-family: 'SF Mono', Menlo, Consolas, monospace;
  font-size: .82rem; color: var(--text); background: var(--bg-soft);
  letter-spacing: -0.01em;
}
.modal-pix-copy input:focus { outline: 0; border-color: var(--primary); }
.modal-pix-copy .btn { padding: 11px 18px; font-size: .9rem; }
.modal-pix-hint { font-size: .85rem; color: var(--muted); margin: 0; line-height: 1.5; }

/* Estado de sucesso */
.modal-success {
  text-align: center; padding: 24px 12px;
  animation: slideIn .6s var(--ease-out-expo);
}
.modal-success-icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--success); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
  box-shadow: 0 0 0 6px rgba(26,162,87,0.18);
  animation: successPop .6s var(--ease-out-expo);
}
@keyframes successPop {
  0% { transform: scale(0.5); opacity: 0; }
  60% { transform: scale(1.08); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}
.modal-success h3 {
  font-family: var(--font-display); font-size: 1.35rem; font-weight: 800;
  margin: 0 0 6px; letter-spacing: -0.02em;
}
.modal-success p { color: var(--muted); margin: 0; }

@media (max-width: 480px) {
  .modal-overlay { padding: 0; align-items: flex-end; }
  .modal-dialog {
    border-radius: 18px 18px 0 0;
    max-height: 92vh;
    transform: translateY(100%);
    padding: 26px 22px 24px;
  }
  .modal-overlay.is-open .modal-dialog { transform: translateY(0); }
  .modal-pix-qr img { width: 180px; height: 180px; }
}

/* ===== Floating WhatsApp ===== */
.whatsapp-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 32px rgba(37,211,102,0.45);
  transition: transform .5s var(--ease-out-expo);
}
.whatsapp-float::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 2px solid rgba(37,211,102,0.4);
  animation: ringPulse 2.4s var(--ease-in-out-quart) infinite;
}
@keyframes ringPulse {
  0% { transform: scale(1); opacity: .8; }
  100% { transform: scale(1.5); opacity: 0; }
}
.whatsapp-float:hover { transform: scale(1.08); }

/* ===== Reveal animation (controlled by JS) ===== */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity .9s var(--ease-out-expo), transform .9s var(--ease-out-expo);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .08s; }
.reveal-delay-2 { transition-delay: .16s; }
.reveal-delay-3 { transition-delay: .24s; }
.reveal-delay-4 { transition-delay: .32s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .moving-truck, .route, .city circle:last-child, .badge::before, .whatsapp-float::after { animation: none; }
  html { scroll-behavior: auto; }
}

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 380px; margin: 0 auto; }
  .hero-foto { max-width: 320px; border-radius: 20px; }
  .features-grid, .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2)::after { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .site-nav, .header-cta { display: none; }
  .menu-toggle { display: inline-flex; }
  .site-nav.is-open {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; top: 72px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 16px 24px;
  }
  .site-nav.is-open a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .site-nav.is-open a::after { display: none; }
  .hero { padding: 72px 0 96px; }
  .hero-foto { max-width: 260px; border-radius: 18px;
    box-shadow: 0 24px 50px -16px rgba(0,0,0,0.55), 0 12px 24px -10px rgba(0,0,0,0.30);
  }
  .stats-grid, .cards { grid-template-columns: 1fr; }
  .stat::after { display: none; }
  .row-2 { grid-template-columns: 1fr; }
  .services, .features, .contact, .track-section { padding: 72px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .track-form { flex-direction: column; padding: 12px; }
  .track-form .btn { width: 100%; }
}
