:root {
  --bg: #FFFFFF;
  --fg: #000000;
  --muted: #8F8F8F;
  --muted-2: #646464;
  --line: #E2E2E2;
  --accent: #df3131;
  --font-display: 'Space Grotesk', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-body: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: var(--bg); color: var(--fg);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body {
  min-height: 100vh;
  display: flex; flex-direction: column; align-items: center;
  padding: 32px 20px 80px;
}
.container { width: 100%; max-width: 640px; }

header { text-align: center; margin-bottom: 48px; }
header .eyebrow {
  font-family: var(--font-display);
  font-size: 13px; letter-spacing: 2px;
  text-transform: uppercase; color: var(--muted-2);
  margin: 0 0 12px 0;
}
header h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(28px, 5vw, 42px);
  line-height: 1.2; letter-spacing: -0.5px;
  margin: 0 0 16px 0;
}
header p.subline { color: var(--muted-2); font-size: 16px; line-height: 1.5; margin: 0 0 12px 0; }
header p.hint { color: var(--muted); font-size: 14px; line-height: 1.6; margin: 0; font-style: italic; }

.step-indicator {
  font-family: var(--font-display);
  font-size: 13px; letter-spacing: 2px;
  color: var(--muted); text-align: center;
  margin-bottom: 24px;
}

.question h2 {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(20px, 3.5vw, 26px); line-height: 1.35;
  margin: 0 0 32px 0;
}
.answers { display: flex; flex-direction: column; gap: 12px; }
.answer {
  background: var(--bg); border: 1px solid var(--line); color: var(--fg);
  font-family: var(--font-body); font-size: 16px; line-height: 1.4;
  text-align: left; padding: 18px 22px; cursor: pointer; width: 100%;
  transition: border-color .15s, color .15s, background .15s;
}
.answer:hover { border-color: var(--fg); }
.answer.selected { border-color: var(--accent); color: var(--accent); }

.nav { display: flex; justify-content: space-between; margin-top: 40px; gap: 12px; }
.btn {
  font-family: var(--font-display); font-size: 14px; letter-spacing: 1.5px;
  text-transform: uppercase;
  background: transparent; color: var(--fg); border: 1px solid var(--fg);
  padding: 14px 28px; cursor: pointer;
  transition: background .15s, color .15s;
  text-decoration: none; display: inline-block;
}
.btn:hover { background: var(--fg); color: var(--bg); }
.btn:disabled { color: var(--muted); border-color: var(--line); cursor: not-allowed; background: transparent; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.btn-primary:hover { background: var(--fg); border-color: var(--fg); color: var(--bg); }

.result { display: none; }
.result.active { display: block; }
.question-screen.hidden { display: none; }

.result-symbol { text-align: center; margin-bottom: 32px; }
.result-symbol img { max-width: 180px; height: auto; }

.result h2 {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(24px, 4vw, 32px); line-height: 1.3;
  text-align: center; margin: 0 0 24px 0;
}
.primary-name { color: var(--accent); }
.archetype-text {
  color: var(--muted-2); font-size: 17px; line-height: 1.6;
  margin: 0 auto 40px; max-width: 520px; text-align: center;
}

.distribution {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 24px 0; margin-bottom: 32px;
}
.distribution-row { display: flex; align-items: center; gap: 16px; padding: 10px 0; font-size: 15px; }
.dist-name { flex: 0 0 110px; font-family: var(--font-display); font-weight: 500; }
.dist-bar { flex: 1; height: 4px; background: var(--line); position: relative; overflow: hidden; }
.dist-bar-fill { position: absolute; top: 0; left: 0; height: 100%; background: var(--muted); transition: width .8s ease; }
.distribution-row.primary .dist-bar-fill { background: var(--accent); }
.distribution-row.primary .dist-name { color: var(--accent); }
.dist-percent { flex: 0 0 60px; text-align: right; color: var(--muted-2); font-variant-numeric: tabular-nums; }

.secondary-line { color: var(--muted-2); font-size: 15px; text-align: center; margin: 0 0 40px 0; line-height: 1.6; }

.intervention { border: 1px solid var(--line); padding: 28px; margin-bottom: 40px; }
.intervention .label {
  font-family: var(--font-display); font-size: 12px;
  letter-spacing: 2px; text-transform: uppercase; color: var(--muted);
  margin: 0 0 16px 0;
}
.intervention p { margin: 0; line-height: 1.7; font-size: 16px; white-space: pre-line; }

.mail-section { border-top: 1px solid var(--line); padding-top: 32px; }
.mail-section h3 {
  font-family: var(--font-display); font-weight: 500;
  font-size: 20px; line-height: 1.4; margin: 0 0 16px 0;
}
.mail-section p.bridge { color: var(--muted-2); font-size: 15px; line-height: 1.6; margin: 0 0 24px 0; }
.mail-form { display: flex; flex-direction: column; gap: 12px; }
.mail-form input {
  border: 1px solid var(--line); background: var(--bg); color: var(--fg);
  padding: 16px 18px; font-family: var(--font-body); font-size: 16px; width: 100%;
}
.mail-form input:focus { outline: none; border-color: var(--fg); }
.privacy { font-size: 12px; color: var(--muted); line-height: 1.5; margin: 8px 0 0 0; }
.privacy a { color: var(--muted-2); text-decoration: underline; }
.mail-confirm { display: none; text-align: center; color: var(--muted-2); font-size: 15px; line-height: 1.6; margin-top: 16px; }
.mail-confirm.active { display: block; }
.mail-error { color: var(--accent); font-size: 13px; margin-top: 8px; display: none; }
.mail-error.active { display: block; }

.cta-analysis { text-align: center; margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--line); }
.cta-analysis p { color: var(--muted-2); font-size: 15px; line-height: 1.6; max-width: 480px; margin: 0 auto 20px; }

footer { text-align: center; margin-top: 64px; color: var(--muted); font-size: 12px; }
footer a { color: var(--muted-2); text-decoration: none; }
