:root {
  --navy: #1d3557; --navy-2: #274872; --ink: #1b2430; --muted: #5d6b7a; --line: #dde3ea;
  --bg: #f3f5f8; --card: #fff; --accent: #2a7a5f; --danger: #b3261e; --focus: #3b82f6;
  --radius: 12px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 15px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; color: var(--ink); background: var(--bg); }
@font-face { font-family: "GnuMICR"; src: url("fonts/GnuMICR.woff2") format("woff2"), url("fonts/GnuMICR.otf") format("opentype"); font-display: block; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
a { color: var(--navy-2); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
[hidden] { display: none !important; }

/* top bar */
.topbar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 16px; padding: 10px 20px; padding-top: max(10px, env(safe-area-inset-top)); background: var(--navy); color: #fff; box-shadow: 0 1px 0 rgba(0,0,0,.08); }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand img { border-radius: 8px; }
.brand strong { display: block; font-size: 16px; letter-spacing: .2px; }
.brand span { display: block; font-size: 12px; opacity: .75; }
.tabs { display: flex; gap: 4px; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { appearance: none; border: 0; background: transparent; color: #dbe5f1; font: inherit; font-weight: 600; padding: 9px 14px; border-radius: 8px; cursor: pointer; white-space: nowrap; min-height: 40px; }
.tab:hover { background: rgba(255,255,255,.08); color: #fff; }
.tab.is-active { background: #fff; color: var(--navy); }
.topbar .install-btn { color: #fff; border: 1px solid rgba(255,255,255,.45); background: transparent; }

main { max-width: 1280px; margin: 0 auto; padding: 20px; }
.view { display: none; }
.view.is-active { display: block; }
.view-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 4px 0 14px; }
h1 { font-size: 22px; margin: 0; }
h2 { font-size: 17px; margin: 0 0 10px; }
h3 { font-size: 14px; margin: 18px 0 8px; color: var(--navy); text-transform: uppercase; letter-spacing: .5px; }
h3 small { text-transform: none; letter-spacing: 0; color: var(--muted); font-weight: 400; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: 0 1px 2px rgba(16,24,40,.04); min-width: 0; }

.demo-banner { background: #fff7e0; border: 1px solid #f0d58a; color: #6b5310; padding: 10px 14px; border-radius: 10px; margin-bottom: 14px; }

/* layout */
.write-grid { display: grid; grid-template-columns: minmax(340px, 440px) minmax(0, 1fr); gap: 20px; align-items: start; }
.preview-col { position: sticky; top: 76px; display: grid; gap: 16px; min-width: 0; }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 20px; align-items: start; }

/* forms */
.form { display: grid; gap: 12px; }
.row { display: grid; gap: 12px; }
.row.two { grid-template-columns: minmax(0, 1fr) 150px; }
.field { display: grid; gap: 5px; font-size: 13px; font-weight: 600; color: #34404d; }
.field small { font-weight: 400; color: var(--muted); }
.field.inline { display: flex; align-items: center; gap: 10px; }
input, select, textarea { min-width: 0; font: inherit; font-size: 16px; color: var(--ink); width: 100%; min-height: 44px; padding: 9px 11px; border: 1px solid #c9d2dc; border-radius: 9px; background: #fff; }
textarea { resize: vertical; min-height: 70px; }
input:focus, select:focus, textarea:focus { border-color: var(--focus); outline: 2px solid rgba(59,130,246,.25); }
input.bad { border-color: var(--danger); background: #fff6f5; }
.hint { font-weight: 500; font-size: 12px; min-height: 16px; }
.hint.ok { color: var(--accent); } .hint.err { color: var(--danger); }
.money-input { display: flex; align-items: center; border: 1px solid #c9d2dc; border-radius: 9px; background: #fff; padding-left: 12px; }
.money-input span { font-size: 22px; font-weight: 700; color: var(--muted); }
.money-input input { border: 0; font-size: 26px; font-weight: 700; min-height: 54px; outline: none; }
.money-input:focus-within { border-color: var(--focus); outline: 2px solid rgba(59,130,246,.25); }
.words-preview { font-size: 14px; color: var(--navy); background: #f1f5fa; border-radius: 8px; padding: 8px 11px; min-height: 38px; }
.check-line { display: flex; align-items: center; gap: 9px; font-size: 14px; min-height: 36px; cursor: pointer; }
.check-line input { width: 20px; height: 20px; min-height: 0; margin: 0; accent-color: var(--navy); }
.toggles { grid-template-columns: 1fr 1fr; }
.more { border: 1px solid var(--line); border-radius: 10px; padding: 4px 12px; }
.more summary { cursor: pointer; font-weight: 600; font-size: 14px; padding: 8px 0; color: var(--navy-2); }
.more[open] { display: grid; gap: 10px; padding-bottom: 12px; }
.printopts { border: 0; padding: 0; margin: 4px 0 0; display: grid; gap: 8px; }
.printopts legend { font-size: 13px; font-weight: 600; color: #34404d; margin-bottom: 6px; padding: 0; }
.seg { display: flex; background: #eef2f6; border-radius: 10px; padding: 3px; gap: 3px; }
.seg button { flex: 1; appearance: none; border: 0; background: transparent; font: inherit; font-size: 14px; font-weight: 600; color: #46515e; padding: 8px 6px; border-radius: 8px; cursor: pointer; min-height: 40px; }
.seg button.is-on { background: #fff; color: var(--navy); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.btn { appearance: none; display: inline-flex; align-items: center; justify-content: center; font: inherit; font-weight: 600; font-size: 15px; padding: 10px 16px; min-height: 44px; border-radius: 10px; border: 1px solid #c3ccd6; background: #fff; color: var(--ink); cursor: pointer; text-decoration: none; }
.btn:hover { background: #f5f7fa; }
.btn-primary { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-2); }
.btn-ghost { background: transparent; border-color: transparent; }
.btn-ghost:hover { background: rgba(0,0,0,.05); }
.topbar .btn-ghost:hover { background: rgba(255,255,255,.1); }
.btn-danger { color: var(--danger); border-color: #e7b4b0; background: #fff; }
.btn-danger:hover { background: #fff2f1; }
.btn-sm { min-height: 34px; padding: 6px 11px; font-size: 13px; }
#printBtn { flex: 1 1 160px; font-size: 16px; min-height: 50px; }
.form-error { color: var(--danger); font-weight: 600; margin: 0; min-height: 1em; }

/* preview */
.preview-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.preview-head h2 { margin: 0; }
.pill { font-size: 12px; font-weight: 600; background: #eef2f6; color: var(--muted); border-radius: 99px; padding: 3px 10px; }
.check-preview { position: relative; width: 100%; overflow: hidden; border-radius: 6px; }
.check-preview .scaler { transform-origin: 0 0; position: absolute; left: 0; top: 0; }
.check-preview .chk { box-shadow: 0 0 0 1px #c9d3dd, 0 6px 18px rgba(16,24,40,.10); background: linear-gradient(135deg, #f7fbf8 0%, #eef6f2 100%); }
.check-preview.preprinted .chk { background: repeating-linear-gradient(45deg, #eef3fb, #eef3fb 6px, #e8eef8 6px, #e8eef8 12px); }
.micr-human { font-size: 12px; color: var(--muted); margin: 10px 0 0; word-break: break-all; }
.batch-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.batch-list li { display: flex; align-items: center; gap: 10px; justify-content: space-between; border: 1px solid var(--line); border-radius: 9px; padding: 8px 10px; font-size: 14px; }
.batch-list li b { font-variant-numeric: tabular-nums; }

/* register */
.filters { display: grid; grid-template-columns: minmax(0, 1fr) 220px 130px; gap: 10px; }
.totals { color: var(--muted); font-size: 13px; margin: 10px 0; }
.table-wrap { overflow-x: auto; }
.reg-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.reg-table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); padding: 8px; border-bottom: 1px solid var(--line); }
.reg-table td { padding: 9px 8px; border-bottom: 1px solid #edf0f4; vertical-align: middle; }
.reg-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.reg-table tr.void td { color: #98a2ad; }
.reg-table tr.void .amt { text-decoration: line-through; }
.reg-table .acts { white-space: nowrap; text-align: right; }
.reg-table .acts .btn { margin-left: 4px; }
.status { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: #e6f3ee; color: var(--accent); white-space: nowrap; }
.status.void { background: #fbeaea; color: var(--danger); }
.empty { color: var(--muted); text-align: center; padding: 20px 0; margin: 0; }

/* lists */
.list { list-style: none; margin: 12px 0 0; padding: 0; }
.list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 11px 6px; border-bottom: 1px solid #edf0f4; cursor: pointer; border-radius: 6px; }
.list li:hover { background: #f6f8fb; }
.list li small { display: block; color: var(--muted); }
.acct-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.acct-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; display: flex; gap: 12px; justify-content: space-between; align-items: center; }
.acct-item h4 { margin: 0 0 2px; font-size: 15px; }
.acct-item p { margin: 0; font-size: 13px; color: var(--muted); }
.tag { display: inline-block; font-size: 11px; font-weight: 700; background: #fff1c7; color: #7a5a00; padding: 1px 7px; border-radius: 99px; margin-left: 6px; vertical-align: middle; }
.micr-sample { font-family: "GnuMICR"; font-size: 20px; background: #f6f7f9; border-radius: 8px; padding: 10px 12px; overflow-x: auto; white-space: nowrap; min-height: 44px; }
.img-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.img-box { border: 1px dashed #c3ccd6; border-radius: 10px; padding: 10px; display: grid; gap: 8px; font-size: 13px; font-weight: 600; align-content: start; min-width: 0; }
.img-box img { max-width: 100%; max-height: 70px; object-fit: contain; background: repeating-conic-gradient(#eee 0 25%, #fff 0 50%) 50% / 14px 14px; border-radius: 6px; }
.img-box input[type=file] { font-size: 13px; min-height: 0; padding: 6px; }

/* setup */
.offset-table { width: 100%; border-collapse: collapse; margin: 6px 0; }
.offset-table th { text-align: left; font-size: 12px; color: var(--muted); text-transform: uppercase; padding: 6px 4px; }
.offset-table td { padding: 5px 4px; }
.offset-table input { max-width: 110px; }
.tips { padding-left: 18px; margin: 0; font-size: 14px; }
.tips li { margin-bottom: 6px; }
.privacy-big { background: #eaf5f0; border: 1px solid #bfe0d2; border-radius: 10px; padding: 12px 14px; font-size: 14px; }
.privacy-note { text-align: center; color: var(--muted); font-size: 13px; padding: 10px 16px 24px; padding-bottom: max(24px, env(safe-area-inset-bottom)); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: #18212c; color: #fff; padding: 12px 18px; border-radius: 12px; font-size: 14px; box-shadow: 0 8px 24px rgba(0,0,0,.25); z-index: 50; max-width: calc(100% - 32px); }

/* ===== the check itself (same markup on screen and on paper) ===== */
.chk, .stub { position: relative; width: 8.5in; overflow: hidden; background: #fff; color: #000; font-family: Helvetica, Arial, "Liberation Sans", sans-serif; }
.ab { position: absolute; white-space: nowrap; line-height: 1.15; }
.lbl { font-size: 6.5pt; font-weight: 700; letter-spacing: .3pt; color: #222; }
.rule { position: absolute; height: 0; border-top: 0.75pt solid #000; }
.co-name { font-size: 11pt; font-weight: 700; }
.co-line { font-size: 8.5pt; }
.bank-name { font-size: 9pt; font-weight: 700; }
.bank-line { font-size: 7.5pt; }
.chk-no { font-size: 12pt; font-weight: 700; text-align: right; }
.v { font-size: 11pt; }
.v-payee { font-size: 11.5pt; font-weight: 600; overflow: hidden; text-overflow: clip; }
.v-amount { font-size: 11.5pt; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; letter-spacing: .3pt; }
.v-words { font-size: 10pt; overflow: hidden; }
.v-words .fill { letter-spacing: 1pt; }
.v-addr { font-size: 9pt; line-height: 0.14in; white-space: pre; }
.v-memo { font-size: 9.5pt; overflow: hidden; }
.amt-box { position: absolute; border: 1pt solid #000; }
.sig-img { position: absolute; object-fit: contain; object-position: center bottom; }
.logo { position: absolute; object-fit: contain; object-position: left top; }
.micr-svg { position: absolute; left: 0; bottom: 0; overflow: visible; }
.micr-svg text { font-family: "GnuMICR"; }
.stub .s-co { font-size: 10pt; font-weight: 700; }
.stub .s-no { font-size: 10pt; font-weight: 700; text-align: right; }
.stub table { position: absolute; border-collapse: collapse; font-size: 9.5pt; table-layout: fixed; }
.stub th { font-size: 7pt; text-align: left; border-bottom: 0.75pt solid #000; padding: 0 0 2pt; letter-spacing: .3pt; }
.stub td { padding: 3pt 4pt 0 0; vertical-align: top; overflow: hidden; white-space: nowrap; }
.stub .r { text-align: right; padding-right: 0; }
.stub .s-note { font-size: 9pt; white-space: pre-wrap; line-height: 1.3; }
.stub .s-foot { font-size: 7pt; color: #444; }

/* alignment test marks */
.al-box { position: absolute; border: 0.75pt dashed #000; font-size: 7pt; color: #000; padding: 1pt 2pt; }
.al-slot { position: absolute; left: 0; width: 8.5in; border-top: 0.75pt dotted #666; }
.al-tick { position: absolute; background: #000; }
.al-num { position: absolute; font-size: 7pt; }
.al-cross-h, .al-cross-v { position: absolute; background: #000; }
.al-text { position: absolute; font-size: 9pt; line-height: 1.4; white-space: normal; }
.al-square { position: absolute; width: 1in; height: 1in; border: 0.75pt solid #000; font-size: 7pt; display: flex; align-items: center; justify-content: center; }

/* print */
#print-root { display: none; }
@page { size: letter; margin: 0; }
@media print {
  html, body { margin: 0 !important; padding: 0 !important; background: #fff !important; }
  body > .app { display: none !important; }
  #print-root { display: block !important; }
  .page { position: relative; width: 8.5in; height: 11in; overflow: hidden; page-break-after: always; break-after: page; }
  .page:last-child { page-break-after: auto; break-after: auto; }
  .page-inner { position: absolute; left: 0; top: 0; width: 8.5in; height: 11in; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* share: button, sheet, offscreen PDF renderer */
.btn .ico { flex: 0 0 auto; margin-right: 6px; }
.btn-share { gap: 0; }
.preview-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.toast-act { appearance: none; margin-left: 10px; background: #fff; color: #18212c; border: 0; border-radius: 8px; padding: 6px 12px; font: inherit; font-weight: 700; cursor: pointer; }
html.share-open, html.share-open body { overflow: hidden; }
.share-overlay { position: fixed; inset: 0; z-index: 110; background: rgba(15, 23, 35, .5); display: flex; align-items: center; justify-content: center; padding: 16px; }
.share-sheet { background: #fff; border-radius: 16px; width: min(420px, 100%); padding: 16px 16px 12px; box-shadow: 0 20px 50px rgba(0,0,0,.3); }
.share-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.share-head h2 { margin: 0; font-size: 18px; }
.share-sub { margin: 3px 0 0; font-size: 12px; color: var(--muted); word-break: break-all; }
.share-opts { display: grid; gap: 8px; }
.share-opt { appearance: none; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 60px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.share-opt:hover { background: #f5f7fa; }
.share-opt:disabled { opacity: .5; cursor: default; }
.share-opt b { display: block; font-size: 16px; }
.share-opt small { display: block; color: var(--muted); font-size: 13px; }
.share-ico { flex: 0 0 40px; height: 40px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: #eef2f6; color: var(--navy); }
#shShare .share-ico { background: var(--navy); color: #fff; }
.share-status { margin: 10px 2px 0; font-size: 13px; color: var(--muted); min-height: 1.2em; }
.share-status.err { color: var(--danger); font-weight: 600; }
@media (max-width: 720px) {
  .share-overlay { align-items: flex-end; padding: 0; }
  .share-sheet { width: 100%; border-radius: 18px 18px 0 0; padding-bottom: max(14px, env(safe-area-inset-bottom)); }
}
.pdf-host { position: fixed; left: -12000px; top: 0; width: 8.5in; pointer-events: none; z-index: -1; -webkit-text-size-adjust: none; text-size-adjust: none; }
.pdf-host .page { position: relative; width: 8.5in; height: 11in; overflow: hidden; background: #fff; }
.pdf-host .page-inner { position: absolute; left: 0; top: 0; width: 8.5in; height: 11in; }
@media print { .pdf-host, .share-overlay { display: none !important; } }

/* responsive */
@media (max-width: 1020px) {
  .write-grid { grid-template-columns: minmax(0, 1fr); }
  .preview-col { position: static; order: -1; }
  .two-col { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .topbar { position: static; padding: 8px 14px; padding-top: max(8px, env(safe-area-inset-top)); gap: 8px; }
  .tabs { position: fixed; z-index: 20; left: 0; right: 0; bottom: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -2px 10px rgba(16,24,40,.06); padding: 0 0 env(safe-area-inset-bottom); overflow: visible; }
  .tab { color: #5d6b7a; border-radius: 0; min-height: 58px; padding: 6px 2px; font-size: 13px; border-top: 3px solid transparent; }
  .tab:hover { background: transparent; color: var(--navy); }
  .tab.is-active { background: #fff; color: var(--navy); border-top-color: var(--navy); }
  .toast { bottom: calc(76px + env(safe-area-inset-bottom)); }
  .install-btn { margin-left: auto; min-height: 36px; padding: 6px 12px; }
  main { padding: 14px 12px; }
  .card { padding: 14px; }
  .row.two { grid-template-columns: minmax(0, 1fr) 120px; }
  .toggles { grid-template-columns: 1fr; }
  .payee-row { grid-template-columns: minmax(0, 1fr) !important; }
  input[type=date] { -webkit-appearance: none; appearance: none; display: block; }
  .seg button { font-size: 13px; padding: 8px 4px; }
  .filters { grid-template-columns: 1fr 1fr; }
  .filters input[type=search] { grid-column: 1 / -1; }
  .img-row { grid-template-columns: 1fr; }
  .view-head h1 { font-size: 20px; }
  /* register as cards */
  .reg-table thead { display: none; }
  .reg-table, .reg-table tbody, .reg-table tr, .reg-table td { display: block; width: 100%; }
  .reg-table tr { border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; margin-bottom: 10px; display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; }
  .reg-table td { border: 0; padding: 2px 0; }
  .reg-table td.c-no { font-weight: 700; }
  .reg-table td.c-no::before { content: "#"; }
  .reg-table td.c-date { text-align: right; color: var(--muted); }
  .reg-table td.c-payee { font-weight: 600; }
  .reg-table td.num { text-align: right; font-size: 16px; font-weight: 700; }
  .reg-table td.c-memo, .reg-table td.c-acct { color: var(--muted); font-size: 13px; grid-column: 1 / -1; }
  .reg-table td.c-memo:empty { display: none; }
  .reg-table td.acts { grid-column: 1 / -1; text-align: left; display: flex; gap: 8px; align-items: center; padding-top: 6px; }
  .reg-table td.acts .btn { margin: 0; }
  .reg-table td.c-status { display: none; }
  .m-only { display: inline-block !important; }
}
.m-only { display: none; }

/* signatures */
@font-face { font-family: "Great Vibes"; src: url("fonts/sig/GreatVibes.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Dancing Script"; src: url("fonts/sig/DancingScript.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Allura"; src: url("fonts/sig/Allura.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Sacramento"; src: url("fonts/sig/Sacramento.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Mrs Saint Delafield"; src: url("fonts/sig/MrsSaintDelafield.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Homemade Apple"; src: url("fonts/sig/HomemadeApple.woff2") format("woff2"); font-display: swap; }
.aa { font-family: "Great Vibes", cursive; font-size: 1.25em; line-height: 1; }
.sig-pick { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
.toggles.one { grid-template-columns: minmax(0, 1fr); }
.sig-pick .hint { grid-column: 1 / -1; margin: 0; font-size: 12px; color: var(--muted); }
.sig-actions { display: flex; gap: 6px; }
.sig-actions .btn { flex: 1 1 0; text-align: center; line-height: 1.2; }
.img-row { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
.sig-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.sig-list li { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 4px 10px; align-items: center; border: 1px solid var(--line); border-radius: 10px; padding: 8px; background: #fff; }
.sig-list li.is-def { border-color: var(--accent); box-shadow: inset 3px 0 0 var(--accent); }
.sig-list img { width: 120px; height: 46px; object-fit: contain; background: #fff; border-bottom: 1px solid #c3ccd6; grid-row: span 2; }
.sig-list .nm { font-weight: 700; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sig-list .nm .tag { background: #def3ea; color: #1f5f49; }
.sig-list .acts { display: flex; flex-wrap: wrap; gap: 4px; }
.sig-list .acts .btn { min-height: 32px; padding: 4px 9px; font-size: 12.5px; }
.sig-empty { margin: 0; font-weight: 400; }
.sig-new { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.sig-opt { appearance: none; font: inherit; display: grid; justify-items: center; align-content: center; gap: 2px; text-align: center; min-height: 86px; padding: 10px 6px; border: 1px solid #c3ccd6; border-radius: 10px; background: #f8fafc; color: var(--ink); cursor: pointer; }
.sig-opt:hover { background: #eef3f9; border-color: var(--navy-2); }
.sig-opt .ic { font-size: 22px; line-height: 1.1; }
.sig-opt b { font-size: 13.5px; line-height: 1.25; }
.sig-opt small { font-size: 11.5px; font-weight: 400; color: var(--muted); }

html.sigpad-open, html.sigpad-open body { overflow: hidden; overscroll-behavior: none; }
.sigpad-overlay { position: fixed; inset: 0; z-index: 100; background: rgba(15, 23, 35, .55); display: flex; align-items: center; justify-content: center; padding: 16px; }
.sigpad { background: #fff; border-radius: 14px; width: min(880px, 100%); max-height: 100%; display: flex; flex-direction: column; gap: 10px; padding: 16px; box-shadow: 0 20px 50px rgba(0,0,0,.3); overflow: auto; }
.sigdraw { height: min(560px, 100%); overflow: hidden; }
.sigpad-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sigpad-head h2 { margin: 0; }
.sigpad-hint { margin: 0; font-size: 13px; color: var(--muted); }
.sigpad-wrap { position: relative; flex: 1 1 auto; min-height: 150px; border: 1px solid #c3ccd6; border-radius: 10px; background: #fff; overflow: hidden; }
.sigpad-canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; -ms-touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; cursor: crosshair; z-index: 1; }
.sigpad-line { position: absolute; left: 6%; right: 6%; bottom: 26%; border-bottom: 2px dashed #b9c4d0; pointer-events: none; }
.sigpad-line span { position: absolute; left: 0; bottom: 4px; color: #8a97a6; font-size: 18px; }
.sigpad-empty { position: absolute; left: 0; right: 0; top: 38%; text-align: center; color: #b3bdc8; font-size: 22px; pointer-events: none; }
.sigpad-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.sigpad-bar .sigpad-ink { flex: 0 0 auto; }
.sigpad-bar .sigpad-ink button { flex: 0 0 auto; padding: 6px 12px; }
.sigpad-bar [data-sp=save] { margin-left: auto; }
.sigpad-bar .btn:disabled, .sigconfirm .btn:disabled { opacity: .45; cursor: default; }
.sigtype-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.sigtype-tile { appearance: none; font: inherit; display: grid; gap: 4px; justify-items: center; padding: 10px; min-height: 96px; border: 1px solid #c3ccd6; border-radius: 10px; background: #fff; cursor: pointer; }
.sigtype-tile:hover { border-color: var(--navy-2); background: #f5f8fc; }
.sigtype-tile img { max-width: 100%; height: 60px; object-fit: contain; }
.sigtype-tile span { font-size: 11.5px; color: var(--muted); }
.sigtype-empty { grid-column: 1 / -1; margin: 6px 0; }
.sigconfirm { width: min(620px, 100%); }
.sc-preview { position: relative; background: #fff; border: 1px solid #c3ccd6; border-radius: 10px; height: 150px; display: flex; align-items: flex-end; justify-content: center; padding: 10px 24px 34px; }
.sc-preview img { max-width: 100%; max-height: 100%; object-fit: contain; position: relative; z-index: 1; }
.sc-line { position: absolute; left: 24px; right: 24px; bottom: 36px; border-bottom: 1.5px solid #34404d; }
.sc-photo { display: grid; gap: 4px; }
.sc-photo input[type=range] { width: 100%; min-height: 32px; padding: 0; accent-color: var(--navy); }
.sc-keep { font-size: 15px; }
.sc-opts { display: grid; gap: 6px; }
.sigconfirm .form-error:empty { display: none; }
@media (max-width: 720px), (max-height: 520px) {
  .sigpad-overlay { padding: 0; }
  .sigpad { width: 100vw; max-width: none; height: 100vh; height: 100dvh; max-height: none; border-radius: 0; padding: 12px; padding-top: max(12px, env(safe-area-inset-top)); padding-bottom: max(12px, env(safe-area-inset-bottom)); padding-left: max(12px, env(safe-area-inset-left)); padding-right: max(12px, env(safe-area-inset-right)); }
  .sigdraw { height: 100vh; height: 100dvh; }
  .sigpad-bar .btn { min-height: 44px; }
  .sigpad-bar [data-sp=save] { flex: 1 1 100%; order: 9; }
  .sig-actions .btn { flex: 1 1 0; padding: 6px 4px; min-height: 40px; }
  .img-row { grid-template-columns: minmax(0, 1fr); }
  .sig-new { gap: 6px; }
  .sig-opt { min-height: 96px; padding: 8px 4px; }
  .sig-opt b { font-size: 12.5px; }
  .sig-list li { grid-template-columns: 96px minmax(0, 1fr); }
  .sig-list img { width: 96px; }
}
@media (max-height: 520px) and (orientation: landscape) {
  .sigpad-hint { display: none; }
  .sigpad-bar [data-sp=save] { flex: 0 0 auto; order: 0; }
  .sigpad { gap: 6px; }
}
@media (max-width: 720px) and (orientation: portrait) {
  .sigdraw { justify-content: center; }
  .sigdraw .sigpad-head { position: absolute; top: max(12px, env(safe-area-inset-top)); left: 12px; right: 12px; }
  .sigdraw .sigpad-wrap { flex: 0 0 auto; height: min(62vw, 60vh); }
}


/* ===== Quick Check Writer: watermark, plans, hero ===== */
.qcw-sample { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 20; }
.qcw-sample-in { position: absolute; left: 50%; top: 50%; display: flex; flex-direction: column; align-items: center; white-space: nowrap; color: rgba(200, 16, 16, .38); font-family: Helvetica, Arial, sans-serif; font-weight: 700; line-height: 1; transform-origin: 50% 50%; }
.qcw-sample-in span { display: block; }
.qcw-sample-in small { display: block; font-size: .22em; margin-top: .25em; font-weight: 700; }
@media print { .qcw-sample-in { color: rgba(200, 16, 16, .38) !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; } }

.topbar .plan-btn { flex: none; color: var(--navy); background: #ffd166; border-color: #ffd166; min-height: 36px; padding: 6px 12px; font-size: 13.5px; }
.topbar .plan-btn.is-paid { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.free-banner { background: #e9f6ef; border: 1px solid #b6dfc8; color: #1d5a41; padding: 10px 14px; border-radius: 10px; margin-bottom: 14px; }
.free-banner.used { background: #fdeceb; border-color: #f2c1bd; color: #7d1d17; }
.linklike { appearance: none; background: none; border: 0; padding: 0; font: inherit; color: var(--navy-2); text-decoration: underline; cursor: pointer; font-weight: 600; }
.free-banner .linklike { color: inherit; }

.plans-sheet { width: min(620px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; padding: 18px 18px 14px; }
.plans-sheet .share-head h2 { font-size: 20px; }
.plan-current { margin: 4px 0 12px; font-size: 13px; color: var(--muted); }
.plan-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.plan-card { position: relative; border: 1.5px solid var(--line); border-radius: 14px; padding: 16px 14px 14px; display: flex; flex-direction: column; }
.plan-card.best { border-color: var(--navy); box-shadow: 0 6px 18px rgba(29,53,87,.12); }
.plan-card.is-current { border-color: var(--accent); }
.plan-card h3 { margin: 0 0 4px; font-size: 15px; }
.plan-card .price { margin: 0 0 8px; color: var(--ink); }
.plan-card .price b { font-size: 28px; letter-spacing: -.5px; }
.plan-card .price span { color: var(--muted); font-size: 14px; }
.plan-card ul { list-style: none; margin: 0 0 14px; padding: 0; font-size: 14px; flex: 1; }
.plan-card li { padding: 3px 0 3px 22px; position: relative; }
.plan-card li::before { content: ""; position: absolute; left: 4px; top: 8px; width: 9px; height: 5px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.plan-card .btn { width: 100%; }
.plan-tag { position: absolute; top: -10px; left: 12px; background: var(--navy); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 99px; }
.cancel-anytime { display: flex; gap: 8px; align-items: flex-start; background: #e9f6ef; color: #1d5a41; border-radius: 10px; padding: 10px 12px; margin: 14px 0 8px; font-size: 14.5px; }
.cancel-anytime svg { flex: none; margin-top: 2px; color: var(--accent); }
.plan-how { font-size: 12.5px; color: var(--muted); margin: 0 0 10px; }
.btn-block { width: 100%; }
.plan-continue { margin: 2px 0 10px; color: #7d1d17; border-color: #e6b4b0; }
.plan-code { margin: 6px 0; font-size: 14px; }
.plan-code summary { cursor: pointer; color: var(--navy-2); font-weight: 600; padding: 6px 0; }
.code-form { display: flex; gap: 8px; margin-top: 6px; }
.code-form input { flex: 1; min-width: 0; font: inherit; padding: 10px 12px; border: 1px solid #c3ccd6; border-radius: 10px; }
.plan-dev { margin: 10px 0 4px; padding: 10px; border: 1px dashed #c3ccd6; border-radius: 10px; font-size: 13px; }
.plan-dev small { color: var(--muted); }
.plan-dev-btns { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.plan-msg { min-height: 1.2em; font-size: 14px; margin: 8px 0 2px; }
.plan-msg.ok { color: var(--accent); font-weight: 600; }
.plan-msg.err { color: var(--danger); }
.plan-fine { font-size: 13px; margin: 4px 0 0; display: flex; gap: 14px; flex-wrap: wrap; }
@media (max-width: 720px) {
  .plans-sheet { max-height: 92vh; }
  .plan-grid { grid-template-columns: 1fr; gap: 16px; }
  .plan-card .price b { font-size: 24px; }
}

@media print { .site, .auth, .plans-overlay { display: none !important; } }
.plans-sheet .share-sub { word-break: normal; overflow-wrap: break-word; white-space: normal; }


/* ===================================================================
   v6: website / sign-in / app modes, marketing landing, app polish
   =================================================================== */
html.site-mode #app, html.site-mode #auth { display: none !important; }
html.app-mode #site, html.app-mode #auth { display: none !important; }
html.auth-mode #site, html.auth-mode #app { display: none !important; }
html.in-app .home-link, html.in-app .auth-back { display: none !important; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
:root { --gold: #f6c453; --gold-2: #ffd77a; --navy-3: #0f2140; --ink-2: #0f1b2d; }
.btn { transition: background-color .15s, border-color .15s, box-shadow .15s, transform .05s; letter-spacing: .1px; }
.btn:active { transform: translateY(1px); }
.btn-primary { box-shadow: 0 1px 2px rgba(15,33,64,.25); }
.btn-gold { background: var(--gold); border-color: var(--gold); color: var(--navy-3); }
.btn-gold:hover { background: var(--gold-2); }
.btn-outline { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.55); }
.btn-outline:hover { background: rgba(255,255,255,.1); }
.btn-outline-dark { background: #fff; color: var(--navy); border: 1.5px solid #c4cfdc; }
.btn-outline-dark:hover { background: #f3f6fa; }

/* ---------- landing ---------- */
.site { background: #fff; color: var(--ink-2); font-size: 16px; }
.site main { max-width: none; margin: 0; padding: 0; }   /* the app's main{} padding must not touch the landing page */
.skip { position: absolute; left: -9999px; top: 8px; z-index: 50; background: #fff; color: var(--navy); padding: 8px 12px; border-radius: 8px; }
.skip:focus { left: 8px; }
.s-wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.s-nav { position: sticky; top: 0; z-index: 30; background: rgba(15,33,64,.92); -webkit-backdrop-filter: saturate(160%) blur(10px); backdrop-filter: saturate(160%) blur(10px); color: #fff; border-bottom: 1px solid rgba(255,255,255,.08); padding-top: env(safe-area-inset-top); }
.s-nav-in { display: flex; align-items: center; gap: 20px; min-height: 64px; }
.s-logo { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font-weight: 700; font-size: 17px; letter-spacing: -.1px; }
.s-logo img { border-radius: 9px; }
.s-links { display: flex; gap: 4px; margin-left: auto; }
.s-links a { color: #d6e0ee; text-decoration: none; font-weight: 600; font-size: 15px; padding: 8px 12px; border-radius: 8px; }
.s-links a:hover { color: #fff; background: rgba(255,255,255,.08); }
.s-nav-cta { background: var(--gold); border-color: var(--gold); color: var(--navy-3); min-height: 40px; padding: 8px 16px; }
.s-nav-cta:hover { background: var(--gold-2); }

.s-hero { position: relative; overflow: hidden; color: #fff; background: radial-gradient(1000px 500px at 85% -10%, rgba(66,120,196,.45), transparent 60%), radial-gradient(700px 400px at -10% 110%, rgba(42,122,95,.35), transparent 60%), linear-gradient(170deg, #13284d 0%, #1d3557 55%, #1f3d66 100%); }
.s-hero-in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; align-items: center; padding: 72px 20px 84px; }
.s-eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; padding: 6px 12px 6px 10px; border-radius: 99px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); font-size: 14px; font-weight: 600; color: #f3f6fb; }
.s-eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: #5fd4a0; box-shadow: 0 0 0 4px rgba(95,212,160,.2); }
.s-hero h1 { font-size: clamp(34px, 5.2vw, 58px); line-height: 1.04; letter-spacing: -1.4px; margin: 0 0 18px; font-weight: 800; }
.s-lede { font-size: clamp(17px, 1.6vw, 19.5px); line-height: 1.55; color: #d3ddeb; margin: 0 0 28px; max-width: 540px; }
.s-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.s-cta.center { justify-content: center; }
.s-hero .btn-primary, .s-final .btn-primary { background: var(--gold); border-color: var(--gold); color: var(--navy-3); box-shadow: 0 8px 24px rgba(246,196,83,.25); }
.s-hero .btn-primary:hover, .s-final .btn-primary:hover { background: var(--gold-2); }
.s-ticks { display: flex; flex-wrap: wrap; gap: 10px 22px; list-style: none; margin: 26px 0 0; padding: 0; font-size: 15px; color: #d3ddeb; }
.s-ticks li { display: inline-flex; align-items: center; gap: 7px; }
.s-ticks svg { color: #5fd4a0; width: 18px; height: 18px; }

.s-hero-art { position: relative; padding: 24px 6px; }
.mock-check { position: relative; aspect-ratio: 8.5 / 3.5; width: 100%; max-width: 560px; margin-left: auto; background: linear-gradient(135deg, #f7fbff 0%, #eaf2fb 100%); color: #1b2430; border-radius: 10px; padding: 4.2% 4.6% 3%; box-shadow: 0 30px 60px rgba(4,12,28,.45), 0 0 0 1px rgba(255,255,255,.6) inset; transform: rotate(-2.5deg); font-family: Georgia, "Times New Roman", serif; font-size: clamp(8px, 1.15vw, 13px); display: flex; flex-direction: column; justify-content: space-between; }
.mock-check::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: repeating-linear-gradient(45deg, rgba(29,53,87,.035) 0 2px, transparent 2px 9px); pointer-events: none; }
.mock-check u { text-decoration: none; border-bottom: 1px solid #8a97a8; }
.mock-check small { display: block; font-size: .82em; color: #5d6b7a; font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
.mc-top { display: flex; justify-content: space-between; align-items: flex-start; }
.mc-co { display: flex; gap: .8em; align-items: center; }
.mc-co b { font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif; font-size: 1.1em; }
.mc-logo { display: grid; place-items: center; width: 2.9em; height: 2.9em; border-radius: .5em; background: #1d3557; color: #fff; font: 800 .82em/1 -apple-system, "Segoe UI", Arial, sans-serif; letter-spacing: .5px; }
.mc-no { text-align: right; } .mc-no b { font-family: -apple-system, "Segoe UI", Arial, sans-serif; font-size: 1.15em; }
.mc-pay { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .8em; align-items: end; }
.mc-pay > span:first-child { font-size: .78em; line-height: 1.1; color: #5d6b7a; font-family: -apple-system, Arial, sans-serif; }
.mc-payee { font-size: 1.25em; font-style: italic; }
.mc-amt { border: 1px solid #8a97a8; border-radius: 4px; padding: .25em .6em; font-weight: 700; font-family: -apple-system, Arial, sans-serif; background: #fff; }
.mc-words { display: flex; gap: .6em; align-items: end; } .mc-words u { flex: 1; font-style: italic; }
.mc-words span { font-size: .85em; color: #5d6b7a; font-family: -apple-system, Arial, sans-serif; }
.mc-bot { display: flex; justify-content: space-between; align-items: end; gap: 1em; }
.mc-memo { font-size: .9em; color: #5d6b7a; font-family: -apple-system, Arial, sans-serif; } .mc-memo u { color: #1b2430; font-family: Georgia, serif; padding: 0 .6em; }
.mc-sig { position: relative; width: 38%; text-align: center; } .mc-sig svg { position: absolute; left: 6%; bottom: 1.3em; width: 88%; height: auto; }
.mc-sig u { display: block; height: 1.6em; }
.mc-micr { font-family: "GnuMICR", monospace; font-size: 1.45em; letter-spacing: .02em; color: #111; white-space: nowrap; overflow: hidden; }
.s-float { position: absolute; display: flex; align-items: center; gap: 10px; background: #fff; color: var(--ink-2); border-radius: 12px; padding: 10px 14px; box-shadow: 0 14px 30px rgba(4,12,28,.3); font-size: 13px; }
.s-float svg { color: var(--accent); flex: none; }
.s-float b { display: block; font-size: 14px; } .s-float small { color: var(--muted); }
.s-float-a { left: -4px; bottom: -6px; } .s-float-b { right: -6px; top: -8px; }

.s-strip { background: #f5f8fc; border-bottom: 1px solid #e3e9f1; }
.s-strip-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 24px; padding: 20px; }
.s-strip span { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; color: #2a3a52; }
.s-strip svg { color: var(--navy); }

.s-sec { padding: 88px 0; }
.s-alt { background: #f5f8fc; }
.s-kicker { margin: 0 0 10px; color: #2a7a5f; font-weight: 700; font-size: 14px; letter-spacing: 1.2px; text-transform: uppercase; }
.s-sec h2 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.12; letter-spacing: -.8px; margin: 0 0 14px; color: var(--ink-2); font-weight: 800; }
.s-sub { color: #4c5b6e; font-size: 17.5px; margin: 0 0 8px; max-width: 620px; }
.s-sec h3 { text-transform: none; letter-spacing: -.2px; color: var(--ink-2); font-size: 19px; margin: 0 0 8px; }
.s-sec p { line-height: 1.6; }

.s-steps { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; counter-reset: s; }
.s-steps li { position: relative; background: #fff; border: 1px solid #e3e9f1; border-radius: 18px; padding: 28px 24px; box-shadow: 0 1px 2px rgba(16,24,40,.04); }
.s-steps .n { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--navy); color: #fff; font-weight: 800; font-size: 18px; margin-bottom: 18px; }
.s-steps p { margin: 0; color: #4c5b6e; font-size: 16px; }

.s-feats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 40px; }
.s-feat { background: #fff; border: 1px solid #e3e9f1; border-radius: 18px; padding: 26px 24px; transition: box-shadow .2s, transform .2s; }
.s-feat:hover { box-shadow: 0 12px 30px rgba(16,24,40,.08); transform: translateY(-2px); }
.s-feat .ic, .s-who .ic { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: #e8eef7; color: var(--navy); margin-bottom: 16px; }
.s-feat p, .s-who p { margin: 0; color: #4c5b6e; font-size: 15.5px; }

.s-who { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 40px; }
.s-who article { border-top: 3px solid var(--navy); padding: 26px 4px 0; }
.s-who .ic { background: #e6f4ee; color: #1f6b52; }

.s-prices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 36px; align-items: stretch; }
.s-price { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid #dfe6ef; border-radius: 20px; padding: 30px 26px 26px; }
.s-price.best { background: linear-gradient(170deg, #17305a, #1d3557); color: #fff; border-color: #1d3557; box-shadow: 0 24px 48px rgba(29,53,87,.28); }
.s-price.best h3, .s-price.best .amt { color: #fff; }
.s-price .tag { position: absolute; top: -13px; left: 26px; background: var(--gold); color: var(--navy-3); font-size: 12.5px; font-weight: 800; padding: 5px 11px; border-radius: 99px; letter-spacing: .2px; }
.s-price h3 { font-size: 18px; margin: 0 0 6px; }
.s-price .amt { margin: 0; color: var(--ink-2); } .s-price .amt b { font-size: 46px; letter-spacing: -1.5px; font-weight: 800; } .s-price .amt span { font-size: 16px; opacity: .7; margin-left: 2px; }
.s-price .for { margin: 2px 0 18px; color: #5d6b7a; font-size: 15px; } .s-price.best .for { color: #c5d2e4; }
.s-price ul { list-style: none; margin: 0 0 24px; padding: 18px 0 0; border-top: 1px solid #e8edf3; flex: 1; }
.s-price.best ul { border-top-color: rgba(255,255,255,.14); }
.s-price li { position: relative; padding: 6px 0 6px 28px; font-size: 15.5px; }
.s-price li::before { content: ""; position: absolute; left: 3px; top: 12px; width: 11px; height: 6px; border-left: 2.5px solid #2a7a5f; border-bottom: 2.5px solid #2a7a5f; transform: rotate(-45deg); }
.s-price.best li::before { border-color: #6fe0ae; }
.s-price .btn { min-height: 50px; font-size: 16px; }
.s-cancel { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 28px auto 0; color: #1d5a41; font-size: 16px; text-align: center; }
.s-cancel svg { flex: none; color: #2a7a5f; }

.s-faq-wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: 48px; align-items: start; }
.s-faq { display: grid; gap: 12px; }
.faq-item { background: #fff; border: 1px solid #e3e9f1; border-radius: 14px; padding: 0 20px; }
.faq-item[open] { box-shadow: 0 8px 24px rgba(16,24,40,.06); }
.faq-item summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; font-weight: 700; font-size: 16.5px; color: var(--ink-2); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #eef2f8; color: var(--navy); font-size: 20px; font-weight: 600; line-height: 1; }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { margin: 0 0 18px; color: #4c5b6e; font-size: 15.5px; }

.s-final { background: linear-gradient(160deg, #13284d, #1d3557 60%, #23466f); color: #fff; text-align: center; padding: 80px 0; }
.s-final h2 { font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -.8px; margin: 0 0 12px; font-weight: 800; }
.s-final p { color: #d3ddeb; font-size: 18px; margin: 0 0 28px; }
.play-badge { display: inline-flex; align-items: center; gap: 10px; background: #000; color: #fff; text-decoration: none; border-radius: 10px; padding: 7px 14px; min-height: 52px; border: 1px solid #5f6b78; }
.play-badge small { display: block; font-size: 10px; letter-spacing: .6px; opacity: .85; }
.play-badge b { display: block; font-size: 17px; line-height: 1.1; }
.play-badge .soon { font-style: normal; font-size: 11px; font-weight: 700; background: var(--gold); color: var(--navy-3); border-radius: 99px; padding: 2px 7px; }

.s-foot { background: #0d1c36; color: #b9c6d8; padding: 48px 0 calc(32px + env(safe-area-inset-bottom)); font-size: 15px; }
.s-foot-in { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 40px; }
.s-foot .s-logo { color: #fff; }
.s-foot-brand p { margin: 10px 0 0; max-width: 360px; }
.s-foot-links { display: flex; flex-wrap: wrap; gap: 10px 22px; align-content: flex-start; justify-content: flex-end; max-width: 560px; }
.s-foot-links a { color: #dbe4f0; text-decoration: none; } .s-foot-links a:hover { color: #fff; text-decoration: underline; }
.s-copy { grid-column: 1 / -1; margin: 12px 0 0; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); font-size: 13.5px; color: #93a3b8; }
.site a:focus-visible, .site button:focus-visible, .site summary:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

@media (max-width: 980px) {
  .s-hero-in { grid-template-columns: 1fr; gap: 36px; padding: 48px 20px 64px; }
  .mock-check { margin: 0 auto; }
  .s-feats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .s-faq-wrap { grid-template-columns: 1fr; gap: 20px; }
  .s-links { display: none; }
  .s-nav-cta { margin-left: auto; }
}
@media (max-width: 720px) {
  .s-steps, .s-feats, .s-who, .s-prices { grid-template-columns: 1fr; }
  .s-sec { padding: 60px 0; }
  .s-prices { gap: 26px; }
  .s-foot-in { grid-template-columns: 1fr; }
  .s-foot-links { justify-content: flex-start; flex-direction: column; gap: 12px; }
  .s-strip-in { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  .s-strip span { font-size: 14px; align-items: flex-start; }
}
@media (max-width: 480px) {
  .s-wrap { padding: 0 18px; }
  .s-hero-in { padding: 36px 18px 52px; gap: 28px; }
  .s-hero h1 { letter-spacing: -1px; }
  .s-cta .btn-lg { width: 100%; }
  .s-cta .play-badge { width: 100%; justify-content: center; }
  .s-hero-art { padding: 14px 0 26px; }
  .mock-check { transform: rotate(-1.5deg); font-size: 2.3vw; }
  .s-float { padding: 7px 10px; font-size: 11.5px; gap: 7px; } .s-float b { font-size: 12px; } .s-float svg { width: 18px; height: 18px; }
  .s-float-a { left: -2px; bottom: -4px; } .s-float-b { right: -2px; top: -4px; }
  .s-logo span { font-size: 16px; }
  .s-price { padding: 26px 20px 22px; }
  .s-cancel { align-items: flex-start; text-align: left; }
}

/* ---------- sign-in screen ---------- */
.auth { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px; padding-top: max(24px, env(safe-area-inset-top)); background: radial-gradient(800px 400px at 50% -10%, rgba(66,120,196,.25), transparent 70%), #f3f6fa; }
.auth-card { position: relative; width: min(420px, 100%); background: #fff; border: 1px solid #e1e7ef; border-radius: 22px; padding: 32px 26px 24px; box-shadow: 0 24px 60px rgba(16,24,40,.1); }
.auth-back { position: absolute; top: 14px; left: 16px; font-size: 14px; font-weight: 600; text-decoration: none; color: var(--navy-2); padding: 6px; }
.auth-brand { text-align: center; margin: 8px 0 12px; } .auth-brand img { border-radius: 12px; }
.auth h1 { text-align: center; font-size: 22px; letter-spacing: -.3px; margin: 0 0 6px; }
.auth-sub { text-align: center; color: var(--muted); font-size: 14.5px; margin: 0 0 20px; }
.auth-off { background: #fff7e0; border: 1px solid #f0d58a; color: #6b5310; padding: 12px 14px; border-radius: 12px; font-size: 14.5px; margin-bottom: 8px; }
.auth-google { gap: 10px; min-height: 50px; font-size: 15.5px; border-color: #c9d2dc; }
.auth-or { display: flex; align-items: center; gap: 12px; color: #8592a3; font-size: 13px; margin: 16px 0; }
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: #e3e8ef; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 14px; }
.auth-tabs button.is-on { background: var(--navy); color: #fff; border-color: var(--navy); }
.auth-form { gap: 12px; }
.auth-form .btn-primary { min-height: 50px; font-size: 16px; }
.auth-alt { text-align: center; font-size: 14px; margin: 4px 0 0; color: var(--muted); }
.auth-msg { text-align: center; margin: 12px 0 0; min-height: 1.2em; }
.auth-msg.ok { color: var(--accent); font-weight: 600; }
.auth-fine { text-align: center; font-size: 12.5px; color: var(--muted); margin: 14px 0 0; line-height: 1.5; }
#authCodeBox { display: grid; gap: 10px; }
#authCodeBox[hidden] { display: none; }

/* ---------- app polish ---------- */
.topbar { background: linear-gradient(180deg, #1d3557, #1a3050); gap: 12px; min-height: 60px; }
.home-link { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; color: #fff; flex: none; margin-right: -4px; }
.home-link:hover { background: rgba(255,255,255,.1); }
.card { border-radius: 14px; border-color: #e1e7ef; box-shadow: 0 1px 3px rgba(16,24,40,.05); }
main { padding: 24px 20px 32px; }
.field { color: #2b3746; }
input, select, textarea { border-color: #cdd6e0; transition: border-color .15s, box-shadow .15s; }
.view-head h1 { letter-spacing: -.3px; }
.acct-menu { position: relative; flex: none; }
.acct-btn { padding: 3px; min-height: 36px; width: 36px; border-radius: 50%; background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.3); }
.acct-btn:hover { background: rgba(255,255,255,.2); }
.avatar { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--gold); color: var(--navy-3); font-weight: 800; font-size: 14px; }
.acct-pop { position: absolute; right: 0; top: calc(100% + 8px); width: 250px; background: #fff; color: var(--ink); border: 1px solid #e1e7ef; border-radius: 14px; box-shadow: 0 18px 40px rgba(16,24,40,.18); padding: 8px; z-index: 40; }
.acct-who { margin: 0; padding: 8px 10px 10px; border-bottom: 1px solid #eef1f5; margin-bottom: 4px; overflow-wrap: anywhere; }
.acct-who b { display: block; font-size: 14.5px; } .acct-who small { color: var(--muted); font-size: 12.5px; }
.acct-item-btn { display: block; width: 100%; text-align: left; appearance: none; background: none; border: 0; font: inherit; font-size: 14.5px; padding: 10px; border-radius: 8px; cursor: pointer; color: var(--ink); }
.acct-item-btn:hover { background: #f2f5f9; }
.acct-item-btn.danger { color: var(--danger); }
.onboard { display: flex; align-items: center; justify-content: space-between; gap: 16px; background: linear-gradient(135deg, #eef4fb, #f7fafd); border: 1px solid #cfdcec; color: #1f3350; padding: 14px 16px; border-radius: 14px; margin-bottom: 16px; font-size: 14.5px; }
.onboard .btn { flex: none; }
/* Test unlock: small and out of the way (preview only, removed at launch) */
.plan-dev { margin: 14px 0 2px; padding: 6px 8px; border: 0; border-top: 1px dashed #d7dee7; border-radius: 0; font-size: 11.5px; color: #8592a3; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; opacity: .8; }
.plan-dev b { font-weight: 600; } .plan-dev small { font-size: 11px; }
.plan-dev-btns { margin: 0; gap: 4px; }
.plan-dev .btn-sm { min-height: 26px; padding: 2px 8px; font-size: 11.5px; font-weight: 500; color: #6b7889; }
@media (max-width: 720px) {
  .topbar { padding-left: 10px; padding-right: 10px; gap: 8px; }
  .onboard { flex-direction: column; align-items: stretch; }
  .acct-pop { position: fixed; right: 10px; top: calc(56px + env(safe-area-inset-top)); }
}

.pill:empty { display: none; }
@media (max-width: 480px) { .mc-micr { font-size: 1.2em; } .mock-check { padding: 4.2% 4% 3%; } }

/* hero mock check: keep the whole MICR line and check number visible */
.mc-micr { font-size: 1.15em; letter-spacing: 0; text-align: center; }
.s-float-b { top: -26px; right: -10px; }
@media (max-width: 480px) { .mc-micr { font-size: .98em; } .s-float-b { top: -30px; } }
