/* Product & Experience Design — the discipline's shared visual language (.pxh-*).
   Reused by the five capability pages: card system, flow diagram, dumbbell + curve data viz,
   stepper and assumption tracker. Tokens only. */

.pxh { --pxh-mono: var(--f); }
.pxh .pxh-mono { font-family: var(--f); font-size: var(--t-lbl); letter-spacing: .08em; text-transform: uppercase; }

/* ---------- CARD SYSTEM ---------- */
.pxh-cards { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--bdh-gap); }
.pxh-card {
  position: relative; display: flex; flex-direction: column; gap: 14px; min-width: 0;
  padding: 26px; border-radius: var(--r-lg); background: var(--paper); border: 1px solid var(--line);
  transition: border-color .3s var(--e), box-shadow .3s var(--e), transform .3s var(--e);
  scroll-margin-top: calc(var(--nav-h) + 24px);
}
.pxh-card:hover { border-color: var(--blue-line); box-shadow: var(--sh-1); }
.pxh-card:target { border-color: var(--blue); box-shadow: var(--sh-2); }
.pxh-card__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pxh-card__idx { font-family: var(--f); font-size: var(--t-lbl); letter-spacing: .1em; color: var(--blue); text-transform: uppercase; }
.pxh-card__ico { width: 44px; height: 44px; display: grid; place-items: center; border-radius: var(--r-sm); background: var(--blue-wash); color: var(--ink); flex: none; }
.pxh-card__ico .xt-ico { width: 22px; height: 22px; }
.pxh-card__k { font-family: var(--f); font-size: var(--t-lbl); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0; }
.pxh-card__t { font-family: var(--f-h); font-size: var(--t-h3); line-height: 1.15; letter-spacing: -.01em; color: var(--ink); margin: 0; }
.pxh-card__d { font-size: var(--t-sm); line-height: 1.6; color: var(--muted); margin: 0; }
.pxh-card__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.pxh-card__list li { display: flex; gap: 10px; align-items: baseline; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: var(--t-sm); color: var(--txt); }
.pxh-card__list li::before { content: ""; width: 6px; height: 6px; border-radius: 1px; background: var(--blue); flex: none; transform: translateY(-2px); }
.pxh-card__foot { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding-top: 6px; }
.pxh-card__meta { font-family: var(--f); font-size: var(--t-lbl); letter-spacing: .06em; color: var(--muted); text-transform: uppercase; }
.pxh-card--ink { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.pxh-card--ink .pxh-card__t { color: var(--on-ink); }
.pxh-card--ink .pxh-card__d, .pxh-card--ink .pxh-card__meta, .pxh-card--ink .pxh-card__k { color: var(--on-ink-2); }
.pxh-card--ink .pxh-card__ico { background: var(--on-ink-card); color: var(--on-ink); --xt-accent: var(--on-ink); }
.pxh-card--ink .pxh-card__list, .pxh-card--ink .pxh-card__list li { border-color: var(--on-ink-line); color: var(--on-ink); }

/* fidelity rail: how far an idea has travelled (1 signal … 5 shipped) */
.pxh-fid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; margin: 0; padding: 0; list-style: none; }
.pxh-fid li { height: 4px; border-radius: 2px; background: var(--line-2); }
.pxh-fid li.on { background: var(--blue); }
.pxh-fid__k { display: flex; justify-content: space-between; font-family: var(--f); font-size: var(--t-lbl); color: var(--faint); letter-spacing: .06em; text-transform: uppercase; margin-top: 6px; }

