:root {
  --mint: #d6f9f8;
  --blue: #1004d3;
  --ink: #212529;
  --muted: #595959;
  --ease: 300ms ease;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--mint);
  color: var(--ink);
  font-family: Roboto, Helvetica, Arial, sans-serif;
}

.pattern {
  height: 64px;
  background: #d6f9f8 url("/assets/images/quiz-xoxo.png?v=3") left center / auto 64px repeat-x;
}

.quiz-header {
  padding: 28px 20px 8px;
  text-align: center;
}

.quiz-header img {
  width: 221px;
  height: auto;
}

main {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}

.stage {
  position: relative;
  flex: 1 0 auto;
  transition: min-height var(--ease);
}

.panel {
  padding: 12px 0 36px;
  text-align: center;
}

.panel.is-leaving,
.panel.is-entering {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
}

.panel.is-leaving {
  z-index: 2;
}

.panel.is-entering {
  z-index: 1;
  opacity: 0;
}

.panel.is-leaving.is-out {
  opacity: 0;
  transition: opacity 140ms linear;
}

.panel.is-entering.is-in {
  opacity: 1;
  transition: opacity 180ms ease;
}

h1,
.question-title,
.result-title {
  margin: 0 auto;
  max-width: 22em;
  color: var(--blue);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.25;
}

.landing-title {
  font-size: 36px;
  line-height: 1.15;
}

.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
  width: min(760px, 100%);
  margin: 28px auto 0;
  text-align: left;
}

.roxi {
  position: relative;
  flex: 0 0 162px;
  width: 162px;
  height: 269px;
}

.roxi::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 114px;
  width: 195px;
  height: 83px;
  background: #71dcd8;
  border-radius: 50%;
  transform: translateX(-50%) rotate(-41deg);
}

.roxi img {
  position: relative;
  z-index: 1;
  display: block;
  width: 162px;
  height: 269px;
  object-fit: contain;
}

.result-copy {
  max-width: 322px;
}

.lede {
  max-width: 16rem;
  margin: 0;
  color: var(--ink);
  font-size: 26px;
  font-weight: 500;
  line-height: 32px;
}

.cta,
.choice,
.where,
.go-back {
  font: inherit;
  cursor: pointer;
}

.cta,
.where {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 244px;
  min-height: 61px;
  margin-top: 28px;
  padding: 12px 20px;
  border: 1px solid var(--blue);
  border-radius: 15px;
  background: #fff;
  color: var(--blue);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.15;
  text-decoration: none;
}

.pack {
  display: block;
  width: min(323px, 88%);
  height: auto;
  margin: 28px auto 0;
}

.pack-callout {
  width: min(445px, 92%);
}

.progress {
  display: flex;
  justify-content: flex-start;
  gap: 0;
  width: min(244px, 100%);
  max-width: 280px;
  height: auto;
  margin: 0 auto 12px;
  background: transparent;
}

.panel:has(.answers.stack) .progress {
  width: min(320px, 100%);
  max-width: 320px;
}

.progress > span {
  display: block;
  flex: 0 0 25%;
  width: 25%;
  min-width: 0;
  height: 8px;
  border-radius: 0;
  background: transparent;
  transition: background 300ms ease-out;
}

.progress > span:first-child {
  border-radius: 10px 0 0 10px;
}

.progress > span:last-child {
  border-radius: 0 10px 10px 0;
}

.progress > span:first-child:last-child {
  border-radius: 10px;
}

@media (min-width: 701px) {
  .progress {
    width: min(100%, 513px);
    max-width: none;
  }

  .panel:has(.answers.stack) .progress {
    width: min(100%, 520px);
    max-width: none;
  }
}

.progress > span.is-on {
  background: var(--blue);
}

.progress-label {
  margin: 0 0 18px;
  color: #363636;
  font-size: 18px;
  font-weight: 500;
}

.prompt {
  max-width: 40rem;
  margin: 0 auto 14px;
  color: var(--muted);
  font-size: 20px;
  font-weight: 500;
  line-height: 24px;
}

.question-title {
  max-width: 28em;
  color: var(--blue);
  font-size: 26px;
  font-weight: 500;
  line-height: 30px;
}

.question-title.is-bold {
  font-weight: 700;
  line-height: 1.3;
}

@media (min-width: 701px) {
  .landing-title {
    max-width: none;
  }

  .landing-title br {
    display: none;
  }
}

.answers {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 25px;
  width: min(100%, 540px);
  margin: 28px auto 0;
}

