:root {
  --midnight: #222a46;
  --midnight-hover: #293357;
  --midnight-press: #1a2137;
  --yellow: #ffd500;
  --yellow-hover: #ffde3b;
  --yellow-press: #f0c800;
  --background-grey: #f7f7f7;
  --border-grey: #d4d4d4;
  --red: #f24236;
  --green: #22c55e;
  font-family: Inter, 'Inter Offline', Arial, Helvetica, sans-serif;
  color: var(--midnight);
  background: var(--background-grey);
  font-synthesis: none;
  -webkit-tap-highlight-color: transparent;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
a {
  touch-action: manipulation;
}
button {
  font: inherit;
  cursor: pointer;
}
button:disabled {
  cursor: default;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--midnight);
  outline-offset: 6px;
}
.screen {
  min-height: 100svh;
  padding: max(30px, env(safe-area-inset-top)) max(40px, env(safe-area-inset-right)) max(28px, env(safe-area-inset-bottom)) max(40px, env(safe-area-inset-left));
  display: flex;
  flex-direction: column;
}
.shell {
  width: 100%;
  max-width: 1180px;
  margin: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: calc(100svh - 60px);
}
.top,
.bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  color: inherit;
}
.brand .logo-svg {
  width: 35px;
  height: auto;
  display: block;
}
.brand-wordmark {
  font-family: 'Inter', sans-serif;
  font-size: 28px;
  line-height: 1;
  font-weight: 620;
}
.tag {
  font-size: 13px;
  line-height: 1.4;
  text-align: right;
}
.content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 42px 0;
}
.eyebrow {
  font-size: 15px;
  line-height: 1.4;
  margin: 0 0 22px;
}
h1 {
  font-size: clamp(36px, 5.2vw, 72px);
  line-height: 1.06;
  max-width: 1000px;
  margin: 0;
  font-weight: 700;
  text-wrap: balance;
}
h1:focus {
  outline: none;
}
.description {
  font-size: 20px;
  line-height: 1.5;
  max-width: 630px;
  margin: 26px 0 0;
}
.welcome {
  color: white;
}
.welcome .title-highlight,
.welcome .tag {
  color: var(--yellow);
}
.welcome .description,
.welcome .note {
  color: #d7dbe7;
}
.welcome h1 {
  max-width: 1000px;
}
.welcome .bottom {
  justify-content: flex-end;
}
.welcome .primary:focus-visible {
  outline-color: white;
}
.primary {
  border: 0;
  border-radius: 7px;
  width: fit-content;
  background: var(--yellow);
  color: var(--midnight);
  min-height: 64px;
  padding: 11px 25px;
  font-size: 20px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  text-decoration: none;
}
.primary:hover {
  background: var(--yellow-hover);
}
.primary:active {
  background: var(--yellow-press);
}
.arrow {
  display: block;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}
