:root {
  --ink: #17192a;
  --muted: #686b7c;
  --line: #e5e6ee;
  --surface: #ffffff;
  --background: #f6f7fb;
  --purple: #7157d9;
  --purple-dark: #5c42c1;
  --purple-soft: #eeeafd;
  --mint: #dff8ee;
  --mint-dark: #278668;
  --shadow: 0 26px 70px rgba(40, 35, 72, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 15%, rgba(203, 246, 228, 0.72), transparent 25rem),
    radial-gradient(circle at 92% 78%, rgba(224, 217, 253, 0.78), transparent 28rem),
    var(--background);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

button {
  font: inherit;
}

.page-shell {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.site-header {
  display: flex;
  min-height: 92px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(91, 91, 113, 0.13);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 750;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 37px;
  height: 37px;
  place-items: center;
  border-radius: 11px;
  color: #fff;
  background: linear-gradient(145deg, #7b62e3, #5b40be);
  box-shadow: 0 7px 18px rgba(99, 73, 197, 0.24);
}

.brand-mark svg {
  width: 23px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.header-note {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.header-note svg {
  width: 18px;
  fill: none;
  stroke: var(--purple);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.main-content {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(440px, 1fr);
  gap: clamp(48px, 8vw, 112px);
  min-height: calc(100vh - 92px);
  align-items: center;
  padding: 56px 0 68px;
}

.intro {
  max-width: 510px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 21px;
  padding: 8px 13px;
  border: 1px solid #ddd7f8;
  border-radius: 999px;
  color: var(--purple-dark);
  background: rgba(248, 246, 255, 0.86);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #55bd99;
  box-shadow: 0 0 0 4px rgba(85, 189, 153, 0.14);
}

h1 {
  margin: 0;
  font-size: clamp(43px, 5.2vw, 69px);
  font-weight: 790;
  letter-spacing: -0.055em;
  line-height: 0.99;
}

h1 span {
  color: var(--purple);
}

.intro-copy {
  max-width: 485px;
  margin: 25px 0 31px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.benefits {
  display: grid;
  gap: 14px;
}

.benefit {
  display: flex;
  align-items: center;
  gap: 13px;
}

.benefit-icon {
  display: grid;
  flex: 0 0 39px;
  height: 39px;
  place-items: center;
  border-radius: 12px;
  color: var(--mint-dark);
  background: var(--mint);
}

.benefit:nth-child(2) .benefit-icon {
  color: var(--purple);
  background: var(--purple-soft);
}

.benefit-icon svg {
  width: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.benefit div {
  display: grid;
  gap: 2px;
}

.benefit strong {
  font-size: 14px;
}

.benefit div span {
  color: var(--muted);
  font-size: 13px;
}

.learner-note {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 31px;
  padding-top: 26px;
  border-top: 1px solid rgba(91, 91, 113, 0.14);
}

.avatars {
  display: flex;
  padding-left: 7px;
}

.avatars span {
  display: grid;
  width: 31px;
  height: 31px;
  margin-left: -7px;
  place-items: center;
  border: 2px solid var(--background);
  border-radius: 50%;
  color: #4a4560;
  background: #e7e1fb;
  font-size: 8px;
  font-weight: 800;
}

.avatars span:nth-child(2) {
  background: #d6f2e8;
}

.avatars span:nth-child(3) {
  background: #fde8cf;
}

.avatars span:nth-child(4) {
  color: var(--purple-dark);
  background: #fff;
  font-size: 13px;
}

.stars {
  color: #f2ad45;
  font-size: 12px;
  letter-spacing: 2px;
}

.learner-note p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.quiz-wrap {
  width: 100%;
  max-width: 550px;
  justify-self: end;
}

.quiz-card {
  min-height: 544px;
  padding: clamp(25px, 3.2vw, 41px);
  overflow: hidden;
  border: 1px solid rgba(222, 222, 234, 0.9);
  border-radius: 25px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.quiz-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

#step-label {
  color: var(--ink);
}

.progress-track {
  height: 6px;
  margin: 13px 0 36px;
  overflow: hidden;
  border-radius: 99px;
  background: #ececf2;
}

.progress-track span {
  display: block;
  width: 20%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #8b74e6, #6a4fd0);
  transition: width 360ms ease;
}

.question-panel {
  animation: panel-in 260ms ease both;
}

.question-number {
  display: grid;
  width: 35px;
  height: 35px;
  margin-bottom: 16px;
  place-items: center;
  border-radius: 11px;
  color: var(--purple-dark);
  background: var(--purple-soft);
  font-size: 13px;
  font-weight: 800;
}

.question-panel h2 {
  min-height: 58px;
  margin: 0 0 24px;
  font-size: clamp(21px, 2.2vw, 26px);
  font-weight: 750;
  letter-spacing: -0.035em;
  line-height: 1.22;
}

.options {
  display: grid;
  gap: 11px;
}

.option-button {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 22px;
  gap: 13px;
  width: 100%;
  min-height: 59px;
  align-items: center;
  padding: 10px 15px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  background: #fff;
  cursor: pointer;
  text-align: left;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease,
    transform 160ms ease;
}

.option-button:hover {
  border-color: #bdb0ed;
  background: #fbfaff;
  box-shadow: 0 7px 18px rgba(83, 63, 164, 0.08);
  transform: translateY(-1px);
}

.option-button:focus-visible,
.back-button:focus-visible,
.restart-button:focus-visible,
.course-button:focus-visible,
.brand:focus-visible {
  outline: 3px solid rgba(113, 87, 217, 0.25);
  outline-offset: 3px;
}

.option-button.selected {
  border-color: var(--purple);
  background: #f7f4ff;
  box-shadow: 0 0 0 2px rgba(113, 87, 217, 0.11);
}

.option-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 10px;
  color: var(--purple-dark);
  background: var(--purple-soft);
}

.option-icon svg {
  width: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.option-text {
  font-size: 14px;
  font-weight: 650;
}

.option-arrow {
  color: #a0a1ad;
}

.option-arrow svg {
  display: block;
  width: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.quiz-footer {
  display: flex;
  min-height: 34px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
}

.back-button,
.restart-button {
  border: 0;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}

.back-button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 3px;
  font-size: 12px;
  font-weight: 650;
}

.back-button[hidden] {
  display: none;
}

.back-button svg {
  width: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.privacy-note {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 6px auto;
  color: #8a8c99;
  font-size: 10px;
}

.privacy-note svg {
  width: 14px;
  fill: none;
  stroke: #7d7e8a;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.under-card-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 18px 0 0;
  color: #717381;
  font-size: 11px;
}

.under-card-note svg {
  width: 15px;
  fill: none;
  stroke: var(--mint-dark);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.result-screen {
  min-height: 462px;
  text-align: center;
  animation: result-in 460ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.result-screen[hidden] {
  display: none;
}

.result-art {
  position: relative;
  display: grid;
  width: 88px;
  height: 88px;
  margin: 2px auto 20px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(145deg, #7d64e5, #5840ba);
  box-shadow: 0 16px 28px rgba(96, 71, 190, 0.23);
}

.result-art > svg {
  width: 47px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.orbit {
  position: absolute;
  border: 1px solid rgba(113, 87, 217, 0.22);
  border-radius: 50%;
}

.orbit-one {
  inset: -8px;
}

.orbit-two {
  inset: -17px;
  border-color: rgba(113, 87, 217, 0.1);
}

.result-kicker {
  margin: 0 0 8px;
  color: var(--purple-dark);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.result-screen h2 {
  margin: 0;
  font-size: clamp(27px, 3vw, 34px);
  letter-spacing: -0.045em;
  line-height: 1.08;
}

.result-screen h2:focus {
  outline: none;
}

.result-summary {
  max-width: 430px;
  margin: 15px auto 20px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.course-preview {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 auto 18px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fafafd;
  text-align: left;
}

.course-preview-icon {
  display: grid;
  flex: 0 0 44px;
  height: 44px;
  place-items: center;
  border-radius: 12px;
  color: var(--purple-dark);
  background: var(--purple-soft);
}

.course-preview-icon svg {
  width: 23px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.course-preview div {
  display: grid;
  gap: 4px;
}

.course-preview strong {
  font-size: 13px;
}

.course-preview div span {
  color: var(--muted);
  font-size: 10px;
}

.lead-form {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  text-align: left;
}

.form-heading {
  margin-bottom: 14px;
}

.form-heading h3 {
  margin: 0;
  font-size: 17px;
  letter-spacing: -0.025em;
}

.form-heading p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.form-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
  margin-bottom: 13px;
}

.form-field {
  display: grid;
  gap: 7px;
}

.form-field > span {
  color: #444758;
  font-size: 11px;
  font-weight: 700;
}

.form-field input {
  width: 100%;
  height: 48px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--ink);
  background: #fff;
  font: inherit;
  font-size: 13px;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.form-field input::placeholder {
  color: #a4a5af;
}

.form-field input:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(113, 87, 217, 0.12);
}

.form-field input:invalid:not(:placeholder-shown) {
  border-color: #d85b68;
}

.form-note {
  margin: 9px 0 0;
  color: #8a8c99;
  font-size: 10px;
  text-align: center;
}

.course-button {
  display: flex;
  width: 100%;
  min-height: 57px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, #775ddd, #5e43c3);
  box-shadow: 0 12px 24px rgba(100, 74, 199, 0.24);
  cursor: pointer;
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.course-button:hover {
  box-shadow: 0 15px 29px rgba(100, 74, 199, 0.3);
  transform: translateY(-1px);
}

.course-button svg {
  width: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.course-status {
  margin: 10px 0 0;
  color: var(--purple-dark);
  font-size: 11px;
  font-weight: 650;
}

.restart-button {
  margin-top: 14px;
  padding: 5px;
  font-size: 11px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.thank-you-main {
  display: grid;
  min-height: calc(100vh - 92px);
  place-items: center;
  padding: 60px 0 76px;
}

.thank-you-card {
  width: min(610px, 100%);
  padding: clamp(34px, 6vw, 58px);
  border: 1px solid rgba(222, 222, 234, 0.9);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
  text-align: center;
}

.thank-you-check {
  position: relative;
  display: grid;
  width: 88px;
  height: 88px;
  margin: 0 auto 27px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(145deg, #54bc98, #278668);
  box-shadow: 0 16px 30px rgba(39, 134, 104, 0.23);
}

.thank-you-check::before,
.thank-you-check::after {
  position: absolute;
  border: 1px solid rgba(39, 134, 104, 0.16);
  border-radius: 50%;
  content: "";
}

.thank-you-check::before {
  inset: -9px;
}

.thank-you-check::after {
  inset: -18px;
}

.thank-you-check svg {
  width: 43px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.4;
}

.thank-you-kicker {
  margin: 0 0 10px;
  color: var(--mint-dark);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.thank-you-card h1 {
  margin: 0;
  font-size: clamp(36px, 6vw, 50px);
  line-height: 1.05;
}

.thank-you-copy {
  max-width: 450px;
  margin: 18px auto 26px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.thank-you-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 19px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fafafd;
  text-align: left;
}

.thank-you-summary-icon {
  display: grid;
  flex: 0 0 43px;
  height: 43px;
  place-items: center;
  border-radius: 12px;
  color: var(--purple-dark);
  background: var(--purple-soft);
}

.thank-you-summary-icon svg {
  width: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.thank-you-summary div {
  display: grid;
  gap: 4px;
}

.thank-you-summary strong {
  font-size: 13px;
}

.thank-you-summary span {
  color: var(--muted);
  font-size: 10px;
}

.back-link {
  display: inline-block;
  margin-top: 18px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
  text-underline-offset: 3px;
}

@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateX(12px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes result-in {
  from {
    opacity: 0;
    transform: scale(0.97) translateY(8px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@media (max-width: 930px) {
  .main-content {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-top: 44px;
  }

  .intro,
  .quiz-wrap {
    max-width: 650px;
    justify-self: center;
  }

  .intro {
    text-align: center;
  }

  .intro-copy {
    margin-right: auto;
    margin-left: auto;
  }

  .benefits {
    width: max-content;
    max-width: 100%;
    margin: 0 auto;
    text-align: left;
  }

  .learner-note {
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .page-shell {
    width: min(100% - 28px, 550px);
  }

  .site-header {
    min-height: 72px;
  }

  .brand {
    font-size: 14px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .header-note {
    font-size: 0;
  }

  .header-note svg {
    width: 21px;
  }

  .main-content {
    min-height: auto;
    gap: 30px;
    padding: 36px 0 40px;
  }

  .eyebrow {
    margin-bottom: 17px;
    font-size: 10px;
  }

  h1 {
    font-size: clamp(40px, 13vw, 55px);
  }

  .intro-copy {
    margin: 20px auto 25px;
    font-size: 16px;
    line-height: 1.55;
  }

  .benefit div span {
    font-size: 12px;
  }

  .learner-note {
    display: none;
  }

  .quiz-card {
    min-height: 0;
    padding: 24px 19px;
    border-radius: 20px;
  }

  .progress-track {
    margin-bottom: 28px;
  }

  .question-panel h2 {
    min-height: 52px;
    margin-bottom: 20px;
    font-size: 21px;
  }

  .option-button {
    min-height: 57px;
    padding: 9px 12px;
  }

  .quiz-footer {
    margin-top: 18px;
  }

  .privacy-note {
    font-size: 9px;
  }

  .under-card-note {
    flex-wrap: wrap;
  }

  .result-screen {
    min-height: 0;
  }

  .form-fields {
    grid-template-columns: 1fr;
  }

  .thank-you-main {
    min-height: calc(100vh - 72px);
    padding: 40px 0 55px;
  }

  .thank-you-card {
    border-radius: 21px;
  }
}

@media (max-width: 370px) {
  .brand span:last-child {
    max-width: 130px;
    line-height: 1.05;
  }

  .quiz-topline {
    font-size: 10px;
  }

  .option-text {
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
