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

:root {
  --blue: #2B7FDD;
  --blue-light: #EBF4FF;
  --blue-dark: #1A5FAB;
  --text: #111827;
  --text-secondary: #6B7280;
  --border: #E5E7EB;
  --bg: #F9FAFB;
  --white: #FFFFFF;
  --purple: #7C3AED;
  --orange: #D95B2B;
  --green: #059669;
  --red-bg: #FEF2F2;
  --red-text: #991B1B;
  --yellow-bg: #FFFBEB;
  --yellow-text: #92400E;
  --green-bg: #ECFDF5;
  --green-text: #065F46;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 2rem 1rem 4rem;
}

.container { max-width: 620px; width: 100%; }

/* Header */
.header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 2rem;
}
.logo-icon {
  width: 36px; height: 36px;
  background: var(--blue);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
}
.logo-icon svg { width: 20px; height: 20px; fill: white; }
.logo-text { font-size: 15px; font-weight: 700; color: var(--text); }
.logo-sub { font-size: 12px; color: var(--text-secondary); }

/* Progress */
.progress-wrap { margin-bottom: 1.75rem; }
.progress-meta {
  display: flex; justify-content: space-between;
  font-size: 12px; color: var(--text-secondary);
  margin-bottom: 6px;
}
.progress-bg {
  height: 6px; background: var(--border);
  border-radius: 99px; overflow: hidden;
}
.progress-fill {
  height: 6px; background: linear-gradient(90deg, var(--blue) 0%, #60A5FA 100%);
  border-radius: 99px; transition: width 0.4s ease;
}

/* Cards */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.card:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.07); }

/* Section chip */
.section-chip {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 600;
  color: var(--blue-dark);
  background: var(--blue-light);
  border-radius: 99px;
  padding: 3px 10px;
  margin-bottom: 1rem;
  letter-spacing: 0.03em;
}

/* Question */
.q-num { font-size: 11px; color: var(--text-secondary); margin-bottom: 4px; }
.q-text { font-size: 14px; line-height: 1.6; color: var(--text); margin-bottom: 12px; font-weight: 500; }

/* Option buttons */
.options { display: flex; gap: 6px; flex-wrap: wrap; }
.opt-btn {
  font-size: 12px; font-weight: 500;
  padding: 6px 14px;
  border-radius: 99px;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.opt-btn:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-light); }
.opt-btn.selected {
  background: var(--blue);
  border-color: var(--blue);
  color: white;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(43,127,221,0.35);
}

/* Nav */
.nav { display: flex; gap: 10px; margin-top: 1.75rem; align-items: center; }
.btn-back {
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  background: var(--white);
  border: 1.5px solid var(--border);
  color: var(--text-secondary);
  transition: all 0.15s;
}
.btn-back:hover { border-color: #9CA3AF; color: var(--text); }
.btn-next {
  padding: 10px 22px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  background: var(--blue);
  border: none;
  color: white;
  transition: all 0.15s;
  box-shadow: 0 2px 8px rgba(43,127,221,0.3);
}
.btn-next:hover:not(:disabled) { background: var(--blue-dark); box-shadow: 0 4px 12px rgba(43,127,221,0.4); }
.btn-next:disabled { background: var(--border); color: #9CA3AF; cursor: not-allowed; box-shadow: none; }
.page-info { font-size: 13px; color: var(--text-secondary); margin-left: auto; font-weight: 500; }

/* Start screen */
.hero { text-align: center; padding: 2rem 0 1.5rem; }
.hero-badge {
  display: inline-block;
  font-size: 11px; font-weight: 600;
  color: var(--blue-dark);
  background: var(--blue-light);
  border-radius: 99px;
  padding: 4px 12px;
  margin-bottom: 1rem;
  letter-spacing: 0.04em;
}
.hero h1 { font-size: 26px; font-weight: 800; line-height: 1.25; margin-bottom: 8px; }
.hero p { font-size: 14px; color: var(--text-secondary); line-height: 1.6; max-width: 380px; margin: 0 auto; }

.age-label { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 10px; }
.age-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.age-card {
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
  background: var(--white);
  cursor: pointer;
  transition: all 0.15s;
  text-align: left;
}
.age-card:hover { border-color: var(--blue); background: var(--blue-light); }
.age-card.selected { border-color: var(--blue); background: var(--blue-light); }
.age-card.selected .age-card-title { color: var(--blue-dark); }
.age-card-icon { font-size: 24px; margin-bottom: 6px; }
.age-card-title { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 2px; }
.age-card-sub { font-size: 12px; color: var(--text-secondary); }
.age-card.selected .age-check { display: flex; }
.age-check {
  display: none;
  width: 18px; height: 18px;
  background: var(--blue);
  border-radius: 99px;
  align-items: center; justify-content: center;
  float: right; margin-top: -2px;
}
.age-check svg { width: 10px; height: 10px; fill: white; }

.start-btn {
  width: 100%; margin-top: 1rem;
  padding: 12px;
  background: var(--blue);
  border: none; border-radius: 12px;
  color: white; font-size: 15px; font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
  box-shadow: 0 3px 10px rgba(43,127,221,0.35);
}
.start-btn:hover:not(:disabled) { background: var(--blue-dark); }
.start-btn:disabled { background: var(--border); color: #9CA3AF; cursor: not-allowed; box-shadow: none; }

/* Result */
.total-score {
  font-size: 52px; font-weight: 800;
  color: var(--blue);
  line-height: 1;
}
.total-denom { font-size: 18px; color: var(--text-secondary); font-weight: 400; }

.badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 600;
  padding: 4px 14px;
  border-radius: 99px;
  margin-top: 8px;
}
.badge-low { background: var(--green-bg); color: var(--green-text); }
.badge-mid { background: var(--yellow-bg); color: var(--yellow-text); }
.badge-high { background: var(--red-bg); color: var(--red-text); }

.score-row { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.score-row:last-child { margin-bottom: 0; }
.score-dot { width: 8px; height: 8px; border-radius: 99px; flex-shrink: 0; }
.score-label { font-size: 13px; color: var(--text-secondary); flex: 1; min-width: 0; }
.score-track { width: 130px; flex-shrink: 0; height: 7px; background: #F3F4F6; border-radius: 99px; overflow: hidden; }
.score-fill { height: 7px; border-radius: 99px; transition: width 0.8s ease; }
.score-num { font-size: 13px; font-weight: 700; color: var(--text); width: 32px; text-align: right; }

.section-title { font-size: 14px; font-weight: 700; margin-bottom: 2px; }
.section-sub { font-size: 12px; color: var(--text-secondary); margin-bottom: 1rem; }

.disclaimer {
  font-size: 12px; color: var(--text-secondary);
  line-height: 1.7; margin-top: 1.25rem;
  padding: 1rem 1.25rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.disclaimer strong { color: var(--text); }
