/* ================================
   Discover Your Signal v2
   5-pulse VibeQ experience
================================ */

.signal-discover-hero {
  position: relative;
  align-items: center;
  gap: clamp(28px, 5vw, 70px);
  padding-bottom: clamp(44px, 7vw, 84px);
}

.signal-discover-copy h1 {
  max-width: 780px;
}

.signal-discover-copy .hero-subtitle {
  max-width: 660px;
}

.signal-quick-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.signal-quick-tags span {
  padding: 9px 13px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: var(--muted);
  font-weight: 800;
  font-size: .88rem;
}

/* Use the same global VibeQ orbit component as the homepage.
   This page only changes sizing and note placement, not the orb/ring design. */
.signal-orb-card {
  --vibeq-orbit-card-width: 560px;
  --vibeq-orbit-card-height: 540px;
  --vibeq-orbit-stage-top: 36%;
  --vibeq-orbit-stage-width: 500px;
  --vibeq-orbit-stage-height: 300px;
  min-height: var(--vibeq-orbit-card-height);
}

.signal-orb-stage {
  margin: 0;
}

.signal-hero-orb {
  /* Keep the global orb pulse from vibeq-orbit-component.css */
}

.signal-hero-orb,
.pulse-orb {
  display: grid;
  place-items: center;
}

.signal-match-icon {
  position: relative;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 58%;
  height: 58%;
  border-radius: 999px;
  opacity: 0;
  transform: scale(.68);
  pointer-events: none;
  color: #07112c;
  font-size: clamp(2.25rem, 4.2vw, 3.2rem);
  line-height: 1;
  filter:
    drop-shadow(0 0 10px rgba(255, 255, 255, .72))
    drop-shadow(0 0 22px rgba(106, 242, 255, .42));
  transition: opacity .28s ease, transform .34s ease, filter .34s ease;
}

.signal-match-icon.is-visible {
  opacity: 1;
  transform: scale(1);
}

.pulse-orb .signal-match-icon {
  font-size: clamp(2.1rem, 5vw, 2.85rem);
}

.signal-hero-orb .signal-match-icon {
  font-size: clamp(2.45rem, 4.8vw, 3.45rem);
}

.orb-status-card {
  position: absolute;
  left: 34px;
  right: 34px;
  bottom: 34px;
  z-index: 3;
  max-width: none;
  margin: 0;
  padding: 18px 20px;
  border-radius: 24px;
  border: 1px solid rgba(82, 255, 224, 0.22);
  background: rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: none;
}

.orb-status-kicker {
  margin: 0 0 6px;
  color: var(--teal, #52ffe0);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .76rem;
  font-weight: 950;
}

.orb-status-card h2 {
  margin: 0 0 6px;
  font-size: clamp(1.1rem, 2.2vw, 1.45rem);
  line-height: 1.15;
}

.orb-status-card p:last-child {
  margin-bottom: 0;
  font-size: .95rem;
  line-height: 1.55;
}

.pulse-shell,
.result-card,
.type-card {
  border-radius: var(--radius-xl, 32px);
  background: linear-gradient(180deg, rgba(255,255,255,.105), rgba(255,255,255,.052));
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 18px 48px rgba(0,0,0,.18);
}

.pulse-shell {
  display: grid;
  grid-template-columns: minmax(240px, .55fr) minmax(0, 1fr);
  gap: clamp(22px, 4vw, 42px);
  align-items: stretch;
  padding: clamp(22px, 4vw, 42px);
  overflow: hidden;
  position: relative;
}

.pulse-shell::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(82,255,224,.16), transparent 68%);
  top: -190px;
  right: -150px;
  pointer-events: none;
}

.pulse-orb-panel,
.pulse-content {
  position: relative;
  z-index: 1;
}

.pulse-orb-panel {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 18px;
  min-height: 420px;
  border-radius: 30px;
  background:
    radial-gradient(circle at 50% 42%, rgba(185,150,255,.22), transparent 42%),
    radial-gradient(circle at 35% 68%, rgba(82,255,224,.16), transparent 45%),
    rgba(6,14,34,.34);
  border: 1px solid rgba(255,255,255,.11);
}

.pulse-ring-wrap {
  position: relative;
  width: min(230px, 54vw);
  height: min(230px, 54vw);
  display: grid;
  place-items: center;
}

.pulse-progress-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.pulse-ring-bg,
.pulse-ring-fill {
  fill: none;
  stroke-width: 6;
}

.pulse-ring-bg {
  stroke: rgba(255,255,255,.10);
}

