/* ==========================================================================
   LUMI 2D Camera-Panning Organic Colored-Pencil Journey
   - Full-screen (100dvh) sticky camera stage panning smoothly across X & Y
     (bottom-right -> bottom-left -> bottom-right -> bottom-left/center) as
     the user scrolls naturally down the page (or clicks "Assistir em 15s").
   - Header & cookie banner stay hidden during the full-screen cinema and
     emerge smoothly from blur(14px) -> blur(0px) at the end into #estudio.
   - Multi-pass hand-drawn colored-pencil trace in LUMI's prism colors
     (zero literal pencil icon, locked 60fps, 0px horizontal page overflow).
   ========================================================================== */

body.home-cinema main {
  padding-top: 0;
}

body.home-cinema .section[id] {
  scroll-margin-top: calc(var(--header-height) + 1rem);
}

body.home-cinema .site-header {
  opacity: 0;
  transform: translate3d(0, -18px, 0);
  filter: blur(14px);
  pointer-events: none;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 12px 34px -18px rgba(11, 18, 34, 0.14);
  transition:
    opacity 760ms var(--ease-out-expo),
    transform 760ms var(--ease-out-expo),
    filter 820ms var(--ease-out-expo);
  animation: none !important;
}

body.home-cinema.header-revealed .site-header {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  filter: blur(0px);
  pointer-events: auto;
}

/* Keep top scroll hairline & cookie banner tucked away during full-screen opening */
body.home-cinema:not(.header-revealed) .scroll-progress {
  opacity: 0;
  transition: opacity 420ms ease;
}

body.home-cinema.header-revealed .scroll-progress {
  opacity: 1;
  transition: opacity 420ms ease;
}

body.home-cinema:not(.header-revealed) .cookie-banner {
  opacity: 0;
  transform: translate3d(0, 20px, 0);
  pointer-events: none;
  transition: opacity 460ms ease, transform 500ms var(--ease-out-expo);
}

body.home-cinema.header-revealed .cookie-banner {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  pointer-events: auto;
  transition: opacity 460ms ease 160ms, transform 500ms var(--ease-out-expo) 160ms;
}

/* ==========================================================================
   STICKY 2D CAMERA RUNWAY & VIEWPORT STAGE
   ========================================================================== */
.journey-track {
  position: relative;
  width: 100%;
  height: 540dvh;
  background: #fcfdff;
}

@media (max-width: 767px) {
  .journey-track {
    height: 490dvh;
  }
}

.journey-camera-stage {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100dvh;
  overflow: hidden;
  background: #fcfdff;
}

/* Giant 2D Fine Dot-Paper World Panned by Smooth Camera Transform */
.journey-world {
  position: absolute;
  top: 0;
  left: 0;
  transform-origin: 0 0;
  background-color: #fcfdff;
  background-image:
    radial-gradient(rgba(109, 74, 255, 0.12) 1.1px, transparent 1.1px);
  background-size: 32px 32px;
  contain: layout style;
}

/* Soft Watercolor Prism Washes Anchored in 2D World Space (Gives Camera Motion Depth) */
.world-wash {
  position: absolute;
  width: min(760px, 95vw);
  height: min(760px, 95vw);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 1;
}

.world-wash.w-0 {
  background: radial-gradient(circle, rgba(109, 74, 255, 0.085) 0%, rgba(236, 47, 150, 0.045) 45%, transparent 72%);
}

.world-wash.w-1 {
  background: radial-gradient(circle, rgba(236, 47, 150, 0.085) 0%, rgba(109, 74, 255, 0.04) 48%, transparent 72%);
}

.world-wash.w-2 {
  background: radial-gradient(circle, rgba(11, 153, 230, 0.09) 0%, rgba(109, 74, 255, 0.04) 48%, transparent 72%);
}

.world-wash.w-3 {
  background: radial-gradient(circle, rgba(236, 47, 150, 0.08) 0%, rgba(11, 153, 230, 0.05) 50%, transparent 72%);
}

