@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@500;600;700;800&family=Petit+Formal+Script&display=swap');

:root {
  --ink: #111712;
  --ink-2: #26302a;
  --muted: #6e776f;
  --line: #dfe3dc;
  --line-strong: #cbd0c8;
  --paper: #fffefa;
  --canvas: #f3f3ed;
  --acid: #c9ff55;
  --acid-dark: #a9e52f;
  --forest: #183b2c;
  --green: #16724b;
  --green-soft: #e1f6e9;
  --blue-soft: #e8f1ff;
  --orange-soft: #fff0de;
  --danger: #c44a43;
  --shadow: 0 20px 50px rgba(20, 27, 21, .09);
  --shadow-sm: 0 8px 24px rgba(20, 27, 21, .07);
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { min-width: 320px; min-height: 100%; }
body { margin: 0; min-height: 100vh; background: var(--canvas); }
button, input, textarea { font: inherit; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
svg { display: block; }

button:focus-visible, input:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid rgba(127, 183, 35, .3);
  outline-offset: 2px;
}

.btn {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 11px;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--ink); color: white; box-shadow: 0 8px 18px rgba(17, 23, 18, .14); }
.btn-primary:hover { background: #293229; }
.btn-acid { background: var(--acid); color: var(--ink); border-color: rgba(0, 0, 0, .1); }
.btn-acid:hover { background: #d6ff7c; box-shadow: 0 8px 18px rgba(170, 218, 63, .25); }
.btn-secondary { background: white; border-color: var(--line); }
.btn-secondary:hover { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.btn-ghost { background: transparent; color: var(--muted); }
.btn-ghost:hover { background: rgba(15, 23, 16, .05); color: var(--ink); }
.btn-wide { width: 100%; }
.btn-lg { min-height: 50px; padding: 0 22px; }
.btn-sm { min-height: 36px; border-radius: 9px; padding: 0 13px; font-size: 13px; }
.btn[disabled] { opacity: .55; pointer-events: none; }

.brand { display: inline-flex; align-items: center; gap: 11px; font: 800 20px/1 "Manrope", sans-serif; letter-spacing: -.7px; }
.brand-mark { width: 29px; height: 29px; border-radius: 9px; background: var(--acid); position: relative; display: inline-block; transform: rotate(-5deg); flex: 0 0 auto; }
.brand-mark::before { content: ""; position: absolute; width: 11px; height: 15px; border: 2px solid var(--ink); border-top: 0; border-left: 0; transform: rotate(42deg); top: 4px; left: 8px; }
.brand-light .brand-mark { background: var(--acid); }
.brand-light { color: white; }

.login-view { min-height: 100vh; display: grid; grid-template-columns: minmax(430px, .9fr) minmax(520px, 1.1fr); background: var(--paper); }
.login-main { padding: 38px clamp(36px, 6vw, 94px); display: flex; flex-direction: column; }
.login-main .brand { align-self: flex-start; }
.login-form-wrap { width: min(420px, 100%); margin: auto; padding: 60px 0; }
.eyebrow { color: var(--green); text-transform: uppercase; font-size: 12px; line-height: 1; letter-spacing: 1.4px; font-weight: 800; }
.login-form-wrap h1 { font: 800 clamp(34px, 4vw, 48px)/1.06 "Manrope", sans-serif; letter-spacing: -2.2px; margin: 13px 0 12px; }
.login-form-wrap > p { color: var(--muted); font-size: 16px; line-height: 1.6; margin: 0 0 30px; }
.form-group { display: grid; gap: 8px; margin-bottom: 16px; }
.form-label { font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: space-between; }
.form-label a { color: var(--green); font-weight: 600; }
.field {
  width: 100%; min-height: 48px; border: 1px solid var(--line-strong); border-radius: 11px; background: #fff;
  padding: 0 14px; color: var(--ink); transition: border-color .18s ease, box-shadow .18s ease;
}
.field:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(22, 114, 75, .1); outline: none; }
textarea.field { min-height: 100px; padding-top: 12px; resize: vertical; }
.password-field { position: relative; }
.password-field .field { padding-right: 46px; }
.input-icon { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; color: var(--muted); cursor: pointer; padding: 6px; }
.or { display: flex; align-items: center; gap: 13px; color: #9da39d; font-size: 12px; margin: 22px 0; }
.or::before, .or::after { content: ""; height: 1px; background: var(--line); flex: 1; }
.sso-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.login-meta { font-size: 13px; text-align: center; color: var(--muted); margin-top: 24px; }
.login-meta button { border: 0; background: transparent; color: var(--green); font-weight: 700; cursor: pointer; }
.login-foot { font-size: 11px; color: #8e968f; display: flex; justify-content: space-between; gap: 20px; }

.login-showcase { margin: 12px 12px 12px 0; border-radius: 24px; overflow: hidden; position: relative; background: #10291e; color: white; padding: clamp(42px, 5vw, 74px); display: flex; flex-direction: column; isolation: isolate; }
.login-showcase::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(circle at 90% 5%, rgba(201, 255, 85, .22), transparent 32%), radial-gradient(circle at 5% 85%, rgba(72, 143, 108, .34), transparent 37%); }
.showcase-grid { position: absolute; inset: 0; z-index: -1; opacity: .12; background-image: linear-gradient(rgba(255,255,255,.3) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.3) 1px, transparent 1px); background-size: 44px 44px; mask-image: linear-gradient(to bottom, black, transparent 90%); }
.showcase-copy { max-width: 560px; }
.showcase-copy .tag { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; color: #d6e3d9; padding: 8px 12px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; background: rgba(255,255,255,.05); }
.pulse { width: 7px; height: 7px; background: var(--acid); border-radius: 50%; box-shadow: 0 0 0 5px rgba(201,255,85,.12); }
.showcase-copy h2 { font: 700 clamp(36px, 4.2vw, 62px)/1.03 "Manrope", sans-serif; letter-spacing: -3px; margin: 22px 0 16px; max-width: 600px; }
.showcase-copy p { color: #b5c4ba; font-size: 16px; line-height: 1.7; max-width: 500px; }
.mock-stage { flex: 1; min-height: 380px; position: relative; display: flex; align-items: center; justify-content: center; padding-top: 30px; }
.mock-doc { width: 300px; height: 390px; background: #fbfaf5; border-radius: 8px; padding: 30px; color: var(--ink); transform: rotate(-3deg); box-shadow: 0 30px 70px rgba(0,0,0,.28); }
.mock-doc-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 32px; }
.mock-doc-logo { width: 80px; height: 10px; background: #1b3026; border-radius: 3px; }
.mock-doc-page { font-size: 9px; color: #8c928c; }
.mock-line { height: 6px; background: #e0e1da; border-radius: 4px; margin: 12px 0; }
.mock-line.w75 { width: 75%; }
.mock-line.w55 { width: 55%; }
.mock-signature { margin-top: 64px; border: 2px dashed #79a923; background: #f0fbdc; border-radius: 6px; height: 66px; display: grid; place-items: center; color: #4f7311; font: 22px "Petit Formal Script", cursive; }
.float-card { position: absolute; background: rgba(255,255,255,.98); color: var(--ink); border: 1px solid rgba(0,0,0,.06); border-radius: 14px; padding: 13px 15px; display: flex; align-items: center; gap: 11px; box-shadow: 0 16px 35px rgba(0,0,0,.18); font-size: 12px; font-weight: 700; animation: float 4s ease-in-out infinite; }
.float-card .ic-wrap { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--green-soft); color: var(--green); }
.float-card.score { top: 19%; right: 3%; }
.float-card.signed { bottom: 14%; left: 1%; animation-delay: -2s; }
.float-card small { display: block; color: var(--muted); font-weight: 500; margin-top: 3px; }
.showcase-trust { display: flex; align-items: center; gap: 16px; color: #8fa298; font-size: 11px; letter-spacing: .7px; text-transform: uppercase; font-weight: 700; }
.showcase-trust span { height: 1px; background: rgba(255,255,255,.2); flex: 1; }

.app-shell { min-height: 100vh; background: var(--canvas); display: grid; grid-template-columns: 82px 1fr; }
.sidebar { background: var(--ink); color: white; display: flex; flex-direction: column; align-items: center; padding: 24px 0; position: sticky; top: 0; height: 100vh; z-index: 20; }
.sidebar .brand-mark { margin-bottom: 44px; }
.side-nav { display: grid; gap: 9px; width: 100%; padding: 0 14px; }
.nav-button { width: 54px; height: 48px; display: grid; place-items: center; color: #829086; background: transparent; border: 0; border-radius: 12px; cursor: pointer; position: relative; }
.nav-button:hover { color: white; background: rgba(255,255,255,.07); }
.nav-button.active { color: var(--ink); background: var(--acid); }
.nav-button[data-tip]::after { content: attr(data-tip); pointer-events: none; position: absolute; left: 64px; padding: 7px 9px; border-radius: 7px; color: white; background: #2b352e; opacity: 0; transform: translateX(-5px); transition: .15s ease; font-size: 11px; white-space: nowrap; z-index: 50; }
.nav-button[data-tip]:hover::after { opacity: 1; transform: translateX(0); }
.side-bottom { margin-top: auto; display: grid; gap: 9px; }
.avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: #d6a67b; color: #3e2817; font-weight: 800; font-size: 12px; border: 2px solid rgba(255,255,255,.22); }
.app-area { min-width: 0; }
.topbar { height: 76px; background: rgba(255, 255, 251, .9); border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(20px, 3vw, 42px); position: sticky; top: 0; z-index: 15; backdrop-filter: blur(14px); }
.breadcrumb { display: flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 700; }
.breadcrumb span { color: var(--muted); font-weight: 500; }
.top-actions { display: flex; gap: 8px; align-items: center; }
.icon-btn { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 10px; background: white; cursor: pointer; color: var(--muted); position: relative; }
.icon-btn:hover { color: var(--ink); }
.notification-dot { position: absolute; width: 7px; height: 7px; background: #e06152; border: 2px solid white; border-radius: 50%; top: 8px; right: 9px; }
.page { padding: clamp(24px, 4vw, 48px); max-width: 1520px; margin: 0 auto; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.page-head h1 { font: 800 clamp(29px, 3vw, 40px)/1.1 "Manrope", sans-serif; letter-spacing: -1.7px; margin: 7px 0 5px; }
.page-head p { color: var(--muted); margin: 0; }

.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; margin-bottom: 24px; }
.metric { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 20px; box-shadow: 0 1px 0 rgba(255,255,255,.8); }
.metric-top { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 12px; font-weight: 700; }
.metric-icon { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; }
.metric-icon.green { background: var(--green-soft); color: var(--green); }
.metric-icon.blue { background: var(--blue-soft); color: #3e6faa; }
.metric-icon.orange { background: var(--orange-soft); color: #a36628; }
.metric-icon.gray { background: #eeefe9; color: #677168; }
.metric-value { font: 800 30px/1 "Manrope", sans-serif; letter-spacing: -1.3px; margin: 18px 0 8px; }
.metric-delta { font-size: 11px; color: var(--muted); }
.metric-delta strong { color: var(--green); }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(290px, .75fr); gap: 18px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 17px; box-shadow: 0 1px 0 rgba(255,255,255,.8); }
.card-head { padding: 20px 22px 16px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); }
.card-head h2 { font: 700 16px/1.2 "Manrope", sans-serif; margin: 0; letter-spacing: -.3px; }
.text-link { border: 0; background: transparent; color: var(--green); font-weight: 700; font-size: 12px; cursor: pointer; }
.document-table { width: 100%; border-collapse: collapse; }
.document-table th { color: #8a928b; text-transform: uppercase; letter-spacing: .7px; font-size: 10px; font-weight: 800; text-align: left; padding: 13px 22px; border-bottom: 1px solid var(--line); }
.document-table td { padding: 15px 22px; border-bottom: 1px solid #eceee9; font-size: 13px; vertical-align: middle; }
.document-table tr:last-child td { border-bottom: 0; }
.doc-cell { display: flex; align-items: center; gap: 12px; min-width: 200px; }
.file-icon { width: 37px; height: 42px; border-radius: 8px; background: #f0f1ec; color: #69716a; display: grid; place-items: center; flex: 0 0 auto; }
.doc-title { font-weight: 700; color: var(--ink-2); }
.doc-sub { font-size: 11px; color: var(--muted); margin-top: 4px; }
.status { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 6px 9px; font-size: 10px; font-weight: 800; white-space: nowrap; }
.status::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.status.pending { background: var(--orange-soft); color: #9b651e; }
.status.complete { background: var(--green-soft); color: var(--green); }
.status.draft { background: #eeefe9; color: #6a746b; }
.status.declined { background: #fae8e5; color: var(--danger); }
.initials { width: 28px; height: 28px; border-radius: 50%; background: #dae8df; color: #305541; display: inline-grid; place-items: center; font-size: 9px; font-weight: 800; }
.activity-card { padding-bottom: 8px; }
.activity-card .card-head { border: 0; }
.activity-list { padding: 0 22px; }
.activity { display: grid; grid-template-columns: 35px 1fr; gap: 12px; position: relative; padding-bottom: 23px; }
.activity:not(:last-child)::after { content: ""; position: absolute; width: 1px; background: var(--line); left: 17px; top: 38px; bottom: 4px; }
.activity-dot { width: 35px; height: 35px; border-radius: 10px; display: grid; place-items: center; background: #eef0ea; color: #6f786f; }
.activity-dot.secure { background: var(--green-soft); color: var(--green); }
.activity-title { font-size: 12px; line-height: 1.45; font-weight: 600; }
.activity-title strong { font-weight: 800; }
.activity-time { font-size: 10px; color: #929992; margin-top: 4px; }
.quick-card { padding: 20px; margin-top: 18px; background: var(--forest); color: white; position: relative; overflow: hidden; }
.quick-card::after { content: ""; position: absolute; width: 150px; height: 150px; background: rgba(201,255,85,.1); border-radius: 50%; right: -55px; top: -65px; }
.quick-card h3 { font: 700 16px "Manrope", sans-serif; margin: 0 0 8px; }
.quick-card p { color: #b7c8bd; font-size: 12px; line-height: 1.5; margin: 0 0 18px; }

.flow-page { max-width: 1160px; }
.flow-head { margin-bottom: 28px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.flow-head h1 { font: 800 30px "Manrope", sans-serif; letter-spacing: -1.2px; margin: 0; }
.stepper { display: flex; align-items: center; gap: 8px; }
.step-pill { display: flex; align-items: center; gap: 7px; color: #9ba19b; font-size: 11px; font-weight: 700; }
.step-pill .step-num { width: 23px; height: 23px; border: 1px solid var(--line-strong); border-radius: 50%; display: grid; place-items: center; }
.step-pill.active { color: var(--ink); }
.step-pill.active .step-num { background: var(--ink); color: white; border-color: var(--ink); }
.step-pill.done .step-num { background: var(--green-soft); color: var(--green); border-color: transparent; }
.step-line { width: 28px; height: 1px; background: var(--line); }
.flow-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 20px; align-items: start; }
.flow-card { padding: 28px; }
.flow-card h2 { font: 700 19px "Manrope", sans-serif; letter-spacing: -.5px; margin: 0 0 7px; }
.flow-card > p { color: var(--muted); font-size: 13px; margin: 0 0 24px; }
.upload-zone { min-height: 250px; border: 1.5px dashed #bdc5bb; border-radius: 14px; background: #fafbf7; display: grid; place-items: center; text-align: center; padding: 30px; cursor: pointer; transition: .2s ease; }
.upload-zone:hover, .upload-zone.selected { border-color: var(--green); background: #f5fbf5; }
.upload-art { width: 56px; height: 56px; border-radius: 14px; margin: 0 auto 15px; display: grid; place-items: center; background: var(--green-soft); color: var(--green); }
.upload-zone h3 { font-size: 14px; margin: 0 0 6px; }
.upload-zone p { color: var(--muted); font-size: 12px; margin: 0 0 17px; }
.file-selected { display: flex; align-items: center; text-align: left; width: min(370px, 100%); padding: 13px; border: 1px solid var(--line); border-radius: 12px; background: white; box-shadow: var(--shadow-sm); }
.file-selected .file-icon { margin-right: 12px; }
.file-check { margin-left: auto; color: var(--green); }
.flow-aside { padding: 20px; }
.flow-aside h3 { font: 700 14px "Manrope", sans-serif; margin: 0 0 17px; }
.tip-list { display: grid; gap: 15px; }
.tip { display: flex; gap: 10px; color: var(--muted); font-size: 11px; line-height: 1.45; }
.tip svg { color: var(--green); flex: 0 0 auto; margin-top: 1px; }
.flow-actions { display: flex; align-items: center; justify-content: space-between; margin-top: 20px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; }
.form-grid .span-2 { grid-column: span 2; }
.recipient-row { display: grid; grid-template-columns: 42px 1fr 1.25fr; gap: 12px; align-items: end; padding: 14px; border: 1px solid var(--line); border-radius: 13px; background: #fafbf8; }
.order-badge { width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: white; display: grid; place-items: center; font-weight: 800; margin-bottom: 7px; }
.review-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.review-block { padding: 18px; border-radius: 13px; border: 1px solid var(--line); background: #fafbf8; }
.review-block.full { grid-column: span 2; }
.review-label { color: var(--muted); text-transform: uppercase; letter-spacing: .8px; font-size: 9px; font-weight: 800; margin-bottom: 10px; }
.review-value { font-size: 13px; font-weight: 700; display: flex; gap: 10px; align-items: center; }
.review-sub { color: var(--muted); font-size: 11px; margin-top: 5px; }
.demo-notice { display: flex; gap: 11px; background: #eff6ff; color: #365a86; border: 1px solid #d8e6f7; border-radius: 12px; padding: 13px 15px; font-size: 11px; line-height: 1.45; margin-top: 18px; }

.sent-view { display: grid; place-items: center; min-height: calc(100vh - 76px); padding: 40px; }
.sent-wrap { width: min(780px, 100%); text-align: center; }
.success-orb { width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center; background: var(--acid); color: var(--ink); margin: 0 auto 20px; box-shadow: 0 0 0 10px rgba(201,255,85,.17); }
.sent-wrap > h1 { font: 800 34px "Manrope", sans-serif; letter-spacing: -1.5px; margin: 0 0 9px; }
.sent-wrap > p { color: var(--muted); margin: 0 0 27px; }
.email-window { text-align: left; background: #e9ece6; border: 1px solid #d5dad2; border-radius: 18px; padding: 30px; box-shadow: var(--shadow); }
.email-chrome { display: flex; gap: 6px; margin-bottom: 20px; }
.email-chrome i { width: 8px; height: 8px; background: #bdc4bc; border-radius: 50%; }
.email-card { background: white; border-radius: 12px; padding: 25px; max-width: 540px; margin: 0 auto; }
.email-from { display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--line); padding-bottom: 16px; margin-bottom: 20px; }
.email-from .avatar { border: 0; width: 35px; height: 35px; }
.email-from strong { font-size: 12px; display: block; }
.email-from span { font-size: 10px; color: var(--muted); }
.email-card h2 { font: 700 18px "Manrope", sans-serif; margin: 0 0 10px; }
.email-card p { font-size: 12px; line-height: 1.55; color: var(--muted); }
.email-doc { display: flex; align-items: center; gap: 11px; background: #f5f6f2; border-radius: 10px; padding: 12px; margin: 17px 0; }
.email-doc strong { font-size: 11px; display: block; }
.email-doc span { font-size: 9px; color: var(--muted); }
.email-actions { margin-top: 22px; display: flex; justify-content: center; gap: 10px; }

.signer-shell { min-height: 100vh; background: #e9ebe6; display: flex; flex-direction: column; }
.signer-top { height: 70px; background: var(--ink); color: white; display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(18px, 4vw, 52px); }
.signer-top-info { color: #aab4ac; font-size: 11px; display: flex; align-items: center; gap: 8px; }
.secure-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--acid); }
.signer-main { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) 330px; min-height: 0; }
.document-canvas { padding: 40px; overflow: auto; display: grid; justify-content: center; }
.document-paper { width: min(720px, 100%); min-height: 930px; background: white; box-shadow: 0 7px 25px rgba(0,0,0,.1); padding: clamp(40px, 7vw, 82px); color: #29302b; position: relative; }
.doc-brand { display: flex; justify-content: space-between; align-items: center; margin-bottom: 66px; }
.northstar { font: 800 15px "Manrope", sans-serif; letter-spacing: -1px; display: flex; align-items: center; gap: 7px; }
.northstar-symbol { width: 18px; height: 18px; background: var(--ink); clip-path: polygon(50% 0, 61% 38%, 100% 50%, 61% 62%, 50% 100%, 39% 62%, 0 50%, 39% 38%); }
.document-paper h1 { font: 800 31px/1.2 "Manrope", sans-serif; letter-spacing: -1.5px; margin: 0 0 13px; }
.doc-date { color: var(--muted); font-size: 11px; }
.document-paper h2 { font: 700 12px "Manrope", sans-serif; margin: 31px 0 9px; }
.document-paper p { color: #5b635d; font: 11px/1.75 Georgia, serif; }
.doc-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; margin-top: 10px; }
.signature-field { border: 2px dashed #72a51d; background: #f3fbdc; min-height: 82px; border-radius: 7px; margin-top: 40px; padding: 13px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: .18s ease; position: relative; }
.signature-field:hover { background: #edfad0; border-color: #527e0b; }
.signature-field-label { position: absolute; top: -11px; left: 12px; background: #679a16; color: white; font: 700 9px "DM Sans", sans-serif; padding: 5px 8px; border-radius: 5px; }
.signature-placeholder { display: flex; align-items: center; gap: 8px; color: #547917; font: 700 12px "DM Sans", sans-serif; }
.signature-script { font: 27px "Petit Formal Script", cursive; color: #173d2c; }
.paper-page { position: absolute; bottom: 24px; right: 32px; color: #adb2ac; font-size: 9px; }
.signer-panel { background: var(--paper); border-left: 1px solid var(--line); padding: 27px; display: flex; flex-direction: column; }
.signer-panel h2 { font: 700 20px "Manrope", sans-serif; letter-spacing: -.6px; margin: 0 0 8px; }
.signer-panel > p { color: var(--muted); font-size: 12px; line-height: 1.55; margin: 0 0 25px; }
.sign-progress { display: grid; gap: 7px; margin-bottom: 24px; }
.sign-progress-bar { height: 6px; background: #e5e8e2; border-radius: 999px; overflow: hidden; }
.sign-progress-bar span { display: block; width: 50%; height: 100%; background: var(--acid-dark); border-radius: inherit; transition: width .3s ease; }
.sign-progress-label { display: flex; justify-content: space-between; font-size: 10px; color: var(--muted); }
.sign-task { display: flex; gap: 11px; padding: 13px 0; border-top: 1px solid var(--line); font-size: 11px; }
.task-check { width: 21px; height: 21px; border-radius: 6px; display: grid; place-items: center; background: #edf0e9; color: #7a837b; flex: 0 0 auto; }
.sign-task.done .task-check { background: var(--green-soft); color: var(--green); }
.sign-task strong { display: block; margin-bottom: 3px; }
.sign-task span { color: var(--muted); }
.security-badge { margin-top: auto; padding: 13px; border: 1px solid var(--line); border-radius: 11px; display: flex; align-items: center; gap: 10px; font-size: 10px; color: var(--muted); }
.security-badge svg { color: var(--green); }

.security-view { min-height: 100vh; background: var(--ink); color: white; display: grid; place-items: center; padding: 24px; position: relative; overflow: hidden; }
.security-view::before, .security-view::after { content: ""; position: absolute; width: 500px; height: 500px; border-radius: 50%; filter: blur(1px); }
.security-view::before { background: radial-gradient(circle, rgba(201,255,85,.12), transparent 67%); top: -180px; right: -160px; }
.security-view::after { background: radial-gradient(circle, rgba(52,126,89,.2), transparent 67%); bottom: -220px; left: -170px; }
.security-wrap { width: min(470px, 100%); text-align: center; position: relative; z-index: 1; }
.security-wrap .brand { margin-bottom: 42px; }
.scan-orb { width: 90px; height: 90px; margin: 0 auto 28px; border-radius: 50%; background: rgba(201,255,85,.08); border: 1px solid rgba(201,255,85,.25); display: grid; place-items: center; color: var(--acid); position: relative; }
.scan-orb::before, .scan-orb::after { content: ""; position: absolute; border: 1px solid rgba(201,255,85,.12); border-radius: 50%; animation: scan 2s ease-out infinite; }
.scan-orb::before { inset: -13px; }
.scan-orb::after { inset: -26px; animation-delay: .4s; }
.security-wrap h1 { font: 700 28px "Manrope", sans-serif; letter-spacing: -1px; margin: 0 0 10px; }
.security-wrap > p { color: #9eaaa1; font-size: 13px; line-height: 1.55; margin: 0 0 28px; }
.security-checks { background: rgba(255,255,255,.055); border: 1px solid rgba(255,255,255,.1); border-radius: 16px; text-align: left; overflow: hidden; }
.security-check { display: flex; align-items: center; gap: 12px; padding: 15px 17px; border-bottom: 1px solid rgba(255,255,255,.08); }
.security-check:last-child { border-bottom: 0; }
.check-state { width: 23px; height: 23px; border-radius: 50%; border: 1px solid #536158; display: grid; place-items: center; color: #6d7970; }
.security-check.running .check-state { border: 2px solid rgba(201,255,85,.25); border-top-color: var(--acid); animation: spin .8s linear infinite; }
.security-check.passed .check-state { background: var(--acid); color: var(--ink); border-color: var(--acid); }
.security-check strong { font-size: 11px; display: block; }
.security-check span { color: #76837a; font-size: 9px; margin-top: 3px; display: block; }
.security-check.passed span { color: #9eaaa1; }
.demo-chip { margin: 20px auto 0; display: inline-flex; align-items: center; gap: 7px; color: #89968c; font-size: 9px; border: 1px solid rgba(255,255,255,.09); border-radius: 999px; padding: 7px 10px; }

.modal-backdrop { position: fixed; inset: 0; z-index: 100; background: rgba(13,20,15,.52); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 20px; animation: fadeIn .18s ease; }
.modal { width: min(540px, 100%); max-height: calc(100vh - 40px); overflow: auto; background: var(--paper); border-radius: 18px; box-shadow: 0 30px 80px rgba(0,0,0,.25); animation: modalIn .25s ease; }
.modal-head { padding: 22px 24px 17px; border-bottom: 1px solid var(--line); display: flex; align-items: flex-start; justify-content: space-between; }
.modal-head h2 { font: 700 19px "Manrope", sans-serif; margin: 0 0 4px; }
.modal-head p { color: var(--muted); font-size: 11px; margin: 0; }
.close-btn { width: 32px; height: 32px; border: 0; background: #eff0eb; border-radius: 8px; display: grid; place-items: center; cursor: pointer; }
.modal-body { padding: 22px 24px; }
.tabs { display: flex; gap: 4px; padding: 4px; border-radius: 10px; background: #eff0eb; margin-bottom: 20px; }
.tab { flex: 1; border: 0; background: transparent; border-radius: 7px; min-height: 34px; font-size: 11px; font-weight: 700; color: var(--muted); cursor: pointer; }
.tab.active { background: white; color: var(--ink); box-shadow: 0 2px 5px rgba(0,0,0,.06); }
.signature-preview { height: 124px; border: 1px solid var(--line); background: white; border-radius: 12px; margin-top: 14px; display: grid; place-items: center; position: relative; overflow: hidden; }
.signature-preview::after { content: ""; position: absolute; left: 25px; right: 25px; bottom: 28px; height: 1px; background: #ccd1ca; }
.signature-preview span { font: 34px "Petit Formal Script", cursive; color: #173d2c; position: relative; z-index: 1; }
.signature-consent { color: var(--muted); font-size: 10px; line-height: 1.5; margin: 15px 0 0; }
.modal-actions { padding: 17px 24px 22px; display: flex; justify-content: flex-end; gap: 9px; }

.complete-view { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; background: var(--paper); }
.complete-copy { display: flex; flex-direction: column; padding: clamp(30px, 6vw, 84px); }
.complete-center { margin: auto 0; max-width: 500px; }
.complete-check { width: 70px; height: 70px; border-radius: 20px; display: grid; place-items: center; background: var(--acid); margin-bottom: 26px; transform: rotate(-5deg); }
.complete-center h1 { font: 800 clamp(38px, 5vw, 62px)/1.05 "Manrope", sans-serif; letter-spacing: -3px; margin: 0 0 16px; }
.complete-center > p { color: var(--muted); line-height: 1.65; margin: 0 0 27px; }
.complete-detail { border: 1px solid var(--line); border-radius: 14px; padding: 7px 17px; margin-bottom: 22px; }
.complete-row { display: flex; justify-content: space-between; gap: 20px; padding: 11px 0; font-size: 11px; border-bottom: 1px solid var(--line); }
.complete-row:last-child { border-bottom: 0; }
.complete-row span { color: var(--muted); }
.complete-row strong { text-align: right; }
.complete-art { margin: 14px 14px 14px 0; border-radius: 22px; background: var(--forest); display: grid; place-items: center; padding: 50px; position: relative; overflow: hidden; }
.complete-art::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 25% 25%, rgba(201,255,85,.18), transparent 30%), linear-gradient(135deg, transparent, rgba(0,0,0,.16)); }
.audit-card { width: min(420px, 90%); background: #fbfaf5; border-radius: 13px; padding: 30px; position: relative; transform: rotate(2deg); box-shadow: 0 30px 70px rgba(0,0,0,.25); }
.audit-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.audit-head h3 { font: 700 15px "Manrope", sans-serif; margin: 0; }
.audit-stamp { width: 44px; height: 44px; background: var(--green-soft); color: var(--green); border-radius: 50%; display: grid; place-items: center; }
.audit-list { margin-top: 20px; display: grid; gap: 18px; }
.audit-event { display: grid; grid-template-columns: 20px 1fr auto; gap: 10px; align-items: center; font-size: 10px; }
.audit-event .event-dot { width: 18px; height: 18px; background: var(--green-soft); color: var(--green); border-radius: 50%; display: grid; place-items: center; }
.audit-event strong { display: block; }
.audit-event span { color: var(--muted); font-size: 8px; }
.audit-event time { color: #939a93; font-size: 8px; }

.toast-region { position: fixed; top: 18px; right: 18px; z-index: 200; display: grid; gap: 8px; }
.toast { min-width: 280px; max-width: 380px; background: var(--ink); color: white; border-radius: 11px; padding: 13px 15px; box-shadow: var(--shadow); display: flex; align-items: center; gap: 10px; font-size: 11px; animation: toastIn .25s ease; }
.toast svg { color: var(--acid); }
.toast.error svg { color: #ff8d83; }

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes scan { 0% { opacity: 0; transform: scale(.8); } 45% { opacity: 1; } 100% { opacity: 0; transform: scale(1.15); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes modalIn { from { opacity: 0; transform: translateY(12px) scale(.98); } }
@keyframes toastIn { from { opacity: 0; transform: translateX(12px); } }

@media (max-width: 1100px) {
  .login-view { grid-template-columns: 1fr 1fr; }
  .login-showcase { padding: 45px; }
  .showcase-copy h2 { font-size: 42px; }
  .mock-doc { width: 260px; height: 340px; }
  .float-card.score { right: -3%; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .signer-main { grid-template-columns: minmax(0, 1fr) 290px; }
}

@media (max-width: 820px) {
  .login-view { display: block; }
  .login-main { min-height: 100vh; }
  .login-showcase { display: none; }
  .app-shell { grid-template-columns: 1fr; padding-bottom: 68px; }
  .sidebar { position: fixed; top: auto; bottom: 0; left: 0; right: 0; width: auto; height: 68px; flex-direction: row; padding: 8px 14px; justify-content: center; }
  .sidebar .brand-mark, .side-bottom { display: none; }
  .side-nav { display: flex; justify-content: center; padding: 0; gap: 6px; width: auto; }
  .nav-button { width: 50px; height: 48px; }
  .nav-button[data-tip]::after { display: none; }
  .dashboard-grid, .flow-layout { grid-template-columns: 1fr; }
  .flow-aside { display: none; }
  .signer-main { display: block; }
  .signer-panel { border: 0; border-top: 1px solid var(--line); }
  .document-canvas { padding: 22px 14px; }
  .document-paper { min-height: 830px; }
  .complete-view { grid-template-columns: 1fr; }
  .complete-art { display: none; }
}

@media (max-width: 620px) {
  .login-main { padding: 24px; }
  .login-form-wrap { padding: 60px 0 40px; }
  .login-form-wrap h1 { font-size: 36px; }
  .login-foot { flex-direction: column; text-align: center; align-items: center; }
  .topbar { height: 66px; padding: 0 16px; }
  .topbar .btn span { display: none; }
  .page { padding: 24px 16px; }
  .page-head { align-items: flex-start; flex-direction: column; margin-bottom: 23px; }
  .page-head .btn { width: 100%; }
  .metric-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .metric { padding: 15px; }
  .metric-value { font-size: 24px; }
  .document-table th:nth-child(2), .document-table td:nth-child(2), .document-table th:nth-child(4), .document-table td:nth-child(4) { display: none; }
  .document-table th, .document-table td { padding-left: 14px; padding-right: 14px; }
  .flow-head { display: block; }
  .flow-head h1 { margin-bottom: 18px; }
  .step-pill span:not(.step-num), .step-line { display: none; }
  .stepper { gap: 12px; }
  .flow-card { padding: 19px; }
  .form-grid, .review-grid { grid-template-columns: 1fr; }
  .form-grid .span-2, .review-block.full { grid-column: span 1; }
  .recipient-row { grid-template-columns: 36px 1fr; }
  .recipient-row .form-group:last-child { grid-column: 2; }
  .flow-actions { gap: 10px; }
  .sent-view { padding: 24px 14px; }
  .email-window { padding: 13px; }
  .email-card { padding: 18px; }
  .email-actions { flex-direction: column; }
  .email-actions .btn { width: 100%; }
  .signer-top-info { display: none; }
  .document-paper { padding: 42px 28px; min-height: 740px; }
  .document-paper h1 { font-size: 24px; }
  .doc-columns { grid-template-columns: 1fr; gap: 0; }
  .signature-field { margin-top: 30px; }
  .modal-actions { flex-direction: column-reverse; }
  .modal-actions .btn { width: 100%; }
  .complete-copy { padding: 26px 20px; }
  .complete-center h1 { font-size: 42px; letter-spacing: -2px; }
  .toast-region { left: 12px; right: 12px; top: 12px; }
  .toast { min-width: 0; max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
