/* =============================================================================
   Global Nortyx — site.css · Direção C "Painel de Rotas"
   Mobile-first. Tokens da direção + layout de todas as seções.
   Os componentes de motion (reveal, rota, estrada, progresso, WhatsApp flutuante,
   estados do form) vivem em motion.css; aqui só sobrescrevemos as variáveis deles.
   ============================================================================= */

/* ---------- Fonte (self-host, subset latin, variável 200–800) ---------- */
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */
:root {
  --c-panel: #030814;
  --c-panel-deep: #020611;
  --c-panel-warm: #07101f;
  --c-card: #050c1c;
  --c-grid: #0e2347;
  --c-line: #1b3a6b;
  --c-line-strong: #2e4a7a;
  --c-amber: #f2c063;
  --c-amber-hot: #ffd27a;
  --c-gps: #2e8bff;
  --c-label: #9fb3d1;
  --c-text: #eaf0fa;
  --c-text-2: #c9d6ea;
  --c-placeholder: #8396b5;
  --c-warm-text: #f6efe2;
  --c-warm-body: #e6dcc8;
  --c-warm-label: #d9c9a8;

  --font-display: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: var(--font-body); /* rótulos: mesma família, peso 600–700 */

  --r-sm: 14px;
  --r-card: 22px;
  --r-lg: 32px;
  --r-pill: 999px;
  --glass-bg: rgba(12, 26, 54, 0.5);
  --glass-border: rgba(159, 179, 209, 0.16);
  --glass-shadow: 0 24px 60px -32px rgba(0, 0, 0, 0.85);

  --fs-display: clamp(2.25rem, 1.1rem + 4.6vw, 5rem);
  --fs-h2: clamp(2.125rem, 1.35rem + 3.1vw, 4rem);
  --fs-quote: clamp(2.125rem, 1.2rem + 3.6vw, 4.75rem);
  --fs-h3: clamp(1.5rem, 1.25rem + 0.9vw, 2rem);
  --fs-lead: clamp(1.0625rem, 0.95rem + 0.5vw, 1.375rem);
  --fs-body: clamp(1rem, 0.95rem + 0.2vw, 1.125rem);
  --fs-mono: 0.875rem;

  --gutter: 20px;
  --maxw: 1280px;
  --section-y: 88px;
  --strip-h: 0px;
  --nav-h: 68px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* variáveis de motion.css */
  --bg: var(--c-panel);
  --fg: var(--c-text);
  --focus-ring: var(--c-gps);
  --route-color: var(--c-amber);
  --route-glow: rgba(242, 192, 99, 0.2);
  --route-base: rgba(46, 139, 255, 0.45);
  --route-road: rgba(14, 35, 71, 0.45);
  --route-width: 2px;
  --route-road-width: 14px;
  --route-dash: 8;
  --route-gap: 9;
  --checkpoint-color: var(--c-line-strong);
  --checkpoint-active: var(--c-amber);
  --checkpoint-glow: rgba(242, 192, 99, 0.45);
  --truck-body: #0f2147;
  --truck-cab: var(--c-gps);
  --truck-cab-roof: #5aa6ff;
  --truck-accent: var(--c-amber);
  --truck-font: var(--font-body);
  --road-height: 120px;
  --road-lane-height: 50px;
  --road-asphalt: #030814;
  --road-asphalt-top: #08142b;
  --road-edge: rgba(242, 192, 99, 0.6);
  --road-line: rgba(159, 179, 209, 0.7);
  --road-truck-width: clamp(150px, 24vw, 260px);
  --progress-height: 4px;
  --progress-from: #c9962f;
  --progress-to: var(--c-amber);
  --progress-track: rgba(3, 8, 20, 0.85);
  --wa-bg: var(--c-amber);
  --wa-fg: var(--c-panel);
  --wa-shadow: rgba(242, 192, 99, 0.5);
  --error-color: #ff9b8a;
  --success-color: #86e3ad;
}
@media (min-width: 48em) {
  :root { --gutter: 40px; --section-y: 112px; }
}
@media (min-width: 64em) {
  :root { --gutter: 64px; --section-y: 140px; --nav-h: 92px; }
}
@media (min-width: 90em) {
  :root { --gutter: 80px; }
}

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

html {
  background-color: var(--c-panel);
  color: var(--c-text);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--nav-h) + 8px);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: clip;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  background: transparent;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
/* grade técnica fixa (80px desktop / 40px mobile) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(46, 139, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(46, 139, 255, 0.07) 1px, transparent 1px);
  background-size: 40px 40px;
}
@media (min-width: 48em) {
  body::before { background-size: 80px 80px; }
}

img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul, ol, figure, address { margin: 0; }
ul, ol { padding: 0; list-style: none; }
address { font-style: normal; }
em { font-style: normal; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }

::selection { background: var(--c-amber); color: var(--c-panel); }

:focus-visible {
  outline: 2px solid var(--c-gps);
  outline-offset: 3px;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 2000;
  padding: 12px 20px;
  border-radius: var(--r-pill);
  background: var(--c-amber);
  color: var(--c-panel);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--fs-mono);
  letter-spacing: 0.06em;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease);
}
.skip-link:focus { transform: none; }

.wrap {
  width: 100%;
  max-width: calc(var(--maxw) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Utilitários de tipo ---------- */
.mono-label {
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-label);
}
.amber { color: var(--c-amber); }
.accent { color: var(--c-amber); }

.h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--fs-h2);
  line-height: 1.04;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--fs-h3);
  line-height: 1.15;
  letter-spacing: -0.025em;
}
.lead {
  font-size: var(--fs-lead);
  line-height: 1.5;
  color: var(--c-text-2);
}

.icon { width: 18px; height: 18px; flex: none; }
.icon--lg { width: 22px; height: 22px; }
.accent-icon { color: var(--c-amber); }

/* section label: 01 ──── NOME */
.section-label {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-label);
}
.section-label__n { color: var(--c-label); transition: color 0.4s ease; }
.section-label__line {
  width: 40px;
  height: 2px;
  border-radius: 2px;
  background: var(--c-line-strong);
  transition: background-color 0.4s ease, width 0.6s var(--ease);
}
/* acende quando o caminhão da rota alcança a seção (route-motion) */
.section-label[data-route-light] { color: var(--c-label); border-color: transparent; }
[data-route-stop].is-route-reached .section-label[data-route-light] { color: var(--c-label); }
[data-route-stop].is-route-reached .section-label__n,
.story .section-label__n,
.no-route .section-label__n,
html:not(.js) .section-label__n { color: var(--c-amber); }
[data-route-stop].is-route-reached .section-label__line,
.story .section-label__line,
html:not(.js) .section-label__line { background: var(--c-amber); width: 56px; }

