/* Industry pages, #agents: agentic use cases (lab/pages/industry_kit.py, agents()). Form after Palantir AIP "Beyond Chat"
   (https://www.palantir.com/platforms/aip/): numbered tabs top right with a timed rule, one framed stage, lettered markers A, B, C.
   The step list (active row lit, the rest dimmed) after Rogo's agent steps (https://rogo.ai/). No boxes inside the stage, no lines
   over moving things; the approval is the one amber thing. Default markup is the FINAL state; ind-uc.js resets and plays it. */
.erp .uc { --v: #9a6bff; --a: var(--amber, #e88122); --g: #4ade80; --ink: #f4f3ef; --dim: #9d96b4; --soft: #d6d0e6; --line: rgb(255 255 255 / .09); }

/* ---- head: headline left, the three use cases as numbered tabs right */
.erp .uc-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 32px clamp(32px, 5vw, 72px); }
.erp .uc-top .erp-h { max-width: 17ch; }
.erp .uc-top .erp-lede { max-width: 52ch; }
.erp .uc-tabs { display: flex; gap: 10px; }
.erp .uc-tab { position: relative; display: grid; align-content: space-between; gap: 18px; width: 186px; min-height: 104px; padding: 14px 16px 16px;
  border: 1px solid rgb(255 255 255 / .12); border-radius: 12px; background: transparent; color: var(--dim); text-align: left; cursor: pointer;
  overflow: hidden; transition: border-color .3s, color .3s, background .3s; }
.erp .uc-tab span { font: 500 14px/1.3 var(--sc-font-text); text-wrap: balance; }
.erp .uc-tab b { font: 500 28px/1 var(--sc-font-display); letter-spacing: -.02em; color: rgb(255 255 255 / .28); transition: color .3s; }
.erp .uc-tab i { position: absolute; left: 0; bottom: 0; height: 2px; width: calc(var(--p, 0) * 100%); background: var(--v); }
.erp .uc-tab:hover { color: var(--soft); border-color: rgb(255 255 255 / .24); }
.erp .uc-tab[aria-selected="true"] { color: var(--ink); border-color: rgb(255 255 255 / .55); background: rgb(255 255 255 / .03); }
.erp .uc-tab[aria-selected="true"] b { color: var(--ink); }
.erp .uc-tab:focus-visible { outline: 2px solid var(--v); outline-offset: 3px; }

/* ---- one use case */
.erp .uc-panels { margin-top: clamp(36px, 5vh, 56px); }
.erp .uc-p + .uc-p { margin-top: 96px; }
.erp .uc-panels.js .uc-p + .uc-p { margin-top: 0; }
.erp .uc-panels.js .uc-p:not(.is-on) { display: none; }
.erp .uc-hl { margin: 0 0 22px; max-width: 34ch; color: var(--ink); font: 500 clamp(22px, 2.1vw, 30px)/1.2 var(--sc-font-display); letter-spacing: -.02em; text-wrap: balance; }
.erp .uc-stage { border: 1px solid rgb(255 255 255 / .11); border-radius: 16px; background: rgb(13 10 27 / .8); box-shadow: 0 40px 90px -40px rgb(0 0 0 / .8); }
.erp .uc-trig { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin: 0; padding: 18px 24px; border-bottom: 1px solid var(--line); }
.erp .uc-trig__sys { color: var(--dim); font: 500 12.5px/1 var(--sc-font-text); }
.erp .uc-trig b { color: var(--ink); font: 600 14px/1 var(--sc-font-text); font-variant-numeric: tabular-nums; }
.erp .uc-trig span:last-child { color: var(--soft); font: 400 14.5px/1.3 var(--sc-font-text); }
.erp .uc-trig::before { content: ""; align-self: center; width: 8px; height: 8px; border-radius: 50%; background: var(--v); box-shadow: 0 0 0 4px rgb(154 107 255 / .18); }

