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

:root {
  --bg: #f7f6f3;
  --surface: #ffffff;
  --border: #e2e0da;
  --text: #1a1916;
  --muted: #6b6963;
  --accent: #2d5be3;
  --accent-light: #eef1fd;
  --success: #1a7a4a;
  --success-light: #edf7f2;
  --radius: 10px;
  --font: "DM Sans", sans-serif;
  --mono: "DM Mono", monospace;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  padding: 2rem 1rem 4rem;
  font-size: 15px;
  line-height: 1.6;
}

.container {
  max-width: 620px;
  margin: 0 auto;
}

/* Header */
header {
  margin-bottom: 2.5rem;
}

.logo {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 1.5rem;
  letter-spacing: 0.02em;
}

h1 {
  font-size: 28px;
  font-weight: 500;
  line-height: 1.25;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

h1 img {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.subtitle {
  color: var(--muted);
  font-size: 15px;
}

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

/* Step indicator */
.step-indicator {
  display: flex;
  gap: 6px;
  margin-bottom: 2rem;
}

.step-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border);
  transition: background 0.2s;
}

.step-dot.active {
  background: var(--accent);
}
.step-dot.done {
  background: var(--text);
}

/* Screen management */
.screen {
  display: none;
}
.screen.active {
  display: block;
}

/* Category cards */
.category-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.category-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  cursor: pointer;
  text-align: left;
  transition:
    border-color 0.15s,
    background 0.15s;
  font-family: var(--font);
  width: 100%;
}

.category-btn:hover {
  border-color: var(--accent);
  background: var(--accent-light);
}

.category-btn-title {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  display: block;
  margin-bottom: 2px;
}

.category-btn-desc {
  font-size: 13px;
  color: var(--muted);
  font-family: var(--mono);
}

/* Question label */
.q-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
}

.q-text {
  font-size: 17px;
  font-weight: 500;
  margin-bottom: 1.25rem;
  line-height: 1.4;
}

/* Option buttons */
.options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
  margin-bottom: 1.5rem;
}

.option-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  cursor: pointer;
  text-align: left;
  font-family: var(--font);
  font-size: 14px;
  color: var(--text);
  transition:
    border-color 0.15s,
    background 0.15s;
  line-height: 1.4;
}

.option-btn:hover {
  border-color: var(--accent);
  background: var(--accent-light);
}

.option-btn.selected {
  border-color: var(--accent);
  background: var(--accent-light);
  color: var(--accent);
  font-weight: 500;
}

/* Progress bar */
.progress-track {
  height: 2px;
  background: var(--border);
  border-radius: 1px;
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 1px;
  transition: width 0.3s ease;
}

/* Next button */
.btn {
  display: inline-block;
  background: var(--text);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 0.7rem 1.4rem;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.15s;
}

.btn:hover {
  opacity: 0.85;
}
.btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  background: var(--bg);
  opacity: 1;
}

.btn-row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 1rem;
}

/* Result screen */
.result-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.result-badge {
  font-size: 11px;
  font-weight: 500;
  font-family: var(--mono);
  background: var(--success-light);
  color: var(--success);
  border-radius: 4px;
  padding: 3px 8px;
  white-space: nowrap;
  margin-top: 4px;
}

.result-tech {
  font-size: 26px;
  font-weight: 500;
  line-height: 1.2;
}

.result-tagline {
  font-size: 14px;
  color: var(--muted);
  font-family: var(--mono);
  margin-top: 2px;
}

.result-section {
  margin-bottom: 1.25rem;
}

.result-section-title {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.result-section p {
  font-size: 14px;
  color: var(--text);
  line-height: 1.65;
}

.why-not-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.why-not-list li {
  font-size: 13px;
  color: var(--muted);
  padding-left: 1rem;
  position: relative;
  line-height: 1.5;
}

.why-not-list li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: var(--border);
}

.links-grid {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.resource-link {
  font-size: 13px;
  color: var(--accent);
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 10px;
  font-family: var(--mono);
  transition: background 0.15s;
}

.resource-link:hover {
  background: var(--accent-light);
}

.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 1.25rem 0;
}

footer {
  margin-top: 3rem;
  font-size: 12px;
  color: var(--muted);
  font-family: var(--mono);
  text-align: center;
}