/* pills / status */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border: 1px solid rgba(242, 192, 99, 0.55);
  border-radius: var(--r-pill);
  background: rgba(242, 192, 99, 0.08);
  color: var(--c-amber);
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.pill__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
  animation: gn-blink 2.4s ease-in-out infinite;
}
.pill--gps { border-color: rgba(46, 139, 255, 0.6); background: rgba(46, 139, 255, 0.1); color: #8fc0ff; }
.pill.is-ready { border-color: var(--c-amber); color: var(--c-amber); }
@keyframes gn-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}


/* ---------- Botões ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 54px;
  padding: 14px 28px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.005em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s var(--ease), box-shadow 0.3s ease;
}
.btn--primary { background: var(--c-amber); color: var(--c-panel); }
.btn--primary { box-shadow: 0 10px 30px -14px rgba(242, 192, 99, 0.65); }
.btn--primary:hover { background: var(--c-amber-hot); transform: translateY(-2px); box-shadow: 0 0 0 5px rgba(242, 192, 99, 0.16), 0 16px 36px -14px rgba(242, 192, 99, 0.8); }
.btn--ghost { border-color: var(--glass-border); color: var(--c-text); background: var(--glass-bg); }
@supports (backdrop-filter: blur(10px)) {
  .btn--ghost { backdrop-filter: blur(10px); }
}
.btn--ghost:hover { border-color: rgba(242, 192, 99, 0.6); transform: translateY(-2px); box-shadow: 0 12px 30px -16px rgba(242, 192, 99, 0.5); }
.btn .icon { transition: transform 0.25s var(--ease); }
.btn:hover .icon use[href="#i-arrow-right"] { transform: translateX(3px); }
.btn--sm { min-height: 48px; padding: 12px 22px; font-size: 0.9375rem; }
.btn--block { width: 100%; min-height: 64px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Painéis de vidro arredondados ---------- */
.hud {
  position: relative;
  border: 1px solid var(--glass-border);
  border-radius: var(--r-card);
  background: var(--glass-bg);
  box-shadow: var(--glass-shadow);
}
@supports (backdrop-filter: blur(14px)) {
  .hud { background: rgba(12, 26, 54, 0.42); backdrop-filter: blur(14px); }
}

/* =============================================================================
   HEADER
   ============================================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 800;
  background: rgba(3, 8, 20, 0.86);
  border-bottom: 1px solid var(--c-grid);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
@supports (backdrop-filter: blur(12px)) {
  .site-header { background: rgba(3, 8, 20, 0.72); backdrop-filter: blur(12px); }
}
.site-header.is-scrolled { box-shadow: 0 12px 30px -18px rgba(0, 0, 0, 0.9); }

.led {
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: var(--c-amber);
  box-shadow: 0 0 8px var(--c-amber);
  animation: gn-blink 2.4s ease-in-out infinite;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: var(--nav-h);
  width: 100%;
  max-width: calc(var(--maxw) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.brand { display: block; flex: none; }
.brand img { width: 70px; height: auto; }
@media (min-width: 64em) {
  .brand img { width: 94px; }
}

.menu-toggle {
  display: none;
  position: relative;
  width: 48px;
  height: 48px;
  flex: none;
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  background: var(--glass-bg);
  cursor: pointer;
}
.js .menu-toggle { display: block; }
@media (min-width: 64em) {
  .js .menu-toggle { display: none; }
}
.menu-toggle__bars,
.menu-toggle__bars::before,
.menu-toggle__bars::after {
  position: absolute;
  left: 13px;
  width: 20px;
  border-radius: 2px;
  height: 2px;
  background: var(--c-text);
  transition: transform 0.3s var(--ease), opacity 0.2s ease;
}
.menu-toggle__bars { top: 22px; }
.menu-toggle__bars::before,
.menu-toggle__bars::after { content: ""; left: 0; }
.menu-toggle__bars::before { top: -7px; }
.menu-toggle__bars::after { top: 7px; width: 13px; background: var(--c-amber); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::after { width: 20px; transform: translateY(-7px) rotate(-45deg); }

/* nav mobile: sem JS vira uma linha rolável; com JS vira painel em tela cheia */
.site-nav__list {
  display: flex;
  gap: 4px;
}
.site-nav__list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: var(--r-pill);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--c-text-2);
  transition: color 0.2s ease, background-color 0.2s ease;
}
.site-nav__list a:hover { color: var(--c-text); background: rgba(159, 179, 209, 0.08); }
.site-nav__list a.is-current { color: var(--c-amber); background: rgba(242, 192, 99, 0.12); }

@media (max-width: 63.99em) {
  html:not(.js) .navbar { flex-wrap: wrap; height: auto; padding-block: 10px; }
  html:not(.js) .site-nav { width: 100%; overflow-x: auto; }
  html:not(.js) .site-nav__cta { display: none; }

  html.menu-open .site-header { backdrop-filter: none; background: var(--c-panel); }
  .navbar { position: relative; z-index: 795; }
  .brand,
  .menu-toggle { position: relative; z-index: 2; }
  .js .site-nav {
    position: fixed;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 32px;
    padding: calc(var(--strip-h) + var(--nav-h) + 24px) var(--gutter) max(32px, env(safe-area-inset-bottom));
    background: var(--c-panel);
    background-image:
      linear-gradient(rgba(46, 139, 255, 0.07) 1px, transparent 1px),
      linear-gradient(90deg, rgba(46, 139, 255, 0.07) 1px, transparent 1px);
    background-size: 40px 40px;
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-12px);
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0s linear 0.3s;
  }
  .js .site-nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0s;
  }
  .js .site-nav__list { flex-direction: column; gap: 0; }
  .js .site-nav__list li + li { margin-top: 4px; }
  .js .site-nav__list a {
    width: 100%;
    min-height: 64px;
    padding: 0 12px;
    border-radius: var(--r-sm);
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--c-text);
  }
  .js .site-nav__list li:nth-child(n) a::before {
    content: counter(navitem, decimal-leading-zero);
    counter-increment: navitem;
    width: 48px;
    font-family: var(--font-mono);
    font-size: var(--fs-mono);
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--c-amber);
  }
  .js .site-nav__list { counter-reset: navitem; }
  .js .site-nav__cta { width: 100%; min-height: 60px; }
  html.menu-open { overflow: hidden; }
}
@media (min-width: 64em) {
  .site-nav { display: flex; align-items: center; gap: clamp(20px, 3vw, 48px); flex: 1; justify-content: flex-end; }
  .site-nav__list { gap: clamp(4px, 1.2vw, 20px); margin-right: auto; margin-left: auto; }
}

/* =============================================================================
   HERO
   ============================================================================= */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.hero__top { position: relative; }
.hero__inner {
  position: relative;
  z-index: 2;
  padding-top: 40px;
}
.hero__copy { display: flex; flex-direction: column; gap: 22px; max-width: 640px; }
.eyebrow-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--fs-display);
  line-height: 1;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  color: var(--c-text);
}
.hero__title .accent { display: block; }
.hero__sub { font-size: var(--fs-lead); line-height: 1.5; color: var(--c-text-2); max-width: 34ch; }
.hero .btn-row .btn { flex: 1 1 220px; }

