/* Stout Companies E-Signing (2026-11-27) */
@font-face { font-family: 'Sig'; src: url('/fonts/dancing-script.woff2') format('woff2'); font-display: block; }
:root { --g: #14532d; --g2: #166534; --gl: #dcfce7; --ink: #111827; --mut: #6b7280; --line: #e5e7eb; --bg: #f5f5f4; --card: #fff; --red: #b91c1c; --amber: #a16207; --r: 12px; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; color: var(--ink); background: var(--bg); min-height: 100vh; display: flex; flex-direction: column; }
a { color: var(--g2); }
.skip { position: absolute; left: -999px; } .skip:focus { left: 8px; top: 8px; background: #fff; padding: 8px 12px; z-index: 9; }
:focus-visible { outline: 3px solid #f59e0b; outline-offset: 2px; }
.top { background: var(--g); color: #fff; }
.top .in, .foot .in { max-width: 960px; margin: 0 auto; padding: 12px 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; font-weight: 700; letter-spacing: .02em; }
.brand img { height: 24px; width: auto; } .brand span { border-left: 1px solid rgba(255,255,255,.4); padding-left: 12px; }
#nav { display: flex; gap: 14px; align-items: center; font-size: 14px; } #nav a, #nav button { color: #fff; background: none; border: 0; font: inherit; cursor: pointer; text-decoration: none; opacity: .9; } #nav a:hover, #nav button:hover { opacity: 1; text-decoration: underline; }
main { flex: 1; }
.wrap { max-width: 960px; margin: 0 auto; padding: 26px 18px 48px; } .narrow { max-width: 460px; }
.foot { color: var(--mut); font-size: 13px; border-top: 1px solid var(--line); background: #fff; }
h1 { font-size: 26px; line-height: 1.2; margin: 0 0 6px; } h2 { font-size: 19px; margin: 0 0 10px; }
.muted { color: var(--mut); } .small { font-size: 14px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; box-shadow: 0 1px 2px rgba(0,0,0,.04); margin-bottom: 18px; }
.stack { display: flex; flex-direction: column; gap: 8px; } .stack label { font-weight: 600; font-size: 14px; margin-top: 6px; }
input[type=text], input[type=email], input[type=password], input:not([type]), textarea { width: 100%; padding: 11px 12px; border: 1px solid #d1d5db; border-radius: 9px; font: inherit; background: #fff; color: inherit; }
textarea { min-height: 90px; resize: vertical; }
.code-in { font-size: 30px; letter-spacing: .45em; text-align: center; font-variant-numeric: tabular-nums; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 18px; border-radius: 9px; border: 1px solid #d1d5db; background: #fff; color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; }
.btn.primary { background: var(--g2); border-color: var(--g2); color: #fff; } .btn.primary:hover { background: var(--g); }
.btn.danger { color: var(--red); border-color: #fecaca; } .btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.link { border: 0; background: none; color: var(--g2); padding: 4px 0; font-weight: 500; text-decoration: underline; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.err { color: var(--red); font-weight: 600; margin: 4px 0; } .ok { color: var(--g2); font-weight: 600; }
.note { background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 10px; padding: 12px 14px; margin: 12px 0; }
.warn { background: #fffbeb; border: 1px solid #fde68a; border-radius: 10px; padding: 12px 14px; margin: 12px 0; }
.chip { display: inline-block; font-size: 12.5px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: #f3f4f6; color: #374151; white-space: nowrap; }
.chip.sent { background: #fef3c7; color: var(--amber); } .chip.completed { background: var(--gl); color: var(--g2); } .chip.customer_signed { background: #dbeafe; color: #1d4ed8; }
.chip.declined, .chip.voided, .chip.expired { background: #f3f4f6; color: #6b7280; }
.docs { list-style: none; padding: 0; margin: 0; } .docs li { border-top: 1px solid var(--line); }
.docs a { display: flex; justify-content: space-between; gap: 12px; padding: 14px 4px; text-decoration: none; color: inherit; align-items: center; flex-wrap: wrap; } .docs a:hover { background: #fafaf9; }
.docs .t { font-weight: 650; } .docs .s { font-size: 13.5px; color: var(--mut); }
.paper { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 34px 38px; box-shadow: 0 2px 10px rgba(0,0,0,.05); font-family: Georgia, "Times New Roman", serif; font-size: 16px; line-height: 1.6; }
.paper h1 { text-align: center; font-size: 23px; margin: 4px 0 18px; } .paper h2 { font-size: 17px; margin: 18px 0 6px; } .paper h3 { font-size: 15.5px; margin: 14px 0 4px; }
.paper p { margin: 0 0 12px; } .paper p.li { padding-left: 22px; text-indent: -16px; margin-bottom: 6px; } .paper .n { display: inline-block; min-width: 18px; }
.paper hr.pb { border: 0; border-top: 2px dashed var(--line); margin: 22px 0; }
@media (max-width: 600px) { .paper { padding: 20px 16px; font-size: 15.5px; } .wrap { padding: 18px 12px 40px; } }
.doc-head { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 14px; }
.tabs { display: flex; gap: 6px; margin: 4px 0 12px; } .tabs button { flex: 1; padding: 10px; border: 1px solid #d1d5db; background: #fff; border-radius: 9px; font: inherit; font-weight: 600; cursor: pointer; }
.tabs button[aria-selected=true] { background: var(--gl); border-color: #86efac; color: var(--g); }
.pad-wrap { position: relative; border: 2px dashed #9ca3af; border-radius: 10px; background: #fff; touch-action: none; }
.pad-wrap canvas { display: block; width: 100%; height: 170px; cursor: crosshair; }
.pad-wrap .line { position: absolute; left: 6%; right: 6%; bottom: 36px; border-top: 1px solid #d1d5db; pointer-events: none; }
.pad-wrap .x { position: absolute; left: 3%; bottom: 38px; color: #9ca3af; font-size: 20px; pointer-events: none; }
.typed-preview { font-family: 'Sig', cursive; font-size: 46px; color: #0b2a5b; min-height: 80px; padding: 6px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; overflow: hidden; white-space: nowrap; }
.agree { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0; font-size: 15px; } .agree input { width: 22px; height: 22px; margin-top: 2px; flex: none; }
.kv { display: grid; grid-template-columns: 170px 1fr; gap: 6px 14px; font-size: 14.5px; } .kv dt { color: var(--mut); } .kv dd { margin: 0; word-break: break-word; }
@media (max-width: 600px) { .kv { grid-template-columns: 1fr; } .kv dd { margin-bottom: 6px; } }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; word-break: break-all; }
.sigimg { max-width: 260px; max-height: 80px; display: block; margin: 4px 0; }
.gate { justify-content: center; } .gate .card { margin-top: 10vh; } .gate-logo { height: 30px; width: auto; margin-bottom: 10px; }
.consent h3 { font-size: 16px; margin: 14px 0 4px; } .consent p { margin: 0 0 8px; }
/* spacing helpers (the page's CSP allows no inline styles) */
.mx-auto { margin-left: auto; margin-right: auto; } .m0 { margin: 0; } .between { justify-content: space-between; }
.mt6 { margin-top: 6px; } .mt8 { margin-top: 8px; } .mt10 { margin-top: 10px; } .mt12 { margin-top: 12px; } .mt14 { margin-top: 14px; } .mt16 { margin-top: 16px; }
h1[tabindex="-1"]:focus { outline: none; }