.choice {
  flex: 0 1 244px;
  width: 244px;
  min-height: 61px;
  padding: 12px 18px;
  border: 1px solid var(--blue);
  border-radius: 15px;
  background: #fff;
  color: var(--blue);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.15;
}

.answers.stack {
  width: min(100%, 560px);
}

.answers.stack .choice {
  flex-basis: 100%;
  width: min(100%, 520px);
  max-width: 520px;
}

.choice[aria-pressed="true"] {
  background: var(--blue);
  color: #fff;
}

.go-back {
  display: inline-flex;
  margin-top: 26px;
  padding: 8px;
  border: 0;
  background: transparent;
  color: #363636;
  font-size: 18px;
  font-weight: 500;
}

.result-title,
.result-body,
.result-lead {
  color: var(--blue);
}

.result-title {
  max-width: 16em;
  margin: 0;
  font-size: 26px;
  font-weight: 500;
  line-height: 30px;
  text-align: left;
}

.result-plain .result-title,
.result-plain .result-lead {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.result-kicker {
  max-width: none;
  margin-top: 36px;
  font-size: 1.7rem;
  letter-spacing: -0.02em;
}

.result-lead {
  max-width: 36rem;
  margin: 28px auto 0;
  font-size: 26px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 32px;
}

.result-follow {
  margin-top: 16px;
}

.result-note {
  display: block;
  max-width: 20rem;
  margin: 16px 0 0;
  color: var(--ink);
  font-size: 24px;
  font-weight: 500;
  line-height: 30px;
  text-align: left;
}

a.result-note {
  color: var(--ink);
  text-decoration: none;
}

a.result-note:hover,
a.result-note:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.quiz-footer {
  padding: 32px 48px 28px;
  background: var(--blue);
  color: #fff;
  text-align: left;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 8px 22px;
  margin-bottom: 22px;
}

.footer-links a {
  color: #fff;
  font-size: 20px;
  font-weight: 600;
  text-decoration: none;
}

.quiz-footer p {
  margin: 0;
  font-size: 16px;
  line-height: 1.45;
}

.cta:focus-visible,
.choice:focus-visible,
.where:focus-visible,
.go-back:focus-visible,
.result-note:focus-visible,
.footer-links a:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.choice:focus-visible,
.go-back:focus-visible,
.result-note:focus-visible,
.cta:focus-visible {
  outline-color: var(--blue);
}

@media (hover: hover) and (pointer: fine) {
  .choice:hover,
  .cta:hover,
  .where:hover {
    transform: translateY(-3px);
  }
}

@media (max-width: 700px) {

  .hero {
    gap: 10px;
    align-items: center;
    width: 100%;
  }

  .roxi,
  .roxi img {
    flex-basis: 132px;
    width: 132px;
    height: 219px;
  }

  .roxi::before {
    top: 93px;
    width: 159px;
    height: 68px;
  }

  .lede,
  .result-note {
    font-size: 20px;
    line-height: 26px;
  }

  .pattern {
    height: 72px;
    background-size: auto 72px;
  }

  .quiz-header {
    padding-top: 22px;
  }

  .quiz-header img {
    width: 200px;
  }

  .result-kicker {
    margin-top: 28px;
    font-size: 1.5rem;
  }

  .result-lead {
    max-width: 20rem;
    margin-top: 18px;
    font-size: 22px;
    line-height: 28px;
  }

  h1.result-title {
    max-width: 11em;
    font-size: 22px;
    line-height: 28px;
  }

  .panel {
    padding-bottom: 28px;
  }

  .landing-title {
    max-width: 12em;
    font-size: 30px;
  }

  .pack {
    width: min(323px, 92%);
  }

  .pack-callout {
    width: min(355px, 94%);
  }

  .question-title {
    font-size: 26px;
    line-height: 32px;
  }

  .answers,
  .answers.stack {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .choice,
  .answers.stack .choice {
    flex-basis: auto;
    width: min(244px, 100%);
    max-width: 280px;
    min-height: 61px;
    font-size: 22px;
  }

  .answers.stack .choice {
    width: min(320px, 100%);
    max-width: 320px;
    font-size: 18px;
  }

  .quiz-footer {
    padding: 24px 20px 22px;
  }

  .footer-links {
    max-height: 220px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .stage,
  .panel.is-entering.is-in,
  .panel.is-leaving.is-out,
  .progress > span,
  .footer-links,
  .choice,
  .cta,
  .where {
    transition: none;
  }
}