/* foto do caminhão: recorte numa moldura arredondada (mobile/tablet) */
.hero__media {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: calc(var(--maxw) + var(--gutter) * 2);
  margin: 36px auto 0;
  padding-inline: var(--gutter);
}
.hero__media picture {
  display: block;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid var(--glass-border);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(242, 192, 99, 0.05);
}
.hero__img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 1040px;
  aspect-ratio: 1040 / 850;
  object-fit: cover;
}
@media (min-width: 40em) and (max-width: 63.99em) {
  .hero__media picture { max-width: 640px; }
}

.telemetry {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 40px;
  border-top: 1px solid var(--c-line);
}
.telemetry__item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 16px 22px 0;
  border-bottom: 1px solid var(--c-grid);
}
.telemetry__item:nth-child(2n) { padding-left: 16px; border-left: 1px solid var(--c-grid); }
.telemetry__value {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.5rem + 1.6vw, 2.75rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.telemetry__arrow { width: 0.8em; height: 0.8em; color: var(--c-amber); }
.telemetry__label {
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--c-label);
}
.road-band { margin-top: 24px; }

/* desktop: caminhão à direita, nunca maior que a resolução nativa (1920×1080) */
@media (min-width: 64em) {
  .hero__top {
    display: flex;
    align-items: center;
    min-height: clamp(560px, calc(100svh - var(--nav-h) - 220px), 760px);
  }
  .hero__inner { padding-block: 72px; }
  .hero__copy { gap: 28px; }
  .hero .btn-row .btn { flex: 0 0 auto; }
  .hero__media {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    left: auto;
    width: min(68%, 1920px);
    max-width: none;
    max-height: 1080px;
    margin: 0;
    padding: 0;
  }
  .hero__media picture {
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 0 0 0 28px;
    box-shadow: none;
  }
  .hero__img {
    width: 100%;
    height: 100%;
    max-width: none;
    aspect-ratio: auto;
    object-position: 94% 48%;
  }
  /* escurece só o lado esquerdo (atrás do texto) e a borda inferior; o caminhão fica limpo */
  .hero__media::before,
  .hero__media::after {
    content: "";
    position: absolute;
    pointer-events: none;
  }
  .hero__media::before {
    top: 0;
    bottom: 0;
    left: -1px;
    width: 42%;
    background: linear-gradient(90deg, var(--c-panel) 0%, rgba(3, 8, 20, 0.7) 45%, rgba(3, 8, 20, 0) 100%);
  }
  .hero__media::after {
    left: 0;
    right: 0;
    bottom: -1px;
    height: 16%;
    background: linear-gradient(180deg, rgba(3, 8, 20, 0) 0%, var(--c-panel) 100%);
  }
  .telemetry { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 32px; }
  .telemetry__item { padding: 24px 24px 28px; border-bottom: 0; border-left: 1px solid var(--c-grid); }
  .telemetry__item:first-child { padding-left: 0; border-left: 0; }
  .telemetry__item:nth-child(2n) { padding-left: 24px; }
}

/* =============================================================================
   CENA FIXADA — DA ORIGEM AO DESTINO (scrollytelling)
   Sem JS ou com movimento reduzido: vira uma seção comum com a lista de etapas.
   ============================================================================= */
.story { position: relative; border-top: 1px solid var(--c-grid); }
.story__sticky {
  position: relative;
  overflow: hidden;
  padding-block: var(--section-y);
}
.story__bg { position: absolute; inset: 0; z-index: -1; opacity: 0.55; }
.story__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.story__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--c-panel) 0%, rgba(3, 8, 20, 0.5) 30%, rgba(3, 8, 20, 0.6) 70%, var(--c-panel) 100%);
}
.story__inner { display: flex; flex-direction: column; gap: 28px; }
.story__head { display: flex; flex-direction: column; gap: 0; }
.story__head .section-label { margin-bottom: 16px; }
.story__readout { margin-top: 16px; color: var(--c-label); }
.story__readout span { color: var(--c-amber); font-variant-numeric: tabular-nums; }

