/* /digital-twin-test/ #twin (lab/pages/dt_explain.py). Layout after the Hightouch identity resolution hero
   (https://hightouch.com/platform/identity-resolution): sources left, one record card centre, destinations right, right-angled
   lines with travelling dots. "Unknown" fields after Rippling (https://www.rippling.com/platform), one colour per source after
   Clay (https://www.clay.com/waterfall-enrichment), the action card after Attio (https://attio.com). Violet for live, amber
   for a person's turn, green for done. */
.erp .tx-sec .dt-ovh { margin-bottom: clamp(28px, 3.4vw, 48px); }
.erp .tx { --v: #9a6bff; --vl: #b6abff; --turn: #e88122; --ok: #4ade80;
  position: relative; margin: 0 auto; max-width: 1240px; padding: clamp(28px, 3.4vw, 48px);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) minmax(0, 1fr); align-items: center; gap: clamp(40px, 5vw, 88px);
  border-radius: 22px; background: radial-gradient(70% 80% at 50% 45%, rgb(154 107 255 / .14), transparent 70%), linear-gradient(180deg, rgb(22 18 42 / .92), rgb(10 8 20 / .96));
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .12), inset 0 1px 0 rgb(255 255 255 / .12), 0 40px 90px -40px rgb(0 0 0 / .95); }
.erp .tx-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.erp .tx-lines path { fill: none; stroke: rgb(233 228 247 / .18); stroke-width: 1.4; transition: stroke .4s; }
.erp .tx-lines path.on { stroke: var(--c, var(--vl)); }
.erp .tx-lines circle { fill: var(--c, var(--vl)); filter: drop-shadow(0 0 6px var(--c, var(--vl))); }
.erp .tx-col { position: relative; z-index: 1; display: grid; gap: 14px; }

