/* ==========================================================================
   SEÇÕES II — rota (horizontal fixada), ingresso final, rodapé revelado
   ========================================================================== */

/* ---------- 04 · A ROTA ---------- */
.journey {
  position: relative;
  background: var(--ink-2);
  color: var(--paper);
  border-radius: var(--radius-panel) var(--radius-panel) 0 0;
  box-shadow: 0 -24px 60px -24px rgba(0, 0, 0, .55);
}
.journey-pin { position: relative; padding: calc(var(--header-h) + 56px) 0 80px; }
.journey-head { margin-bottom: 40px; }
.journey-viewport { position: relative; }

/* Padrão (mobile, sem JS, movimento desligado): linha vertical que preenche */
.journey-track {
  display: grid;
  gap: 22px;
  padding-left: calc(max(var(--gutter), env(safe-area-inset-left)) + 36px);
  padding-right: max(var(--gutter), env(safe-area-inset-right));
}
.journey-rail {
  position: absolute;
  top: 8px; bottom: 8px;
  left: calc(max(var(--gutter), env(safe-area-inset-left)) + 11px);
  width: 2px;
  border-radius: 2px;
  background: rgba(239, 232, 220, .12);
  overflow: hidden;
}
.journey-rail span { position: absolute; inset: 0; background: linear-gradient(var(--orange), var(--green)); transform-origin: top center; transform: scaleY(0); will-change: transform; }
.stop {
  position: relative;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(15, 17, 17, .45);
  transition: border-color .5s ease;
}
.stop::before {
  content: "";
  position: absolute;
  left: -32px; top: 30px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--ink-2);
  border: 2px solid rgba(239, 232, 220, .35);
  transition: background-color .4s ease, border-color .4s ease, box-shadow .4s ease;
}
.stop.is-active { border-color: rgba(255, 153, 0, .4); }
.stop.is-active::before { background: var(--orange); border-color: var(--orange); box-shadow: 0 0 0 6px rgba(255, 153, 0, .18); }
.stop-num {
  display: block;
  margin-bottom: 14px;
  font-family: var(--f-display);
  font-weight: 900;
  font-stretch: 70%;
  font-size: 84px;
  line-height: .8;
  letter-spacing: -.05em;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(239, 232, 220, .3);
  transition: color .6s ease, -webkit-text-stroke-color .6s ease;
}
.stop.is-active .stop-num { color: var(--orange); -webkit-text-stroke-color: var(--orange); }
.stop-kicker { margin-bottom: 10px; font-size: 11px; color: var(--orange); }
.stop h3 { margin-bottom: 12px; font-family: var(--f-display); font-weight: 800; font-stretch: 90%; font-size: clamp(24px, 2.6vw, 38px); line-height: 1.02; letter-spacing: -.03em; text-wrap: balance; }
.stop p { max-width: 460px; font-size: 16px; color: var(--fg-2); }
.stub { display: inline-grid; grid-template-columns: repeat(3, auto); margin-top: 20px; border: 1px dashed rgba(239, 232, 220, .25); border-radius: 8px; }
.stub > div { padding: 10px 14px; border-right: 1px dashed rgba(239, 232, 220, .25); }
.stub > div:last-child { border-right: 0; }
.stub dt { font-size: 9.5px; color: var(--fg-3); }
.stub dd { margin-top: 3px; font-size: 12px; color: var(--paper); text-transform: none; }
@media (max-width: 420px) { .stub { grid-template-columns: 1fr; } .stub > div { border-right: 0; border-bottom: 1px dashed rgba(239, 232, 220, .25); } .stub > div:last-child { border-bottom: 0; } }
.route { display: none; }

/* Desktop: a seção gruda e as etapas correm na horizontal */
.journey.is-pinned .journey-pin {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: calc(var(--header-h) + 28px) 0 30px;
}
@supports (height: 100svh) { .journey.is-pinned .journey-pin { height: 100svh; } }
.journey.is-pinned .journey-head { margin-bottom: 0; }
.journey.is-pinned .journey-head .index { margin-bottom: 14px; }
.journey.is-pinned .journey-viewport { flex: 1; min-height: 0; display: flex; align-items: center; }
.journey.is-pinned .journey-rail { display: none; }
.journey.is-pinned .journey-track {
  display: flex;
  gap: 6vw;
  width: max-content;
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: 34vw;
  will-change: transform;
}
.journey.is-pinned .stop {
  width: min(64vw, 800px);
  flex: none;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 40px;
  align-items: start;
  padding: 0;
  border: 0;
  background: transparent;
}
.journey.is-pinned .stop::before { display: none; }
.journey.is-pinned .stop-num { margin: 0; font-size: clamp(140px, 17vw, 250px); will-change: transform; }
.journey.is-pinned .stop-body { padding-top: 12px; }
.journey.is-pinned .route { display: block; padding: 0 max(var(--gutter), env(safe-area-inset-left)); }
.route-ends { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 11px; color: var(--fg-3); }
.route-ends [data-route-pct] { color: var(--orange); }
.route-line { position: relative; height: 40px; }
.route-svg { width: 100%; height: 100%; overflow: visible; }
.route-bg { fill: none; stroke: rgba(239, 232, 220, .22); stroke-width: 1.5; stroke-dasharray: 4 6; }
.route-fg { fill: none; stroke: var(--orange); stroke-width: 2.5; stroke-dasharray: 1; stroke-dashoffset: 1; }
.route-pkg {
  position: absolute;
  top: 0; left: 0;
  width: 40px; height: 40px;
  margin: -20px 0 0 -20px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--orange);
  color: var(--ink);
  font-size: 20px;
  box-shadow: 0 0 0 8px rgba(255, 153, 0, .15);
  will-change: transform;
}

