:root {
  color-scheme: light;
  --ink: #202220;
  --muted: #5f6661;
  --paper: #ffffff;
  --canvas: #f7f7f4;
  --green: #578c68;
  --green-dark: #3e704e;
  --aqua: #7dbfb7;
  --pink: #e94e75;
  --blush: #e0c5c1;
  --line: rgba(87, 140, 104, 0.22);
  --shadow: 0 24px 70px rgba(87, 140, 104, 0.15);
  --brand-font: "Tenon X Light", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family: var(--brand-font);
  font-weight: 300;
  background:
    radial-gradient(circle at 12% 18%, rgba(224, 197, 193, 0.58), transparent 31rem),
    radial-gradient(circle at 88% 84%, rgba(125, 191, 183, 0.24), transparent 35rem),
    var(--canvas);
}

body::before,
body::after {
  position: fixed;
  z-index: 0;
  content: "";
  pointer-events: none;
}

body::before {
  width: 390px;
  height: 190px;
  top: -124px;
  right: -86px;
  border-radius: 100% 0 100% 0;
  background: rgba(87, 140, 104, 0.18);
  transform: rotate(-12deg);
}

body::after {
  width: 300px;
  height: 142px;
  bottom: -88px;
  left: -76px;
  border-radius: 0 100% 0 100%;
  background: rgba(233, 78, 117, 0.12);
  transform: rotate(9deg);
}

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

button {
  font: inherit;
}

.site-shell {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}

.brand-bar {
  display: flex;
  width: min(100% - 40px, 1040px);
  margin: 0 auto;
  padding: 22px 0 12px;
  align-items: center;
  justify-content: space-between;
}

.logo-link {
  display: inline-flex;
  border-radius: 10px;
  align-items: center;
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: 128px;
  height: auto;
}

