:root {
  --bg: #0b1020;
  --panel: #ffffff;
  --panel-soft: #f4f7fb;
  --text: #172235;
  --muted: #5d6b82;
  --line: #d8e0ec;
  --accent: #204ecf;
  --accent-2: #0f2f87;
  --success: #117a42;
  --warn: #b26a00;
  --danger: #b3261e;
  --shadow: 0 12px 32px rgba(9,18,39,0.08);
  --radius: 18px;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text);
  background: #eef3f9;
  line-height: 1.6;
}
.container { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.narrow { width: min(760px, calc(100% - 32px)); }
.section { padding: 56px 0; }
.hidden { display: none !important; }
.disclaimer-banner {
  background: #fff3cd;
  color: #7a5a00;
  border-bottom: 1px solid #f0df9f;
  padding: 12px 20px;
  text-align: center;
  font-size: 14px;
}
.hero {
  background: radial-gradient(circle at top left, #1d4dd8 0%, #0f1c3e 42%, #091221 100%);
  color: #fff;
  padding: 72px 0 64px;
}
.eyebrow { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; opacity: 0.85; margin-bottom: 14px; }
.hero h1 { margin: 0; font-size: clamp(2rem, 3.5vw, 3.4rem); line-height: 1.08; max-width: 920px; }
.hero-copy { max-width: 820px; font-size: 1.08rem; opacity: 0.93; margin: 18px 0 24px; }
.hero-actions, .actions-row, .toolbar { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-note { margin-top: 18px; opacity: 0.78; font-size: 0.96rem; }
.btn {
  appearance: none; border: 1px solid transparent; border-radius: 999px; padding: 12px 18px;
  font-weight: 700; font-size: 0.95rem; cursor: pointer; text-decoration: none; display: inline-flex;
  align-items: center; justify-content: center; transition: transform .15s ease, opacity .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: #fff; color: var(--accent-2); }
.btn-secondary { background: transparent; color: inherit; border-color: rgba(255,255,255,0.35); }
.section .btn-secondary { color: var(--text); border-color: var(--line); background: #fff; }
.section-head { display: flex; justify-content: space-between; gap: 16px; align-items: end; margin-bottom: 20px; }
.section-head.stack { display: block; }
.section-head h2 { margin: 0 0 6px; font-size: 2rem; }
.section-head p { margin: 0; color: var(--muted); }
.tier-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.tier-card, .profile-card, .summary-card, .overall-card, .recommendation-card, .score-guide-card {
  background: var(--panel);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}
.tier-card.featured { border: 2px solid var(--accent); transform: scale(1.02); }
.tier-label {
  display: inline-block; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; font-weight: 700;
  padding: 6px 10px; border-radius: 999px; background: #e9f0ff; color: var(--accent-2); margin-bottom: 10px;
}
.score-guide-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; margin-bottom: 18px;
}
.score-guide-card strong { display: block; margin-bottom: 8px; }
.score-guide-card span { color: var(--muted); }
.score-explainer {
  background: var(--panel);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}
.profile-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.profile-grid.single-col { grid-template-columns: 1fr; }
label span, .question-title, .label { display: block; font-weight: 700; margin-bottom: 8px; }
input, select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; font: inherit; background: #fff;
}
.checkbox-row { display: flex; gap: 12px; align-items: start; margin-top: 16px; }
.checkbox-row input { width: auto; margin-top: 5px; }
.accordion { margin-top: 18px; display: grid; gap: 16px; }
.accordion-item { background: var(--panel); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.accordion-header {
  width: 100%; border: 0; background: transparent; text-align: left; padding: 20px 24px; display: flex;
  justify-content: space-between; align-items: center; cursor: pointer;
}
.accordion-title h3 { margin: 0 0 4px; }
.accordion-title p { margin: 0 0 10px; color: var(--muted); }
.weight-chip {
  display: inline-block; padding: 6px 10px; border-radius: 999px; background: #eef3fb; color: var(--accent-2); font-size: 13px; font-weight: 700;
}
.chevron { font-size: 1.2rem; color: var(--muted); }
.accordion-body { padding: 0 24px 24px; border-top: 1px solid var(--line); }
.question { padding: 18px 0; border-bottom: 1px solid var(--line); }
.question:last-child { border-bottom: 0; }
.question p { margin: 0 0 12px; }
.scale-group { display: grid; grid-template-columns: repeat(6, minmax(44px, 1fr)); gap: 8px; }
.scale-group label { background: var(--panel-soft); border: 1px solid var(--line); border-radius: 12px; padding: 10px 8px; text-align: center; cursor: pointer; }
.scale-group input { display: none; }
.scale-group label.selected { border-color: var(--accent); background: #e9f0ff; }
.scale-group input:checked + span { color: var(--accent-2); font-weight: 800; }
.question-note, .mini-note { font-size: .92rem; color: var(--muted); margin-top: 8px; }
.results-top, .recommendations-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 20px; }
.overall-card { text-align: center; }
.score { font-size: 4rem; line-height: 1; font-weight: 800; margin: 8px 0; }
.rating { font-size: 1.2rem; font-weight: 700; }
.cap-note { margin-top: 8px; color: var(--muted); }
.layer-results { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 16px; margin: 24px 0; }
.layer-card { background: var(--panel); border-radius: 16px; box-shadow: var(--shadow); padding: 18px; }
.layer-card h3 { margin: 0 0 8px; }
.layer-score { font-size: 2rem; font-weight: 800; }
.progress { height: 10px; background: #e8eef8; border-radius: 999px; overflow: hidden; margin: 12px 0; }
.progress > span { display: block; height: 100%; background: linear-gradient(90deg, #7ea2ff 0%, #244fd0 100%); }
.band { font-weight: 700; }
.band.strong { color: var(--success); }
.band.moderate { color: var(--warn); }
.band.weak { color: var(--danger); }
.results-disclaimer {
  margin-top: 20px; padding: 12px 14px; background: #f8d7da; color: #721c24; font-size: 13px; border-left: 4px solid #dc3545;
}
.site-footer { background: #091221; color: rgba(255,255,255,.8); padding: 18px 0; }
.footer-inner { display: flex; justify-content: space-between; gap: 16px; font-size: .92rem; }
ul, ol { padding-left: 20px; }
@media (max-width: 960px) {
  .tier-grid, .score-guide-grid, .results-top, .recommendations-grid, .layer-results, .profile-grid { grid-template-columns: 1fr; }
  .section-head { display: block; }
}
