/* Product pages build (13 Nov 2026). The CSS block build-product.mjs appends to every p-*.html page as <style id="px-css">.
   Rounds are appended in order, each under its own comment. Never edit a built page; edit this file and rebuild.

   SETTLED, do not reopen without Andrew (shots/product-pages/HANDOFF.md, round 0):
   - Hero is the 1 Nov "families" pick: copy left, the family aurora panel right holding one dark product tile and the clear
     glass tile. No text on moving colour. Never the Clay stagger.
   - Product UI is a dark tile showing one control (11 Nov recipe): ink-850 tile, 1px inset white-12 ring, rows on white-05,
     white heads, ink-300/400 secondary text, grey selected state. No raw screenshots, no "illustrative" labels.
   - Family colour marks only the product's own parts (hero panel, its step in the chart, feature tiles' panels, related
     cards). Everything else is neutral on the night ground.
   - The eyebrow is sans, not mono: mono is for real event data only.
   - One filled "Book a demo" per view. Violet is for the main buttons only; selected states are grey.
   - Nothing travels, nothing narrates travel. The aurora keeps its approved slow movement.

   REOPENED BY ANDREW, 14 Nov 2026 (round 2): "all of the visuals look the same... it's not a copy and paste. We have to
   actually look at what exists right now for each product and add that custom element." So a page is no longer one tile
   recipe repeated: each page rebuilds the visuals its live page already has (flow chart with more detail than the homepage
   one, a full dark product screen, an animated explanation where the live page has a drawing). The dark recipe, the family
   colour rule and the one-button rule above still hold. */

/* ---------- round 1: hero ---------- */
.px-hero { padding-bottom: clamp(var(--pn-space-12), 6vw, var(--pn-space-24)); }
.px-hero .px-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--pn-space-10); align-items: center; }
@media (min-width: 1024px) { .px-hero .px-grid { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: var(--pn-space-16); } }
.px-hero .pn-in { justify-items: start; text-align: left; gap: var(--pn-space-5); }
.px-hero .pn-title { margin: 0; text-wrap: balance; }
.px-hero .pn-sub { max-width: 34em; }
.px-eyebrow { font: 600 var(--pn-type-small-size)/1.2 var(--pn-font-family-sans); color: var(--pn-text-body); letter-spacing: 0; }
.px-hero .px-acts { display: flex; flex-wrap: wrap; align-items: center; gap: var(--pn-space-4) var(--pn-space-6); margin-top: var(--pn-space-3); }
.px-lnk { display: inline-flex; align-items: center; gap: var(--pn-space-2); color: var(--pn-text-link); font: 500 var(--pn-type-ui-size)/1.4 var(--pn-font-family-sans); text-decoration: none; min-height: var(--pn-space-10); }
.px-lnk svg { width: var(--pn-icon-xs); height: var(--pn-icon-xs); flex: none; transition: transform .2s var(--pn-easing-out); }
.px-lnk:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.px-lnk:focus-visible { outline: 2px solid var(--pn-focus); outline-offset: 4px; border-radius: var(--pn-radius-xs); }

/* the family aurora panel: the glass tile top left, the dark product tile centred */
.px-panel { border-radius: var(--pn-radius-2xl); box-shadow: inset 0 0 0 1px var(--pn-color-alpha-white-10), 0 40px 90px -40px var(--pn-color-alpha-shade-92); display: grid; align-content: center; justify-items: center; }
.px-panel > .px-tile { position: relative; z-index: 2; }
/* round 4 (15 Nov 2026): the glass icon left the panel. It was 80px and the first thing the eye landed on ("it's overwhelming"),
   then a 40px corner mark, and then Andrew: "I'm not sure I like having the icon on the image gradient... maybe we create a
   small version in the hero eyebrow to pair with the product name". The panel now holds only the tile, with even padding. */
.px-hero .px-panel { min-height: clamp(360px, 38vw, 540px); padding: var(--pn-space-12) var(--pn-space-6); }
@media (max-width: 639px) { .px-hero .px-panel { min-height: 0; padding: var(--pn-space-8) var(--pn-space-4); } }
/* the eyebrow icon (round 4d, 15 Nov 2026, Andrew: "you used an older icon set ... look at the new live website of agent
   intelligence"). It is the live site's product glass tile: product.nav-glass.js is snowplow.io's public/agents/glass/nav-glass.js
   (main 37577be9, PR #570) as it is, which turns a frosted icon inside an .sn-it into the clear glass tile (a white line glyph on
   one still frame of the family aurora). product.js calls it on the eyebrow at this size. The frosted brand/*.svg in the markup
   is only the fallback without WebGL, as on the live site. The .sn-it class is the script's hook; the nav's .sn-it row styles
   are undone here. The tile box styles are the /agents bar's (.ag-site .nt in agents.css). */
.px-eb { display: inline-flex; align-items: center; gap: var(--pn-space-2); }
.px-eb .px-eb-ic { --eb-ic: 28px; position: relative; flex: none; display: block; width: var(--eb-ic); height: var(--eb-ic); padding: 0; margin: 0; border-radius: 0; background: none; transition: none; }
.px-eb .px-eb-ic img { display: block; width: var(--eb-ic); height: var(--eb-ic); }
.px-eb .nt { position: relative; display: block; flex: none; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), inset 0 0 0 1px rgba(255, 255, 255, 0.14), 0 10px 24px -12px rgba(4, 2, 12, 0.8); }
.px-eb .nt .lg { position: absolute; pointer-events: none; }
.px-eb .nt .lg-pane { position: absolute; }
.px-eb .nt .lg svg { position: absolute; left: 0; top: 0; display: block; }
.px-eb .nt canvas { position: absolute; display: block; }
@media (max-width: 639px) { .px-eb .px-eb-ic { --eb-ic: 24px; } }

/* ---------- round 1: the dark product tile ---------- */
.px-tile { width: min(100%, 420px); border-radius: var(--pn-radius-xl); background: var(--pn-color-ink-850); color: var(--pn-color-white); box-shadow: inset 0 0 0 1px var(--pn-color-alpha-white-12), 0 40px 90px -40px var(--pn-color-alpha-shade-92); padding: var(--pn-space-4); display: grid; gap: var(--pn-space-2); font: 400 var(--pn-type-small-size)/1.4 var(--pn-font-family-sans); text-align: left; }
.px-tile-h { display: flex; align-items: baseline; justify-content: space-between; gap: var(--pn-space-3); padding: var(--pn-space-1) var(--pn-space-2) var(--pn-space-2); }
.px-tile-h b { font-weight: 600; font-size: var(--pn-type-body-size); color: var(--pn-color-white); }
.px-tile-h span { color: var(--pn-color-ink-400); font-size: var(--pn-type-caption-size); white-space: nowrap; }
.px-r { display: flex; align-items: center; justify-content: space-between; gap: var(--pn-space-3); min-height: var(--pn-space-12); padding: var(--pn-space-2) var(--pn-space-3); border-radius: var(--pn-radius-sm); background: var(--pn-color-alpha-white-05); min-width: 0; }
.px-r > span:first-child { display: grid; gap: 2px; min-width: 0; }
.px-r b { font-weight: 500; color: var(--pn-color-white); overflow-wrap: anywhere; }
.px-r small { color: var(--pn-color-ink-300); font-size: var(--pn-type-caption-size); }
.px-r code, .px-tile-h code { font: 500 var(--pn-type-caption-size)/1.4 var(--pn-font-family-mono); color: var(--pn-color-white); overflow-wrap: anywhere; }
.px-r > .px-v { color: var(--pn-color-ink-300); font-size: var(--pn-type-caption-size); text-align: right; flex: none; max-width: 60%; overflow-wrap: anywhere; }
.px-r > code.px-v { color: var(--pn-color-ink-100); }
.px-r.sel { background: var(--pn-surface-selected); box-shadow: inset 0 0 0 1px var(--pn-color-alpha-white-30); }
.px-tag { flex: none; padding: var(--pn-space-1) var(--pn-space-2); border-radius: var(--pn-radius-xs); background: var(--pn-color-alpha-white-12); color: var(--pn-color-ink-100); font: 600 var(--pn-type-caption-size)/1.2 var(--pn-font-family-sans); white-space: nowrap; }
.px-tag.ok { background: var(--pn-status-valid-bg); color: var(--pn-status-valid-fg); }
.px-tag.no { background: var(--pn-status-failed-bg); color: var(--pn-status-failed-fg); }
/* a switch, drawn on: grey track, white knob (violet is for the main buttons only) */
.px-sw { flex: none; position: relative; width: 36px; height: 20px; border-radius: var(--pn-radius-pill); background: var(--pn-color-ink-300); }
.px-sw::after { content: ""; position: absolute; top: 2px; right: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--pn-color-white); }
.px-sw.off { background: var(--pn-color-ink-750); }
.px-sw.off::after { right: auto; left: 2px; background: var(--pn-color-ink-300); }
.px-tile-f { display: flex; align-items: center; justify-content: space-between; gap: var(--pn-space-3); padding: var(--pn-space-2) var(--pn-space-2) var(--pn-space-1); color: var(--pn-color-ink-300); font-size: var(--pn-type-caption-size); }
.px-tile-f i { font-style: normal; flex: none; display: inline-flex; align-items: center; height: var(--pn-space-8); padding: 0 var(--pn-space-3); border-radius: var(--pn-radius-pill); background: var(--pn-color-ink-100); color: var(--pn-color-ink-900); font: 600 var(--pn-type-caption-size)/1 var(--pn-font-family-sans); white-space: nowrap; }
.px-tile pre { margin: 0; padding: var(--pn-space-3); border-radius: var(--pn-radius-sm); background: var(--pn-color-alpha-white-05); font: 500 var(--pn-type-caption-size)/1.6 var(--pn-font-family-mono); color: var(--pn-color-ink-100); white-space: pre-wrap; overflow-wrap: anywhere; }
.px-tile pre i { font-style: normal; color: var(--pn-color-ink-400); }

/* ---------- round 1: three short claims ---------- */
.px-claims.pn-sec { padding-block: 0 var(--pn-section-pad-compact); }
.px-claims ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--pn-space-8); }
@media (min-width: 768px) { .px-claims ul { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--pn-space-8); } }
.px-claims li { padding-top: var(--pn-space-5); border-top: 1px solid var(--pn-border-strong); display: grid; gap: var(--pn-space-2); align-content: start; }
.px-claims h2 { margin: 0; font-size: var(--pn-type-h4-size); line-height: 1.25; font-weight: 600; color: var(--pn-text-head); }
.px-claims p { margin: 0; color: var(--pn-text-body); max-width: 32em; }

/* ---------- round 1: where it sits (the locked wires chart, flowcharts-r3/simple.js) ---------- */
.px-sits .pn-head { max-width: var(--pn-layout-measure-head); }

