/* How billing works - the public page that shows how transactions are counted (billing.html). Builds on about.css. */
.bill { padding-top: 34px; padding-bottom: 48px; }
.bill h1 { font-size: clamp(28px, 3.4vw, 38px); letter-spacing: -.6px; margin: 0 0 10px; color: var(--ink); }
.bill h2 { font-size: 19px; margin: 0 0 8px; color: var(--ink); }
.bill-lead { max-width: 820px; font-size: 17px; color: #33415c; margin: 0 0 22px; }

.bill-rules { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.rule { display: flex; gap: 12px; align-items: flex-start; background: #fff; border-radius: 12px; padding: 14px 16px; box-shadow: 0 1px 3px rgba(13,27,42,.07); font-size: 14.5px; }
.dot { flex: none; display: inline-flex; align-items: center; justify-content: center; min-width: 32px; height: 32px; padding: 0 6px; border-radius: 999px; font-weight: 800; font-size: 13px; color: #fff; }
.dot.in, .dot.out { background: #0f766e; }
.dot.free { background: #fff; color: #5d6b82; border: 1.5px dashed #8a97ab; }

.bill-case { margin-top: 30px; background: #fff; border-radius: 14px; padding: 20px 22px 18px; box-shadow: 0 1px 3px rgba(13,27,42,.07); }
.case-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.case-head h2 { margin: 0; }
.case-n { display: inline-block; margin-right: 8px; font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--teal-dark); vertical-align: 3px; }
.case-sum { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: #33415c; }
.case-sum b { font-size: 18px; color: var(--ink); }
.case-sum .eq { color: #8a97ab; }
.case-sum .tot { background: #e6f6f3; color: #0e6b62; padding: 4px 12px; border-radius: 999px; }
.case-sum .tot b { color: #0e6b62; }
.bill-case > p { color: #33415c; margin: 8px 0 14px; max-width: 900px; }

/* The diagrams look like the workflow canvas, but cannot be changed. */
.canvas { border: 1px solid #e3e0d6; border-radius: 12px; overflow: hidden; background: #fff; }
.canvas svg { display: block; width: 100%; height: auto; font-family: "Segoe UI", system-ui, -apple-system, Arial, sans-serif; }
.canvas .node rect { filter: drop-shadow(0 1px 2px rgba(0,0,0,.08)); }
.canvas .badge circle { fill: #0f766e; stroke: #fff; stroke-width: 2.5; }
.canvas .badge text { fill: #fff; font-size: 12.5px; font-weight: 800; }

.bill-assume { margin: 30px 0 0; padding: 12px 16px; background: #e6f6f3; border-radius: 10px; color: #0e6b62; font-size: 14.5px; }
.bill-assume a { color: #0e6b62; }

.bill-two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 30px; }
.bill-two .card { min-width: 0; overflow-x: auto; background: #fff; border-radius: 14px; padding: 20px 22px; box-shadow: 0 1px 3px rgba(13,27,42,.07); }
.bill-two .card p { color: #33415c; margin: 0 0 12px; }
.bill-two h2.mt { margin-top: 18px; }
.bill-list { margin: 0 0 10px; padding-left: 18px; color: #33415c; }
.bill-list li { margin-bottom: 8px; }
.note-small { font-size: 13.5px; color: var(--dim) !important; }

.bill-table { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 4px; }
.bill-table th { text-align: right; font-size: 11.5px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; color: var(--dim); padding: 6px 8px; border-bottom: 1px solid var(--line); }
.bill-table td { text-align: right; padding: 8px; border-bottom: 1px solid #eef2f6; }
.bill-table th:first-child, .bill-table td:first-child { text-align: left; padding-left: 0; }
.bill-table tr:last-child td { border-bottom: 0; }

@media (max-width: 860px) {
  .bill-rules, .bill-two { grid-template-columns: minmax(0, 1fr); }
  .bill-table { font-size: 12.5px; }
  .bill-table th { font-size: 10px; padding: 6px 4px; }
  .bill-table td { padding: 8px 4px; }
  .canvas { overflow-x: auto; }
  .canvas svg { min-width: 640px; }
}