/* The Trace product page (v60): the Linear product-page pattern in Assay's material. A white page, a hero over River
   strings (js/field.js), sections with a big headline left and a lead right, product UI on a soft River stage.
   Quiet greys, one accent: the River. Section cards, the table and footer: trace2.css. */
body.pd {
  --d-bg: #ffffff; --d-bg2: #f7f8fa; --d-panel: #ffffff; --d-panel2: #f7f8fa; --d-line: rgba(15, 23, 42, .08); --d-line2: rgba(15, 23, 42, .13);
  --d-hi: #0b1220; --d-tx: #3a4150; --d-mu: #545c6c; --d-dim: #6b7280;
  --d-a: #2f6bff; --d-b: #6f7cff; --d-c: #c3c8d1; --d-ok: #0fa58f;
  background: var(--d-bg); color: var(--d-tx);
}
.pd .wrap { max-width: 1200px; }
.pd main { overflow-x: clip; }
.pd code { font-family: var(--mono); font-size: .86em; }

/* hero */
.tx-hero { position: relative; isolation: isolate; min-height: min(940px, 100svh); display: flex; align-items: flex-end; padding: 150px 0 64px; overflow: hidden; }
.tx-field { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1;
  /* the strings thin out around the words and run full strength around them */
  -webkit-mask-image: radial-gradient(44% 42% at 34% 50%, rgba(0, 0, 0, .35) 0%, rgba(0, 0, 0, .7) 55%, #000 100%);
  mask-image: radial-gradient(44% 42% at 34% 50%, rgba(0, 0, 0, .35) 0%, rgba(0, 0, 0, .7) 55%, #000 100%); }
.tx-hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 30%; background: linear-gradient(transparent, var(--d-bg)); z-index: -1; pointer-events: none; }
.tx-hero > .wrap { position: relative; z-index: 0; }
/* a soft white wash behind the words, so the strings pass beneath the text without crossing it */
.tx-hero > .wrap::before { content: ""; position: absolute; z-index: -1; left: -120px; top: -90px; width: min(1080px, 96%); height: calc(100% - 120px); pointer-events: none;
  background: radial-gradient(60% 62% at 38% 48%, rgba(255, 255, 255, .9) 0%, rgba(255, 255, 255, .6) 45%, rgba(255, 255, 255, 0) 74%); }
.tx-eye { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 26px; padding: 6px 14px 6px 6px; border-radius: 999px; background: rgba(255, 255, 255, .9);
  box-shadow: 0 0 0 1px var(--d-line2), 0 1px 2px rgba(15, 23, 42, .06); font-size: 14.5px; color: var(--d-mu); }
.tx-eye .tx-mk { width: 22px; height: 22px; border-radius: 7px; } .tx-eye b { font-weight: 600; color: var(--d-hi); }
.tx-eye span { padding-left: 10px; border-left: 1px solid var(--d-line2); }
.tx-hero h1 { margin: 0; max-width: 13em; font-size: clamp(46px, 7.2vw, 100px); line-height: 1.02; font-weight: 500; letter-spacing: -.045em; color: var(--d-hi); }
.tx-lede { margin: 28px 0 0; max-width: 37em; font-size: 19px; line-height: 1.5; color: var(--d-mu); }
.tx-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.tx-ghost { color: var(--d-hi); background: #fff; box-shadow: 0 0 0 1px var(--d-line2), 0 1px 2px rgba(15, 23, 42, .08); }
.tx-ghost:hover { box-shadow: 0 0 0 1px rgba(15, 23, 42, .24), 0 4px 12px -4px rgba(15, 23, 42, .18); }
/* the live demo's result: one framed strip, four cells */
.tx-fh { display: flex; justify-content: space-between; align-items: baseline; max-width: 920px; margin: 72px 0 12px; font-size: 13px; color: var(--d-dim); }
.tx-fh a { display: inline-flex; align-items: center; gap: 6px; color: var(--d-a); font-weight: 500; }
.tx-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 920px; margin: 0; border-radius: 14px; background: rgba(255, 255, 255, .92);
  box-shadow: 0 0 0 1px var(--d-line2), 0 1px 2px rgba(15, 23, 42, .05), 0 18px 40px -24px rgba(15, 23, 42, .22); }
.tx-facts > div { padding: 18px 22px 20px; } .tx-facts > div + div { border-left: 1px solid var(--d-line); }
.tx-facts dt { font-size: 13px; color: var(--d-dim); }
.tx-facts dd { margin: 8px 0 0; font-size: 32px; font-weight: 500; letter-spacing: -.035em; line-height: 1; color: var(--d-hi); }
.tx-facts dd.tx-ok { color: #0b8f7c; }
.tx-src { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 16px 0 0; font-size: 13px; color: var(--d-dim); }
.pd .stat-pv { background: rgba(79, 134, 255, .14); color: #1f4fd8; }
.pd .stat-av { background: rgba(62, 224, 200, .12); color: #0b8f7c; }
.pd .stat-pl { background: rgba(15, 23, 42, .07); color: var(--d-mu); }

/* section head: big headline left, lead and a small link right */
.tx-sec { padding: 150px 0 0; }
.tx-head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 64px; align-items: start; }
.tx-head h2 { margin: 0; font-size: clamp(36px, 4.4vw, 60px); line-height: 1.04; font-weight: 500; letter-spacing: -.04em; color: var(--d-hi); }
.tx-head .tx-num { display: flex; align-items: center; gap: 10px; margin: 0 0 22px; font-size: 14px; letter-spacing: 0; color: var(--d-mu); }
.tx-num b { font: 500 12px/1 var(--mono); padding: 5px 7px; border-radius: 6px; color: var(--d-a); background: rgba(47, 107, 255, .08); box-shadow: inset 0 0 0 1px rgba(47, 107, 255, .16); }
.tx-head > div > p:not(.tx-num) { margin: 4px 0 0; font-size: 20px; line-height: 1.5; color: var(--d-tx); letter-spacing: -.01em; }
.tx-fl { display: inline-flex; gap: 8px; margin-top: 28px; font-size: 16px; color: var(--d-mu); transition: color var(--t2); }
.tx-fl:hover { color: var(--d-hi); }
.tx-fl span { color: var(--d-dim); }
.tx-note { margin-top: 18px; font-size: 13px; color: var(--d-dim); }
.tx-note code { color: var(--d-mu); }

/* the stage: a soft River light from above, the window running off its lower edge */
.tx-stage { position: relative; isolation: isolate; max-width: 1280px; margin: 88px auto 0; padding: 96px 7% 0; border-radius: 18px; overflow: hidden;
  background: linear-gradient(180deg, #f7f9fc, #eef1f6 85%);
  box-shadow: inset 0 1px 0 rgba(15, 23, 42, .10), inset 0 0 0 1px var(--d-line); }
/* the River behind each window: sharp, light, never blurred */
.tx-river { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.tx-stage .tx-river.on { opacity: .85; }
.tx-win { position: relative; border-radius: 12px 12px 0 0; background: var(--d-panel); box-shadow: 0 0 0 1px var(--d-line2), 0 -20px 80px -30px rgba(15, 23, 42, .12); font-size: 14px; color: var(--d-tx); }
.tx-k { margin: 0 0 14px; font-size: 13px; color: var(--d-mu); } .tx-k code { color: var(--d-tx); }

/* pills and chips */
.op { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--d-tx); white-space: nowrap; }
.op::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--d-c); box-shadow: 0 0 0 3px rgba(15, 23, 42, .04); }
.op.q-a::before { background: var(--d-a); box-shadow: 0 0 0 3px rgba(79, 134, 255, .18); } .op.q-a { color: #1f4fd8; }
.op.q-b::before { background: transparent; box-shadow: inset 0 0 0 2px var(--d-b); } .op.q-b { color: #4148c9; }
.op.q-c::before { background: var(--d-c); }
.op.q-ok::before { background: var(--d-ok); box-shadow: 0 0 0 3px rgba(62, 224, 200, .16); } .op.q-ok { color: #0b8f7c; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; margin: 0 6px 0 0; border-radius: 7px; background: rgba(15, 23, 42, .04); box-shadow: inset 0 0 0 1px var(--d-line); font-size: 13px; color: var(--d-tx); white-space: nowrap; }
.chip code { color: var(--d-hi); }
.tx-lv { display: inline-flex; align-items: center; gap: 7px; height: 24px; padding: 0 9px; border-radius: 6px; font-size: 12.5px; white-space: nowrap; background: rgba(15, 23, 42, .05); color: var(--d-mu); }
.tx-lv::before { content: ""; width: 10px; height: 10px; border-radius: 3px; box-shadow: inset 0 0 0 1.5px currentColor; }
.tx-lv.l1 { color: #4148c9; background: rgba(169, 184, 255, .09); } .tx-lv.l1::before { background: linear-gradient(90deg, currentColor 50%, transparent 50%); }
.tx-lv.l2 { color: #0b6fae; background: rgba(34, 184, 255, .10); } .tx-lv.l2::before { background: currentColor; }

/* 2. the queue */
.tx-q { display: grid; grid-template-columns: 220px minmax(0, 1fr); }
.tx-side { padding: 14px 10px; border-right: 1px solid var(--d-line); background: var(--d-bg2); border-radius: 12px 0 0 0; font-size: 13.5px; }
.tx-side p { display: flex; align-items: center; gap: 10px; margin: 0; padding: 7px 10px; border-radius: 6px; color: var(--d-mu); }
.tx-side p b { margin-left: auto; font-weight: 400; font-size: 12.5px; color: var(--d-dim); }
.tx-side p.on { background: rgba(15, 23, 42, .06); color: var(--d-hi); }
.tx-side .tx-ws { margin-bottom: 10px; color: var(--d-hi); font-weight: 500; } .tx-ws small { font-weight: 400; color: var(--d-dim); }
.tx-side .tx-sh { margin-top: 14px; font-size: 12px; color: var(--d-dim); }
.tx-side i { width: 14px; height: 14px; flex: none; border-radius: 4px; box-shadow: inset 0 0 0 1.5px var(--d-dim); }
.tx-side .ic-a { border-radius: 50%; background: var(--d-a); box-shadow: none; transform: scale(.7); }
.tx-side .ic-b { border-radius: 50%; box-shadow: inset 0 0 0 2px var(--d-b); transform: scale(.7); }
.tx-side .ic-c { border-radius: 50%; background: var(--d-c); box-shadow: none; transform: scale(.7); }
.tx-mk { display: inline-block; width: 18px; height: 18px; flex: none; border-radius: 5px; background: linear-gradient(135deg, #2ee6d6, #2f6bff 50%, #7b5cff); box-shadow: none !important; }
.tx-bar { display: flex; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--d-line); overflow: hidden; }
.tx-bar span { display: inline-flex; gap: 8px; align-items: center; height: 30px; padding: 0 12px; border-radius: 7px; font-size: 13px; color: var(--d-mu); white-space: nowrap; box-shadow: inset 0 0 0 1px var(--d-line); }
.tx-bar span.on { background: rgba(15, 23, 42, .07); color: var(--d-hi); box-shadow: inset 0 0 0 1px var(--d-line2); }
.tx-bar b { font-weight: 400; color: var(--d-dim); }
.tx-rows p { display: grid; grid-template-columns: 14px 92px minmax(0, 1fr) 190px 98px 150px 48px; align-items: center; gap: 14px; margin: 0; height: 46px; padding: 0 18px; border-bottom: 1px solid rgba(15, 23, 42, .045); }
.tx-rows p:hover { background: rgba(15, 23, 42, .025); }
.tx-rows code { color: var(--d-dim); font-size: 12.5px; } .tx-rows .t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--d-hi); }
.tx-rows .ty { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--d-mu); font-size: 13px; }
.tx-rows .rb { color: var(--d-mu); } .tx-rows time { text-align: right; font-size: 12.5px; color: var(--d-dim); }
.pr { display: inline-block; width: 14px; height: 12px; color: var(--d-dim); background: linear-gradient(currentColor, currentColor) 0 100% / 3px 45% no-repeat,
  linear-gradient(currentColor, currentColor) 5.5px 100% / 3px 72% no-repeat, linear-gradient(rgba(15, 23, 42, .14), rgba(15, 23, 42, .14)) 11px 100% / 3px 100% no-repeat; }
.pr.p1 { background: linear-gradient(currentColor, currentColor) 0 100% / 3px 45% no-repeat, linear-gradient(currentColor, currentColor) 5.5px 100% / 3px 72% no-repeat, linear-gradient(currentColor, currentColor) 11px 100% / 3px 100% no-repeat; }
.pr.p1 { color: #1f2430; } .pr.p2 { color: #7b8291; }

/* 3. the approval view */
.tx-tabs2 { display: flex; gap: 4px; padding: 12px 16px; border-bottom: 1px solid var(--d-line); }
.tx-tabs2 span { height: 30px; padding: 0 12px; display: inline-flex; align-items: center; border-radius: 7px; font-size: 13.5px; color: var(--d-mu); }
.tx-tabs2 span.on { background: rgba(15, 23, 42, .07); color: var(--d-hi); }
.tx-ap-in { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.tx-tk { padding: 38px 44px 44px; }
.tx-crumb { margin: 0; font-size: 13px; color: var(--d-dim); } .tx-crumb code { color: var(--d-mu); }
.tx-tt { margin: 14px 0 0; font-size: 26px; font-weight: 500; letter-spacing: -.02em; color: var(--d-hi); line-height: 1.2; }
.tx-tk blockquote { margin: 14px 0 0; font-size: 15px; line-height: 1.55; color: var(--d-mu); }
.tx-props { display: grid; gap: 14px; margin: 30px 0 0; }
.tx-props > div { display: grid; grid-template-columns: 112px 1fr; align-items: center; }
.tx-props dt { font-size: 13.5px; color: var(--d-dim); } .tx-props dd { margin: 0; display: flex; flex-wrap: wrap; gap: 6px 0; }
.tx-fix { margin: 22px 22px 0 0; padding: 24px 24px 26px; border-radius: 12px 12px 0 0; background: var(--d-panel2); box-shadow: 0 0 0 1px var(--d-line); }
.tx-ft { margin: -6px 0 16px; font-size: 17px; font-weight: 500; color: var(--d-hi); }
.tx-diff { border-radius: 8px; overflow: hidden; font: 12.5px/1.5 var(--mono); box-shadow: 0 0 0 1px var(--d-line); }
.tx-diff p { margin: 0; padding: 7px 12px; } .tx-diff .h { color: var(--d-mu); background: rgba(15, 23, 42, .03); border-bottom: 1px solid var(--d-line); }
.tx-diff .m { color: #b4234c; background: rgba(255, 95, 130, .08); } .tx-diff .p { color: #0b7f6e; background: rgba(46, 230, 214, .08); }
.tx-steps { margin: 18px 0 0; padding: 0 0 0 18px; display: grid; gap: 6px; font-size: 13.5px; color: var(--d-tx); } .tx-steps li::marker { color: var(--d-dim); }
.tx-checks { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 0; }
.tx-checks li { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 10px 0; border-top: 1px solid var(--d-line); font-size: 13.5px; }
.tx-checks b { font-weight: 400; color: var(--d-tx); } .tx-checks span { flex: none; color: var(--d-mu); font-size: 13px; }
.tx-checks .ok { color: #0b8f7c; } .tx-checks .ok::before { content: "✓ "; } .tx-checks .wn { color: #9a5b00; }
.tx-btns { display: flex; gap: 8px; margin-top: 20px; }
.tx-btns span { display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border-radius: 8px; font-size: 13.5px; color: var(--d-tx); box-shadow: inset 0 0 0 1px var(--d-line2); }
.tx-btns .ap { color: #fff; background: #2f6bff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25); }