/* ---------- round 1: alternating feature rows, one section ---------- */
.px-rows .px-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--pn-space-8); align-items: center; }
.px-rows .px-row + .px-row { margin-top: clamp(var(--pn-space-16), 8vw, var(--pn-space-24)); }
@media (min-width: 1024px) {
  .px-rows .px-row { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: var(--pn-space-20); }
  .px-rows .px-row:nth-child(even) { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
  .px-rows .px-row:nth-child(even) .px-copy { order: 2; }
}
.px-copy { display: grid; gap: var(--pn-space-4); align-content: center; justify-items: start; }
.px-copy h2, .px-copy h3 { margin: 0; font-size: clamp(1.625rem, 1.4rem + 0.9vw, 2.0625rem); line-height: 1.15; letter-spacing: -.02em; font-weight: 500; color: var(--pn-text-head); max-width: 18em; text-wrap: balance; }
.px-copy p { margin: 0; font-size: var(--pn-type-lede-size); line-height: var(--pn-type-lede-line); color: var(--pn-text-body); max-width: 30em; }
.px-rows .px-panel { aspect-ratio: 5 / 4; padding: var(--pn-space-6); }
@media (max-width: 1023px) { .px-rows .px-panel { aspect-ratio: auto; padding: var(--pn-space-10) var(--pn-space-4); } }

/* ---------- round 1: the compact grid for everything past four rows ---------- */
.px-more ul { list-style: none; margin: var(--pn-space-10) 0 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--pn-space-8) var(--pn-space-8); }
@media (min-width: 640px) { .px-more ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .px-more ul { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.px-more li { display: grid; grid-template-columns: var(--pn-space-12) minmax(0, 1fr); gap: var(--pn-space-4); align-items: start; }
.px-more li > svg, .px-more li > .px-ic { width: var(--pn-space-12); height: var(--pn-space-12); }
.px-more h3 { margin: 0 0 var(--pn-space-1); font-size: var(--pn-type-h4-size); line-height: 1.25; font-weight: 600; color: var(--pn-text-head); }
.px-more p { margin: 0; color: var(--pn-text-body); }

/* ---------- round 1: proof band (the figure is the one big element; the logo sits with it, never under the hero) ---------- */
.px-proof .px-band { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--pn-space-10); padding: clamp(var(--pn-space-6), 4vw, var(--pn-space-12)); border-radius: var(--pn-radius-2xl); background: var(--pn-surface-panel); box-shadow: inset 0 0 0 1px var(--pn-color-alpha-white-10); align-items: center; }
@media (min-width: 1024px) { .px-proof .px-band { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: var(--pn-space-16); } }
.px-proof .px-logo { display: block; height: var(--pn-space-6); width: auto; margin-bottom: var(--pn-space-6); }
.px-proof .px-fig { display: flex; align-items: baseline; gap: var(--pn-space-4); flex-wrap: wrap; margin: 0 0 var(--pn-space-4); }
.px-proof .px-fig b { font-size: clamp(3.5rem, 2.6rem + 3.6vw, 5.5rem); line-height: 1; letter-spacing: -.03em; font-weight: 500; color: var(--pn-text-head); }
.px-proof .px-fig span { color: var(--pn-text-body); font-size: var(--pn-type-lede-size); }
.px-proof .px-st { margin: 0; font-size: var(--pn-type-lede-size); line-height: var(--pn-type-lede-line); color: var(--pn-text-body); max-width: 30em; }
.px-proof figure { margin: 0; display: grid; gap: var(--pn-space-5); }
.px-proof blockquote { margin: 0; font-size: var(--pn-type-h3-size); line-height: 1.35; color: var(--pn-text-head); text-wrap: pretty; }
.px-proof figcaption { display: grid; gap: 2px; color: var(--pn-text-body); font-size: var(--pn-type-small-size); }
.px-proof figcaption b { color: var(--pn-text-head); font-weight: 600; font-size: var(--pn-type-body-size); }

/* ---------- round 1: comparison (only the rows FIRN backs) ---------- */
.px-cmp ul { list-style: none; margin: var(--pn-space-10) 0 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--pn-space-6); }
@media (min-width: 900px) { .px-cmp ul { grid-template-columns: repeat(var(--n, 2), minmax(0, 1fr)); } }
.px-cmp li { display: grid; gap: var(--pn-space-5); align-content: start; padding-top: var(--pn-space-5); border-top: 1px solid var(--pn-border-strong); }
.px-cmp h3 { margin: 0; font-size: var(--pn-type-h3-size); line-height: 1.2; font-weight: 500; color: var(--pn-text-head); }
.px-cmp dl { margin: 0; display: grid; gap: var(--pn-space-4); }
.px-cmp dt { font: 600 var(--pn-type-small-size)/1.3 var(--pn-font-family-sans); color: var(--pn-text-subtle); margin-bottom: var(--pn-space-1); }
.px-cmp dd { margin: 0; color: var(--pn-text-body); max-width: 34em; }
.px-cmp dd.us { color: var(--pn-text-head); }

/* ---------- round 1: Michele's pages (Digital and Ecommerce Analytics): her sections, restyled only ---------- */
.px-cards ul { list-style: none; margin: var(--pn-space-10) 0 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--pn-space-4); }
@media (min-width: 640px) { .px-cards ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .px-cards ul { grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); } }
.px-cards li { display: grid; gap: var(--pn-space-3); align-content: start; padding: var(--pn-space-5); border-radius: var(--pn-radius-xl); background: var(--pn-surface-panel); box-shadow: inset 0 0 0 1px var(--pn-color-alpha-white-10); }
.px-cards h3 { margin: 0; font-size: var(--pn-type-h4-size); line-height: 1.25; font-weight: 600; color: var(--pn-text-head); }
.px-cards p { margin: 0; color: var(--pn-text-body); font-size: var(--pn-type-small-size); line-height: 1.55; }
.px-cards .px-built { margin-top: auto; padding-top: var(--pn-space-3); border-top: 1px solid var(--pn-border-hairline); color: var(--pn-text-subtle); font-size: var(--pn-type-caption-size); line-height: 1.5; }
.px-cards .px-built code { font: 500 var(--pn-type-caption-size)/1.5 var(--pn-font-family-mono); color: var(--pn-text-body); overflow-wrap: anywhere; }
.px-cards li > svg { width: var(--pn-space-10); height: var(--pn-space-10); }
.px-list ul { list-style: none; margin: var(--pn-space-8) 0 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; border-top: 1px solid var(--pn-border-strong); }
.px-list li { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--pn-space-2); padding: var(--pn-space-5) 0; border-bottom: 1px solid var(--pn-border-hairline); }
@media (min-width: 768px) { .px-list li { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--pn-space-8); } }
.px-list h3 { margin: 0; font-size: var(--pn-type-h4-size); line-height: 1.3; font-weight: 600; color: var(--pn-text-head); }
.px-list h3 code { font: 500 .9em/1.3 var(--pn-font-family-mono); }
.px-list p { margin: 0; color: var(--pn-text-body); max-width: 40em; }
.px-quote figure { margin: 0 auto; max-width: var(--pn-layout-wide); display: grid; gap: var(--pn-space-6); justify-items: start; }
.px-quote .px-logo { height: var(--pn-space-8); width: auto; }
.px-quote blockquote { margin: 0; font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem); line-height: 1.25; letter-spacing: -.01em; color: var(--pn-text-head); text-wrap: pretty; }
.px-quote figcaption { display: grid; gap: 2px; color: var(--pn-text-body); }
.px-quote figcaption b { color: var(--pn-text-head); font-weight: 600; }
.px-prose p { margin: var(--pn-space-5) 0 0; font-size: var(--pn-type-lede-size); line-height: var(--pn-type-lede-line); color: var(--pn-text-body); max-width: 44em; }
.px-secacts { margin-top: var(--pn-space-8); display: flex; flex-wrap: wrap; gap: var(--pn-space-4) var(--pn-space-6); align-items: center; }

/* a parked page carries a small, plain marker under the nav so nobody takes the draft for a decision */
.px-parked { margin: 0; padding: var(--pn-space-2) var(--pn-layout-gutter); background: var(--pn-surface-raised); color: var(--pn-text-body); font-size: var(--pn-type-small-size); text-align: center; position: relative; z-index: 1; }

/* ---------- round 1: one filled button per view. The nav's filled button goes to a tint while the hero's is on screen
   (homepage v3, round 12). Default with no script is the filled button, so a script failure cannot leave the page with none. */
html.px-nav-quiet .sn-btn.p { background: rgba(140, 152, 252, .18); box-shadow: inset 0 0 0 1px rgba(140, 152, 252, .4); color: var(--pn-color-ink-100); }
html.px-nav-quiet .sn-btn.p:hover { background: rgba(140, 152, 252, .26); }

/* related cards: the copy under each card stays readable at phone width */
.fx-rel b { margin-top: 0; }

/* ---------- round 1, second session: three faults measured on the first capture ----------
   1. Empty band above the breadcrumb. The library hero carries 128px of top padding and then the 72px nav spacer, so the
      crumb sat at y=200 under a 72px nav. The spacer already clears the nav; the hero keeps 24px above the crumb. */
.px-hero.pn-hero { padding-top: var(--pn-space-6); }
.px-hero .pn-crumb { margin-bottom: clamp(var(--pn-space-8), 3vw, var(--pn-space-12)); }
/* 2. The gap under the wires chart. The locked stage is 1200 x 440 and its pills end about 50px inside it; with 96px of
      section padding either side of the boundary the next heading sat about 290px below the last pill. The chart is not
      touched: this section gives up its bottom padding and the stage sits closer to its lede. */
.px-sits.pn-sec { padding-bottom: 0; }
.px-sits .sf { margin-top: var(--pn-space-6); }
/* 3. Plain right-hand values in a tile ("4", "2", "5") were 12px ink-300. They are the fact the row states. */
.px-r > span.px-v { color: var(--pn-color-white); font-size: var(--pn-type-body-size); font-weight: 600; font-variant-numeric: tabular-nums; }
/* 4. The chart's captions in sans, as on homepage v3 (round 9): monospace is kept for real event data. Nothing else on
      the locked chart is changed. */
.px-sits .sf-cap { font: var(--pn-font-weight-semibold) var(--pn-type-caption-size)/1 var(--pn-font-family-sans); letter-spacing: .06em; }
/* 5. Secondary text inside the selected row measured 4.09:1 (ink-300 on the grey selected fill; floor 4.5:1). */
.px-r.sel small { color: var(--pn-color-ink-100); }

/* ---------- round 1, Identities review (fresh reviewer, 14 Nov; each verified on the page before it was fixed) ---------- */
/* an ID on a row's second line is event data, so it is mono like every other ID */
.px-r small code { font: 500 var(--pn-type-caption-size)/1.4 var(--pn-font-family-mono); color: inherit; }
/* measure: FAQ answers ran 93 characters a line at 1440 and the section ledes 82 to 83; the review gate's limit is 75 */
main .pn-head .pn-lede { max-width: 36em; }
.px-hero .pn-sub { max-width: 31em; }
main details p { max-width: 35em; }
/* the works-with link was a 21px-high tap target at 375; the page's other text links are 40px */
main .pn-lnk { min-height: var(--pn-space-10); display: inline-flex; align-items: center; }
/* the proof figure's label says what the number counts, so it is a sentence: it sits under the number, not beside it */
.px-proof .px-fig { display: grid; gap: var(--pn-space-2); }
.px-proof .px-fig span { max-width: 24em; color: var(--pn-text-head); }

/* ---------- round 1: every page built (14 Nov) ---------- */
/* a customer wordmark is capped in width as well as height: Trinny London's file is 356 x 14.56, which drew 587px wide at
   24px high and scrolled the phone sideways */
.px-proof .px-logo, .px-quote .px-logo { max-width: min(100%, 240px); color: var(--pn-text-head); }

