:root {
  --bg: #f3f0e8;
  --bg-2: #e7eef2;
  --ink: #1c2a32;
  --muted: #5a6b74;
  --card: #fffdf8;
  --accent: #0f6e56;
  --accent-2: #c45c26;
  --line: #d5dde2;
  --shadow: 0 12px 40px rgba(28, 42, 50, 0.08);
  --radius: 18px;
  --font: "Manrope", "Segoe UI", sans-serif;
  --display: "Source Serif 4", Georgia, serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, #d9ebe4 0%, transparent 55%),
    radial-gradient(900px 500px at 100% 0%, #f6e2d4 0%, transparent 50%),
    linear-gradient(180deg, var(--bg), var(--bg-2));
  line-height: 1.5;
}

.wrap {
  width: min(720px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0 3.5rem;
}

.brand {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

h1,
.result-title {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.75rem;
}

h1 {
  font-size: clamp(1.8rem, 5vw, 2.6rem);
}

h2.result-title {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
}

h3 {
  margin: 0 0 0.6rem;
  font-size: 1.05rem;
}

.lead,
.local,
.muted,
.reason {
  color: var(--muted);
}

.lead {
  font-size: 1.05rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.4rem 1.35rem;
}

.screen {
  animation: fade 0.28s ease;
}

.screen[hidden] {
  display: none !important;
}

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

.checklist {
  margin: 1.2rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

.checklist li {
  margin-bottom: 0.4rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.4rem;
}

.btn {
  appearance: none;
  border: none;
  border-radius: 999px;
  padding: 0.85rem 1.3rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: #0c5a46;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn-ghost:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.resume {
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  background: #eef6f3;
  border: 1px solid #cfe3db;
  color: var(--muted);
  font-size: 0.95rem;
}

.progress {
  margin-bottom: 1rem;
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 0.45rem;
}

.progress-track {
  height: 8px;
  background: #e4e9ec;
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent), #2f9e7f);
  transition: width 0.25s ease;
}

.q-prompt {
  font-family: var(--display);
  font-size: 1.25rem;
  margin: 0 0 1rem;
}

.options {
  display: grid;
  gap: 0.75rem;
}

.opt {
  text-align: left;
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 14px;
  padding: 1rem 1.05rem;
  font: inherit;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.opt:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(15, 110, 86, 0.12);
}

.opt-letter {
  display: inline-block;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 0.25rem;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}

.quiz-nav {
  margin-top: 1rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-2);
  margin: 0 0 0.35rem;
}

.block {
  margin-top: 1.4rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
}

.subjects {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0.8rem 0;
}

.subject-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  background: #0f6e56;
  color: #fff;
  font-weight: 700;
}

.career-list {
  margin: 0.4rem 0 0;
  padding-left: 1.15rem;
}

.career-list li {
  margin-bottom: 0.35rem;
}

.scores {
  display: grid;
  gap: 0.55rem;
}

.score-row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 2fr) auto;
  gap: 0.55rem;
  align-items: center;
  font-size: 0.92rem;
}

.score-bar-wrap {
  height: 10px;
  background: #e7ecef;
  border-radius: 999px;
  overflow: hidden;
}

.score-bar {
  height: 100%;
  background: linear-gradient(90deg, #c45c26, #0f6e56);
}

.score-num {
  font-weight: 700;
  min-width: 1.5rem;
  text-align: right;
}

.disclaimer,
.spare {
  margin-top: 1.2rem;
  font-size: 0.92rem;
  color: var(--muted);
}

@media (max-width: 520px) {
  .wrap {
    width: min(100% - 1.25rem, 720px);
    padding-top: 1.25rem;
  }

  .score-row {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "label num"
      "bar bar";
  }

  .score-label {
    grid-area: label;
  }

  .score-num {
    grid-area: num;
  }

  .score-bar-wrap {
    grid-area: bar;
  }

  .scale {
    grid-template-columns: 1fr;
  }
}

.scale {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.5rem;
}

.scale-btn {
  appearance: none;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  padding: 0.7rem 0.35rem;
  font: inherit;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  text-align: center;
}

.scale-btn strong {
  font-size: 1.15rem;
  color: var(--accent);
}

.scale-btn span {
  font-size: 0.68rem;
  color: var(--muted);
  line-height: 1.2;
}

.scale-btn:hover,
.scale-btn.is-selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(15, 110, 86, 0.12);
}

.subjects-lg .subject-chip {
  font-size: 1.05rem;
  padding: 0.7rem 1.1rem;
}

.subject-chip-alt {
  background: #5a6b74;
}

.confidence {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin: 0.9rem 0;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  font-size: 0.95rem;
}

.confidence-high {
  background: #eef6f3;
  border-color: #cfe3db;
}

.confidence-medium {
  background: #f7f3ea;
  border-color: #e6d9be;
}

.confidence-low {
  background: #f8eeee;
  border-color: #e5cfcf;
}

.conflict {
  color: #8a4b2a;
  font-size: 0.92rem;
}

.alt-pair {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 12px;
  background: #f4f6f8;
}

.next-steps {
  margin: 0.4rem 0 0;
  padding-left: 1.2rem;
  color: var(--muted);
}

.next-steps li {
  margin-bottom: 0.45rem;
}
