:root {
  --tests-white: #fff;
  --tests-ink: #1e1e1e;
  --tests-muted: #686868;
  --tests-line: #e7e7e7;
  --tests-surface: #f9f9f9;
  --tests-orange: #f16a41;
  --tests-orange-bright: #f97e16;
  --tests-violet: #9fa0f1;
  --tests-violet-soft: #baa1e1;
  --tests-radius-xl: 56px;
  --tests-radius-lg: 36px;
  --tests-radius-md: 24px;
  --tests-shadow-soft: 0 18px 50px rgba(30, 30, 30, .08);
}

.tests-page main {
  color: var(--tests-ink);
}

.tests-page [hidden] {
  display: none !important;
}

.tests-hero,
.tests-card {
  width: min(1568px, calc(100% - 64px));
  margin: 28px auto 0;
  border-radius: var(--tests-radius-xl);
  background: var(--tests-surface);
}

.tests-hero {
  position: relative;
  overflow: hidden;
  min-height: 540px;
  display: grid;
  align-items: center;
  padding: 72px 10.8%;
}

.tests-hero::after {
  content: '';
  position: absolute;
  width: 430px;
  height: 430px;
  right: -80px;
  bottom: -110px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, var(--tests-violet-soft), var(--tests-violet) 48%, var(--tests-orange) 100%);
  opacity: .82;
}

.tests-hero__copy {
  position: relative;
  z-index: 1;
  max-width: 860px;
}

.tests-card {
  padding: 72px 10.8%;
}

.tests-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--tests-ink);
  color: var(--tests-white);
  font-size: 14px;
  font-weight: 600;
}

.tests-page main h1,
.tests-page main h2,
.tests-page main h3 {
  font-family: Unbounded, sans-serif;
  margin: 0;
  letter-spacing: 0;
}

.tests-page main h1 {
  font-size: clamp(38px, 5.4vw, 76px);
  line-height: 1.04;
  max-width: 1100px;
}

.tests-page main h2 {
  font-size: clamp(28px, 3.2vw, 48px);
  line-height: 1.12;
}

.tests-page main h3 {
  font-size: clamp(20px, 2vw, 30px);
  line-height: 1.2;
}

.tests-lede {
  margin: 28px 0 0;
  max-width: 790px;
  font-size: clamp(18px, 2vw, 27px);
  line-height: 1.45;
  color: #363636;
}

.tests-lede--compact {
  font-size: 18px;
  margin-left: auto;
  margin-right: auto;
}

.tests-disclaimer {
  margin-top: 28px;
  max-width: 820px;
  color: var(--tests-muted);
  line-height: 1.55;
  font-size: 14px;
}

.tests-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.tests-grid--single {
  grid-template-columns: minmax(0, 1fr);
  max-width: 760px;
}

.test-card {
  padding: 32px;
  border: 1px solid var(--tests-line);
  background: var(--tests-white);
  border-radius: var(--tests-radius-lg);
  min-height: 340px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--tests-shadow-soft);
}

.test-card--active {
  background: linear-gradient(145deg, #fff 0%, #fff 48%, #f5f1ff 100%);
}

.test-card__number {
  font-family: Unbounded, sans-serif;
  font-size: 72px;
  font-weight: 700;
  opacity: .08;
  line-height: 1;
  margin-bottom: 34px;
}

.test-card p {
  font-size: 18px;
  line-height: 1.5;
  color: var(--tests-muted);
}

.test-card__meta {
  margin-top: auto;
  padding-top: 30px;
  font-size: 14px;
  color: var(--tests-muted);
}

.test-card__link {
  display: inline-flex;
  margin-top: 18px;
  font-family: Unbounded, sans-serif;
  font-size: 14px;
  color: var(--tests-orange);
}

.test-card__link:hover,
.test-card__link:focus-visible {
  color: var(--tests-orange-bright);
}

.shadow-test {
  width: min(980px, calc(100% - 32px));
  margin: 28px auto 0;
}

.shadow-frame {
  min-height: 620px;
  padding: clamp(24px, 5vw, 64px);
  border-radius: var(--tests-radius-xl);
  background: var(--tests-surface);
  border: 1px solid var(--tests-line);
  box-shadow: var(--tests-shadow-soft);
  outline: none;
}

.shadow-intro {
  min-height: 500px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.shadow-intro h1 {
  font-size: clamp(34px, 6vw, 64px);
}

.shadow-intro__subtitle {
  margin: 16px 0 0;
  font-family: Unbounded, sans-serif;
  font-size: 18px;
  color: var(--tests-violet);
}

.shadow-intro__body {
  margin: 28px 0 0;
  max-width: 760px;
  display: grid;
  gap: 14px;
  font-size: 18px;
  line-height: 1.55;
}

.shadow-intro__body p {
  margin: 0;
}

.meta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 30px 0;
}

.meta-pill {
  padding: 9px 13px;
  border: 1px solid var(--tests-line);
  background: var(--tests-white);
  border-radius: 999px;
  font-size: 14px;
}

.shadow-primary,
.shadow-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 16px 26px;
  border-radius: 999px;
  cursor: pointer;
  font-family: Unbounded, sans-serif;
  font-size: 15px;
  transition: transform .18s ease, background-color .18s ease, border-color .18s ease;
}

