:root {
  color-scheme: light;
  --ink: #17191d;
  --paper: #fff;
  --muted: #53555a;
  --rule: #d5d6d8;
  --gutter: clamp(20px, 5.6vw, 76px);
  --body: Optima, 'Avenir Next', 'Trebuchet MS', sans-serif;
  --display: Baskerville, 'Baskerville Old Face', 'Palatino Linotype', Palatino, Georgia, serif;
  font-family: var(--body);
  color: var(--ink);
  background: var(--paper);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }
h1, h2, p { margin: 0; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
input::placeholder { color: var(--ink); font-style: italic; opacity: 1; }
a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}

h1:focus { outline: none; }

.page-width {
  width: calc(100% - 2 * var(--gutter));
  max-width: 1184px;
  margin-inline: auto;
}

.site-header {
  min-height: 65px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--rule);
}

.wordmark-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.wordmark {
  display: block;
  width: clamp(128px, 30vw, 186px);
  height: auto;
}

.campaign {
  font-size: clamp(.74rem, 2.8vw, .86rem);
  letter-spacing: .06em;
  white-space: nowrap;
}

.intro {
  display: grid;
  align-items: center;
  gap: 30px;
  padding-block: clamp(44px, 8vw, 100px) 42px;
}

.eyebrow {
  font-size: .73rem;
  font-weight: 600;
  letter-spacing: .115em;
  line-height: 1.4;
  text-transform: uppercase;
}

.origin-country { white-space: nowrap; }
.origin-flag { margin-inline-start: .18em; vertical-align: .04em; }

.intro h1 {
  margin-block: 11px 20px;
  font-family: var(--display);
  font-size: clamp(2.55rem, 10.6vw, 5rem);
  font-weight: 400;
  letter-spacing: -.045em;
  line-height: .98;
}

.intro h1 span { display: block; }

.lede {
  font-size: clamp(1.06rem, 2.5vw, 1.225rem);
  line-height: 1.55;
  max-width: 44ch;
}

.intro-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px 18px;
  margin-top: 23px;
}

.return-link { display: inline-flex; align-items: center; }

.fine-print, .site-footer {
  font-size: .84rem;
  line-height: 1.5;
}

.intro-package {
  min-width: 0;
  align-self: center;
}

.intro-art {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center 44%;
}

.intro-package-copy {
  display: grid;
  gap: 5px 12px;
  border-bottom: 1px solid var(--rule);
  padding-block: 12px;
}

.intro-package-copy p {
  max-width: 41ch;
  font-size: .87rem;
  line-height: 1.5;
}

.flow {
  width: 100%;
  max-width: 680px;
  margin-inline: auto;
  padding-block: clamp(19px, 5vw, 62px) 42px;
}

.step-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 44px;
  margin-bottom: 15px;
}

.back, .text-button {
  background: transparent;
  border: 0;
  color: inherit;
  min-height: 44px;
}

.back {
  display: inline-flex;
  align-items: center;
  padding-inline: 0 12px;
}

.back:hover { text-decoration: underline; }

.text-button {
  padding-inline: 0;
  text-decoration: underline;
  text-underline-offset: .24em;
  font-size: .91rem;
}

.text-button:hover:not(:disabled) { text-decoration-thickness: 2px; }

.step-count {
  font-size: .85rem;
  font-variant-numeric: tabular-nums;
}

progress {
  display: block;
  width: 100%;
  height: 3px;
  overflow: hidden;
  border: 0;
  appearance: none;
  color: var(--ink);
  background: var(--rule);
}

progress::-webkit-progress-bar { background: var(--rule); }
progress::-webkit-progress-value { background: var(--ink); }
progress::-moz-progress-bar { background: var(--ink); }

.section-name { margin-top: clamp(26px, 7vw, 50px); }

.step-title {
  max-width: 24ch;
  margin-block: 8px 20px;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.48rem, 8.3vw, 4.3rem);
  letter-spacing: -.042em;
  line-height: .99;
}

.question-title { margin-bottom: clamp(26px, 6vw, 42px); }

.motivation-options {
  border-top: 1px solid var(--rule);
  margin-block: 24px 20px;
  max-width: 34rem;
}

.motivation-choice {
  display: flex;
  gap: 12px;
  align-items: center;
  min-height: 48px;
  padding: 7px 2px;
  border-bottom: 1px solid var(--rule);
  cursor: pointer;
}

.motivation-choice input {
  width: 19px;
  height: 19px;
  margin: 0;
  accent-color: var(--ink);
  flex: none;
  cursor: pointer;
}

.motivation-choice:hover span,
.motivation-choice:has(input:checked) span { font-weight: 700; }

.answer-scale {
  isolation: isolate;
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  max-width: 38rem;
}