.story__map { display: none; border: 1px solid var(--glass-border); border-radius: var(--r-card); background: rgba(12, 26, 54, 0.35); padding: 16px 20px 12px; }
.story-map { width: 100%; height: auto; overflow: visible; }
.story-map__grid { stroke: rgba(46, 139, 255, 0.12); stroke-width: 1; }
.story-map__base { fill: none; stroke: rgba(46, 139, 255, 0.55); stroke-width: 2; stroke-dasharray: 8 10; }
.story-map__done { fill: none; stroke: var(--c-amber); stroke-width: 3; stroke-linecap: round; filter: drop-shadow(0 0 6px rgba(242, 192, 99, 0.6)); }
.story-map__origin { fill: var(--c-panel); stroke: var(--c-amber); stroke-width: 3; }
.story-map__dest { fill: var(--c-amber); }
.story-map__dest-halo { fill: rgba(242, 192, 99, 0.25); transform-box: fill-box; transform-origin: center; animation: gn-halo 2s var(--ease) infinite; }
.story-map__end-label { fill: var(--c-text); font-family: var(--font-body); font-size: 16px; font-weight: 800; letter-spacing: 0.03em; }
.story-map__end-label--dest { fill: var(--c-amber); }
.story-stop__ring { fill: var(--c-panel); stroke: var(--c-line-strong); stroke-width: 2.5; transition: fill 0.3s ease, stroke 0.3s ease; }
.story-stop__label { fill: var(--c-label); font-family: var(--font-body); font-size: 15px; font-weight: 700; letter-spacing: 0.03em; transition: fill 0.3s ease; }
.story-stop.is-done .story-stop__ring { fill: var(--c-amber); stroke: var(--c-amber); }
.story-stop.is-done .story-stop__label { fill: var(--c-text); }
.story-stop.is-active .story-stop__ring { fill: var(--c-panel); stroke: var(--c-gps); stroke-width: 4; }
.story-stop.is-active .story-stop__label { fill: #7db6ff; }
.story-truck__body { fill: #0f2147; stroke: var(--c-amber); stroke-width: 1.5; }
.story-truck__cab { fill: var(--c-gps); }
.story-truck__stripe { fill: var(--c-amber); }
.story-truck__wheel { fill: var(--c-panel); stroke: var(--c-label); stroke-width: 2; }
.story-truck__light { fill: #fff3cf; }
.story-map__truck { filter: drop-shadow(0 0 10px rgba(242, 192, 99, 0.45)); }
.story__status { display: flex; justify-content: flex-end; margin-top: 12px; }
.story__status [data-story-status] { color: var(--c-amber); }
@keyframes gn-halo {
  0% { transform: scale(0.8); opacity: 0.9; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* etapas: timeline vertical de rastreamento (mobile) */
.story__steps {
  --story-p: 0.62;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-left: 44px;
}
.story__steps::before,
.story__steps::after {
  content: "";
  position: absolute;
  left: 11px;
  top: 12px;
  bottom: 12px;
  width: 2px;
}
.story__steps::before {
  background: repeating-linear-gradient(180deg, rgba(46, 139, 255, 0.6) 0 6px, transparent 6px 14px);
}
.story__steps::after {
  background: var(--c-amber);
  transform-origin: 50% 0;
  transform: scaleY(var(--story-p));
  box-shadow: 0 0 10px rgba(242, 192, 99, 0.5);
}
.story-step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0 0 22px;
  transition: opacity 0.4s ease;
}
.story-step::before {
  content: "";
  position: absolute;
  left: -44px;
  top: 2px;
  z-index: 1;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--c-line-strong);
  background: var(--c-panel);
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.story-step__state { display: flex; gap: 10px; flex-wrap: wrap; }
.story-step__n { color: var(--c-label); }
.story-step [data-step-state] { color: var(--c-label); }
.story-step__title {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
}
.story-step p { color: var(--c-text-2); max-width: 34ch; }
/* estados (estáticos sem JS: 1–2 concluídas, 3 em andamento, 4 próxima) */
.story-step:nth-child(-n + 2)::before,
.story-step.is-done::before { background: var(--c-amber); border-color: var(--c-amber); }
.story-step:nth-child(-n + 2) [data-step-state],
.story-step.is-done [data-step-state] { color: var(--c-amber); }
.story-step:nth-child(3)::before,
.story-step.is-active::before { border-color: var(--c-gps); border-width: 6px; box-shadow: 0 0 0 6px rgba(46, 139, 255, 0.18); }
.story-step:nth-child(3) [data-step-state],
.story-step.is-active [data-step-state] { color: #7db6ff; }
.story.is-live .story-step::before { background: var(--c-panel); border: 2px solid var(--c-line-strong); box-shadow: none; }
.story.is-live .story-step [data-step-state] { color: var(--c-label); }
.story.is-live .story-step.is-done::before { background: var(--c-amber); border-color: var(--c-amber); }
.story.is-live .story-step.is-done [data-step-state] { color: var(--c-amber); }
.story.is-live .story-step.is-active::before { border: 6px solid var(--c-gps); box-shadow: 0 0 0 6px rgba(46, 139, 255, 0.18); }
.story.is-live .story-step.is-active [data-step-state] { color: #7db6ff; }
.story.is-live .story-step.is-next { opacity: 0.5; }

/* modo cena fixada (JS ativo, sem prefers-reduced-motion) */
.story.is-pinned { height: 420vh; height: 420svh; }
.story.is-pinned .story__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  display: flex;
  align-items: center;
  padding-block: calc(var(--nav-h) + 12px) 16px;
}
.story.is-pinned .story__inner { gap: 20px; }
.story.is-pinned .story__steps::after { transition: none; }
.story-truck-dot {
  position: absolute;
  left: 0;
  top: 12px;
  z-index: 2;
  width: 24px;
  height: 24px;
  pointer-events: none;
  color: var(--c-amber);
  transform: translate3d(0, calc(var(--story-p) * var(--track-h, 0px)), 0);
  filter: drop-shadow(0 0 8px rgba(242, 192, 99, 0.7));
}
.story-truck-dot {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--c-panel);
  border: 1.5px solid var(--c-amber);
  box-shadow: 0 0 0 4px rgba(242, 192, 99, 0.12);
}
.story-truck-dot svg { width: 16px; height: 16px; transform: rotate(90deg); }
.story:not(.is-pinned) .story-truck-dot { display: none; }

@media (max-width: 47.99em) {
  /* mesma cena do desktop: mapa com o caminhão percorrendo a rota */
  .story__map { display: block; position: relative; padding: 12px 10px 8px; }
  .story__status { margin-top: 6px; justify-content: center; }
  .story-map__end-label { font-size: 30px; }
  .story-stop__label { display: none; }
  .story-stop__ring { stroke-width: 4; }
  .story-map__base, .story-map__done { stroke-width: 5; }
  .story-map__origin { stroke-width: 5; }
  .story.is-pinned .story__inner { gap: 14px; }
  .story.is-pinned .story__head .section-label { margin-bottom: 8px; }
  .story.is-pinned .story__readout { margin-top: 8px; }
  .story.is-pinned .story-step.is-next p,
  .story.is-pinned .story-step.is-done p { display: none; }
  .story.is-pinned .story-step { padding-bottom: 10px; }
  .story.is-pinned .story-step p { font-size: 0.9375rem; line-height: 1.45; }
  .story.is-pinned .story-step { padding-bottom: 16px; }
  .story.is-pinned .story__head .h2 { font-size: clamp(1.875rem, 8vw, 2.5rem); }
  .story.is-pinned .story-step__title { font-size: 1.375rem; }
}
@media (max-width: 47.99em) and (max-height: 700px) {
  .story.is-pinned .story-step.is-next p,
  .story.is-pinned .story-step.is-done p { display: none; }
}

@media (min-width: 48em) {
  .story__map { display: block; position: relative; }
  .story__steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; padding: 28px 0 0; }
  .story__steps::before,
  .story__steps::after { left: 0; right: 0; top: 11px; bottom: auto; width: auto; height: 2px; }
  .story__steps::before { background: repeating-linear-gradient(90deg, rgba(46, 139, 255, 0.6) 0 6px, transparent 6px 14px); }
  .story__steps::after { transform-origin: 0 50%; transform: scaleX(var(--story-p)); }
  .story-step { padding: 28px 0 0; }
  .story-step::before { left: 0; top: 0; }
  .story-truck-dot { display: none; }
  .story.is-pinned .story-step.is-next { opacity: 0.45; }
}
@media (min-width: 64em) {
  .story__inner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-areas: "head map" "steps steps"; column-gap: 40px; row-gap: 32px; align-items: center; }
  .story__head { grid-area: head; }
  .story__map { grid-area: map; }
  .story__steps { grid-area: steps; }
  .story.is-pinned .story__inner { row-gap: 24px; }
}
@media (min-width: 64em) and (max-height: 760px) {
  .story.is-pinned .story-map { max-height: 34vh; }
  .story.is-pinned .story__head .h2 { font-size: 3rem; }
}

/* =============================================================================
   ROTA CONTÍNUA (route-motion) — geometria + espaço para a estrada à esquerda
   ============================================================================= */
.route-wrap {
  --route-x: 14px;
  --route-amp: 4px;
  --route-wave: 520px;
  --route-start: 40px;
  --route-end: 120px;
  --truck-size: 30px;
  --route-pad: 24px;
}
.route-wrap .wrap { padding-left: calc(var(--gutter) + var(--route-pad)); }
@media (min-width: 48em) {
  .route-wrap { --route-x: 22px; --route-amp: 8px; --route-wave: 640px; --truck-size: 38px; --route-pad: 24px; }
}
@media (min-width: 64em) {
  .route-wrap { --route-x: 30px; --route-amp: 10px; --route-wave: 720px; --truck-size: 44px; --route-pad: 8px; }
}
@media (min-width: 90em) {
  .route-wrap { --route-x: 3%; --route-amp: 14px; --route-wave: 800px; --truck-size: 52px; --route-pad: 0px; }
}
.route-wrap > .section { position: relative; z-index: 1; }
.route-motion__svg { z-index: 2; }

/* =============================================================================
   SEÇÕES GENÉRICAS
   ============================================================================= */
.section { padding-block: var(--section-y); border-top: 1px solid var(--c-grid); scroll-margin-top: var(--nav-h); }
.section-head { display: flex; flex-direction: column; gap: 20px; margin-bottom: 48px; }
.section-head .section-label { margin-bottom: 0; }
.section-head--split { gap: 24px; }
.section-head__aside { max-width: 30ch; }
@media (min-width: 64em) {
  .section-head { margin-bottom: 72px; }
  .section-head--split { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 40px; }
  .section-head--split > div { display: flex; flex-direction: column; gap: 24px; max-width: 720px; }
  .section-head__aside { width: 440px; max-width: none; }
}

/* ---------- Essência: waypoints ---------- */
.waypoints {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 36px;
  padding-left: 44px;
}
.waypoints::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 12px;
  bottom: 12px;
  width: 2px;
  background: repeating-linear-gradient(180deg, rgba(46, 139, 255, 0.55) 0 6px, transparent 6px 14px);
}
.waypoint { position: relative; display: flex; flex-direction: column; gap: 10px; }
.waypoint p { color: var(--c-text-2); max-width: 30ch; }
.waypoint__marker {
  position: absolute;
  left: -44px;
  top: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--c-amber);
  background: var(--c-panel);
}
.waypoint__marker::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: var(--c-amber);
}
.waypoint__marker--gps { border-color: var(--c-gps); }
.waypoint__marker--gps::after { background: var(--c-gps); }
.waypoint__marker--solid { background: var(--c-amber); }
.waypoint__marker--solid::after { background: var(--c-panel); }
@media (min-width: 48em) {
  .waypoints { flex-direction: row; gap: 40px; padding-left: 0; padding-top: 52px; }
  .waypoints::before { left: 0; right: 0; top: 11px; bottom: auto; width: auto; height: 2px; background: repeating-linear-gradient(90deg, rgba(46, 139, 255, 0.55) 0 6px, transparent 6px 14px); }
  .waypoint { flex: 1; }
  .waypoint__marker { left: 0; top: -52px; }
}

