:root {
  --navy: #0f1c2e;
  --navy-2: #182a42;
  --gold: #f4c500;
  --gold-soft: #fff6cc;
  --bg: #f4f6f9;
  --card: #ffffff;
  --line: #e2e8ef;
  --text: #1e2b3a;
  --muted: #6b7a8c;
  --ok: #2f7d32;
  --ok-soft: #e8f5e9;
  --warn: #9a6700;
  --warn-soft: #fff4d6;
  --bad: #b42318;
  --bad-soft: #fdecea;
  --info: #1d4ed8;
  --info-soft: #e8efff;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(15, 28, 46, .06), 0 4px 16px rgba(15, 28, 46, .06);
  font-family: "Segoe UI", Inter, system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: var(--bg); font-size: 15px; line-height: 1.5; }
a { color: inherit; }
h1, h2, h3 { color: var(--navy); line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: 26px; }
h2 { font-size: 19px; }
h3 { font-size: 15.5px; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.hidden { display: none !important; }
code, .mono { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: 12.5px; word-break: break-all; }

/* ---------- buttons & inputs */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid var(--line); background: #fff; color: var(--navy);
  border-radius: 8px; padding: 9px 16px; font: inherit; font-weight: 600; font-size: 14px;
  cursor: pointer; text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s, transform .05s;
}
.btn:hover { border-color: #c5cfdb; background: #fafbfc; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn.primary { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.btn.primary:hover { background: #ffd21f; }
.btn.dark { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn.dark:hover { background: var(--navy-2); }
.btn.danger { color: var(--bad); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: rgba(15, 28, 46, .05); }
.btn.sm { padding: 6px 11px; font-size: 13px; }
.btn.lg { padding: 13px 24px; font-size: 16px; }
.btn.block { width: 100%; }

label { display: block; font-size: 13px; font-weight: 600; color: var(--navy); margin-bottom: 12px; }
label .help { display: block; font-weight: 400; color: var(--muted); font-size: 12px; margin-top: 4px; }
input, select, textarea {
  display: block; width: 100%; margin-top: 5px; padding: 9px 11px; font: inherit; font-size: 14.5px; color: var(--text);
  border: 1px solid #cfd8e3; border-radius: 8px; background: #fff; transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 84px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(244, 197, 0, .25); }
input[type="checkbox"], input[type="radio"] { display: inline-block; width: auto; margin: 0 8px 0 0; accent-color: var(--navy); }
.check { display: flex; align-items: flex-start; gap: 4px; font-weight: 500; }
.check input { margin-top: 3px; }
.field-error input, .field-error select, .field-error textarea { border-color: var(--bad); }
.field-error .error-text { color: var(--bad); font-size: 12px; font-weight: 500; display: block; margin-top: 4px; }
.input-suffix { position: relative; }
.input-suffix span { position: absolute; right: 11px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 13px; font-weight: 400; pointer-events: none; }
.input-suffix input { padding-right: 70px; }
.inline-row { display: flex; gap: 8px; align-items: flex-end; }
.inline-row > * { flex: 1; }
.inline-row > .btn { flex: 0; margin-bottom: 12px; }

/* ---------- cards, badges */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 22px; box-shadow: var(--shadow); }
.card + .card { margin-top: 16px; }
.card.narrow { max-width: 420px; width: 100%; }
.card h2 { display: flex; align-items: center; gap: 10px; }
.bar-title { display: flex; align-items: center; gap: 10px; }
.bar-title::before { content: ""; width: 4px; height: 18px; background: var(--gold); border-radius: 2px; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: #eef2f6; color: var(--navy); white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .8; }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.bad { background: var(--bad-soft); color: var(--bad); }
.badge.info { background: var(--info-soft); color: var(--info); }
.badge.plain::before { display: none; }
.chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; font-size: 13px; font-weight: 500; cursor: pointer; background: #fff; user-select: none; }
.chip input { margin: 0; }
.chip.on { border-color: var(--navy); background: var(--navy); color: #fff; }
.alert { border-radius: 8px; padding: 11px 14px; font-size: 14px; margin-bottom: 14px; background: var(--info-soft); color: #1e3a8a; }
.alert.bad { background: var(--bad-soft); color: var(--bad); }
.alert.ok { background: var(--ok-soft); color: var(--ok); }
.alert.warn { background: var(--warn-soft); color: #7a5200; }

/* ---------- layout: app shell */
.shell { display: grid; grid-template-columns: 236px 1fr; min-height: 100vh; }
.sidebar { background: var(--navy); color: #cfd8e3; padding: 22px 14px; display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; height: 100vh; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; font-size: 18px; text-decoration: none; padding: 0 8px 18px; border-bottom: 1px solid rgba(255,255,255,.08); margin-bottom: 12px; }
.brand img { width: 30px; height: 30px; }
.brand small { display: block; font-weight: 500; font-size: 11px; color: var(--gold); letter-spacing: .12em; text-transform: uppercase; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 8px; color: #cfd8e3; text-decoration: none; font-weight: 500; font-size: 14.5px; }
.nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav a.active { background: rgba(244, 197, 0, .14); color: var(--gold); }
.nav svg { width: 18px; height: 18px; flex: none; }
.sidebar .spacer { flex: 1; }
.sidebar .org { padding: 12px; border-radius: 8px; background: rgba(255,255,255,.05); font-size: 13px; }
.sidebar .org strong { color: #fff; display: block; }
.sidebar select { background: var(--navy-2); color: #fff; border-color: rgba(255,255,255,.12); font-size: 13px; }
.shell > div { min-width: 0; }
.main { padding: 28px 34px 60px; min-width: 0; }
.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head p { margin: 4px 0 0; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.mobile-top { display: none; }
.jump-sign { display: none; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-bottom: 20px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.stat .label { font-size: 12.5px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.stat .value { font-size: 26px; font-weight: 700; color: var(--navy); margin-top: 4px; }
.stat .meter { height: 6px; border-radius: 3px; background: #eef2f6; margin-top: 10px; overflow: hidden; }
.stat .meter span { display: block; height: 100%; background: var(--gold); }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; overflow-x: auto; scrollbar-width: none; flex: 1 1 auto; min-width: 0; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { border: 0; background: none; font: inherit; font-weight: 600; font-size: 14px; color: var(--muted); padding: 10px 14px; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs button.active { color: var(--navy); border-bottom-color: var(--gold); }

table.list { width: 100%; border-collapse: collapse; background: #fff; }
.table-wrap { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: auto; box-shadow: var(--shadow); }
table.list th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 11px 16px; border-bottom: 1px solid var(--line); background: #fafbfc; }
table.list td { padding: 13px 16px; border-bottom: 1px solid #eef2f6; vertical-align: middle; font-size: 14px; }
table.list tr:last-child td { border-bottom: 0; }
table.list tr.click { cursor: pointer; }
table.list tr.click:hover td { background: #fafbfc; }
.doc-title { font-weight: 600; color: var(--navy); }
.progress-dots { display: inline-flex; gap: 4px; }
.progress-dots span { width: 10px; height: 10px; border-radius: 50%; background: #dfe5ec; }
.progress-dots span.signed { background: var(--ok); }
.progress-dots span.viewed { background: var(--gold); }
.progress-dots span.declined { background: var(--bad); }
.empty { text-align: center; padding: 48px 20px; color: var(--muted); }
.empty h3 { color: var(--navy); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.grid-2 .full { grid-column: 1 / -1; }
.split { display: grid; grid-template-columns: minmax(360px, 480px) 1fr; gap: 22px; align-items: start; }
.sticky { position: sticky; top: 20px; }
.fieldset { border: 0; padding: 0; margin: 0 0 8px; }
.fieldset legend { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 10px; padding: 0; }
.fieldset + .fieldset { border-top: 1px solid var(--line); padding-top: 16px; }

.template-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.template-card { text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px; cursor: pointer; font: inherit; display: flex; flex-direction: column; gap: 6px; transition: border-color .15s, box-shadow .15s, transform .15s; position: relative; overflow: hidden; }
.template-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--gold); opacity: 0; transition: opacity .15s; }
.template-card:hover { border-color: #c5cfdb; box-shadow: var(--shadow); transform: translateY(-1px); }
.template-card:hover::before { opacity: 1; }
.template-card strong { color: var(--navy); font-size: 15.5px; }
.template-card .cat { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; }
.template-card p { font-size: 13.5px; color: var(--muted); margin: 0; }

.dropzone { border: 2px dashed #c5cfdb; border-radius: 12px; padding: 34px; text-align: center; background: #fafbfc; cursor: pointer; transition: border-color .15s, background .15s; }
.dropzone.drag, .dropzone:hover { border-color: var(--gold); background: var(--gold-soft); }

.signer-row { border: 1px solid var(--line); border-radius: 10px; padding: 14px 14px 2px; margin-bottom: 10px; background: #fafbfc; position: relative; }
.signer-row .role { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; display: flex; justify-content: space-between; align-items: center; }
.signer-row .methods { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 128px 1fr; gap: 10px; padding: 8px 0; border-bottom: 1px solid #eef2f6; font-size: 13.5px; }
.timeline li:last-child { border-bottom: 0; }
.timeline time { color: var(--muted); font-size: 12.5px; }
.signer-status { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid #eef2f6; }
.signer-status:last-child { border-bottom: 0; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--navy); color: var(--gold); display: grid; place-items: center; font-weight: 700; font-size: 13px; flex: none; }
.signer-status .who { flex: 1; min-width: 0; }
.signer-status .who strong { display: block; color: var(--navy); }
.signer-status .who span { font-size: 12.5px; color: var(--muted); display: block; overflow: hidden; text-overflow: ellipsis; }

.nav-count { margin-left: auto; background: var(--gold); color: var(--navy); border-radius: 999px; font-size: 11.5px; font-weight: 700; padding: 1px 8px; }
.pending-card { padding: 18px 20px; }
.pending-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; margin-bottom: 10px; flex-wrap: wrap; }
.pending-head a.doc-title { text-decoration: none; font-size: 16px; }
.pending-head a.doc-title:hover { text-decoration: underline; }
.table-scroll { overflow-x: auto; }
table.list.compact td, table.list.compact th { padding: 9px 10px; }
.warn-text { color: var(--warn); font-weight: 600; }
.pipedrive-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: -4px 0 14px; }
.pd-dot { width: 9px; height: 9px; border-radius: 50%; background: #017737; display: inline-block; }
.pick-list { display: flex; flex-direction: column; gap: 6px; max-height: 50vh; overflow: auto; margin-top: 8px; }
.pick-item { text-align: left; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; background: #fff; font: inherit; cursor: pointer; }
.pick-item:hover { border-color: var(--gold); background: #fffdf3; }
.pick-item strong { display: block; color: var(--navy); }
.pick-item span { font-size: 12.5px; color: var(--muted); }
.chip small { font-size: 11px; opacity: .8; }

.list-label { font-size: 13px; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.list-input { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.list-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)) auto; gap: 8px; align-items: end; background: #fafbfc; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px 0; }
.list-row label { margin-bottom: 8px; font-size: 12px; }
.list-row .btn { margin-bottom: 8px; }
.list-input > .btn { align-self: flex-start; }

/* ---------- pdf viewer */
.pdf-viewer { background: #e7ecf2; border-radius: 12px; padding: 16px; display: flex; flex-direction: column; align-items: center; gap: 14px; min-height: 300px; max-height: calc(100vh - 140px); overflow: auto; border: 1px solid var(--line); }
.pdf-viewer canvas { width: 100%; max-width: 820px; height: auto; background: #fff; box-shadow: 0 2px 10px rgba(15, 28, 46, .12); border-radius: 3px; }
.pdf-viewer .loading { margin: auto; color: var(--muted); }
.pdf-viewer.tall { max-height: none; }

/* ---------- toast & modal */
.toast-host { position: fixed; bottom: 20px; right: 20px; display: flex; flex-direction: column; gap: 8px; z-index: 100; }
.toast { background: var(--navy); color: #fff; padding: 12px 16px; border-radius: 10px; box-shadow: var(--shadow); font-size: 14px; max-width: 380px; border-left: 4px solid var(--gold); animation: pop .2s ease-out; }
.toast.bad { border-left-color: #f97066; }
@keyframes pop { from { transform: translateY(8px); opacity: 0; } }
.modal-back { position: fixed; inset: 0; background: rgba(15, 28, 46, .45); display: grid; place-items: center; padding: 16px; z-index: 90; }
.modal { background: #fff; border-radius: 14px; padding: 24px; width: 100%; max-width: 520px; box-shadow: 0 20px 60px rgba(15, 28, 46, .3); max-height: 90vh; overflow: auto; }
.secret-box { background: var(--navy); color: var(--gold); padding: 12px 14px; border-radius: 8px; font-family: ui-monospace, Consolas, monospace; font-size: 13px; word-break: break-all; margin: 10px 0; }

/* ---------- auth pages */
.center-page { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; background: radial-gradient(1200px 600px at 10% -10%, #1c3252 0%, var(--navy) 55%); }
.auth-brand { display: flex; align-items: center; gap: 10px; justify-content: center; color: #fff; font-weight: 700; font-size: 22px; margin-bottom: 22px; text-decoration: none; }
.auth-brand img { width: 36px; }
.auth-switch { text-align: center; margin-top: 14px; font-size: 14px; }
.auth-switch a { color: var(--navy); font-weight: 600; }

/* ---------- signer page */
.sign-top { background: var(--navy); color: #fff; border-bottom: 3px solid var(--gold); }
.sign-top .inner { max-width: 1240px; margin: 0 auto; padding: 14px 20px; display: flex; align-items: center; gap: 16px; justify-content: space-between; }
.sign-top img { height: 26px; }
.sign-top .org-name { font-weight: 700; font-size: 17px; }
.sign-top .secure { font-size: 12.5px; color: #c9d3df; display: flex; align-items: center; gap: 6px; }
.sign-layout { max-width: 1240px; margin: 0 auto; padding: 22px 20px 120px; display: grid; grid-template-columns: 1fr 380px; gap: 22px; align-items: start; }
.sign-panel { position: sticky; top: 16px; }
.sign-panel .card { padding: 20px; }
.step { display: flex; gap: 12px; margin-bottom: 4px; }
.step-num { width: 26px; height: 26px; border-radius: 50%; background: #eef2f6; color: var(--muted); display: grid; place-items: center; font-size: 13px; font-weight: 700; flex: none; }
.step.active .step-num { background: var(--gold); color: var(--navy); }
.step.done .step-num { background: var(--ok); color: #fff; }
.step-body { flex: 1; min-width: 0; padding-bottom: 14px; }
.step-body h3 { margin: 3px 0 10px; }
.method-list { display: flex; flex-direction: column; gap: 8px; }
.method { display: flex; align-items: center; gap: 12px; text-align: left; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; background: #fff; font: inherit; cursor: pointer; transition: border-color .15s, background .15s; }
.method:hover { border-color: var(--gold); background: #fffdf3; }
.method strong { display: block; color: var(--navy); font-size: 14.5px; }
.method span { font-size: 12.5px; color: var(--muted); }
.method .icon { width: 36px; height: 36px; border-radius: 8px; background: var(--gold-soft); display: grid; place-items: center; flex: none; }
.method .icon svg { width: 20px; height: 20px; color: var(--navy); }
.otp-input { font-size: 26px; letter-spacing: .5em; text-align: center; font-weight: 700; padding: 10px; }
.sig-pad-wrap { position: relative; border: 1px solid #cfd8e3; border-radius: 10px; background: #fff; touch-action: none; }
.sig-pad-wrap canvas { display: block; width: 100%; height: 150px; cursor: crosshair; border-radius: 10px; }
.sig-pad-wrap .baseline { position: absolute; left: 16px; right: 16px; bottom: 34px; border-bottom: 1px solid #dfe5ec; pointer-events: none; }
.sig-pad-wrap .hint { position: absolute; left: 0; right: 0; bottom: 10px; text-align: center; font-size: 12px; color: var(--muted); pointer-events: none; }
.typed-preview { font-family: "Segoe Script", "Brush Script MT", "Lucida Handwriting", cursive; font-size: 30px; color: #1b2e5a; text-align: center; padding: 24px 10px; border: 1px solid #cfd8e3; border-radius: 10px; background: #fff; min-height: 88px; }
.seg { display: inline-flex; background: #eef2f6; border-radius: 8px; padding: 3px; margin-bottom: 10px; }
.seg button { border: 0; background: none; font: inherit; font-size: 13px; font-weight: 600; padding: 6px 14px; border-radius: 6px; cursor: pointer; color: var(--muted); }
.seg button.active { background: #fff; color: var(--navy); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.stamp-preview { border: 1px dashed #c3cdd9; border-radius: 10px; background: #fff; padding: 18px 12px; text-align: center; display: flex; flex-direction: column; gap: 2px; }
.stamp-preview strong { color: #1b2e5a; font-size: 17px; }
.stamp-preview span { color: var(--muted); font-size: 13px; }
.stamp-preview em { font-style: normal; color: var(--ok); font-weight: 600; font-size: 13px; margin-top: 2px; }
.done-hero { text-align: center; padding: 10px 0; }
.done-hero .tick { width: 64px; height: 64px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); display: grid; place-items: center; margin: 0 auto 12px; }
.done-hero .tick svg { width: 34px; height: 34px; }
.others { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 12px; font-size: 13.5px; }
.others div { display: flex; justify-content: space-between; padding: 4px 0; }
.sign-footer { text-align: center; font-size: 12.5px; color: var(--muted); padding: 10px 20px 30px; }
.sign-footer a { color: var(--muted); }

/* ---------- landing */
.site-nav { position: sticky; top: 0; z-index: 20; background: rgba(15, 28, 46, .92); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(255,255,255,.06); }
.site-nav .inner, .section .inner, .hero .inner, .site-footer .inner { max-width: 1160px; margin: 0 auto; padding: 0 22px; }
.site-nav .inner { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.site-nav .links { display: flex; align-items: center; gap: 22px; }
.site-nav .links a { color: #cfd8e3; text-decoration: none; font-weight: 500; font-size: 14.5px; }
.site-nav .links a:hover { color: #fff; }
.hero { background: radial-gradient(1000px 520px at 85% 0%, #22406a 0%, var(--navy) 60%); color: #fff; padding: 84px 0 96px; overflow: hidden; }
.hero .inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 50px; align-items: center; }
.eyebrow { color: var(--gold); font-weight: 700; font-size: 12.5px; letter-spacing: .22em; text-transform: uppercase; margin-bottom: 16px; }
.hero h1 { color: #fff; font-size: 50px; line-height: 1.06; letter-spacing: -.02em; margin-bottom: 20px; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero p.lead { font-size: 18.5px; color: #c9d3df; max-width: 560px; margin-bottom: 30px; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .btn:not(.primary) { background: transparent; color: #fff; border-color: rgba(255,255,255,.25); }
.hero .trust { display: flex; gap: 22px; margin-top: 30px; color: #9fb0c4; font-size: 13.5px; flex-wrap: wrap; }
.hero .trust span { display: flex; align-items: center; gap: 7px; }
.hero .trust svg { width: 16px; height: 16px; color: var(--gold); }
.mock { background: #fff; border-radius: 14px; box-shadow: 0 30px 80px rgba(0,0,0,.35); color: var(--text); overflow: hidden; transform: rotate(1.2deg); }
.mock-head { background: var(--navy); border-bottom: 3px solid var(--gold); padding: 16px 20px; }
.mock-head .e { color: var(--gold); font-size: 10px; letter-spacing: .22em; font-weight: 700; }
.mock-head .t { color: #fff; font-size: 21px; font-weight: 700; }
.mock-body { padding: 18px 20px; }
.mock-row { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid #eef2f6; font-size: 13.5px; }
.mock-row b { color: var(--navy); }
.mock-sign { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.mock-sign div { border: 1px dashed #c3cdd9; border-radius: 8px; padding: 10px; font-size: 11px; color: var(--muted); height: 74px; position: relative; }
.mock-sign .sig { font-family: "Segoe Script", "Brush Script MT", cursive; font-size: 21px; color: #1b2e5a; position: absolute; left: 12px; bottom: 14px; }
.mock-sign .okb { position: absolute; right: 8px; top: 8px; }
.section { padding: 84px 0; }
.section.alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 680px; margin-bottom: 40px; }
.section-head h2 { font-size: 34px; letter-spacing: -.01em; }
.section-head p { font-size: 17px; color: var(--muted); }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 24px; }
.section.alt .feature { background: var(--bg); }
.feature .ic { width: 42px; height: 42px; border-radius: 10px; background: var(--navy); color: var(--gold); display: grid; place-items: center; margin-bottom: 14px; }
.feature .ic svg { width: 22px; height: 22px; }
.feature p { color: var(--muted); font-size: 14.5px; margin: 0; }
.steps-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: s; }
.steps-row div { counter-increment: s; padding-top: 50px; position: relative; }
.steps-row div::before { content: counter(s); position: absolute; top: 0; left: 0; width: 36px; height: 36px; border-radius: 50%; background: var(--gold); color: var(--navy); font-weight: 800; display: grid; place-items: center; }
.steps-row p { color: var(--muted); font-size: 14.5px; }
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.price-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 28px; display: flex; flex-direction: column; }
.price-card.featured { border: 2px solid var(--gold); box-shadow: 0 16px 40px rgba(15, 28, 46, .1); position: relative; }
.price-card.featured::after { content: "Suosituin"; position: absolute; top: -12px; left: 28px; background: var(--gold); color: var(--navy); font-size: 12px; font-weight: 700; padding: 3px 12px; border-radius: 999px; }
.price-card .price { font-size: 40px; font-weight: 800; color: var(--navy); margin: 8px 0 2px; }
.price-card .price small { font-size: 15px; font-weight: 500; color: var(--muted); }
.price-card ul { list-style: none; padding: 0; margin: 18px 0 24px; flex: 1; }
.price-card li { padding: 6px 0 6px 26px; position: relative; font-size: 14.5px; }
.price-card li::before { content: ""; position: absolute; left: 2px; top: 11px; width: 12px; height: 7px; border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg); }
.integration { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: center; }
.code-block { background: var(--navy); color: #d6e2f0; border-radius: 14px; padding: 20px 22px; font-family: ui-monospace, Consolas, monospace; font-size: 13px; line-height: 1.65; overflow: auto; border-top: 3px solid var(--gold); white-space: pre; }
.code-block .k { color: var(--gold); }
.code-block .s { color: #9fe3b0; }
.cta-band { background: var(--navy); color: #fff; border-radius: 18px; padding: 44px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; border-bottom: 4px solid var(--gold); }
.cta-band h2 { color: #fff; font-size: 28px; margin: 0 0 6px; }
.cta-band p { color: #c9d3df; margin: 0; }
.site-footer { padding: 34px 0 44px; color: var(--muted); font-size: 13.5px; }
.site-footer .inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

@media (max-width: 1000px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; inset: 0 auto 0 0; width: 260px; z-index: 50; transform: translateX(-100%); transition: transform .2s; }
  .sidebar.open { transform: none; box-shadow: 0 0 60px rgba(0,0,0,.4); }
  .mobile-top { display: flex; align-items: center; justify-content: space-between; background: var(--navy); color: #fff; padding: 12px 16px; border-bottom: 3px solid var(--gold); position: sticky; top: 0; z-index: 40; }
  .mobile-top .btn { background: transparent; color: #fff; border-color: rgba(255,255,255,.2); }
  .main { padding: 20px 16px 60px; }
  .split, .sign-layout { grid-template-columns: 1fr; }
  .sticky, .sign-panel { position: static; }
  .jump-sign { display: inline-flex; }
  .hero .inner, .integration { grid-template-columns: 1fr; }
  .hero h1 { font-size: 38px; }
  .features, .pricing { grid-template-columns: 1fr; }
  .steps-row { grid-template-columns: 1fr 1fr; }
  .site-nav .links a:not(.btn) { display: none; }
  .mock { transform: none; }
}
@media (max-width: 600px) {
  .grid-2 { grid-template-columns: 1fr; }
  .steps-row { grid-template-columns: 1fr; }
  .timeline li { grid-template-columns: 1fr; gap: 0; }
  table.list .hide-sm { display: none; }
  .section { padding: 60px 0; }
  .cta-band { padding: 28px; }
}