.answer-scale::before {
  content: '';
  position: absolute;
  z-index: -1;
  top: 23px;
  left: 10%;
  right: 10%;
  border-top: 1px solid #9b9ca0;
}

.scale-choice {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 11px 2px 10px;
  gap: 11px;
  min-height: 44px;
  text-align: center;
  line-height: 1.24;
  font-size: clamp(.69rem, 3.2vw, .92rem);
  cursor: pointer;
}

.scale-choice input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
}

.scale-dot {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--paper);
  flex: none;
}

.scale-dot::after {
  content: '';
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--paper);
  transform: scale(0);
}

.scale-choice input:checked + .scale-dot {
  background: var(--ink);
  outline: 1px solid var(--ink);
  outline-offset: 2px;
}

.scale-choice input:checked + .scale-dot::after { transform: scale(1); }
.scale-choice input:focus-visible + .scale-dot { outline: 2px solid var(--ink); outline-offset: 5px; }
.scale-choice:has(input:checked) { font-weight: 700; }

.step-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 22px;
}

.button {
  min-height: 49px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  padding: 10px 17px;
  line-height: 1.2;
  text-align: start;
}

.primary {
  color: var(--paper);
  background: var(--ink);
}

.primary:disabled {
  background: var(--paper);
  border-style: dashed;
  color: var(--ink);
}

.halfway {
  max-width: 880px;
  padding-top: clamp(16px, 4vw, 54px);
}

.halfway .step-header { margin-bottom: 9px; }
.halfway-heading { margin-block: 23px 22px; }

.halfway-heading .step-title {
  max-width: 20ch;
  margin-bottom: 13px;
  text-wrap: balance;
}

.halfway-heading .lede { max-width: 58ch; }

.halfway-content {
  display: grid;
  align-items: start;
  gap: 20px 36px;
}

.benchmark-card {
  padding: clamp(18px, 4.5vw, 32px);
  background: var(--ink);
  color: var(--paper);
}

.benchmark-value {
  margin-block: 6px 4px;
  font-family: var(--display);
  font-size: clamp(3rem, 13vw, 5.7rem);
  letter-spacing: -.058em;
  line-height: 1;
}

.benchmark-description {
  max-width: 38ch;
  font-size: .96rem;
  line-height: 1.43;
}

.benchmark-source {
  margin-top: 12px;
  font-size: .74rem;
  line-height: 1.4;
}

.benchmark-source a { text-underline-offset: .18em; }
.benchmark-source a:focus-visible { outline-color: var(--paper); }

.benchmark-options {
  margin: 0 0 13px;
  padding: 0;
  border: 0;
  min-inline-size: 0;
}

.benchmark-options legend {
  padding: 0;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
}

.benchmark-options .fine-print { margin: 2px 0 6px; }
.benchmark-choice { min-height: 44px; font-size: .94rem; }
.benchmark-choice input { width: 17px; height: 17px; }

.email-form {
  margin-top: 25px;
  max-width: 31rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
}

.email-form label { font-size: .93rem; font-weight: 700; }

.email-form input {
  min-width: 0;
  width: 100%;
  min-height: 50px;
  border: 1px solid #6d6f74;
  border-radius: 0;
  background: var(--paper);
  color: var(--ink);
  padding: 9px 12px;
  font-size: 1rem;
}

.email-form input[aria-invalid='true'] { border: 2px solid var(--ink); }

.email-form .button { justify-self: start; margin-top: 8px; }
.feedback { font-size: .95rem; font-weight: 700; line-height: 1.45; }

.site-footer {
  padding-block: 13px 16px;
  border-top: 1px solid var(--rule);
  font-size: .75rem;
}

.screen[hidden] { animation: none; }
.screen.is-entering { animation: screen-in .19s ease-out both; }

@keyframes screen-in {
  from { opacity: .78; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (hover: hover) {
  .primary:hover:not(:disabled) {
    background: var(--paper);
    color: var(--ink);
  }
}

@media (min-width: 760px) {
  .site-header { min-height: 86px; }
  .intro { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(28px, 7vw, 110px); }
  .intro h1 { font-size: clamp(3.5rem, 6.7vw, 5.55rem); }
  .intro-art { aspect-ratio: 1; }
  .halfway-heading { margin-block: 33px 28px; }
  .halfway-content { grid-template-columns: minmax(0, 1.16fr) minmax(0, 1fr); }
  .halfway-action { padding-top: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

@media (forced-colors: active) {
  .scale-dot { forced-color-adjust: none; background: Canvas; border-color: ButtonText; }
  .scale-choice input:checked + .scale-dot { background: Highlight; outline-color: Highlight; }
  .scale-choice input:focus-visible + .scale-dot { outline-color: Highlight; }
  .scale-dot::after { background: HighlightText; }
}
