/* ============================================================
   BUILD YOUR TEAM — DESIGN SYSTEM
   ============================================================
   Token system:
   Color    — carbon black surface, mint accent, amber reserved
              for scarcity/savings signals only.
   Type     — Inter (display + body), JetBrains Mono for prices.
   Layout   — two-column wizard (content + sticky summary),
              collapsing to stacked + fixed bottom bar on mobile.
   Signature — the live-updating price total with a digit-roll
              transition and a brief mint pulse on change.
   ============================================================ */

:root {
  /* ---- Color tokens ---- */
  --bg:            #0E0F11;
  --surface:       #16181C;
  --surface-2:     #1D2024;
  --surface-3:     #252930;
  --border:        #2A2E35;
  --border-light:  #34383F;

  --text:          #F5F6F7;
  --text-mid:      #9AA0A8;
  --text-dim:      #6B7078;

  --accent:        #00B87D;
  --accent-dim:    #00A06D;
  --accent-bg:     rgba(0, 184, 125, 0.12);
  --accent-bg-2:   rgba(0, 184, 125, 0.06);

  --amber:         #E8A33D;
  --amber-bg:      rgba(232, 163, 61, 0.14);

  --danger:        #E5604D;

  /* ---- Type tokens ---- */
  --font-display: 'Inter', -apple-system, sans-serif;
  --font-body:    'Inter', -apple-system, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, monospace;

  /* ---- Layout tokens ---- */
  --radius-sm:  10px;
  --radius-md:  16px;
  --radius-lg:  20px;
  --header-h:   72px;
  --summary-w:  380px;
  --max-width:  1180px;

  /* ---- Motion ---- */
  --ease: cubic-bezier(.4, 0, .2, 1);
  --dur-fast: 160ms;
  --dur-base: 280ms;
  --dur-slow: 480ms;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body { font-size: 16px; line-height: 1.5; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  margin: 0;
  letter-spacing: -0.02em;
  font-weight: 700;
}

p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* ============================================================
   APP SHELL
   ============================================================ */
.app { min-height: 100vh; display: flex; flex-direction: column; }

/* ---- Header ---- */
.bt-header {
  height: var(--header-h);
  border-bottom: 1px solid var(--border);
  background: rgba(14, 15, 17, 0.85);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 50;
}
.bt-header__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  gap: 2rem;
}
.bt-header__brand {
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.bt-header__progress {
  display: flex;
  align-items: center;
  gap: 0;
  overflow-x: auto;
}
.bt-progress-step {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 0.85rem;
  position: relative;
}
.bt-progress-step::after {
  content: '';
  width: 22px;
  height: 1px;
  background: var(--border-light);
  margin-left: 0.85rem;
}
.bt-progress-step:last-child::after { display: none; }
.bt-progress-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-light);
  transition: background var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease);
  flex-shrink: 0;
}
.bt-progress-label {
  font-size: 0.72rem;
  color: var(--text-dim);
  white-space: nowrap;
  font-weight: 500;
  transition: color var(--dur-base) var(--ease);
}
.bt-progress-step.is-active .bt-progress-dot {
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-bg);
}
.bt-progress-step.is-active .bt-progress-label { color: var(--text); }
.bt-progress-step.is-done .bt-progress-dot { background: var(--accent-dim); }
.bt-progress-step.is-done .bt-progress-label { color: var(--text-mid); }

/* ---- Main layout ---- */
.bt-main {
  flex: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr var(--summary-w);
  gap: 3rem;
  padding: 2.5rem 2rem 5rem;
  align-items: start;
}

.bt-wizard { min-width: 0; }

/* ---- Intro strip ---- */
.bt-intro { margin-bottom: 2.5rem; }
.bt-intro__headline {
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  margin-bottom: 0.6rem;
}
.bt-intro__sub {
  color: var(--text-mid);
  font-size: 1.05rem;
}

/* ---- Step shell ---- */
.bt-step { animation: bt-step-in var(--dur-slow) var(--ease); }
@keyframes bt-step-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.bt-step__head { margin-bottom: 1.75rem; }
.bt-step__eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6rem;
}
.bt-step__title {
  font-size: clamp(1.4rem, 2.2vw, 1.85rem);
  margin-bottom: 0.5rem;
}
.bt-step__desc {
  color: var(--text-mid);
  font-size: 0.96rem;
  max-width: 56ch;
}