/* ---------- Nossa História (a seção quente) ---------- */
.story-history {
  position: relative;
  overflow: hidden;
  margin-inline: clamp(8px, 1.6vw, 24px);
  border: 1px solid rgba(217, 201, 168, 0.14);
  border-radius: var(--r-lg);
  background: var(--c-panel-warm);
  color: var(--c-warm-body);
}
.route-wrap > .story-history + .section { border-top: 0; }
.history-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 70% 55% at 15% 0%, rgba(242, 192, 99, 0.17) 0%, rgba(242, 192, 99, 0) 70%);
  opacity: 1;
  transition: opacity 1.4s ease;
}
.js:not(.reveal-failsafe) .story-history:not(.is-route-reached) .history-glow { opacity: 0.25; }
.story-history .wrap { position: relative; }
.section-label--warm { color: var(--c-warm-label); }
.history-head { display: flex; flex-direction: column; gap: 8px; margin-bottom: 56px; }
.history-quote {
  font-family: var(--font-display);
  font-size: var(--fs-quote);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--c-warm-text);
  max-width: 18ch;
  text-wrap: balance;
}
.history-body { display: flex; flex-direction: column; gap: 40px; }
.history-log {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  border: 1px solid rgba(217, 201, 168, 0.18);
  border-radius: 20px;
  background: rgba(242, 192, 99, 0.04);
}
.history-log__mark { width: 72px; height: 72px; flex: none; }
.history-log__list {
  flex: 1;
  min-width: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--c-warm-label);
}
.history-log__list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(217, 201, 168, 0.14);
}
.history-log__list li:last-child { border-bottom: 0; }
.history-log__list li span:last-child { color: var(--c-warm-text); text-align: right; }
.history-log__list li .amber { color: var(--c-amber); }
.history-text { display: flex; flex-direction: column; gap: 22px; }
.history-col { display: flex; flex-direction: column; gap: 22px; }
.history-col p { font-size: var(--fs-body); line-height: 1.7; max-width: 62ch; }
.history-highlight {
  font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem) !important;
  line-height: 1.35 !important;
  font-weight: 600;
  color: var(--c-amber);
}
.history-pull {
  padding: 14px 20px;
  border-radius: var(--r-sm);
  background: rgba(242, 192, 99, 0.07);
  box-shadow: inset 3px 0 0 var(--c-amber);
  font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem) !important;
  line-height: 1.35 !important;
  font-weight: 500;
  color: var(--c-warm-text);
}
.history-close {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-top: 64px;
  padding-top: 56px;
  border-top: 1px solid rgba(217, 201, 168, 0.18);
}
.history-close__main { display: flex; flex-direction: column; gap: 24px; }
.history-statement {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--c-warm-text);
  max-width: 20ch;
  text-wrap: balance;
}
.story-history .lead { color: var(--c-warm-body); max-width: 52ch; }
.history-next {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 1.2rem + 0.8vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--c-amber);
}
.history-next__arrow { animation: gn-nudge 1.8s var(--ease) infinite; }
@keyframes gn-nudge {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(8px); }
}
.history-sign { display: flex; flex-direction: column; gap: 10px; }
.history-sign__name { font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; color: var(--c-warm-text); }
.history-sign__tag {
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--c-warm-label);
}
@media (min-width: 48em) {
  .history-text { flex-direction: row; gap: 40px; }
  .history-col { flex: 1; }
}
@media (min-width: 64em) {
  .history-head { margin-bottom: 80px; }
  .history-body { flex-direction: row; gap: 56px; align-items: flex-start; }
  .history-log { flex-direction: column; align-items: stretch; width: 300px; flex: none; position: sticky; top: calc(var(--nav-h) + 32px); padding: 28px; }
  .history-log__mark { width: 96px; height: 96px; }
  .history-text { flex: 1; }
  .history-close { flex-direction: row; justify-content: space-between; align-items: flex-end; gap: 64px; }
  .history-close__main { flex: 1; }
  .history-sign { width: 340px; flex: none; }
}