/* ---------- 05 · INGRESSO FINAL ---------- */
.final .panel-inner { padding-top: calc(var(--header-h) + 56px); }
.final-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 1100px) { .final-grid { grid-template-columns: minmax(0, 1fr) 420px; gap: 72px; } }
.final-ticket { width: 100%; max-width: 440px; }
@media (min-width: 1100px) { .final-ticket { justify-self: end; } }

.countdown { display: flex; align-items: flex-start; gap: clamp(4px, 1vw, 14px); margin: 26px 0 26px; }
.cd-unit { display: grid; gap: 10px; }
.cd-num {
  display: block;
  font-family: var(--f-display);
  font-weight: 900;
  font-stretch: 68%;
  font-size: clamp(60px, 11vw, 168px);
  line-height: .82;
  letter-spacing: -.045em;
  font-variant-numeric: tabular-nums;
}
.cd-unit:last-child .cd-num { color: var(--orange-deep); }
.cd-sep { padding-top: .04em; font-family: var(--f-display); font-weight: 900; font-size: clamp(36px, 6.5vw, 100px); line-height: 1; color: var(--orange-deep); }
.cd-unit small { font-size: 11px; color: var(--fg-2); }
.countdown-live { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; color: #0B7A55; }
.final-line { max-width: 540px; margin-bottom: 28px; font-size: clamp(18px, 1.6vw, 22px); line-height: 1.35; }
.final-line .serif { font-size: 1.35em; color: var(--orange-deep); }
.final .facts { max-width: 560px; grid-template-columns: 1fr; }
.final .facts > div { padding-right: 0; display: grid; grid-template-columns: 110px 1fr; align-items: baseline; }
.final .facts dt { margin: 0; }

/* ---------- Rodapé revelado por baixo ---------- */
.site-footer { position: relative; z-index: 0; overflow: hidden; background: var(--ink); color: var(--paper); padding: 36px 0 calc(28px + env(safe-area-inset-bottom)); }
.footer-reveal .site-footer { position: fixed; left: 0; right: 0; bottom: 0; }
.footer-reveal .final { border-radius: var(--radius-panel); }
.footer-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; color: var(--fg-2); }
.footer-top a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; white-space: nowrap; }
.footer-top a:hover { color: var(--orange); }
.footer-word {
  margin: 20px 0 26px;
  padding-bottom: .04em;
  overflow: hidden;
  font-family: var(--f-display);
  font-weight: 900;
  font-stretch: 75%;
  font-size: 15vw;
  line-height: .8;
  letter-spacing: -.055em;
  text-align: center;
  white-space: nowrap;
}
.footer-word span, .footer-word i { display: inline-block; will-change: transform; }
.footer-word i { font-style: normal; color: var(--orange); }
.footer-bottom { display: grid; gap: 14px; }
@media (min-width: 900px) { .footer-bottom { grid-template-columns: minmax(0, 1fr) auto; align-items: end; } }
.footer-legal { max-width: 820px; font-size: 12px; line-height: 1.6; color: var(--fg-3); }
.footer-copy { color: var(--fg-3); }
@media (max-width: 1099px) { .site-footer { padding-bottom: calc(96px + env(safe-area-inset-bottom)); } }

/* ---------- Windows Alto Contraste (fica por último para vencer a cascata) ---------- */
@media (forced-colors: active) {
  .btn, .btn-cta, .header-cta, .band-toggle { border: 2px solid ButtonText !important; }
  .btn-cta::before, .btn-shine, .grain, .cursor { display: none !important; }
  .ticket, .stop, .t-dash, .band { border: 1px solid CanvasText; }
  .input-wrap input { border-bottom: 1px solid CanvasText; }
  /* O sistema força a cor do texto: as palavras vazadas virariam blocos brancos gigantes sobre o conteúdo */
  .ghost-word { display: none !important; }
  .stop-num { -webkit-text-stroke-color: CanvasText; }
  .route-fg { stroke: Highlight; }
  .journey-rail span, .progress-bar i { forced-color-adjust: none; background: Highlight; }
  .live-dot, .live-dot::after, .seal--ticket circle { forced-color-adjust: none; }
}