/* Round 1 review, session 3 (14 Nov): each fix below was seen on a capture at the width named. */
/* 768: three related cards stacked one per row, each about 450px of picture. Three across from 640 up. */
@media (min-width: 640px) and (max-width: 1023.98px) { .px-rel .fx-rel { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--pn-space-4); } }
/* A section lede inside a card or list section took the card body's small size (.px-cards p). It is a lede everywhere. */
.px-cards .pn-head .pn-lede, .px-list .pn-head .pn-lede { font-size: var(--pn-type-lede-size); line-height: var(--pn-type-lede-line); }
/* 768: an odd last card sat alone beside an empty slot. It takes the full row. */
@media (min-width: 640px) and (max-width: 1099.98px) { .px-cards li:last-child:nth-child(odd) { grid-column: 1 / -1; } }
/* 1440: five cards fell three and two with an empty slot. Three across, then two that share the row. */
@media (min-width: 1100px) {
  .px-cards ul:has(> li:nth-child(5):last-child) { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .px-cards ul:has(> li:nth-child(5):last-child) > li { grid-column: span 2; }
  .px-cards ul:has(> li:nth-child(5):last-child) > li:nth-child(n+4) { grid-column: span 3; }
}


/* ================= round 2 (14 Nov 2026): page-specific visuals, each rebuilt from an asset on the live page ================= */
/* the foundation family's accents (lines, labels, outlines and lit fills) are violet; its aurora backgrounds and glass tiles
   keep the tokens' green (Andrew, 17 Nov 2026: "I didn't want you to change all the green gradient backgrounds ... it is only
   these accents"). The tokens are untouched, so the tiles and the aurora, which read them, stay green. */
[data-fam="foundation"] { --fam-edge: var(--pn-color-violet-300); --fam-ray: var(--pn-color-violet-100); --fam-glow: var(--pn-color-family-analytics-glow); }
[data-fam="analytics"] { --fam-edge: var(--pn-color-family-analytics-edge); --fam-ray: var(--pn-color-family-analytics-ray); --fam-glow: var(--pn-color-family-analytics-glow); }
[data-fam="realtime"] { --fam-edge: var(--pn-color-family-realtime-edge); --fam-ray: var(--pn-color-family-realtime-ray); --fam-glow: var(--pn-color-family-realtime-glow); }

/* ---------- hero: the journey tile (live page: the anonymous-to-known journey). A rail joins the events to the one ID. ---------- */
.px-jr .px-r { position: relative; padding-left: var(--pn-space-10); }
.px-jr .px-r::before { content: ""; position: absolute; left: 15px; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: var(--pn-color-ink-400); z-index: 1; }
.px-jr .px-r::after { content: ""; position: absolute; left: 19px; top: 50%; height: calc(100% + var(--pn-space-2)); border-left: 2px solid var(--pn-color-alpha-white-24); }
.px-jr .px-r:last-child::after { display: none; }
.px-jr .px-r.sel::before { background: var(--fam-ray, var(--pn-color-ink-100)); box-shadow: 0 0 0 4px var(--pn-color-alpha-white-16); }

/* ---------- step buttons shared by the graph and the pipeline chart: grey selected state, never violet ---------- */
.px-ig-steps, .px-fl-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--pn-space-2); }
.px-ig-steps button, .px-fl-steps button { width: 100%; height: 100%; display: grid; grid-template-columns: var(--pn-space-6) minmax(0, 1fr); gap: var(--pn-space-3); align-items: start; text-align: left; padding: var(--pn-space-3); border: 0; border-radius: var(--pn-radius-lg); background: transparent; box-shadow: inset 0 0 0 1px var(--pn-color-alpha-white-10); color: var(--pn-text-body); font: 400 var(--pn-type-small-size)/1.5 var(--pn-font-family-sans); cursor: pointer; transition: background var(--pn-duration-hover), box-shadow var(--pn-duration-hover); }
.px-ig-steps button:hover, .px-fl-steps button:hover { background: var(--pn-surface-hover); }
.px-ig-steps button:focus-visible, .px-fl-steps button:focus-visible { outline: 2px solid var(--pn-focus); outline-offset: 2px; }
.px-ig-steps button[aria-pressed="true"], .px-fl-steps button[aria-pressed="true"] { background: var(--pn-surface-selected); box-shadow: inset 0 0 0 1px var(--pn-color-alpha-white-30); color: var(--pn-color-ink-100); }
.px-ig-steps button > i, .px-fl-steps button > i, .px-fl i[data-n] { font: 600 var(--pn-type-caption-size)/var(--pn-space-6) var(--pn-font-family-sans); font-style: normal; width: var(--pn-space-6); height: var(--pn-space-6); border-radius: 50%; text-align: center; background: var(--pn-color-ink-750); color: var(--pn-color-ink-100); transition: background .3s, color .3s; }
.px-ig-steps button[aria-pressed="true"] > i, .px-fl-steps button[aria-pressed="true"] > i { background: var(--pn-color-ink-100); color: var(--pn-color-ink-900); }
.px-ig-steps button b, .px-fl-steps button b { display: block; font-weight: 600; font-size: var(--pn-type-body-size); line-height: 1.35; color: var(--pn-text-head); }
.px-ig-steps button span span, .px-fl-steps button span span { display: block; margin-top: var(--pn-space-1); }

/* ---------- the identity graph (live page: the three-panel "graph state" drawing) ---------- */
.px-ig { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--pn-space-8); }
.px-ig-side { display: grid; gap: var(--pn-space-4); justify-items: start; align-content: start; }
.px-ig-side ol { width: 100%; }
@media (min-width: 1024px) {
  .px-ig { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-areas: "stage copy" "stage side"; grid-template-rows: auto 1fr; column-gap: var(--pn-space-16); row-gap: var(--pn-space-8); }
  .px-ig > .px-copy { grid-area: copy; } .px-ig-stage { grid-area: stage; align-self: start; } .px-ig-side { grid-area: side; }
}
.px-ig-stage { position: relative; margin: 0; aspect-ratio: 5 / 6; border-radius: var(--pn-radius-2xl); overflow: hidden; background: var(--pn-surface-panel); box-shadow: inset 0 0 0 1px var(--pn-color-alpha-white-10); }
@media (min-width: 640px) { .px-ig-stage { aspect-ratio: 6 / 5; } }
.px-ig-stage svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.px-ig-stage line { stroke: var(--pn-color-ink-500); stroke-width: 1.5; vector-effect: non-scaling-stroke; transition: opacity .5s var(--pn-easing-out), stroke .5s; }
.px-ig-n, .px-ig-p { position: absolute; transform: translate(-50%, -50%); z-index: 1; display: grid; justify-items: center; text-align: center; white-space: nowrap; transition: left .7s var(--pn-easing-in-out), top .7s var(--pn-easing-in-out), transform .7s var(--pn-easing-in-out), opacity .5s var(--pn-easing-out); }
.px-ig-n { width: 104px; aspect-ratio: 1; align-content: center; gap: 2px; border-radius: 50%; }
@media (min-width: 640px) { .px-ig-n { width: 128px; } }
.px-ig-n small, .px-ig-p small { font: 500 var(--pn-type-caption-size)/1.3 var(--pn-font-family-mono); color: var(--pn-color-ink-300); }
.px-ig-n code, .px-ig-p code { font: 600 var(--pn-type-small-size)/1.3 var(--pn-font-family-mono); color: var(--pn-color-white); }
.px-ig-a { background: var(--fam-glow); box-shadow: inset 0 0 0 2px var(--fam-edge), 0 0 48px -8px var(--fam-edge); }
.px-ig-a small { color: var(--fam-ray); }
.px-ig-b { background: var(--pn-color-ink-800); box-shadow: inset 0 0 0 2px var(--pn-color-ink-500); }
.px-ig-p { padding: var(--pn-space-2) var(--pn-space-3); border-radius: var(--pn-radius-sm); background: var(--pn-color-ink-850); box-shadow: inset 0 0 0 1px var(--pn-color-alpha-white-24); }
.px-ig-st { position: absolute; left: var(--pn-space-4); top: var(--pn-space-4); display: grid; }
.px-ig-st b { grid-area: 1 / 1; justify-self: start; padding: var(--pn-space-1) var(--pn-space-2); border-radius: var(--pn-radius-xs); background: var(--pn-color-alpha-white-12); color: var(--pn-color-ink-100); font: 600 var(--pn-type-caption-size)/1.2 var(--pn-font-family-sans); white-space: nowrap; opacity: 0; transition: opacity .4s; }
.px-ig-st .st3 { background: var(--pn-status-valid-bg); color: var(--pn-status-valid-fg); }
/* which parts each step shows: step 1 the first profile, step 2 a second one, step 3 the merge */
.px-ig-stage .s2, .px-ig-stage .s3 { transition: opacity .5s var(--pn-easing-out), left .7s var(--pn-easing-in-out), top .7s var(--pn-easing-in-out), transform .7s var(--pn-easing-in-out), stroke .5s; }
.px-ig-stage[data-step="1"] .s2, .px-ig-stage[data-step="1"] .s3, .px-ig-stage[data-step="2"] .s3, .px-ig-stage[data-step="3"] .only2 { opacity: 0; }
.px-ig-stage[data-step="1"] .st1, .px-ig-stage[data-step="2"] .st2, .px-ig-stage[data-step="3"] .st3 { opacity: 1; }
.px-ig-stage[data-step="1"] line.n1, .px-ig-stage[data-step="2"] line.n2, .px-ig-stage[data-step="3"] line.n3 { stroke: var(--fam-ray); stroke-width: 2; }
/* step 3 keeps the second ID on the stage, dimmed and joined to the first by a dashed line: that is the merge (review, 14 Nov) */
.px-ig-stage[data-step="3"] .px-ig-b { background: var(--pn-color-ink-850); box-shadow: none; outline: 2px dashed var(--pn-color-ink-500); outline-offset: -2px; } /* retired, not faded: fading its text failed the readability floor (3.1:1) */
.px-ig-stage[data-step="2"] .px-ig-b { box-shadow: inset 0 0 0 2px var(--fam-ray), 0 0 40px -10px var(--fam-edge); }
.px-ig-stage line.mg { stroke: var(--fam-ray); stroke-width: 2; stroke-dasharray: 5 5; }
.px-ig-ml { position: absolute; transform: translate(-50%, -100%); z-index: 2; padding: 2px var(--pn-space-2); border-radius: var(--pn-radius-xs); background: var(--pn-status-valid-bg); color: var(--pn-status-valid-fg); font: 600 var(--pn-type-caption-size)/1.3 var(--pn-font-family-sans); }
.px-ig-re { position: absolute; right: var(--pn-space-4); bottom: var(--pn-space-4); z-index: 2; height: var(--pn-space-8); padding: 0 var(--pn-space-3); border: 0; border-radius: var(--pn-radius-pill); background: var(--pn-surface-control); box-shadow: inset 0 0 0 1px var(--pn-color-alpha-white-24); color: var(--pn-color-ink-100); font: 600 var(--pn-type-caption-size)/1 var(--pn-font-family-sans); cursor: pointer; }
.px-ig-re:hover { background: var(--pn-surface-control-hover); }
.px-ig-re:focus-visible { outline: 2px solid var(--pn-focus); outline-offset: 2px; }
@keyframes px-ig-merge { 0%, 40% { box-shadow: inset 0 0 0 2px var(--fam-edge), 0 0 48px -8px var(--fam-edge), 0 0 0 0 var(--fam-ray); } 100% { box-shadow: inset 0 0 0 2px var(--fam-edge), 0 0 48px -8px var(--fam-edge), 0 0 0 28px transparent; } }
.px-ig-stage.px-play[data-step="3"] .px-ig-a { animation: px-ig-merge 1.3s var(--pn-easing-out) 1; }
.px-ig-ev { display: flex !important; flex-wrap: wrap; gap: var(--pn-space-1) var(--pn-space-2); margin-top: var(--pn-space-2) !important; }
.px-ig-ev code { font: 500 var(--pn-type-caption-size)/1.4 var(--pn-font-family-mono); padding: 2px var(--pn-space-2); border-radius: var(--pn-radius-xs); background: var(--pn-color-alpha-white-10); color: var(--pn-color-ink-100); }
.px-ig-tx { margin-top: var(--pn-space-2) !important; }
@media (prefers-reduced-motion: reduce) { .px-ig-stage *, .px-fl * { transition: none !important; animation: none !important; } }

