:root {
  color-scheme: light;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ink: #10212b;
  --muted: #637984;
  --line: #cde8e5;
  --teal: #19bdb4;
  --teal-deep: #087a73;
  --coral: #ef7d45;
  --paper: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  background:
    linear-gradient(135deg, rgba(25, 189, 180, 0.18), transparent 34%),
    linear-gradient(225deg, rgba(239, 125, 69, 0.14), transparent 30%),
    #f7fffd;
  color: var(--ink);
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

.onboard-header {
  align-items: center;
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  padding: 16px 28px;
  position: sticky;
  top: 0;
  z-index: 2;
  backdrop-filter: blur(12px);
}

.brand {
  align-items: center;
  display: flex;
  font-size: 22px;
  font-weight: 900;
  gap: 10px;
}

.brand img {
  border-radius: 50%;
  height: 48px;
  object-fit: cover;
  width: 48px;
}

.onboard-nav {
  display: flex;
  gap: 16px;
}

.onboard-nav a,
.onboard-header > a:last-child {
  color: var(--muted);
  font-size: 14px;
  font-weight: 900;
}

.onboard-shell {
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 0.8fr) minmax(420px, 1fr);
  margin: 0 auto;
  max-width: 1120px;
  min-height: calc(100vh - 81px);
  padding: 54px 28px;
}

.onboard-copy h1 {
  font-size: clamp(38px, 5vw, 64px);
  letter-spacing: 0;
  line-height: 1;
  margin: 0 0 18px;
}

.onboard-copy p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
  margin: 0;
  max-width: 560px;
}

.progress-list {
  display: grid;
  gap: 10px;
  margin-top: 30px;
  max-width: 360px;
}

.progress-list span {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-weight: 900;
  padding: 12px;
}

.progress-list span.active {
  background: linear-gradient(135deg, var(--teal), var(--teal-deep));
  color: #ffffff;
}

.wizard-card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 22px 50px rgba(16, 33, 43, 0.12);
  padding: 22px;
}

.wizard-step {
  border: 0;
  display: none;
  margin: 0;
  padding: 0;
}

.wizard-step.active {
  display: grid;
  gap: 14px;
}

legend {
  font-size: 28px;
  font-weight: 900;
  margin-bottom: 14px;
  padding: 0;
}

legend small {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

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

label {
  color: #30424f;
  display: grid;
  font-size: 13px;
  font-weight: 900;
  gap: 7px;
}

input,
textarea,
select {
  background: #ffffff;
  border: 1px solid #bfdad7;
  border-radius: 6px;
  color: var(--ink);
  font: inherit;
  min-height: 44px;
  padding: 10px;
  width: 100%;
}

textarea {
  min-height: 116px;
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(25, 189, 180, 0.18);
  outline: 0;
}

.helper {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
}

.checks,
.plan-picker,
.access-card {
  display: grid;
  gap: 10px;
}

.checks label,
.plan-picker label {
  align-items: center;
  background: #f4fbfa;
  border: 1px solid #d9eeeb;
  border-radius: 8px;
  display: flex;
  gap: 10px;
  padding: 12px;
}

.checks input,
.plan-picker input {
  width: auto;
}

.summary-card {
  background: #10212b;
  border-radius: 8px;
  color: #e9fbf6;
  line-height: 1.55;
  min-height: 120px;
  padding: 16px;
}

.summary-card code {
  color: #8df2e8;
  font-weight: 900;
}

.result-card {
  background: linear-gradient(135deg, #10212b, #0b4546);
}

.access-card {
  background: linear-gradient(135deg, #eafffb, #fff7e8);
  border: 1px solid #bfe9e4;
  border-radius: 8px;
  color: var(--ink);
  line-height: 1.45;
  padding: 14px;
}

.access-card b,
.access-card span {
  display: block;
}

.access-card b {
  font-size: 16px;
}

.access-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.result-link {
  background: linear-gradient(135deg, var(--teal), var(--teal-deep));
  border-radius: 8px;
  color: #ffffff;
  display: inline-flex;
  font-weight: 900;
  margin-top: 8px;
  padding: 12px 14px;
}

.result-steps {
  margin: 8px 0 12px;
  padding-left: 22px;
}

.result-steps li {
  margin: 6px 0;
}

.wizard-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

button {
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  min-height: 44px;
  padding: 0 18px;
}

#prevStep {
  background: #ffffff;
  border: 1px solid var(--line);
  color: var(--ink);
}

#nextStep,
#finishSetup {
  background: linear-gradient(135deg, var(--teal), var(--teal-deep));
  box-shadow: 0 14px 26px rgba(8, 122, 115, 0.22);
  color: #ffffff;
}

#finishSetup {
  display: none;
}

@media (max-width: 850px) {
  .onboard-shell,
  .grid {
    grid-template-columns: 1fr;
  }

  .onboard-shell {
    min-height: auto;
    padding: 34px 16px;
  }

  .onboard-header {
    padding: 14px 16px;
  }

  .onboard-nav {
    gap: 10px;
  }

  .onboard-nav a {
    font-size: 12px;
  }
}

@media (max-width: 520px) {
  .onboard-header {
    align-items: flex-start;
    gap: 12px;
  }

  .brand span {
    display: none;
  }

  .wizard-card {
    padding: 16px;
  }

  .wizard-actions button {
    flex: 1 1 120px;
  }
}
