.pilot-intro {
  max-width: 780px;
}

.pilot-progress {
  margin-bottom: 18px;
}

.pilot-progress-bar {
  width: 100%;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,.07);
}

.pilot-progress-bar span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #b56cff, #f28ce7);
  transition: width .3s ease;
}

.pilot-progress p {
  margin: 12px 0 0;
  opacity: .7;
  font-size: .86rem;
}

.pilot-step {
  display: grid;
  grid-template-columns: 58px minmax(0,1fr);
  gap: 18px;
  margin-bottom: 18px;
}

.pilot-step-number {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(218,150,255,.25);
  border-radius: 14px;
  background: rgba(165,91,205,.1);
  font-weight: 700;
}

.pilot-step-body h2 {
  margin-top: 4px;
}

.pilot-step-body > p:not(.eyebrow) {
  max-width: 760px;
  line-height: 1.65;
  opacity: .76;
}

.pilot-objective-form {
  max-width: 760px;
  margin-top: 24px;
}

.pilot-evidence-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.pilot-next-steps {
  max-width: 780px;
  margin-top: 22px;
  padding: 20px;
  border: 1px solid rgba(187,118,255,.2);
  border-radius: 16px;
  background: rgba(116,57,147,.1);
}

.pilot-next-steps p {
  line-height: 1.6;
  opacity: .78;
}

.pilot-data-note {
  max-width: 820px;
  margin: 28px 0;
  font-size: .82rem;
  line-height: 1.6;
  opacity: .62;
}

@media (max-width: 680px) {
  .pilot-step {
    grid-template-columns: 1fr;
  }
}

/* Guided Pilot — Aethelis workspace visual treatment */

body.workspace-body {
  background:
    radial-gradient(circle at 76% 8%, rgba(180, 84, 224, .12), transparent 32%),
    radial-gradient(circle at 18% 82%, rgba(106, 55, 176, .09), transparent 34%),
    #09070e;
}

.pilot-intro {
  color: rgba(245, 235, 250, .74);
}

.pilot-progress.panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(219, 147, 255, .16);
  background:
    linear-gradient(
      135deg,
      rgba(50, 27, 62, .72),
      rgba(17, 12, 24, .86)
    );
}

.pilot-progress.panel::before {
  content: "";
  position: absolute;
  width: 190px;
  height: 190px;
  right: -75px;
  top: -120px;
  border-radius: 50%;
  background: rgba(215, 118, 255, .08);
  filter: blur(8px);
  pointer-events: none;
}

.pilot-progress-bar {
  position: relative;
  height: 9px;
  border: 1px solid rgba(255,255,255,.04);
  background: rgba(255,255,255,.055);
}

.pilot-progress-bar span {
  box-shadow:
    0 0 14px rgba(207, 110, 255, .35),
    0 0 28px rgba(242, 140, 231, .15);
}

.pilot-step.panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(217, 143, 255, .14);
  background:
    linear-gradient(
      145deg,
      rgba(47, 28, 59, .54),
      rgba(17, 12, 23, .82)
    );
  box-shadow:
    inset 0 1px rgba(255,255,255,.025),
    0 18px 45px rgba(0,0,0,.12);
  transition:
    border-color .2s ease,
    transform .2s ease,
    box-shadow .2s ease;
}

.pilot-step.panel:hover {
  border-color: rgba(220, 147, 255, .26);
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px rgba(255,255,255,.035),
    0 20px 50px rgba(0,0,0,.16);
}

.pilot-step-number {
  position: relative;
  color: #f2dfff;
  border-color: rgba(222, 153, 255, .25);
  background:
    linear-gradient(
      145deg,
      rgba(174, 89, 218, .18),
      rgba(111, 58, 155, .1)
    );
  box-shadow:
    inset 0 0 18px rgba(205, 117, 255, .06),
    0 0 18px rgba(185, 92, 230, .06);
}

.pilot-step-body .eyebrow {
  color: #dba8f5;
  letter-spacing: .11em;
}

.pilot-step-body h2 {
  color: #fff;
  font-size: clamp(1.35rem, 2.5vw, 1.8rem);
}

.pilot-step-body > p:not(.eyebrow) {
  color: rgba(245, 235, 250, .72);
}

.pilot-evidence-actions .button {
  min-height: 42px;
}