/* ---------- the detailed pipeline chart (live page: Collect, Validate, Enrich with the numbered Identities calls) ---------- */
.px-fl { margin: 0; --ln: var(--pn-color-ink-500); --g: var(--pn-space-8); }
.px-fl ul { list-style: none; margin: 0; padding: 0; position: relative; }
.px-fl-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--pn-space-10); justify-items: center; }
.px-fl-src { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--pn-space-2); }
.px-fl-out { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--pn-space-2); width: 100%; max-width: 520px; }
.px-fl-src li, .px-fl-out li { position: relative; min-height: 44px; display: grid; align-content: center; gap: 2px; padding: var(--pn-space-2) var(--pn-space-4); border-radius: var(--pn-radius-sm); background: var(--pn-surface-raised); box-shadow: inset 0 0 0 1px var(--pn-color-alpha-white-10); color: var(--pn-text-head); font: 500 var(--pn-type-small-size)/1.3 var(--pn-font-family-sans); transition: background .3s, box-shadow .3s; }
.px-fl-out li b { font-weight: 500; }
.px-fl-out li small { display: flex; align-items: center; gap: var(--pn-space-2); color: var(--pn-text-body); font-size: var(--pn-type-caption-size); }
.px-fl-out li small i { flex: none; width: var(--pn-space-5); height: var(--pn-space-5); line-height: var(--pn-space-5); }
.px-fl-pipe { position: relative; width: 100%; max-width: 520px; padding: var(--pn-space-5) var(--pn-space-5) var(--pn-space-6); border-radius: var(--pn-radius-2xl); background: var(--pn-surface-panel); box-shadow: inset 0 0 0 1px var(--pn-color-alpha-white-10); }
.px-fl-pipe::before, .px-fl-pipe::after { content: ""; position: absolute; left: 50%; height: var(--pn-space-10); border-left: 1px solid var(--ln); }
.px-fl-pipe::before { bottom: 100%; } .px-fl-pipe::after { top: 100%; }
.px-fl-cap { display: block; font: 600 var(--pn-type-caption-size)/1.2 var(--pn-font-family-sans); color: var(--pn-text-body); }
.px-fl-in { position: relative; margin-top: var(--pn-space-4); display: grid; grid-template-columns: minmax(0, 1fr) 64px minmax(0, 1fr); grid-template-rows: repeat(4, 60px); row-gap: var(--g); }
.px-fl-st, .px-fl-id { position: relative; display: grid; align-content: center; justify-items: center; text-align: center; gap: 2px; border-radius: var(--pn-radius-sm); font: 600 var(--pn-type-small-size)/1.3 var(--pn-font-family-sans); color: var(--pn-text-head); transition: background .3s, box-shadow .3s; }
.px-fl-st { grid-column: 1; grid-row: var(--i); background: var(--pn-surface-raised); box-shadow: inset 0 0 0 1px var(--pn-color-alpha-white-10); }
.px-fl-st b { font-weight: 600; }
.px-fl-st code { font: 500 var(--pn-type-caption-size)/1.3 var(--pn-font-family-mono); color: var(--pn-color-ink-300); }
.px-fl-st::after, .px-fl-st::before { content: ""; position: absolute; }
.px-fl-st::after { left: 50%; top: 100%; height: var(--g); border-left: 1px solid var(--ln); }
.px-fl-st::before { left: 50%; top: calc(100% + var(--g) - 5px); margin-left: -4px; border: 4px solid transparent; border-top: 5px solid var(--ln); border-bottom: 0; z-index: 1; }
.px-fl-st[data-k="out"]::after, .px-fl-st[data-k="out"]::before { display: none; }
.px-fl-id { grid-column: 3; grid-row: 3; background: var(--pn-surface-raised); box-shadow: inset 0 0 0 1px var(--pn-color-alpha-white-10); }
/* the product node lights only on the steps it works in (Andrew, 18 Nov 2026) */
.px-fl-id.on { background: var(--fam-glow); box-shadow: inset 0 0 0 2px var(--fam-edge), 0 0 32px -10px var(--fam-edge); color: var(--pn-color-white); }
.px-fl-lk { grid-column: 2; grid-row: 3; position: relative; z-index: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--pn-space-2); }
.px-fl-lk i { position: relative; }
.px-fl-lk i::before, .px-fl-lk i::after { content: ""; position: absolute; }
.px-fl-lk i::before { z-index: -1; }
@media (max-width: 1023.98px) {
  .px-fl-lk i::before { top: 50%; left: -20px; right: -20px; border-top: 1px solid var(--ln); }
  .px-fl-lk i::after { top: 50%; margin-top: -4px; border: 4px solid transparent; }
  .px-fl-lk i[data-n="1"]::after { right: -21px; border-left: 5px solid var(--ln); border-right: 0; }
  .px-fl-lk i[data-n="2"]::after { left: -21px; border-right: 5px solid var(--ln); border-left: 0; }
}
.px-fl-mg { grid-column: 2 / 4; grid-row: 4; position: relative; }
.px-fl-mg::before, .px-fl-mg::after { content: ""; position: absolute; transition: border-color .3s; }
.px-fl-mg::before { left: 0; right: calc((100% - 64px) / 2); top: calc(-1 * var(--g)); bottom: 50%; border-right: 1px dashed var(--ln); border-bottom: 1px dashed var(--ln); border-bottom-right-radius: var(--pn-radius-sm); }
.px-fl-mg::after { left: 0; top: 50%; margin-top: -4.5px; border: 4px solid transparent; border-right: 5px solid var(--ln); border-left: 0; }
.px-fl-mg i { position: absolute; left: 32px; top: 50%; transform: translate(-50%, -50%); }
@media (min-width: 1024px) {
  .px-fl-grid { grid-template-columns: 148px minmax(0, 1fr) 216px; gap: 56px; align-items: center; justify-items: stretch; }
  .px-fl-src, .px-fl-out { display: grid; grid-template-columns: minmax(0, 1fr); max-width: none; }
  .px-fl-src li::after, .px-fl-out li::before { content: ""; position: absolute; top: 50%; width: 28px; border-top: 1px solid var(--ln); }
  .px-fl-src li::after { left: 100%; } .px-fl-out li::before { right: 100%; }
  .px-fl-src::after, .px-fl-out::before { content: ""; position: absolute; top: 22px; bottom: 22px; border-left: 1px solid var(--ln); }
  .px-fl-src::after { left: calc(100% + 28px); } .px-fl-out::before { left: -28px; }
  .px-fl-pipe { max-width: none; padding: var(--pn-space-5) var(--pn-space-6) var(--pn-space-6); }
  .px-fl-pipe::before, .px-fl-pipe::after { left: auto; top: auto; bottom: 54px; height: 0; width: 28px; border-left: 0; border-top: 1px solid var(--ln); }
  .px-fl-pipe::before { right: 100%; } .px-fl-pipe::after { left: 100%; }
  .px-fl-in { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.25fr); grid-template-rows: 52px 44px 60px; column-gap: var(--g); row-gap: 0; }
  .px-fl-st { grid-column: var(--i); grid-row: 3; }
  .px-fl-st::after { left: 100%; top: 50%; height: 0; width: var(--g); border-left: 0; border-top: 1px solid var(--ln); }
  .px-fl-st::before { left: calc(100% + var(--g) - 5px); top: 50%; margin: -4px 0 0; border: 4px solid transparent; border-left: 5px solid var(--ln); border-right: 0; }
  .px-fl-id { grid-column: 3; grid-row: 1; }
  .px-fl-lk { grid-column: 3; grid-row: 2; flex-direction: row; gap: var(--pn-space-10); }
  .px-fl-lk i::before { left: 50%; top: -12px; bottom: -12px; border-left: 1px solid var(--ln); }
  .px-fl-lk i::after { left: 50%; margin-left: -4px; border: 4px solid transparent; }
  .px-fl-lk i[data-n="1"]::after { top: -13px; border-bottom: 5px solid var(--ln); border-top: 0; }
  .px-fl-lk i[data-n="2"]::after { bottom: -13px; border-top: 5px solid var(--ln); border-bottom: 0; }
  .px-fl-mg { grid-column: 4; grid-row: 1 / 3; }
  .px-fl-mg::before { left: calc(-1 * var(--g)); right: 50%; top: 26px; bottom: 0; border-bottom: 0; border-top: 1px dashed var(--ln); border-radius: 0 var(--pn-radius-sm) 0 0; }
  .px-fl-mg::after { left: auto; right: 50%; top: auto; bottom: -1px; margin: 0 -4.5px 0 0; border: 4px solid transparent; border-top: 5px solid var(--ln); border-bottom: 0; }
  .px-fl-mg i { left: 25%; top: 26px; }
}
/* the chosen step lights its part of the chart (class .on, set in the markup for step 1 and by product.js after that);
   the product's own node or stage keeps its family colour throughout */
/* a lit part is the brand violet ring, the same as .px-fl-lit (Andrew, 18 Nov 2026: the grey selected state read as nothing lit) */
.px-fl [data-k].on:not(.px-fl-id):not(.px-fl-mg):not(.px-fl-lit) { background: var(--fam-glow); box-shadow: inset 0 0 0 2px var(--fam-edge), 0 0 32px -10px var(--fam-edge); color: var(--pn-color-white); }
.px-fl [data-k].on code, .px-fl [data-k].on small { color: var(--pn-color-ink-100); }
.px-fl i[data-n].on { background: var(--fam-ray); color: var(--pn-color-ink-950); }
.px-fl-mg.on::before { border-color: var(--fam-ray); }
.px-fl-mg.on::after { border-right-color: var(--fam-ray); }
@media (min-width: 1024px) { .px-fl-mg.on::after { border-right-color: transparent; border-top-color: var(--fam-ray); } }
/* a page whose own product is one of the stages (no node above the row): that stage carries the family colour */
.px-fl-lit { background: var(--fam-glow); box-shadow: inset 0 0 0 2px var(--fam-edge), 0 0 32px -10px var(--fam-edge); color: var(--pn-color-white); }
.px-fl-lit.on { box-shadow: inset 0 0 0 2px var(--fam-ray), 0 0 40px -8px var(--fam-edge); }
.px-fl-st small { font: 400 var(--pn-type-caption-size)/1.3 var(--pn-font-family-sans); color: var(--pn-color-ink-300); }
.px-fl-plain .px-fl-in { grid-template-rows: repeat(var(--n, 4), 60px); }
@media (min-width: 1024px) { .px-fl-plain .px-fl-in { grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); grid-template-rows: 60px; } .px-fl-plain .px-fl-st { grid-row: 1; } .px-fl-plain .px-fl-pipe::before, .px-fl-plain .px-fl-pipe::after { bottom: 54px; } }
.px-fl-steps { margin-top: var(--pn-space-12); }
@media (min-width: 640px) { .px-fl-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .px-fl-steps { grid-template-columns: repeat(var(--c, 4), minmax(0, 1fr)); gap: var(--pn-space-3); } }
.px-flow .pn-head { max-width: var(--pn-layout-measure-head); }

