:root {
  --white: #ffffff;
  --black: #1d1d1f;
  --gray-100: #f5f5f7;
  --gray-200: #e8e8ed;
  --gray-300: #d2d2d7;
  --gray-text: #6e6e73;
  --gray-muted: #86868b;
  --navy: #051c2c;
  --blue: #005eb8;
  --blue-light: #4da3ff;
  --warm-bg: #f2eeeb;
  --warm-text: #2c2320;
  --warm-accent: #a67c5b;
  --success: #248a3d;
  --success-bg: #e8f5ea;
  --success-text: #1a5c2a;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.04);
  --shadow-md: 0 2px 8px rgba(0,0,0,0.04), 0 12px 40px rgba(0,0,0,0.06);
  --shadow-lg: 0 4px 12px rgba(0,0,0,0.04), 0 24px 64px rgba(0,0,0,0.08);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 980px;
  --ease-default: cubic-bezier(0.16, 1, 0.3, 1);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: var(--font); color: var(--black); background: var(--white); line-height: 1.5; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.82);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--gray-200);
}
.site-header-inner {
  max-width: 1060px; margin: 0 auto; padding: 0 1.5rem;
  height: 56px; display: flex; align-items: center; justify-content: space-between;
}
.site-logo {
  font-size: 1.25rem; font-weight: 700; letter-spacing: -0.03em;
  color: var(--blue); text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
}
.site-logo svg { flex-shrink: 0; }

/* Stepper */
.stepper {
  display: flex; justify-content: center; gap: 0; padding: 1.5rem 1rem;
  max-width: 600px; margin: 0 auto;
}
.stepper-item {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.75rem; font-weight: 500; color: var(--gray-muted);
}
.stepper-item.active { color: var(--blue); font-weight: 600; }
.stepper-item.done { color: var(--success); }
.stepper-dot {
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 600;
  background: var(--gray-200); color: var(--gray-muted);
  transition: all 250ms var(--ease-default);
}
.stepper-item.active .stepper-dot { background: var(--blue); color: white; }
.stepper-item.done .stepper-dot { background: var(--success); color: white; }
.stepper-line {
  width: 40px; height: 2px; background: var(--gray-200); margin: 0 0.25rem;
  flex-shrink: 0;
}
.stepper-item.done + .stepper-line,
.stepper-line.done { background: var(--success); }

/* Cards */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.card-featured {
  position: relative;
}
.card-featured::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--blue-light));
}

/* Eyebrow */
.eyebrow {
  font-size: 0.75rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--blue);
}

/* Buttons */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 14px 32px; font-family: var(--font);
  font-size: 1rem; font-weight: 600;
  color: white; background: var(--blue);
  border: none; border-radius: var(--radius-full); cursor: pointer;
  transition: all 250ms var(--ease-default);
  box-shadow: 0 2px 8px rgba(0,94,184,0.15);
  text-decoration: none;
}
.btn-primary:hover {
  background: #004a9e; transform: scale(1.03);
  box-shadow: 0 4px 16px rgba(0,94,184,0.2);
}
.btn-primary:active { transform: scale(0.97); }

.btn-secondary {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 12px 24px; font-family: var(--font);
  font-size: 0.875rem; font-weight: 600;
  color: var(--blue); background: transparent;
  border: 1px solid var(--gray-200); border-radius: var(--radius-full); cursor: pointer;
  transition: all 250ms var(--ease-default);
  text-decoration: none;
}
.btn-secondary:hover {
  border-color: var(--blue); background: rgba(0,94,184,0.04);
}

.btn-ghost {
  display: inline-flex; align-items: center; gap: 0.375rem;
  font-family: var(--font); font-size: 0.875rem; font-weight: 500;
  color: var(--blue); background: none; border: none; cursor: pointer;
  text-decoration: none; transition: gap 250ms;
}
.btn-ghost:hover { gap: 0.5rem; }