/* ============================================================
   GRIDS
   ============================================================ */
.bt-grid {
  display: grid;
  gap: 1rem;
}
.bt-grid--categories { grid-template-columns: repeat(3, 1fr); }
.bt-grid--roles { grid-template-columns: repeat(2, 1fr); }
.bt-grid--capacity { grid-template-columns: repeat(3, 1fr); }
.bt-grid--accelerators { grid-template-columns: 1fr; }

/* ============================================================
   SELECTABLE CARD (base, used by category/role/capacity)
   ============================================================ */
.bt-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  cursor: pointer;
  transition: border-color var(--dur-base) var(--ease),
              background var(--dur-base) var(--ease),
              transform var(--dur-fast) var(--ease),
              box-shadow var(--dur-base) var(--ease);
  position: relative;
  text-align: left;
  display: flex;
  flex-direction: column;
}
.bt-card:hover {
  border-color: var(--border-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.28);
}
.bt-card.is-selected {
  border-color: var(--accent);
  background: var(--accent-bg-2);
  box-shadow: 0 0 0 1px var(--accent), 0 8px 24px rgba(0,184,125,0.12);
}
.bt-card__check {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--dur-base) var(--ease);
  flex-shrink: 0;
}
.bt-card.is-selected .bt-card__check {
  background: var(--accent);
  border-color: var(--accent);
}
.bt-card__check svg {
  width: 12px; height: 12px;
  opacity: 0;
  transition: opacity var(--dur-fast) var(--ease);
}
.bt-card.is-selected .bt-card__check svg { opacity: 1; }

/* ---- Category card specifics ---- */
.bt-card--category .bt-card__icon {
  width: 42px; height: 42px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
  color: var(--accent);
  transition: background var(--dur-base) var(--ease);
}
.bt-card--category.is-selected .bt-card__icon { background: var(--accent-bg); }
.bt-card--category .bt-card__title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.bt-card--category .bt-card__desc {
  font-size: 0.84rem;
  color: var(--text-mid);
  line-height: 1.5;
}

/* ---- Role card specifics ---- */
.bt-card--role { padding: 1.25rem 1.5rem; }
.bt-card--role .bt-card__title {
  font-size: 0.98rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  padding-right: 1.8rem;
}
.bt-card--role .bt-card__tier {
  font-size: 0.74rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 500;
}
.bt-card--role .bt-card__price {
  font-family: var(--font-mono);
  font-size: 0.84rem;
  color: var(--accent);
  margin-top: 0.5rem;
}

/* ---- Capacity card specifics ---- */
.bt-card--capacity {
  align-items: flex-start;
  padding: 1.75rem 1.5rem;
}
.bt-card--capacity.is-popular {
  border-color: var(--amber);
}
.bt-card--capacity.is-popular.is-selected {
  border-color: var(--accent);
}
.bt-card__badge {
  position: absolute;
  top: -11px;
  left: 1.5rem;
  background: var(--amber);
  color: #1A1305;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.6rem;
  border-radius: 100px;
}
.bt-card--capacity .bt-card__name {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}
.bt-card--capacity .bt-card__hours {
  font-size: 0.84rem;
  color: var(--text-mid);
  margin-bottom: 1rem;
}
.bt-card--capacity .bt-card__price-row {
  font-family: var(--font-mono);
  font-size: 1.65rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}
.bt-card--capacity .bt-card__price-unit {
  font-size: 0.78rem;
  font-family: var(--font-body);
  color: var(--text-dim);
  font-weight: 400;
}
.bt-card--capacity .bt-card__tagline {
  font-size: 0.82rem;
  color: var(--text-mid);
  margin-top: auto;
  padding-top: 0.75rem;
}

/* ============================================================
   ACCELERATOR CARDS (toggle-style, full width rows)
   ============================================================ */
.bt-card--accelerator {
  flex-direction: row;
  align-items: center;
  gap: 1.25rem;
  padding: 1.4rem 1.6rem;
}
.bt-card--accelerator .bt-accel__toggle {
  width: 22px; height: 22px;
  border-radius: 6px;
  border: 1.5px solid var(--border-light);
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--dur-base) var(--ease);
}
.bt-card--accelerator.is-selected .bt-accel__toggle {
  background: var(--accent);
  border-color: var(--accent);
}
.bt-card--accelerator .bt-accel__toggle svg { width: 12px; height: 12px; opacity: 0; transition: opacity var(--dur-fast) var(--ease); }
.bt-card--accelerator.is-selected .bt-accel__toggle svg { opacity: 1; }

