:root[data-design="signal"] {
  --paper: #f6f8fd;
  --card: #fff;
  --ink: #121d38;
  --muted: #485673;
  --rule: #d9e1f1;
  --accent: #204ae5;
  --accent-dark: #1636b7;
  --tint: #edf2ff;
  --peach: #ccd9ff;
  --lilac: #c4e6ec;
  --sage: #ddd5fb;
  --sand: #e5e8be;
  --sans: Inter, 'Segoe UI', system-ui, sans-serif;
  --serif: var(--sans);
  --radius: 1.1rem;
  --shadow: 0 1rem 3rem -2rem rgb(19 40 107 / 36%);
}

h1, h2, .question legend {
  font-weight: 700;
}

.site-header {
  background: var(--card);
}

.header-inner {
  min-height: 4.25rem;
}

.brand-mark {
  border-color: var(--accent);
  border-radius: .55rem;
  background: var(--accent);
}

.brand-mark i {
  background: #fff;
}

.nav-link {
  text-decoration: none;
}

.nav-link:hover {
  text-decoration: underline;
}

.hero {
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 1fr);
  gap: clamp(2rem, 5.5vw, 5rem);
  padding-block: clamp(3.4rem, 7vw, 6rem);
}

.hero-copy h1 {
  max-width: 16ch;
  font-size: clamp(2.6rem, 5.65vw, 5rem);
  font-weight: 740;
  line-height: .99;
  letter-spacing: -.068em;
}

.hero-copy h1 em {
  font-style: normal;
}

.hero-copy .lead {
  max-width: 42ch;
  letter-spacing: -.012em;
}

.button {
  min-height: 3.15rem;
  border-radius: .65rem;
}

.button.primary {
  box-shadow: 0 .55rem 1.1rem -.55rem rgb(27 62 211 / 75%);
}

.hero-copy .button {
  min-width: 10.5rem;
}

.hero-note {
  margin-top: 1rem;
  color: var(--muted);
  font-size: .84rem;
}