/* ---------- Soluções: cards HUD ---------- */
.cards { display: grid; gap: 16px; }
.card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 28px 24px;
  transition: border-color 0.3s ease, transform 0.4s var(--ease), background-color 0.3s ease;
}
.card:hover { border-color: var(--c-line-strong); transform: translateY(-4px); }
.card__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 24px; }
.card__icon { width: 52px; height: 52px; padding: 12px; border-radius: 50%; background: rgba(242, 192, 99, 0.1); color: var(--c-amber); }
.card__title {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.3rem + 0.8vw, 2rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
}
.card p { color: var(--c-text-2); }
.card--featured { border-color: rgba(242, 192, 99, 0.55); background: linear-gradient(180deg, rgba(242, 192, 99, 0.1), rgba(242, 192, 99, 0) 60%), rgba(12, 26, 54, 0.45); }
.card__index { display: block; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 8px; }
.tags li {
  padding: 7px 14px;
  border: 1px solid var(--glass-border);
  border-radius: var(--r-pill);
  background: rgba(159, 179, 209, 0.06);
  font-size: var(--fs-mono);
  font-weight: 600;
  color: var(--c-text);
}
@media (min-width: 48em) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .card--featured { grid-column: 1 / -1; }
}
@media (min-width: 64em) {
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .card { min-height: 380px; padding: 32px; }
  .card--featured { grid-column: auto; }
}

/* ---------- Localização + mapa SP ---------- */
.location__grid { display: flex; flex-direction: column; gap: 48px; }
.location__copy { display: flex; flex-direction: column; gap: 24px; }
.location__copy .section-label { margin-bottom: 0; }
.access-list { display: flex; flex-direction: column; border-top: 1px solid var(--c-grid); }
.access-list li {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  grid-template-areas: "icon name" "icon meta";
  column-gap: 12px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--c-grid);
}
.access-list__icon { grid-area: icon; width: 44px; height: 44px; padding: 9px; border-radius: 50%; background: rgba(242, 192, 99, 0.1); color: var(--c-amber); }
.access-list__name { grid-area: name; font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; letter-spacing: -0.025em; line-height: 1.2; }
.access-list .mono-label { grid-area: meta; }

.sp-map { padding: 12px; }
.sp-map__svg { width: 100%; height: auto; border-radius: var(--r-sm); }
.sp-map__gridline { stroke: rgba(46, 139, 255, 0.1); stroke-width: 1; }
.sp-map__roads path { fill: none; stroke: rgba(159, 179, 209, 0.6); stroke-width: 1.6; stroke-dasharray: 1; stroke-dashoffset: 0; }
.sp-map__ring { fill: none; stroke: rgba(46, 139, 255, 0.6); stroke-width: 2; stroke-dasharray: 8 9; }
.sp-map__marginais path { fill: none; stroke: var(--c-amber); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; filter: drop-shadow(0 0 5px rgba(242, 192, 99, 0.5)); }
.sp-map__labels text { fill: var(--c-label); font-family: var(--font-body); font-size: 14px; font-weight: 600; letter-spacing: 0.02em; }
.sp-map__labels .sp-map__label--amber { fill: var(--c-amber); font-weight: 700; }
.sp-map__airport circle { fill: rgba(46, 139, 255, 0.25); stroke: var(--c-gps); stroke-width: 2.5; }
.sp-map__airport text { fill: #8fc0ff; font-family: var(--font-body); font-size: 16px; font-weight: 800; letter-spacing: 0.02em; }
.sp-map__airport--off path { stroke: var(--c-gps); stroke-width: 2.5; }
.sp-map__pin { fill: var(--c-amber); stroke: var(--c-panel); stroke-width: 3; }
.sp-map__pulse { fill: rgba(242, 192, 99, 0.35); transform-box: fill-box; transform-origin: center; animation: gn-halo 2s var(--ease) infinite; }
.sp-map__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  padding: 12px 8px 4px;
  border-top: 1px solid var(--c-grid);
  margin-top: 8px;
}
.sp-map__legend span { display: inline-flex; align-items: center; gap: 8px; }
.sp-map__tag { color: var(--c-amber); }
.lg { display: inline-block; width: 18px; height: 3px; border-radius: 2px; }
.lg--amber { background: var(--c-amber); }
.lg--gps { background: repeating-linear-gradient(90deg, var(--c-gps) 0 4px, transparent 4px 7px); }
.lg--label { background: var(--c-label); height: 2px; }
.lg--dot { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--c-gps); }
/* desenho das vias ao revelar */
.js:not(.reveal-failsafe) .sp-map:not(.is-revealed) .sp-map__roads path,
.js:not(.reveal-failsafe) .sp-map:not(.is-revealed) .sp-map__marginais path { stroke-dashoffset: 1; }
.sp-map__roads path { transition: stroke-dashoffset 1.4s var(--ease); }
.sp-map__roads path:nth-child(2) { transition-delay: 0.1s; }
.sp-map__roads path:nth-child(3) { transition-delay: 0.2s; }
.sp-map__roads path:nth-child(4) { transition-delay: 0.3s; }
.sp-map__roads path:nth-child(5) { transition-delay: 0.4s; }
.sp-map__roads path:nth-child(6) { transition-delay: 0.5s; }
.sp-map__roads path:nth-child(7) { transition-delay: 0.6s; }
.sp-map__marginais path { transition: stroke-dashoffset 1.6s var(--ease) 0.7s; }
.sp-map__airport { transition: opacity 0.5s ease 1.4s; }
.js:not(.reveal-failsafe) .sp-map:not(.is-revealed) .sp-map__airport { opacity: 0; }
@media (max-width: 47.99em) {
  .sp-map__labels text:not(.sp-map__label--amber) { display: none; }
  .sp-map__labels text { font-size: 20px; }
  .sp-map__airport text { font-size: 22px; }
}
@media (min-width: 64em) {
  .location__grid { flex-direction: row; align-items: center; gap: 64px; }
  .location__copy { width: 40%; flex: none; }
  .sp-map { flex: 1; padding: 16px; }
}

/* ---------- Por que escolher: checklist ---------- */
.why__grid { display: flex; flex-direction: column; gap: 40px; }
.why__head { display: flex; flex-direction: column; gap: 20px; }
.why__head .section-label { margin-bottom: 0; }
.checklist { border-top: 1px solid var(--c-grid); }
.checklist li {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 56px;
  align-items: center;
  gap: 8px;
  min-height: 64px;
  padding: 16px 8px 16px 0;
  border-bottom: 1px solid var(--c-grid);
}
.checklist__n { font-size: var(--fs-mono); font-weight: 700; color: var(--c-label); font-variant-numeric: tabular-nums; }
.checklist__text { font-size: clamp(1.0625rem, 0.95rem + 0.5vw, 1.375rem); font-weight: 600; line-height: 1.35; letter-spacing: -0.01em; }
.checklist__ok {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  font-size: var(--fs-mono);
  font-weight: 800;
  color: var(--c-amber);
}
.checklist__ok .icon { width: 16px; height: 16px; }
.checklist__item--key { background: rgba(242, 192, 99, 0.08); border-radius: var(--r-sm); border-bottom-color: transparent !important; padding-left: 12px !important; margin-left: -12px; }
.checklist__item--key .checklist__text { color: var(--c-amber); }
@media (min-width: 64em) {
  .why__grid { flex-direction: row; gap: 64px; align-items: flex-start; }
  .why__head { width: 34%; flex: none; position: sticky; top: calc(var(--nav-h) + 40px); }
  .checklist { flex: 1; }
  .checklist li { grid-template-columns: 56px minmax(0, 1fr) 80px; padding-block: 22px; }
}

