@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,500;0,600;1,500;1,600&display=swap');

:root {
  --ink: #25231f;
  --muted: #77736b;
  --paper: #f7f4ed;
  --white: #fffdf8;
  --line: #ddd8cd;
  --accent: #806b55;
  --accent-light: #ebe5db;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "DM Sans", sans-serif;
}

button,
a {
  font-family: inherit;
}

.app {
  width: 100%;
  max-width: 860px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 42px 24px 70px;
}

.screen {
  display: none;
  animation: fadeIn 0.35s ease;
}

.screen.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.brand {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--accent);
}

.eyebrow {
  margin: 0 0 18px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--accent);
}

h1,
h2,
.question-title {
  font-family: "Playfair Display", serif;
  font-weight: 500;
}

h1 {
  font-size: clamp(42px, 7vw, 68px);
  line-height: 1.02;
  margin: 0 0 30px;
}

h1 em,
h2 em {
  font-style: italic;
}

p {
  font-size: 16px;
  line-height: 1.7;
  color: #514e47;
}

.intro {
  max-width: 740px;
  margin-top: 100px;
}

.intro-copy {
  max-width: 690px;
  font-size: 18px;
}

.promise {
  margin-top: 34px;
  padding: 22px 24px;
  background: var(--accent-light);
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.promise span {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.promise strong {
  font-size: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.btn-primary {
  margin-top: 30px;
  padding: 19px 25px;
  background: var(--ink);
  color: white;
}

.btn-primary:hover {
  background: var(--accent);
}

.btn-secondary {
  margin-top: 20px;
  padding: 15px 20px;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
}

.disclaimer {
  max-width: 650px;
  margin-top: 32px;
  font-size: 11px;
  line-height: 1.6;
  color: #8a867d;
}


/* QUIZ */

.quiz-header {
  margin-bottom: 65px;
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 32px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.progress-track {
  width: 100%;
  height: 4px;
  background: #e4dfd5;
}

#progressBar {
  width: 0;
  height: 100%;
  background: var(--accent);
  transition: width 0.35s ease;
}

.question-number {
  margin-bottom: 15px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--accent);
  text-transform: uppercase;
}

.question-title {
  max-width: 760px;
  margin: 0 0 35px;
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.15;
}

.options {
  display: grid;
  gap: 12px;
  max-width: 760px;
}

.option {
  width: 100%;
  padding: 20px 22px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  text-align: left;
  font-size: 16px;
  line-height: 1.4;
  cursor: pointer;
  transition: all 0.18s ease;
}

.option:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.option.selected {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}

.quiz-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 30px;
}

.back-button {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
}


/* RESULTS */

.results-intro {
  max-width: 740px;
  margin-top: 85px;
  margin-bottom: 45px;
}

.results-intro p {
  font-size: 18px;
}

.result-card {
  margin-bottom: 16px;
  padding: 30px;
  border: 1px solid var(--line);
  background: var(--white);
}

.result-rank {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--accent);
}

.result-card h2 {
  margin: 8px 0 12px;
  font-size: 34px;
}

.result-card .headline {
  font-weight: 600;
  color: var(--ink);
}

.result-card h3 {
  margin: 26px 0 10px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.result-card ul {
  margin: 0;
  padding-left: 20px;
  color: #514e47;
  line-height: 1.8;
}

.score-bar {
  height: 4px;
  margin-top: 20px;
  background: #e4dfd5;
}

.score-fill {
  height: 100%;
  background: var(--accent);
}

.action-plan {
  margin-top: 50px;
  padding: 36px;
  background: var(--accent-light);
}

.action-plan h2 {
  margin: 0 0 15px;
  font-size: 38px;
}

.action-plan p {
  max-width: 650px;
}


/* MOBILE */

@media (max-width: 600px) {

  .app {
    padding: 28px 18px 50px;
  }

  .intro {
    margin-top: 65px;
  }

  h1 {
    font-size: 42px;
  }

  .intro-copy,
  .results-intro p {
    font-size: 17px;
  }

  .quiz-header {
    margin-bottom: 45px;
  }

  .question-title {
    font-size: 32px;
  }

  .option {
    padding: 17px 18px;
  }

  .result-card,
  .action-plan {
    padding: 25px;
  }

  .result-card h2,
  .action-plan h2 {
    font-size: 30px;
  }

  .quiz-navigation {
    gap: 15px;
  }

  .quiz-navigation .btn {
    padding: 16px 18px;
  }
}