:root {
  --ink: #21352d;
  --ink-soft: #52635c;
  --forest: #173e32;
  --forest-deep: #0f2f27;
  --magenta: #a72c67;
  --rose: #d88fae;
  --rose-pale: #edd5dd;
  --cream: #f6efe9;
  --paper: #fffdf9;
  --gold: #b99b67;
  --line: rgba(23, 62, 50, 0.15);
  --shadow: 0 28px 70px rgba(44, 53, 46, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--cream);
}

body {
  min-width: 320px;
  min-height: 100svh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 12%, rgba(216, 143, 174, 0.22), transparent 28rem),
    radial-gradient(circle at 92% 84%, rgba(23, 62, 50, 0.14), transparent 26rem),
    var(--cream);
  font-family: "DM Sans", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

.page-shell {
  width: min(100% - 32px, 1120px);
  min-height: 100svh;
  margin: 0 auto;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 24px 2px 12px;
  color: var(--forest);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 39px;
  height: 39px;
  border: 1px solid rgba(23, 62, 50, 0.38);
  border-radius: 50%;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 15px;
  letter-spacing: -0.04em;
}

.brand-name {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 16px;
  letter-spacing: 0.02em;
}

.brand-name i {
  color: var(--magenta);
  font-weight: 500;
}

.experience {
  position: relative;
  display: grid;
  align-items: center;
  padding: 32px 0 48px;
}

.screen {
  position: relative;
  z-index: 2;
  width: min(100%, 660px);
  margin: 0 auto;
  padding: clamp(28px, 6vw, 58px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 28px;
  background: rgba(255, 253, 249, 0.91);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.screen::before {
  content: "";
  position: absolute;
  width: 160px;
  height: 160px;
  top: -110px;
  right: -90px;
  border: 26px solid rgba(167, 44, 103, 0.08);
  border-radius: 50%;
}

.is-entering > * {
  animation: rise-in 440ms cubic-bezier(0.2, 0.75, 0.2, 1) both;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--magenta);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 500;
  text-wrap: balance;
}

.screen h1:focus,
.screen h2:focus {
  outline: none;
}

h1 {
  max-width: 540px;
  margin-bottom: 22px;
  font-size: clamp(47px, 9vw, 78px);
  line-height: 0.96;
  letter-spacing: -0.05em;
}

h1 em {
  color: var(--magenta);
  font-weight: 500;
}

h2 {
  margin-bottom: 28px;
  font-size: clamp(30px, 5vw, 42px);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.lead {
  max-width: 530px;
  margin-bottom: 12px;
  font-size: clamp(18px, 3vw, 22px);
  line-height: 1.48;
}

.supporting {
  max-width: 510px;
  margin-bottom: 30px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.65;
}

.primary-button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 15px 22px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: var(--forest);
  box-shadow: 0 12px 24px rgba(23, 62, 50, 0.19);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.primary-button:hover {
  transform: translateY(-2px);
  background: var(--forest-deep);
  box-shadow: 0 15px 28px rgba(23, 62, 50, 0.25);
}

.primary-button:focus-visible,
.answer-card:focus-visible,
.text-button:focus-visible {
  outline: 3px solid rgba(167, 44, 103, 0.35);
  outline-offset: 3px;
}

.microcopy,
.cta-note {
  margin: 12px 0 0 4px;
  color: var(--ink-soft);
  font-size: 12px;
}

.color-orbit {
  position: absolute;
  inset: 50% auto auto 50%;
  width: min(88vw, 880px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.orbit,
.orbit-center {
  position: absolute;
  display: block;
  border-radius: 50%;
  filter: blur(0.1px);
}

.orbit {
  width: 17%;
  aspect-ratio: 1;
  opacity: 0.5;
}

.orbit-one {
  top: 3%;
  left: 16%;
  background: var(--rose);
}

.orbit-two {
  right: 4%;
  top: 24%;
  background: var(--gold);
}

.orbit-three {
  bottom: 1%;
  right: 21%;
  background: var(--forest);
}

.orbit-four {
  bottom: 15%;
  left: 2%;
  background: var(--magenta);
}

.orbit-center {
  inset: 7%;
  border: 1px solid rgba(167, 44, 103, 0.1);
}

.progress-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.progress-track {
  height: 3px;
  margin-bottom: 34px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(23, 62, 50, 0.11);
}

.progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--magenta), var(--rose));
  transition: width 300ms ease;
}

.question-eyebrow {
  margin-bottom: 9px;
}

.answers {
  display: grid;
  gap: 10px;
}

.answer-card {
  position: relative;
  display: grid;
  grid-template-columns: 31px 1fr 20px;
  gap: 12px;
  width: 100%;
  min-height: 64px;
  align-items: center;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.62);
  font-size: 14px;
  line-height: 1.4;
  text-align: left;
  cursor: pointer;
  transition: border 180ms ease, transform 180ms ease, background 180ms ease;
}