.shadow-primary {
  border: 0;
  background: var(--tests-ink);
  color: var(--tests-white);
}

.shadow-primary:hover,
.shadow-primary:focus-visible {
  background: var(--tests-orange);
  color: var(--tests-white);
  transform: translateY(-1px);
}

.shadow-secondary {
  background: var(--tests-white);
  color: var(--tests-ink);
  border: 1px solid var(--tests-line);
}

.shadow-secondary:hover,
.shadow-secondary:focus-visible {
  border-color: #cfcfcf;
  transform: translateY(-1px);
}

.progress-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
  font-size: 14px;
  color: var(--tests-muted);
}

.progress {
  height: 8px;
  background: #ececec;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 46px;
}

.progress__bar {
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--tests-violet-soft), var(--tests-orange));
  transition: width .2s ease;
}

.question-title {
  font-family: Unbounded, sans-serif;
  font-size: clamp(26px, 4.6vw, 43px);
  line-height: 1.25;
  max-width: 850px;
}

.answer-list {
  margin-top: 38px;
  display: grid;
  gap: 12px;
}

.answer-option {
  width: 100%;
  text-align: left;
  padding: 18px 22px;
  background: var(--tests-white);
  border: 1px solid var(--tests-line);
  border-radius: 20px;
  cursor: pointer;
  font-size: 17px;
  color: var(--tests-ink);
  transition: border-color .15s ease, transform .15s ease, background-color .15s ease;
}

.answer-option:hover,
.answer-option:focus-visible {
  border-color: var(--tests-violet);
  transform: translateY(-1px);
  outline: none;
}

.answer-option.is-selected {
  border-color: var(--tests-ink);
  background: #f2f2f2;
}

.test-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 30px;
}

.shadow-back {
  border: 0;
  background: transparent;
  color: var(--tests-muted);
  cursor: pointer;
  padding: 12px 0;
}

.shadow-back:disabled {
  opacity: .35;
  cursor: default;
}

.transition-screen {
  min-height: 480px;
  display: grid;
  place-items: center;
  text-align: center;
}

.transition-orb {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: conic-gradient(from 10deg, var(--tests-violet-soft), var(--tests-orange), var(--tests-violet));
  animation: tests-breathe 1.8s ease-in-out infinite alternate;
  margin: 0 auto 30px;
}

@keyframes tests-breathe {
  from { transform: scale(.9); opacity: .72; }
  to { transform: scale(1.05); opacity: 1; }
}

.result-screen {
  padding-top: 12px;
}

.result-kicker {
  margin-bottom: 18px;
  color: var(--tests-orange);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 12px;
}

.result-title {
  font-size: clamp(32px, 5.5vw, 58px);
}

.result-short {
  margin: 24px 0 0;
  font-size: clamp(18px, 2.4vw, 24px);
  line-height: 1.55;
  color: #3d3d3d;
}

.result-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 36px;
}

.result-block {
  padding: 28px;
  background: var(--tests-white);
  border: 1px solid var(--tests-line);
  border-radius: 28px;
}

.result-block h3 {
  font-size: 18px;
  margin-bottom: 14px;
}

.result-block p {
  margin: 0;
  line-height: 1.62;
  color: #4a4a4a;
}

.result-block--question {
  background: var(--tests-ink);
  color: var(--tests-white);
}

.result-block--question p,
.result-block--question h3 {
  color: var(--tests-white);
}

.secondary-result {
  margin-top: 20px;
  padding: 28px;
  border-radius: 28px;
  background: linear-gradient(120deg, rgba(186, 161, 225, .26), rgba(241, 106, 65, .16));
}

.secondary-result__label {
  color: var(--tests-muted);
  margin-bottom: 8px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .07em;
}

.secondary-result h3 {
  margin-bottom: 10px;
}

.secondary-result p {
  margin: 0;
  line-height: 1.55;
  color: #4d4d4d;
}

.result-links {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.result-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--tests-line);
  font-weight: 600;
}

.result-link:hover,
.result-link:focus-visible {
  color: var(--tests-orange);
}

.result-cta {
  margin-top: 36px;
  padding: clamp(26px, 4vw, 42px);
  border-radius: 36px;
  background: linear-gradient(120deg, var(--tests-violet-soft), var(--tests-violet));
}

.tests-page main .result-cta h2 {
  font-size: clamp(21px, 3vw, 36px);
  line-height: 1.25;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: auto;
}

.result-cta p {
  max-width: 760px;
  line-height: 1.6;
  font-size: 17px;
}

.result-cta__actions,
.result-footer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.result-footer-actions {
  margin-top: 20px;
}

.seo-copy {
  display: grid;
  gap: 44px;
}

.seo-copy section {
  max-width: 980px;
}

.seo-copy p {
  font-size: 18px;
  line-height: 1.7;
  color: #494949;
}

.research-app {
  position: relative;
}

.research-app:has(> .result-screen:not([hidden])) {
  width: min(1280px, calc(100% - 32px));
}

.research-screen {
  outline: none;
}

