/* money-personality - MoneyPersonalityWebView (Figma section 18772:122230) */

.mp-page {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.mp-page p {
  margin: 0;
}

/* Titles are real headings (WCAG 1.3.1); keep the old <p> look. */
.mp-page :is(h1, h2, h3) {
  margin: 0;
}

.mp-back-button {
  background: none;
  border: 0;
  padding: 0;
  color: var(--white);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
}

.mp-page .mp-title {
  font-size: 24px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--white);
  margin-bottom: 40px;
}

.mp-muted {
  color: var(--light-gray);
  font-size: 16px;
  line-height: 1.4;
}

.mp-cta {
  width: 300px;
  max-width: 100%;
  padding: 8px 24px;
  font-size: 16px;
  font-weight: 500;
  line-height: 25px;
}

.mp-cta.wide {
  width: 100%;
}

.mp-text-link {
  background: none;
  border: 0;
  padding: 0 8px;
  height: 40px;
  font-size: 16px;
  font-weight: 600;
  line-height: 25px;
  color: var(--light-gray);
}

.mp-text-link.underline {
  height: auto;
  font-weight: 500;
  color: #a7b8c5;
  text-decoration: underline;
}

.mp-badge {
  display: block;
  flex-shrink: 0;
}

/* --- Landing --- */

.mp-landing {
  align-self: center;
  width: 800px;
  max-width: 100%;
  padding: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.mp-landing-art {
  position: relative;
  width: 800px;
  height: 283px;
  flex-shrink: 0;
}

/* The export includes the badges' overflow (498x412 vs the 460x328 frame). */
.mp-landing-art img {
  position: absolute;
  left: 144px;
  top: -106px;
  width: 498px;
  height: 412px;
}

.mp-landing-text {
  display: flex;
  flex-direction: column;
  gap: 24px;
  text-align: center;
  width: 100%;
}

.mp-landing-title {
  font-size: 40px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--gold);
}

.mp-landing-body {
  font-size: 16px;
  line-height: 1.4;
  color: var(--white);
}

/* --- Quiz --- */

.mp-quiz {
  width: 800px;
  max-width: 100%;
  margin: 0 auto;
  align-items: center;
}

.mp-quiz .groove-calc-back {
  align-self: flex-start;
}

.mp-progress {
  width: 100%;
  height: 4px;
  border-radius: 8px;
  background: var(--navy-card-secondary);
  overflow: hidden;
  margin-bottom: 40px;
}

.mp-progress-fill {
  height: 100%;
  border-radius: 8px;
  background: var(--gold);
  transition: width 0.2s ease;
}

.mp-question {
  width: 100%;
  min-height: 382px;
  padding: 48px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 40px;
}

.mp-question-text {
  flex: 1;
  text-align: center;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--white);
}

.mp-question-text p {
  margin: 0;
}

.mp-question-text br {
  display: none;
}

.mp-selections {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 40px;
}

.mp-scale {
  position: relative;
  height: 48px;
}

.mp-scale-bar {
  position: absolute;
  left: 0;
  right: 2px;
  top: 22px;
  height: 4px;
  border-radius: 8px;
  background: var(--navy-card-secondary);
}