.pilot-next-steps {
  border-color: rgba(218, 143, 255, .24);
  background:
    linear-gradient(
      135deg,
      rgba(105, 52, 132, .2),
      rgba(39, 22, 49, .28)
    );
  box-shadow: inset 0 1px rgba(255,255,255,.025);
}

.pilot-next-steps strong {
  color: #f0d9ff;
}

.pilot-data-note {
  padding: 16px 18px;
  border-left: 2px solid rgba(211, 132, 249, .3);
  color: rgba(226, 210, 234, .65);
}

#pilot-state-pill {
  border-color: rgba(218, 142, 255, .22);
  background: rgba(138, 69, 170, .12);
  color: #efd7fb;
}

#pilot-complete:disabled {
  opacity: .42;
  cursor: not-allowed;
}

@media (max-width: 680px) {
  .pilot-step.panel {
    gap: 12px;
  }

  .pilot-step-number {
    width: 42px;
    height: 42px;
  }

  .pilot-evidence-actions {
    align-items: stretch;
  }

  .pilot-evidence-actions .button {
    width: 100%;
    justify-content: center;
  }
}

/* Guided Pilot primary CTA */
#pilot-save-objective {
  width: fit-content;
  min-height: 48px;
  margin-top: 6px;
  padding: 0 22px;
  border: 1px solid rgba(232, 170, 255, .34);
  border-radius: 10px;
  background:
    linear-gradient(
      135deg,
      rgba(151, 78, 214, .96),
      rgba(201, 92, 218, .94)
    );
  color: #fff;
  font-weight: 700;
  letter-spacing: .01em;
  box-shadow:
    0 8px 26px rgba(153, 69, 205, .22),
    inset 0 1px rgba(255, 255, 255, .16);
  transition:
    transform .18s ease,
    box-shadow .18s ease,
    border-color .18s ease;
}

#pilot-save-objective:hover {
  transform: translateY(-1px);
  border-color: rgba(242, 195, 255, .55);
  box-shadow:
    0 11px 30px rgba(168, 72, 215, .3),
    0 0 20px rgba(205, 105, 235, .12),
    inset 0 1px rgba(255, 255, 255, .18);
}

#pilot-save-objective:active {
  transform: translateY(0);
}

#pilot-save-objective:focus-visible {
  outline: 2px solid #dca3ff;
  outline-offset: 3px;
}

@media (max-width: 680px) {
  #pilot-save-objective {
    width: 100%;
    justify-content: center;
  }
}

/* Step 04 — Complete Guided Evaluation CTA */
button#pilot-complete.button {
  appearance: none;
  -webkit-appearance: none;
  background: linear-gradient(135deg, #8f5cff 0%, #c85bd8 100%) !important;
  background-color: #8f5cff !important;
  color: #ffffff !important;
  border: 1px solid rgba(231, 174, 255, 0.55) !important;
  border-radius: 10px !important;
  min-height: 48px;
  padding: 0 22px;
  font-weight: 700;
  box-shadow:
    0 9px 25px rgba(143, 92, 255, 0.25),
    inset 0 1px 0 rgba(255,255,255,0.18) !important;
  transition:
    transform .18s ease,
    box-shadow .18s ease,
    border-color .18s ease;
}

button#pilot-complete.button:hover:not(:disabled) {
  background: linear-gradient(135deg, #9d6cff 0%, #d46be2 100%) !important;
  color: #ffffff !important;
  border-color: rgba(242, 198, 255, 0.72) !important;
  transform: translateY(-1px);
  box-shadow:
    0 12px 30px rgba(143, 92, 255, 0.32),
    0 0 22px rgba(200, 91, 216, 0.16) !important;
}

button#pilot-complete.button:active:not(:disabled) {
  transform: translateY(0);
}

button#pilot-complete.button:focus-visible {
  outline: 2px solid #e2b3ff !important;
  outline-offset: 3px;
}

button#pilot-complete.button:disabled {
  background: linear-gradient(
    135deg,
    rgba(143, 92, 255, 0.35),
    rgba(200, 91, 216, 0.30)
  ) !important;
  color: rgba(255,255,255,0.55) !important;
  border-color: rgba(231,174,255,0.16) !important;
  box-shadow: none !important;
  cursor: not-allowed;
}

@media (max-width: 680px) {
  button#pilot-complete.button {
    width: 100%;
    justify-content: center;
  }
}
