*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue: #2962ff;
  --cyan: #06b6d4;
  --green: #089981;
  --red: #f23645;
  --orange: #ff9800;
  --bg: #0a0c10;
  --bg-card: #11141b;
  --bg-input: rgba(255,255,255,0.05);
  --border: rgba(255,255,255,0.12);
  --text: #f0f2f7;
  --text-dim: #a0a8c0;
  --font-head: 'Syne', sans-serif;
  --font-body: 'Inter', sans-serif;
}

html { font-size: 17px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 200;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  -webkit-font-smoothing: antialiased;
}

/* ── Layout ── */
.page {
  max-width: 620px;
  width: 100%;
  padding: 4rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2.5rem;
}

.label {
  font-size: 0.65rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-dim);
}

/* ── Hero ── */
.hero { display: flex; flex-direction: column; gap: 1rem; }

.hero h1 {
  font-family: var(--font-head);
  font-size: clamp(1.7rem, 5vw, 2.4rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.04rem;
  color: var(--blue);
}

.hero .subtitle {
  font-size: 1.05rem;
  color: var(--text);
  max-width: 500px;
  margin: 0 auto;
  font-weight: 400;
}

.hero p {
  font-size: 1rem;
  color: var(--text-dim);
  max-width: 500px;
  margin: 0 auto;
}

.hero .meta-line {
  font-size: 0.85rem;
  color: var(--cyan);
  font-weight: 400;
  letter-spacing: 0.02em;
}

/* ── Level Cards ── */
.breakdown {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}

.level {
  background: var(--bg-card);
  border-left: 3px solid var(--blue);
  padding: 1.1rem 1.3rem;
  text-align: left;
  border-radius: 0 4px 4px 0;
}

.level h3 {
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.3rem;
}

.level .ratio {
  font-size: 0.75rem;
  color: var(--text-dim);
  font-weight: 400;
  margin-bottom: 0.5rem;
}

.level p {
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 1.45;
}

.level.broken { border-left-color: var(--red); }
.level.weak   { border-left-color: var(--orange); }
.level.solid  { border-left-color: var(--cyan); }
.level.strong { border-left-color: var(--green); }

/* ── Categories Box ── */
.categories {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  text-align: left;
}

.categories h3 {
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.cat-item {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
}

.cat-item:last-child { border-bottom: none; }
.cat-name { color: var(--text); font-weight: 400; }
.cat-count { color: var(--text-dim); font-size: 0.8rem; }

/* ── Buttons ── */
.btn {
  background: var(--blue);
  border: none;
  border-radius: 4px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  padding: 1rem 2.5rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  text-decoration: none;
  display: inline-block;
}

.btn:hover { background: #4480ff; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }

.btn-secondary {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-dim);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.05);
  color: var(--text);
}

/* ── Shared ── */
.divider {
  width: 40px;
  height: 2px;
  background: var(--blue);
  border: none;
}

.footer {
  font-size: 0.72rem;
  color: var(--text-dim);
  line-height: 1.5;
}

.proof {
  font-size: 0.75rem;
  color: var(--text-dim);
  font-style: italic;
}

.form-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  align-items: center;
}

.form-section .prompt {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text);
}

.info-box {
  width: 100%;
  text-align: left;
  background: var(--bg-card);
  border-radius: 8px;
  padding: 1.5rem;
}

.info-box h3 {
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.info-box p {
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.5;
  margin-bottom: 0.8rem;
}

.info-box p:last-child { margin-bottom: 0; }

/* ── Assessment Form ── */
.assessment-wrap {
  max-width: 680px;
  width: 100%;
  padding: 2rem 1.5rem 4rem;
  margin: 0 auto;
}

/* Progress */
.progress-bar {
  display: flex;
  gap: 6px;
  margin-bottom: 2.5rem;
}

.progress-step {
  flex: 1;
  height: 4px;
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
  transition: background 0.3s;
}

.progress-step.active { background: var(--blue); }
.progress-step.done   { background: var(--green); }

.progress-label {
  font-size: 0.7rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
  text-align: center;
}

/* Sections */
.section { display: none; }
.section.active { display: block; }

.section-title {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 0.3rem;
}

.section-subtitle {
  font-size: 0.82rem;
  color: var(--text-dim);
  margin-bottom: 2rem;
}

/* Questions */
.question {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.question:last-of-type {
  border-bottom: none;
}

.question-number {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.4rem;
}

.question-text {
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 1rem;
  line-height: 1.4;
}

.option-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.option-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 0.75rem 1rem;
  background: var(--bg-input);
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 1.4;
}

.option-label:hover {
  border-color: rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.07);
}