.pulse-ring-fill {
  stroke: url(#vibeqPulseRingGradient);
  stroke-linecap: round;
  stroke-dasharray: 327;
  stroke-dashoffset: 327;
  filter:
    drop-shadow(0 0 10px rgba(106, 242, 255, .54))
    drop-shadow(0 0 18px rgba(138, 92, 255, .38));
  transition: stroke-dashoffset .45s ease, stroke .35s ease;
}

.pulse-orb {
  width: 132px;
  height: 132px;
  border-radius: 999px;
  /* Same orb gradient language as the global VibeQ orbit component. */
  background:
    radial-gradient(circle at 34% 26%,
      rgba(255, 255, 255, 0.98) 0%,
      rgba(221, 251, 255, 0.98) 12%,
      rgba(106, 242, 255, 0.94) 31%,
      rgba(47, 109, 255, 0.92) 56%,
      rgba(138, 92, 255, 0.88) 77%,
      rgba(255, 123, 229, 0.84) 100%);
  box-shadow:
    0 0 42px rgba(106, 242, 255, 0.45),
    0 0 88px rgba(47, 109, 255, 0.36),
    0 0 128px rgba(138, 92, 255, 0.28),
    0 0 164px rgba(255, 123, 229, 0.12),
    inset 0 0 28px rgba(255, 255, 255, 0.22);
  transform: scale(.95);
  transition: transform .35s ease, box-shadow .35s ease, filter .35s ease, background .35s ease;
  animation: signalBreath 4.5s ease-in-out infinite;
}


.pulse-orb::before {
  content: "";
  position: absolute;
  inset: -18%;
  border-radius: inherit;
  z-index: -1;
  background: radial-gradient(circle, rgba(106, 242, 255, 0.26), rgba(138, 92, 255, 0.13) 42%, transparent 66%);
  filter: blur(10px);
}

.pulse-orb::after {
  content: "";
  position: absolute;
  left: 20%;
  top: 14%;
  width: 48%;
  height: 48%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.72), rgba(221, 251, 255, 0.34) 36%, transparent 70%);
  filter: blur(6px);
}

.pulse-orb.is-active {
  transform: scale(1.06);
  filter: saturate(1.18);
  box-shadow:
    0 0 54px rgba(106, 242, 255, 0.58),
    0 0 112px rgba(47, 109, 255, 0.44),
    0 0 156px rgba(138, 92, 255, 0.34),
    0 0 190px rgba(255, 123, 229, 0.16),
    inset 0 0 30px rgba(255, 255, 255, 0.25);
}

.pulse-orb-label {
  margin: 0;
  color: var(--teal, #52ffe0);
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: clamp(.98rem, 1.2vw, 1.12rem);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-shadow: 0 0 18px rgba(82,255,224,.24);
}

.pulse-side-actions {
  display: flex;
  justify-content: center;
  margin-top: -6px;
}

.pulse-selection-summary {
  width: min(100%, 340px);
  padding: 14px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.13);
  background: rgba(5, 9, 25, .42);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.pulse-selection-summary strong {
  display: block;
  margin-bottom: 9px;
  color: #fff;
  font-size: .88rem;
}

.pulse-selection-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pulse-selection-list span {
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(82,255,224,.22);
  background: linear-gradient(135deg, rgba(82,255,224,.10), rgba(185,150,255,.08));
  color: #eafcff;
  font-weight: 900;
  font-size: .82rem;
}

.pulse-content {
  display: grid;
  align-content: center;
  min-height: 420px;
}

.pulse-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.pulse-reset {
  border: 1px solid rgba(82,255,224,.26);
  background: linear-gradient(135deg, rgba(82,255,224,.12), rgba(185,150,255,.10));
  color: #f7fbff;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 950;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(82,255,224,.08);
}

.pulse-reset:hover {
  border-color: rgba(82,255,224,.42);
  color: #fff;
}

.pulse-step {
  animation: stepIn .28s ease both;
}

.pulse-step h2 {
  max-width: 720px;
  margin-bottom: 10px;
}

.pulse-step p {
  max-width: 650px;
}

.pulse-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.pulse-card {
  text-align: left;
  width: 100%;
  border: 1px solid rgba(255,255,255,.13);
  background: rgba(255,255,255,.065);
  color: #fff;
  border-radius: 24px;
  padding: 18px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.pulse-card:hover,
.pulse-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(82,255,224,.48);
  background: rgba(82,255,224,.08);
  box-shadow: 0 14px 38px rgba(82,255,224,.08);
  outline: none;
}

.pulse-card.is-selected {
  border-color: rgba(82,255,224,.70);
  background: linear-gradient(135deg, rgba(82,255,224,.16), rgba(185,150,255,.14));
}

.pulse-card:disabled,
.pulse-card.is-locked {
  cursor: not-allowed;
  opacity: .72;
}

.pulse-card:disabled:hover,
.pulse-card.is-locked:hover {
  transform: none;
  box-shadow: none;
}

.pulse-emoji {
  width: 48px;
  height: 48px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  font-size: 1.45rem;
}

.pulse-card strong {
  display: block;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 1.08rem;
  margin-bottom: 2px;
}

.pulse-card span:last-child {
  color: var(--muted);
  font-size: .94rem;
  line-height: 1.45;
}

.result-section {
  padding-top: 24px;
}

.result-card {
  position: relative;
  overflow: hidden;
  padding: clamp(26px, 5vw, 48px);
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 30px;
  align-items: center;
}

.result-card::before {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(185,150,255,.20), transparent 70%);
  top: -150px;
  left: -130px;
  pointer-events: none;
}