.preview-card {
  isolation: isolate;
  border: 1px solid #2547cf;
  border-radius: 1.4rem;
  padding: clamp(1.15rem, 3vw, 2rem);
  color: #fff;
  background: linear-gradient(145deg, #173bbb 2%, #254be2 60%, #1a3cc7);
  box-shadow: 0 1.5rem 2.4rem -1.65rem rgb(24 67 212 / 64%);
}

.preview-card::before {
  inset: 0;
  z-index: -2;
  width: auto;
  height: auto;
  background:
    linear-gradient(90deg, #ffffff14 1px, transparent 1px),
    linear-gradient(0deg, #ffffff14 1px, transparent 1px);
  background-size: 2.65rem 2.65rem;
  mask-image: linear-gradient(#000 15%, transparent 90%);
}

.preview-card::after {
  position: absolute;
  z-index: -1;
  top: -8rem;
  right: -6rem;
  width: 21rem;
  aspect-ratio: 1;
  border: 1px solid #ffffff42;
  border-radius: 38%;
  box-shadow:
    0 0 0 1.6rem #ffffff0c,
    0 0 0 3.2rem #ffffff0d,
    0 0 0 4.8rem #ffffff0c;
  transform: rotate(34deg);
  pointer-events: none;
  content: '';
}

.preview-top {
  display: grid;
  justify-items: start;
  justify-content: start;
  gap: .45rem;
}

.preview-top h2 {
  color: #e8eeff;
  font-size: .93rem;
  letter-spacing: 0;
}

.sample-type {
  border: 0;
  padding: 0;
  color: inherit;
  background: transparent;
  font-size: clamp(3.25rem, 7vw, 6.25rem);
  font-weight: 770;
  line-height: .94;
  letter-spacing: -.056em;
}

.preview-card .scale-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .55rem;
  margin-block: 1.6rem 0;
}

.preview-card .scale-row {
  display: grid;
  grid-template-rows: 1fr auto auto;
  min-height: 6.25rem;
  border: 1px solid #ffffff35;
  border-radius: .7rem;
  padding: .65rem .7rem;
  background: #102e9cba;
}

.preview-card .scale-labels {
  align-items: end;
  gap: .25rem;
  color: #fff;
  font-size: .76rem;
}

.preview-card .scale-caption {
  color: #e2ebff;
  font-size: .76rem;
  font-variant-numeric: tabular-nums;
}

.preview-card .scale-track {
  height: .43rem;
}

.preview-card .scale-marker {
  width: .8rem;
  height: .8rem;
  border: 2px solid #173cbd;
  background: #fff;
  box-shadow: none;
}

.intro {
  border-top: 0;
  padding-top: .25rem;
}

.intro > h2 {
  font-size: clamp(1.65rem, 3.4vw, 2.35rem);
}

.features {
  gap: .8rem;
}

.feature {
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.25rem;
  background: var(--card);
}

.feature h3 {
  display: flex;
  align-items: center;
  gap: .55rem;
}

.feature h3::before {
  width: .66rem;
  height: .66rem;
  flex: 0 0 auto;
  border: 2px solid var(--accent);
  border-radius: 50%;
  content: '';
}

.feature:nth-child(2) h3::before {
  border-radius: .12rem;
}

.feature:nth-child(3) h3::before {
  border-radius: .1rem;
  transform: rotate(45deg) scale(.8);
}

.narrow {
  width: min(100%, 53rem);
}

.progress-track {
  background: #dce5ff;
}

.progress-track::-webkit-progress-bar {
  background: #dce5ff;
}

.quiz-card {
  padding: clamp(1.1rem, 4vw, 2.5rem);
}

.question legend {
  max-width: 31ch;
  font-family: var(--sans);
  font-size: clamp(1.45rem, 3.6vw, 2.2rem);
  line-height: 1.18;
}

.choices {
  gap: .65rem;
}

.choice {
  min-height: 3.05rem;
  border: 1px solid var(--rule);
  border-radius: .7rem;
}

.choice:hover {
  border-color: #95a7de;
  background: #f4f7ff;
}

.choice-number {
  display: grid;
  min-width: 1.5rem;
  min-height: 1.5rem;
  flex: 0 0 auto;
  place-content: center;
  border-radius: .35rem;
  background: var(--tint);
}

.choice:has(input:checked) .choice-number {
  color: white;
  background: var(--accent);
}

.result-shell {
  max-width: 69rem;
}

.result-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: .4rem 1.4rem;
  border-radius: var(--radius);
  padding: clamp(1.15rem, 4vw, 2.6rem);
  color: #fff;
  background: linear-gradient(120deg, #173bbb, #254be2);
}

.result-intro h1 {
  grid-column: 1;
  grid-row: 1;
  font-size: clamp(1.8rem, 4.5vw, 3.15rem);
  letter-spacing: -.05em;
}

.result-intro .lead {
  grid-column: 1;
  grid-row: 2;
  margin-top: .15rem;
  color: #e8eeff;
}

.result-type {
  grid-column: 2;
  grid-row: 1 / span 2;
  margin: 0;
  padding: 0;
  color: #fff;
  background: transparent;
  font-size: clamp(2.3rem, 7vw, 5.1rem);
  line-height: .95;
  letter-spacing: -.052em;
  white-space: nowrap;
}

.result-intro :focus-visible {
  outline-color: #fff;
}

.result-grid {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: stretch;
}

.panel h2, .report-card h2 {
  font-size: clamp(1.5rem, 3vw, 1.95rem);
}

.panel .scale-marker {
  border-width: 2px;
  box-shadow: none;
}

.chip {
  border-color: #d1dcff;
  border-radius: .4rem;
}

.report-card {
  background: #f0f4ff;
}

@media (min-width: 47rem) {
  .choices {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .choice:not(:last-child) {
    min-height: 7.3rem;
    flex-direction: column;
    align-items: flex-start;
    gap: .4rem;
    overflow-wrap: anywhere;
    padding: .75rem;
  }

  .choice:not(:last-child) input {
    order: 1;
    margin-top: auto;
  }

  .choice:last-child {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

@media (max-width: 47rem) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
    padding-block: 2.75rem 2.3rem;
  }

  .preview-card {
    max-width: none;
  }

  .result-grid, .features {
    grid-template-columns: minmax(0, 1fr);
  }

  .feature + .feature {
    border-top: 1px solid var(--rule);
    padding-top: 1.25rem;
  }
}

@media (max-width: 31rem) {
  .result-intro {
    grid-template-columns: minmax(0, 1fr);
  }

  .result-type, .result-intro h1, .result-intro .lead {
    grid-column: 1;
    grid-row: auto;
  }

  .result-type {
    margin-bottom: .4rem;
  }

  .preview-card .scale-row {
    min-height: 5.6rem;
  }
}

@media (max-width: 22.5rem) {
  .hero-copy h1 {
    font-size: clamp(2.1rem, 11vw, 2.55rem);
  }

  .preview-card .scale-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .preview-card .scale-row {
    min-height: auto;
  }

  .quiz-actions .button {
    padding-inline: .75rem;
  }
}
