:root {
  --nav-bg: #1B2F6E;
  --accent: #00A9CE;
  --body-bg: #F2F4FA;
  --card-bg: #FFFFFF;
  --border: #E4E8F2;
  --text: #111827;
  --muted: #6B7280;
  --r: 12px;
  --r-sm: 8px;
  --shadow-sm: 0 1px 3px rgba(27,47,110,.07), 0 1px 2px rgba(27,47,110,.04);
  --shadow-md: 0 4px 18px rgba(27,47,110,.13), 0 2px 6px rgba(27,47,110,.06);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--text);
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  background-color: var(--body-bg);
  background-image:
    radial-gradient(900px 480px at 12% -8%, rgba(0,169,206,0.10), transparent 60%),
    radial-gradient(900px 480px at 92% 108%, rgba(27,47,110,0.07), transparent 60%);
  background-attachment: fixed;
  min-height: 100vh;
}

.navbar {
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.navbar img { height: 20px; width: auto; display: block; }

.brand-divider {
  color: var(--border);
  font-weight: 300;
  font-size: 1.2rem;
  line-height: 1;
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bolt {
  width: 16px;
  height: 16px;
  color: var(--accent);
  flex-shrink: 0;
}

.brand-name {
  font-weight: 700;
  font-size: 15px;
  color: var(--nav-bg);
}

.brand-sub {
  font-size: 12px;
  color: var(--muted);
}

.wrap {
  max-width: 640px;
  margin: 0 auto;
  padding: 96px 24px;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--r);
  box-shadow: var(--shadow-md);
  padding: 32px 36px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin: 0 0 14px;
}

.dot-on {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #51CF66;
  display: inline-block;
  box-shadow: 0 0 0 rgba(81,207,102,0.5);
  animation: pulse 2.2s infinite;
}

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(81,207,102,0.45); }
  70%  { box-shadow: 0 0 0 7px rgba(81,207,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(81,207,102,0); }
}

h1 {
  font-size: 30px;
  line-height: 1.2;
  color: var(--nav-bg);
  margin: 0 0 14px;
}

.lede {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
  margin: 0 0 24px;
}

.roadmap {
  list-style: none;
  margin: 0;
  padding: 20px 0 0;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.roadmap li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
  color: var(--muted);
}

.roadmap li.done {
  color: var(--text);
}

.roadmap .mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 12px;
  flex-shrink: 0;
  background: var(--body-bg);
  color: var(--muted);
}

.roadmap li.done .mark {
  background: rgba(0,169,206,0.14);
  color: var(--accent);
  font-weight: 700;
}

.roadmap a {
  color: inherit;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
}

/* ── Wizard ─────────────────────────────────────────────── */
.wizard-wrap { max-width: 620px; padding-top: 56px; }

.wizard-card {
  padding: 0;
  overflow: hidden;
}

.progress-dots {
  display: flex;
  justify-content: center;
  gap: 7px;
  padding: 22px 0 0;
}

.progress-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--border);
  transition: background 0.2s ease, transform 0.2s ease;
}

.progress-dot.active {
  background: var(--accent);
  transform: scale(1.3);
}

.progress-dot.done {
  background: var(--nav-bg);
  opacity: 0.4;
}

.wizard-viewport {
  overflow: hidden;
}

.wizard-track {
  display: flex;
  align-items: flex-start;
  transition: transform 0.35s cubic-bezier(0.65, 0, 0.35, 1),
    height 0.2s ease;
}

.step {
  flex-shrink: 0;
  box-sizing: border-box;
  padding: 32px 36px 8px;
  min-height: 320px;
}

.step.step-hidden {
  display: none;
}

/* Pure-CSS fallback so there's never a flash of every panel stacked
   side by side before JS finishes its first layout-dependent render. */
.step:not(:first-of-type) {
  display: none;
}

.step h2 {
  font-family: inherit;
  font-size: 22px;
  color: var(--nav-bg);
  margin: 0 0 8px;
  line-height: 1.3;
}

.step-sub {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 22px;
  line-height: 1.5;
}

.text-input {
  width: 100%;
  font-family: inherit;
  font-size: 16px;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  outline: none;
  transition: border-color 0.15s ease;
}

.text-input:focus { border-color: var(--accent); }

.suggestions {
  display: flex;
  flex-direction: column;
  margin-top: 6px;
}

.suggestion-item {
  text-align: left;
  background: none;
  border: none;
  border-bottom: 1px solid var(--border);
  padding: 10px 4px;
  font-family: inherit;
  font-size: 14.5px;
  color: var(--text);
  cursor: pointer;
}

.suggestion-item:hover { color: var(--accent); }

.manual-fallback { margin-top: 18px; }

.field-label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 6px;
}

.choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.choice-grid.stack { grid-template-columns: 1fr; }

.choice-card {
  text-align: left;
  background: var(--card-bg);
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  padding: 14px 16px;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 3px;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.choice-card:hover { border-color: var(--accent); }

.choice-card.selected {
  border-color: var(--accent);
  background: rgba(0,169,206,0.07);
}

.choice-title { font-weight: 700; font-size: 15px; color: var(--text); }
.choice-sub { font-size: 12.5px; color: var(--muted); }

.slider-group {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.slider-row { display: flex; flex-direction: column; gap: 6px; }

.slider-label { font-size: 14px; color: var(--text); }
.slider-label strong { color: var(--nav-bg); margin-right: 6px; }

.familiarity-slider {
  width: 100%;
  accent-color: var(--accent);
}

.slider-value {
  align-self: flex-end;
  font-size: 12.5px;
  color: var(--accent);
  font-weight: 700;
}

.wizard-nav {
  display: flex;
  justify-content: space-between;
  padding: 20px 36px 32px;
}

.btn {
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 700;
  border-radius: var(--r-sm);
  padding: 11px 22px;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--nav-bg);
  color: #fff;
}

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

.btn-ghost {
  background: none;
  color: var(--muted);
}

.step-result { padding-bottom: 32px; }

.result-weeks {
  font-size: 56px;
  color: var(--nav-bg);
  margin: 0 0 10px;
  line-height: 1;
}

.result-weeks span { color: var(--accent); }

.breakdown {
  margin-top: 20px;
  border-top: 1px solid var(--border);
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.breakdown-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: var(--muted);
}

.breakdown-row span:last-child {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  color: var(--text);
}
