:root {
  --color-paper: #faf9f7;
  --color-white: #fff;
  --color-ink: #2c2928;
  --color-muted: #6f6967;
  --color-lavender: #a996b4;
  --color-lavender-pale: #efe9f2;
  --color-border: #e8e3df;
  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-sans: Inter, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--color-paper);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--color-ink);
  background: var(--color-paper);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
}

@media (min-width: 700px) {
  body {
    font-size: 17px;
  }
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  color: inherit;
  font: inherit;
}

[hidden] {
  display: none !important;
}

.site-header {
  min-height: 72px;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-paper);
}

@media (min-width: 700px) {
  .site-header {
    min-height: 84px;
    padding-right: 7vw;
    padding-left: 7vw;
  }
}

.site-header__brand {
  font-family: var(--font-serif);
  font-size: 25px;
  line-height: 1;
  letter-spacing: .02em;
}

@media (min-width: 700px) {
  .site-header__brand {
    font-size: 29px;
  }
}

.site-header__brand span {
  letter-spacing: .12em;
}

.site-header__link {
  color: var(--color-muted);
  font-size: 13px;
  letter-spacing: .02em;
}

.site-header__link span {
  padding-left: 4px;
}

.troubleshooting-promo {
  position: relative;
  overflow: hidden;
  padding: 72px 24px 66px;
  background: var(--color-lavender-pale);
}

@media (min-width: 700px) {
  .troubleshooting-promo {
    min-height: 430px;
    padding: 92px 7vw 84px;
  }
}

.troubleshooting-promo__inner {
  position: relative;
  z-index: 1;
  max-width: 1080px;
  margin: 0 auto;
}

.eyebrow {
  margin: 0;
  color: var(--color-muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .12em;
}

@media (min-width: 700px) {
  .eyebrow {
    font-size: 13px;
  }
}

.troubleshooting-promo__copy {
  max-width: 620px;
  padding-top: 20px;
}

@media (min-width: 700px) {
  .troubleshooting-promo__copy {
    padding-top: 22px;
  }
}

.troubleshooting-promo__title,
.flow-intro__title,
.question-title,
.results-panel__title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(36px, 9vw, 52px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -.01em;
}

.troubleshooting-promo__description {
  max-width: 500px;
  margin: 22px 0 30px;
  color: #5f595f;
  font-size: 16px;
  line-height: 1.8;
}

@media (min-width: 700px) {
  .troubleshooting-promo__description {
    margin-top: 24px;
    font-size: 17px;
  }
}

.button {
  min-height: 54px;
  padding: 0 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .02em;
  transition: background-color .2s ease, color .2s ease;
}

.button--dark {
  color: var(--color-white);
  background: var(--color-ink);
}

.button--dark:hover {
  background: #5c5362;
}

.troubleshooting-promo__note {
  margin: 32px 0 0;
  color: var(--color-muted);
  font-family: var(--font-serif);
  font-size: 20px;
  line-height: 1.4;
}

.troubleshooting-promo__ornament {
  position: absolute;
  right: -10px;
  bottom: -112px;
  color: rgb(169 150 180 / 18%);
  font-family: var(--font-serif);
  font-size: 340px;
  line-height: 1;
  pointer-events: none;
}

@media (min-width: 700px) {
  .troubleshooting-promo__ornament {
    right: 6%;
    bottom: -165px;
    font-size: 480px;
  }
}

.demo-caption {
  padding: 16px 22px;
  color: var(--color-muted);
  background: var(--color-paper);
  text-align: center;
  font-size: 12px;
  letter-spacing: .04em;
}

@media (min-width: 700px) {
  .demo-caption {
    padding: 20px;
    font-size: 13px;
  }
}

.site-footer {
  min-height: 66px;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--color-border);
  color: var(--color-muted);
  font-size: 12px;
  letter-spacing: .02em;
}

@media (min-width: 700px) {
  .site-footer {
    padding-right: 7vw;
    padding-left: 7vw;
    font-size: 13px;
  }
}

.flow-shell {
  width: min(100% - 36px, 720px);
  min-height: calc(100svh - 138px);
  margin: 0 auto;
  padding: 22px 0 64px;
}

@media (min-width: 700px) {
  .flow-shell {
    min-height: calc(100svh - 150px);
    padding-top: 30px;
  }
}

