/* The Trace product page (v62): the dark product boxes. The three stages and the two card grids are dark, like the
   Trace app in dark mode (its tokens: gray ramp at hue 286, hairlines of white at 8% and 14%), and each is a window
   onto one River of fine strings behind the page (js/riverlines.js). The light page variables are redefined
   inside .dk, so the product UI inside inherits the dark theme. */
.pd .dk {
  --d-bg: #0b0b0f; --d-bg2: #121217; --d-panel: #131318; --d-panel2: #1a1a20; --d-line: rgba(255, 255, 255, .08); --d-line2: rgba(255, 255, 255, .14);
  --d-hi: #eeeef2; --d-tx: #cfd0d6; --d-mu: #a3a5ae; --d-dim: #777a85;
  --d-a: #5b8cff; --d-b: #a3b4ff; --d-c: #4a4c56; --d-ok: #4fd1b5;
  position: relative; isolation: isolate; overflow: hidden; color: var(--d-tx); color-scheme: dark;
  background: radial-gradient(120% 70% at 50% 0%, #11131c, #08080b 70%);
  box-shadow: 0 0 0 1px rgba(15, 23, 42, .18), 0 40px 80px -40px rgba(8, 10, 20, .55);
}
.tx-lines { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }

/* the stage: the window floats on the river */
.pd .tx-stage.dk { padding: 104px 8% 0; border-radius: 20px; }
.pd .dk .tx-win { background: var(--d-panel); box-shadow: 0 0 0 1px var(--d-line2), 0 -24px 90px -30px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .06); }

