/* Stream Orchestrator marketing page. Uses the site tokens. No new palette. */

#pg-stream-orchestrator { overflow-x: clip; }
.orc-hero h1, .orc-h2, .orc-detail h3, .orc-card h3, .orc-stream h3, .orc-exc h3, .orc-name {
  font-family: var(--display-font);
  font-weight: var(--display-weight);
  letter-spacing: var(--display-tracking);
}

.orc-hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, var(--surface), var(--bg) 78%);
  border-bottom: 1px solid var(--hairline);
}
.orc-hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, color-mix(in srgb, var(--text) 7%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in srgb, var(--text) 7%, transparent) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 68%);
  pointer-events: none;
}
.orc-hero-wrap {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(280px, .88fr);
  align-items: center;
  gap: 8px 28px;
}
.orc-net {
  width: 100%;
  max-width: 520px;
  height: auto;
  justify-self: end;
  overflow: visible;
  pointer-events: none;
}
.orc-net path,
.orc-net circle { fill: none; stroke: var(--text); vector-effect: non-scaling-stroke; }
.orc-net .orc-spoke { stroke-width: 1.6; opacity: .55; }
.orc-net .orc-ring-path { stroke-width: 2; opacity: .8; stroke-dasharray: 8 11; }
.orc-net .orc-orbit { stroke-width: 1.5; opacity: .55; stroke-dasharray: 4 8; }
.orc-net .orc-signal {
  stroke: var(--accent);
  stroke-width: 3.25;
  stroke-linecap: round;
  stroke-dasharray: 11 100;
  opacity: 0;
}
.orc-net .orc-dot { fill: var(--bg); stroke-width: 2; }
.orc-net .orc-lamp { fill: var(--accent); stroke: none; opacity: 0; }
.orc-net .orc-halo { stroke: color-mix(in srgb, var(--accent) 42%, transparent); stroke-width: 1.25; opacity: 0; }
.orc-net .orc-hub { fill: var(--accent); stroke: var(--accent); }
.orc-net .orc-hub-ring { stroke: var(--accent); stroke-width: 2; opacity: .7; transform-box: fill-box; transform-origin: center; }
.orc-net .orc-hub-label {
  fill: var(--accent);
  stroke: var(--bg);
  stroke-width: 8px;
  paint-order: stroke fill;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
}
.orc-net text {
  fill: var(--text);
  stroke: none;
  font-family: "Plus Jakarta Sans", var(--font-sans), sans-serif;
  font-size: 15px;
  font-weight: 600;
}
/* One 10s pass: Desk through Bill via the hub, Call at intake, authorization, and balance, then a quiet hold. */
.orc-hero.is-inview .orc-net .orc-signal-out { animation: orc-out 10s linear infinite; animation-delay: calc(var(--at) * 1s - 10s); }
.orc-hero.is-inview .orc-net .orc-signal-in { animation: orc-in 10s linear infinite; animation-delay: calc(var(--at) * 1s - 10s); }
.orc-hero.is-inview .orc-net .orc-signal-call { animation: orc-call-hop 10s linear infinite; }
.orc-hero.is-inview .orc-net .orc-hub-ring { animation: orc-coord 10s linear infinite; }
.orc-hero.is-inview .orc-net .orc-step[data-step="desk"] .orc-lamp,
.orc-hero.is-inview .orc-net .orc-step[data-step="desk"] .orc-halo { animation: orc-on-desk 10s linear infinite; }
.orc-hero.is-inview .orc-net .orc-step[data-step="verify"] .orc-lamp,
.orc-hero.is-inview .orc-net .orc-step[data-step="verify"] .orc-halo { animation: orc-on-verify 10s linear infinite; }
.orc-hero.is-inview .orc-net .orc-step[data-step="auth"] .orc-lamp,
.orc-hero.is-inview .orc-net .orc-step[data-step="auth"] .orc-halo { animation: orc-on-auth 10s linear infinite; }
.orc-hero.is-inview .orc-net .orc-step[data-step="code"] .orc-lamp,
.orc-hero.is-inview .orc-net .orc-step[data-step="code"] .orc-halo { animation: orc-on-code 10s linear infinite; }
.orc-hero.is-inview .orc-net .orc-step[data-step="claim"] .orc-lamp,
.orc-hero.is-inview .orc-net .orc-step[data-step="claim"] .orc-halo { animation: orc-on-claim 10s linear infinite; }
.orc-hero.is-inview .orc-net .orc-step[data-step="status"] .orc-lamp,
.orc-hero.is-inview .orc-net .orc-step[data-step="status"] .orc-halo { animation: orc-on-status 10s linear infinite; }
.orc-hero.is-inview .orc-net .orc-step[data-step="bill"] .orc-lamp,
.orc-hero.is-inview .orc-net .orc-step[data-step="bill"] .orc-halo { animation: orc-on-bill 10s linear infinite; }
.orc-hero.is-inview .orc-net .orc-step[data-step="call"] .orc-lamp,
.orc-hero.is-inview .orc-net .orc-step[data-step="call"] .orc-halo { animation: orc-on-call 10s linear infinite; }
.orc-hero-copy { position: relative; z-index: 1; max-width: 760px; min-width: 0; padding: 72px 0 64px; }
.orc-hero h1 { max-width: 16ch; font-size: clamp(36px, 5vw, 64px); line-height: 1.05; margin: 12px 0 18px; }
.orc-hero .sub { max-width: 62ch; font-size: 18px; line-height: 1.6; }
.orc-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  padding: 6px 10px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.orc-status i { color: var(--dot-info); font-size: 8px; }
.orc-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.orc-hero-note { margin-top: 18px; max-width: 62ch; color: var(--text-muted); font-size: 14px; line-height: 1.5; }

