/* ─────────────────────────────────────────────────────────────────────────
 * Contracts & e-Signature page — page-specific widgets only.
 * Loaded after styles.css + _partials/marketing.css. LIGHT theme, no page.css.
 *
 * Own block vocabulary (distinct from pos/accounting/omni/callcenter): a
 * paper contract with a signature block, a horizontal lifecycle stepper, a
 * recipients/signing-order list, and a tamper-evident audit trail ending in
 * a Certificate of Completion. Same tokens + section rhythm; unique mockups.
 * ─────────────────────────────────────────────────────────────── */

/* ── Paper contract document ────────────────────────────────────── */
.doc { padding: 26px 30px 30px; background: var(--surface); }
.doc__title { font-size: 16px; font-weight: 800; color: var(--ink); letter-spacing: -0.01em; }
.doc__meta { font-size: 12px; color: var(--muted); margin-bottom: 18px; }
.doc__lines { display: flex; flex-direction: column; gap: 9px; margin-bottom: 22px; }
.doc__lines i { display: block; height: 8px; border-radius: 4px; background: var(--surface-3); }
.doc__lines i:nth-child(3) { width: 86%; }
.doc__lines i:nth-child(5) { width: 72%; }
.doc__sigblock { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.sig { border: 1px solid var(--line); border-radius: 10px; padding: 14px; }
.sig__label { font-size: 10px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted-2); font-weight: 700; }
.sig__ink { font-family: 'Segoe Script', 'Brush Script MT', cursive; font-style: italic; font-size: 24px; color: var(--brand); line-height: 1.1; margin: 8px 0 4px; }
.sig__line { border-top: 1px solid var(--line-2); padding-top: 6px; font-size: 12px; color: var(--muted); }
.sig--pending { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(124,92,255,.12); background: var(--grad-soft); }
.sig__tab { display: inline-flex; align-items: center; gap: 6px; margin: 10px 0 6px; padding: 6px 12px; border-radius: 8px; background: var(--grad); color: #fff; font-size: 12px; font-weight: 700; }

/* ── Lifecycle stepper ──────────────────────────────────────────── */
.life { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 0; max-width: 920px; margin: 0 auto; }
.life__step { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; min-width: 96px; }
.life__dot { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 15px; border: 2px solid var(--line-2); background: var(--surface); color: var(--muted-2); }
.life__step.is-done .life__dot { background: var(--grad); border-color: transparent; color: #fff; }
.life__step.is-now .life__dot { border-color: var(--brand); color: var(--brand); box-shadow: 0 0 0 4px rgba(124,92,255,.14); }
.life__name { font-size: 12px; font-weight: 600; color: var(--ink); }
.life__bar { flex: 1 1 24px; height: 2px; min-width: 24px; background: var(--line-2); margin-top: -20px; }
.life__bar.is-done { background: var(--brand); }

/* ── Recipients / signing order ─────────────────────────────────── */
.recip { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-md); overflow: hidden; }
.recip__row { display: grid; grid-template-columns: 28px 1fr auto; gap: 12px; align-items: center; padding: 13px 18px; border-bottom: 1px solid var(--line); }
.recip__row:last-child { border-bottom: 0; }
.recip__ord { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; color: #fff; background: var(--grad); }
.recip__name { font-size: 14px; font-weight: 600; color: var(--ink); }
.recip__role { font-size: 12px; color: var(--muted); }
.recip__st { font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: 10px; }
.st--signed { background: rgba(22,143,91,.12); color: #168f5b; }
.st--wait { background: var(--surface-3); color: var(--muted); }
.st--sent { background: rgba(33,212,253,.14); color: #0a7ea4; }

/* ── Tamper-evident audit trail + certificate ───────────────────── */
.audit { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); overflow: hidden; }
.audit__row { display: grid; grid-template-columns: 26px 1fr auto; gap: 12px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.audit__ico { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; font-size: 13px; background: var(--surface-3); }
.audit__ev { font-size: 13px; color: var(--ink); font-weight: 600; }
.audit__hash { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 11px; color: var(--muted-2); }
.audit__ts { font-size: 11px; color: var(--muted); white-space: nowrap; }
.audit__cert { display: flex; align-items: center; gap: 12px; padding: 16px; background: var(--grad-soft); }
.audit__seal { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-size: 20px; background: var(--grad); color: #fff; flex: none; }
.audit__cert b { font-size: 13px; color: var(--ink); display: block; }
.audit__cert span { font-size: 12px; color: var(--muted); }

/* ── Trust trio (3 wide, instead of an 8-card grid) ─────────────── */
.ctrio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; max-width: 1000px; margin: 0 auto; }
.ctrio__card { padding: 26px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); text-align: center; }
.ctrio__ico { font-size: 30px; }
.ctrio__card h3 { font-size: 16px; font-weight: 700; margin: 12px 0 8px; }
.ctrio__card p { font-size: 14px; line-height: 1.55; color: var(--muted); margin: 0; }

@media (max-width: 760px) {
  .doc__sigblock { grid-template-columns: 1fr; }
  .ctrio { grid-template-columns: 1fr; }
  .life__name { display: none; }
}