.world-wash.w-4 {
  background: radial-gradient(circle, rgba(109, 74, 255, 0.09) 0%, rgba(11, 153, 230, 0.05) 48%, transparent 72%);
}

/* ==========================================================================
   MULTI-PASS ORGANIC HAND-DRAWN SVG LAYER (Pure LUMI Colors, Zero Literal Pencil)
   ========================================================================== */
.journey-svg-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  pointer-events: none;
  z-index: 2;
  overflow: visible;
}

.journey-path-guide {
  fill: none;
  stroke: rgba(109, 74, 255, 0.11);
  stroke-width: 1.5;
  stroke-dasharray: 5 9;
  stroke-linecap: round;
}

.journey-path-halo {
  fill: none;
  stroke: url(#lumiPencilGrad);
  stroke-width: 12;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.14;
}

.journey-path-main {
  fill: none;
  stroke: url(#lumiPencilGrad);
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Companion offset hand-sketched stroke simulating colored-pencil pigment tooth on paper */
.journey-path-sketch {
  fill: none;
  stroke: url(#lumiPencilGrad);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.48;
}

/* Dry-brush subtle paper grain specks */
.journey-path-grain {
  fill: none;
  stroke: url(#lumiPencilGrad);
  stroke-width: 2.2;
  stroke-dasharray: 2 7 5 9 1 6;
  stroke-linecap: round;
  opacity: 0.3;
}

.pencil-tip-group {
  opacity: 0;
  transition: opacity 280ms ease;
}

.pencil-tip-group.is-active {
  opacity: 1;
}

/* ==========================================================================
   2D WORLD STATIONS (Positioned at Diagonal World Coordinates)
   ========================================================================== */
.world-station {
  position: absolute;
  z-index: 4;
  transform: translate(-50%, -50%);
  width: min(560px, calc(100vw - 2.2rem));
  display: grid;
  justify-items: center;
  gap: 1.1rem;
  text-align: center;
}

.world-station-intro {
  width: min(520px, calc(100vw - 2.2rem));
  gap: clamp(0.9rem, 2.2dvh, 1.4rem);
}

.orb-anchor {
  position: relative;
  width: clamp(148px, 34vw, 200px);
  height: clamp(148px, 34vw, 200px);
  display: grid;
  place-items: center;
}

.orb-soft-glow {
  position: absolute;
  inset: -16%;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(236, 47, 150, 0.2) 0%,
    rgba(109, 74, 255, 0.16) 44%,
    rgba(11, 153, 230, 0.1) 70%,
    transparent 80%
  );
  filter: blur(24px);
  pointer-events: none;
}

.orb-medallion {
  position: relative;
  z-index: 2;
  width: clamp(96px, 22vw, 132px);
  height: clamp(96px, 22vw, 132px);
  border-radius: 32%;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, #ffffff 0%, #f5f7fd 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.96);
  box-shadow:
    0 24px 54px -18px rgba(109, 74, 255, 0.24),
    0 10px 26px -10px rgba(236, 47, 150, 0.16);
}

.orb-medallion img {
  width: 74%;
  height: 74%;
  object-fit: contain;
}

.intro-wordmark {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 1.5rem + 2.6vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.04;
  color: var(--ink-primary);
}

.intro-tagline {
  font-size: clamp(0.98rem, 0.92rem + 0.35vw, 1.16rem);
  color: var(--ink-secondary);
  max-width: 34ch;
}

/* ==========================================================================
   PINNED BOTTOM HUD BAR INSIDE CAMERA STAGE (Subtle & Unobtrusive)
   ========================================================================== */
.journey-hud {
  position: absolute;
  left: 0;
  right: 0;
  bottom: max(1.1rem, env(safe-area-inset-bottom, 0px));
  z-index: 12;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.55rem 0.95rem;
  padding-inline: 1rem;
  pointer-events: none;
  transition: opacity 420ms ease, transform 420ms var(--ease-out-expo);
}

.journey-hud > * {
  pointer-events: auto;
}

.journey-hud.is-traveling .intro-scroll-hint {
  opacity: 0;
  max-width: 0;
  overflow: hidden;
  padding: 0;
  margin: 0;
  pointer-events: none;
}

.journey-hud.is-hidden {
  opacity: 0;
  transform: translate3d(0, 14px, 0);
  pointer-events: none;
}

.journey-hud.is-hidden > * {
  pointer-events: none;
}

.intro-scroll-hint {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-muted);
  white-space: nowrap;
  transition: opacity 320ms ease, max-width 320ms ease;
}

.auto-play-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 44px;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(203, 213, 225, 0.92);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--ink-primary);
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 22px -10px rgba(15, 23, 42, 0.16);
  transition: transform 180ms var(--ease-out-expo), border-color 150ms ease, background-color 150ms ease;
}

.auto-play-btn:hover {
  border-color: var(--lumi-violet);
  transform: translateY(-1px);
}

.auto-play-btn.is-running {
  background: var(--ink-primary);
  border-color: var(--ink-primary);
  color: #ffffff;
}

.skip-journey-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--ink-muted);
  text-decoration: none;
}