.orc-section { border-top: 1px solid var(--hairline); }
.orc-section--band { background: var(--surface); }
.orc-lead { max-width: 68ch; color: var(--text-muted); font-size: 17px; line-height: 1.6; }
.orc-h2 { font-size: clamp(28px, 3vw, 42px); line-height: 1.15; margin: 8px 0 14px; max-width: 20ch; }

.orc-panel {
  background: var(--surface-2);
  border: 1px solid var(--hairline);
  border-radius: 18px;
  padding: 22px;
}
.orc-toolbar { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.orc-chip, .orc-ctrl, .orc-pager button {
  min-height: 44px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  background: var(--bg);
  color: var(--text);
  font: 600 14px/1.2 inherit;
  cursor: pointer;
}
.orc-chip.is-on, .orc-chip[aria-checked="true"] {
  background: var(--button-bg);
  color: var(--button-text);
  border-color: var(--button-bg);
}
.orc-chip:focus-visible, .orc-ctrl:focus-visible, .orc-node:focus-visible, .orc-call:focus-visible, .orc-card:focus-visible, .orc-exc:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}
.orc-controls { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.orc-ctrl { border-radius: 10px; }
.orc-progress {
  flex: 1 1 180px;
  height: 8px;
  border-radius: 99px;
  background: color-mix(in srgb, var(--text) 10%, transparent);
  overflow: hidden;
}
.orc-progress > span { display: block; height: 100%; width: 0; background: var(--text); }
:root[data-theme="dark"] .orc-progress > span { background: var(--accent); }
.orc-count { margin: 8px 0 0; color: var(--text-muted); font-size: 13px; letter-spacing: .04em; text-transform: uppercase; font-weight: 600; }
.orc-path { margin: 12px 0 0; color: var(--text); font-size: 15px; line-height: 1.5; }

.orc-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(260px, .7fr); gap: 22px; margin-top: 18px; align-items: start; }
.orc-stage { position: relative; min-height: 520px; }
.orc-wires { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; z-index: 0; pointer-events: none; }
.orc-wires path { fill: none; stroke: var(--hairline); stroke-width: 1.75; vector-effect: non-scaling-stroke; }
.orc-wires path[data-branch] { opacity: 0; stroke-dasharray: 5 7; }
.orc-wires path.is-branch { opacity: 1; stroke: var(--dot-info); }
.orc-wires path.is-live { stroke: var(--text); stroke-width: 2.25; }
:root[data-theme="dark"] .orc-wires path.is-live,
:root[data-theme="dark"] .orc-wires path.is-branch { stroke: var(--accent); }
.orc-app:not(.is-paused):not(.is-reduced) .orc-wires path.is-live {
  stroke-dasharray: 7 9;
  animation: orc-dash 1.1s linear infinite;
}
.orc-packet {
  position: absolute;
  z-index: 1;
  width: 11px;
  height: 11px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: var(--text);
  left: 16%;
  top: 18%;
  opacity: 0;
  pointer-events: none;
}
:root[data-theme="dark"] .orc-packet { background: var(--accent); }
.orc-packet.is-on { opacity: 1; }
.orc-map {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-areas:
    "desk verify auth"
    "claim code care"
    "status bill close";
  gap: 36px 28px;
  min-height: 520px;
}
.orc-node {
  grid-area: var(--area);
  text-align: left;
  min-height: 108px;
  padding: 14px 14px 12px;
  border-radius: 16px;
  border: 1px solid var(--hairline);
  background: var(--surface-2);
  color: var(--text);
  cursor: pointer;
  box-shadow: 0 1px 0 color-mix(in srgb, var(--text) 4%, transparent);
}
.orc-node[data-stage="desk"] { --area: desk; }
.orc-node[data-stage="verify"] { --area: verify; }
.orc-node[data-stage="auth"] { --area: auth; }
.orc-node[data-stage="care"] { --area: care; }
.orc-node[data-stage="code"] { --area: code; }
.orc-node[data-stage="claim"] { --area: claim; }
.orc-node[data-stage="status"] { --area: status; }
.orc-node[data-stage="bill"] { --area: bill; }
.orc-node[data-stage="close"] { --area: close; }
.orc-node.is-active { border-color: var(--text); border-width: 2px; }
:root[data-theme="dark"] .orc-node.is-active { border-color: var(--accent); }
.orc-node.is-done { border-color: color-mix(in srgb, var(--dot-ok) 55%, var(--hairline)); }
.orc-node.is-skipped { opacity: .72; border-style: dashed; }
.orc-kicker { display: block; color: var(--text-muted); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.orc-kicker i { margin-right: 6px; }
.orc-name { display: block; margin-top: 6px; font-size: 18px; font-weight: 600; letter-spacing: -0.02em; }
.orc-role { display: block; margin-top: 2px; color: var(--text-muted); font-size: 14px; }
.orc-node-mark, .orc-skip { display: none; margin-top: 8px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.orc-node.is-done .orc-node-mark { display: inline-flex; align-items: center; gap: 6px; color: var(--dot-ok); }
.orc-node.is-skipped .orc-skip { display: block; color: var(--text-muted); }
.orc-node.is-milestone { background: var(--surface); }

.orc-call {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  width: 100%;
  margin-top: 18px;
  padding: 16px 18px;
  text-align: left;
  border-radius: 16px;
  border: 1px dashed var(--hairline);
  background: transparent;
  color: var(--text);
  cursor: pointer;
}
.orc-call.is-active { border-style: solid; border-color: var(--text); }
:root[data-theme="dark"] .orc-call.is-active { border-color: var(--accent); }
.orc-call i { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--hairline); }
.orc-call strong { display: block; font-size: 16px; }
.orc-call span { color: var(--text-muted); font-size: 14px; line-height: 1.45; }

.orc-detail { position: sticky; top: 92px; min-height: 240px; }
.orc-detail h3 { margin: 6px 0 10px; font-size: 28px; letter-spacing: -0.03em; }
.orc-detail p { margin: 0; color: var(--text); font-size: 16px; line-height: 1.6; }
.orc-detail .orc-kicker { margin-bottom: 4px; }
.orc-detail a { display: inline-flex; margin-top: 16px; font-weight: 600; color: var(--text); }
.orc-pager { display: none; gap: 8px; margin-top: 12px; }
.orc-pager button { flex: 1; }

.orc-steps, .orc-benefits, .orc-streams, .orc-exc-grid { display: grid; gap: 14px; margin-top: 28px; }
.orc-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.orc-card, .orc-exc, .orc-stream {
  display: block;
  padding: 20px;
  border-radius: 16px;
  border: 1px solid var(--hairline);
  background: var(--surface-2);
  color: inherit;
  text-decoration: none;
}
.orc-card h3, .orc-exc h3, .orc-stream h3 { margin: 8px 0; font-size: 20px; letter-spacing: -0.02em; }
.orc-card p, .orc-exc p, .orc-stream p { margin: 0; color: var(--text-muted); font-size: 15px; line-height: 1.55; }
.orc-num { font-variant-numeric: tabular-nums; color: var(--text-muted); font-size: 12px; font-weight: 700; letter-spacing: .12em; }
.orc-exc { width: 100%; text-align: left; cursor: pointer; font: inherit; color: inherit; }
.orc-exc.is-on, .orc-exc[aria-pressed="true"] { border-color: var(--text); }
:root[data-theme="dark"] .orc-exc.is-on { border-color: var(--accent); }
.orc-exc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.orc-benefits { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.orc-streams { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.orc-stream h3 { display: flex; align-items: center; gap: 8px; }
.orc-stream i { color: var(--text-muted); }

.orc-dash { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(240px, .6fr); gap: 18px; margin-top: 22px; }
.orc-dash-label { margin: 0 0 8px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); }
.orc-timeline { list-style: none; margin: 0; padding: 0; }
.orc-timeline li { display: grid; grid-template-columns: 16px 1fr; gap: 12px; padding: 0 0 14px; }
.orc-timeline li span { grid-column: 2; }
.orc-timeline li strong { display: block; font-size: 15px; }
.orc-timeline li em { display: block; margin-top: 2px; font-style: normal; color: var(--text-muted); font-size: 13px; }
.orc-timeline li i { grid-row: 1 / span 2; width: 12px; height: 12px; margin-top: 4px; border-radius: 50%; border: 2px solid var(--hairline); }
.orc-timeline li.is-done i { background: var(--dot-ok); border-color: var(--dot-ok); }
.orc-timeline li.is-now i { background: var(--dot-info); border-color: var(--dot-info); }
.orc-facts { display: grid; gap: 10px; }
.orc-facts div { padding-bottom: 10px; border-bottom: 1px solid var(--hairline); }
.orc-facts dt { color: var(--text-muted); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.orc-facts dd { margin: 4px 0 0; font-size: 15px; }

.orc-adapt { list-style: none; margin: 28px 0 0; padding: 0 0 0 18px; border-left: 2px solid var(--hairline); display: grid; gap: 10px; }
.orc-adapt li { position: relative; padding: 10px 14px; border: 1px solid var(--hairline); border-radius: 12px; background: var(--surface-2); font-size: 15px; }
.orc-adapt li::before { content: ""; position: absolute; left: -19px; top: 18px; width: 18px; height: 2px; background: var(--hairline); }
.orc-adapt li:nth-child(3n) { margin-left: 28px; }
.orc-adapt li:nth-child(3n)::before { width: 46px; left: -47px; }

.orc-close { text-align: center; }
.orc-close .orc-h2, .orc-close .orc-lead { margin-left: auto; margin-right: auto; }
.orc-close .orc-actions { justify-content: center; }

@keyframes orc-dash { to { stroke-dashoffset: -180; } }
@keyframes orc-out {
  0% { opacity: 1; stroke-dashoffset: 0; animation-timing-function: cubic-bezier(.45, 0, .2, 1); }
  4% { opacity: 1; stroke-dashoffset: -92; }
  4.8%, 100% { opacity: 0; stroke-dashoffset: -92; }
}
@keyframes orc-in {
  0% { opacity: 1; stroke-dashoffset: -92; animation-timing-function: cubic-bezier(.45, 0, .2, 1); }
  4% { opacity: 1; stroke-dashoffset: 0; }
  4.8%, 100% { opacity: 0; stroke-dashoffset: 0; }
}
@keyframes orc-call-hop {
  0%, 2.2% { opacity: 0; stroke-dashoffset: 0; }
  2.5% { opacity: 1; stroke-dashoffset: 0; animation-timing-function: cubic-bezier(.45, 0, .2, 1); }
  6.4% { opacity: 1; stroke-dashoffset: -92; }
  7.1%, 21.8% { opacity: 0; stroke-dashoffset: -92; }
  22.2% { opacity: 1; stroke-dashoffset: 0; animation-timing-function: cubic-bezier(.45, 0, .2, 1); }
  26.2% { opacity: 1; stroke-dashoffset: -92; }
  27%, 60.8% { opacity: 0; stroke-dashoffset: -92; }
  61.5% { opacity: 1; stroke-dashoffset: 0; animation-timing-function: cubic-bezier(.45, 0, .2, 1); }
  65.5% { opacity: 1; stroke-dashoffset: -92; }
  66.3%, 100% { opacity: 0; stroke-dashoffset: -92; }
}
@keyframes orc-coord {
  0%, 5.4% { transform: scale(1); opacity: .55; }
  6.6% { transform: scale(1.12); opacity: .95; }
  8.4%, 15.4% { transform: scale(1); opacity: .55; }
  16.6% { transform: scale(1.12); opacity: .95; }
  18.4%, 25.4% { transform: scale(1); opacity: .55; }
  26.6% { transform: scale(1.12); opacity: .95; }
  28.4%, 35.4% { transform: scale(1); opacity: .55; }
  36.6% { transform: scale(1.12); opacity: .95; }
  38.4%, 45.4% { transform: scale(1); opacity: .55; }
  46.6% { transform: scale(1.12); opacity: .95; }
  48.4%, 55.4% { transform: scale(1); opacity: .55; }
  56.6% { transform: scale(1.12); opacity: .95; }
  58.6%, 66% { transform: scale(1); opacity: .6; }
  70%, 82% { transform: scale(1.06); opacity: .85; }
  92%, 100% { transform: scale(1); opacity: .55; }
}
@keyframes orc-on-desk {
  0%, 66% { opacity: 1; }
  68%, 82% { opacity: .58; }
  91%, 100% { opacity: 0; }
}
@keyframes orc-on-verify {
  0%, 9.4% { opacity: 0; }
  10.4%, 66% { opacity: 1; }
  68%, 82% { opacity: .58; }
  91%, 100% { opacity: 0; }
}
@keyframes orc-on-auth {
  0%, 19.4% { opacity: 0; }
  20.4%, 66% { opacity: 1; }
  68%, 82% { opacity: .58; }
  91%, 100% { opacity: 0; }
}
@keyframes orc-on-code {
  0%, 29.4% { opacity: 0; }
  30.4%, 66% { opacity: 1; }
  68%, 82% { opacity: .58; }
  91%, 100% { opacity: 0; }
}
@keyframes orc-on-claim {
  0%, 39.4% { opacity: 0; }
  40.4%, 66% { opacity: 1; }
  68%, 82% { opacity: .58; }
  91%, 100% { opacity: 0; }
}
@keyframes orc-on-status {
  0%, 49.4% { opacity: 0; }
  50.4%, 66% { opacity: 1; }
  68%, 82% { opacity: .58; }
  91%, 100% { opacity: 0; }
}
@keyframes orc-on-bill {
  0%, 59.4% { opacity: 0; }
  60.4%, 66% { opacity: 1; }
  68%, 82% { opacity: .58; }
  91%, 100% { opacity: 0; }
}
@keyframes orc-on-call {
  0%, 2.2% { opacity: 0; }
  3%, 6.6% { opacity: 1; }
  7.6%, 21.6% { opacity: 0; }
  22.4%, 26.4% { opacity: 1; }
  27.4%, 60.8% { opacity: 0; }
  61.8%, 66% { opacity: 1; }
  68%, 82% { opacity: .58; }
  91%, 100% { opacity: 0; }
}

@media (max-width: 1023px) {
  .orc-hero-wrap { grid-template-columns: 1fr; }
  .orc-net { max-width: 440px; margin: 0 auto 28px; justify-self: center; }
  .orc-hero h1 { max-width: none; }
  .orc-layout, .orc-dash, .orc-steps, .orc-exc-grid, .orc-benefits, .orc-streams { grid-template-columns: 1fr 1fr; }
  .orc-stage, .orc-map { min-height: 0; }
  .orc-wires, .orc-packet { display: none; }
  .orc-map { display: flex; flex-direction: column; gap: 8px; }
  .orc-node { width: 100%; min-height: 64px; }
  .orc-detail { position: static; order: -1; min-height: 180px; }
  .orc-pager { display: flex; }
  .orc-benefits, .orc-streams { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .orc-hero-copy { padding: 48px 0 40px; }
  .orc-hero .sub { font-size: 16px; }
  .orc-layout, .orc-dash, .orc-steps, .orc-exc-grid, .orc-benefits, .orc-streams { grid-template-columns: 1fr; }
  .orc-adapt li:nth-child(3n) { margin-left: 0; }
  .orc-adapt li:nth-child(3n)::before { width: 18px; left: -19px; }
  .orc-net { max-width: 100%; margin-bottom: 12px; }
  .orc-net text { font-size: 22px; }
  .orc-net .orc-hub-label { font-size: 13px; }
  .orc-actions .btn { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .orc-net path, .orc-net circle, .orc-wires path, .orc-packet, .orc-signal { animation: none !important; }
  .orc-net .orc-signal { display: none !important; }
  .orc-net .orc-lamp, .orc-net .orc-halo { opacity: 0 !important; }
}
html.v2[data-motion="paused"] .orc-net .orc-signal { visibility: hidden; }
