/* Home nine steps (#pipeline): a rail that fills with scroll (--progress from home-steps.js, 1 without script), the active
   step as a blue card, gates on 03 and 09, the loop on 07 and a display-only panel of the five approval gates.
   Layout applies in both themes; [data-theme="dark"] rules change colours only. */
html.da-home #pipeline .phead {
  max-width: 44em;
  margin-block-end: 44px;
}
html.da-home #pipeline .da-pipe {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 64px;
  align-items: start;
}
html.da-home #pipeline .da-rail {
  --g: 74px;
  --dot: 36px;
  --rail: 2px;
  --top: 12px;
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
}
html.da-home #pipeline .da-rail::before,
html.da-home #pipeline .da-rail::after {
  content: "";
  position: absolute;
  inset-inline-start: calc((var(--dot) - var(--rail)) / 2);
  inset-block: calc(var(--top) + var(--dot) / 2) 20px;
  width: var(--rail);
}
html.da-home #pipeline .da-rail::before {
  background: var(--line-2);
}
html.da-home #pipeline .da-rail::after {
  background: var(--brand);
  transform: scaleY(var(--progress, 1));
  transform-origin: top;
}
html.da-home #pipeline .da-step {
  --inv-bg: radial-gradient(70% 90% at 100% 0%, rgba(0, 197, 232, 0.45), transparent 70%),
    linear-gradient(150deg, #2a7fe6 0%, #1f6fd1 45%, #0e3f98 100%);
  position: relative;
  z-index: 1;
  isolation: isolate;
  padding-inline-start: var(--g);
  padding-block: 18px 26px;
}
html.da-home #pipeline .da-step::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset-block: 2px 8px;
  inset-inline: calc(var(--g) - 20px) -20px;
  border-radius: 18px;
  background: var(--inv-bg);
  box-shadow: 0 24px 48px -24px rgba(31, 111, 209, 0.6);
  opacity: 0;
  transform: scale(0.98);
  transition:
    opacity 0.3s,
    transform 0.3s;
}
html.da-home #pipeline .da-step.here::before {
  opacity: 1;
  transform: none;
}
html.da-home #pipeline .da-sn {
  position: absolute;
  inset-inline-start: 0;
  inset-block-start: var(--top);
  z-index: 1;
  display: grid;
  place-items: center;
  width: var(--dot);
  height: var(--dot);
  border-radius: 50%;
  background: var(--bg-2);
  border: 1.5px solid var(--line-2);
  color: var(--muted);
  font: 500 13px/1 var(--mono);
  transition:
    border-color 0.25s,
    color 0.25s,
    background 0.25s;
}
html.da-home #pipeline .da-step.on .da-sn {
  border-color: var(--brand);
  color: var(--brand-ink);
}
html.da-home #pipeline .da-step.is-gate .da-sn {
  border-color: var(--gate);
  color: var(--gate-ink);
}
html.da-home #pipeline .da-step.is-gate.cleared .da-sn {
  border-color: var(--gate-solid);
  background: var(--gate-solid);
  color: var(--knob-on);
}
html.da-home #pipeline .da-step h3 {
  margin: 0;
  font-size: 19px;
  line-height: 1.3;
  transition: color 0.3s;
}
html.da-home #pipeline .da-step p {
  max-width: 36em;
  margin: 4px 0 0;
  font-size: 15.5px;
  transition: color 0.3s;
}
html.da-home #pipeline .da-step.here h3 {
  color: #fff;
}
html.da-home #pipeline .da-step.here p {
  color: rgba(255, 255, 255, 0.78);
}
html.da-home #pipeline .da-gate-state,
html.da-home #pipeline .da-gate-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-block-start: 10px;
  padding: 6px 10px;
  border-radius: 6px;
  background: var(--gate-soft);
  color: var(--gate-ink);
  font: 500 13px/1.2 var(--body);
}
html.da-home #pipeline .da-gate-state::before,
html.da-home #pipeline .da-gate-ghost::before {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}
/* home-steps.js stacks the live label on an invisible copy of the longer waiting label, so the step never changes height. */
html.da-home #pipeline .da-gate-slot {
  display: grid;
  margin-block-start: 10px;
}
html.da-home #pipeline .da-gate-slot > * {
  grid-area: 1 / 1;
  place-self: start;
  margin: 0;
}
html.da-home #pipeline .da-gate-ghost {
  visibility: hidden;
}
html.da-home #pipeline .da-step.is-gate.cleared .da-gate-state {
  background: var(--gate-solid);
  color: var(--knob-on);
}
html.da-home #pipeline .da-step.here .da-gate-state {
  background: rgba(0, 197, 232, 0.16);
  color: #00c5e8;
}
html.da-home #pipeline .da-step.here.cleared .da-gate-state {
  background: #00c5e8;
  color: #0a0a0b;
}
html.da-home.motion #pipeline .da-step.is-gate:not(.cleared) .da-gate-state::before {
  animation: da-clr 1.3s ease-in-out infinite;
}
@keyframes da-clr {
  50% {
    box-shadow: 0 0 0 5px rgba(0, 197, 232, 0.3);
  }
}
html.da-home #pipeline .da-loop {
  position: absolute;
  inset-inline-start: -30px;
  inset-block-start: -46px;
  width: 36px;
  height: 80px;
  overflow: visible;
  color: var(--brand);
}
html.da-home[dir="rtl"] #pipeline .da-loop {
  transform: scaleX(-1);
}
html.da-home #pipeline .da-loop-note {
  display: inline-block;
  margin-block-start: 8px;
  color: var(--brand-ink);
  font: 500 13px/1.2 var(--body);
}
html.da-home #pipeline .da-step.here .da-loop-note {
  color: #c9f6ff;
}