.skip-journey-link:hover {
  color: var(--ink-primary);
}

/* ==========================================================================
   STATION ANCHORS & VISUAL MODULE REVEALS
   ========================================================================== */
.stop-anchor {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid var(--lumi-violet);
  box-shadow: 0 0 0 6px rgba(109, 74, 255, 0.12);
  position: relative;
  z-index: 6;
  transition: transform 420ms var(--ease-out-expo), border-color 320ms ease, box-shadow 420ms ease;
}

.journey-stop.is-reached .stop-anchor {
  border-color: var(--lumi-magenta);
  transform: scale(1.24);
  box-shadow: 0 0 0 11px rgba(236, 47, 150, 0.16);
}

.stop-card-wrap {
  width: 100%;
  display: grid;
  gap: 0.9rem;
  min-width: 0;
  opacity: 0.16;
  filter: blur(6px);
  transform: translate3d(0, 22px, 0) scale(0.96);
  transition:
    opacity 680ms var(--ease-out-expo),
    filter 720ms var(--ease-out-expo),
    transform 740ms var(--ease-out-expo);
}

.journey-stop.is-reached .stop-card-wrap {
  opacity: 1;
  filter: blur(0px);
  transform: translate3d(0, 0, 0) scale(1);
}

.stop-heading-group {
  display: grid;
  gap: 0.3rem;
  text-align: center;
  justify-items: center;
}