.note,
.counter {
  font-size: 13px;
}
.question h1 {
  font-size: clamp(34px, 4.1vw, 57px);
}
.hint {
  margin: 20px 0 38px;
  color: #5c6273;
  font-size: 17px;
}
.answers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  max-width: 1000px;
}
.answer {
  border: 1px solid var(--border-grey);
  background: white;
  border-radius: 22px;
  min-height: 88px;
  padding: 20px 22px;
  text-align: left;
  font-size: 20px;
  line-height: 1.3;
  color: var(--midnight);
  display: flex;
  align-items: center;
  gap: 16px;
  transition:
    background 0.15s,
    border-color 0.15s,
    transform 0.15s;
}
.answer.selected {
  border-color: var(--midnight);
  background: var(--yellow);
}
.answer:active {
  transform: scale(0.985);
}
.restart {
  background: none;
  border: 0;
  padding: 14px 0;
  color: #5c6273;
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.bottom {
  min-height: 64px;
}
.bottom-center {
  flex: 1;
  text-align: center;
  color: #5c6273;
  font-size: 13px;
}
.reveal {
  animation: reveal 1.125s cubic-bezier(0.2, 0.6, 0.3, 1) both;
}
@keyframes reveal {
  from {
    clip-path: inset(-0.25em 100% -0.25em -0.1em);
    opacity: 0.4;
  }
  99% {
    clip-path: inset(-0.25em -0.1em -0.25em -0.1em);
    opacity: 1;
  }
  to {
    clip-path: none;
    opacity: 1;
  }
}
.qr {
  background: white;
  border-radius: 24px;
  padding: 20px;
  width: 210px;
  text-align: center;
}
.qr img {
  display: block;
  width: 170px;
  height: 170px;
  object-fit: contain;
}
.qr p {
  font-size: 13px;
  line-height: 1.4;
}
.error {
  background: white;
  border: 1px solid var(--red);
  border-radius: 18px;
  padding: 20px;
  margin-top: 22px;
  line-height: 1.5;
}
.error button {
  margin-top: 12px;
}
.loading {
  padding: 40px;
}
@media (orientation: portrait) and (min-width: 700px) {
  .content {
    padding: 70px 0;
  }
  h1 {
    font-size: 76px;
  }
  .question h1 {
    font-size: 60px;
  }
  .answers {
    grid-template-columns: 1fr;
  }
  .answer {
    min-height: 98px;
  }
}
@media (max-width: 699px) {
  .screen {
    padding: max(24px, env(safe-area-inset-top)) 24px max(24px, env(safe-area-inset-bottom));
  }
  .shell {
    min-height: calc(100svh - 48px);
  }
  .tag {
    display: none;
  }
  .content {
    padding: 36px 0;
  }
  .answers {
    grid-template-columns: 1fr;
  }
  .answer {
    min-height: 72px;
    font-size: 17px;
    padding: 15px;
    border-radius: 18px;
  }
  .bottom {
    flex-wrap: wrap;
    gap: 16px;
  }
  .description {
    font-size: 18px;
  }
  .bottom-center {
    font-size: 11px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
.question-progress {
  margin-top: 30px;
  height: 5px;
  border-radius: 10px;
  overflow: hidden;
  background: #222a4614;
}
.question-progress span {
  display: block;
  height: 100%;
  background: var(--midnight);
  border-radius: inherit;
  transition: width 0.25s ease;
}

@media (hover: hover) {
  .answer:hover {
    border-color: var(--midnight);
    background: var(--yellow);
  }
}

.header-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}
.sync-status {
  font-size: 11px;
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
  opacity: 0.75;
  pointer-events: none;
  white-space: nowrap;
}
.sync-status::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 6px;
  background: currentColor;
  border-radius: 50%;
  vertical-align: 1px;
}
.sync-status[hidden] {
  display: none;
}
.many-options .content {
  padding: 28px 0;
}
.many-options h1 {
  font-size: clamp(30px, 3.5vw, 48px);
}
.many-options .answer {
  min-height: 72px;
  font-size: 17px;
  padding: 14px 18px;
}
.priorities .answer {
  font-size: 16px;
}
.answer[aria-pressed='false']:disabled {
  opacity: 0.5;
}
.primary:disabled {
  opacity: 0.4;
  cursor: default;
}
.selection-count {
  color: #5c6273;
  font-size: 14px;
}
.results {
  background: var(--background-grey);
}
.results .content {
  padding: 28px 0;
}
.results h1 {
  font-size: clamp(30px, 3.2vw, 44px);
}
.results .description {
  font-size: 17px;
  margin-top: 18px;
}
.results-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  gap: 42px;
  align-items: center;
}
.results-copy {
  min-width: 0;
}
.result-dimensions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.result-dimensions span {
  border: 1px solid var(--border-grey);
  border-radius: 99px;
  padding: 6px 10px;
  font-size: 11px;
}
.results h2 {
  font-size: 14px;
  line-height: 1.4;
  margin: 22px 0 12px;
}
.capability-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.capability-list li {
  border-top: 3px solid var(--yellow);
  padding-top: 12px;
}
.capability-list strong {
  display: block;
  font-size: 15px;
  margin-bottom: 7px;
}
.capability-list span {
  font-size: 13px;
  line-height: 1.45;
  display: block;
}
.result-evidence {
  margin-top: 18px;
}
.result-evidence h2 {
  margin: 0 0 6px;
  font-size: 12px;
}
.result-evidence ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 11px;
  line-height: 1.4;
  color: #5c6273;
}
.result-note,
.result-disclaimer {
  font-size: 12px;
  line-height: 1.45;
  margin: 14px 0 0;
  max-width: 680px;
  color: #5c6273;
}
.result-disclaimer {
  font-size: 10px;
}
.results .bottom {
  flex-wrap: wrap;
}
.qr p {
  font-weight: bold;
}
.commercial-illustration {
  margin-top: 18px;
  padding: 16px;
  border-radius: 16px;
  background: #ffd50030;
}
.commercial-illustration p {
  font-size: 12px;
  line-height: 1.4;
}
@media (orientation: portrait) and (min-width: 700px) {
  .many-options .answer {
    min-height: 78px;
  }
  .many-options h1 {
    font-size: 44px;
  }
  .results-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
  .results .qr {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 22px;
    padding: 16px;
  }
  .results .qr img {
    height: 138px;
    width: 138px;
  }
  .results .qr p {
    font-size: 17px;
    text-align: left;
    max-width: 340px;
  }
}
@media (max-width: 699px) {
  .results-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
  .capability-list {
    grid-template-columns: 1fr;
  }
  .result-evidence ul {
    grid-template-columns: 1fr;
  }
  .results .bottom {
    align-items: flex-start;
  }
}

/* The supplied yellow QR artwork stays intact; dark display gives scanners
   clear contrast on its white card. */
.qr img {
  filter: brightness(0);
}