.bt-accel__body { flex: 1; min-width: 0; }
.bt-accel__name { font-size: 1rem; font-weight: 600; margin-bottom: 0.35rem; }
.bt-accel__includes {
  display: flex; flex-wrap: wrap; gap: 0.4rem;
  margin-bottom: 0.5rem;
}
.bt-accel__chip {
  font-size: 0.72rem;
  color: var(--text-mid);
  background: var(--surface-2);
  border-radius: 100px;
  padding: 0.2rem 0.65rem;
}
.bt-accel__platforms {
  font-size: 0.78rem;
  color: var(--text-dim);
}
.bt-accel__price {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}
.bt-accel__price-unit {
  font-size: 0.72rem;
  font-family: var(--font-body);
  color: var(--text-dim);
  display: block;
  font-weight: 400;
}

/* ============================================================
   STICKY SUMMARY PANEL — the signature element
   ============================================================ */
.bt-summary {
  position: sticky;
  top: calc(var(--header-h) + 2rem);
}
.bt-summary__inner {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
}
.bt-summary__title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.bt-summary__empty {
  font-size: 0.86rem;
  color: var(--text-dim);
  line-height: 1.6;
  padding: 1rem 0;
}
.bt-summary__lines {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-bottom: 1.25rem;
}
.bt-summary__line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  font-size: 0.86rem;
  animation: bt-line-in var(--dur-base) var(--ease);
}
@keyframes bt-line-in {
  from { opacity: 0; transform: translateX(6px); }
  to   { opacity: 1; transform: translateX(0); }
}
.bt-summary__line-label { color: var(--text-mid); }
.bt-summary__line-sub { color: var(--text-dim); font-size: 0.78rem; display: block; }
.bt-summary__line-value { font-family: var(--font-mono); white-space: nowrap; }

.bt-summary__total-row {
  border-top: 1px solid var(--border);
  padding-top: 1.1rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  transition: box-shadow var(--dur-base) var(--ease);
}
.bt-summary__total-label {
  font-size: 0.82rem;
  color: var(--text-mid);
  font-weight: 500;
}
.bt-summary__total-value {
  font-family: var(--font-mono);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--accent);
  transition: text-shadow var(--dur-base) var(--ease);
}
.bt-summary__total-value.is-pulsing {
  text-shadow: 0 0 18px rgba(0,184,125,0.55);
}
.bt-summary__total-value .bt-digit {
  display: inline-block;
}

.bt-summary__valueprops {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.bt-valueprop {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.78rem;
  color: var(--text-mid);
}
.bt-valueprop::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent-dim);
  flex-shrink: 0;
}

/* ============================================================
   STEP 5 — SUMMARY DETAIL + SAVINGS CARD
   ============================================================ */
.bt-summary-detail {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin-bottom: 1.25rem;
}
.bt-summary-detail__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
}
.bt-summary-detail__row:last-child { border-bottom: none; }
.bt-summary-detail__label { color: var(--text-mid); font-size: 0.88rem; }
.bt-summary-detail__value { font-weight: 600; font-size: 0.92rem; text-align: right; }
.bt-summary-detail__value-sub { color: var(--text-dim); font-size: 0.78rem; font-weight: 400; display: block; }

.bt-savings-card {
  background: linear-gradient(135deg, var(--accent-bg-2), transparent);
  border: 1.5px solid var(--accent-dim);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin-bottom: 1.25rem;
}
.bt-savings-card__title {
  font-size: 0.86rem;
  font-weight: 600;
  margin-bottom: 1.1rem;
  color: var(--text);
}
.bt-savings-card__rows {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1.1rem;
}
.bt-savings-card__row {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
}
.bt-savings-card__row span:first-child { color: var(--text-mid); }
.bt-savings-card__row span:last-child { font-family: var(--font-mono); }
.bt-savings-card__highlight {
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  padding: 1rem 1.1rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.bt-savings-card__highlight-label { font-size: 0.84rem; color: var(--text-mid); }
.bt-savings-card__highlight-value {
  font-family: var(--font-mono);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent);
}
.bt-savings-card__pct {
  font-size: 0.74rem;
  color: var(--amber);
  font-weight: 600;
  margin-left: 0.5rem;
}

