:root {
  --bg: #0f1419;
  --surface: #1a2332;
  --text: #e8eef5;
  --muted: #9aa8b8;
  --accent: #3d8bfd;
  --accent-dim: #2a5fae;
  --border: #2a3544;
  --radius: 10px;
}

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Ubuntu, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

main {
  max-width: 42rem;
  margin: 0 auto;
  padding: 1.25rem 1rem 3rem;
}

.site-header {
  margin-bottom: 1.25rem;
}

.site-logo {
  display: block;
  width: auto;
  max-width: min(100%, 22rem);
  height: auto;
  object-fit: contain;
  margin-bottom: 0.75rem;
}

.intro-highlight {
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--text);
  margin: 0 0 1.25rem;
}

h1 {
  font-size: 1.35rem;
  font-weight: 650;
  margin: 0 0 0.5rem;
}

h2 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 1.5rem 0 0.35rem;
}

p.lead {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0 0 1rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  margin-bottom: 1rem;
}

.card h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

.card .sub {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0 0 1rem;
}

ul.bullets {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
  color: var(--muted);
  font-size: 0.9rem;
}

button,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.65rem 1.1rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
}

button:hover,
.btn:hover {
  background: var(--accent-dim);
}

button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

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

button.secondary:hover {
  background: rgba(255, 255, 255, 0.06);
}

.field {
  margin-bottom: 1rem;
}

.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--muted);
}

.field input,
.field select {
  width: 100%;
  padding: 0.55rem 0.65rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #121a26;
  color: var(--text);
  font-size: 1rem;
}

.options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.option {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 0.65rem 0.7rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  cursor: pointer;
  background: #121a26;
}

.option:has(input:checked) {
  border-color: var(--accent);
  background: rgba(61, 139, 253, 0.12);
}

.option input {
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.option span {
  font-size: 0.9rem;
}

.progress {
  height: 4px;
  background: var(--border);
  border-radius: 4px;
  margin: 0.75rem 0 1rem;
  overflow: hidden;
}

.progress > div {
  height: 100%;
  background: var(--accent);
  transition: width 0.2s ease;
}

.row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  justify-content: space-between;
  margin-top: 1rem;
}

.score-grid {
  display: grid;
  gap: 0.65rem;
}

.score-pill {
  padding: 0.75rem 0.85rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #121a26;
}

.score-pill strong {
  display: block;
  font-size: 1.25rem;
  margin-bottom: 0.15rem;
}

.score-pill.composite {
  opacity: 0.92;
  border-style: dashed;
}

.banner {
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  background: rgba(255, 180, 60, 0.12);
  border: 1px solid rgba(255, 180, 60, 0.35);
  color: #ffd88a;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
}

.overlay-inner {
  background: var(--surface);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

@media (min-width: 480px) {
  h1 {
    font-size: 1.5rem;
  }
}