.studio-place {
  margin: 0;
  color: var(--green-dark);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.main-content {
  display: grid;
  width: min(100% - 32px, 720px);
  flex: 1;
  margin: 0 auto;
  padding: 28px 0 48px;
  place-items: center;
}

.quiz-wrap {
  width: 100%;
}

.progress {
  display: flex;
  min-height: 8px;
  margin: 0 auto 16px;
  gap: 7px;
  justify-content: center;
}

.progress-dot {
  width: 32px;
  height: 4px;
  border-radius: 999px;
  background: rgba(87, 140, 104, 0.15);
  transition: background 180ms ease, transform 180ms ease;
}

.progress-dot:nth-child(1).is-active {
  background: var(--green);
}

.progress-dot:nth-child(2).is-active {
  background: var(--aqua);
}

.progress-dot:nth-child(3).is-active {
  background: var(--pink);
}

.progress-dot.is-active {
  transform: scaleX(1.04);
}

.quiz-card {
  position: relative;
  overflow: hidden;
  width: 100%;
  min-height: 520px;
  padding: clamp(30px, 7vw, 58px);
  border: 1px solid rgba(87, 140, 104, 0.11);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.quiz-card::after {
  position: absolute;
  width: 260px;
  height: 88px;
  right: -38px;
  bottom: -9px;
  background: url("./assets/livstyle-pilates-logo-transparent.png") top center / 260px auto no-repeat;
  content: "";
  mix-blend-mode: multiply;
  opacity: 0.045;
  pointer-events: none;
}

.intro-mark {
  width: 102px;
  height: 33px;
  overflow: hidden;
  margin-bottom: 32px;
}

.intro-mark img {
  display: block;
  width: 102px;
  height: auto;
}

.kicker {
  margin: 0 0 10px;
  color: var(--pink);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

h1,
h2 {
  max-width: 590px;
  margin: 0;
  font-family: var(--brand-font);
  font-weight: 300;
  letter-spacing: 0.09em;
  line-height: 1.12;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(34px, 6.4vw, 56px);
}

h2 {
  font-size: clamp(30px, 5.2vw, 46px);
}

.lead {
  max-width: 535px;
  margin: 22px 0 30px;
  color: var(--muted);
  font-size: clamp(16px, 2.4vw, 19px);
  font-weight: 300;
  line-height: 1.55;
}

.primary-button {
  display: inline-flex;
  min-height: 56px;
  padding: 16px 22px;
  border: 0;
  border-radius: 18px;
  align-items: center;
  justify-content: center;
  gap: 18px;
  color: #fff;
  background: var(--pink);
  box-shadow: 0 12px 24px rgba(233, 78, 117, 0.2);
  cursor: pointer;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.primary-button:hover {
  background: #d83f68;
  box-shadow: 0 14px 28px rgba(233, 78, 117, 0.27);
  transform: translateY(-2px);
}

.primary-button:focus-visible,
.option-button:focus-visible,
.text-button:focus-visible,
.logo-link:focus-visible {
  outline: 3px solid rgba(125, 191, 183, 0.75);
  outline-offset: 4px;
}

.microcopy {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.question-head {
  display: flex;
  margin-bottom: 10px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.question-head .kicker {
  margin: 0;
}

.step-count {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.06em;
}

.question-help {
  margin: 15px 0 26px;
  color: var(--muted);
  line-height: 1.5;
}

.option-list {
  display: grid;
  gap: 11px;
}

.option-button {
  display: flex;
  width: 100%;
  min-height: 76px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.78);
  cursor: pointer;
  text-align: left;
  transition: border 150ms ease, background 150ms ease, transform 150ms ease;
}

.option-button:hover,
.option-button.is-selected {
  border-color: var(--aqua);
  background: rgba(125, 191, 183, 0.12);
  transform: translateX(3px);
}

.option-copy {
  display: grid;
  gap: 4px;
}

.option-copy strong {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.3;
}

.option-copy small {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.3;
}

.option-check {
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  border: 1px solid rgba(87, 140, 104, 0.3);
  border-radius: 50%;
  color: transparent;
  place-items: center;
}

.option-button.is-selected .option-check {
  color: #fff;
  background: var(--aqua);
}

.question-actions {
  margin-top: 22px;
}

.text-button {
  padding: 8px 0;
  border: 0;
  color: var(--green-dark);
  background: transparent;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.text-button:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.result-badge {
  position: absolute;
  top: 38px;
  right: 38px;
  display: grid;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  color: #fff;
  background: var(--pink);
  place-items: center;
  font-family: var(--brand-font);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-align: center;
  text-transform: uppercase;
  transform: rotate(6deg);
}

.result-title {
  max-width: calc(100% - 90px);
  font-size: clamp(35px, 6.4vw, 56px);
}

.result-eyebrow {
  margin: 8px 0 19px;
  color: var(--green);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.result-reason {
  max-width: 560px;
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.62;
}

.combination-note {
  max-width: 555px;
  margin: 0 0 13px;
  padding: 16px 17px;
  border-left: 3px solid var(--pink);
  border-radius: 4px 15px 15px 4px;
  color: var(--ink);
  background: rgba(224, 197, 193, 0.32);
  font-size: 13px;
  line-height: 1.5;
}

.combination-note strong {
  display: block;
  margin-bottom: 3px;
  color: var(--pink);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.combination-note p {
  margin: 0;
}

.alternative-note {
  display: flex;
  max-width: 555px;
  margin: 0 0 25px;
  padding: 14px 16px;
  border-radius: 15px;
  gap: 10px;
  color: #315d52;
  background: rgba(125, 191, 183, 0.17);
  font-size: 13px;
  line-height: 1.45;
}

.alternative-note p {
  margin: 0;
}

.schedule-link {
  width: min(100%, 330px);
}

.price-preview {
  max-width: 560px;
  margin: 0 0 17px;
}

.price-preview-title {
  margin: 0 0 6px;
  color: var(--pink);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.price-items {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.price-items span {
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--ink);
  background: rgba(224, 197, 193, 0.32);
  font-size: 13px;
}

.price-items strong {
  font-weight: 500;
}

.price-disclaimer {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
}

.result-actions {
  display: flex;
  max-width: 560px;
  align-items: stretch;
  gap: 10px;
}

.result-actions .schedule-link {
  width: auto;
  flex: 1 1 54%;
}

.secondary-button {
  display: inline-flex;
  min-height: 56px;
  padding: 15px 19px;
  border: 1px solid var(--green);
  border-radius: 18px;
  align-items: center;
  justify-content: center;
  color: var(--green-dark);
  background: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transition: border 160ms ease, color 160ms ease, background 160ms ease, transform 160ms ease;
}

.secondary-button:hover {
  border-color: var(--aqua);
  color: #315d52;
  background: rgba(125, 191, 183, 0.13);
  transform: translateY(-2px);
}

.secondary-button:focus-visible {
  outline: 3px solid rgba(125, 191, 183, 0.75);
  outline-offset: 4px;
}

.restart-button {
  display: block;
  margin-top: 13px;
}

.care-note {
  max-width: 440px;
  margin: 22px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.care-note p {
  margin: 4px 0 7px;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
}

.contact-links a {
  color: var(--green-dark);
  font-weight: 500;
  text-decoration-color: rgba(87, 140, 104, 0.45);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.contact-links a:hover {
  color: var(--pink);
  text-decoration-color: var(--pink);
}

.site-footer {
  width: min(100% - 40px, 1040px);
  margin: 0 auto;
  padding: 0 0 24px;
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 620px) {
  .brand-bar {
    width: min(100% - 32px, 1040px);
    padding-top: 20px;
  }

  .main-content {
    width: min(100% - 20px, 720px);
    padding: 14px 0 28px;
    align-items: start;
  }

  .quiz-card {
    min-height: 0;
    padding: 30px 22px;
    border-radius: 25px;
  }

  .intro-mark {
    margin-bottom: 26px;
  }

  .primary-button,
  .schedule-link {
    width: 100%;
  }

  .result-actions {
    flex-direction: column;
  }

  .result-actions .schedule-link,
  .result-actions .secondary-button {
    width: 100%;
  }

  .result-badge {
    position: static;
    width: auto;
    height: auto;
    margin: 0 0 23px;
    padding: 7px 12px;
    border-radius: 999px;
    justify-self: start;
    place-items: initial;
    font-family: inherit;
    font-size: 11px;
    font-style: normal;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transform: none;
  }

  .result-title {
    max-width: 100%;
  }

  .studio-place {
    font-size: 10px;
  }

  .brand-logo {
    width: 108px;
  }

  h1 {
    font-size: clamp(31px, 9vw, 40px);
    letter-spacing: 0.07em;
  }

  h2,
  .result-title {
    font-size: clamp(28px, 8vw, 38px);
    letter-spacing: 0.07em;
  }
}

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