/* ============================================
   Vexo — Client Onboarding
   ============================================ */

:root {
  --bg:        #0A0A0A;
  --bg-alt:    #0F0F0F;
  --surface:   #141414;
  --surface-2: #1A1A1A;
  --line:      #232323;
  --line-2:    #2A2A2A;
  --text:      #FAFAFA;
  --text-dim:  #888888;
  --text-dim2: #5A5A5A;
  --accent:    #00FF88;
  --accent-soft: rgba(0, 255, 136, .12);

  --font-display: 'Space Grotesk', -apple-system, sans-serif;
  --font-body:    'Inter', -apple-system, sans-serif;

  --radius:    12px;
  --radius-lg: 18px;

  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
}
/* Ambient atmosphere — subtle grid + green glow at the top */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
body::after {
  content: '';
  position: fixed;
  top: -300px;
  left: 50%;
  width: 900px;
  height: 700px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(0,255,136,.08), transparent 60%);
  pointer-events: none;
  filter: blur(60px);
  z-index: 0;
}
.ob-head, .ob-progress, .ob-main { position: relative; z-index: 1; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, select, textarea { font: inherit; }
ul { list-style: none; }

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .55; transform: scale(.85); }
}

/* ===== Header ===== */
.ob-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 36px;
  border-bottom: 1px solid var(--line);
  background: rgba(10,10,10,.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 50;
}
.ob-logo {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.04em;
}
.ob-logo__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 14px var(--accent);
  animation: pulse 2.4s ease-in-out infinite;
}
.ob-head__label {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

/* ===== Progress bar ===== */
.ob-progress {
  height: 3px;
  background: var(--line);
  width: 100%;
  position: sticky;
  top: 73px;
  z-index: 49;
}
.ob-progress__bar {
  height: 100%;
  background: var(--accent);
  width: 16.66%;
  transition: width .5s var(--ease);
  box-shadow: 0 0 14px var(--accent);
}

/* ===== Main ===== */
.ob-main {
  flex: 1;
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  padding: 60px 36px 120px;
}

.ob-form {
  display: block;
}

/* ===== Step ===== */
.step {
  animation: stepIn .55s var(--ease);
}
.step > * {
  animation: stepFieldIn .6s var(--ease) both;
}
.step > *:nth-child(1) { animation-delay: 0ms; }
.step > *:nth-child(2) { animation-delay: 60ms; }
.step > *:nth-child(3) { animation-delay: 120ms; }
.step > *:nth-child(4) { animation-delay: 180ms; }
.step > *:nth-child(5) { animation-delay: 240ms; }
.step > *:nth-child(6) { animation-delay: 300ms; }
.step > *:nth-child(7) { animation-delay: 360ms; }
.step > *:nth-child(n+8) { animation-delay: 420ms; }
@keyframes stepIn {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes stepFieldIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.step__head {
  margin-bottom: 56px;
}
.step__count {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 26px;
}
.step__count .step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  padding: 4px 10px;
  border: 1px solid rgba(0,255,136,.3);
  background: var(--accent-soft);
  border-radius: 6px;
  font-weight: 600;
}
.step__count::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}
.step__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin-bottom: 16px;
}
.step__sub {
  font-size: 17px;
  color: var(--text-dim);
  max-width: 620px;
}

/* ===== Grid + Fields ===== */
.grid {
  display: grid;
  gap: 22px;
}
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 22px;
}
.field--full { grid-column: 1 / -1; }
.field[hidden] { display: none; }

.field label {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.005em;
}
.field .opt {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 12px;
  color: var(--text-dim2);
  margin-left: 4px;
}
.field input,
.field select,
.field textarea {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
  color: var(--text);
  font-size: 15px;
  transition: all .25s var(--ease);
  width: 100%;
}
.field textarea { resize: vertical; font-family: var(--font-body); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(0,255,136,.03);
}
.field input.error,
.field select.error,
.field textarea.error {
  border-color: #ff4444;
  background: rgba(255, 68, 68, .04);
}

/* Error banner per step */
.step-error {
  background: rgba(255, 68, 68, .08);
  border: 1px solid rgba(255, 68, 68, .4);
  color: #ff8585;
  padding: 14px 18px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.55;
  margin-bottom: 32px;
  animation: stepIn .3s var(--ease);
}

