:root {
  --bg: #f8fafc;
  --panel: #ffffff;
  --panel-soft: #f1f5f9;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --text: #0f172a;
  --muted: #475569;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --ok: #15803d;
  --danger: #dc2626;
  --radius-lg: 22px;
  --radius-md: 14px;
  --shadow-lg: 0 30px 60px -30px rgba(15, 23, 42, 0.35);
  --shadow-md: 0 12px 30px -20px rgba(15, 23, 42, 0.35);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Inter", "Manrope", sans-serif;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  background-image:
    radial-gradient(circle at 95% 8%, rgba(37, 99, 235, 0.18), transparent 30%),
    radial-gradient(circle at 8% 48%, rgba(14, 165, 233, 0.12), transparent 26%);
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  top: 10px;
  left: 0;
  right: 0;
  z-index: 80;
}

.nav-shell {
  position: relative;
  height: 68px;
  border-radius: 20px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 30px -20px rgba(2, 6, 23, 0.45);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  display: block;
}

.brand strong {
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  color: #111827;
}

.brand small {
  display: block;
  margin-top: -2px;
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  color: #6b7280;
}

.nav-links {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-links a {
  text-decoration: none;
  color: #475569;
  font-size: 0.9rem;
  font-weight: 600;
}

.nav-links a:hover {
  color: #0f172a;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.trial-chip {
  border-radius: 999px;
  border: 1px solid rgba(37, 99, 235, 0.24);
  background: rgba(37, 99, 235, 0.08);
  color: #1d4ed8;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 7px 10px;
}

.onboarding-main {
  padding: 116px 0 44px;
  display: grid;
  gap: 16px;
}

.hero-shell {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 14px;
}

.hero-copy,
.hero-pricing,
.wizard-shell,
.result-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-md);
}

.hero-copy {
  padding: 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  border: 1px solid rgba(37, 99, 235, 0.24);
  color: #1d4ed8;
  background: rgba(37, 99, 235, 0.08);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 10px;
}

.hero-copy h1 {
  margin: 14px 0 0;
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.hero-copy p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.58;
}

.hero-pricing {
  padding: 20px;
  display: grid;
  align-content: start;
  gap: 10px;
}

.hero-pricing h2 {
  margin: 0;
  font-size: 1.1rem;
}

.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 12px;
  border: 1px solid var(--line);
  padding: 10px 12px;
  background: #fff;
}

.price-row span {
  color: #334155;
  font-size: 0.92rem;
}

.price-row strong {
  color: #0f172a;
}

.muted {
  margin: 4px 0 0;
  color: #64748b;
  font-size: 0.9rem;
}

.wizard-shell {
  padding: 22px;
}

.wizard-head {
  display: grid;
  gap: 10px;
}

.wizard-head h2 {
  margin: 0;
}

.wizard-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.progress-track {
  height: 8px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}

.progress-fill {
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--primary-dark) 0%, var(--primary) 100%);
  transition: width 0.2s ease;
}

.stepper {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 8px;
}

.stepper li {
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 8px;
  display: grid;
  gap: 4px;
  cursor: pointer;
}

.stepper li span {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.76rem;
  font-weight: 700;
}

.stepper li small {
  color: #475569;
  font-size: 0.77rem;
  font-weight: 700;
}

.stepper li.active,
.stepper li.done {
  border-color: rgba(37, 99, 235, 0.42);
  background: #eff6ff;
}

.stepper li.active span,
.stepper li.done span {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

#onboarding-form {
  margin-top: 12px;
  display: grid;
}

.step-panel {
  display: none;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: #fff;
  padding: 18px;
  gap: 12px;
}

.step-panel.active {
  display: grid;
}

.step-panel h3,
.step-panel h4 {
  margin: 0;
}

.step-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.plan-card {
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--panel-soft);
  padding: 14px;
  display: grid;
  gap: 8px;
}

.plan-card.active {
  border-color: rgba(37, 99, 235, 0.5);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

.plan-card .price {
  font-size: 1.55rem;
  font-weight: 800;
}

.plan-card small {
  color: #64748b;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

label {
  display: grid;
  gap: 6px;
  font-size: 0.84rem;
  color: #334155;
  font-weight: 600;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: #fff;
  color: var(--text);
  font: inherit;
  padding: 10px;
  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.days {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.days label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  padding: 7px 10px;
  font-size: 0.82rem;
  cursor: pointer;
}

.days input,
.checkbox-inline input {
  width: auto;
  margin: 0;
  accent-color: var(--primary);
}

.legend-grid,
.legend-team {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr auto;
  gap: 8px;
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 700;
}

.list,
.booking-config,
.custom-config {
  display: grid;
  gap: 8px;
}

.service-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr auto;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  background: #fff;
  align-items: end;
}

.team-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(120px, 1fr)) auto;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  background: #fff;
  align-items: end;
}

.field {
  display: grid;
  gap: 4px;
}

.field span {
  font-size: 0.78rem;
  color: #64748b;
}

.row-actions,
.team-actions {
  display: flex;
  align-items: end;
}

.booking-row {
  display: grid;
  grid-template-columns: minmax(140px, 2fr) 1fr 1fr;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 10px;
  align-items: center;
  background: #fff;
}

.booking-row.header {
  background: var(--panel-soft);
  font-weight: 700;
}

.checkbox-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: #334155;
}

.custom-field-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 10px;
  align-items: center;
  background: #fff;
}

.review-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel-soft);
  padding: 12px;
  white-space: pre-wrap;
  font-size: 0.88rem;
  line-height: 1.5;
}

.wizard-nav {
  margin-top: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.result-card {
  display: none;
  gap: 10px;
  padding: 22px;
}

.result-card.show {
  display: grid;
}

pre {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fafc;
  padding: 12px;
  white-space: pre-wrap;
  line-height: 1.45;
  font-size: 0.84rem;
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.btn,
button {
  border: 1px solid transparent;
  border-radius: 11px;
  padding: 10px 14px;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.16s ease;
}

.btn-primary {
  background: linear-gradient(180deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-color: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  transform: translateY(-1px);
}

.btn-light,
button.secondary {
  background: #fff;
  border-color: var(--line-strong);
  color: #1e293b;
}

.btn-light:hover,
button.secondary:hover {
  border-color: #94a3b8;
}

.status {
  min-height: 20px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.status.ok {
  color: var(--ok);
  font-weight: 700;
}

.status.error {
  color: var(--danger);
  font-weight: 700;
}

.hidden {
  display: none !important;
}

button:disabled,
.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

@media (max-width: 1100px) {
  .hero-shell {
    grid-template-columns: 1fr;
  }

  .stepper {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .site-header {
    top: 0;
  }

  .nav-shell {
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }

  .nav-links {
    display: none;
  }

  .service-row,
  .booking-row,
  .custom-field-row,
  .legend-grid,
  .legend-team {
    grid-template-columns: 1fr;
  }

  .team-row {
    grid-template-columns: 1fr 1fr;
  }

  .team-actions {
    grid-column: 1 / -1;
  }
}

@media (max-width: 700px) {
  .onboarding-main {
    padding-top: 86px;
  }

  .nav-actions .trial-chip {
    display: none;
  }

  .stepper {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .plan-grid {
    grid-template-columns: 1fr;
  }
}
