:root {
  --paper: #fbfaf7;
  --ink: #111111;
  --muted: #66615a;
  --line: #ddd7ce;
  --accent: #45677c;
  --warm: #efe7da;
  --button: #111111;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}

.app {
  width: min(100%, 520px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 28px 22px 40px;
}

.hero,
.panel {
  min-height: calc(100vh - 68px);
  display: flex;
  flex-direction: column;
}

.hero {
  justify-content: center;
}

.panel {
  padding-top: 22px;
}

.eyebrow {
  width: 100%;
  border-top: 2px solid var(--ink);
  padding-top: 20px;
  margin-bottom: 28px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: clamp(42px, 12vw, 64px);
  line-height: 1.08;
  letter-spacing: 0;
}

h2 {
  margin-top: 28px;
  font-size: 30px;
  line-height: 1.22;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-size: 17px;
}

.hero p,
#result-summary,
.advice p,
.report-card p {
  margin-top: 18px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}

.disclaimer {
  margin-top: 18px;
  font-size: 12px;
  line-height: 1.6;
}

button {
  border: 0;
  border-radius: 8px;
  min-height: 52px;
  padding: 0 20px;
  font-size: 17px;
  font-weight: 800;
  cursor: pointer;
}

.primary {
  margin-top: 42px;
  background: var(--button);
  color: #ffffff;
}

.secondary {
  margin-top: 26px;
  background: var(--warm);
  color: var(--ink);
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.progress {
  height: 8px;
  margin-top: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--warm);
}

.progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  transition: width 180ms ease;
}

.options {
  display: grid;
  gap: 12px;
  margin-top: 30px;
}

.option {
  width: 100%;
  min-height: 72px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--ink);
  text-align: left;
  line-height: 1.45;
  font-size: 16px;
  font-weight: 700;
}

.option:active {
  transform: translateY(1px);
}

.tagline {
  margin-top: 12px;
  font-size: 20px;
  line-height: 1.5;
  font-weight: 800;
}

.result-grid {
  display: grid;
  gap: 14px;
  margin-top: 26px;
}

.result-grid > div,
.advice,
.report-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: #ffffff;
}

.advice,
.report-card {
  margin-top: 14px;
}

.score-bars {
  display: grid;
  gap: 16px;
  margin-top: 14px;
}

.score-row {
  display: grid;
  gap: 8px;
}

.score-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-size: 14px;
  font-weight: 800;
}

.score-label strong {
  color: var(--accent);
}

.score-track {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--warm);
}

.score-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
}

.score-insight {
  margin-top: 0;
  font-size: 13px;
  line-height: 1.6;
}

.final-line {
  margin-top: 18px;
  padding: 18px;
  border-top: 2px solid var(--ink);
  font-size: 18px;
  line-height: 1.7;
  font-weight: 800;
}

ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.8;
}

.hidden {
  display: none;
}

@media (min-width: 480px) {
  .app {
    padding-top: 42px;
  }
}