.research-editorial {
  margin-bottom: 28px;
}

.tests-noscript {
  width: min(980px, calc(100% - 32px));
  margin: 18px auto;
  color: var(--tests-muted);
}

.test-actions__next {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.result-note {
  max-width: 880px;
  margin: 18px 0 0;
  color: var(--tests-muted);
  line-height: 1.6;
}

.result-topics {
  display: grid;
  gap: 20px;
  margin-top: 32px;
}

.result-topics > *,
.result-screen [data-result-content] {
  min-width: 0;
}

.result-topics--dual {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.result-topics--facets {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.result-topic,
.dream-map {
  min-width: 0;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid var(--tests-line);
  border-radius: 28px;
  background: var(--tests-white);
}

.result-topic__label {
  margin: 0 0 12px;
  color: var(--tests-orange);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.tests-page main .result-topic h3 {
  min-width: 0;
  font-size: clamp(24px, 2vw, 28px);
  line-height: 1.28;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: auto;
}

.result-topic__lead {
  margin: 18px 0 0;
  font-size: 18px;
  line-height: 1.6;
}

.result-detail {
  min-width: 0;
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--tests-line);
}

@supports (grid-template-rows: subgrid) {
  @media (min-width: 1200px) {
    .result-topics--facets {
      grid-template-columns: repeat(3, minmax(0, 1fr));
      grid-template-rows: repeat(9, auto);
      column-gap: 20px;
      row-gap: 0;
    }

    .result-topics--facets > .result-topic {
      display: grid;
      grid-row: 1 / span 9;
      grid-template-rows: subgrid;
      row-gap: 0;
      align-content: start;
    }

    .result-topics--facets > .result-topic:nth-child(1) { grid-column: 1; }
    .result-topics--facets > .result-topic:nth-child(2) { grid-column: 2; }
    .result-topics--facets > .result-topic:nth-child(3) { grid-column: 3; }
  }

  @media (min-width: 700px) and (max-width: 1199px) {
    .result-topics--facets {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      grid-template-rows: repeat(18, auto);
      column-gap: 20px;
      row-gap: 0;
    }

    .result-topics--facets > .result-topic {
      display: grid;
      grid-template-rows: subgrid;
      row-gap: 0;
      align-content: start;
    }

    .result-topics--facets > .result-topic:nth-child(1) {
      grid-column: 1;
      grid-row: 1 / span 9;
    }

    .result-topics--facets > .result-topic:nth-child(2) {
      grid-column: 2;
      grid-row: 1 / span 9;
    }

    .result-topics--facets > .result-topic:nth-child(3) {
      grid-column: 1;
      grid-row: 10 / span 9;
      margin-top: 20px;
    }
  }
}

.result-detail h4 {
  margin: 0 0 10px;
  font-family: Unbounded, sans-serif;
  font-size: 14px;
  line-height: 1.45;
}

.result-detail p,
.result-detail ol {
  margin: 0;
  color: #4a4a4a;
  line-height: 1.65;
}

.result-detail ol {
  padding-left: 22px;
}

.result-detail li + li {
  margin-top: 9px;
}

.result-related {
  margin-top: 34px;
}

.result-related h3 {
  font-size: 22px;
}

.dream-map {
  margin-top: 32px;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (max-width: 980px) {
  .tests-hero,
  .tests-card {
    width: min(100% - 32px, 900px);
  }

  .tests-hero,
  .tests-card {
    padding: 54px 32px;
    border-radius: 40px;
  }

  .tests-hero {
    min-height: 560px;
  }

  .tests-hero::after {
    width: 300px;
    height: 300px;
    right: -90px;
    bottom: -80px;
    opacity: .5;
  }

  .tests-grid,
  .result-grid,
  .result-topics--dual {
    grid-template-columns: 1fr;
  }

  .test-card {
    min-height: 280px;
  }
}

@media (max-width: 699px) {
  .research-app:has(> .result-screen:not([hidden])) {
    width: calc(100% - 20px);
  }

  .result-topics--facets {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .tests-hero,
  .tests-card {
    width: calc(100% - 20px);
    margin-top: 16px;
    padding: 36px 20px;
    border-radius: 28px;
  }

  .tests-hero {
    min-height: 520px;
  }

  .tests-page main h1 {
    font-size: 38px;
  }

  .tests-lede {
    font-size: 18px;
  }

  .shadow-test {
    width: calc(100% - 20px);
  }

  .shadow-frame {
    min-height: 600px;
    padding: 24px 18px;
    border-radius: 28px;
  }

  .shadow-intro {
    min-height: 530px;
  }

  .shadow-intro__body {
    font-size: 16px;
  }

  .progress-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .answer-option {
    min-height: 58px;
    padding: 16px;
    font-size: 16px;
  }

  .progress {
    margin-bottom: 34px;
  }

  .result-block,
  .secondary-result {
    padding: 22px;
    border-radius: 22px;
  }

  .result-cta {
    border-radius: 24px;
  }

  .shadow-primary,
  .shadow-secondary {
    width: 100%;
  }

  .test-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .test-actions__next {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tests-page *,
  .tests-page *::before,
  .tests-page *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}
