/* StreamSoft Signa - Sign Smarter, Move Faster.
   Design system layered over Bootstrap 5 (used for forms/modals/grid). */
:root {
  --brand: #0f766e;
  --brand-600: #0b5f58;
  --brand-700: #0a4d48;
  --brand-50: #f0fdfa;
  --brand-100: #ccfbf1;
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --line-2: #eef2f6;
  --bg: #f5f7fa;
  --surface: #ffffff;
  --side: #0b1220;
  --side-2: #131c2e;
  --gold: #b7791f;
  --danger: #dc2626;
  --warn: #d97706;
  --ok: #059669;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 6px 20px -8px rgba(15, 23, 42, .12);
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;

  --bs-primary: #0f766e;
  --bs-primary-rgb: 15, 118, 110;
  --bs-link-color: #0f766e;
  --bs-link-hover-color: #0a4d48;
  --bs-body-font-family: var(--font);
  --bs-body-color: #0f172a;
  --bs-border-color: #e2e8f0;
}

html, body { height: 100%; }
body { background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 15px; -webkit-font-smoothing: antialiased; }
a { color: var(--brand); }
a:hover { color: var(--brand-700); }
h1, h2, h3, h4 { letter-spacing: -.01em; font-weight: 650; }
.mono { font-family: "Cascadia Mono", Consolas, "SFMono-Regular", monospace; font-size: .86em; }
.text-muted, .muted { color: var(--muted) !important; }
.small-caps { font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; font-weight: 650; color: var(--muted); }