/* Required asterisk on labels */
.field label.req::after {
  content: ' *';
  color: var(--accent);
  font-weight: 600;
}

.select-wrap { position: relative; }
.select-wrap select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
}
.select-wrap svg {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--text-dim);
}

/* ===== Checks / Radios ===== */
.checks {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}
.chk {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  cursor: pointer;
  font-size: 14px;
  transition: all .2s var(--ease);
  user-select: none;
}
.chk input { display: none; }
.chk:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}

.radios { display: flex; gap: 12px; flex-wrap: wrap; }
.radios--col { flex-direction: column; }
.radio {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  cursor: pointer;
  font-size: 14px;
  transition: all .25s var(--ease);
  min-width: 120px;
}
.radios--col .radio {
  flex: none;
  justify-content: flex-start;
  padding: 14px 18px;
}
.radio input { display: none; }
.radio:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}

/* ===== Hint / divider ===== */
.hint {
  font-size: 13px;
  color: var(--text-dim2);
  margin-top: 12px;
}
.hint--req {
  color: var(--accent);
  margin-top: 0;
  margin-bottom: 14px;
  font-family: var(--font-display);
  font-weight: 500;
}
.hint--req::before {
  content: '* ';
  font-weight: 700;
}
.block-divider {
  height: 1px;
  background: var(--line);
  margin: 36px 0;
}

/* ===== Services list ===== */
.services-list { display: flex; flex-direction: column; gap: 14px; margin-bottom: 14px; }
.service-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px;
  position: relative;
  transition: border-color .3s var(--ease);
}
.service-item:hover { border-color: var(--line-2); }
.service-item:focus-within { border-color: rgba(0,255,136,.35); }
.service-item__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.service-item__num {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
.service-item__remove {
  font-family: var(--font-display);
  font-size: 12px;
  color: var(--text-dim);
  padding: 4px 10px;
  border-radius: 6px;
  transition: all .2s var(--ease);
}
.service-item__remove:hover { color: #ff6b6b; background: rgba(255,107,107,.08); }
.service-item .grid { gap: 14px; }
.service-item .field { margin-bottom: 0; }

/* ===== Team list ===== */
.team-list { display: flex; flex-direction: column; gap: 14px; margin-bottom: 14px; }
.team-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px;
  transition: border-color .3s var(--ease);
}
.team-item:hover { border-color: var(--line-2); }
.team-item:focus-within { border-color: rgba(0,255,136,.35); }
.team-item__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.team-item__num {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
.team-item__remove {
  font-family: var(--font-display);
  font-size: 12px;
  color: var(--text-dim);
  padding: 4px 10px;
  border-radius: 6px;
}
.team-item__remove:hover { color: #ff6b6b; background: rgba(255,107,107,.08); }
.team-item .field { margin-bottom: 0; }

/* ===== Add button ===== */
.btn-add {
  width: 100%;
  padding: 16px;
  border: 1px dashed var(--line-2);
  border-radius: var(--radius-lg);
  background: transparent;
  color: var(--text-dim);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  transition: all .25s var(--ease);
}
.btn-add:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

/* ===== Hours table ===== */
.hours { display: flex; flex-direction: column; gap: 10px; }
.hours__row {
  display: grid;
  grid-template-columns: 110px 1fr 1fr 110px;
  gap: 14px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 16px;
}
.hours__day {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
}
.hours__time input[type="time"] {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--text);
  font-size: 14px;
  font-family: var(--font-body);
  color-scheme: dark;
}
.hours__closed {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-dim);
  cursor: pointer;
}
.hours__closed input { accent-color: var(--accent); }
.hours__row.is-closed .hours__time input { opacity: .35; pointer-events: none; }

/* ===== Color input ===== */
.color-input {
  display: flex;
  gap: 10px;
  align-items: center;
}
.color-input input[type="color"] {
  width: 50px;
  height: 50px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  cursor: pointer;
}
.color-input input[type="text"] { flex: 1; }

/* ===== File input ===== */
.file-input {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.file-input input[type="file"] { display: none; }
.file-input__btn {
  display: inline-flex;
  align-items: center;
  padding: 12px 22px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all .25s var(--ease);
}
.file-input__btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.file-input__name {
  font-size: 13px;
  color: var(--text-dim);
}
.logo-preview {
  margin-top: 14px;
  padding: 18px;
  background: var(--surface);
  border: 1px dashed var(--line-2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: 180px;
}
.logo-preview img {
  max-width: 100%;
  max-height: 140px;
  display: block;
  object-fit: contain;
}

/* ===== Nav row ===== */
.nav-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 60px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.autosave {
  flex: 1;
  text-align: center;
  font-size: 12px;
  color: var(--text-dim2);
  font-family: var(--font-display);
  letter-spacing: 0.04em;
}
.autosave.is-saving { color: var(--accent); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.01em;
  border-radius: 999px;
  transition: all .25s var(--ease);
  white-space: nowrap;
  border: 1px solid transparent;
}
.btn--primary { background: var(--accent); color: #0A0A0A; }
.btn--primary:hover {
  background: #1aff97;
  transform: translateY(-1px);
  box-shadow: 0 10px 30px -10px rgba(0,255,136,.5);
}
.btn--primary:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-2);
}
.btn--ghost:hover {
  border-color: var(--text);
  background: rgba(255,255,255,.04);
}
.btn--lg { padding: 16px 28px; font-size: 15px; }

/* ===== Success ===== */
.success {
  text-align: center;
  padding: 40px 0;
  animation: stepIn .5s var(--ease);
}
.success__icon {
  width: 88px;
  height: 88px;
  margin: 0 auto 32px;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 60px -10px var(--accent);
}
.success__title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 600;
  letter-spacing: -0.035em;
  margin-bottom: 16px;
}
.success__sub {
  color: var(--text-dim);
  font-size: 17px;
  max-width: 540px;
  margin: 0 auto 50px;
}
.success__steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 50px;
  text-align: left;
}
.success__step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
}
.success__num {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.18em;
  padding: 4px 10px;
  border: 1px solid rgba(0,255,136,.3);
  background: var(--accent-soft);
  border-radius: 6px;
  margin-bottom: 16px;
}
.success__step h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.success__step p {
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.55;
}
.success__contact {
  color: var(--text-dim);
  font-size: 14px;
  margin-bottom: 30px;
}
.success__contact a {
  color: var(--accent);
  font-weight: 500;
}

