/* =========================================================
   VibeStudy Phase 1 additions — Signal Paths + Vee companion
========================================================= */
.study-signal-path,
.study-vee-companion,
.next-signal-block,
.quest-next-path {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background:
    radial-gradient(circle at 14% 18%, rgba(82, 255, 224, 0.16), transparent 30%),
    radial-gradient(circle at 84% 76%, rgba(185, 150, 255, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.045));
  box-shadow: 0 22px 70px rgba(0,0,0,.20);
}

.study-signal-path {
  margin: clamp(24px, 4vw, 46px) 0;
  padding: clamp(24px, 4vw, 38px);
  border-radius: 32px;
}

.study-signal-path__header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 20px;
}

.study-signal-path__header h2,
.study-vee-copy h2 {
  margin: 6px 0 8px;
}

.study-signal-path__header p {
  max-width: 760px;
  margin: 0;
  color: var(--muted, #b8c9e8);
}

.study-path-grid,
.quest-next-path__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.study-path-card,
.quest-next-path__card,
.next-signal-block a {
  color: var(--text, #f7fbff);
  text-decoration: none;
}

.study-path-card,
.quest-next-path__card {
  min-height: 160px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px;
  border-radius: 24px;
  background: rgba(6, 14, 36, .62);
  border: 1px solid rgba(255,255,255,.12);
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.study-path-card:hover,
.quest-next-path__card:hover,
.next-signal-block a:hover {
  transform: translateY(-3px);
  border-color: rgba(82,255,224,.42);
  background: rgba(13,28,68,.76);
}

.study-path-card span,
.quest-next-path__card span {
  width: 46px;
  height: 46px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: rgba(82,255,224,.12);
  border: 1px solid rgba(82,255,224,.22);
  font-size: 1.35rem;
}

.study-path-card strong,
.quest-next-path__card strong {
  display: block;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 1.05rem;
}

.study-path-card small,
.quest-next-path__card small {
  color: var(--muted, #b8c9e8);
  line-height: 1.45;
}

.study-vee-companion {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(260px, .95fr);
  gap: clamp(22px, 4vw, 42px);
  align-items: center;
  margin: clamp(24px, 4vw, 46px) 0;
  padding: clamp(24px, 4vw, 40px);
  border-radius: 32px;
}

.study-vee-copy p {
  max-width: 760px;
}

.study-vee-actions,
.next-signal-links,
.quest-next-path__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.study-vee-orb {
  position: relative;
  min-height: 260px;
  display: grid;
  place-items: center;
}

.study-vee-orb::before,
.study-vee-orb::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 43%;
  width: min(380px, 88%);
  height: 145px;
  border: 1.8px solid rgba(244,251,255,.62);
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(23deg);
  box-shadow: 0 0 26px rgba(106,242,255,.14);
}

.study-vee-orb::after {
  transform: translate(-50%, -50%) rotate(-29deg);
  border-color: rgba(185,150,255,.58);
}

.study-vee-core {
  position: relative;
  z-index: 2;
  width: 124px;
  height: 124px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 34% 26%, rgba(255,255,255,.98) 0%, rgba(221,251,255,.98) 12%, rgba(106,242,255,.94) 31%, rgba(47,109,255,.92) 56%, rgba(138,92,255,.88) 77%, rgba(255,123,229,.84) 100%);
  box-shadow: 0 0 42px rgba(106,242,255,.45), 0 0 88px rgba(47,109,255,.36), 0 0 128px rgba(138,92,255,.28), inset 0 0 28px rgba(255,255,255,.22);
}

.study-vee-core img {
  width: 82%;
  height: 82%;
  object-fit: contain;
  border-radius: 999px;
}

.study-vee-note {
  position: relative;
  z-index: 3;
  width: min(100%, 350px);
  margin-top: 162px;
  padding: 15px 18px;
  border-radius: 22px;
  background: rgba(5, 9, 25, .70);
  border: 1px solid rgba(82,255,224,.22);
  color: var(--text, #f7fbff);
}

.study-vee-note strong,
.next-signal-block strong,
.quest-next-path__header strong {
  display: block;
  margin-bottom: 5px;
}

.study-vee-note span,
.next-signal-block p,
.quest-next-path__header p {
  color: var(--muted, #b8c9e8);
}

.next-signal-block {
  margin: 22px 0 18px;
  padding: 18px;
  border-radius: 22px;
}

.next-signal-links a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(82,255,224,.10);
  border: 1px solid rgba(82,255,224,.20);
  font-weight: 800;
}

.quest-next-path {
  margin-top: 24px;
  padding: clamp(22px, 4vw, 34px);
  border-radius: 28px;
}

.quest-next-path__header {
  margin-bottom: 18px;
}

.quest-next-path__grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}



/* Fix: make guidance links readable and keep Vee centred inside the orb. */
.study-discover-link {
  color: var(--teal, #52ffe0) !important;
  font-weight: 950;
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 1px solid rgba(82,255,224,.52);
  text-shadow: 0 0 18px rgba(82,255,224,.22);
}

.study-discover-link:hover,
.study-discover-link:focus-visible {
  color: #ffffff !important;
  border-bottom-color: #ffffff;
}

.study-vee-orb {
  min-height: 360px;
  display: block;
}

.study-vee-orb::before,
.study-vee-orb::after {
  top: 41%;
  width: min(390px, 86%);
  height: 152px;
}

.study-vee-core {
  position: absolute;
  left: 50%;
  top: 41%;
  transform: translate(-50%, -50%);
  width: 132px;
  height: 132px;
  overflow: hidden;
}

.study-vee-core img {
  width: 88px;
  height: 88px;
  object-fit: contain;
  object-position: center;
  border-radius: 0;
}

.study-vee-note {
  position: absolute;
  left: 50%;
  bottom: 6px;
  transform: translateX(-50%);
  width: min(100%, 360px);
  margin-top: 0;
}

@media (max-width: 1080px) {
  .study-path-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .study-vee-companion { grid-template-columns: 1fr; }
  .quest-next-path__grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .study-signal-path__header { align-items: start; flex-direction: column; }
  .study-path-grid { grid-template-columns: 1fr; }
  .study-path-card { min-height: auto; }
  .study-vee-orb { min-height: 230px; }
  .study-vee-core { width: 104px; height: 104px; }

  .study-discover-link { white-space: normal; }
  .study-vee-orb { min-height: 310px; }
  .study-vee-core { width: 112px; height: 112px; }
  .study-vee-core img { width: 78px; height: 78px; }
  .study-vee-note { position: absolute; bottom: 0; }

  .study-vee-orb::before,
  .study-vee-orb::after { width: min(290px, 92vw); height: 120px; }
}


/* =========================================================
   VibeStudy Phase 3 additions — Interactive Signal Paths
========================================================= */
.study-path-card.is-selected {
  border-color: rgba(82,255,224,.72);
  background:
    radial-gradient(circle at 20% 20%, rgba(82,255,224,.18), transparent 34%),
    rgba(13,28,68,.82);
  box-shadow: 0 18px 42px rgba(82,255,224,.10);
}

.study-path-panel {
  margin-top: 20px;
  padding: clamp(18px, 3vw, 26px);
  border-radius: 28px;
  background:
    radial-gradient(circle at 12% 18%, rgba(82,255,224,.16), transparent 30%),
    radial-gradient(circle at 86% 76%, rgba(185,150,255,.18), transparent 34%),
    rgba(5, 12, 34, .58);
  border: 1px solid rgba(82,255,224,.24);
  box-shadow: 0 22px 70px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.08);
}
.study-path-panel[hidden] { display: none; }
.study-path-panel__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; margin-bottom: 18px; }
.study-path-panel__eyebrow { display: inline-flex; align-items: center; gap: 8px; color: #52ffe0; font-weight: 950; letter-spacing: .08em; text-transform: uppercase; font-size: .78rem; }
.study-path-panel h3 { margin: 8px 0 8px; font-family: "Space Grotesk", Inter, sans-serif; font-size: clamp(1.35rem, 2.2vw, 2rem); }
.study-path-panel p { margin: 0; max-width: 760px; color: var(--muted, #b8c9e8); }
.study-path-panel__close { width: 40px; height: 40px; border-radius: 999px; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.08); color: var(--text, #f7fbff); font-weight: 950; cursor: pointer; }
.study-path-panel__steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.study-path-step, .study-path-vee { min-height: 132px; padding: 16px; border-radius: 22px; background: rgba(6, 14, 36, .68); border: 1px solid rgba(255,255,255,.12); color: var(--text, #f7fbff); text-decoration: none; display: flex; flex-direction: column; gap: 8px; transition: transform .2s ease, border-color .2s ease, background .2s ease; }
.study-path-step:hover, .study-path-step:focus-visible, .study-path-vee:hover, .study-path-vee:focus-visible { transform: translateY(-3px); border-color: rgba(82,255,224,.50); background: rgba(13,28,68,.82); }
.study-path-step__number, .study-path-vee__icon { width: 42px; height: 42px; border-radius: 16px; display: grid; place-items: center; background: rgba(82,255,224,.12); border: 1px solid rgba(82,255,224,.22); color: #52ffe0; font-weight: 950; }
.study-path-step strong, .study-path-vee strong { font-family: "Space Grotesk", Inter, sans-serif; font-size: 1rem; }
.study-path-step small, .study-path-vee small { color: var(--muted, #b8c9e8); line-height: 1.45; }
.study-path-panel__actions { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 12px; }
.study-path-panel__actions a, .study-path-panel__actions button { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 10px 14px; border-radius: 999px; border: 1px solid rgba(82,255,224,.24); background: rgba(82,255,224,.10); color: #52ffe0 !important; font-weight: 950; text-decoration: none; cursor: pointer; }
@media (max-width: 1080px) { .study-path-panel__steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .study-path-panel__top { flex-direction: column; } .study-path-panel__steps { grid-template-columns: 1fr; } .study-path-step, .study-path-vee { min-height: auto; } }


/* =========================================================
   Regression fix — keep Vee/Discover links bold green
========================================================= */
.study-vee-actions a,
.study-vee-actions .btn,
.study-vee-actions .btn-primary,
.study-vee-actions .btn-secondary,
.study-discover-link,
.signal-vee-prompt__link,
.next-signal-links a[href*="vibeai"],
.quest-next-path__card[href*="vibeai"] strong,
.study-path-vee strong,
.study-path-panel__actions a[href*="vibeai"],
.study-path-panel__actions a[href*="discover-your-signal"] {
  color: #52ffe0 !important;
  font-weight: 950 !important;
  text-decoration: none !important;
  text-shadow: 0 0 18px rgba(82,255,224,.22);
}

.study-vee-actions a,
.study-path-panel__actions a[href*="vibeai"],
.study-path-panel__actions a[href*="discover-your-signal"] {
  border-color: rgba(82,255,224,.45) !important;
  background: rgba(82,255,224,.10) !important;
}

.study-vee-actions a:hover,
.study-vee-actions a:focus-visible,
.study-discover-link:hover,
.study-discover-link:focus-visible,
.signal-vee-prompt__link:hover,
.signal-vee-prompt__link:focus-visible,
.study-path-panel__actions a[href*="vibeai"]:hover,
.study-path-panel__actions a[href*="discover-your-signal"]:hover {
  color: #ffffff !important;
  border-color: rgba(255,255,255,.72) !important;
}



/* =========================================================
   VibeStudy Phase 5 additions — Signal Collection + Progress
========================================================= */
.study-progress,
.study-signal-collection,
.study-final-collection {
  position: relative;
  overflow: hidden;
  margin: clamp(22px, 4vw, 42px) 0;
  padding: clamp(20px, 3vw, 30px);
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background:
    radial-gradient(circle at 12% 18%, rgba(82,255,224,.14), transparent 32%),
    radial-gradient(circle at 88% 72%, rgba(185,150,255,.14), transparent 36%),
    linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,.04));
  box-shadow: 0 20px 58px rgba(0,0,0,.18);
}

.study-progress {
  margin-top: clamp(18px, 3vw, 32px);
}

.study-progress__header,
.study-signal-collection__header,
.study-final-collection__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
  margin-bottom: 16px;
}

.study-progress__header strong {
  color: #52ffe0;
  font-weight: 950;
  text-shadow: 0 0 18px rgba(82,255,224,.20);
}

.study-progress__bar {
  height: 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.12);
  overflow: hidden;
}

.study-progress__fill {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #52ffe0, #6af2ff, #8a5cff, #ff7be5);
  box-shadow: 0 0 24px rgba(82,255,224,.35);
  transition: width .35s ease;
}

.study-signal-collection__header h2,
.study-final-collection__header h2 {
  margin: 6px 0 6px;
  font-family: "Space Grotesk", Inter, sans-serif;
}

.study-signal-collection__header p,
.study-final-collection__header p {
  margin: 0;
  color: var(--muted, #b8c9e8);
  max-width: 720px;
}

.study-signal-collection__status,
.study-final-collection__status {
  color: #52ffe0;
  font-weight: 950;
  white-space: nowrap;
}

.study-signal-collection__grid,
.study-final-collection__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.study-signal-token {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  min-height: 46px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(6,14,36,.58);
  color: var(--muted, #b8c9e8);
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
}

.study-signal-token::before {
  content: "○";
  color: rgba(255,255,255,.46);
  font-size: 1rem;
}

.study-signal-token.is-activated {
  color: #f7fbff;
  border-color: rgba(82,255,224,.40);
  background: rgba(82,255,224,.12);
  box-shadow: 0 0 20px rgba(82,255,224,.12);
}

.study-signal-token.is-activated::before {
  content: "●";
  color: #52ffe0;
  text-shadow: 0 0 12px rgba(82,255,224,.46);
}

.study-signal-token:hover,
.study-signal-token:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(82,255,224,.45);
  color: #ffffff;
}

.signal-activated-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 9999;
  transform: translateX(-50%) translateY(20px);
  opacity: 0;
  pointer-events: none;
  width: min(92vw, 460px);
  padding: 16px 18px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 12% 18%, rgba(82,255,224,.20), transparent 36%),
    linear-gradient(180deg, rgba(9,20,52,.96), rgba(5,9,25,.96));
  border: 1px solid rgba(82,255,224,.34);
  box-shadow: 0 24px 70px rgba(0,0,0,.35), 0 0 34px rgba(82,255,224,.14);
  color: #f7fbff;
  transition: opacity .25s ease, transform .25s ease;
}

.signal-activated-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.signal-activated-toast strong {
  display: block;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.signal-activated-toast span {
  display: block;
  color: var(--muted, #b8c9e8);
  margin-bottom: 8px;
}

.signal-activated-toast a,
.study-vee-actions a,
.study-discover-link,
.next-signal-links a[href*="vibeai"],
.quest-next-path__card[href*="vibeai"] strong,
.study-path-panel__actions a[href*="vibeai"],
.study-path-panel__actions a[href*="discover-your-signal"] {
  color: #52ffe0 !important;
  font-weight: 950 !important;
  text-decoration: none;
}

.signal-activated-toast a {
  border-bottom: 1px solid rgba(82,255,224,.52);
}

@media (max-width: 1080px) {
  .study-signal-collection__grid,
  .study-final-collection__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .study-progress__header,
  .study-signal-collection__header,
  .study-final-collection__header { flex-direction: column; align-items: flex-start; }
  .study-signal-collection__grid,
  .study-final-collection__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .study-signal-token { min-height: 42px; font-size: .92rem; }
}



/* =========================================================
   VibeStudy Phase 2 additions — Contextual Vee prompts
   Note: use section.shift-section so Signal Explorer renders it.
========================================================= */
.signal-vee-prompt {
  margin: 18px 0 20px;
  padding: 18px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 12% 18%, rgba(82,255,224,.16), transparent 34%),
    linear-gradient(180deg, rgba(82,255,224,.10), rgba(255,255,255,.04));
  border: 1px solid rgba(82,255,224,.30);
  box-shadow: 0 14px 38px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.08);
}

.signal-vee-prompt .section-kicker,
.signal-vee-prompt__header {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #52ffe0 !important;
  font-weight: 950 !important;
  letter-spacing: .04em;
}

.signal-vee-prompt__header img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.signal-vee-prompt__question {
  margin: 10px 0 8px;
  font-weight: 850;
  color: var(--text, #f7fbff);
}

.signal-vee-prompt p {
  color: var(--muted, #b8c9e8);
}

.signal-vee-prompt__link {
  display: inline-flex;
  align-items: center;
  margin-top: 6px;
  color: #52ffe0 !important;
  font-weight: 950 !important;
  text-decoration: none !important;
  border-bottom: 1px solid rgba(82,255,224,.52);
  text-shadow: 0 0 18px rgba(82,255,224,.22);
}



/* =========================================================
   VibeStudy Phase 6 additions — Story Moments
========================================================= */
.study-story-bridge,
.study-story-moment,
.character-next-step {
  position: relative;
  overflow: hidden;
  margin: clamp(22px, 4vw, 42px) 0;
  padding: clamp(22px, 4vw, 34px);
  border-radius: 30px;
  border: 1px solid rgba(255,255,255,.14);
  background:
    radial-gradient(circle at 14% 18%, rgba(255,123,229,.13), transparent 34%),
    radial-gradient(circle at 84% 74%, rgba(82,255,224,.15), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,.04));
  box-shadow: 0 22px 70px rgba(0,0,0,.20);
}

.study-story-bridge__card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.study-story-bridge__mark,
.study-story-moment__mark {
  width: 54px;
  height: 54px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  background: rgba(82,255,224,.12);
  border: 1px solid rgba(82,255,224,.24);
  box-shadow: 0 0 28px rgba(82,255,224,.12);
  font-size: 1.5rem;
}

.study-story-bridge h2,
.study-story-moment h4,
.character-next-step h2 {
  margin: 8px 0 10px;
  font-family: "Space Grotesk", Inter, sans-serif;
}

.study-story-bridge p,
.study-story-moment p,
.character-next-step p {
  color: var(--muted, #b8c9e8);
}

.study-story-link,
.study-story-moment__link,
.character-next-step a {
  display: inline-flex;
  align-items: center;
  margin-top: 10px;
  color: #52ffe0 !important;
  font-weight: 950 !important;
  text-decoration: none !important;
  border-bottom: 1px solid rgba(82,255,224,.52);
  text-shadow: 0 0 18px rgba(82,255,224,.22);
}

.study-story-moment {
  margin: 18px 0 20px;
  padding: 18px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 12% 18%, rgba(255,123,229,.12), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,.075), rgba(255,255,255,.035));
}

.study-story-moment__top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.study-story-moment__eyebrow {
  color: #52ffe0;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .78rem;
}

.study-story-moment blockquote {
  margin: 12px 0 0;
  padding: 14px 16px;
  border-left: 3px solid rgba(82,255,224,.65);
  border-radius: 16px;
  background: rgba(6,14,36,.42);
  color: var(--text, #f7fbff);
  font-weight: 750;
}

@media (max-width: 640px) {
  .study-story-bridge__card { grid-template-columns: 1fr; }
}



/* Phase 6 regression guard — keep Ask Vee / Discover links visibly bold green */
a[href*="vibeai.html"],
a[href*="discover-your-signal.html"],
.signal-vee-prompt__link,
.study-story-link,
.study-story-moment__link,
.character-next-step a {
  color: #52ffe0 !important;
  font-weight: 950 !important;
}