.result-main,
.result-recs {
  position: relative;
  z-index: 1;
}

.result-symbol {
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(82,255,224,.92), rgba(185,150,255,.92));
  font-size: 2.45rem;
  box-shadow: 0 18px 52px rgba(82,255,224,.16);
  margin-bottom: 18px;
}

.result-kicker {
  color: var(--teal, #52ffe0);
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .78rem;
  margin: 0 0 10px;
}

.result-vibe-line {
  padding: 14px 16px;
  border-radius: 20px;
  background: rgba(82,255,224,.08);
  border: 1px solid rgba(82,255,224,.18);
  color: #eafffb;
  font-weight: 800;
}

.result-recs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.result-link {
  display: grid;
  gap: 8px;
  min-height: 160px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.13);
  background: rgba(255,255,255,.07);
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.result-link:hover {
  transform: translateY(-2px);
  border-color: rgba(82,255,224,.46);
  background: rgba(82,255,224,.08);
}

.result-link small {
  color: var(--teal, #52ffe0);
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.result-link strong {
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 1.08rem;
}

.result-link span {
  color: var(--muted);
  line-height: 1.55;
  font-size: .94rem;
}


.result-pulse-summary {
  margin: 18px 0 0;
  padding: 13px 15px;
  border-radius: 20px;
  border: 1px solid rgba(82,255,224,.20);
  background: linear-gradient(135deg, rgba(82,255,224,.09), rgba(185,150,255,.08));
}

.result-pulse-summary strong {
  color: #fff;
  font-weight: 950;
}

.result-pulse-summary span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.5;
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.quiz-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: .94rem;
}

.section-heading-row {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  align-items: end;
  margin-bottom: 24px;
}

.type-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.type-card {
  padding: 22px;
  border-radius: var(--radius-lg, 26px);
}

.type-card span {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: rgba(82,255,224,.12);
  border: 1px solid rgba(82,255,224,.22);
  font-size: 1.55rem;
  margin-bottom: 14px;
}

.type-card h3 {
  margin-bottom: 8px;
}

.type-card p {
  margin: 0;
  font-size: .95rem;
}

@keyframes signalBreath {
  0%, 100% { transform: scale(.96); }
  50% { transform: scale(1.04); }
}

@keyframes stepIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1080px) {
  .signal-discover-hero,
  .pulse-shell,
  .result-card {
    grid-template-columns: 1fr;
  }

  .signal-orb-card {
    min-height: 500px;
  }

  .result-recs,
  .type-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .signal-orb-card {
    min-height: auto;
  }

  .signal-orb-card .vibeq-orbit-stage {
    margin-bottom: 8px;
  }

  .orb-status-card {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    order: 2;
    width: 100%;
    margin: 0;
  }

  .pulse-shell {
    padding: 18px;
  }

  .pulse-orb-panel {
    min-height: 280px;
  }

  .pulse-content {
    min-height: auto;
  }

  .pulse-options,
  .result-recs,
  .type-grid {
    grid-template-columns: 1fr;
  }

  .pulse-card {
    padding: 15px;
    border-radius: 20px;
  }

  .pulse-emoji {
    width: 42px;
    height: 42px;
    border-radius: 16px;
  }

  .section-heading-row {
    align-items: start;
    flex-direction: column;
  }

  .result-link {
    min-height: auto;
  }
}