.option-label.selected {
  border-color: var(--blue);
  background: rgba(41,98,255,0.08);
  color: var(--text);
}

.option-label input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  min-width: 16px;
  border: 2px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  margin-top: 2px;
  position: relative;
  cursor: pointer;
}

.option-label.selected input[type="radio"] {
  border-color: var(--blue);
}

.option-label.selected input[type="radio"]::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 8px;
  height: 8px;
  background: var(--blue);
  border-radius: 50%;
}

/* Navigation */
.nav-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2rem;
  gap: 1rem;
}

.nav-row .btn { min-width: 140px; }

/* Email input */
.email-section {
  text-align: center;
  padding: 1rem 0 2rem;
}

.email-section h2 {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 0.5rem;
}

.email-section p {
  font-size: 0.88rem;
  color: var(--text-dim);
  margin-bottom: 1.5rem;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

.email-input {
  width: 100%;
  max-width: 380px;
  padding: 0.9rem 1.2rem;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
  margin-bottom: 1rem;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.email-input:focus { border-color: var(--blue); }

.email-input::placeholder { color: rgba(255,255,255,0.25); }

/* ── Results ── */
.results-wrap {
  max-width: 620px;
  width: 100%;
  padding: 3rem 2rem 4rem;
  margin: 0 auto;
  text-align: center;
}

.results-header {
  margin-bottom: 2.5rem;
}

.results-header .label {
  margin-bottom: 1rem;
  display: block;
}

.score-display {
  font-family: var(--font-head);
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.3rem;
}

.score-total {
  font-size: 1rem;
  color: var(--text-dim);
  font-weight: 200;
  margin-bottom: 0.8rem;
}

.level-badge {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.5rem 1.5rem;
  border-radius: 4px;
  margin-bottom: 0.6rem;
}

.ratio-text {
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* Category bars */
.category-bars {
  width: 100%;
  margin: 2rem 0;
  text-align: left;
}

.category-bars h3 {
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.2rem;
  text-align: center;
}

.bar-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 0.9rem;
}

.bar-label {
  width: 140px;
  min-width: 140px;
  font-size: 0.78rem;
  color: var(--text-dim);
  text-align: right;
}

.bar-track {
  flex: 1;
  height: 24px;
  background: rgba(255,255,255,0.05);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.8s ease-out;
  min-width: 2px;
}

.bar-score {
  width: 44px;
  min-width: 44px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text);
  text-align: left;
}

.bar-row.lowest .bar-label { color: var(--red); font-weight: 400; }
.bar-row.lowest .bar-score { color: var(--red); }

/* Results text sections */
.results-section {
  width: 100%;
  text-align: left;
  background: var(--bg-card);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.2rem;
}

.results-section h3 {
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.8rem;
}

.results-section p,
.results-section li {
  font-size: 0.88rem;
  color: var(--text-dim);
  line-height: 1.55;
  margin-bottom: 0.5rem;
}

.results-section ul {
  list-style: none;
  padding: 0;
}

.results-section li::before {
  content: '\2014\00a0';
  color: var(--blue);
}

.results-section .highlight {
  color: var(--text);
  font-weight: 400;
}

/* CTA box */
.cta-box {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--blue);
  border-radius: 8px;
  padding: 2rem 1.5rem;
  text-align: center;
  margin: 1.5rem 0;
}

.cta-box h3 {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 0.8rem;
}

.cta-box p {
  font-size: 0.88rem;
  color: var(--text-dim);
  margin-bottom: 1rem;
  line-height: 1.5;
}

.email-note {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-top: 1.5rem;
  font-style: italic;
}

/* ── Responsive ── */
@media (max-width: 520px) {
  .page { padding: 3rem 1.25rem; gap: 2rem; }
  .assessment-wrap { padding: 1.5rem 1rem 3rem; }
  .results-wrap { padding: 2rem 1.25rem 3rem; }
  .btn { width: 100%; padding: 1rem 1.5rem; }
  .nav-row { flex-direction: column; }
  .nav-row .btn { width: 100%; }
  .bar-label { width: 90px; min-width: 90px; font-size: 0.72rem; }
  .score-display { font-size: 2.8rem; }
}
