/* ============================================================ sections */
.sec { padding: 88px 0; position: relative; }
.sec-head { max-width: 920px; margin-bottom: 32px; display: flex; flex-direction: column; gap: 12px; }
.sec-head h2 { font-size: clamp(30px, 3.6vw, 46px); display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.lede { color: var(--ink-2); font-size: 17px; max-width: 44em; }
.cap-line { font-size: 15px; color: var(--ink-2); max-width: 44em; }
.demo-badge { font-family: var(--f-body); font-size: 13px; font-weight: 600; padding: 3px 9px; border-radius: 6px; color: var(--warn); border: 1px solid rgba(255, 193, 99, .4); letter-spacing: 0; }
@media (max-width: 720px) { .sec { padding: 60px 0; } .sec-head { margin-bottom: 24px; } .lede { font-size: 16px; } }

/* ============================================================ blocks */
.ledger-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.tbl-wrap { overflow-x: auto; margin: -6px -6px 0; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th { text-align: left; font-family: var(--f-body); font-weight: 600; font-size: 12.5px; color: var(--ink-3); padding: 8px 10px; border-bottom: 1px solid var(--line-2); white-space: nowrap; }
.tbl td { padding: 11px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .num { white-space: nowrap; }
.tbl .zc { display: flex; flex-direction: column; gap: 2px; }
.tbl .zc small { color: var(--ink-3); font-size: 11.5px; }
.tbl .zc .empty { color: var(--ink-3); font-family: var(--f-body); }
.tbl th.zh0::before, .tbl th.zh1::before, .tbl th.zh2::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; vertical-align: 1px; }
.tbl th.zh0::before { background: var(--z0); } .tbl th.zh1::before { background: var(--z1); } .tbl th.zh2::before { background: var(--z2); }
.tbl tr.live td { background: rgba(140, 180, 240, .05); }
.zsw { display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: var(--z); vertical-align: middle; flex: none; }
.empty-state { padding: 30px 8px; text-align: center; color: var(--ink-3); font-size: 14px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.empty-state svg { opacity: .8; }
.lb-list { list-style: none; margin: 0; padding: 0; }
.lb-list li { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.lb-list li:last-child { border-bottom: 0; }
.lb-rank { font-family: var(--f-mono); font-size: 13px; color: var(--ink-3); }
.lb-addr { display: flex; align-items: center; gap: 8px; min-width: 0; }
.lb-addr a { text-decoration: none; font-family: var(--f-mono); font-size: 13px; }
.lb-addr a:hover { color: var(--cyan); }
.lb-you { font-size: 11.5px; color: var(--eth-2); border: 1px solid var(--line-2); padding: 0 6px; border-radius: 5px; font-weight: 600; }
.lb-bar { display: flex; height: 3px; margin-top: 5px; background: rgba(255,255,255,.05); border-radius: 2px; overflow: hidden; }
.lb-bar span { display: block; height: 100%; }
.lb-val { text-align: right; font-family: var(--f-mono); font-size: 13.5px; font-weight: 700; }
.lb-val small { display: block; font-size: 11.5px; color: var(--ink-3); font-weight: 400; font-family: var(--f-body); }
.scan-bar { height: 3px; background: rgba(255,255,255,.06); margin: 6px 0 14px; border-radius: 2px; overflow: hidden; }
.scan-bar span { display: block; height: 100%; background: var(--eth); width: 0; transition: width .4s ease; }
@media (max-width: 960px) { .ledger-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) {
  .tbl thead { display: none; }
  .tbl, .tbl tbody, .tbl tr, .tbl td { display: block; width: 100%; }
  .tbl tr { padding: 12px 0; border-bottom: 1px solid var(--line-2); display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px 10px; }
  .tbl tr:last-child { border-bottom: 0; }
  .tbl td { padding: 0; border: 0; }
  .tbl tr.live td { background: none; }
  .tbl td.c-id { grid-column: 1 / 3; font-weight: 700; }
  .tbl td.c-pl { text-align: right; }
  .tbl td.c-time { font-size: 12.5px; color: var(--ink-2); }
  .tbl td.c-rw { grid-column: 2 / 4; text-align: right; font-size: 12.5px; }
  .tbl td[data-l]::before { content: attr(data-l); display: block; font-size: 11.5px; color: var(--ink-3); font-family: var(--f-body); }
}

/* ============================================================ money flow */
.flow { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; margin-bottom: 24px; }
.fnode { position: relative; margin: 0 22px 0 0; padding: 16px; border-radius: var(--r); display: flex; flex-direction: column; gap: 7px; min-width: 0;
  background: var(--panel); border: 1px solid var(--line); }
.fnode:last-child { margin-right: 0; }
.fnode h4 { font-size: 15px; line-height: 1.3; }
.fnode p { font-size: 13px; color: var(--ink-2); line-height: 1.5; }
.fnode.trust { border-style: dashed; border-color: rgba(255, 193, 99, .45); }
.split { display: grid; gap: 0; margin-top: 2px; }
.split div { font-size: 12.5px; padding: 7px 0; line-height: 1.4; color: var(--ink-2); border-top: 1px solid var(--line); }
.split div b { display: block; font-size: 13px; color: var(--ink); }
.fnum { display: flex; flex-direction: column; gap: 1px; margin-top: auto; padding-top: 9px; border-top: 1px solid var(--line); }
.fnum + .fnum { border-top: 0; padding-top: 2px; margin-top: 0; }
.fnum span { font-size: 12px; color: var(--ink-3); }
.fnum b { font-family: var(--f-mono); font-size: 14.5px; color: #fff; }
.fnum b .pre { font-size: 13px; }
/* plain connector between steps */
.fconn { position: absolute; right: -22px; top: 26px; width: 22px; height: 10px; }
.fconn::before { content: ""; position: absolute; left: 3px; right: 4px; top: 4px; height: 1px; background: var(--ink-3); }
.fconn::after { content: ""; position: absolute; right: 3px; top: 1.5px; width: 5px; height: 5px; border-top: 1px solid var(--ink-3); border-right: 1px solid var(--ink-3); transform: rotate(45deg); }
.fnode:last-child .fconn { display: none; }
@media (max-width: 1080px) {
  .flow { grid-template-columns: 1fr 1fr 1fr; row-gap: 22px; }
  .fnode:nth-child(3n) { margin-right: 0; }
  .fnode:nth-child(3n) .fconn { display: none; }
}
@media (max-width: 640px) {
  .flow { grid-template-columns: minmax(0, 1fr); row-gap: 22px; }
  .fnode { margin: 0; }
  .fnode .fconn, .fnode:nth-child(3n) .fconn { display: block; right: auto; left: 24px; top: auto; bottom: -22px; width: 10px; height: 22px; }
  .fnode:last-child .fconn { display: none; }
  .fconn::before { left: 4px; right: auto; top: 3px; bottom: 4px; width: 1px; height: auto; }
  .fconn::after { right: auto; left: 2px; top: auto; bottom: 3px; transform: rotate(135deg); }
}
.how-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
.steps { margin: 0; padding: 0 0 0 20px; display: grid; gap: 14px; }
.steps li { font-size: 14.5px; color: var(--ink-2); padding-left: 4px; }
.steps li::marker { font-family: var(--f-mono); font-size: 13.5px; color: var(--ink-3); }
.steps b { display: block; font-size: 15.5px; color: var(--ink); margin-bottom: 1px; }
.addrs { list-style: none; margin: 0; padding: 0; }
.addrs li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.addrs li:last-child { border-bottom: 0; }
.addrs li > span:first-child { color: var(--ink-2); }
.addrs a, .addrs code { font-family: var(--f-mono); font-size: 13px; text-decoration: none; text-align: right; min-width: 0; overflow-wrap: anywhere; }
.addrs a:hover { color: var(--cyan); }
@media (max-width: 860px) { .how-grid { grid-template-columns: minmax(0, 1fr); } }

/* ============================================================ rules */
.rules-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; align-items: start; max-width: 860px; }
.rule-list { margin: 0; padding: 0 0 0 22px; display: grid; gap: 10px; font-size: 15px; color: var(--ink-2); }
.rule-list li { padding-left: 4px; }
.rule-list li::marker { font-family: var(--f-mono); font-size: 13.5px; color: var(--ink-3); }

/* optional risks + owner block (artifacts/partials/risks-owner.html, not on the page right now) */
.risk-panel .panel-h { margin-bottom: 10px; }
.risk-list { margin: 0; padding: 0 0 0 20px; display: grid; gap: 8px; font-size: 14.5px; color: var(--ink-2); }
.risk-list li::marker { color: var(--ink-3); }
.owner-line { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 14.5px; color: var(--ink-2); }
.owner-line code { color: var(--ink); overflow-wrap: anywhere; }
