/* #onprem: agentic AI on your own servers (lab/agentic-erp/onprem.py), 2026-10-26. Three test versions, one per
   reference: A Tinfoil's box-in-box with Twingate's motion, B Cohere's private deployments card, C Cloudflare One's tabbed
   architecture. Violet is the boundary and the working path; the outside world is muted and dashed. No text sits on a
   line: every line ends at the edge of a node, and the moving dot only travels lines that carry no label. */
.erp .op { --v: #9a6bff; --vl: #c9b6ff; --ink: #f4f3ef; --dim: #a39cba; --soft: #d6d0e6; --line: rgb(255 255 255 / .12); }
.erp .op .mg-ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.erp .op-head--c { text-align: center; }
.erp .op-head--c .erp-h, .erp .op-head--c .erp-lede { margin-inline: auto; }
.erp .op-head--c + .erp-cta, .erp .op--c .erp-cta { justify-content: center; text-align: center; }
/* the house "Ai" in the heading, as in the hero (v2.css .hero__h .ai / .tit): italic 500, violet, the amber dot on the ı */
.erp .op .erp-h .ai { font-style: italic; font-weight: 500; color: var(--violet-lite, #b6abff); }
.erp .op .erp-h .tit { position: relative; display: inline; }
.erp .op .erp-h .tit::after { content: ""; position: absolute; left: .2em; top: .2625em; width: .135em; height: .135em; border-radius: 50%; background: var(--amber, #e88122); }
.erp .op-note { margin: 22px 0 0; color: var(--dim); font: 400 15px/1.5 var(--sc-font-text); }

/* ---------------------------------------------------------------- A */
.erp .opa { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(24px, 3vw, 48px); align-items: center; margin-top: clamp(40px, 5vw, 64px); }
.erp .opa-stage { position: relative; aspect-ratio: 16 / 9.4; }
.erp .opa-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.erp .opa-ln { stroke: rgb(201 182 255 / .55); stroke-width: 1.5; fill: none; vector-effect: non-scaling-stroke; }
.erp .opa-ln--back { stroke: rgb(201 182 255 / .3); stroke-dasharray: 3 5; }
.erp .opa-ln--x { stroke: rgb(255 255 255 / .28); stroke-dasharray: 4 5; }
.erp .opa-ln--out { stroke: rgb(255 255 255 / .22); }
.erp .opa-box { position: absolute; left: 4%; top: 20%; width: 92%; height: 57%; border: 1px solid rgb(154 107 255 / .55); border-radius: 16px;
  background: linear-gradient(180deg, rgb(36 27 66 / .55), rgb(16 12 30 / .6)); box-shadow: 0 30px 60px -30px rgb(0 0 0 / .8); }
.erp .opa-box__h { position: absolute; left: 22px; top: 16px; margin: 0; display: grid; gap: 3px; }
.erp .opa-box__h b { color: var(--ink); font: 600 16px/1.1 var(--sc-font-display); letter-spacing: -.01em; }
.erp .opa-box__h small { color: var(--dim); font: 400 13px/1.2 var(--sc-font-text); }
.erp .opa-n { position: absolute; top: 47%; translate: -50% -50%; width: 22%; height: 17%; min-height: 0; display: grid; justify-items: start; align-content: center; gap: 4px;
  padding: 14px 16px; border: 1px solid rgb(255 255 255 / .16); border-radius: 12px; background: rgb(20 15 38 / .92); color: var(--soft);
  box-shadow: 0 12px 28px -14px rgb(0 0 0 / .8); transition: border-color .35s, box-shadow .35s; }
.erp .opa-n img { width: 30px; height: auto; }
.erp .opa-n b { color: var(--ink); font: 600 15.5px/1.2 var(--sc-font-display); letter-spacing: -.01em; }
.erp .opa-n small { color: var(--dim); font: 400 13px/1.35 var(--sc-font-text); }
.erp .opa-n--ws { left: 20%; } .erp .opa-n--tf { left: 50%; } .erp .opa-n--md { left: 80%; }
/* Tinfoil's dark inner box: the model, the one place the data is processed */
.erp .opa-n--md { background: #07050f; border-color: rgb(154 107 255 / .7); }
.erp .opa-n.is-on { border-color: var(--vl); box-shadow: 0 0 0 4px rgb(154 107 255 / .18), 0 12px 28px -14px rgb(0 0 0 / .8); }
.erp .opa-prov { position: absolute; left: 80%; top: 1%; translate: -50% 0; display: grid; justify-items: center; gap: 2px; padding: 8px 14px;
  border: 1px dashed rgb(255 255 255 / .25); border-radius: 10px; color: var(--dim); text-align: center; white-space: nowrap; }
.erp .opa-prov b { font: 500 13.5px/1.2 var(--sc-font-text); color: #c8c2d8; }
.erp .opa-prov small { font: 400 12px/1.2 var(--sc-font-text); }
.erp .opa-lock { position: absolute; left: 80%; top: 20%; translate: -50% -50%; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: #120d24; border: 1px solid rgb(154 107 255 / .7); color: var(--vl); z-index: 2; }
.erp .opa-lock .mg-ic { width: 17px; height: 17px; }
.erp .opa-o { position: absolute; top: 86%; translate: -50% 0; display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid rgb(255 255 255 / .14);
  border-radius: 10px; background: rgb(14 11 26 / .9); color: var(--dim); font: 400 13px/1 var(--sc-font-text); white-space: nowrap; }
.erp .opa-o .mg-ic { width: 16px; height: 16px; }
.erp .opa-o--l { left: 38%; } .erp .opa-o--r { left: 62%; }
.erp .opa-dot { position: absolute; left: 20%; top: 47%; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: #e3dbff;
  box-shadow: 0 0 0 4px rgb(154 107 255 / .35), 0 0 18px rgb(154 107 255 / .9); opacity: 0; z-index: 3; pointer-events: none; }
/* Twingate's card: dashed frame, rows that tick in turn */
.erp .opa-card { padding: 22px 22px 14px; border: 1px dashed rgb(201 182 255 / .35); border-radius: 14px; background: rgb(14 11 26 / .7); }
.erp .opa-card__h { margin: 0 0 12px; color: var(--ink); font: 600 16px/1.2 var(--sc-font-display); }
.erp .opa-card ul { margin: 0; padding: 0; list-style: none; }
.erp .opa-card li { display: grid; grid-template-columns: 24px minmax(0, 1fr); column-gap: 10px; row-gap: 2px; padding: 11px 0; border-top: 1px solid var(--line); }
.erp .opa-card li b { color: var(--ink); font: 500 14.5px/1.3 var(--sc-font-text); }
.erp .opa-card li em { grid-column: 2; color: var(--dim); font: normal 400 13.5px/1.4 var(--sc-font-text); }
.erp .opa-tick { grid-row: span 2; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 1px solid rgb(255 255 255 / .2); color: transparent;
  transition: background .3s, border-color .3s, color .3s; }
.erp .opa-tick .mg-ic { width: 13px; height: 13px; stroke-width: 2.2; }
.erp .opa-card li.is-on .opa-tick { background: var(--v); border-color: var(--v); color: #fff; }
.erp .opa-nil { grid-template-columns: 1fr auto !important; align-items: baseline; }
.erp .opa-nil em { grid-column: auto !important; color: var(--vl) !important; font-weight: 600 !important; font-size: 15px !important; }
/* without JS every row reads as ticked */
.erp .op--a:not(.has-js) .opa-tick { background: var(--v); border-color: var(--v); color: #fff; }

/* ---------------------------------------------------------------- B */
.erp .opb { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; margin-top: clamp(40px, 5vw, 64px); }
.erp .opb-spec { margin: 0; display: grid; }
.erp .opb-spec div { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); }
.erp .opb-spec div:last-child { border-bottom: 1px solid var(--line); }
.erp .opb-spec dt { color: var(--dim); font: 400 14.5px/1.45 var(--sc-font-text); }
.erp .opb-spec dd { margin: 0; color: var(--ink); font: 500 15.5px/1.45 var(--sc-font-text); }
.erp .opb-card { padding: clamp(28px, 4vw, 52px); border-radius: 18px; background: linear-gradient(170deg, #3a2370 0%, #5b3aa6 55%, #8a62d8 100%);
  box-shadow: 0 40px 80px -40px rgb(0 0 0 / .9); }
.erp .opb-bound { position: relative; display: grid; gap: 14px; padding: 40px 26px 26px; border: 1.5px solid rgb(255 255 255 / .55); border-radius: 18px; }
.erp .opb-lock { position: absolute; left: 50%; top: 0; translate: -50% -50%; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px;
  background: #6f4bc0; border: 1.5px solid rgb(255 255 255 / .7); color: #fff; }
.erp .opb-lock .mg-ic { width: 18px; height: 18px; }
.erp .opb-files { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.erp .opb-files li { display: grid; grid-template-columns: 36px minmax(0, 1fr); column-gap: 12px; align-items: center; padding: 12px 14px; border-radius: 12px;
  background: #f6f4ef; color: #1a1033; box-shadow: 0 0 0 5px rgb(255 255 255 / .16); transition: box-shadow .4s, transform .4s; }
.erp .opb-files li b { font: 500 15px/1.25 var(--sc-font-text); }
.erp .opb-files li small { grid-column: 2; color: #6b6485; font: 400 12.5px/1.3 var(--sc-font-text); }
.erp .opb-fi { grid-row: span 2; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 8px; background: #ece8f6; color: #5b3aa6; }
.erp .opb-files li.is-on { box-shadow: 0 0 0 5px rgb(255 255 255 / .55), 0 14px 30px -12px rgb(20 8 50 / .6); transform: translateY(-2px); }
.erp .opb-wire { position: relative; justify-self: center; width: 2px; height: 34px; background: rgb(255 255 255 / .5); }
.erp .opb-wire i { position: absolute; left: 50%; top: 0; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: #fff; box-shadow: 0 0 12px #fff; opacity: 0; }
.erp .opb-model { position: relative; padding: 12px 14px 12px; border-radius: 12px; background: rgb(255 255 255 / .16); border: 1px solid rgb(255 255 255 / .35); }
.erp .opb-net { display: block; width: 100%; height: 120px; }
.erp .opb-net--d { position: absolute; left: 14px; top: 12px; width: calc(100% - 28px); height: 120px; }
.erp .opb-net__l line { stroke: rgb(255 255 255 / .45); stroke-width: 1; vector-effect: non-scaling-stroke; }
.erp .opb-net--d i { position: absolute; width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px; border-radius: 50%; background: #fff;
  box-shadow: 0 0 0 3px rgb(255 255 255 / .35); transition: background .25s, box-shadow .25s; }
.erp .opb-net--d i.is-on { background: #2a1166; box-shadow: 0 0 0 4px #fff; }
.erp .opb-model p { margin: 10px 0 0; color: #f1ecff; font: 400 13.5px/1.3 var(--sc-font-text); text-align: center; }
.erp .opb-model p b { font-weight: 600; margin-right: 6px; }

/* ---------------------------------------------------------------- C */
.erp .opc { margin-top: clamp(36px, 4.5vw, 56px); }
/* the set-up switch (the comparison Saife asked for): your servers with a private model, or the cloud with a hosted one */
.erp .opc-mode { display: grid; grid-template-columns: 1fr 1fr; width: min(560px, 100%); margin: 0 auto 14px; padding: 4px; border-radius: 14px;
  background: rgb(255 255 255 / .06); border: 1px solid rgb(255 255 255 / .12); }
.erp .opc-mode button { padding: 13px 16px; border: 0; border-radius: 10px; background: none; color: var(--dim); font: 600 15.5px/1.2 var(--sc-font-display);
  letter-spacing: -.01em; cursor: pointer; transition: background .25s, color .25s, box-shadow .25s; }
.erp .opc-mode button:hover { color: var(--ink); }
.erp .opc-mode button[aria-checked="true"] { background: #f4f3ef; color: #1a1033; box-shadow: 0 6px 18px -8px rgb(0 0 0 / .7); }
.erp .opc-bar { display: flex; justify-content: center; gap: 4px; width: max-content; max-width: 100%; margin: 0 auto; padding: 5px; border-radius: 999px;
  border: 1px solid rgb(255 255 255 / .12); background: rgb(14 11 26 / .75); }
.erp .opc-bar button { display: inline-flex; align-items: center; gap: 9px; padding: 10px 18px; border: 0; border-radius: 999px; background: none; color: var(--soft);
  font: 500 15px/1 var(--sc-font-text); cursor: pointer; transition: background .25s, color .25s; }
.erp .opc-bar button .mg-ic { width: 17px; height: 17px; }
.erp .opc-bar button:hover { color: var(--ink); background: rgb(255 255 255 / .05); }
.erp .opc-bar button[aria-selected="true"] { background: var(--v); color: #fff; }
.erp .opc-cap { margin: 22px auto 0; max-width: 72ch; min-height: 1.5em; color: var(--soft); font: 400 16px/1.5 var(--sc-font-text); text-align: center; }
.erp .opc-p:not([hidden]) .opc-cap { animation: opc-in .45s cubic-bezier(.16, 1, .3, 1); }
.erp .opc-stage { position: relative; aspect-ratio: 21 / 6; margin-top: 26px; border: 1px solid rgb(255 255 255 / .1); border-radius: 18px; overflow: hidden;
  background: radial-gradient(rgb(255 255 255 / .07) 1px, transparent 1.2px) 0 0 / 22px 22px, rgb(12 9 24 / .75); }
.erp .opc-box { position: absolute; left: var(--bx); top: var(--by); width: var(--bw); height: var(--bh); border: 1px dashed rgb(154 107 255 / .6); border-radius: 14px;
  background: rgb(154 107 255 / .05); }
.erp .opc-box em { position: absolute; left: 14px; top: 10px; color: var(--vl); font: normal 500 12.5px/1 var(--sc-font-text); letter-spacing: .02em; }
/* Marrinn's cloud: plain white dashes; the provider's cloud: grey dashes, the furthest from you */
.erp .opc-box--mn { border-color: rgb(244 243 239 / .45); background: rgb(255 255 255 / .03); }
.erp .opc-box--mn em { color: #e8e4f2; }
.erp .opc-box--pv { border-color: rgb(200 194 216 / .3); background: rgb(255 255 255 / .015); }
.erp .opc-box--pv em { color: var(--dim); }
.erp .opc-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.erp .opc-ln { stroke: rgb(201 182 255 / .7); stroke-width: 1.5; stroke-dasharray: 5 6; vector-effect: non-scaling-stroke; animation: opc-flow 1.2s linear infinite; }
.erp .opc-ln--x { stroke: rgb(255 255 255 / .25); animation: none; }
@keyframes opc-flow { to { stroke-dashoffset: -22; } }
.erp .opc-n { position: absolute; left: var(--x); top: var(--y); translate: -50% -50%; display: grid; justify-items: center; gap: 5px; width: 15%; min-width: 132px;
  padding: 16px 12px 14px; border: 1px solid rgb(255 255 255 / .18); border-radius: 12px; background: #120d22; color: var(--soft); text-align: center; }
.erp .opc-n b { color: var(--ink); font: 600 14.5px/1.2 var(--sc-font-display); }
.erp .opc-n small { color: var(--dim); font: 400 12.5px/1.3 var(--sc-font-text); }
.erp .opc-n .mg-ic { width: 22px; height: 22px; }
.erp .opc-n--on { border-color: var(--v); color: var(--vl); box-shadow: 0 0 0 4px rgb(154 107 255 / .16), 0 16px 34px -18px rgb(154 107 255 / .8); }
.erp .opc-n--out { border-style: dashed; background: rgb(14 11 26 / .6); opacity: .8; }
/* Cloudflare's square anchors, one on each side of a node */
.erp .opc-n__a i { position: absolute; width: 7px; height: 7px; border: 1px solid currentColor; background: #120d22; }
.erp .opc-n__a i:nth-child(1) { left: 50%; top: -4px; margin-left: -4px; } .erp .opc-n__a i:nth-child(2) { right: -4px; top: 50%; margin-top: -4px; }
.erp .opc-n__a i:nth-child(3) { left: 50%; bottom: -4px; margin-left: -4px; } .erp .opc-n__a i:nth-child(4) { left: -4px; top: 50%; margin-top: -4px; }
.erp .opc-n:not(.opc-n--on) .opc-n__a { color: rgb(255 255 255 / .3); }
.erp .opc-stop { position: absolute; left: var(--x); top: var(--y); translate: -50% -50%; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: #120d22; border: 1px solid rgb(201 182 255 / .6); color: var(--vl); }
.erp .opc-stop .mg-ic { width: 14px; height: 14px; }
.erp .opc-p:not([hidden]) .opc-n { animation: opc-in .5s cubic-bezier(.16, 1, .3, 1) backwards; }
.erp .opc-p:not([hidden]) .opc-n:nth-of-type(2) { animation-delay: .08s; } .erp .opc-p:not([hidden]) .opc-n:nth-of-type(3) { animation-delay: .16s; }
.erp .opc-p:not([hidden]) .opc-n:nth-of-type(4) { animation-delay: .24s; }
@keyframes opc-in { from { opacity: 0; filter: blur(4px); transform: translateY(6px); } }

/* ---------------------------------------------------------------- phones */
@media (max-width: 900px) {
  .erp .opa, .erp .opb { grid-template-columns: 1fr; }
  .erp .opb-spec div { grid-template-columns: 1fr; gap: 4px; }
}
@media (max-width: 760px) {
  /* A: the boxes stack top to bottom, lines and the travelling dot go */
  /* the boundary spans rows 2 to 5 behind the three boxes, so they sit inside "Your servers" */
  .erp .opa-stage { aspect-ratio: auto; display: grid; grid-template-rows: auto 62px auto auto auto 6px auto auto; row-gap: 10px; }
  .erp .opa-lines, .erp .opa-dot, .erp .opa-lock { display: none; }
  .erp .opa-prov, .erp .opa-box, .erp .opa-n, .erp .opa-o { position: static; translate: none; width: auto; height: auto; }
  .erp .opa-prov { justify-items: start; text-align: left; }
  .erp .opa-prov::after { content: "Not in the path"; color: var(--vl); font: 500 12px/1.3 var(--sc-font-text); }
  .erp .opa-prov { grid-row: 1; }
  .erp .opa-stage { grid-template-columns: minmax(0, 1fr); }
  .erp .opa-stage > * { grid-column: 1; }
  .erp .opa-box { grid-row: 2 / 7; position: relative; inset: auto; width: auto; height: auto; z-index: 0; }
  .erp .opa-box__h { position: absolute; left: 16px; top: 14px; }
  .erp .opa-n { position: relative; inset: auto; z-index: 1; min-height: 0; margin-inline: 14px; }
  .erp .opa-n--ws { grid-row: 3; } .erp .opa-n--tf { grid-row: 4; } .erp .opa-n--md { grid-row: 5; }
  .erp .opa-o { justify-self: start; } .erp .opa-o--l { grid-row: 7; } .erp .opa-o--r { grid-row: 8; }
  /* C: the stage turns into a column of nodes */
  .erp .opc-bar { width: 100%; }
  .erp .opc-bar button { flex: 1; justify-content: center; padding: 10px 8px; font-size: 14px; gap: 6px; }
  .erp .opc-bar button .mg-ic { display: none; }
  .erp .opc-stage { aspect-ratio: auto; display: grid; gap: 12px; padding: 40px 16px 18px; }
  .erp .opc-stage { padding-top: 18px; }
  .erp .opc-box { display: none; }
  .erp .opc-n--out { order: 9; }
  /* no boundary boxes on a phone: each node says where it runs */
  .erp .opc-n[data-zone]:not([data-zone=""])::before { content: attr(data-zone); color: var(--vl); font: 500 11.5px/1 var(--sc-font-text); letter-spacing: .02em; }
  .erp .opc-mode button { padding: 11px 8px; font-size: 14px; }
  .erp .opc-lines, .erp .opc-stop { display: none; }
  .erp .opc-n { position: relative; left: auto; top: auto; translate: none; width: auto; min-width: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .erp .opc-ln, .erp .opc-p:not([hidden]) .opc-n, .erp .opc-p:not([hidden]) .opc-cap { animation: none; }
  .erp .opa-dot, .erp .opb-wire i { display: none; }
}
