/* ==========================================================================
   roamcheaper.in — the journey
   A scroll-driven leg of the page. The phone stays pinned in your hand
   while the world moves: a navigation ring rotates behind it, and each
   chapter re-lands the phone in a new country with its real network and
   fare. The scroll is the trip.
   ========================================================================== */

.journey {
  position: relative;
  border-top: 1px solid var(--rule-soft);
}

.j-head {
  max-width: var(--max);
  margin-inline: auto;
  padding: clamp(3.5rem, 7vw, 5.5rem) var(--gut) 0;
}

.j-grid {
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gut);
  display: grid;
  gap: clamp(1.5rem, 4vw, 4rem);
}
@media (min-width: 62rem) {
  .j-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 30rem); }
}

/* --------------------------------------------------------------------------
   The scrolling chapters (left column)
   -------------------------------------------------------------------------- */

.j-chapters {
  list-style: none;
  margin: 0;
  padding: 0;
}

.j-chapter {
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: 3rem;
  opacity: .18;
  transform: translateY(14px);
  transition: opacity .5s var(--ease-out), transform .5s var(--ease-out);
}
.j-chapter.is-active { opacity: 1; transform: none; }
html.no-motion .j-chapter { opacity: 1; transform: none; min-height: 0; padding-block: 2rem; }

.j-leg {
  display: flex;
  align-items: center;
  gap: .7rem;
  font: 700 .68rem/1 var(--mono);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1.1rem;
}
.j-leg::before {
  content: '';
  width: 2rem;
  height: 2px;
  background: var(--red);
}
.j-leg .j-km { color: var(--ink-faint); letter-spacing: .12em; }

.j-name {
  font-family: var(--black);
  font-size: clamp(2.6rem, 1.2rem + 6vw, 5.6rem);
  letter-spacing: -.04em;
  line-height: .95;
  margin: 0 0 1rem;
}
.j-name a {
  color: var(--ink);
  text-decoration: none;
  transition: color .2s ease;
}
.j-name a:hover { color: var(--red); }
.j-name .j-flag { font-size: .7em; vertical-align: .06em; margin-left: .15em; }

.j-facts {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .4rem 1.1rem;
  font: 500 .85rem/1.5 var(--mono);
  color: var(--ink-soft);
  margin: 0 0 .9rem;
}
.j-facts b { font-size: 1.35em; color: var(--red); letter-spacing: -.02em; }
.j-facts .sigbars { color: var(--green); }

.j-line {
  max-width: 26rem;
  color: var(--ink-soft);
  font-size: .98rem;
  margin: 0 0 1.4rem;
}

.j-cta {
  display: inline-block;
  align-self: flex-start;
  font: 600 .88rem/1 var(--sans);
  color: var(--ink);
  text-decoration: none;
  padding: .7rem 1rem;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  transition: transform .15s var(--ease-spring), background-color .15s ease,
              color .15s ease, border-color .15s ease;
}
.j-cta:hover {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
  transform: translateY(-2px);
}

/* the closing chapter */
.j-chapter.is-end .j-name { font-size: clamp(2rem, 1rem + 4vw, 4rem); }

/* --------------------------------------------------------------------------
   The pinned stage (right column)
   -------------------------------------------------------------------------- */

.j-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.j-scene {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
}

/* navigation ring behind the phone */
.j-ring {
  position: absolute;
  width: min(44rem, 150%);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid var(--rule);
  will-change: transform;
}
.j-ring::before {
  content: '';
  position: absolute;
  inset: 3.2rem;
  border-radius: 50%;
  border: 1px dashed var(--rule-soft);
}

.j-tick {
  position: absolute;
  left: 50%;
  top: 0;
  width: 1px;
  height: .55rem;
  background: var(--rule);
  transform-origin: 50% calc(min(44rem, 150vw) / 2);
}

.j-city {
  position: absolute;
  left: 50%;
  top: 1.1rem;
  translate: -50% 0;
  font: 700 .6rem/1 var(--mono);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-faint);
  white-space: nowrap;
  transform-origin: 50% calc(min(44rem, 150vw) / 2 - 1.1rem);
  transition: color .3s ease;
}
.j-city.is-here { color: var(--red); }
.j-city.is-here::after {
  content: '';
  display: block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--red);
  margin: .3rem auto 0;
}

/* the journey phone reuses .phone / .phone-screen wholesale */
.j-scene .phone {
  animation: none;
  transform: rotateZ(0deg);
  width: min(100%, 17.5rem);
  z-index: 2;
}

/* leg meter under the phone */
.j-meter {
  position: absolute;
  bottom: clamp(1rem, 4vh, 2.4rem);
  left: 50%;
  translate: -50% 0;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: .8rem;
  font: 700 .68rem/1 var(--mono);
  letter-spacing: .18em;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: .5rem .9rem;
  box-shadow: var(--shadow);
  white-space: nowrap;
}
.j-meter .j-meter-km { color: var(--ink-faint); letter-spacing: .1em; }
.j-meter .j-meter-bar {
  width: 4.5rem;
  height: 3px;
  border-radius: 2px;
  background: var(--rule-soft);
  overflow: hidden;
}
.j-meter .j-meter-fill {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--red);
  transition: width .3s var(--ease-out);
}

/* --------------------------------------------------------------------------
   Small screens: compact sticky status bar instead of the second phone
   -------------------------------------------------------------------------- */

@media (max-width: 61.99rem) {
  .j-stage { display: none; }

  .j-mobilebar {
    position: sticky;
    top: .6rem;
    z-index: 5;
    margin: 0 auto 1rem;
    width: fit-content;
    max-width: calc(100% - 2rem);
    display: flex;
    align-items: center;
    gap: .6rem;
    background: var(--board);
    color: var(--board-txt);
    border-radius: 999px;
    padding: .55rem 1rem;
    font: 700 .7rem/1 var(--mono);
    letter-spacing: .08em;
    box-shadow: var(--shadow-lift);
  }
  .j-mobilebar .sigbars { color: #4ade80; }
  .j-mobilebar .jm-price { color: var(--red-glow); }
  .j-chapter { min-height: 74vh; }
}
@media (min-width: 62rem) {
  .j-mobilebar { display: none; }
}

html.no-motion .j-ring { display: none; }
