/* Readback SI demo-section treatments (prism 2026-10-23). Brand kit v0: ink #102D3B, teal #008B86, warn #A1371C, white field. */
.dl { max-width: 1260px; margin: 0 auto; padding: clamp(56px, 8vw, 104px) clamp(20px, 4vw, 40px); }
.dl h2 { margin: 0; font-size: clamp(1.8rem, 3.4vw, 2.8rem); letter-spacing: -.03em; line-height: 1.1; }
.dl .lead { margin: 12px 0 0; color: var(--gray); max-width: 62ch; }
.dl-qs { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 22px; }
.dl-qs button { font: inherit; font-size: 15px; padding: 10px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; min-height: 44px; }
.dl-qs button[aria-selected="true"] { border-color: var(--ink); background: var(--ink); color: #fff; }
.dl-who { margin: 0 0 10px; font-size: 12.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gray); }
.dl-ans { margin: 0; font-size: clamp(1.15rem, 1.6vw, 1.35rem); font-weight: 600; min-height: 2.6em; }
.dl-src { margin: 10px 0 0; font-size: 14px; color: var(--gray); min-height: 1.4em; }
.dl-tag { display: inline-block; margin: 12px 0 0; padding: 4px 12px; border-radius: 999px; font-size: 13.5px; font-weight: 600; min-height: 1.6em; }
.dl-tag:empty { padding: 0; }
.dl-bare .dl-tag { background: #FBEDE8; color: var(--warn); } .dl-held .dl-tag { background: #DDF1EF; color: #006A66; }
.dl-note { margin: 18px 0 0; font-size: 14px; color: var(--gray); max-width: 70ch; }

/* shared: research numbers */
.dl-proof { display: grid; gap: 22px; margin-top: 44px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); }
.dl-stat { border-top: 2px solid var(--ink); padding-top: 18px; }
.dl-stat .big { margin: 0; font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 700; letter-spacing: -.04em; line-height: 1; color: var(--ink); }
.dl-stat .big small { font-size: .45em; letter-spacing: 0; color: var(--gray); font-weight: 600; }
.dl-stat p { margin: 12px 0 0; color: var(--gray); font-size: 15.5px; }
.dl-stat p b { color: var(--ink); }
.dl-bars { margin-top: 16px; display: grid; gap: 8px; font-size: 13px; color: var(--gray); }
.dl-bar { display: grid; grid-template-columns: 150px 1fr 44px; align-items: center; gap: 10px; }
.dl-bar i { display: block; height: 12px; border-radius: 6px; background: var(--warn); width: 0; transition: width 1.2s cubic-bezier(.2,.7,.1,1); }
.dl-bar.ok i { background: var(--teal); }
.dl-proof.on .dl-bar i { width: var(--w); }
.dl-bar:nth-child(2) i { transition-delay: .15s; } .dl-bar:nth-child(3) i { transition-delay: .6s; }
.dl-drop { margin-top: 16px; display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--gray); }
.dl-drop .chips { display: flex; gap: 4px; } .dl-drop .chips span { width: 14px; height: 14px; border-radius: 4px; background: var(--line); }
.dl-proof.on .dl-drop .chips span { animation: dl-shuffle 1.6s ease both; } .dl-drop .chips span:nth-child(2n) { animation-delay: .1s; }
@keyframes dl-shuffle { 30% { transform: translateY(-5px); background: #E7B3A5; } 60% { transform: translateY(3px); } 100% { transform: none; } }
.dl-drop .arrow { font-weight: 700; color: var(--teal); font-size: 15px; }

/* 1. scan and stamp */
.dl-scan .pair { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); position: relative; }
.dl-scan .side { position: relative; border: 1.5px solid var(--line); border-radius: 18px; padding: 24px 26px; background: #fff; min-height: 300px; overflow: hidden; }
.dl-scan .dl-held { border-color: var(--teal); background: #F6FAFA; }
.dl-stamp { position: absolute; right: 22px; bottom: 26px; padding: 8px 16px; border: 3px solid var(--warn); border-radius: 8px; color: var(--warn); font-weight: 800; letter-spacing: .14em;
  text-transform: uppercase; font-size: 18px; opacity: 0; transform: rotate(-8deg) scale(1.6); transition: opacity .18s ease, transform .25s cubic-bezier(.2,1.6,.4,1); }
.dl-bare.stamped .dl-stamp { opacity: .92; transform: rotate(-8deg) scale(1); }
.dl-bare.stamped .dl-ans { text-decoration: line-through; text-decoration-color: rgba(161,55,28,.55); text-decoration-thickness: 2px; color: #6b7f86; }
.dl-stack { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 6px; position: relative; }
.dl-stack li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-size: 13px; color: var(--gray); transition: border-color .3s, box-shadow .3s, opacity .3s; }
.dl-stack li code { font-family: var(--mono); font-size: 12.5px; color: var(--ink); }
.dl-stack::after { content: ""; position: absolute; left: -4px; right: -4px; height: 3px; top: 0; background: var(--teal); box-shadow: 0 0 14px 2px rgba(0,139,134,.55); border-radius: 2px; opacity: 0; }
.dl-stack.scanning::after { opacity: 1; animation: dl-scanline 1.1s ease-in-out both; }
@keyframes dl-scanline { from { top: 0; } to { top: calc(100% - 3px); } }
.dl-stack.found li:not(.hit) { opacity: .45; } .dl-stack.found li.old { opacity: .7; text-decoration: line-through; }
.dl-stack.found li.hit { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(0,139,134,.15); }
.dl-stack.none li { opacity: .45; }
.dl-fly { position: absolute; z-index: 5; pointer-events: none; font: 600 13px/1 var(--mono); padding: 6px 10px; border-radius: 8px; background: var(--teal); color: #fff; opacity: 0; }
.dl-fly.go { animation: dl-fly .65s cubic-bezier(.5,0,.2,1) both; }
@keyframes dl-fly { 0% { opacity: 0; transform: none; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(1.15); } }

/* 2. cubes */
.dl-figure { position: relative; margin: 0; border-radius: 22px; overflow: hidden; aspect-ratio: 21 / 9; background: #EEF3F3; }
.dl-figure img { width: 100%; height: 100%; object-fit: cover; display: block; transition: filter .8s ease; }
.dl-figure::before, .dl-figure::after { content: ""; position: absolute; bottom: 0; height: 6px; width: 50%; opacity: 0; transform: scaleX(.2); transition: opacity .5s ease, transform .7s cubic-bezier(.2,.7,.1,1); pointer-events: none; }
.dl-figure::before { left: 0; background: #E39A3B; } .dl-figure::after { right: 0; background: var(--teal); }
.dl-figure.lean-left::before, .dl-figure.lean-right::after { opacity: 1; transform: none; }
.dl-figure figcaption { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; justify-content: space-around; pointer-events: none; }
.dl-figure figcaption span { background: rgba(255,255,255,.88); padding: 6px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.dl-cubes .pair { display: grid; gap: 18px; grid-template-columns: 1fr 1fr; margin-top: -40px; padding: 0 clamp(12px, 3vw, 40px); position: relative; z-index: 2; }
.dl-cubes .side { border: 1.5px solid var(--line); border-radius: 18px; padding: 22px 24px; background: #fff; box-shadow: 0 24px 50px -36px rgba(16,45,59,.55); min-height: 190px; }
.dl-cubes .dl-held { border-color: var(--teal); }
@media (max-width: 760px) { .dl-cubes .pair { grid-template-columns: 1fr; margin-top: 16px; padding: 0; } .dl-figure { aspect-ratio: 16 / 10; } }

/* 3. duel terminals */
.dl-duel .pair { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.dl-term { background: #0F2733; color: #E8F1F1; border-radius: 18px; overflow: hidden; font: 14px/1.6 var(--mono); min-height: 300px; box-shadow: 0 30px 60px -44px rgba(16,45,59,.8); }
.dl-term.held { box-shadow: 0 0 0 2px rgba(47,211,201,.45), 0 30px 60px -44px rgba(16,45,59,.8); }
.dl-term .tbar { display: flex; align-items: center; gap: 7px; padding: 11px 16px; border-bottom: 1px solid rgba(255,255,255,.08); color: #9DB4B8; font-size: 12px; }
.dl-term .tbar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.18); } .dl-term .tbar span { margin-left: 8px; }
.dl-out { padding: 18px 20px 22px; } .dl-out p { margin: 0 0 8px; white-space: pre-wrap; }
.dl-out .p { color: #fff; } .dl-out .a { color: #fff; font-weight: 600; }
.dl-out .tool { color: #9DB4B8; } .dl-out .tool.dim { opacity: .82; }  /* AA: 5.2:1 on the panel (ship check 2026-10-25) */ .dl-out .tool.hit { color: #2FD3C9; } .dl-out .tool.none { color: #F2C14E; }
.dl-out .src { color: #9DB4B8; font-size: 13px; }
.dl-out .tag { display: inline-block; font: 600 11px/1.3 system-ui, sans-serif; letter-spacing: .08em; text-transform: uppercase; padding: 5px 9px; border-radius: 999px; opacity: 0; transition: opacity .3s; }
.dl-out .tag.in { opacity: 1; } .dl-out .tag.bad { background: #E8826A; color: #2A0E07; } .dl-out .tag.ok { background: #2FD3C9; color: #0F2733; }

@media (prefers-reduced-motion: reduce) { .dl * { transition: none !important; animation: none !important; } .dl-bar i { width: var(--w); } }

/* lab switcher */
.dl-switch { position: sticky; top: 72px; z-index: 9; display: flex; gap: 6px; justify-content: center; padding: 10px; background: rgba(255,255,255,.94); border-bottom: 1px solid var(--line); }
.dl-switch a { padding: 8px 14px; border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: 14px; border: 1.5px solid var(--line); }
.dl-switch a[aria-current] { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- receipts (2026-10-23, Tad 07:49Z: lose the 3%, rework the 34.4 into a broader sheet) ---------- */
.rc { margin-top: 48px; }
.rc-kicker { margin: 0 0 6px; font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--teal-text); }
.rc-title { margin: 0 0 22px; font-size: clamp(1.4rem, 2.4vw, 1.9rem); letter-spacing: -.02em; }
.rc-status { display: inline-block; margin-top: 10px; font-size: 12.5px; font-weight: 600; color: var(--ink); background: #EEF5F5; border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; }
.rc-status a { color: inherit; }
.rc-disc { margin: 8px 0 0; font-size: 13.5px; color: var(--gray); }

/* 1: one receipt per question */
.rc-item { display: grid; grid-template-columns: minmax(180px, 280px) 1fr; gap: 28px; align-items: start; border-top: 2px solid var(--ink); padding-top: 20px; }
.rc-item .big { margin: 0; font-size: clamp(2.6rem, 6vw, 4.4rem); font-weight: 700; letter-spacing: -.04em; line-height: .95; }
.rc-item .big small { font-size: .38em; letter-spacing: 0; color: var(--gray); font-weight: 600; }
.rc-item h4 { margin: 0; font-size: 1.25rem; letter-spacing: -.01em; }
.rc-item .claim { margin: 8px 0 0; color: var(--ink); }
.rc-item.play .big, .rc-item.play .txt { animation: rc-in .7s cubic-bezier(.2,.7,.1,1) both; } .rc-item.play .txt { animation-delay: .12s; }
@keyframes rc-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (max-width: 720px) { .rc-item { grid-template-columns: 1fr; gap: 10px; } }

/* 2: the ledger, a printed receipt */
.rc-ledger { position: relative; max-width: 720px; margin: 0 auto; background: #FFFEFA; color: #1E2B30; font: 14px/1.55 var(--mono); padding: 30px 34px 40px;
  box-shadow: 0 30px 60px -40px rgba(16,45,59,.55), 0 0 0 1px #ECE7DA;
  -webkit-mask: linear-gradient(#000 0 0) top/100% calc(100% - 12px) no-repeat, radial-gradient(circle 7px at 50% 100%, transparent 6px, #000 6.5px) bottom/18px 13px repeat-x;
          mask: linear-gradient(#000 0 0) top/100% calc(100% - 12px) no-repeat, radial-gradient(circle 7px at 50% 100%, transparent 6px, #000 6.5px) bottom/18px 13px repeat-x; }
.rc-ledger .hd { text-align: center; border-bottom: 1px dashed #B9B2A0; padding-bottom: 14px; margin-bottom: 8px; }
.rc-ledger .hd b { display: block; font-size: 16px; letter-spacing: .2em; }
.rc-ledger .hd span { font-size: 12px; color: #6F6A5C; }
.rc-line { padding: 14px 0; border-bottom: 1px dashed #D6CFBD; opacity: 0; transform: translateY(-6px); transition: opacity .35s ease, transform .35s ease; }
.rc-line.in { opacity: 1; transform: none; }
.rc-line .row { display: flex; align-items: baseline; gap: 10px; }
.rc-line .row b { font-weight: 700; }
.rc-line .row i { flex: 1; border-bottom: 2px dotted #B9B2A0; transform: translateY(-4px); }
.rc-line .row .v { font-size: 18px; font-weight: 700; color: #00736F; white-space: nowrap; }
.rc-line .c { margin: 4px 0 0; } .rc-line .d { margin: 4px 0 0; font-size: 12.5px; color: #6F6A5C; } .rc-line .s { margin: 4px 0 0; font-size: 12px; color: #00736F; }
.rc-line .s a { color: inherit; }
.rc-ledger .ft { text-align: center; margin-top: 18px; font-size: 12px; color: #6F6A5C; opacity: 0; transition: opacity .5s; }
.rc-ledger.done .ft { opacity: 1; }
.rc-ledger .stampbox { position: absolute; right: 26px; bottom: 34px; border: 3px solid #00736F; color: #00736F; font: 800 14px/1 system-ui, sans-serif; letter-spacing: .16em; padding: 8px 12px; border-radius: 6px;
  transform: rotate(-8deg) scale(1.5); opacity: 0; transition: transform .25s cubic-bezier(.2,1.6,.4,1), opacity .2s; }
.rc-ledger.done .stampbox { transform: rotate(-8deg) scale(1); opacity: .85; }
@media (max-width: 720px) { .rc-ledger { padding: 24px 18px 36px; font-size: 13px; } .rc-ledger .stampbox { position: static; display: inline-block; margin-top: 14px; } }

/* 3: proof cards with small pictures */
.rc-cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr)); }
.rc-card { border: 1.5px solid var(--line); border-radius: 18px; padding: 22px 22px 18px; background: #fff; display: flex; flex-direction: column; }
.rc-card .big { margin: 0; font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 700; letter-spacing: -.04em; line-height: 1; }
.rc-card .big small { font-size: .42em; color: var(--gray); font-weight: 600; letter-spacing: 0; }
.rc-card h4 { margin: 12px 0 0; font-size: 1.05rem; }
.rc-card .claim { margin: 6px 0 0; font-size: 14.5px; color: var(--ink); }
.rc-card .viz { margin: 16px 0 6px; font-size: 12px; color: var(--gray); }
.rc-card .rc-status { align-self: flex-start; margin-top: auto; }
.rc-card .rc-disc { margin-bottom: 10px; }
/* viz: range */
.vz-range { position: relative; height: 34px; } .vz-range .track { position: absolute; left: 0; right: 0; top: 14px; height: 6px; border-radius: 3px; background: #EEF3F3; }
.vz-range .span { position: absolute; top: 14px; height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--teal), var(--warn)); left: 3.6%; width: 0; transition: width 1.3s cubic-bezier(.2,.7,.1,1) .2s; }
.rc-cards.on .vz-range .span { width: 95.7%; }
.vz-range .lab { position: absolute; top: 24px; font-size: 11.5px; } .vz-range .lab.l { left: 0; } .vz-range .lab.r { right: 0; }
/* viz: two bars */
.vz-bars { display: grid; gap: 6px; } .vz-bars div { display: grid; grid-template-columns: 110px 1fr 40px; gap: 8px; align-items: center; }
.vz-bars i { height: 10px; border-radius: 5px; background: #C9D6D6; width: 0; transition: width 1.2s cubic-bezier(.2,.7,.1,1); } .vz-bars .ok i { background: var(--teal); transition-delay: .3s; }
.rc-cards.on .vz-bars i { width: var(--w); }
/* viz: 36 facts, two rows */
.vz-dots { display: grid; gap: 6px; } .vz-dots .r { display: grid; grid-template-columns: 96px 1fr; gap: 8px; align-items: center; }
.vz-dots .d { display: grid; grid-template-columns: repeat(18, 1fr); gap: 3px; } .vz-dots .d span { aspect-ratio: 1; border-radius: 50%; background: var(--teal); transition: opacity .6s ease, background .6s ease; }
.rc-cards.on .vz-dots .d span.lost { opacity: .15; background: var(--warn); }
.vz-dots .d span.lost { transition-delay: calc(var(--i) * 140ms + .5s); }
/* viz: timeline */
.vz-time { position: relative; height: 40px; } .vz-time .track { position: absolute; left: 0; right: 0; top: 12px; height: 8px; border-radius: 4px; background: #EEF3F3; overflow: hidden; }
.vz-time .fill { display: block; height: 100%; width: 0; background: var(--teal); transition: width 1.6s cubic-bezier(.2,.7,.1,1); } .rc-cards.on .vz-time .fill { width: 100%; }
.vz-time .tick { position: absolute; top: 6px; width: 2px; height: 20px; background: var(--ink); } .vz-time .tl { position: absolute; top: 26px; font-size: 11.5px; transform: translateX(-50%); white-space: nowrap; }
/* viz: three-arm checks */
.vz-arms { display: grid; gap: 6px; } .vz-arms div { display: grid; grid-template-columns: 130px repeat(3, 22px); gap: 6px; align-items: center; }
.vz-arms b { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; font: 700 12px/1 system-ui; color: #fff; opacity: 0; transform: scale(.6); transition: opacity .3s, transform .3s; }
.vz-arms .y b { background: var(--teal); } .vz-arms .n b { background: #B7C3C6; }
.rc-cards.on .vz-arms b { opacity: 1; transform: none; } .vz-arms b:nth-of-type(2) { transition-delay: .15s; } .vz-arms b:nth-of-type(3) { transition-delay: .3s; } .vz-arms .n b { transition-delay: .6s; }
@media (prefers-reduced-motion: reduce) { .rc-cards .vz-range .span { width: 95.7%; } .rc-cards .vz-bars i { width: var(--w); } .rc-cards .vz-time .fill { width: 100%; } .rc-line { opacity: 1; transform: none; } }
.rc-item[hidden] { display: none; } .rc-item .big small { display: block; margin-top: 6px; } .rc-card .big small { white-space: nowrap; }
/* receipts 4: the quiet text link between the per-question receipt and the full ledger */
.rc-link { margin: 18px 0 0; padding: 4px 0; background: none; border: 0; cursor: pointer; font: 600 14px/1.4 "DM Sans", system-ui, sans-serif; color: var(--teal-text);
  background-image: linear-gradient(currentColor, currentColor); background-size: 0% 1.5px; background-position: 0 100%; background-repeat: no-repeat; transition: background-size .35s ease, color .2s; }
.rc-link:hover, .rc-link:focus-visible { background-size: 100% 1.5px; color: var(--ink); }
.rc-link:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
.rc-view-ledger .rc-link { display: block; margin: 22px auto 0; }
.rc-view-per .rc-link { margin-left: calc(min(280px, 30%) + 28px); }
@media (max-width: 720px) { .rc-view-per .rc-link { margin-left: 0; } }
@media (prefers-reduced-motion: reduce) { .rc-link { transition: none; } }
.rc-ledger .ft { text-align: left; padding-right: 190px; } @media (max-width: 720px) { .rc-ledger .ft { padding-right: 0; } }
