:root {
  --bg: #f8f7f4;
  --card: #ffffff;
  --text: #1f2933;
  --muted: #5f6c78;
  --border: #d8dee4;
  --accent: #1a56a0;
  --accent-soft: #edf4ff;
  --focus: #0f3f79;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
}

.app-shell {
  max-width: 680px;
  margin: 0 auto;
  padding: 24px 16px 48px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

h1,
h2,
h3 {
  margin-top: 0;
  color: #17212b;
}

h1 {
  font-size: 1.7rem;
  margin-bottom: 12px;
}

h2 {
  font-size: 1.35rem;
  margin-bottom: 12px;
}

h3 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}

p {
  margin: 0 0 16px;
  color: var(--text);
}

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

.actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
}

button {
  border: 1px solid var(--accent);
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 1rem;
  cursor: pointer;
  background: var(--accent);
  color: #fff;
}

button.secondary {
  color: var(--accent);
  background: #fff;
  border-color: #b6c8dc;
}

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

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

.progress-wrap {
  margin-bottom: 16px;
}

.progress-label {
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 8px;
}

.progress-track {
  width: 100%;
  height: 7px;
  background: #e8edf3;
  border-radius: 99px;
  overflow: hidden;
}

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

.options {
  display: grid;
  gap: 10px;
}

.option {
  text-align: left;
  width: 100%;
  border: 1px solid var(--border);
  border-left: 4px solid transparent;
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  padding: 12px 14px;
}

.option.selected {
  background: var(--accent-soft);
  border-color: #a8c2e6;
  border-left-color: var(--accent);
}

.help-text {
  margin-top: 10px;
  font-size: 0.92rem;
  color: var(--muted);
}

.section {
  margin-bottom: 22px;
}

.signals {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.signal {
  border: 1px solid #cdd9e5;
  background: #f7fafc;
  color: #29445f;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.86rem;
}

.modifier-note {
  margin-top: 14px;
  background: #f4f8fd;
  border-left: 3px solid var(--accent);
  padding: 10px 12px;
  color: #274a70;
  font-size: 0.95rem;
}

.direction {
  margin-bottom: 18px;
}

.offer-list {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.offer {
  border: 1px solid #d5e0ea;
  border-radius: 8px;
  padding: 12px;
  background: #fcfdff;
}

.meta {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 6px;
}

.relevance {
  margin: 8px 0 0;
  color: #284663;
  font-size: 0.93rem;
}

.next-steps {
  margin: 0;
  padding-left: 20px;
}

.next-steps li {
  margin-bottom: 8px;
}

.fade-in {
  animation: fadeIn 180ms ease;
}

@keyframes fadeIn {
  from {
    opacity: 0.4;
    transform: translateY(3px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .fade-in,
  .progress-fill {
    animation: none;
    transition: none;
  }
}