.results .bottom {
  justify-content: flex-end;
}
.reset-button {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  min-width: 240px;
  min-height: 72px;
  padding: 14px 28px;
  background: white;
  color: var(--midnight);
  border: 1.5px solid var(--midnight);
  border-radius: 7px;
}
.reset-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: var(--reset-progress, 0%);
  background: var(--yellow);
  transition: width 0.25s linear;
  z-index: -1;
}
.reset-button-label {
  font-size: 18px;
  font-weight: bold;
}
.reset-countdown {
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.reset-button:hover {
  border-color: var(--midnight-hover);
}
.reset-button:active {
  transform: scale(0.985);
}

/* One persistent canvas sits above the page colour and beneath the questionnaire. */
body {
  background: var(--background-grey);
}
body[data-screen='welcome'],
body[data-screen='results'] {
  background: linear-gradient(180deg, var(--midnight-press) 35%, var(--midnight) 100%);
  background-attachment: fixed;
}
#telescope-stars {
  display: none;
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
body[data-screen='welcome'] #telescope-stars {
  display: block;
}
#app {
  position: relative;
  z-index: 1;
}
.screen.welcome,
.screen.results {
  background: transparent;
}

.welcome #begin {
  align-self: flex-start;
  margin-top: 32px;
}
.welcome .bottom {
  display: none;
}

/* Quiz navigation: restart in the header, progress grouped in the footer. */
.restart-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 8px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--midnight);
}
.restart-icon svg {
  display: block;
}
.restart-icon:hover {
  background: #222a4610;
}
.restart-icon:active {
  background: #222a4620;
}
.quiz-progress {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1;
  min-width: 180px;
  max-width: 580px;
}
.quiz-progress .counter {
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}
.quiz-progress .question-progress {
  flex: 1;
  margin-top: 0;
}
.quiz-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
}
@media (max-width: 699px) {
  .quiz-progress {
    flex-basis: 100%;
    max-width: none;
  }
  .quiz-controls {
    width: 100%;
  }
}

/* Clearer answer typography, with title/description cards for priorities. */
@font-face {
  font-family: 'Inter Offline';
  src: url('assets/InterVariable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
.answer {
  font-size: 23px;
  font-weight: 550;
}
.many-options .answer {
  font-size: 21px;
}
.answer-copy {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.answer-title {
  font-size: 21px;
  font-weight: 550;
  line-height: 1.25;
}
.answer-description {
  font-size: 17px;
  font-weight: 400;
  line-height: 1.35;
}
@media (max-width: 699px) {
  .answer,
  .many-options .answer {
    font-size: 19px;
  }
  .answer-title {
    font-size: 20px;
  }
  .answer-description {
    font-size: 16px;
  }
}

/* A concise verdict and recommendations on the Telescope gradient. */
.results {
  color: white;
}
.results .header-meta:has(.sync-status[hidden]) {
  display: none;
}
.results-layout {
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 64px;
}
.results h1 {
  font-size: clamp(34px, 3.6vw, 50px);
  line-height: 1.12;
}
.verdict-prefix {
  color: var(--yellow);
}
.results .description {
  color: #d7dbe7;
  font-size: 19px;
  line-height: 1.5;
  max-width: 620px;
  margin-top: 20px;
}
.results h2 {
  font-size: 18px;
  font-weight: 550;
  margin: 32px 0 18px;
}
.results .capability-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 650px;
}
.results .capability-list li {
  border: 0;
  padding: 0;
}
.results .capability-list strong {
  color: var(--yellow);
  font-size: 20px;
  font-weight: 550;
  margin-bottom: 4px;
}
.results .capability-list span {
  color: #d7dbe7;
  font-size: 16px;
  line-height: 1.45;
}
.results .qr {
  width: 280px;
  padding: 24px;
  border-radius: 7px;
  background: transparent;
}
.results .qr img {
  width: 232px;
  height: 232px;
  filter: none;
}
.results .qr p {
  font-size: 16px;
  font-weight: 550;
  line-height: 1.5;
  margin: 18px 0 0;
}
.results .reset-button {
  background: white;
  color: var(--midnight);
  border-color: white;
  min-width: 220px;
}
.results .reset-fill {
  width: var(--reset-progress, 0%);
  background: var(--yellow);
  clip-path: none;
  transition: width 0.25s linear;
}
.results .reset-button:focus-visible {
  outline-color: var(--yellow);
}
@media (orientation: portrait) and (min-width: 700px) {
  .results-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .results .qr {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 22px;
    gap: 24px;
  }
  .results .qr img {
    width: 190px;
    height: 190px;
  }
  .results .qr p {
    margin: 0;
    max-width: 340px;
    text-align: left;
  }
}
@media (max-width: 699px) {
  .results-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .results .qr {
    width: 100%;
  }
  .results .qr img {
    margin: auto;
  }
}

.question:not(.priorities) .answers {
  margin-top: 40px;
}

/* Questions begin with their main heading, without a section label. */
.question .eyebrow {
  display: none;
}