/* ---------- STATE PILLS + TRACKER ---------- */
.pxh-st { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: var(--r-pill); font-family: var(--f); font-size: var(--t-lbl); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; border: 1px solid var(--line-2); color: var(--muted); background: var(--paper); }
.pxh-st::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pxh-st[data-st="testing"] { color: var(--blue-d); border-color: var(--blue-line); background: var(--blue-wash); }
.pxh-st[data-st="validated"] { color: var(--paper); background: var(--blue); border-color: var(--blue); }
.pxh-st[data-st="invalidated"] { color: var(--ink); border-color: var(--ink); background: var(--paper); text-decoration: line-through; text-decoration-thickness: 1px; }
.pxh-st[data-st="measuring"] { color: var(--paper); background: var(--ink); border-color: var(--ink); }
.pxh-bar { height: 4px; border-radius: 2px; background: var(--line-2); overflow: hidden; }
.pxh-bar > i { display: block; height: 100%; width: var(--v, 0%); background: var(--blue); border-radius: inherit; transition: width .6s var(--e-io); }

/* ---------- FLOW DIAGRAM ---------- */
.pxh-flow { display: grid; grid-template-columns: repeat(var(--pxh-cols, 4), minmax(0, 1fr)); gap: 44px; position: relative; }
.pxh-flow__col { position: relative; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.pxh-flow__col + .pxh-flow__col::before {           /* connector lives in the gap: never through a node */
  content: ""; position: absolute; left: -38px; top: 58px; width: 32px; height: 1px; background: var(--blue);
}
.pxh-flow__col + .pxh-flow__col::after {
  content: ""; position: absolute; left: -12px; top: 55px; border: 3.5px solid transparent; border-left: 6px solid var(--blue); border-right: 0;
}
.pxh-flow__lbl { font-family: var(--f); font-size: var(--t-lbl); letter-spacing: .1em; text-transform: uppercase; color: var(--blue); margin: 0 0 4px; }
.pxh-flow__node { padding: 14px 16px; border-radius: var(--r); background: var(--paper); border: 1px solid var(--line-2); min-width: 0; }
.pxh-flow__node--key { border-color: var(--ink); box-shadow: var(--sh-1); }
.pxh-flow__node b { display: block; font-family: var(--f-h); font-weight: 500; font-size: var(--t-body); color: var(--ink); }
.pxh-flow__node span { display: block; font-size: var(--t-sm); color: var(--muted); line-height: 1.5; margin-top: 2px; }
.pxh-flow__gate { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: var(--r-sm); border: 1px dashed var(--blue-line); font-family: var(--f); font-size: var(--t-lbl); letter-spacing: .06em; text-transform: uppercase; color: var(--blue-d); }
.pxh-flow__gate .xt-ico { width: 16px; height: 16px; flex: none; }
@media (max-width: 860px) {
  .pxh-flow { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .pxh-flow__col + .pxh-flow__col::before { left: 24px; top: -34px; width: 1px; height: 26px; }
  .pxh-flow__col + .pxh-flow__col::after { left: 20.5px; top: -12px; border: 4px solid transparent; border-top: 6px solid var(--blue); border-bottom: 0; }
}

/* ---------- DATA VIZ: dumbbell ---------- */
.pxh-db { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.pxh-db__row { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr) 5.5rem; gap: 20px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.pxh-db__k b { display: block; font-family: var(--f-h); font-weight: 500; color: var(--ink); font-size: var(--t-body); }
.pxh-db__k span { display: block; font-size: var(--t-xs); color: var(--muted); line-height: 1.5; margin-top: 2px; }
.pxh-db__track { position: relative; height: 28px; }
.pxh-db__track::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--line-2); }
.pxh-db__seg { position: absolute; top: calc(50% - 1.5px); height: 3px; background: var(--blue); left: var(--a); width: calc(var(--b) - var(--a)); border-radius: 2px; transform-origin: left; }
.pxh-db__dot { position: absolute; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; }
.pxh-db__dot--a { left: var(--a); background: var(--paper); border: 2px solid var(--faint); }
.pxh-db__dot--b { left: var(--b); background: var(--blue); box-shadow: 0 0 0 4px var(--blue-wash); }
.pxh-db__tgt { position: absolute; left: var(--t); top: 2px; bottom: 2px; width: 0; border-left: 2px dashed var(--ink); }
.pxh-db__v { font-family: var(--f); font-size: var(--t-sm); color: var(--ink); text-align: right; white-space: nowrap; }
.pxh-db__v small { display: block; font-size: var(--t-lbl); color: var(--faint); letter-spacing: .04em; }
.pxh-db__legend { display: flex; flex-wrap: wrap; gap: 8px 20px; font-family: var(--f); font-size: var(--t-lbl); color: var(--muted); letter-spacing: .06em; text-transform: uppercase; margin-top: 16px; }
.pxh-db__legend i { display: inline-block; vertical-align: middle; margin-right: 8px; }
.pxh-db__legend .a { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--faint); }
.pxh-db__legend .b { width: 10px; height: 10px; border-radius: 50%; background: var(--blue); }
.pxh-db__legend .t { width: 0; height: 12px; border-left: 2px dashed var(--ink); }
.pxh-db.is-anim .pxh-db__seg { transform: scaleX(0); }
.pxh-db.is-anim.is-in .pxh-db__seg { transform: scaleX(1); transition: transform .9s var(--e-io); }
@media (max-width: 700px) {
  .pxh-db__row { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; }
  .pxh-db__track { grid-column: 1 / -1; grid-row: 2; }
}