.erp .uc-cols { display: grid; grid-template-columns: 1.1fr 1.1fr .9fr; }
.erp .uc-col { min-width: 0; padding: 22px 24px 26px; }
.erp .uc-col + .uc-col { border-left: 1px solid var(--line); }
.erp .uc-mk { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; color: #bdb6d0; font: 500 13px/1 var(--sc-font-text); }
.erp .uc-mk i { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 1px solid rgb(154 107 255 / .6);
  color: #d4c6ff; font: 600 11px/1 var(--sc-font-text); font-style: normal; }

/* A: the context, one fact per row */
.erp .uc-ctx { display: grid; margin: 0; padding: 0; list-style: none; }
.erp .uc-ctx li { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 10px; row-gap: 3px; padding: 8px 0; transition: opacity .5s; }
.erp .uc-ctx li + li { border-top: 1px solid rgb(255 255 255 / .05); }
.erp .uc-k { color: #c4b2ff; font: 500 12px/1.3 var(--sc-font-text); }
.erp .uc-s { color: var(--dim); font: 400 12px/1.3 var(--sc-font-text); }
.erp .uc-ctx b { grid-column: 1 / -1; color: var(--ink); font: 400 14.5px/1.4 var(--sc-font-text); }

/* B: the Squids, one module each, handing on */
.erp .uc-steps { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.erp .uc-steps li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; padding: 10px 0; transition: opacity .5s, transform .5s cubic-bezier(.16, 1, .3, 1); }
.erp .uc-steps img { width: 34px; height: 34px; }
.erp .uc-steps div { display: grid; gap: 3px; }
.erp .uc-steps small { color: #c4b2ff; font: 500 12px/1.3 var(--sc-font-text); }
.erp .uc-steps b { color: var(--ink); font: 500 15px/1.25 var(--sc-font-text); }
.erp .uc-steps span { color: var(--soft); font: 400 14px/1.4 var(--sc-font-text); }
.erp .uc-steps em { margin-top: 2px; color: var(--dim); font: 500 12px/1.3 var(--sc-font-text); font-style: normal; }
.erp .uc-steps em::before { content: "\2192\00a0"; }

/* C: the decision and the record */
.erp .uc-dec { display: grid; grid-template-columns: 32px minmax(0, 1fr); align-items: center; column-gap: 12px; row-gap: 8px; }
.erp .uc-ini { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #2d2547; color: var(--ink); font: 600 11.5px/1 var(--sc-font-text); }
.erp .uc-dec b { color: var(--ink); font: 500 15px/1.25 var(--sc-font-text); }
.erp .uc-dec__d { grid-column: 2; color: var(--soft); font: 400 14px/1.4 var(--sc-font-text); }
.erp .uc-btn { grid-column: 2; display: grid; justify-self: start; margin-top: 6px; }
.erp .uc-btn > span { grid-area: 1 / 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; padding: 0 16px;
  border-radius: 10px; font: 600 13.5px/1 var(--sc-font-text); white-space: nowrap; transition: opacity .4s, transform .4s; }
.erp .uc-btn__a { background: var(--a); color: #1c1206; box-shadow: 0 10px 26px -10px rgb(232 129 34 / .75); opacity: 0; }
.erp .uc-btn__d { background: rgb(74 222 128 / .12); color: var(--g); }
.erp .uc-btn__d svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.erp .uc-led { display: grid; gap: 6px; margin: 26px 0 0; padding-top: 16px; border-top: 1px solid var(--line); transition: opacity .6s; }
.erp .uc-led small { display: inline-flex; align-items: center; gap: 7px; color: var(--g); font: 500 12px/1 var(--sc-font-text); }
.erp .uc-led small::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.erp .uc-led span { color: var(--soft); font: 400 13.5px/1.45 var(--sc-font-text); }
.erp .uc-val { max-width: 62ch; margin: 22px 0 0; color: var(--soft); font: 400 16.5px/1.55 var(--sc-font-text); transition: opacity .6s; }
.erp .uc .nw { white-space: nowrap; }

/* ---- playing: everything starts dim and lights in turn (JS adds .play, then .on per row) */
.erp .uc-p.play .uc-ctx li, .erp .uc-p.play .uc-steps li { opacity: .26; }
.erp .uc-p.play .uc-ctx li.on, .erp .uc-p.play .uc-steps li.done { opacity: .72; }
.erp .uc-p.play .uc-ctx li.on { opacity: 1; }
.erp .uc-p.play .uc-steps li.on { opacity: 1; transform: translateX(6px); }
.erp .uc-p.play:not(.ask):not(.done) .uc-dec { opacity: .26; }
.erp .uc-dec { transition: opacity .5s; }
.erp .uc-p.play.ask .uc-btn__a { opacity: 1; }
.erp .uc-p.play:not(.done) .uc-btn__d { opacity: 0; transform: scale(.94); }
.erp .uc-p.play.done .uc-btn__a { opacity: 0; }
.erp .uc-p.play:not(.done) .uc-led, .erp .uc-p.play:not(.done) .uc-val { opacity: 0; }

/* ---- tablet and phone */
@media (max-width: 1080px) {
  .erp .uc-top { grid-template-columns: 1fr; align-items: start; }
  .erp .uc-tabs { width: 100%; }
  .erp .uc-tab { flex: 1 1 0; width: auto; min-height: 96px; }
  .erp .uc-cols { grid-template-columns: 1fr 1fr; }
  .erp .uc-col--c { grid-column: 1 / -1; border-left: 0 !important; border-top: 1px solid var(--line); }
}
@media (max-width: 700px) {
  .erp .uc-tabs { gap: 6px; }
  .erp .uc-tab { padding: 12px 12px 14px; min-height: 92px; gap: 12px; }
  .erp .uc-tab span { font-size: 12.5px; }
  .erp .uc-tab b { font-size: 22px; }
  .erp .uc-cols { grid-template-columns: 1fr; }
  .erp .uc-col + .uc-col { border-left: 0; border-top: 1px solid var(--line); }
  .erp .uc-col { padding: 18px 18px 22px; }
  .erp .uc-trig { padding: 16px 18px; }
  .erp .uc-p.play .uc-steps li.on { transform: none; }
  .erp .uc-ctx li:nth-child(n + 5) { display: none; }
  .erp .uc-hl { font-size: 21px; margin-bottom: 16px; }
  .erp .uc-val { font-size: 15.5px; }
}

/* ---- the fourth tab, the digital twin service (2026-10-26): what the buyer keeps, what can move later, the link to /digital-twin/ */
.erp .uc-tabs--4 .uc-tab { width: 164px; }
.erp .uc-twin { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 22px; max-width: 980px; margin: 14px 0 0; color: var(--dim); font: 400 15px/1.5 var(--sc-font-text); }
.erp .uc-twin b { color: var(--ink); font-weight: 600; }
.erp .uc-twin .ulink { color: var(--ink); font-weight: 600; }
@media (max-width: 1080px) { .erp .uc-tabs--4 .uc-tab { width: auto; } }
@media (max-width: 700px) {
  .erp .uc-tabs--4 { display: grid; grid-template-columns: 1fr 1fr; }
  .erp .uc-twin { font-size: 14px; }
}

/* 2026-10-27: the tabs no longer advance by themselves; when a tab finishes, the next one is marked */
.erp .uc-tab.is-next { border-color: rgb(154 107 255 / .55); box-shadow: 0 0 24px -8px rgb(154 107 255 / .7); animation: uc-next 2.2s ease-in-out infinite; }
.erp .uc-tab.is-next b { color: var(--soft); }
.erp .uc-tab.is-next::after { content: "Next"; position: absolute; top: 12px; right: 14px; color: #c8b8f5; font: 600 11px/1 var(--sc-font-text); letter-spacing: .02em; }
@keyframes uc-next { 50% { box-shadow: 0 0 34px -6px rgb(154 107 255 / .9); } }
@media (prefers-reduced-motion: reduce) { .erp .uc-tab.is-next { animation: none; } }