.bt-fulltime-benefits {
  background: var(--amber-bg);
  border: 1.5px solid var(--amber);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.75rem;
}
.bt-fulltime-benefits__title {
  font-size: 0.86rem;
  font-weight: 700;
  margin-bottom: 0.85rem;
}
.bt-fulltime-benefits__list { display: flex; flex-direction: column; gap: 0.5rem; }
.bt-fulltime-benefits__item {
  font-size: 0.86rem;
  color: var(--text-mid);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.bt-fulltime-benefits__item::before { content: '★'; color: var(--amber); font-size: 0.8rem; }

/* ============================================================
   FORM (Step 6)
   ============================================================ */
.bt-form { display: flex; flex-direction: column; gap: 1.1rem; max-width: 640px; }
.bt-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.bt-field { display: flex; flex-direction: column; gap: 0.4rem; }
.bt-field label { font-size: 0.84rem; font-weight: 500; color: var(--text-mid); }
.bt-field__optional { color: var(--text-dim); font-weight: 400; }
.bt-field input, .bt-field textarea {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.9rem;
  font-size: 0.92rem;
  color: var(--text);
  font-family: inherit;
  transition: border-color var(--dur-base) var(--ease);
}
.bt-field input:focus, .bt-field textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.bt-field input.has-error, .bt-field textarea.has-error { border-color: var(--danger); }
.bt-field__error {
  font-size: 0.76rem;
  color: var(--danger);
  min-height: 1em;
}
.bt-form__actions {
  display: flex;
  gap: 0.85rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}

.bt-confirmation {
  text-align: center;
  padding: 3rem 1.5rem;
  background: var(--accent-bg-2);
  border: 1.5px solid var(--accent-dim);
  border-radius: var(--radius-lg);
  max-width: 480px;
}
.bt-confirmation__icon {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg);
  font-size: 1.4rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.25rem;
}
.bt-confirmation h3 { font-size: 1.1rem; margin-bottom: 0.6rem; }
.bt-confirmation p { color: var(--text-mid); font-size: 0.9rem; line-height: 1.6; }

/* ============================================================
   BUTTONS
   ============================================================ */
.bt-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1.5px solid transparent;
  border-radius: 100px;
  padding: 0.7rem 1.5rem;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--dur-base) var(--ease);
  white-space: nowrap;
}
.bt-btn--primary { background: var(--accent); color: #04130D; }
.bt-btn--primary:hover:not(:disabled) { background: var(--accent-dim); transform: translateY(-1px); }
.bt-btn--primary:disabled { background: var(--surface-2); color: var(--text-dim); cursor: not-allowed; }
.bt-btn--ghost { background: transparent; border-color: var(--border-light); color: var(--text-mid); }
.bt-btn--ghost:hover:not(:disabled) { border-color: var(--text-dim); color: var(--text); }
.bt-btn--ghost:disabled { opacity: 0.4; cursor: not-allowed; }
.bt-btn--lg { padding: 0.85rem 1.9rem; font-size: 0.92rem; }

/* ============================================================
   WIZARD NAV
   ============================================================ */
.bt-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .bt-main {
    grid-template-columns: 1fr;
    padding-bottom: 9rem;
  }
  .bt-summary {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    top: auto;
    z-index: 40;
    border-radius: 0;
  }
  .bt-summary__inner {
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    border-bottom: none;
    box-shadow: 0 -8px 32px rgba(0,0,0,0.4);
    max-height: 40vh;
    overflow-y: auto;
  }
  .bt-grid--categories { grid-template-columns: repeat(2, 1fr); }
  .bt-grid--capacity { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .bt-header__inner { padding: 0 1.25rem; }
  .bt-header__progress { display: none; }
  .bt-main { padding: 1.75rem 1.25rem 9rem; }
  .bt-grid--categories { grid-template-columns: 1fr; }
  .bt-grid--roles { grid-template-columns: 1fr; }
  .bt-form__row { grid-template-columns: 1fr; }
  .bt-card--accelerator { flex-direction: column; align-items: flex-start; }
  .bt-accel__price { align-self: flex-end; }
  .bt-nav { flex-direction: column-reverse; gap: 0.75rem; }
  .bt-nav .bt-btn { width: 100%; }
}