/* ===== Landing (no-package) ===== */
.landing {
  text-align: center;
  padding: 60px 20px 80px;
  max-width: 580px;
  margin: 0 auto;
  animation: stepIn .6s var(--ease);
}
.landing__mark {
  width: 78px;
  height: 78px;
  margin: 0 auto 32px;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 1px solid rgba(0,255,136,.3);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 60px -10px var(--accent);
}
.landing__dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 16px var(--accent);
  animation: pulse 2.4s ease-in-out infinite;
}
.landing__eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 11px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-weight: 600;
  padding: 5px 12px;
  border: 1px solid rgba(0,255,136,.3);
  background: var(--accent-soft);
  border-radius: 6px;
  margin-bottom: 28px;
}
.landing__title {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 60px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.0;
  margin-bottom: 22px;
}
.landing__sub {
  font-size: 17px;
  color: var(--text-dim);
  line-height: 1.55;
  margin-bottom: 38px;
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== Responsive ===== */
@media (max-width: 720px) {
  .grid--3 { grid-template-columns: 1fr; }
  .ob-head { padding: 18px 22px; }
  .ob-head__label { display: none; }
  .ob-progress { top: 65px; }
  .ob-main { padding: 40px 22px 100px; }
  .grid--2 { grid-template-columns: 1fr; }
  .checks { grid-template-columns: 1fr; }
  .step__head { margin-bottom: 36px; }
  .hours__row {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .hours__day { grid-column: 1 / -1; font-size: 15px; }
  .hours__closed { grid-column: 1 / -1; justify-content: flex-end; }
  .nav-row { flex-wrap: wrap; gap: 12px; }
  .nav-row .btn { flex: 1; min-width: 0; }
  .autosave { width: 100%; flex: none; order: -1; margin-bottom: 4px; }
  .success__steps { grid-template-columns: 1fr; }
}