/* ---------- Compromissos: mostradores ---------- */
.gauges { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.gauge {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px 18px;
  border: 1px solid var(--glass-border);
  border-radius: var(--r-card);
  background: rgba(12, 26, 54, 0.4);
  transition: border-color 0.3s ease, transform 0.4s var(--ease);
}
.gauge:hover { border-color: rgba(242, 192, 99, 0.45); transform: translateY(-4px); }
.gauge p { color: var(--c-text-2); font-size: 1rem; }
.gauge .h3 { font-size: clamp(1.125rem, 0.95rem + 0.9vw, 1.75rem); overflow-wrap: anywhere; }
.gauge__dial { width: 72px; height: auto; margin-bottom: 8px; overflow: visible; }
.gauge__arc { fill: none; stroke: var(--c-line); stroke-width: 4; stroke-linecap: round; }
.gauge__ticks { fill: none; stroke: var(--c-label); stroke-width: 2; stroke-linecap: round; }
.gauge__needle { transform-origin: 60px 64px; transform: rotate(-90deg); transition: transform 1.4s cubic-bezier(0.34, 1.56, 0.64, 1) calc(var(--reveal-delay, 0ms) + 250ms); }
.gauge__needle path { stroke: var(--c-amber); stroke-width: 3; stroke-linecap: round; }
.gauge__needle circle { fill: var(--c-amber); }
.gauge--1.is-revealed .gauge__needle, html:not(.js) .gauge--1 .gauge__needle, .reveal-failsafe .gauge--1 .gauge__needle { transform: rotate(-50deg); }
.gauge--2.is-revealed .gauge__needle, html:not(.js) .gauge--2 .gauge__needle, .reveal-failsafe .gauge--2 .gauge__needle { transform: rotate(-15deg); }
.gauge--3.is-revealed .gauge__needle, html:not(.js) .gauge--3 .gauge__needle, .reveal-failsafe .gauge--3 .gauge__needle { transform: rotate(25deg); }
.gauge--4.is-revealed .gauge__needle, html:not(.js) .gauge--4 .gauge__needle, .reveal-failsafe .gauge--4 .gauge__needle { transform: rotate(62deg); }
@media (min-width: 64em) {
  .gauges { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
  .gauge { padding: 32px; }
  .gauge__dial { width: 96px; }
}

/* ---------- Cotação: ordem de coleta ---------- */
.quote__grid { display: flex; flex-direction: column; gap: 48px; }
.quote__intro { display: flex; flex-direction: column; gap: 24px; }
.quote__intro .section-label { margin-bottom: 0; }
.quote__direct { display: flex; flex-direction: column; gap: 6px; padding-top: 8px; }
.quote__phone {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--c-text);
}
.quote__phone .icon { color: var(--c-amber); }
.quote__phone:hover span { text-decoration: underline; text-underline-offset: 4px; }

.order { overflow: hidden; }
.order__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--c-grid);
}
.order__title {
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--c-text);
}
.order__no { flex: 1; }
@media (max-width: 47.99em) {
  .order__no { display: none; }
}
.order__state { margin-left: auto; }
.order__progress { height: 4px; margin: 0 20px; border-radius: 4px; overflow: hidden; background: var(--c-grid); }
.order__progress-fill {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--c-amber);
  transform-origin: 0 50%;
  transform: scaleX(var(--order-p, 0));
  transition: transform 0.5s var(--ease);
  box-shadow: 0 0 8px rgba(242, 192, 99, 0.6);
}
.order__form { display: flex; flex-direction: column; gap: 8px; padding: 12px 20px 0; }
.field-group { margin: 0; padding: 16px 0; border: 0; border-bottom: 1px dashed var(--c-grid); min-width: 0; }
.field-group__legend {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  margin-bottom: 12px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--c-text);
}
.field-group.is-complete .field-group__legend::after {
  content: "";
  width: 16px;
  height: 16px;
  margin-left: 4px;
  background: var(--c-amber);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='3' d='m4.5 12.5 5 5 10-11'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='3' d='m4.5 12.5 5 5 10-11'/%3E%3C/svg%3E") center / contain no-repeat;
}
.field-group:focus-within .field-group__legend { color: var(--c-amber); }
.field-row { display: flex; flex-direction: column; gap: 12px; }
.field-row + .field { margin-top: 12px; }
.field-row__arrow { display: none; color: var(--c-amber); }
.field { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 0; }
.field label { font-size: 0.9375rem; font-weight: 600; color: var(--c-label); }
.field__opt { color: var(--c-placeholder); }
.field input {
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  border: 1px solid var(--c-line-strong);
  border-radius: var(--r-sm);
  background: rgba(3, 8, 20, 0.7);
  font-size: 1.0625rem;
  color: var(--c-text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field input::placeholder { color: var(--c-placeholder); opacity: 1; }
.field input:hover { border-color: var(--c-label); }
.field input:focus { outline: none; border-color: var(--c-amber); box-shadow: 0 0 0 3px rgba(242, 192, 99, 0.25); }
.field input:focus-visible { outline: none; }
.order__foot { display: flex; flex-direction: column; gap: 12px; padding: 20px 0 24px; }
.order__hint { text-align: center; }
.order__hint a { color: var(--c-amber); }
.order__status { font-size: 0.9375rem; }
@media (min-width: 48em) {
  .order__head { padding: 22px 32px; }
  .order__form { padding: 12px 32px 0; }
  .order__progress { margin: 0 32px; }
  .field-row { flex-direction: row; }
  .field-row--od { align-items: flex-end; }
  .field-row__arrow { display: block; width: 20px; height: 20px; margin-bottom: 16px; }
}
@media (min-width: 64em) {
  .quote__grid { flex-direction: row; align-items: flex-start; gap: 64px; }
  .quote__intro { width: 38%; flex: none; position: sticky; top: calc(var(--nav-h) + 40px); }
  .order { flex: 1; }
}

/* ---------- CTA final ---------- */
.final {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin: 0 clamp(8px, 1.6vw, 24px) clamp(8px, 1.6vw, 24px);
  padding-block: calc(var(--section-y) * 1.1);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg);
  scroll-margin-top: var(--nav-h);
}
.final__media { position: absolute; inset: -8% 0; z-index: -1; }
.final__media img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; opacity: 0.75; }
.final__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(3, 8, 20, 0.55), rgba(3, 8, 20, 0.85));
}
.final__inner { display: flex; flex-direction: column; gap: 24px; }
.final__title {
  font-family: var(--font-display);
  font-size: clamp(2.375rem, 1.3rem + 4.4vw, 4.5rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.04em;
  max-width: 15ch;
}
.final .lead { max-width: 40ch; }
.final .btn-row { margin-top: 8px; }
@media (min-width: 64em) {
  .final { padding-block: 160px; }
  .final__media::after { background: linear-gradient(90deg, var(--c-panel) 0%, rgba(3, 8, 20, 0.85) 40%, rgba(3, 8, 20, 0.15) 100%); }
}

/* ---------- Rodapé ---------- */
.site-footer {
  padding: 72px 0 calc(96px + env(safe-area-inset-bottom));
  background: var(--c-panel-deep);
  border-top: 1px solid var(--c-grid);
  color: var(--c-text-2);
}
.footer__grid { display: grid; gap: 40px; }
.footer__logo { width: 120px; margin-bottom: 20px; }
.footer__brand p { max-width: 30ch; }
.footer__title {
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-label);
}
.footer__col ul { display: flex; flex-direction: column; gap: 2px; }
.footer__col a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  text-decoration: none;
  color: var(--c-text);
  overflow-wrap: anywhere;
}
.footer__col a:hover { color: var(--c-amber); }
.contact-list { gap: 10px !important; }
.contact-list__mail { font-size: 0.9375rem; }
.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex: none;
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  background: var(--glass-bg);
  transition: border-color 0.2s ease, color 0.2s ease;
}
.social-icon svg { width: 20px; height: 20px; }
.footer__col a:hover .social-icon { border-color: var(--c-amber); color: var(--c-amber); }
.footer__bottom {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--c-grid);
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-label);
}
@media (min-width: 48em) {
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__bottom { flex-direction: row; justify-content: space-between; }
}
@media (min-width: 64em) {
  .site-footer { padding-top: 88px; padding-bottom: 112px; }
  .footer__grid { grid-template-columns: 1.3fr 1fr 1.5fr 0.9fr; gap: 48px; }
}

