/* ─── Onboarding Layout ─── */
:root {
  --ob-bg: #0d0d0a;
  --ob-surface: #141410;
  --ob-surface-2: #1c1c17;
  --ob-text: #eee8dc;
  --ob-text-secondary: #9c9080;
  --ob-text-tertiary: #5c584a;
  --ob-accent: #c9a227;
  --ob-accent-dim: rgba(201, 162, 39, 0.12);
  --ob-rule: rgba(238, 232, 220, 0.1);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--ob-bg);
  color: var(--ob-text);
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 3rem 1.5rem;
}

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

/* ─── Header ─── */
.ob-header {
  margin-bottom: 3rem;
}

.ob-logo {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 20px;
  font-weight: 500;
  color: var(--ob-text-secondary);
  text-decoration: none;
  letter-spacing: -0.01em;
}

/* ─── Progress ─── */
.ob-progress-wrap {
  margin-bottom: 2.5rem;
}

.ob-progress-bar {
  height: 2px;
  background: var(--ob-rule);
  border-radius: 2px;
  margin-bottom: 0.75rem;
  overflow: hidden;
}

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

.ob-step-label {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ob-text-tertiary);
}

/* ─── Question Card ─── */
.ob-card {
  background: var(--ob-surface);
  border: 1px solid var(--ob-rule);
  border-radius: 8px;
  padding: 2.5rem;
  margin-bottom: 1.5rem;
}

.ob-question-text {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--ob-text);
  line-height: 1.3;
  margin-bottom: 2rem;
}

/* ─── Text input ─── */
.ob-text-group {
  margin-bottom: 2rem;
}

.ob-textarea {
  width: 100%;
  background: var(--ob-surface-2);
  border: 1px solid var(--ob-rule);
  border-radius: 6px;
  color: var(--ob-text);
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  padding: 0.9rem 1rem;
  resize: vertical;
  min-height: 100px;
  transition: border-color 0.2s;
  outline: none;
}

.ob-textarea:focus {
  border-color: rgba(201, 162, 39, 0.4);
}

.ob-textarea::placeholder {
  color: var(--ob-text-tertiary);
}

.ob-char-count {
  font-size: 11px;
  color: var(--ob-text-tertiary);
  text-align: right;
  margin-top: 0.5rem;
}

/* ─── Radio / Checkbox options ─── */
.ob-options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.ob-option {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.875rem 1rem;
  background: var(--ob-surface-2);
  border: 1px solid var(--ob-rule);
  border-radius: 6px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.ob-option:hover {
  border-color: rgba(201, 162, 39, 0.3);
  background: rgba(201, 162, 39, 0.04);
}

.ob-option.selected {
  border-color: rgba(201, 162, 39, 0.4);
  background: var(--ob-accent-dim);
}

.ob-option input[type=radio],
.ob-option input[type=checkbox] {
  display: none;
}

.ob-option-circle {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid var(--ob-text-tertiary);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s;
}

.ob-option.selected .ob-option-circle {
  border-color: var(--ob-accent);
}

.ob-option.selected .ob-option-circle::after {
  content: '';
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ob-accent);
}

.ob-checkbox-box {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 1.5px solid var(--ob-text-tertiary);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, background 0.2s;
}

.ob-option.selected .ob-checkbox-box {
  border-color: var(--ob-accent);
  background: var(--ob-accent);
}

.ob-option.selected .ob-checkbox-box::after {
  content: '';
  width: 10px;
  height: 6px;
  border-left: 2px solid #0d0d0a;
  border-bottom: 2px solid #0d0d0a;
  transform: rotate(-45deg) translateY(-1px);
  display: block;
}

.ob-option-text {
  font-size: 0.9rem;
  color: var(--ob-text-secondary);
  line-height: 1.4;
  transition: color 0.2s;
}

.ob-option.selected .ob-option-text {
  color: var(--ob-text);
}

/* ─── Actions ─── */
.ob-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.ob-submit-btn {
  flex: 1;
  background: var(--ob-accent);
  color: #0d0d0a;
  border: none;
  border-radius: 6px;
  padding: 0.875rem 1.5rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: background 0.2s, opacity 0.2s;
}

.ob-submit-btn:hover {
  background: #d4af37;
}

.ob-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.ob-skip-btn {
  background: transparent;
  border: none;
  color: var(--ob-text-tertiary);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  cursor: pointer;
  padding: 0.875rem 0.5rem;
  transition: color 0.2s;
}

.ob-skip-btn:hover {
  color: var(--ob-text-secondary);
}

.ob-btn-loading {
  font-size: 0.85rem;
}

/* ─── Back link ─── */
.ob-back-link {
  display: inline-block;
  color: var(--ob-text-tertiary);
  font-size: 0.85rem;
  text-decoration: none;
  transition: color 0.2s;
  margin-top: 1rem;
}

.ob-back-link:hover {
  color: var(--ob-text-secondary);
}

/* ─── Responsive ─── */
@media (max-width: 560px) {
  body { padding: 2rem 1rem; }
  .ob-card { padding: 1.75rem 1.25rem; }
  .ob-question-text { font-size: 1.2rem; }
}