/* Scroll-linked project journey chrome (wizard + stages). Stage interiors use project_workflow.css. */

/* Wizard + optional credit strip stick as one unified product-value shell. */
.gs-journey-sticky-chrome {
  position: sticky;
  top: 0;
  z-index: 40;
  margin: 1.25rem auto 0.85rem;
  max-width: 100%;
  padding: 0.55rem 0.75rem 0.75rem;
  background:
    linear-gradient(180deg, #f7f2fc 0%, #efe8f7 55%, #e8dff4 100%);
  border-radius: 0 0 18px 18px;
  box-shadow:
    0 8px 20px rgba(60, 7, 119, 0.08),
    0 1px 0 rgba(255, 255, 255, 0.65) inset;
}

.gs-journey-wizard {
  background: transparent;
  border-bottom: none;
  padding: 0.15rem 0.25rem 0.55rem;
  margin: 0;
}

.gs-journey-wizard__label {
  margin: 0 0 0.45rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #3c0777;
  text-align: center;
}

.gs-journey-wizard__steps {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.35rem 0.5rem;
  margin: 0;
  padding: 0.15rem 0 0;
  position: relative;
}

/* Soft ritual connector — product value path behind the pills (hidden when steps wrap). */
.gs-journey-wizard__steps::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: 50%;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(106, 13, 173, 0.12),
    rgba(0, 128, 128, 0.28),
    rgba(106, 13, 173, 0.12)
  );
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 0;
}

.gs-journey-wizard__steps > li {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
}

/* Tiny ritual nodes peeking beside pills (setup → cleanup cue). */
.gs-journey-wizard__steps > li::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  margin-right: -0.15rem;
  border-radius: 50%;
  background: #6a0dad;
  opacity: 0.35;
  flex-shrink: 0;
  pointer-events: none;
}

.gs-journey-wizard__steps > li:first-child::before {
  display: none;
}

.gs-journey-wizard__steps button {
  appearance: none;
  border: 2px solid transparent;
  background: #fff;
  color: #08020f;
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 1px 0 rgba(8, 2, 15, 0.06);
}

.gs-journey-wizard__steps button[aria-current="step"] {
  background: #fdb515;
  border-color: #08020f;
  box-shadow: 0 2px 0 rgba(8, 2, 15, 0.12);
}

.gs-journey-wizard__steps button:focus-visible {
  outline: 3px solid #008080;
  outline-offset: 2px;
}

@media (max-width: 640px) {
  .gs-journey-wizard__steps::before,
  .gs-journey-wizard__steps > li::before {
    display: none;
  }
}

.gs-journey-rail {
  list-style: none;
  margin: 1.5rem auto 0;
  padding: 0;
}

.gs-journey-stage__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
}

.gs-journey-stage__head .gs-messy-toggle-wrap {
  margin-left: auto;
}

.gs-journey-stage__head .gs-messy-toggle.form-check.form-switch {
  align-items: center;
}

.gs-journey-stage__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: #6a0dad;
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
}

.gs-journey-ready-cta {
  background: #d2e9e9;
  border-radius: 14px;
  padding: 1.25rem 1rem;
}

/* Case 4 credit strip — nested cream panel inside sticky shell */
.gs-journey-credit-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem 1rem;
  margin: 0.15rem auto 0;
  padding: 0.7rem 0.9rem;
  max-width: 960px;
  background: #fff8e7;
  border: 2px solid #fdb515;
  border-radius: 14px;
  box-shadow: 0 2px 0 rgba(8, 2, 15, 0.05);
}

.gs-journey-credit-strip__copy {
  color: #3c0777;
  font-size: 0.9rem;
  line-height: 1.35;
  flex: 1 1 14rem;
}

.gs-journey-credit-strip__meta {
  margin-top: 0.15rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #5c5470;
}

.gs-journey-credit-strip__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.gs-journey-gate-sell {
  width: 100%;
  max-width: 28rem;
  margin: 0 auto;
  padding: 1rem 1.1rem;
  text-align: center;
  background: #fff;
  border: 2px solid #fdb515;
  border-radius: 14px;
  box-shadow: 0 4px 0 rgba(8, 2, 15, 0.06);
}

.gs-journey-gate-sell--full {
  max-width: 32rem;
  text-align: left;
}

.gs-journey-gate-sell--full .gs-journey-gate-sell__title,
.gs-journey-gate-sell--full .gs-journey-gate-sell__outcome,
.gs-journey-gate-sell--full .gs-journey-gate-sell__eyebrow {
  text-align: center;
}

.gs-journey-gate-sell__eyebrow {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #008080;
}

.gs-journey-gate-sell__title {
  color: #3c0777;
  line-height: 1.25;
}

.gs-journey-gate-sell__outcome {
  font-size: 0.95rem;
  line-height: 1.4;
  color: #2a2438;
}

.gs-journey-gate-sell__meta {
  font-size: 0.8rem;
  font-weight: 600;
  color: #5c5470;
}

.gs-journey-gate-sell .paywall-step__benefits {
  margin-bottom: 0.75rem;
}

.gs-journey-parent-payoff {
  padding: 0.85rem 1rem;
  background: #d2e9e9;
  border-radius: 12px;
  border: 1px solid #b6e2dc;
  color: #004d4d;
}

.gs-journey-parent-payoff--row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
}

.gs-journey-parent-payoff__copy {
  flex: 1 1 14rem;
  min-width: 0;
}

.gs-journey-credit-strip--soft {
  background: #f3eef9;
  border-color: #c4b5e0;
}

.gs-journey-save-climax--soft {
  padding: 1.25rem 1rem;
  background: #fff8e7;
  border: 2px solid #fdb515;
  border-radius: 14px;
}

.gs-journey-save-climax__chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
}

.gs-journey-save-climax__chip {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: #f5f3ff;
  border: 1px solid #ddd6fe;
  color: #3c0777;
}

/* Buddy avatar + encouragement strip inside embedded journey stages */
.gs-journey-buddy-subheader .gs-project-buddy-moment {
  max-width: none;
}

.gs-journey-stage .gs-workflow-hunt-header,
.gs-journey-stage .gs-workflow-instructions-header {
  margin-top: 0.25rem;
}

/* Stage already has .bordered chrome — don't nest another shadowed card. */
.gs-journey-stage .gs-instructions-steps-panel {
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}

/* Full-page wait while credit Start / Make again establishes a session */
.gs-journey-unlock-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(8, 2, 15, 0.45);
  backdrop-filter: blur(2px);
}

.gs-journey-unlock-overlay.d-none {
  display: none !important;
}

.gs-journey-unlock-overlay__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  max-width: 20rem;
  padding: 1.5rem 1.75rem;
  background: #fff;
  border-radius: 16px;
  border: 2px solid #efe8f7;
  box-shadow: 0 1rem 2.5rem rgba(8, 2, 15, 0.2);
  text-align: center;
}

.gs-journey-unlock-overlay__spinner {
  width: 2.5rem;
  height: 2.5rem;
  color: #008080;
  border-width: 0.25em;
}

.gs-journey-unlock-overlay__label {
  font-weight: 700;
  color: #3c0777;
  font-size: 1.05rem;
  line-height: 1.35;
}

body.gs-journey-unlock-busy {
  overflow: hidden;
}