.stop-heading-group h2 {
  font-size: clamp(1.38rem, 1.1rem + 1.4vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.stop-heading-group p {
  font-size: clamp(0.9rem, 0.86rem + 0.25vw, 1.04rem);
  color: var(--ink-secondary);
  max-width: 40ch;
}

/* Shared Glass-Paper Showcase Frame */
.visual-frame {
  position: relative;
  width: 100%;
  padding: clamp(0.9rem, 2.2vw, 1.4rem);
  border-radius: clamp(18px, 2.2vw, 24px);
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(211, 220, 235, 0.92);
  box-shadow:
    0 26px 58px -24px rgba(15, 23, 42, 0.14),
    0 8px 22px -10px rgba(109, 74, 255, 0.1);
  min-width: 0;
  text-align: left;
}

/* ==========================================================================
   STOP 1 VISUAL: Instant Pure-Code Site + Speed Gauge 99
   ========================================================================== */
.j-site-grid {
  display: grid;
  gap: 0.9rem;
  align-items: center;
}

@media (min-width: 560px) {
  .j-site-grid {
    grid-template-columns: minmax(0, 1.4fr) auto;
  }
}

.j-browser {
  border-radius: 16px;
  border: 1px solid var(--border-hairline);
  background: var(--surface-pearl);
  overflow: hidden;
}

.j-browser-bar {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.52rem 0.78rem;
  background: #ffffff;
  border-bottom: 1px solid var(--border-hairline);
}

.j-dot { width: 8px; height: 8px; border-radius: 50%; }
.j-dot.a { background: #ec2f96; }
.j-dot.b { background: #6d4aff; }
.j-dot.c { background: #0b99e6; }

.j-url {
  margin-left: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.j-browser-body {
  padding: 0.9rem;
  display: grid;
  gap: 0.58rem;
}

.j-skel {
  border-radius: 8px;
  transform-origin: 0 50%;
  transform: scaleX(0.35);
  opacity: 0;
  transition: transform 620ms var(--ease-out-expo), opacity 460ms ease;
}

.j-skel.h { height: 18px; width: 78%; background: var(--ink-primary); }
.j-skel.s { height: 10px; width: 60%; background: #cbd5e1; transition-delay: 110ms; }
.j-skel.cta { height: 28px; width: 46%; border-radius: var(--radius-pill); background: var(--lumi-prism); transition-delay: 200ms; }

.journey-stop.is-reached .j-skel.h { transform: scaleX(1); opacity: 0.88; }
.journey-stop.is-reached .j-skel.s { transform: scaleX(1); opacity: 1; }
.journey-stop.is-reached .j-skel.cta { transform: scaleX(1); opacity: 1; }

.j-speed-card {
  display: grid;
  justify-items: center;
  gap: 0.25rem;
  padding: 0.75rem 1rem;
  border-radius: 18px;
  background: var(--surface-pearl);
  border: 1px solid var(--border-hairline);
}

.j-ring-wrap {
  position: relative;
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
}

.j-ring-svg {
  width: 82px;
  height: 82px;
  transform: rotate(-90deg);
}

.j-ring-arc {
  stroke-dasharray: 226.2;
  stroke-dashoffset: 226.2;
  transition: stroke-dashoffset 1050ms var(--ease-out-expo) 150ms;
}

.journey-stop.is-reached .j-ring-arc {
  stroke-dashoffset: 3;
}

.j-score {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--ink-primary);
}

/* ==========================================================================
   STOP 2 VISUAL: Live LUMI CRM Showcase
   ========================================================================== */
.j-crm-grid {
  display: grid;
  gap: 0.78rem;
}

@media (min-width: 560px) {
  .j-crm-grid {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  }
}

.j-crm-list {
  display: grid;
  gap: 0.5rem;
  align-content: start;
}

.j-crm-item {
  padding: 0.68rem 0.78rem;
  border-radius: 14px;
  background: var(--surface-pearl);
  border: 1px solid var(--border-hairline);
  display: grid;
  gap: 0.4rem;
}

.j-crm-item .status-chip {
  font-size: 0.64rem;
  padding: 0.2rem 0.48rem;
  white-space: nowrap;
}

.j-crm-price {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.j-crm-item.is-hot {
  background: #fdf6fa;
  border-color: rgba(236, 47, 150, 0.34);
}

.j-crm-top {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.j-av {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: #ffffff;
  flex-shrink: 0;
}

.j-av.a { background: linear-gradient(135deg, #ec2f96, #7b4dff); }
.j-av.b { background: linear-gradient(135deg, #6d4aff, #0b99e6); }

.j-crm-chat {
  padding: 0.78rem;
  border-radius: 16px;
  background: #f8fafe;
  border: 1px solid var(--border-hairline);
  display: grid;
  gap: 0.5rem;
  align-content: start;
}

.j-bubble {
  padding: 0.52rem 0.72rem;
  border-radius: 14px;
  font-size: 0.8rem;
  line-height: 1.42;
  max-width: 94%;
}

.j-bubble.in {
  justify-self: start;
  background: #ffffff;
  color: var(--ink-primary);
  border: 1px solid var(--border-hairline);
  border-bottom-left-radius: 4px;
}

.j-bubble.out {
  justify-self: end;
  background: var(--lumi-violet);
  color: #ffffff;
  border-bottom-right-radius: 4px;
}

/* ==========================================================================
   STOP 3 VISUAL: Living Dashboard Bars & Forecast Curve
   ========================================================================== */
.j-chart-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  margin-bottom: 0.8rem;
}

.j-kpi {
  padding: 0.6rem 0.72rem;
  border-radius: 14px;
  background: var(--surface-pearl);
  border: 1px solid var(--border-hairline);
}

.j-kpi span { display: block; font-size: 0.7rem; color: var(--ink-muted); }
.j-kpi strong { font-family: var(--font-mono); font-size: clamp(0.88rem, 0.8rem + 0.45vw, 1.18rem); color: var(--ink-primary); }

.j-chart-svg {
  width: 100%;
  height: auto;
  aspect-ratio: 560 / 160;
  max-height: 175px;
  overflow: visible;
}

.j-bar {
  transform-box: fill-box;
  transform-origin: bottom;
  transform: scaleY(0.06);
  transition: transform 720ms var(--ease-out-expo);
}

.journey-stop.is-reached .j-bar { transform: scaleY(1); }
.journey-stop.is-reached .j-bar:nth-of-type(2) { transition-delay: 80ms; }
.journey-stop.is-reached .j-bar:nth-of-type(3) { transition-delay: 160ms; }
.journey-stop.is-reached .j-bar:nth-of-type(4) { transition-delay: 240ms; }
.journey-stop.is-reached .j-bar:nth-of-type(5) { transition-delay: 320ms; }

.j-trend-line {
  stroke-dasharray: 460;
  stroke-dashoffset: 460;
  transition: stroke-dashoffset 1150ms var(--ease-out-expo) 220ms;
}

.journey-stop.is-reached .j-trend-line {
  stroke-dashoffset: 0;
}

/* ==========================================================================
   STOP 4 VISUAL: Private Smartphone PWA & Terminal Anchor
   ========================================================================== */
.j-phone-wrap {
  display: grid;
  justify-items: center;
}

.j-phone {
  width: min(262px, 78vw);
  padding: 0.68rem;
  border-radius: 30px;
  background: #0f172a;
  box-shadow:
    0 28px 60px -22px rgba(15, 23, 42, 0.34),
    0 12px 26px -10px rgba(109, 74, 255, 0.24);
}

.j-phone-screen {
  border-radius: 22px;
  background: #ffffff;
  padding: 0.8rem;
  display: grid;
  gap: 0.6rem;
  text-align: left;
}

.j-notch {
  width: 62px;
  height: 13px;
  border-radius: 99px;
  background: #0f172a;
  margin-inline: auto;
}

.journey-end-anchor {
  position: absolute;
  z-index: 6;
  width: 16px;
  height: 16px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--lumi-prism);
  box-shadow: 0 0 0 9px rgba(109, 74, 255, 0.16);
}

/* Compact vertical fit on short landscape phone screens */
@media (max-height: 620px) {
  .world-station {
    gap: 0.6rem;
  }

  .stop-heading-group h2 {
    font-size: 1.2rem;
  }

  .stop-heading-group p {
    font-size: 0.84rem;
  }

  .visual-frame {
    padding: 0.72rem;
  }
}

/* ==========================================================================
   REDUCED MOTION ACCESSIBILITY: Clean Static Vertical Flow & Visible Header
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  body.home-cinema .site-header,
  body.home-cinema .cookie-banner,
  body.home-cinema .scroll-progress {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    pointer-events: auto !important;
  }

  .journey-track {
    height: auto !important;
  }

  .journey-camera-stage {
    position: relative !important;
    height: auto !important;
    overflow: visible !important;
  }

  .journey-world {
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    transform: none !important;
    display: grid;
    justify-items: center;
    gap: 3.5rem;
    padding: 6rem 1.1rem 4rem;
  }

  .world-station {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
  }

  .journey-svg-layer,
  .world-wash,
  .journey-end-anchor,
  .journey-hud {
    display: none !important;
  }

  .stop-card-wrap {
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
  }

  .j-skel,
  .j-ring-arc,
  .j-bar,
  .j-trend-line {
    opacity: 1 !important;
    transform: none !important;
    stroke-dashoffset: 0 !important;
    transition: none !important;
  }
}