/* ---------- Bootstrap brand overrides ---------- */
.btn { border-radius: 9px; font-weight: 550; padding: .5rem 1rem; }
.btn-sm { padding: .3rem .7rem; border-radius: 8px; }
.btn-lg { padding: .7rem 1.4rem; border-radius: 11px; }
.btn-primary { --bs-btn-bg: var(--brand); --bs-btn-border-color: var(--brand); --bs-btn-hover-bg: var(--brand-600); --bs-btn-hover-border-color: var(--brand-600);
  --bs-btn-active-bg: var(--brand-700); --bs-btn-active-border-color: var(--brand-700); --bs-btn-disabled-bg: #7fb8b3; --bs-btn-disabled-border-color: #7fb8b3; }
.btn-outline-primary { --bs-btn-color: var(--brand); --bs-btn-border-color: #9fd3cd; --bs-btn-hover-bg: var(--brand); --bs-btn-hover-border-color: var(--brand);
  --bs-btn-active-bg: var(--brand-700); --bs-btn-active-border-color: var(--brand-700); }
.btn-light { --bs-btn-bg: #fff; --bs-btn-border-color: var(--line); --bs-btn-hover-bg: #f8fafc; --bs-btn-hover-border-color: #cbd5e1; }
.form-control, .form-select { border-radius: 9px; border-color: #d5dde7; padding: .55rem .8rem; }
.form-control:focus, .form-select:focus, .form-check-input:focus { border-color: #5eb5ad; box-shadow: 0 0 0 .2rem rgba(15, 118, 110, .15); }
.form-check-input:checked { background-color: var(--brand); border-color: var(--brand); }
.form-label { font-weight: 600; font-size: 13.5px; color: var(--ink-2); margin-bottom: .3rem; }
.form-text { color: var(--muted); }
.table { --bs-table-border-color: var(--line-2); margin: 0; }
.table > thead th { font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 650; background: #fbfcfd; border-bottom-color: var(--line); white-space: nowrap; }
.table > tbody td { vertical-align: middle; padding-top: .8rem; padding-bottom: .8rem; }
.table-hover > tbody > tr:hover > * { --bs-table-bg-state: #f8fbfb; }
.modal-content { border-radius: 16px; border: 0; box-shadow: 0 30px 60px -20px rgba(15, 23, 42, .35); }
.alert { border-radius: 10px; }

/* ---------- App shell ---------- */
.app { display: flex; min-height: 100vh; }
.side {
  width: 244px; flex: none; background: linear-gradient(180deg, var(--side) 0%, #0d1628 100%); color: #cbd5e1;
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; z-index: 20;
}
.side .brand { display: flex; align-items: center; gap: 10px; padding: 20px 20px 18px; color: #fff; text-decoration: none; }
.side .brand svg { width: 34px; height: 34px; flex: none; }
.side .brand .name { font-weight: 700; font-size: 16px; line-height: 1.1; letter-spacing: -.01em; }
.side .brand .name small { display: block; font-weight: 500; font-size: 11px; color: #5eead4; letter-spacing: .02em; margin-top: 2px; }
.side .new { margin: 4px 16px 16px; }
.side .new .btn { width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; box-shadow: 0 8px 18px -8px rgba(20, 184, 166, .7); }
.side nav { display: flex; flex-direction: column; gap: 2px; padding: 0 10px; }
.side nav .label { font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: #64748b; padding: 14px 12px 6px; font-weight: 650; }
.side nav a { display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 9px; color: #cbd5e1; text-decoration: none; font-weight: 520; font-size: 14.5px; }
.side nav a svg { width: 18px; height: 18px; opacity: .8; flex: none; }
.side nav a:hover { background: var(--side-2); color: #fff; }
.side nav a.active { background: rgba(20, 184, 166, .14); color: #fff; box-shadow: inset 3px 0 0 #2dd4bf; }
.side nav a .count { margin-left: auto; font-size: 11.5px; background: #1e293b; color: #94a3b8; padding: 1px 8px; border-radius: 999px; }
.side .foot { margin-top: auto; padding: 14px 16px 18px; border-top: 1px solid #1c2638; font-size: 12.5px; }
.side .foot .who { color: #fff; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side .foot .org { color: #7c8aa3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side .foot form button { background: none; border: 0; color: #5eead4; padding: 0; font-size: 12.5px; margin-top: 6px; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { height: 60px; display: flex; align-items: center; gap: 12px; padding: 0 28px; background: rgba(255, 255, 255, .8); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.topbar .crumbs { font-size: 13.5px; color: var(--muted); }
.topbar .crumbs b { color: var(--ink); font-weight: 600; }
.topbar .search { margin-left: auto; position: relative; width: min(340px, 40vw); }
.topbar .search input { padding-left: 34px; background: #f1f5f9; border-color: transparent; }
.topbar .search svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); width: 16px; color: var(--muted); }
.menu-toggle { display: none; background: none; border: 0; padding: 6px; }
.content { padding: 28px; max-width: 1320px; width: 100%; }
.page-head { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head h1 { font-size: 26px; margin: 0; }
.page-head p { margin: 4px 0 0; color: var(--muted); }
.page-head .actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- Cards / tiles ---------- */
.card-s { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-s > .hd { display: flex; align-items: center; gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--line-2); }
.card-s > .hd h2, .card-s > .hd h3 { font-size: 15.5px; margin: 0; }
.card-s > .hd .right { margin-left: auto; }
.card-s > .bd { padding: 20px; }
.card-s > .bd.flush { padding: 0; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin-bottom: 22px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); text-decoration: none; color: inherit; display: block; position: relative; overflow: hidden; }
a.tile:hover { border-color: #9fd3cd; }
.tile .k { font-size: 12.5px; color: var(--muted); font-weight: 600; display: flex; align-items: center; gap: 8px; }
.tile .k .dot { width: 8px; height: 8px; border-radius: 50%; }
.tile .v { font-size: 30px; font-weight: 700; margin-top: 6px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.tile .s { font-size: 12.5px; color: var(--muted); }

/* ---------- Status badges ---------- */
.badge-s { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 650; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.badge-s::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.st-draft { background: #f1f5f9; color: #475569; }
.st-inprogress { background: #fff7ed; color: #c2410c; }
.st-completed { background: #ecfdf5; color: #047857; }
.st-declined { background: #fef2f2; color: #b91c1c; }
.st-voided { background: #f5f3ff; color: #6d28d9; }
.st-expired { background: #f8fafc; color: #64748b; border: 1px dashed #cbd5e1; }
.st-created { background: #f1f5f9; color: #475569; }
.st-sent { background: #eff6ff; color: #1d4ed8; }
.st-viewed { background: #fff7ed; color: #c2410c; }

/* ---------- Workflow strip ---------- */
.flow { display: flex; gap: 0; overflow-x: auto; padding: 4px 2px 8px; scrollbar-width: thin; }
.flow .step { flex: 1 0 96px; text-align: center; position: relative; padding-top: 38px; font-size: 12px; font-weight: 600; color: var(--muted); }
.flow .step::before { content: attr(data-n); position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; background: #fff; border: 2px solid var(--line); color: var(--muted); font-size: 12px; font-weight: 700; z-index: 1; }
.flow .step::after { content: ""; position: absolute; top: 14px; left: calc(50% + 15px); right: calc(-50% + 15px); height: 2px; background: var(--line); }
.flow .step:last-child::after { display: none; }
.flow .step.done { color: var(--brand); }
.flow .step.done::before { background: var(--brand); border-color: var(--brand); color: #fff; content: "\2713"; }
.flow .step.done::after { background: var(--brand); }
.flow .step.now { color: var(--ink); }
.flow .step.now::before { border-color: var(--brand); color: var(--brand); box-shadow: 0 0 0 5px rgba(15, 118, 110, .12); }

/* ---------- Wizard steps (envelope builder) ---------- */
.wizard { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.wizard a, .wizard span { display: flex; align-items: center; gap: 8px; padding: 8px 14px 8px 8px; border-radius: 999px; background: #fff; border: 1px solid var(--line);
  font-size: 13.5px; font-weight: 600; color: var(--muted); text-decoration: none; }
.wizard .n { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: #f1f5f9; font-size: 12px; }
.wizard .on { border-color: var(--brand); color: var(--ink); }
.wizard .on .n { background: var(--brand); color: #fff; }
.wizard .ok .n { background: var(--brand-100); color: var(--brand-700); }

/* ---------- Upload ---------- */
.drop { border: 2px dashed #b6c4d4; border-radius: 14px; background: #fbfcfe; padding: 34px 20px; text-align: center; cursor: pointer; transition: .15s; }
.drop:hover, .drop.over { border-color: var(--brand); background: var(--brand-50); }
.drop svg { width: 42px; height: 42px; color: var(--brand); }
.drop .t { font-weight: 650; margin-top: 8px; }
.drop .f { color: var(--brand-700); font-weight: 600; margin-top: 6px; }

/* ---------- Recipients editor ---------- */
.rcp { display: grid; grid-template-columns: 34px 64px 1fr 1fr 170px 40px; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.rcp .swatch { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 12px; }
.parallel .rcp .order { visibility: hidden; }
.template-mode .rcp { grid-template-columns: 34px 64px 1fr 170px 40px; }
.template-mode .rcp .email { display: none; }

/* ---------- Document canvas (prepare + sign) ---------- */
.doc-wrap { display: grid; grid-template-columns: 260px 1fr 280px; gap: 18px; align-items: start; }
.doc-pages { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.page { position: relative; width: 100%; max-width: 860px; background: #fff; box-shadow: 0 2px 4px rgba(15, 23, 42, .06), 0 14px 34px -14px rgba(15, 23, 42, .28); border-radius: 3px; user-select: none; }
.page img { width: 100%; height: 100%; display: block; border-radius: 3px; pointer-events: none; }
.page .pno { position: absolute; top: -1px; right: -44px; font-size: 11px; color: var(--muted); font-weight: 600; }
.panel { position: sticky; top: 78px; }
.palette .ftype { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 11px; margin-bottom: 7px; border: 1px solid var(--line); border-radius: 10px;
  background: #fff; font-weight: 600; font-size: 13.5px; cursor: grab; text-align: left; color: var(--ink); }
.palette .ftype:hover { border-color: var(--pc, var(--brand)); background: #fcfefe; }
.palette .ftype.armed { border-color: var(--pc, var(--brand)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--pc, var(--brand)) 20%, transparent); }
.palette .ftype svg { width: 18px; height: 18px; color: var(--pc, var(--brand)); }
.who-pick { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.who-pick label { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); cursor: pointer; font-size: 13.5px; font-weight: 600; background: #fff; }
.who-pick input { accent-color: var(--brand); }
.who-pick .sw { width: 12px; height: 12px; border-radius: 4px; flex: none; }
.who-pick .cnt { margin-left: auto; font-size: 11.5px; color: var(--muted); font-weight: 600; }
.placing .page { cursor: crosshair; }

.fld { position: absolute; border: 1.5px solid var(--fc); background: color-mix(in srgb, var(--fc) 13%, transparent); border-radius: 5px; display: flex; align-items: center;
  justify-content: center; font-size: 11.5px; font-weight: 650; color: var(--fc); cursor: move; overflow: hidden; touch-action: none; }
.fld.sel { box-shadow: 0 0 0 3px color-mix(in srgb, var(--fc) 35%, transparent); z-index: 3; }
.fld .h { position: absolute; right: -1px; bottom: -1px; width: 12px; height: 12px; background: var(--fc); border-radius: 3px 0 4px 0; cursor: nwse-resize; }
.fld .lbl { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 6px; pointer-events: none; }
.fld .req { position: absolute; top: 1px; right: 4px; font-size: 12px; pointer-events: none; }

/* signer view */
.sfld { position: absolute; border-radius: 5px; display: flex; align-items: center; justify-content: flex-start; font-size: 12px; overflow: hidden; }
.sfld.todo { border: 2px dashed #f59e0b; background: rgba(254, 243, 199, .72); cursor: pointer; justify-content: center; font-weight: 700; color: #92400e; animation: pulse 2.2s infinite; }
.sfld.todo:hover { background: rgba(253, 230, 138, .9); }
.sfld.done { border: 1.5px solid rgba(15, 118, 110, .45); background: rgba(240, 253, 250, .55); }
.sfld.done img { max-width: 100%; max-height: 100%; margin: auto; display: block; }
.sfld.auto { border: 1.5px dashed rgba(15, 118, 110, .45); background: rgba(240, 253, 250, .6); color: var(--ink); padding: 0 5px; font-weight: 600; }
.sfld input[type=text] { width: 100%; height: 100%; border: 0; background: transparent; padding: 0 6px; font-size: 13px; outline: none; }
.sfld input[type=checkbox] { width: 70%; height: 70%; margin: auto; accent-color: var(--brand); cursor: pointer; }
.sfld.flash { box-shadow: 0 0 0 4px rgba(245, 158, 11, .55); }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, .0); } 50% { box-shadow: 0 0 0 5px rgba(245, 158, 11, .25); } }

/* ---------- Signer shell ---------- */
.signer-top { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.signer-top .in { max-width: 1100px; margin: 0 auto; padding: 12px 20px; display: flex; align-items: center; gap: 14px; }
.signer-top .brand { display: flex; align-items: center; gap: 9px; font-weight: 700; color: var(--ink); text-decoration: none; }
.signer-top .brand svg { width: 28px; height: 28px; }
.signer-top .doc { font-size: 13.5px; color: var(--muted); border-left: 1px solid var(--line); padding-left: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.signer-top .doc b { color: var(--ink); }
.signer-top .progress-s { margin-left: auto; font-size: 13px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.signer-main { max-width: 1100px; margin: 0 auto; padding: 24px 20px 140px; }
.finish-bar { position: fixed; left: 0; right: 0; bottom: 0; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -10px 30px -18px rgba(15, 23, 42, .35); z-index: 40; }
.finish-bar .in { max-width: 1100px; margin: 0 auto; padding: 14px 20px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.finish-bar .consent { font-size: 13px; color: var(--ink-2); max-width: 560px; display: flex; gap: 9px; align-items: flex-start; }
.finish-bar .consent input { margin-top: 3px; accent-color: var(--brand); width: 16px; height: 16px; flex: none; }
.finish-bar .btns { margin-left: auto; display: flex; gap: 8px; }
.center-card { max-width: 480px; margin: 7vh auto 0; }
.center-card .card-s > .bd { padding: 32px; }
.otp-input { font-size: 30px; letter-spacing: 14px; text-align: center; font-family: Consolas, monospace; font-weight: 700; }
.big-ok { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-50); color: var(--brand); margin: 0 auto 14px; }
.big-ok svg { width: 34px; height: 34px; }

/* signature pad */
.sigpad { border: 1.5px dashed #b6c4d4; border-radius: 12px; background: #fff; position: relative; touch-action: none; }
.sigpad canvas { width: 100%; height: 170px; display: block; cursor: crosshair; }
.sigpad .base { position: absolute; left: 24px; right: 24px; bottom: 38px; border-bottom: 1.5px solid #cbd5e1; pointer-events: none; }
.sigpad .x { position: absolute; left: 12px; bottom: 40px; color: #94a3b8; font-size: 18px; pointer-events: none; }
.sig-styles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sig-styles label { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; cursor: pointer; font-size: 26px; color: #1e3a8a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sig-styles input { display: none; }
.sig-styles input:checked + span { color: var(--brand-700); }
.sig-styles label:has(input:checked) { border-color: var(--brand); background: var(--brand-50); }

/* ---------- Detail page ---------- */
.rtimeline { display: flex; flex-direction: column; gap: 10px; }
.rrow { display: grid; grid-template-columns: 38px 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 11px; background: #fcfdfe; }
.avatar { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 13px; }
.rrow .nm { font-weight: 650; }
.rrow .em { font-size: 13px; color: var(--muted); }
.rrow .meta { font-size: 12px; color: var(--muted); margin-top: 3px; }
.chain-ok { color: var(--ok); font-weight: 650; }
.chain-bad { color: var(--danger); font-weight: 650; }
.kv { display: grid; grid-template-columns: 150px 1fr; gap: 8px 14px; font-size: 14px; }
.kv dt { color: var(--muted); font-weight: 600; }
.kv dd { margin: 0; word-break: break-word; }
.empty { text-align: center; padding: 46px 20px; color: var(--muted); }
.empty svg { width: 46px; height: 46px; color: #94a3b8; margin-bottom: 10px; }
.empty h3 { color: var(--ink); font-size: 17px; }
.seg { display: inline-flex; background: #eef2f6; border-radius: 10px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.seg a { padding: 6px 12px; border-radius: 8px; font-size: 13.5px; font-weight: 600; color: var(--muted); text-decoration: none; }
.seg a.on { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(15, 23, 42, .08); }
.seg a .c { font-size: 11.5px; color: var(--muted); margin-left: 4px; }
.copy-box { display: flex; gap: 8px; }
.copy-box input { font-family: Consolas, monospace; font-size: 13px; }
.code-block { background: #0b1220; color: #e2e8f0; border-radius: 10px; padding: 14px 16px; font-size: 12.5px; overflow-x: auto; font-family: "Cascadia Mono", Consolas, monospace; white-space: pre; }
.pill-method { font-family: Consolas, monospace; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 6px; color: #fff; }
.m-get { background: #2563eb; } .m-post { background: #059669; }

/* ---------- Public landing ---------- */
.pub-nav { max-width: 1180px; margin: 0 auto; display: flex; align-items: center; gap: 18px; padding: 18px 24px; }
.pub-nav .brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 750; font-size: 18px; }
.pub-nav .brand svg { width: 34px; height: 34px; }
.pub-nav .links { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.hero { max-width: 1180px; margin: 0 auto; padding: 56px 24px 30px; display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero .eyebrow { display: inline-flex; gap: 8px; align-items: center; font-size: 12.5px; font-weight: 700; color: var(--brand-700); background: var(--brand-50); border: 1px solid var(--brand-100); padding: 5px 12px; border-radius: 999px; }
.hero h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.04; margin: 18px 0 16px; font-weight: 780; letter-spacing: -.035em; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, #0f766e, #14b8a6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 18px; color: var(--ink-2); max-width: 560px; }
.hero-art { background: radial-gradient(120% 120% at 100% 0%, #ccfbf1 0%, #f0fdfa 45%, #fff 75%); border: 1px solid var(--line); border-radius: 22px; padding: 26px; box-shadow: var(--shadow); }
.mock-doc { background: #fff; border-radius: 10px; box-shadow: 0 18px 40px -18px rgba(15, 23, 42, .35); padding: 22px 22px 18px; }
.mock-doc .ln { height: 8px; background: #e9eef4; border-radius: 4px; margin-bottom: 9px; }
.mock-sig { margin-top: 18px; display: flex; gap: 14px; }
.mock-sig .box { flex: 1; border: 2px dashed #f59e0b; background: #fffbeb; border-radius: 8px; height: 58px; display: grid; place-items: center; color: #92400e; font-weight: 700; font-size: 12px; }
.mock-sig .box.signed { border: 1.5px solid rgba(15, 118, 110, .4); background: #f0fdfa; color: #0f766e; font-family: "Segoe Script", "Brush Script MT", cursive; font-size: 22px; font-weight: 400; }
.section { max-width: 1180px; margin: 0 auto; padding: 36px 24px; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.feature .ic { width: 38px; height: 38px; border-radius: 10px; background: var(--brand-50); color: var(--brand); display: grid; place-items: center; margin-bottom: 12px; }
.feature .ic svg { width: 20px; height: 20px; }
.feature h3 { font-size: 16px; margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: 14px; margin: 0; }
.pub-foot { border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.pub-foot .in { max-width: 1180px; margin: 0 auto; padding: 22px 24px; display: flex; gap: 16px; flex-wrap: wrap; }
.auth-wrap { max-width: 460px; margin: 5vh auto; padding: 0 16px; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .doc-wrap { grid-template-columns: 220px 1fr; }
  .doc-wrap .props { grid-column: 1 / -1; position: static; }
}
@media (max-width: 900px) {
  .side { position: fixed; left: 0; transform: translateX(-100%); transition: transform .2s; }
  .side.open { transform: none; box-shadow: 20px 0 50px rgba(0, 0, 0, .3); }
  .menu-toggle { display: inline-flex; }
  .content { padding: 18px 16px; }
  .topbar { padding: 0 16px; }
  .topbar .search { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 28px; }
  .doc-wrap { grid-template-columns: 1fr; }
  .panel { position: static; }
  .page .pno { display: none; }
  .rcp { grid-template-columns: 30px 56px 1fr 40px; }
  .rcp .email, .rcp .role { grid-column: 3 / 5; }
  .kv { grid-template-columns: 1fr; gap: 2px 0; }
  .kv dd { margin-bottom: 8px; }
  .finish-bar .btns { margin-left: 0; width: 100%; }
  .finish-bar .btns .btn { flex: 1; }
}