/* ---------- the product screen (live page: the Console screenshot), dark, at full size on the family panel ---------- */
.px-screen .pn-head { margin-bottom: var(--pn-space-4); }
.px-up { margin: 0 0 var(--pn-space-10); }
.px-screen .px-panel { padding: clamp(var(--pn-space-3), 5vw, var(--pn-space-16)); }
.px-win { position: relative; z-index: 2; width: 100%; max-width: 1000px; display: grid; grid-template-columns: minmax(0, 1fr); border-radius: var(--pn-radius-xl); overflow: hidden; background: var(--pn-color-ink-850); color: var(--pn-color-white); box-shadow: inset 0 0 0 1px var(--pn-color-alpha-white-12), 0 40px 90px -40px var(--pn-color-alpha-shade-92); text-align: left; font: 400 var(--pn-type-small-size)/1.4 var(--pn-font-family-sans); }
.px-win-nav { display: none; padding: var(--pn-space-5) var(--pn-space-3); background: var(--pn-color-alpha-night-30); box-shadow: inset -1px 0 0 var(--pn-color-alpha-white-08); }
@media (min-width: 768px) { .px-win { grid-template-columns: 200px minmax(0, 1fr); } .px-win-nav { display: block; } }
.px-win-lk { display: block; height: 18px; width: auto; margin: 0 var(--pn-space-2) var(--pn-space-5); color: var(--pn-color-white); }
.px-win-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.px-win-nav li { padding: var(--pn-space-2) var(--pn-space-3); border-radius: var(--pn-radius-xs); color: var(--pn-color-ink-300); }
.px-win-nav li.sel { background: var(--pn-surface-selected); color: var(--pn-color-white); font-weight: 500; }
.px-win-main { display: grid; gap: var(--pn-space-3); padding: clamp(var(--pn-space-3), 3vw, var(--pn-space-6)); min-width: 0; }
.px-win-h { display: flex; align-items: center; gap: var(--pn-space-3); padding: var(--pn-space-1) 0; }
.px-win-h b { font-size: var(--pn-type-h4-size); font-weight: 600; }
.px-win-card { display: grid; gap: var(--pn-space-1); padding: var(--pn-space-4); border-radius: var(--pn-radius-sm); background: var(--pn-color-alpha-white-05); min-width: 0; }
.px-win-card > b { font-weight: 600; font-size: var(--pn-type-body-size); }
.px-win-card > small { color: var(--pn-color-ink-300); font-size: var(--pn-type-caption-size); }
.px-win-tb { margin-top: var(--pn-space-3); display: grid; }
.px-win-tb > div { display: grid; grid-template-columns: 56px minmax(0, 1fr) 52px; gap: var(--pn-space-3); align-items: center; min-height: 44px; padding: var(--pn-space-2) var(--pn-space-1); border-top: 1px solid var(--pn-color-alpha-white-08); }
.px-win-tb > .hd { min-height: 0; border-top: 0; color: var(--pn-color-ink-300); font: 600 var(--pn-type-caption-size)/1.2 var(--pn-font-family-sans); }
.px-win-tb .c0 { color: var(--pn-color-ink-300); font-variant-numeric: tabular-nums; }
.px-win-tb .hd .c0 { color: inherit; }
.px-win-tb .c1 { color: var(--pn-color-white); font-weight: 500; overflow-wrap: break-word; } /* names break after an underscore (wbr), never mid-word */
.px-win-tb .hd .c1 { color: inherit; font-weight: 600; }
.px-win-tb .hd .c3 { color: inherit; }
.px-win-tb .c2 { display: none; min-width: 0; }
.px-win-tb .c2 code { font: 500 var(--pn-type-caption-size)/1.4 var(--pn-font-family-mono); color: var(--pn-color-ink-100); overflow-wrap: anywhere; }
.px-win-tb .c2 small { display: block; color: var(--pn-color-ink-300); font-size: var(--pn-type-caption-size); }
.px-win-tb .c3 { justify-self: center; display: grid; color: var(--pn-color-ink-100); }
.px-win-tb .c3 svg, .px-win-note svg { width: 16px; height: 16px; }
@media (min-width: 560px) { .px-win-tb > div { grid-template-columns: 72px minmax(0, 1.1fr) minmax(0, 1.3fr) 64px; } .px-win-tb .c2 { display: block; } }
.px-win-note { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: var(--pn-space-3); margin: var(--pn-space-1) 0 0; padding-top: var(--pn-space-3); border-top: 1px solid var(--pn-color-alpha-white-08); color: var(--pn-color-ink-300); font-size: var(--pn-type-caption-size); line-height: 1.5; }
.px-win-note svg { margin-top: 2px; color: var(--pn-color-ink-100); }
.px-win-note b { display: block; color: var(--pn-color-white); font-weight: 600; font-size: var(--pn-type-small-size); }
.px-win-f { display: flex; flex-wrap: wrap; align-items: center; gap: var(--pn-space-2); margin: var(--pn-space-3) 0 var(--pn-space-1); padding: var(--pn-space-3); border-radius: var(--pn-radius-xs); background: var(--pn-color-alpha-white-05); }
.px-win-f code, .px-win-f i { font: 500 var(--pn-type-caption-size)/1.4 var(--pn-font-family-mono); font-style: normal; color: var(--pn-color-ink-100); padding: 2px var(--pn-space-2); }
.px-win-f code { border-radius: var(--pn-radius-xs); background: var(--pn-color-alpha-white-12); }
.px-win-f i { border-radius: var(--pn-radius-pill); box-shadow: inset 0 0 0 1px var(--pn-color-alpha-white-24); padding-inline: var(--pn-space-3); }
.px-win-f span { color: var(--pn-color-ink-300); }

.px-win-tb > .hd .c3 { color: inherit; }

/* ---------- round 2, fresh review (14 Nov): each fault below was seen on a capture ---------- */
/* hero journey: the resolved ID is the result, not a fifth event, so it leaves the rail */
.px-jr .px-r.sel { padding-left: var(--pn-space-3); margin-top: var(--pn-space-2); }
.px-jr .px-r.sel::before { display: none; }
.px-jr .px-r:nth-last-child(2)::after { display: none; }
/* chart: calls 1 and 2 read as plain posts with 5px heads */
@media (min-width: 1024px) {
  .px-fl-lk i::after { margin-left: -6px; border-width: 6px; }
  .px-fl-lk i[data-n="1"]::after { top: -15px; border-bottom-width: 8px; }
  .px-fl-lk i[data-n="2"]::after { bottom: -15px; border-top-width: 8px; }
  /* the source line reaches Collect and the output line leaves Enriched events, each with a head */
  .px-fl-pipe::before { right: auto; left: -28px; width: 52px; }
  .px-fl-pipe::after { left: auto; right: -28px; width: 52px; }
  .px-fl-in::before { content: ""; position: absolute; left: -6px; bottom: 26px; border: 4px solid transparent; border-left: 6px solid var(--ln); border-right: 0; }
  .px-fl-out li::after { content: ""; position: absolute; left: -6px; top: 50%; margin-top: -4px; border: 4px solid transparent; border-left: 6px solid var(--ln); border-right: 0; }
}
/* below 1024 one line dropped from under a single source chip; a rule under the whole row gathers every source, and one over the destinations feeds them all */
@media (max-width: 1023.98px) {
  .px-fl-grid { gap: var(--pn-space-10); }
  .px-fl-src, .px-fl-out, .px-fl-pipe { width: 100%; max-width: 640px; }
  .px-fl-src { padding-bottom: var(--pn-space-3); border-bottom: 1px solid var(--ln); }
  .px-fl-out { padding-top: var(--pn-space-3); border-top: 1px solid var(--ln); }
}
/* Console table: with the sidebar in, the Property column broke names mid-word at 768 */
@media (min-width: 768px) and (max-width: 1023.98px) { .px-win-tb > div { grid-template-columns: 72px minmax(0, 1fr) 64px; } .px-win-tb .c2 { display: none; } }
.px-win-bare { grid-template-columns: minmax(0, 1fr) !important; }
.px-win-r { margin-left: auto; color: var(--pn-color-ink-300); font-size: var(--pn-type-caption-size); }

/* ---------- round 4 (15 Nov 2026): the product screen plays a short loop ----------
   Andrew: the Identities Console screen "looks so good" but "seems a little dead"; show it working, as GitHub's Copilot page
   does (a muted 16s loop of the app in use straight under the hero, with a pause control). Ours is 10s: a tap, a change, a
   held end state, a fade back. The tap is the brand package's device (brand-package-a/src.html, .mods .tap: a 22px violet
   dot with a white ring), never a new cursor. The markup ships at the end state; .px-run (added by product.js only when
   motion is allowed) hides what the loop is about to add. */
.px-loop { display: grid; gap: var(--pn-space-3); justify-items: start; }
.px-loop > .px-panel { width: 100%; position: relative; }
.px-tap { position: absolute; z-index: 5; left: 92%; top: 96%; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; background: rgba(158, 98, 221, .35); box-shadow: 0 0 0 2px var(--pn-color-white), 0 4px 10px var(--pn-color-alpha-shade-92); opacity: 0; pointer-events: none; transition: left .6s var(--pn-easing-out), top .6s var(--pn-easing-out), opacity .25s linear, transform .15s var(--pn-easing-out); }
.px-tap.show { opacity: 1; }
.px-tap.press { transform: scale(.8); }
.px-loop [data-on] { transition: opacity .35s var(--pn-easing-out), transform .35s var(--pn-easing-out); }
.px-run [data-on]:not(.on), .px-run.px-reset [data-on] { opacity: 0; }
.px-loop .px-win-f[data-on] { max-height: 96px; overflow: hidden; transition: opacity .35s var(--pn-easing-out), max-height .35s var(--pn-easing-out), padding .35s var(--pn-easing-out), margin .35s var(--pn-easing-out); }
.px-run .px-win-f[data-on]:not(.on), .px-run.px-reset .px-win-f[data-on] { max-height: 0; padding-block: 0; margin-block: 0; }
.px-run [data-type].typing::after { content: ''; display: inline-block; width: 1px; height: 1em; margin-left: 1px; vertical-align: -2px; background: currentColor; }
.px-win-cbr { grid-template-columns: 18px minmax(0, 1fr); }
.px-cb { width: 18px; height: 18px; margin-top: 1px; border-radius: var(--pn-radius-xs); box-shadow: inset 0 0 0 1.5px var(--pn-color-alpha-white-30); display: grid; place-items: center; transition: background-color .2s var(--pn-easing-out); }
.px-cb i { display: grid; }
.px-cb svg { width: 14px; height: 14px; margin: 0; color: var(--pn-color-white); }
.px-cb.hit { background: var(--pn-color-alpha-white-24); }
.px-win-fh { display: flex; align-items: center; justify-content: space-between; gap: var(--pn-space-3); }
.px-win-fh b { font-weight: 600; font-size: var(--pn-type-body-size); }
.px-win-btn { flex: none; padding: var(--pn-space-1) var(--pn-space-3); border-radius: var(--pn-radius-pill); box-shadow: inset 0 0 0 1px var(--pn-color-alpha-white-24); color: var(--pn-color-ink-100); font: 500 var(--pn-type-caption-size)/1.4 var(--pn-font-family-sans); transition: background-color .2s var(--pn-easing-out); }
.px-win-btn.hit { background: var(--pn-surface-selected); color: var(--pn-color-white); }
.px-loop-pp { display: inline-flex; align-items: center; gap: var(--pn-space-2); min-height: var(--pn-space-10); padding: 0 var(--pn-space-4) 0 var(--pn-space-3); border: 0; border-radius: var(--pn-radius-pill); background: var(--pn-color-alpha-white-12); color: var(--pn-color-white); font: 500 var(--pn-type-small-size)/1 var(--pn-font-family-sans); cursor: pointer; }
.px-loop-pp:hover { background: var(--pn-color-alpha-white-24); }
.px-loop-pp:focus-visible { outline: 2px solid var(--pn-focus); outline-offset: 3px; }
.px-loop-pp svg { width: 14px; height: 14px; }
.px-loop-pp svg + svg, .px-loop-pp.paused svg:first-child { display: none; }
.px-loop-pp.paused svg + svg { display: block; }
@media (prefers-reduced-motion: reduce) { .px-tap, .px-loop-pp { display: none; } }
/* the Event Forwarding screen loop: Amplitude starts unselected and the tap selects it */
.px-run .ef-pick > span.sel[data-at]:not(.on) { background: transparent; box-shadow: inset 0 0 0 1px var(--pn-color-alpha-white-12); }
.px-run .ef-pick > span.sel[data-at]:not(.on) svg { opacity: 0; }
.px-run .ef-mapc[data-at]:not(.on) { opacity: .35; }
.ef-mapc[data-at] { transition: opacity .35s var(--pn-easing-out); }
.ef-pick > span[data-at] { transition: background-color .2s var(--pn-easing-out), box-shadow .2s var(--pn-easing-out); }