.answer-card:hover {
  transform: translateY(-1px);
  border-color: rgba(167, 44, 103, 0.38);
  background: #fff;
}

.answer-card.is-selected {
  border-color: var(--magenta);
  background: rgba(237, 213, 221, 0.52);
}

.answer-letter {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  border: 1px solid rgba(23, 62, 50, 0.17);
  border-radius: 50%;
  color: var(--ink-soft);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 12px;
}

.answer-check {
  color: var(--magenta);
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 180ms ease, transform 180ms ease;
}

.answer-card.is-selected .answer-check {
  opacity: 1;
  transform: scale(1);
}

.quiz-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 22px;
  color: var(--ink-soft);
  font-size: 11px;
}

.text-button {
  padding: 5px 0;
  border: 0;
  color: var(--forest);
  background: transparent;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.result-copy {
  text-align: center;
}

.result-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 34px;
  padding: 7px 13px;
  border-radius: 999px;
  color: var(--forest);
  background: rgba(23, 62, 50, 0.07);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.result-copy h1 {
  max-width: none;
  margin-bottom: 14px;
  color: var(--magenta);
  font-size: clamp(48px, 9vw, 74px);
}

.result-short {
  margin-bottom: 22px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(19px, 3.5vw, 23px);
  line-height: 1.4;
}

.result-divider {
  display: grid;
  grid-template-columns: 1fr 6px 1fr;
  align-items: center;
  gap: 11px;
  width: 110px;
  margin: 0 auto 22px;
}

.result-divider span {
  height: 1px;
  background: var(--line);
}

.result-divider i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

.result-description {
  max-width: 535px;
  margin: 0 auto 17px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.7;
}

.result-insight {
  margin-bottom: 28px;
  color: var(--forest);
  font-size: 14px;
  font-weight: 600;
}

.result-cta {
  width: min(100%, 365px);
}

.cta-note {
  margin: 11px auto 18px;
}

.restart-button {
  display: block;
  margin: 0 auto;
  color: var(--magenta);
  text-decoration: underline;
  text-decoration-color: rgba(167, 44, 103, 0.3);
  text-underline-offset: 4px;
}

.score-note {
  display: block;
  margin-top: 22px;
  color: rgba(82, 99, 92, 0.6);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 2px 25px;
  color: var(--ink-soft);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

footer p {
  margin-bottom: 0;
  color: var(--magenta);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 12px;
  font-style: italic;
  letter-spacing: 0;
  text-transform: none;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(9px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 24px, 1120px);
  }

  .brand {
    padding-top: 18px;
  }

  .experience {
    align-items: start;
    padding: 18px 0 30px;
  }

  .screen {
    min-height: min(690px, calc(100svh - 142px));
    display: flex;
    align-items: center;
    padding: 30px 20px;
    border-radius: 22px;
  }

  .screen > * {
    width: 100%;
  }

  h1 {
    font-size: clamp(50px, 17vw, 68px);
  }

  h2 {
    margin-bottom: 24px;
    font-size: clamp(29px, 9vw, 38px);
  }

  .answer-card {
    min-height: 67px;
    padding: 11px 12px;
    font-size: 13.5px;
  }

  .quiz-actions span {
    display: none;
  }

  .result-kicker {
    margin-bottom: 26px;
  }

  .result-description {
    font-size: 14px;
    line-height: 1.62;
  }

  footer {
    justify-content: center;
  }

  footer span {
    display: none;
  }
}

@media (max-width: 390px) {
  .screen {
    padding: 25px 17px;
  }

  .brand-name {
    font-size: 15px;
  }

  .answer-card {
    grid-template-columns: 28px 1fr 17px;
    gap: 9px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