.mp-scale-circles {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mp-scale-circle {
  width: 40px;
  height: 40px;
  border-radius: 40px;
  border: 0;
  padding: 0;
  background: var(--navy-card-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.mp-scale-circle.end {
  width: 48px;
  height: 48px;
}

.mp-scale-circle.selected {
  background: var(--figma-green);
}

.mp-scale-circle img {
  width: 60%;
  height: 60%;
}

.mp-scale-labels {
  display: flex;
  gap: 16px;
}

.mp-scale-label {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  background: none;
  border: 0;
  padding: 0;
  color: var(--white);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
  text-align: left;
}

.mp-scale-label.right {
  align-items: flex-end;
  text-align: right;
}

/* --- Results --- */

.mp-results {
  align-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.mp-carousel {
  width: 600px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mp-carousel-arrows {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  height: 40px;
}

.mp-arrow {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid var(--navy-border);
  background: var(--navy-card-secondary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.mp-arrow:disabled {
  opacity: 0.4;
  cursor: default;
}

.mp-result-card {
  min-height: 523px;
  padding: 40px;
  border-radius: 12px;
  background: var(--navy-card);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  overflow: hidden;
}

.mp-result-card.video {
  padding: 40px 0;
}

.mp-result-video {
  width: 250px;
  height: 443px;
  border: 0;
  border-radius: 4px;
  background: #000;
}

.mp-result-text {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}

.mp-result-heading {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mp-eyebrow {
  font-size: 14px;
  line-height: 1.4;
  color: var(--light-gray);
}

.mp-result-name {
  font-size: 40px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--gold);
}

.mp-result-trait-name {
  font-size: 32px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--gold);
}

.mp-result-traits {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.mp-result-traits p {
  padding: 0 4px;
  font-size: 18px;
  line-height: 1.4;
  color: var(--white);
}

.mp-result-description {
  font-size: 16px;
  line-height: 1.4;
  color: var(--white);
}

.mp-result-description p,
.mp-overview-trait-body p {
  margin: 0;
}

.mp-dots {
  display: flex;
  justify-content: center;
  gap: 4px;
  height: 8px;
}

.mp-dot {
  width: 26px;
  height: 8px;
  padding: 0;
  border-radius: 2px;
  border: 1px solid var(--navy-border);
  background: transparent;
}

.mp-dot.active {
  border-color: var(--white);
  background: var(--white);
}

.mp-result-actions {
  width: 342px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

/* --- Overview --- */

.mp-overview {
  align-self: center;
  width: 700px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.mp-overview-card {
  width: 100%;
  padding: 40px;
  border-radius: 12px;
  background: var(--navy-card);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 31px;
}

.mp-overview-top {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 13px;
}

.mp-overview-name {
  font-size: 40px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--gold);
  text-align: center;
}

.mp-overview-traits {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
  text-align: center;
}

.mp-overview-trait {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mp-overview-trait-name {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--gold);
}

.mp-overview-trait-body {
  font-size: 16px;
  line-height: 1.4;
  color: var(--white);
}

.mp-overview-trait-body br {
  display: none;
}

.mp-view-others {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 18px;
  border: 0;
  border-radius: 12px;
  background: var(--navy-card);
  color: var(--white);
  font-size: 16px;
  font-weight: 500;
  line-height: 25px;
}

.mp-view-others-icon {
  width: 40px;
  height: 40px;
  border-radius: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --- Resume modal --- */

.mp-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
}

.mp-modal {
  width: 400px;
  max-width: calc(100% - 32px);
  padding: 24px;
  border-radius: 12px;
  border: 1px solid var(--navy-border);
  background: var(--navy-card);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mp-modal-title {
  font-size: 18px;
  font-weight: 500;
  color: var(--white);
}

.mp-modal-body {
  font-size: 16px;
  line-height: 1.4;
  color: var(--light-gray);
}

.mp-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.mp-modal-actions .groove-pill {
  padding: 8px 24px;
  background: transparent;
  color: var(--white);
}

.mp-modal-actions .groove-pill.filled {
  background: var(--white);
  color: var(--navy-mid);
}

/* --- Other personalities --- */

.mp-list {
  width: 700px;
  max-width: 100%;
  padding: 40px;
  border-radius: 12px;
  background: var(--navy-card);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mp-list-item {
  position: relative;
  height: 72px;
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--navy-border);
  background: var(--navy-card-secondary);
  display: flex;
  align-items: center;
  padding: 0 15px 0 0;
  text-align: left;
  color: var(--white);
  overflow: hidden;
}

.mp-list-item:hover {
  border-color: var(--light-gray);
}

.mp-list-badge {
  width: 72px;
  height: 72px;
  margin-left: -1px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mp-list-text {
  margin-left: 12px;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.mp-list-name {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
}

.mp-list-traits {
  font-size: 12px;
  line-height: 1.4;
  color: var(--light-gray);
}

/* --- Loading / busy --- */

.mp-root {
  position: relative;
}

/* Loading stand-in: title, then the centered overview card. */
.mp-page > .groove-skeleton {
  align-self: stretch;
}

.mp-skeleton {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.mp-skeleton-trait {
  align-items: center;
}

.mp-busy {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(13, 27, 51, 0.35);
  cursor: progress;
}

.mp-spinner {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 4px solid var(--navy-card-secondary);
  border-top-color: var(--gold);
  animation: mp-spin 0.8s linear infinite;
}

@keyframes mp-spin {
  to {
    transform: rotate(360deg);
  }
}

.mp-login {
  margin-top: 24px;
  text-align: center;
}

.mp-cta:disabled {
  opacity: 0.5;
  cursor: default;
}

/* --- Reflow (WCAG 1.4.10): desktop (>=1024px) unchanged --- */

@media (max-width: 1023.98px) {
  .mp-results {
    max-width: 100%;
  }

  .mp-landing {
    padding: 40px 0;
  }

  /* The 800px art band shrinks to the column; the badge image flows in it. */
  .mp-landing-art {
    width: 100%;
    height: auto;
  }

  .mp-landing-art img {
    position: static;
    display: block;
    width: 100%;
    max-width: 498px;
    height: auto;
    margin: 0 auto;
  }
}

@media (max-width: 767.98px) {
  .mp-result-card {
    padding: 24px;
    gap: 24px;
  }

  .mp-result-card.video {
    padding: 24px 0;
  }
}
