:root {
  --bg: #0b1e3d;
  --bg-elevated: #122a4e;
  --bg-elevated-hover: #16335e;
  --accent: #f5a623;
  --accent-ink: #1a2e4f;
  --text: #ffffff;
  --text-muted: #a9b6cc;
  --rule: rgba(255, 255, 255, 0.28);
  --border: rgba(255, 255, 255, 0.14);
  --radius: 6px;
  --font-display: "Manrope", sans-serif;
  --font-body: "Inter", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

.app {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.25rem;
}

.screen {
  width: 100%;
  max-width: 560px;
}

.kicker {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0 0 0.5rem;
}

.headline-block {
  border-left: 3px solid var(--rule);
  padding-left: 1.1rem;
  margin: 0 0 1.5rem;
}

.headline {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.6rem, 6vw, 2.4rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0;
}

.accent {
  color: var(--accent);
}

.lede {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.55;
  max-width: 46ch;
  margin: 0 0 1.75rem;
}

/* Progress */

.progress-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0 0 0.5rem;
}

.progress-track {
  height: 3px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 1.75rem;
}

.progress-fill {
  height: 100%;
  background: var(--accent);
  transition: width 0.25s ease;
}

/* Form fields */

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.field label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.field .optional {
  color: rgba(169, 182, 204, 0.6);
  font-weight: 400;
}

input,
select {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 0.9rem;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  width: 100%;
}

input::placeholder {
  color: rgba(255, 255, 255, 0.32);
}

input:focus-visible,
select:focus-visible,
button:focus-visible,
.option:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Buttons */

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--font-body);
  font-weight: 600;
  border: none;
  border-radius: var(--radius);
  padding: 0.85rem 1.5rem;
  font-size: 1rem;
  cursor: pointer;
  width: 100%;
  transition: background 0.15s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-primary:hover {
  background: #ffb64d;
}

.btn-primary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.btn-text {
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.9rem;
  cursor: pointer;
  padding: 0.5rem 0;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.5rem;
}

.actions .btn-primary {
  flex: 1;
}

/* Question options */

.option {
  display: block;
  width: 100%;
  text-align: left;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
  margin-bottom: 0.65rem;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.45;
  cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease;
}

.option:hover {
  background: var(--bg-elevated-hover);
}

.option.selected {
  border-color: var(--accent);
  background: rgba(245, 166, 35, 0.12);
}

/* Result breakdown */

.breakdown {
  margin: 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.breakdown-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}

.breakdown-track {
  height: 5px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 3px;
  overflow: hidden;
}

.breakdown-fill {
  height: 100%;
  background: var(--accent);
}

.cta {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.cta-secondary {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  text-decoration: none;
}

.cta-secondary:hover {
  color: var(--text);
}

/* Errors */

.error-banner {
  background: rgba(255, 90, 90, 0.12);
  border: 1px solid rgba(255, 90, 90, 0.4);
  color: #ffb3b3;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}

.footer {
  text-align: center;
  color: rgba(169, 182, 204, 0.6);
  font-size: 0.8rem;
  margin-top: 2.5rem;
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
