:root {
  color-scheme: light;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  color: #172033;
  background: #f5f7fb;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  padding: 48px 18px;
}

button,
select {
  font: inherit;
}

.page {
  width: min(100%, 680px);
  margin: 0 auto;
}

.intro {
  margin-bottom: 24px;
  text-align: center;
}

.eyebrow {
  margin: 0 0 8px;
  color: #5267d8;
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.12em;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 7vw, 2.8rem);
  letter-spacing: -0.04em;
}

.intro > p:last-child {
  margin: 10px 0 0;
  color: #626d80;
}

.card {
  padding: clamp(22px, 5vw, 38px);
  border: 1px solid #e3e8f1;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 36px rgb(26 39 71 / 7%);
}

h2 {
  margin: 0 0 22px;
  font-size: 1.35rem;
  line-height: 1.4;
}

.primary {
  width: 100%;
  min-height: 48px;
  margin-top: 18px;
  padding: 11px 16px;
  border: 0;
  border-radius: 9px;
  cursor: pointer;
  font-weight: 700;
}

.primary {
  background: #5267d8;
  color: #fff;
}

.primary:hover:not(:disabled) {
  background: #4054c3;
}

.primary:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.privacy-note {
  margin: 14px 0 0;
  color: #707b8e;
  font-size: 0.84rem;
  text-align: center;
}

.quiz-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.text-button {
  padding: 4px 0;
  border: 0;
  background: none;
  color: #5267d8;
  cursor: pointer;
  font-weight: 650;
}

.progress {
  color: #626d80;
  font-size: 0.9rem;
  white-space: nowrap;
}

.progress-track {
  height: 7px;
  margin-bottom: 25px;
  overflow: hidden;
  border-radius: 99px;
  background: #edf0f6;
}

#progress-bar {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: #5267d8;
  transition: width 180ms ease;
}

.options {
  display: grid;
  gap: 10px;
}

.option {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 13px 14px;
  border: 1px solid #dce2ed;
  border-radius: 10px;
  cursor: pointer;
  line-height: 1.5;
}

.option:hover {
  border-color: #9aa8e8;
  background: #f8f9ff;
}

.option:has(input:checked) {
  border-color: #5267d8;
  background: #f3f5ff;
}

.option input {
  flex: 0 0 auto;
  margin: 4px 0 0;
  accent-color: #5267d8;
}

.option input:disabled {
  cursor: default;
}

.feedback {
  min-height: 24px;
  margin-top: 14px;
  line-height: 1.5;
}

.feedback.correct {
  color: #167447;
}

.feedback.incorrect {
  color: #b13d34;
}

.score {
  margin: -8px 0 8px;
  color: #5267d8;
  font-size: 1.5rem;
  font-weight: 750;
}

noscript {
  display: block;
  margin-top: 18px;
  color: #b13d34;
  text-align: center;
}

@media (max-width: 480px) {
  body {
    padding: 28px 14px;
  }

  .card {
    border-radius: 14px;
  }
}