/* The aurora stage (from /agents, .ag-iscreen): the product card sits inset on the aurora, so the light shows
   only around its edges and corners. The card stays an opaque panel; no text ever sits on the plate. One per section. */
.px-stage { min-width: 0; align-self: start; --stage-pad: clamp(var(--pn-space-2), 3vw, var(--pn-space-10)); padding: var(--stage-pad); border-radius: calc(var(--pn-radius-2xl) + 8px); box-shadow: inset 0 0 0 1px var(--pn-color-alpha-white-10); }
.px-stage > figure, .px-stage > .dp-ev { position: relative; z-index: 1; margin: 0; box-shadow: inset 0 0 0 1px var(--pn-color-alpha-white-12), 0 24px 50px -20px var(--pn-color-alpha-shade-78); }
@media (min-width: 1024px) {
  .px-ig > .px-stage, .et-seq > .px-stage, .es-wz > .px-stage { grid-area: stage; }
}
.ef-xw.px-stage .ef-xre { right: calc(var(--stage-pad) + var(--pn-space-4)); bottom: calc(var(--stage-pad) + var(--pn-space-4)); }
/* The stage draws the live family aurora (Andrew, 18 Nov 2026: "make them all different versions of the moving background
   animations"): the hero panel's moving shader in the page's family palette, each stage from its own seed (build-product.mjs).
   It replaces the recoloured still veil plates, which lost the greys and depth of the moving curtain. No scrim, as on the hero. */

/* ================= Data Model Pack pages, round 2 (14 Nov 2026) =================
   Digital Analytics and Ecommerce Analytics share one design. This block is the same in product.digital-analytics.css and
   product.ecommerce-analytics.css: change both. Michele's words and section order are fixed; only the treatment of each
   section changes, and each one is rebuilt from what her live page draws. Classes are px-dm-*. */

/* ---------- hero: her three chips, after the buttons (they ride in after her second paragraph, so CSS sets the order) ---------- */
.px-hero .px-dm-chips { order: 9; list-style: none; margin: var(--pn-space-2) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--pn-space-2) var(--pn-space-6); }
.px-dm-chips li { display: inline-flex; align-items: center; gap: var(--pn-space-2); color: var(--pn-text-head); font: 500 var(--pn-type-small-size)/1.4 var(--pn-font-family-sans); }
.px-dm-chips svg { flex: none; width: var(--pn-icon-xs); height: var(--pn-icon-xs); color: var(--pn-color-ink-300); }
.px-dm-x { display: none; }

/* ---------- her jump links: a quiet bar under the hero; each target sits at the top of its section, clear of the nav ---------- */
.px-dm-jumpsec.pn-sec { padding-block: 0; }
.px-dm-jump { display: flex; flex-wrap: wrap; gap: 0 var(--pn-space-8); padding-block: var(--pn-space-2); border-block: 1px solid var(--pn-border-hairline); }
.px-dm-jump a { display: inline-flex; align-items: center; min-height: var(--pn-space-12); color: var(--pn-text-body); font: 500 var(--pn-type-ui-size)/1.4 var(--pn-font-family-sans); text-decoration: none; }
.px-dm-jump a:hover { color: var(--pn-text-head); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.px-dm-jump a:focus-visible { outline: 2px solid var(--pn-focus); outline-offset: 2px; border-radius: var(--pn-radius-xs); }
.px-dm-a { position: absolute; left: 0; top: 0; scroll-margin-top: var(--pn-nav-height); }
.px-dm-anchor.pn-sec { padding-block: 0; }
.px-dm-anchor span { display: block; scroll-margin-top: var(--pn-nav-height); }

/* ---------- "What's included": her table, one row per package or module, beside the table it builds in your warehouse ---------- */
.px-dm-sel { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); }
.px-dm-sel > ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--pn-space-4); }
.px-dm-sel > .px-panel { display: none; }
.px-dm-row { display: grid; gap: var(--pn-space-3); align-content: start; padding: var(--pn-space-5); border-radius: var(--pn-radius-xl); box-shadow: inset 0 0 0 1px var(--pn-color-alpha-white-10); transition: background var(--pn-duration-hover), box-shadow var(--pn-duration-hover); }
.px-dm-row h3 { margin: 0; font-size: var(--pn-type-h4-size); line-height: 1.25; font-weight: 600; color: var(--pn-text-head); }
.px-dm-row h3 a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; text-decoration-color: var(--pn-color-alpha-white-45); }
.px-dm-row h3 a:hover { text-decoration-color: currentColor; }
.px-dm-row h3 a:focus-visible { outline: 2px solid var(--pn-focus); outline-offset: 2px; border-radius: var(--pn-radius-xs); }
.px-dm-row p { margin: 0; color: var(--pn-text-body); max-width: 38em; }
.px-dm-row .px-dm-q { font-size: var(--pn-type-small-size); line-height: 1.55; }
.px-dm-pick { display: flex; flex-wrap: wrap; gap: var(--pn-space-2); margin-top: var(--pn-space-1); }
.px-dm-pick button { min-height: var(--pn-space-10); max-width: 100%; padding: var(--pn-space-2) var(--pn-space-3); border: 0; border-radius: var(--pn-radius-sm); background: var(--pn-color-alpha-white-05); box-shadow: inset 0 0 0 1px var(--pn-color-alpha-white-12); color: var(--pn-color-ink-100); text-align: left; cursor: pointer; transition: background var(--pn-duration-hover), box-shadow var(--pn-duration-hover); }
.px-dm-pick button code { font: 500 var(--pn-type-caption-size)/1.4 var(--pn-font-family-mono); color: inherit; overflow-wrap: anywhere; }
.px-dm-pick button:hover { background: var(--pn-surface-hover); }
.px-dm-pick button:focus-visible { outline: 2px solid var(--pn-focus); outline-offset: 2px; }
/* the warehouse window: one table, its real column names down the left, one made-up row down the right */
.px-dm-w { display: none; }
.px-dm-win .px-win-h b { font-size: var(--pn-type-body-size); }
.px-dm-win .px-win-card > b code { font: 600 var(--pn-type-small-size)/1.4 var(--pn-font-family-mono); color: var(--pn-color-white); overflow-wrap: anywhere; }
.px-dm-cols { margin-top: var(--pn-space-3); display: grid; }
.px-dm-cols > div { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: var(--pn-space-3); align-items: baseline; padding: var(--pn-space-2) var(--pn-space-1); border-top: 1px solid var(--pn-color-alpha-white-08); }
.px-dm-cols code { font: 500 var(--pn-type-caption-size)/1.5 var(--pn-font-family-mono); overflow-wrap: anywhere; }
.px-dm-cols code:first-child { color: var(--pn-color-ink-300); }
.px-dm-cols code:last-child { color: var(--pn-color-white); }
@media (max-width: 1023.98px) {
  /* narrow: every row shows the table it picked, right under its copy */
  .px-dm-w.on { display: block; }
  .px-dm-sel > ul > li { display: grid; gap: var(--pn-space-3); }
  .px-dm-pick button.on { background: var(--pn-surface-selected); box-shadow: inset 0 0 0 1px var(--pn-color-alpha-white-30); color: var(--pn-color-white); }
}
@media (min-width: 1024px) {
  /* wide: the rows on the left, one window on the family panel on the right, which stays in view while the rows scroll */
  .px-dm-sel { --h: 540px; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: var(--pn-space-12); row-gap: var(--pn-space-4); align-items: start; }
  .px-dm-sel > ul, .px-dm-sel > ul > li { display: contents; }
  .px-dm-row { grid-column: 1; cursor: pointer; }
  .px-dm-row:hover { background: var(--pn-surface-hover); }
  li.cur > .px-dm-row { background: var(--pn-surface-panel); box-shadow: inset 0 0 0 1px var(--pn-color-alpha-white-30); }
  .px-dm-pick button.cur { background: var(--pn-surface-selected); box-shadow: inset 0 0 0 1px var(--pn-color-alpha-white-30); color: var(--pn-color-white); }
  .px-dm-sel > .px-panel, .px-dm-w.cur { grid-column: 2; grid-row: 1 / span var(--rows, 3); position: sticky; top: calc(var(--pn-nav-height) + var(--pn-space-6)); height: var(--h); }
  .px-dm-sel > .px-panel { display: block; }
  .px-dm-w.cur { display: grid; align-content: center; justify-items: center; padding: var(--pn-space-10); z-index: 2; }
}

/* ---------- the use cases: her eight cards, three across as live, "Also included" wide with its check list ---------- */
.px-dm-use .pn-wrap > ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--pn-space-4); }
.px-dm-use .pn-wrap > ul > li { display: flex; flex-direction: column; gap: var(--pn-space-3); padding: var(--pn-space-6); border-radius: var(--pn-radius-xl); background: var(--pn-surface-panel); box-shadow: inset 0 0 0 1px var(--pn-color-alpha-white-10); }
.px-dm-use h3 { margin: 0; font-size: var(--pn-type-h4-size); line-height: 1.25; font-weight: 600; color: var(--pn-text-head); text-wrap: balance; }
.px-dm-use li p { margin: 0; color: var(--pn-text-body); font-size: var(--pn-type-small-size); line-height: 1.55; }
.px-dm-use li p a { color: var(--pn-text-link); }
.px-dm-use .px-dm-built { margin-top: auto; padding-top: var(--pn-space-3); border-top: 1px solid var(--pn-border-hairline); color: var(--pn-text-subtle); font-size: var(--pn-type-caption-size); line-height: 1.5; }
@media (min-width: 640px) {
  .px-dm-use .pn-wrap > ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .px-dm-use .pn-wrap > ul > .px-dm-also { grid-column: span 2; }
}
@media (min-width: 640px) and (max-width: 1099.98px) { .px-dm-use .pn-wrap > ul > li:nth-last-child(2):nth-child(odd) { grid-column: span 2; } }
@media (min-width: 1100px) { .px-dm-use .pn-wrap > ul { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* her check lists (the "Also included" card and the two "Who uses" groups): bold lead, then the sentence */
.px-dm-also ul, .px-dm-groups ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--pn-space-4); align-content: start; }
.px-dm-also ul > li, .px-dm-groups ul > li { display: grid; grid-template-columns: var(--pn-icon-xs) minmax(0, 1fr); gap: var(--pn-space-3); color: var(--pn-text-body); }
.px-dm-also ul svg, .px-dm-groups ul svg { width: var(--pn-icon-xs); height: var(--pn-icon-xs); margin-top: var(--pn-space-1); color: var(--pn-color-ink-100); }
.px-dm-also ul b, .px-dm-groups ul b { color: var(--pn-text-head); font-weight: 600; }
.px-dm-also ul { margin-top: var(--pn-space-1); font-size: var(--pn-type-small-size); line-height: 1.55; }
@media (min-width: 900px) { .px-dm-also ul { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--pn-space-4) var(--pn-space-8); } }

/* ---------- "Who uses": her two groups side by side, open columns under a rule (no cards: the section above is the card grid) ---------- */
.px-dm-who .pn-head { margin-bottom: var(--pn-space-8); }
.px-dm-groups { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--pn-space-12); }
@media (min-width: 900px) { .px-dm-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--pn-space-16); } }
.px-dm-groups > div { display: grid; gap: var(--pn-space-6); align-content: start; padding-top: var(--pn-space-6); border-top: 1px solid var(--pn-border-strong); }
.px-dm-groups h3 { margin: 0; font-size: var(--pn-type-h3-size); line-height: 1.2; font-weight: 500; color: var(--pn-text-head); }
.px-dm-groups ul > li { max-width: 36em; }