.text-link {
  padding: 8px 0;
  border: 0;
  color: var(--color-muted);
  background: transparent;
  cursor: pointer;
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.flow-shell__back-home {
  display: inline-block;
  margin-bottom: 28px;
  text-decoration: none;
}

@media (min-width: 700px) {
  .flow-shell__back-home {
    margin-bottom: 44px;
  }
}

.flow-intro {
  padding: 40px 0 30px;
  animation: appear .3s ease both;
}

@media (min-width: 700px) {
  .flow-intro {
    padding: 28px 0 48px;
  }
}

.flow-intro__title {
  margin-top: 18px;
  font-size: clamp(38px, 9vw, 52px);
}

.flow-intro__description {
  max-width: 520px;
  margin: 20px 0 28px;
  color: var(--color-muted);
  font-size: 16px;
  line-height: 1.8;
}

@media (min-width: 700px) {
  .flow-intro__description {
    font-size: 17px;
  }
}

.flow-intro__small {
  margin: 18px 0 0;
  color: var(--color-muted);
  font-size: 13px;
  line-height: 1.7;
}

.question-panel {
  padding: 28px 22px 24px;
  border: 1px solid var(--color-border);
  background: var(--color-white);
  animation: appear .25s ease both;
}

@media (min-width: 700px) {
  .question-panel {
    padding: 36px 40px 30px;
  }
}

.progress-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--color-muted);
  font-size: 12px;
  letter-spacing: .08em;
}

.progress-track {
  height: 2px;
  margin-top: 14px;
  background: var(--color-border);
}

.progress-track__fill {
  width: 0;
  height: 100%;
  display: block;
  background: var(--color-lavender);
  transition: width .25s ease;
}

.question-panel__body {
  padding: 34px 0 28px;
}

@media (min-width: 700px) {
  .question-panel__body {
    padding: 42px 0 34px;
  }
}

.question-title {
  font-size: clamp(32px, 8vw, 44px);
}

.question-hint {
  margin: 14px 0 22px;
  color: var(--color-muted);
  font-size: 15px;
  line-height: 1.7;
}

.answer-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.answer-option {
  width: 100%;
  min-height: 60px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid var(--color-border);
  background: var(--color-white);
  text-align: left;
  cursor: pointer;
  font-size: 16px;
  line-height: 1.55;
  transition: border-color .18s ease, background-color .18s ease;
}

@media (min-width: 700px) {
  .answer-option {
    min-height: 66px;
    padding-right: 22px;
    padding-left: 22px;
    font-size: 17px;
  }
}

.answer-option:hover,
.answer-option:focus-visible {
  border-color: var(--color-lavender);
  background: #fcfafd;
  outline: none;
}

.answer-option__mark {
  flex: 0 0 auto;
  color: var(--color-lavender);
  font-size: 20px;
}

.question-panel__back {
  margin-top: 2px;
  text-decoration: none;
}

.results-panel {
  padding: 34px 0 10px;
  animation: appear .3s ease both;
}

@media (min-width: 700px) {
  .results-panel {
    padding-top: 32px;
  }
}

.results-panel__title {
  margin-top: 14px;
  font-size: clamp(38px, 9vw, 52px);
}

.results-panel__lead {
  margin: 20px 0 30px;
  color: var(--color-muted);
  font-size: 16px;
  line-height: 1.8;
}

@media (min-width: 700px) {
  .results-panel__lead {
    font-size: 17px;
  }
}

.result-cards {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.result-card {
  padding: 24px 22px;
  border: 1px solid var(--color-border);
  background: var(--color-white);
}

@media (min-width: 700px) {
  .result-card {
    padding: 28px 30px;
  }
}

.result-card__label {
  margin: 0 0 10px;
  color: var(--color-lavender);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.result-card__title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 29px;
  font-weight: 400;
  line-height: 1.2;
}

@media (min-width: 700px) {
  .result-card__title {
    font-size: 32px;
  }
}

.result-card__section {
  margin-top: 18px;
}

.result-card__section h3 {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .02em;
}

.result-card__section p {
  margin: 0;
  color: var(--color-muted);
  font-size: 15px;
  line-height: 1.75;
}

@media (min-width: 700px) {
  .result-card__section p {
    font-size: 16px;
  }
}

.care-note {
  margin-top: 20px;
  padding: 18px 20px;
  border-left: 2px solid var(--color-lavender);
  background: var(--color-lavender-pale);
}

.care-note p {
  margin: 0;
  color: #5f595f;
  font-size: 14px;
  line-height: 1.75;
}

.care-note .care-note__title {
  margin-bottom: 5px;
  color: var(--color-ink);
  font-size: 15px;
  font-weight: 600;
}

.results-actions {
  margin-top: 26px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

@media (min-width: 700px) {
  .results-actions {
    flex-direction: row;
    align-items: center;
    gap: 24px;
  }
}

.results-panel__disclaimer {
  margin: 26px 0 0;
  color: var(--color-muted);
  font-size: 13px;
  line-height: 1.7;
}

@keyframes appear {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