/* ---------- STEPPER ---------- */
.pxh-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: pxhs; }
.pxh-steps__i { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 0 18px; padding-bottom: 28px; }
.pxh-steps__i::before { content: ""; position: absolute; left: 21.5px; top: 50px; bottom: 6px; width: 1px; background: var(--line-2); }
.pxh-steps__i:last-child::before { display: none; }
.pxh-steps__n { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--ink); font-family: var(--f); font-size: var(--t-sm); color: var(--ink); background: var(--paper); }
.pxh-steps__i.is-key .pxh-steps__n { background: var(--ink); color: var(--paper); }
.pxh-steps__b { min-width: 0; padding-top: 8px; }
.pxh-steps__t { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 0; font-family: var(--f-h); font-size: var(--t-h4); font-weight: 500; color: var(--ink); }
.pxh-steps__t small { font-family: var(--f); font-size: var(--t-lbl); letter-spacing: .08em; color: var(--muted); text-transform: uppercase; font-weight: 400; }
.pxh-steps__d { margin: 8px 0 0; font-size: var(--t-sm); color: var(--muted); line-height: 1.6; }
.pxh-steps__out { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; padding: 0; list-style: none; }
.pxh-steps__out li { font-family: var(--f); font-size: var(--t-lbl); letter-spacing: .04em; padding: 4px 9px; border-radius: var(--r-pill); background: var(--paper-2); color: var(--txt); }
.pxh-steps__gate { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; font-family: var(--f); font-size: var(--t-lbl); letter-spacing: .06em; color: var(--blue-d); text-transform: uppercase; }
.pxh-steps__gate::before { content: ""; width: 9px; height: 9px; border: 1.5px solid var(--blue); transform: rotate(45deg); flex: none; }

/* shared frame for app-like mocks */
.pxh-win { border-radius: var(--r-lg); background: var(--paper); border: 1px solid var(--line); box-shadow: var(--sh-2); overflow: hidden; min-width: 0; }
.pxh-win__bar { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-family: var(--f); font-size: var(--t-lbl); letter-spacing: .06em; color: var(--muted); text-transform: uppercase; }
.pxh-win__bar .dots3 { display: inline-flex; gap: 5px; }
.pxh-win__bar .dots3 i { width: 7px; height: 7px; border-radius: 50%; background: var(--line-3); }
.pxh-win__bar .sp { margin-left: auto; }
.pxh-note { font-size: var(--t-xs); color: var(--muted); margin-top: 14px; }

/* text links inside cards and answers meet the 44px tap target */
.pxh .pxh-card__foot .tl, .pxh .pxh-faq__a .tl { display: inline-flex; align-items: center; min-height: 44px; }