/* ---------- the GA4 or Adobe section: her three points on one rail ---------- */
.px-dm-rail { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); }
.px-dm-rail li { position: relative; display: grid; gap: var(--pn-space-2); align-content: start; padding: 0 0 var(--pn-space-8) var(--pn-space-8); }
.px-dm-rail li::before { content: ""; position: absolute; left: 0; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--pn-color-ink-100); box-shadow: 0 0 0 4px var(--pn-color-alpha-white-16); z-index: 1; }
.px-dm-rail li::after { content: ""; position: absolute; left: 5.5px; top: 12px; bottom: -6px; border-left: 1px solid var(--pn-color-ink-500); }
.px-dm-rail li:last-child { padding-bottom: 0; }
.px-dm-rail li:last-child::after { display: none; }
.px-dm-rail h3 { margin: 0; font-size: var(--pn-type-h4-size); line-height: 1.25; font-weight: 600; color: var(--pn-text-head); }
.px-dm-rail p { margin: 0; color: var(--pn-text-body); max-width: 30em; }
@media (min-width: 900px) {
  .px-dm-rail { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .px-dm-rail li { padding: var(--pn-space-10) var(--pn-space-8) 0 0; }
  .px-dm-rail li::before { top: 0; }
  .px-dm-rail li::after { left: 0; right: 0; top: 5.5px; bottom: auto; border-left: 0; border-top: 1px solid var(--pn-color-ink-500); }
}

/* ---------- "How it works": her diagram as a chart (trackers and pipeline, then the three columns inside your warehouse, then who
   queries the tables), her legend, and her three numbered steps as the chart's steps. Stacks top to bottom under 1024. ---------- */
.px-dm-how .pn-head { margin-bottom: var(--pn-space-10); }
.px-dm-chart { --gap: var(--pn-space-8); }
.px-dm-g { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: stretch; max-width: 560px; margin-inline: auto; }
.px-dm-n { position: relative; display: grid; align-content: center; justify-items: center; text-align: center; gap: 2px; min-height: 64px; padding: var(--pn-space-3) var(--pn-space-4); border-radius: var(--pn-radius-sm); background: var(--pn-color-alpha-white-05); box-shadow: inset 0 0 0 1px var(--pn-color-alpha-white-10); color: var(--pn-text-head); font: 600 var(--pn-type-body-size)/1.3 var(--pn-font-family-sans); transition: background .3s, box-shadow .3s; }
.px-dm-n > b { font-weight: 600; }
.px-dm-n > small { font: 400 var(--pn-type-caption-size)/1.3 var(--pn-font-family-sans); color: var(--pn-color-ink-300); }
.px-dm-ours { background: var(--pn-surface-raised); box-shadow: inset 0 0 0 1px var(--pn-color-alpha-white-30); }
.px-dm-pack.px-dm-n, .px-dm-n.px-fl-lit { background: var(--fam-glow); box-shadow: inset 0 0 0 2px var(--fam-edge), 0 0 32px -10px var(--fam-edge); color: var(--pn-color-white); }
.px-dm-n.px-fl-lit.on { box-shadow: inset 0 0 0 2px var(--fam-ray), 0 0 40px -8px var(--fam-edge); }
.px-dm-n.px-fl-lit > small { color: var(--pn-color-ink-100); }
.px-dm-sp, .px-dm-out { display: grid; }
.px-dm-out { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--pn-space-3); }
.px-dm-wh { padding: var(--pn-space-5); border-radius: var(--pn-radius-2xl); border: 1px dashed var(--pn-color-alpha-white-30); }
.px-dm-cap { display: block; margin-bottom: var(--pn-space-3); font: 600 var(--pn-type-small-size)/20px var(--pn-font-family-sans); color: var(--pn-text-head); }
.px-dm-cols3 { display: grid; grid-template-columns: minmax(0, 1fr); }
.px-dm-col { display: grid; grid-template-rows: auto 1fr; min-width: 0; }
.px-dm-lab { display: block; margin-bottom: var(--pn-space-2); font: 600 var(--pn-type-caption-size)/16px var(--pn-font-family-sans); color: var(--pn-text-body); }
.px-dm-evs, .px-dm-pk, .px-dm-tabs { display: grid; gap: var(--pn-space-2); }
.px-dm-evs, .px-dm-pk { width: 100%; margin-top: var(--pn-space-3); }
.px-dm-evs code { padding: var(--pn-space-1) var(--pn-space-2); border-radius: var(--pn-radius-xs); background: var(--pn-color-alpha-white-08); font: 500 var(--pn-type-caption-size)/1.5 var(--pn-font-family-mono); color: var(--pn-color-ink-100); }
.px-dm-pk i, .px-dm-tabs i { font-style: normal; padding: var(--pn-space-2) var(--pn-space-3); border-radius: var(--pn-radius-xs); font: 600 var(--pn-type-small-size)/1.3 var(--pn-font-family-sans); color: var(--pn-color-white); }
.px-dm-pk i { background: var(--pn-color-alpha-white-16); }
.px-dm-tabs i { background: var(--pn-color-alpha-white-08); font-weight: 500; }
.px-dm-tabs.px-dm-n { align-content: start; justify-items: stretch; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: var(--pn-space-3); }
/* five tables in two columns left the fifth beside an empty slot at 375: an odd last one takes the row */
.px-dm-tabs i:last-child:nth-child(odd) { grid-column: 1 / -1; }
/* connectors: a line with a head, drawn as its own element so it can turn at 1024 */
.px-dm-ar, .px-dm-fork { position: relative; display: block; justify-self: center; width: 0; height: var(--gap); border-left: 1px solid var(--ln); }
.px-dm-ar::after, .px-dm-fork::after { content: ""; position: absolute; left: -4.5px; bottom: -1px; border: 4px solid transparent; border-top: 6px solid var(--ln); border-bottom: 0; }
.px-dm-leg { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--pn-space-2) var(--pn-space-6); margin: var(--pn-space-6) 0 0; color: var(--pn-text-body); font: 400 var(--pn-type-small-size)/1.4 var(--pn-font-family-sans); }
.px-dm-leg span { display: inline-flex; align-items: center; gap: var(--pn-space-2); }
.px-dm-leg span::before { content: ""; flex: none; width: 22px; height: 14px; border-radius: var(--pn-radius-xs); }
.px-dm-lo::before { background: var(--pn-surface-raised); box-shadow: inset 0 0 0 1px var(--pn-color-alpha-white-45); }
.px-dm-ly::before { border: 1px dashed var(--pn-color-alpha-white-45); }
/* her three steps carry no titles: the sentence is the step */
.px-dm-chart .px-fl-steps { margin-top: var(--pn-space-8); }
.px-dm-chart .px-fl-steps button { align-items: center; padding: var(--pn-space-4); }
.px-dm-chart .px-fl-steps button span span { margin-top: 0; font-size: var(--pn-type-body-size); line-height: 1.5; }
@media (min-width: 640px) and (max-width: 1023.98px) { .px-dm-chart .px-fl-steps { grid-template-columns: minmax(0, 1fr); max-width: 560px; margin-inline: auto; } }
@media (min-width: 1024px) {
  .px-dm-chart { --gap: var(--pn-space-10); --top: calc(var(--pn-space-5) + 56px); }
  .px-dm-g { grid-template-columns: 188px var(--gap) minmax(0, 1fr) var(--gap) 200px; align-items: stretch; max-width: none; }
  .px-dm-sp { grid-template-rows: 64px 1fr 64px; padding: var(--top) 0 var(--pn-space-5); }
  .px-dm-sp .px-dm-ar { height: auto; }
  .px-dm-cols3 { grid-template-columns: minmax(0, 1fr) var(--pn-space-8) minmax(0, 1.2fr) var(--pn-space-8) minmax(0, 1fr); }
  .px-dm-tabs.px-dm-n { grid-template-columns: minmax(0, 1fr); }
  .px-dm-arh { width: auto; height: 0; justify-self: stretch; align-self: center; margin-top: 24px; border-left: 0; border-top: 1px solid var(--ln); }
  .px-dm-arh::after { left: auto; right: -1px; bottom: auto; top: -4.5px; border: 4px solid transparent; border-left: 6px solid var(--ln); border-right: 0; }
  /* the pipeline's arrow leaves at the pipeline box and ends on the events table, inside the warehouse */
  .px-dm-in { align-self: end; margin: 0 calc(-1 * var(--pn-space-5)) calc(var(--pn-space-5) + 32px) 0; z-index: 1; }
  /* the fork: one line out of the modeled tables, split to the two tools */
  .px-dm-out { grid-template-columns: minmax(0, 1fr); grid-template-rows: 64px 1fr 64px; gap: 0; padding: var(--top) 0 var(--pn-space-5); }
  .px-dm-out .px-dm-n:last-child { grid-row: 3; }
  .px-dm-out .px-dm-n::before { content: ""; position: absolute; right: 100%; top: 50%; margin-top: -4px; border: 4px solid transparent; border-left: 6px solid var(--ln); border-right: 0; }
  .px-dm-fork { width: auto; height: auto; justify-self: stretch; border-left: 0; margin: calc(var(--top) + 32px) 0 calc(var(--pn-space-5) + 32px); }
  .px-dm-fork::before { content: ""; position: absolute; left: calc(-1 * var(--pn-space-5)); right: 50%; top: 50%; border-top: 1px solid var(--ln); }
  .px-dm-fork::after { left: 50%; right: 5px; top: 0; bottom: 0; border: 1px solid var(--ln); border-right: 0; }
}
/* a step lights its part (class .on: in the markup for the last step, set by product.js after that). While the steps play,
   the rows, packages and tables of a newly lit part arrive one after another. */
@keyframes px-dm-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.px-dm-chart.px-play .on .px-dm-evs code, .px-dm-chart.px-play .on .px-dm-pk i, .px-dm-chart.px-play .px-dm-tabs.on i { animation: px-dm-in .45s var(--pn-easing-out) both; }
.px-dm-chart.px-play .on :nth-child(2) { animation-delay: .08s; } .px-dm-chart.px-play .on :nth-child(3) { animation-delay: .16s; }
.px-dm-chart.px-play .on :nth-child(4) { animation-delay: .24s; } .px-dm-chart.px-play .on :nth-child(5) { animation-delay: .32s; }
.px-dm-chart.px-play .on :nth-child(6) { animation-delay: .4s; }


/* ================= round 4 (15 Nov 2026): the Hightouch pilot, variant A, carried in from product.digital-analytics-pilot.css.
   The px-dm rules above stay because the how-it-works chart uses them and Ecommerce shares the block. Variant B's Polar Day
   rules were dropped. ================= */
/* Digital Analytics, Hightouch treatment pilot (15 Nov 2026). Rules: shots/product-pages/hightouch-treatment.md.
   Every colour is a token (the pilot also had a Polar Day variant, B, since dropped).
   Fresh review (15 Nov) fixed in this pass: each visual is a different shape; violet only on the key value; one plate row;
   the diagram cut to five nodes and moved up; panels don't touch; no fake player; the GA4 band in two columns. */