/* Badge */
.badge {
  display: inline-block; font-size: 0.6875rem; font-weight: 600;
  padding: 4px 12px; border-radius: var(--radius-full);
  text-transform: uppercase; letter-spacing: 0.03em;
}
.badge-success { background: var(--success-bg); color: var(--success-text); }
.badge-blue { background: #e4eef9; color: #004a96; }
.badge-free { background: #fef4e4; color: #7a5500; }

/* Radio cards (Step 2) */
.radio-card {
  position: relative;
  display: flex; align-items: flex-start; gap: 0.75rem;
  padding: 1rem 1.25rem;
  border: 2px solid var(--gray-200); border-radius: var(--radius-md);
  cursor: pointer; transition: all 200ms var(--ease-default);
  background: var(--white);
}
.radio-card:hover { border-color: var(--blue); background: rgba(0,94,184,0.02); }
.radio-card input[type="radio"] { display: none; }
.radio-card input[type="radio"]:checked ~ .radio-card-content {
  color: var(--blue);
}
.radio-card:has(input:checked) {
  border-color: var(--blue); background: rgba(0,94,184,0.04);
  box-shadow: 0 0 0 1px var(--blue);
}
.radio-card-dot {
  width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid var(--gray-300); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: all 200ms;
  margin-top: 1px;
}
.radio-card:has(input:checked) .radio-card-dot {
  border-color: var(--blue); background: var(--blue);
}
.radio-card:has(input:checked) .radio-card-dot::after {
  content: ''; width: 8px; height: 8px; border-radius: 50%; background: white;
}
.radio-card-content { flex: 1; }
.radio-card-label { font-size: 0.9375rem; font-weight: 500; }
.radio-card-hint { font-size: 0.8125rem; color: var(--gray-text); margin-top: 2px; }

/* Progress bar */
.progress-bar {
  width: 100%; height: 6px; background: var(--gray-200);
  border-radius: 3px; overflow: hidden;
}
.progress-bar-fill {
  height: 100%; background: linear-gradient(90deg, var(--blue), var(--blue-light));
  border-radius: 3px; transition: width 400ms var(--ease-default);
}

/* Form fields */
.form-group { margin-bottom: 1.25rem; }
.form-label {
  display: block; font-size: 0.875rem; font-weight: 600;
  color: var(--black); margin-bottom: 0.375rem;
}
.form-help {
  font-size: 0.75rem; color: var(--gray-muted); margin-top: 0.25rem;
}
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 0.75rem 1rem;
  font-family: var(--font); font-size: 0.9375rem;
  border: 1px solid var(--gray-200); border-radius: var(--radius-sm);
  background: var(--white); color: var(--black);
  transition: border-color 200ms, box-shadow 200ms;
  outline: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0,94,184,0.12);
}
.form-textarea { min-height: 120px; resize: vertical; }
.form-input::placeholder, .form-textarea::placeholder { color: var(--gray-muted); }

/* File upload */
.file-upload {
  border: 2px dashed var(--gray-200); border-radius: var(--radius-md);
  padding: 1.5rem; text-align: center; cursor: pointer;
  transition: all 200ms;
}
.file-upload:hover { border-color: var(--blue); background: rgba(0,94,184,0.02); }
.file-upload-text { font-size: 0.875rem; color: var(--gray-text); }
.file-upload-text strong { color: var(--blue); }

/* Feature list */
.feature-list { list-style: none; padding: 0; }
.feature-item {
  display: flex; align-items: flex-start; gap: 0.5rem;
  padding: 0.5rem 0; font-size: 0.9375rem; color: var(--gray-text);
}
.feature-check {
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--success-bg); color: var(--success);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 0.75rem; margin-top: 1px;
}

/* ROI card */
.roi-card {
  background: var(--warm-bg); border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem; position: relative; overflow: hidden;
}
.roi-card::before {
  content: '\201C'; position: absolute; top: 0.5rem; left: 1rem;
  font-family: Georgia, serif; font-size: 3rem; color: rgba(166,124,91,0.15);
}

/* Bot mini card (alternatives) */
.bot-mini-card {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius-md); padding: 1.25rem;
  transition: all 200ms var(--ease-default);
}
.bot-mini-card:hover {
  transform: translateY(-2px); box-shadow: var(--shadow-md);
}

/* HTMX transitions */
.htmx-swapping { opacity: 0; transition: opacity 200ms ease-out; }
.htmx-settling { opacity: 1; transition: opacity 300ms ease-in; }
#quiz-container { transition: opacity 250ms var(--ease-default); }

/* Content container */
.content-container {
  max-width: 680px; margin: 0 auto; padding: 0 1.5rem 3rem;
}
.content-container-wide {
  max-width: 800px; margin: 0 auto; padding: 0 1.5rem 3rem;
}

/* Pricing */
.price-big {
  font-size: 2rem; font-weight: 700; color: var(--black);
  letter-spacing: -0.03em;
}
.price-label { font-size: 0.875rem; color: var(--gray-text); }
.price-free {
  font-size: 2rem; font-weight: 700;
  background: linear-gradient(135deg, var(--success), #34c759);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

/* Score bar (result page) */
.score-bar-container {
  display: flex; align-items: center; gap: 0.75rem;
  margin-bottom: 0.5rem;
}
.score-bar-label {
  font-size: 0.8125rem; font-weight: 500; min-width: 140px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.score-bar-track {
  flex: 1; height: 8px; background: var(--gray-200);
  border-radius: 4px; overflow: hidden;
}
.score-bar-fill {
  height: 100%; background: linear-gradient(90deg, var(--blue), var(--blue-light));
  border-radius: 4px; transition: width 500ms var(--ease-default);
}
.score-bar-value {
  font-size: 0.75rem; font-weight: 600; color: var(--gray-muted);
  min-width: 24px; text-align: right;
}

/* Responsive */
@media (max-width: 640px) {
  .site-header-inner { padding: 0 1rem; }
  .content-container, .content-container-wide { padding: 0 1rem 2rem; }
  .stepper { gap: 0; padding: 1rem 0.5rem; }
  .stepper-line { width: 20px; }
  .stepper-label { display: none; }
  .price-big { font-size: 1.5rem; }
  .btn-primary { width: 100%; padding: 14px 20px; }
  .card { border-radius: var(--radius-md); }
}