/* sources: each system's own view of Jane, in its own colour */
.erp .tx-s { position: relative; padding: 14px 16px; border-radius: 14px; background: rgb(255 255 255 / .035); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .1); transition: box-shadow .4s, background .4s; }
.erp .tx-s header { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.erp .tx-s header i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); box-shadow: 0 0 10px var(--c); }
.erp .tx-s header b { color: #f4f3ef; font: 600 14px/1.2 var(--sc-font-text); }
.erp .tx-s header .tx-vd { margin-left: auto; color: #8f88a6; font: 400 12px/1.2 var(--sc-font-text); white-space: nowrap; }
.erp .tx-s dl { margin: 0; display: grid; gap: 4px; }
.erp .tx-s dl div { display: flex; justify-content: space-between; gap: 12px; }
.erp .tx-s dt { color: #8a8f9b; font: 400 12.5px/1.4 var(--sc-font-text); }
.erp .tx-s dd { margin: 0; color: #d9dbe2; font: 500 12.5px/1.4 var(--sc-font-mono); white-space: nowrap; transition: color .3s; }
.erp .tx-s.send { box-shadow: inset 0 0 0 1px var(--c); background: color-mix(in oklab, var(--c) 8%, transparent); }
.erp .tx-s .tx-ev { position: absolute; top: 14px; right: 14px; color: var(--c); font: 500 11px/1 var(--sc-font-mono); opacity: 0; transition: opacity .3s; }
.erp .tx-s.changed .tx-ev { opacity: 1; }
/* the product tag shares the top-right corner with the change label: it fades out while the label shows (2026-10-27) */
.erp .tx-s header .tx-vd { transition: opacity .3s; }
.erp .tx-s.changed header .tx-vd { opacity: 0; }
.erp .tx-s.changed dd[data-v] { color: var(--c); }

/* the record: one page in TagFlow */
.erp .tx-rec { border-radius: 18px; padding: 18px 18px 14px; background: linear-gradient(180deg, #1b1533, #0e0b1c);
  box-shadow: inset 0 0 0 1px rgb(182 171 255 / .32), inset 0 1px 0 rgb(255 255 255 / .16), 0 0 50px -14px rgb(154 107 255 / .55); }
.erp .tx-rec header { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; }
.erp .tx-av { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgb(154 107 255 / .3); color: #fff; font: 600 14px/1 var(--sc-font-text); box-shadow: inset 0 0 0 1px rgb(182 171 255 / .5); }
.erp .tx-rec header b { display: block; color: #f4f3ef; font: 600 18px/1.2 var(--sc-font-display); letter-spacing: -.02em; }
.erp .tx-rec header small { color: #8a8f9b; font: 500 12px/1.3 var(--sc-font-text); }
.erp .tx-rec ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.erp .tx-rec li { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; background: rgb(255 255 255 / .03); transition: background .6s; }
.erp .tx-rec li small { color: #8a8f9b; font: 500 12px/1.2 var(--sc-font-text); }
.erp .tx-rec li b { color: #f4f3ef; font: 600 14px/1.2 var(--sc-font-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .3s; }
.erp .tx-rec li em { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; border-radius: 999px; background: color-mix(in oklab, var(--c) 14%, transparent);
  color: color-mix(in oklab, var(--c) 70%, #fff); font: 500 10.5px/1.2 var(--sc-font-mono); font-style: normal; white-space: nowrap; transition: opacity .3s; }
.erp .tx-rec li em i { width: 6px; height: 6px; border-radius: 50%; background: var(--c); }
.erp .tx-rec li.unk b { color: #5d566f; font-style: italic; font-weight: 500; }
.erp .tx-rec li.unk em { opacity: 0; }
.erp .tx-rec li.fl { background: color-mix(in oklab, var(--c) 18%, transparent); transition: background .1s; }
.erp .tx-rec li.turn em { background: rgb(232 129 34 / .16); color: #f5b16c; }
.erp .tx-rec li.turn em i { background: var(--turn); }
.erp .tx-rec li.ok em { background: rgb(74 222 128 / .14); color: #86efac; }
.erp .tx-rec li.ok em i { background: var(--ok); }
.erp .tx-rec footer { display: flex; align-items: center; gap: 8px; margin-top: 12px; color: #a3a8b4; font: 500 12px/1.2 var(--sc-font-text); }
.erp .tx-rec footer i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px var(--ok); }

/* destinations (Hightouch's right-hand pills) and the action card (Attio) */
.erp .tx-o { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.erp .tx-o li { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; background: rgb(255 255 255 / .035); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .1);
  color: #d9dbe2; font: 500 14px/1.2 var(--sc-font-text); transition: box-shadow .4s, color .4s; }
.erp .tx-o li i { width: 8px; height: 8px; border-radius: 50%; background: rgb(233 228 247 / .3); transition: background .4s; }
.erp .tx-o li.on { box-shadow: inset 0 0 0 1px var(--vl); color: #fff; }
.erp .tx-o li.on i { background: var(--vl); box-shadow: 0 0 8px var(--vl); }
.erp .tx-o li.done { box-shadow: inset 0 0 0 1px rgb(74 222 128 / .7); }
.erp .tx-o li.done i { background: var(--ok); }
.erp .tx-act { padding: 14px 16px; border-radius: 14px; background: #120f22; box-shadow: inset 0 0 0 1px rgb(74 222 128 / .45), 0 18px 40px -16px rgb(0 0 0 / .9);
  opacity: 1; transform: none; transition: opacity .5s, transform .5s cubic-bezier(.22, 1, .36, 1), box-shadow .4s; }
.erp .tx-act p { margin: 0; }
.erp .tx-act__sq { display: flex; align-items: center; gap: 8px; color: var(--vl); font: 500 12px/1.2 var(--sc-font-text); }
.erp .tx-act__sq i { width: 7px; height: 7px; border-radius: 50%; background: var(--v); box-shadow: 0 0 8px var(--v); }
.erp .tx-act__t { margin: 8px 0 12px !important; color: #f4f3ef; font: 600 14px/1.35 var(--sc-font-text); }
.erp .tx-act__who { display: flex; align-items: center; gap: 8px; }
.erp .tx-act__who span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: rgb(255 255 255 / .08); color: #f4f3ef; font: 600 11px/1 var(--sc-font-text); }
.erp .tx-act__who small { flex: 1; color: #a3a8b4; font: 500 12px/1.2 var(--sc-font-text); white-space: nowrap; }
.erp .tx-act__who b { padding: 7px 12px; border-radius: 8px; background: #15803d; color: #fff; font: 600 12px/1 var(--sc-font-text); white-space: nowrap; transition: background .3s; }
.erp .tx[data-st="ask"] .tx-act { box-shadow: inset 0 0 0 1px rgb(232 129 34 / .6), 0 18px 40px -16px rgb(0 0 0 / .9); }
.erp .tx[data-st="ask"] .tx-act__who b { background: var(--turn); }
.erp .tx[data-st="hide"] .tx-act { opacity: 0; transform: translateY(10px); }

@media (max-width: 900px) {
  .erp .tx { grid-template-columns: 1fr; gap: 36px; padding: 20px 16px; }
  .erp .tx-srcs { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .erp .tx-s { padding: 10px; }
  .erp .tx-s dl div { display: grid; gap: 0; }
  .erp .tx-s dt { font-size: 11px; }
  .erp .tx-s dd { font-size: 11.5px; }
  .erp .tx-s header b { font-size: 12.5px; }
  .erp .tx-s header { flex-wrap: wrap; row-gap: 2px; } .erp .tx-s header .tx-vd { flex-basis: 100%; margin-left: 16px; font-size: 11px; }
  .erp .tx-s .tx-ev { display: none; }
  .erp .tx-rec li { grid-template-columns: minmax(0, 1fr) auto; row-gap: 4px; }
  .erp .tx-rec li small { grid-row: 1; grid-column: 1; }
  .erp .tx-rec li em { grid-row: 1; grid-column: 2; }
  .erp .tx-rec li b { grid-row: 2; grid-column: 1 / -1; }
  .erp .tx-o { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) { .erp .tx * { transition: none !important; } }
.erp .tx .nw { white-space: nowrap; }

/* hero: the headline larger than the shared hero (Saife 2026-10-27: "enlarge this text as well we want it standing out on
   the digital twin page"); v2.css sets clamp(38px, 4.3vw, 64px) at min(760px, 47vw) for every other page */
.hero__copy { max-width: min(940px, 58vw); }
.hero__h { font-size: clamp(46px, 5.15vw, 88px); letter-spacing: -.04em; line-height: .98; }
@media (max-width: 860px) { .hero__copy { max-width: none; } .hero__h { font-size: clamp(38px, 11vw, 52px); } }