/* dark fills for the light-only greys inside the product UI */
.pd .dk .tx-side { background: var(--d-bg2); }
.pd .dk .tx-side p.on, .pd .dk .tx-bar span.on, .pd .dk .tx-tabs2 span.on, .pd .dk .tx-tab.on { background: rgba(255, 255, 255, .07); }
.pd .dk .tx-rows p { border-bottom-color: rgba(255, 255, 255, .05); } .pd .dk .tx-rows p:hover, .pd .dk .tx-tbl tbody tr:hover { background: rgba(255, 255, 255, .03); }
.pd .dk .pr.p1 { color: #e6e7ec; } .pd .dk .pr.p2 { color: #8b8e98; }
.pd .dk .pr { 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(255, 255, 255, .16), rgba(255, 255, 255, .16)) 11px 100% / 3px 100% no-repeat; }
.pd .dk .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; }
.pd .dk .op.q-a { color: #8fb0ff; } .pd .dk .op.q-b { color: #b8c4ff; } .pd .dk .op.q-ok { color: #6fe0c6; }
.pd .dk .op::before { box-shadow: 0 0 0 3px rgba(255, 255, 255, .04); }
.pd .dk .chip { background: rgba(255, 255, 255, .05); }
.pd .dk .tx-lv { background: rgba(255, 255, 255, .06); } .pd .dk .tx-lv.l1 { color: #b8c4ff; background: rgba(123, 140, 255, .14); } .pd .dk .tx-lv.l2 { color: #7fd0ff; background: rgba(34, 184, 255, .14); }
.pd .dk .tx-diff .h { background: rgba(255, 255, 255, .03); }
.pd .dk .tx-diff .m { color: #ff9cb5; background: rgba(255, 95, 130, .12); } .pd .dk .tx-diff .p { color: #6fe8d6; background: rgba(46, 230, 214, .10); }
.pd .dk .tx-checks .ok { color: #6fe0c6; } .pd .dk .tx-checks .wn { color: #f5c26b; }
.pd .dk .tx-btns .ap { background: #3d72ff; }
.pd .dk .tx-tbl th, .pd .dk .tx-tbl td { border-bottom-color: rgba(255, 255, 255, .05); }
.pd .dk .tx-small { color: #f5c26b; }

/* the card grids: one dark panel, each card a quiet frame on the river */
.pd .tx-grid.dk { padding: 0; border-radius: 20px; max-width: 1200px; box-shadow: 0 0 0 1px rgba(15, 23, 42, .18), 0 40px 80px -40px rgba(8, 10, 20, .55); }
.pd .tx-grid.dk .tx-card { background: rgba(11, 11, 15, .55); }
.pd .dk .tx-sc, .pd .dk .tx-th, .pd .dk .tx-chart, .pd .dk .tx-au, .pd .dk .tx-up > div, .pd .dk .tx-rbs li, .pd .dk.tx-rep .r-card, .pd .dk .tx-rep .r-card {
  background: var(--d-panel); box-shadow: 0 0 0 1px var(--d-line2), 0 30px 60px -30px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .05); }
.pd .dk .tx-verdict, .pd .dk .pill-v { color: #6fe0c6; } .pd .dk .pill-v { background: rgba(62, 224, 200, .14); }
.pd .dk .tx-rep .thr-bg { fill: rgba(255, 255, 255, .08); } .pd .dk .tx-rep .thr-m { fill: #eeeef2; } .pd .dk .tx-rep .thr-v { fill: #5b8cff; }
.pd .dk .tx-rep .o-a, .pd .dk .s-a { fill: #5b8cff; background: #5b8cff; } .pd .dk .tx-rep .o-b, .pd .dk .s-b { fill: #a3b4ff; background: #a3b4ff; }
.pd .dk .tx-rep .o-c, .pd .dk .s-c { fill: #4a4c56; background: #4a4c56; }
.pd .dk .tx-rep .r-note a, .pd .dk .tx-rbs code { color: #8fb0ff; }
.pd .dk .tx-bt-b { background: rgba(255, 255, 255, .05); }
.pd .dk .tx-au .chain code { background: rgba(91, 140, 255, .18); color: #a9c1ff; }
.pd .dk .tx-th .av:not(.tx-mk) { background: #23232a; }
.pd .dk .tx-ng-l path { stroke: rgba(255, 255, 255, .18); }
.pd .dk .tx-up .u2 { background: var(--d-bg2); }
.pd .dk .tx-card > p a { text-decoration-color: rgba(255, 255, 255, .25); }

@media (max-width: 640px) {
  .pd .tx-stage.dk { padding: 44px 12px 0; border-radius: 14px; }
  .pd .tx-grid.dk { border-radius: 14px; }
}

/* v68: one string river through every dark card (js/riverlines.js, box mode): corner to opposite corner, alternating,
   behind the product UI; out of sight between cards. */
.pd .dk > canvas.tx-lines { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.pd .tx-stage.dk { padding-top: 120px; }

/* tier-1 pass: no glow rings, no gradient tiles, no halos, no card behind a card */
.pd .op::before, .pd .dk .op::before, .pd .op.q-a::before, .pd .op.q-ok::before { box-shadow: none; }
.pd .op.q-b::before { box-shadow: inset 0 0 0 1.5px var(--d-b); }
.pd .stat::before { display: none; }
.pd .tx-mk { background: currentColor; -webkit-mask: url(/assets/mark-white.svg) center / 78% no-repeat; mask: url(/assets/mark-white.svg) center / 78% no-repeat; border-radius: 0; }
.pd .tx-eye .tx-mk { width: 18px; height: 22px; color: var(--d-hi); }
.pd .tx-org { display: grid; place-items: center; width: 18px; height: 18px; flex: none; border-radius: 5px; background: rgba(255, 255, 255, .1); font: 600 10.5px/1 var(--font); font-style: normal; color: var(--d-hi); box-shadow: none; }
.pd .dk .tx-th .av.tx-mk { width: 30px; height: 30px; background: #f2f3f6; -webkit-mask-size: 60%; mask-size: 60%; }
.pd .dk .tx-ng-c { box-shadow: 0 0 0 1px var(--d-line2); }
.pd .dk .tx-ng-c .tx-mk { width: 18px; height: 22px; color: var(--d-hi); }
.pd .tx-grid.dk .tx-card { background: none; }
.pd .dk .tx-up { display: flex; flex-direction: column; padding: 0; border-radius: 12px; background: var(--d-panel); box-shadow: 0 0 0 1px var(--d-line2), 0 30px 60px -30px rgba(0, 0, 0, .8); }
.pd .dk .tx-up > div { margin: 0; padding: 20px 22px; border-radius: 0; background: none; box-shadow: none; opacity: 1; }
.pd .dk .tx-up .u2 { order: -1; border-bottom: 1px solid var(--d-line); }
.pd .dk .tx-up .u2 p { color: var(--d-mu); } .pd .dk .tx-up .u2 p b { color: var(--d-hi); }

/* the closing card: dark, the River running along its foot */
.pd .tx-close { margin-top: 150px; padding: 0 0 150px; border-top: 0; background: none; text-align: left; }
.pd .tx-end { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 48px 72px; align-items: end; max-width: 1200px; padding: 96px 72px 210px; border-radius: 20px; }
.pd .tx-end .tx-num { display: flex; align-items: center; gap: 10px; margin: 0 0 22px; font-size: 14px; color: var(--d-mu); }
.pd .tx-end .tx-num b { color: #8fb0ff; background: rgba(91, 140, 255, .14); box-shadow: inset 0 0 0 1px rgba(143, 176, 255, .22); }
.pd .tx-end h2 { margin: 0; font-size: clamp(38px, 4.6vw, 60px); line-height: 1.04; font-weight: 500; letter-spacing: -.04em; color: var(--d-hi); }
.pd .tx-end-copy > p:last-child { max-width: 30em; margin: 22px 0 0; font-size: 18px; line-height: 1.55; color: var(--d-mu); }
.pd .tx-end-form { max-width: none; margin: 0; }
.pd .tx-end .form label { text-align: left; color: var(--d-mu); font-size: 13.5px; }
.pd .tx-end .field-row { padding: 6px; border-radius: 12px; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px var(--d-line2); }
.pd .tx-end .field-row:focus-within { box-shadow: inset 0 0 0 1px #5b8cff, 0 0 0 4px rgba(91, 140, 255, .2); }
.pd .tx-end .field-row input { color: var(--d-hi); } .pd .tx-end .field-row input::placeholder { color: var(--d-dim); }
.pd .tx-end .form-msg { color: var(--d-mu); }
.tx-end-list { list-style: none; display: grid; gap: 0; margin: 22px 0 0; padding: 0; font-size: 14px; color: var(--d-mu); }
.tx-end-list li { padding: 11px 0; border-top: 1px solid var(--d-line); } .tx-end-list li:last-child { border-bottom: 1px solid var(--d-line); }
.tx-end-demo { display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; font-size: 14.5px; font-weight: 500; color: #8fb0ff; }
.tx-end-demo:hover { color: #b9ccff; }
@media (max-width: 900px) {
  .pd .tx-end { grid-template-columns: 1fr; padding: 56px 24px 150px; border-radius: 14px; }
  .pd .tx-close { margin-top: 96px; padding-bottom: 96px; }
}

/* section numbers as plain muted figures (no tinted box); the ladder loses its gradient ticks */
.pd .tx-num b, .pd .tx-end .tx-num b { padding: 0; border-radius: 0; background: none; box-shadow: none; font: 500 13px/1 var(--mono); color: var(--d-dim); }
.pd .tx-end .tx-num b { color: var(--d-dim); }
.pd .tx-path li::before { display: none; }
@media (max-width: 640px) {
}

/* the cover (v66): words on the left, the string river climbing the right; neither crosses the other */
.pd .tx-hero h1 { font-size: clamp(46px, 6.2vw, 88px); max-width: 12em; }
.pd .tx-lede { max-width: 33em; }
.pd .tx-src .stat { height: auto; padding: 0; border-radius: 0; background: none; font-weight: 500; color: var(--d-mu); }   /* the status reads as a quiet note, not a badge */
.pd .tx-src .stat::after { content: "·"; margin-left: 10px; color: var(--d-dim); font-weight: 400; }
.pd .tx-grid.dk .tx-card { background: linear-gradient(180deg, transparent calc(100% - 200px), #09090c calc(100% - 130px)); }   /* captions sit on a clean base; the river passes under it */

/* v69 cover: the string river as three silk ridges in a band of their own below the words and the result strip */
.pd .tx-hero { padding: 132px 0 120px; min-height: 0; }
.pd .tx-hero .tx-field { top: auto; bottom: 0; height: 520px; -webkit-mask-image: linear-gradient(180deg, transparent 16%, #000 36%); mask-image: linear-gradient(180deg, transparent 16%, #000 36%); }
.pd .tx-hero > .wrap::before, .pd .tx-hero::after { display: none; }
.pd .tx-hero h1 { font-size: clamp(46px, 7vw, 96px); }
.pd .tx-facts { background: rgba(255, 255, 255, .86); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); }
@media (max-width: 640px) { .pd .tx-hero { padding-bottom: 150px; } .pd .tx-hero .tx-field { height: 360px; } }

/* v69 closing: deep navy, the River's silk ridges along the foot (founder's reference) */
.pd .tx-end.dk { background: radial-gradient(90% 70% at 50% 0%, #142452, #0b1736 60%); padding-bottom: 300px; }
.pd .tx-end > canvas.tx-wave { position: absolute; left: 0; right: 0; bottom: 0; top: auto; width: 100%; height: 340px; z-index: -1; pointer-events: none; }
.pd .tx-end .field-row { background: rgba(255, 255, 255, .07); }
@media (max-width: 900px) { .pd .tx-end.dk { padding-bottom: 210px; } .pd .tx-end > canvas.tx-wave { height: 230px; } }
.pd .tx-hero .tx-src { margin: 28px 0 0; }
.pd .tx-hero .tx-fh { margin-top: 40px; }
.pd .tx-hero .tx-fh span, .pd .tx-hero .tx-fh a { color: var(--d-hi); text-shadow: 0 0 10px #fff, 0 0 3px #fff; }