/* ---------- chapters ---------- */
.px-ch { position: relative; margin-inline: clamp(8px, 1.6vw, 24px); border-radius: var(--pn-radius-4xl); isolation: isolate; }
.px-ch > .pn-sec { position: relative; z-index: 1; }
.px-ch > .pn-sec:first-of-type { padding-top: var(--pn-section-pad, clamp(64px, 8vw, 128px)); }
.px-ch > .pn-sec:last-of-type { padding-bottom: var(--pn-section-pad, clamp(64px, 8vw, 128px)); }
.px-ch + .pn-sec, .pn-sec + .px-ch { margin-top: var(--pn-space-6); }
.px-ch + .px-ch { margin-top: var(--pn-space-10); }
.px-ch-tint { background: radial-gradient(120% 70% at 50% 0%, #2C2456 0%, var(--pn-color-ink-900) 70%); box-shadow: inset 0 0 0 1px var(--pn-color-alpha-white-10); }
.px-ch-plate { overflow: hidden; box-shadow: inset 0 0 0 1px var(--pn-color-alpha-white-10); }
.px-ch-plate .px-proof .px-band, .px-ch-plate .px-da-sw { background: rgba(16, 10, 30, .7); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
/* B: the nav over the light sheet is solid night, not a translucent bar turning grey on white */

/* ---------- hero: the sessions table builds once on load; its one big number is big ---------- */
.px-da-hero .px-r { animation: px-da-in .6s cubic-bezier(.16, 1, .3, 1) both; }
.px-da-hero .px-r:nth-of-type(2) { animation-delay: .15s; } .px-da-hero .px-r:nth-of-type(3) { animation-delay: .3s; }
.px-da-hero .px-r:nth-of-type(4) { animation-delay: .45s; } .px-da-hero .px-r:nth-of-type(5) { animation-delay: .6s; }
.px-da-hero .px-tile-f { animation: px-da-in .6s .8s cubic-bezier(.16, 1, .3, 1) both; }
.px-da-hero .px-tile-f span { color: var(--pn-text-head); font-size: var(--pn-type-h4-size); font-weight: 600; letter-spacing: -.01em; }
@keyframes px-da-in { from { opacity: 0; transform: translateY(8px); filter: blur(4px); } }

/* ---------- claims stack under 900 so the paragraphs don't run four lines in a third of a tablet ---------- */
@media (max-width: 899px) { .px-claims ul { grid-template-columns: minmax(0, 1fr); gap: var(--pn-space-6); } }

/* ---------- how it works: five nodes, no subtitles ---------- */
.px-da-how .px-dm-n small, .px-da-how .px-dm-lab { display: none; }
.px-da-how .px-dm-col { display: grid; align-content: center; }
.px-da-how .px-dm-cols3 { align-items: center; }

/* ---------- feature rows ---------- */
.px-da-rows .pn-wrap { display: grid; gap: clamp(var(--pn-space-12), 7vw, var(--pn-space-24)); }
.px-da-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--pn-space-8); align-items: center; }
@media (min-width: 1024px) {
  .px-da-row { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--pn-space-16); }
  .px-da-row:nth-child(even) { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .px-da-row:nth-child(even) .px-copy { order: 2; }
}
.px-da-row .px-copy { display: grid; gap: var(--pn-space-4); justify-items: start; max-width: 30rem; }
.px-da-row h2 { margin: 0; color: var(--pn-text-head); font-size: var(--pn-type-heading-size); line-height: var(--pn-type-heading-line); letter-spacing: var(--pn-type-heading-tracking); font-weight: var(--pn-type-heading-weight); text-wrap: balance; }
.px-da-row .px-copy > p { margin: 0; color: var(--pn-text-body); font-size: var(--pn-type-lede-size); line-height: var(--pn-type-lede-line); }
.px-da-row .px-panel { aspect-ratio: 16 / 11; padding: var(--pn-space-8); overflow: hidden; position: relative; }
@media (max-width: 1023px) { .px-da-row .px-panel { aspect-ratio: auto; padding: var(--pn-space-6) var(--pn-space-4); } }
/* the plain panel: one step up from the ground, the card one step up again (950, 900, 800) */
.px-da-plain { background: radial-gradient(90% 80% at 50% 0%, var(--pn-color-ink-850), var(--pn-color-ink-900) 70%); }

/* the card every visual sits in */
.px-da-card { position: relative; z-index: 2; width: min(100%, 32rem); display: grid; gap: var(--pn-space-4); padding: var(--pn-space-6); border-radius: var(--pn-radius-xl); background: var(--pn-color-ink-800); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12), 0 30px 60px -30px rgba(0, 0, 0, .6); color: var(--pn-text-body); font-size: var(--pn-type-small-size); }
.fx-aurora .px-da-card { background: rgba(16, 10, 30, .74); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
@media (max-width: 1023px) { .px-da-card { width: 100%; } }
.px-da-h { display: flex; justify-content: space-between; align-items: baseline; gap: var(--pn-space-3); }
.px-da-h b { color: var(--pn-text-head); font-weight: 600; font-size: var(--pn-type-body-size); }
.px-da-h span { color: var(--pn-text-subtle); font-size: var(--pn-type-caption-size); }
.px-da-big { margin: 0; color: var(--pn-text-body); font-size: var(--pn-type-body-size); }
.px-da-big b { color: var(--pn-text-head); font-size: var(--pn-type-heading-size); font-weight: 600; letter-spacing: -.02em; margin-right: var(--pn-space-2); font-variant-numeric: tabular-nums; }

/* the funnel: three columns stepping down, only the last one violet */
.px-da-funnel ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--pn-space-3); align-items: end; height: 13rem; }
.px-da-funnel li { height: 100%; display: grid; grid-template-rows: auto 1fr auto; gap: var(--pn-space-2); }
.px-da-funnel li b { color: var(--pn-text-head); font-weight: 600; font-size: var(--pn-type-h4-size); font-variant-numeric: tabular-nums; }
.px-da-funnel li i { align-self: end; height: var(--h); min-height: 10px; border-radius: var(--pn-radius-md) var(--pn-radius-md) var(--pn-radius-xs) var(--pn-radius-xs); background: var(--pn-color-alpha-white-10); transition: height 1s cubic-bezier(.16, 1, .3, 1); }
.px-da-funnel li.key i { background: linear-gradient(180deg, #C08CF6, #8C98FC); }
.px-da-funnel li span { color: var(--pn-text-subtle); font-size: var(--pn-type-caption-size); }
.px-js .px-da-funnel:not(.px-seen) li i { height: 10px; }

/* the credit chart: neutral bars, the largest share violet */
.px-da-credit ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--pn-space-3); }
.px-da-credit li { position: relative; display: flex; justify-content: space-between; align-items: center; gap: var(--pn-space-3); min-height: var(--pn-space-12); padding: 0 var(--pn-space-4); border-radius: var(--pn-radius-md); background: var(--pn-color-alpha-white-05); overflow: hidden; }
.px-da-credit li i { position: absolute; inset: 0 auto 0 0; width: var(--w); background: rgba(255, 255, 255, .12); border-radius: inherit; transition: width .9s cubic-bezier(.16, 1, .3, 1), background .3s; }
.px-da-credit li.top i { background: linear-gradient(90deg, rgba(140, 152, 252, .5), rgba(192, 140, 246, .6)); }
.px-da-credit li > span, .px-da-credit li > b { position: relative; z-index: 1; color: var(--pn-text-head); }
.px-da-credit li > b { font-weight: 600; font-variant-numeric: tabular-nums; }
.px-js .px-da-credit:not(.px-seen) li i { width: 0; }
.px-da-models { display: flex; flex-wrap: nowrap; gap: var(--pn-space-1); padding: var(--pn-space-1); border-radius: var(--pn-radius-pill); background: var(--pn-surface-rail); justify-self: start; }
.px-da-models button { border: 0; padding: var(--pn-space-1) var(--pn-space-3); min-height: 36px; border-radius: var(--pn-radius-pill); background: transparent; color: var(--pn-text-body); font: 500 var(--pn-type-caption-size)/1.2 var(--pn-font-family-sans); cursor: pointer; transition: background .2s, color .2s; }
.px-da-models button:hover { color: var(--pn-text-head); }
.px-da-models button[aria-pressed="true"] { background: var(--pn-surface-selected); color: var(--pn-text-head); box-shadow: var(--pn-shadow-selected); }
.px-da-models button:focus-visible { outline: 2px solid var(--pn-focus); outline-offset: 2px; }

/* the editor: a file tab, line numbers, the result under it; on a wide screen it runs off the panel's right and bottom */
.px-da-sql { gap: 0; padding: 0; overflow: hidden; }
.px-da-tabs { display: flex; justify-content: space-between; gap: var(--pn-space-3); padding: var(--pn-space-3) var(--pn-space-5); border-bottom: 1px solid var(--pn-border-hairline); font-size: var(--pn-type-caption-size); }
.px-da-tabs b { color: var(--pn-text-head); font: 500 var(--pn-type-caption-size)/1.4 var(--pn-font-family-mono); }
.px-da-tabs span { color: var(--pn-text-subtle); }
.px-da-sql pre { margin: 0; padding: var(--pn-space-5); font: 400 var(--pn-type-code-size)/1.8 var(--pn-font-family-mono); color: var(--pn-text-head); white-space: pre-wrap; overflow-wrap: anywhere; }
.px-da-sql pre s { text-decoration: none; display: inline-block; width: 2ch; margin-right: 1.5ch; color: var(--pn-text-subtle); }
.px-da-sql pre i { font-style: normal; color: var(--pn-color-violet-300); }
.px-da-res { display: grid; padding: 0 var(--pn-space-5) var(--pn-space-5); }
.px-da-res > div { display: flex; justify-content: space-between; gap: var(--pn-space-3); padding: var(--pn-space-2) 0; border-top: 1px solid var(--pn-border-hairline); font: 400 var(--pn-type-code-size)/1.5 var(--pn-font-family-mono); color: var(--pn-text-head); transition: opacity .5s, transform .5s cubic-bezier(.16, 1, .3, 1); }
.px-da-res > div:nth-child(2) { transition-delay: .15s; } .px-da-res > div:nth-child(3) { transition-delay: .3s; }
.px-js .px-da-sql:not(.px-seen) .px-da-res > div { opacity: 0; transform: translateY(6px); }
@media (min-width: 1024px) {
  .px-da-row .px-panel:has(.px-da-bleed) { align-content: end; padding: var(--pn-space-12) var(--pn-space-12) 0; }
  .px-da-bleed { width: 100%; max-width: none; border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
}

/* the retention curve: the line draws once as it scrolls in */
.px-da-media svg { width: 100%; height: 8rem; display: block; overflow: visible; }
.px-da-media .ar { fill: rgba(192, 140, 246, .14); }
.px-da-media .ln { fill: none; stroke: #C08CF6; stroke-width: 2.5; vector-effect: non-scaling-stroke; stroke-dasharray: 100; stroke-dashoffset: 0; transition: stroke-dashoffset 1.6s cubic-bezier(.16, 1, .3, 1); }
.px-js .px-da-media:not(.px-seen) .ln { stroke-dashoffset: 100; }
.px-da-ax { display: flex; justify-content: space-between; color: var(--pn-text-subtle); font-size: var(--pn-type-caption-size); }

/* ---------- proof: a readable logo, the statement leads ---------- */
.px-proof .px-logo { height: var(--pn-space-10); }
.px-proof .px-st { color: var(--pn-text-head); font-size: var(--pn-type-h4-size); line-height: 1.4; }

/* ---------- the GA4 or Adobe band, in two columns ---------- */
.px-da-sw { display: grid; gap: var(--pn-space-6); padding: clamp(var(--pn-space-6), 4vw, var(--pn-space-12)); border-radius: var(--pn-radius-2xl); background: var(--pn-surface-panel); box-shadow: inset 0 0 0 1px var(--pn-color-alpha-white-10); }
@media (min-width: 1024px) { .px-da-sw { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--pn-space-16); align-items: start; } }
.px-da-sw h2 { margin: 0; color: var(--pn-text-head); font-size: var(--pn-type-h3-size); line-height: var(--pn-type-h3-line); font-weight: var(--pn-type-h3-weight); text-wrap: balance; }
.px-da-sw p { margin: 0; max-width: 40em; color: var(--pn-text-body); }
.px-da-switch .px-secacts { margin-top: var(--pn-space-4); display: flex; flex-wrap: wrap; gap: var(--pn-space-6); }
.px-ch-plate .px-da-switch.pn-sec { padding-top: 0; }

@media (prefers-reduced-motion: reduce) {
  .px-da-hero .px-r, .px-da-hero .px-tile-f { animation: none; }
  .px-da-card li i, .px-da-res > div, .px-da-media .ln { transition: none; }
}
