/* ─── chart-journey.css ───────────────────────────────────────────────
   The Doorway carousel that runs on /chart before the body graph reveals.
   Scoped to .cj-* selectors so it cannot collide with signal.css or any
   bodygraph styles. Lifts the gold-frame visual lineage from signal.css
   without referencing or @import-ing .sn-* selectors. */

.cj-stage {
  position: relative;
  width: 100%;
  max-width: 760px;
  margin: 2rem auto 3rem;
  padding: 1rem 0 3rem;
  opacity: 1;
  transition: opacity 200ms ease-out;
  outline: none;
}
.cj-stage.cj-fade-out {
  opacity: 0;
  pointer-events: none;
}

.cj-skip {
  position: absolute;
  top: -0.5rem;
  right: 1rem;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  text-decoration: underline;
  cursor: pointer;
  font-size: 0.85rem;
  font-family: inherit;
  padding: 0.5rem 0.25rem;
  z-index: 2;
}
.cj-skip:hover {
  color: var(--accent);
}

.cj-track {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 1rem 1.25rem;
  -webkit-overflow-scrolling: touch;
}
.cj-track::-webkit-scrollbar {
  display: none;
}

.cj-card {
  flex: 0 0 100%;
  scroll-snap-align: center;
  background: var(--bg-card, #1a1a24);
  border: 1px solid var(--border, rgba(196, 154, 108, 0.25));
  border-radius: 18px;
  box-shadow: 0 0 0 1px rgba(196, 154, 108, 0.18) inset,
              0 12px 32px rgba(0, 0, 0, 0.35);
  padding: 2.75rem 2rem 2rem;
  min-height: 560px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: center;
  position: relative;
}

/* Eyebrow */
.cj-card .cj-eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-secondary, #8a8294);
  margin-bottom: 1.5rem;
}

/* Glyph row */
.cj-card .cj-glyph {
  font-size: 5rem;
  color: var(--accent, #c49a6c);
  line-height: 1;
  margin: 0 0 1.25rem;
  font-family: serif; /* astrological glyphs render cleanly in serif */
}
.cj-card .cj-glyph-row {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}
.cj-card .cj-glyph-row span {
  display: inline-block;
}

/* Headline */
.cj-card .cj-headline {
  font-family: var(--font-heading, 'Cormorant Garamond', serif);
  font-size: 2.1rem;
  line-height: 1.18;
  color: var(--text-primary, #e8e3d8);
  white-space: pre-line;
  margin: 0.4rem 0 1.4rem;
  font-weight: 500;
  letter-spacing: -0.005em;
}

/* Body paragraphs */
.cj-card .cj-body {
  color: var(--text-secondary, #b4a99b);
  font-size: 0.98rem;
  line-height: 1.55;
  max-width: 32rem;
  margin: 0 auto 1.2rem;
  text-align: left;
}
.cj-card .cj-body p {
  margin: 0 0 0.85rem;
}
.cj-card .cj-body p:last-child {
  margin-bottom: 0;
}

/* Gate chip + closing meta chips */
.cj-card .cj-gate-chip {
  display: inline-block;
  margin: 1rem 0.25rem 0;
  padding: 0.45rem 0.95rem;
  border: 1px solid var(--border, rgba(196, 154, 108, 0.3));
  border-radius: 999px;
  color: var(--accent, #c49a6c);
  font-family: var(--font-mono, 'Iosevka', monospace);
  font-size: 0.86rem;
  letter-spacing: 0.04em;
  background: rgba(196, 154, 108, 0.06);
}
.cj-card .cj-chip-row {
  margin-top: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
}
.cj-card .cj-meta-chip {
  background: rgba(196, 154, 108, 0.12);
}

/* Closing-card label lines (no terminal periods, by design) */
.cj-card .cj-closing-lines {
  margin: 1.25rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border, rgba(196, 154, 108, 0.25));
}
.cj-card .cj-closing-lines p {
  margin: 0.2rem 0;
  font-family: var(--font-heading, 'Cormorant Garamond', serif);
  font-size: 1.15rem;
  color: var(--accent, #c49a6c);
  letter-spacing: 0.03em;
}

/* CTA */
.cj-card .cj-cta {
  margin: auto auto 0;
  margin-top: 2rem;
  background: var(--accent, #c49a6c);
  color: var(--bg-deep, #0e0e16);
  border: none;
  padding: 0.85rem 1.85rem;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-body, system-ui), sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  min-width: 12rem;
  transition: transform 80ms ease-out, box-shadow 80ms ease-out;
}
.cj-card .cj-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(196, 154, 108, 0.35);
}
.cj-card .cj-cta:active {
  transform: translateY(0);
}

/* Welcome card visual flourish */
.cj-card.cj-card-kind-welcome::before {
  content: '☉';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 18rem;
  color: var(--accent, #c49a6c);
  opacity: 0.06;
  pointer-events: none;
  z-index: 0;
  font-family: serif;
}
.cj-card.cj-card-kind-welcome > * {
  position: relative;
  z-index: 1;
}

/* Dots */
.cj-dots {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 1.25rem;
}
.cj-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--text-muted, #4a4754);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 120ms ease-out, transform 120ms ease-out;
}
.cj-dot:hover {
  transform: scale(1.25);
}
.cj-dot[aria-current="true"] {
  background: var(--accent, #c49a6c);
  width: 18px;
}

/* Reveal animation on the post-carousel #chart-result */
.cj-reveal-in {
  animation: cj-reveal 400ms ease-out;
}
@keyframes cj-reveal {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Mobile */
@media (max-width: 640px) {
  .cj-stage {
    margin: 1rem auto 2rem;
    padding: 0.75rem 0 2rem;
  }
  .cj-card {
    padding: 1.75rem 1.25rem 1.5rem;
    min-height: 480px;
    border-radius: 14px;
  }
  .cj-card .cj-headline {
    font-size: 1.55rem;
    margin: 0.3rem 0 1rem;
  }
  .cj-card .cj-glyph {
    font-size: 3.75rem;
    margin-bottom: 1rem;
  }
  .cj-card .cj-body {
    font-size: 0.92rem;
  }
  .cj-card .cj-closing-lines p {
    font-size: 1rem;
  }
  .cj-card .cj-cta {
    padding: 0.75rem 1.4rem;
    min-width: 10rem;
  }
  .cj-skip {
    right: 0.75rem;
    top: -0.25rem;
  }
}