html.da-home #pipeline .da-gates-panel {
  padding: 28px;
  border: 1px solid var(--glass-line);
  border-block-start: 3px solid var(--gate);
  border-radius: 20px;
  background: var(--sheen), var(--glass);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  backdrop-filter: blur(20px) saturate(1.4);
  box-shadow: var(--glass-hi), 0 0 0 1px var(--glass-edge), var(--glass-sh);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  html.da-home #pipeline .da-gates-panel {
    background: var(--glass-fb);
  }
}
html.da-home #pipeline .da-gates-panel h3 {
  margin: 0;
  font-size: 18px;
}
html.da-home #pipeline .da-gates-panel > p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 15px;
}
html.da-home #pipeline .da-toggles {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}
html.da-home #pipeline .da-toggles li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 12px;
  border-block-start: 1px solid var(--line);
  color: var(--ink);
  font-size: 15px;
}
html.da-home #pipeline .da-toggles small {
  display: block;
  color: var(--muted);
  font-size: 13px;
}
html.da-home #pipeline .da-sw-state {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}
html.da-home #pipeline .da-sw-state.is-on {
  color: var(--gate-ink);
}
html.da-home #pipeline .da-sw {
  position: relative;
  flex: none;
  width: 38px;
  height: 22px;
  border-radius: 11px;
  background: var(--sw-off);
  box-shadow:
    inset 0 1px 2px rgba(0, 0, 0, 0.22),
    inset 0 -1px 0 rgba(255, 255, 255, 0.25);
}
html.da-home #pipeline .da-sw::after {
  content: "";
  position: absolute;
  inset-block-start: 3px;
  inset-inline-start: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(#fff, #e9eef5);
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.3),
    inset 0 -1px 0 rgba(0, 0, 0, 0.06);
}
html.da-home #pipeline .da-sw-state.is-on .da-sw {
  background: var(--gate);
}
html.da-home #pipeline .da-sw-state.is-on .da-sw::after {
  inset-inline-start: 19px;
}
html.da-home[data-theme="dark"] #pipeline .da-sw-state.is-on .da-sw::after {
  background: var(--knob-on);
}
html.da-home #pipeline .da-gp-note {
  margin: 12px 0 0;
  padding-block-start: 12px;
  border-block-start: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 1080px) {
  html.da-home #pipeline .da-pipe {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
}
@media (max-width: 767px) {
  html.da-home #pipeline .da-step {
    padding-inline-end: 24px;
  }
  html.da-home #pipeline .da-step::before {
    inset-inline-end: 4px;
  }
}
@media (max-width: 640px) {
  html.da-home #pipeline .da-rail {
    --g: 64px;
    --dot: 32px;
    margin-inline-start: 12px;
  }
  html.da-home #pipeline .da-loop {
    inset-inline-start: -28px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html.da-home #pipeline .da-step::before,
  html.da-home #pipeline .da-sn,
  html.da-home #pipeline .da-step h3,
  html.da-home #pipeline .da-step p {
    transition: none;
  }
  html.da-home #pipeline .da-gate-state::before {
    animation: none !important;
  }
}
html.da-home.is-lowfps #pipeline .da-gate-state::before {
  animation: none !important;
}