/* ---------- Nossa História: tipografia mais contida ---------- */
.history-quote { font-size: clamp(1.625rem, 1.15rem + 2vw, 3rem); line-height: 1.12; letter-spacing: -0.03em; max-width: 22ch; }
.history-statement { font-size: clamp(1.5rem, 1.15rem + 1.6vw, 2.5rem); line-height: 1.12; max-width: 24ch; }
.history-col p { font-size: clamp(0.9375rem, 0.9rem + 0.15vw, 1.0625rem); line-height: 1.65; }
.history-col p.history-highlight, .history-col p.history-pull { font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem) !important; line-height: 1.4 !important; }
.history-next { font-size: clamp(1.125rem, 1.05rem + 0.5vw, 1.5rem); }
.history-sign__name { font-size: 1.25rem; }
.story-history .lead { font-size: clamp(1rem, 0.95rem + 0.3vw, 1.1875rem); }
@media (max-width: 47.99em) {
  .story-history { padding-block: 56px; }
  .history-head { margin-bottom: 24px; }
  .history-quote { font-size: 1.375rem; line-height: 1.2; }
  .history-log { display: none; }
  .history-body { gap: 0; }
  .history-text, .history-col { gap: 12px; }
  /* versão resumida no celular: só as partes principais (o texto completo segue no desktop) */
  .history-col:first-child > p:nth-child(2),
  .history-col:first-child > p:nth-child(5),
  .history-col:last-child > p:nth-child(n + 2) { display: none; }
  .history-col p { font-size: 0.875rem; line-height: 1.6; }
  .history-col p.history-highlight, .history-col p.history-pull { font-size: 1rem !important; line-height: 1.4 !important; }
  .history-pull { padding: 10px 14px; }
  .history-close { margin-top: 28px; padding-top: 28px; gap: 20px; }
  .history-close__main { gap: 14px; }
  .history-statement { font-size: 1.25rem; line-height: 1.2; }
  .story-history .lead { font-size: 0.9375rem; line-height: 1.55; }
  .history-next { font-size: 1.0625rem; }
  .history-sign { gap: 6px; }
  .history-sign__name { font-size: 1.0625rem; }
  .history-sign p, .history-sign__tag { font-size: 0.875rem; }
}

/* ---------- Mobile: hero e rodapé centralizados ---------- */
@media (max-width: 47.99em) {
  .hero__copy { align-items: center; text-align: center; }
  .eyebrow-row { justify-content: center; }
  .hero .btn-row { width: 100%; justify-content: center; }

  /* rodapé compacto: logo, links em linha, ícones de contato e copyright */
  .site-footer { text-align: center; padding: 36px 0 calc(28px + env(safe-area-inset-bottom)); }
  .footer__grid { justify-items: center; gap: 20px; }
  .footer__logo { width: 64px; margin: 0 auto 8px; }
  .footer__brand p { margin-inline: auto; font-size: 0.875rem; line-height: 1.5; max-width: 28ch; }
  .footer__title, .footer__col:last-child { display: none; }
  .footer__col ul { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 0 18px; }
  .footer__col a { min-height: 36px; font-size: 0.875rem; color: var(--c-text-2); }
  .contact-list { gap: 12px !important; }
  .contact-list a > span:not(.social-icon) {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
  }
  .footer__bottom { align-items: center; text-align: center; margin-top: 20px; padding-top: 16px; gap: 4px; font-size: 0.75rem; }

  /* Próxima parada centralizado */
  .final__inner { align-items: center; text-align: center; }
  .final .btn-row { justify-content: center; width: 100%; }
}

/* ---------- WhatsApp flutuante (ajustes da direção) ---------- */
.wa-float {
  width: 60px;
  height: 60px;
  min-width: 60px;
  padding: 0;
  border-radius: 50%;
}
.wa-float svg { width: 28px; height: 28px; }
.wa-float::before { border-radius: 50%; }
.wa-float:hover { transform: translateY(-3px) scale(1.04); box-shadow: 0 16px 36px -10px var(--wa-shadow), 0 0 0 6px rgba(242, 192, 99, 0.15); }
.wa-float .wa-float__label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}
.wa-float.is-hidden { opacity: 0; transform: translateY(16px); pointer-events: none; }
.wa-float { transition: opacity 0.3s ease, transform 0.3s var(--ease); }

/* ---------- Movimento reduzido ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .gauge__needle { transition: none; }
}

/* ---------- Impressão ---------- */
@media print {
  body::before, .site-header, .wa-float, .road-band, .story__bg, .final__media, [data-scroll-progress] { display: none !important; }
  html, body { background: #fff; color: #000; }
  [data-reveal], .split-word__inner { opacity: 1 !important; transform: none !important; }
}
