/* Notary Journal Page Generator — styles */
:root {
  --bg: #f4f6fa;
  --card: #ffffff;
  --ink: #1c2433;
  --muted: #5d6b82;
  --line: #e3e8f0;
  --brand: #1a56db;
  --brand-dark: #1443ad;
  --ok: #0e7c3e;
  --warn: #9a6a00;
  --warn-bg: #fff7e0;
  --err: #b4232a;
  --err-bg: #fdecec;
  --radius: 12px;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
}
.wrap { max-width: 980px; margin: 0 auto; padding: 0 18px; }

/* top bar */
.topbar { background: #101828; color: #fff; position: sticky; top: 0; z-index: 50; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; padding: 12px 18px; }
.brand { display: flex; gap: 12px; align-items: center; }
.brand .logo { font-size: 30px; }
.brand strong { font-size: 18px; display: block; line-height: 1.2; }
.brand .tagline { font-size: 12px; color: #b8c2d4; display: block; }

/* cards */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  margin: 22px 0;
  box-shadow: 0 1px 3px rgba(16, 24, 40, .06);
}
.hero h1 { margin: 0 0 10px; font-size: 28px; letter-spacing: -0.02em; }
.hero p { margin: 8px 0; }
h2 { font-size: 20px; margin: 0 0 14px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
h3 { font-size: 15px; margin: 0 0 8px; }
.step {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--brand); color: #fff; font-size: 15px; font-weight: 700;
}
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
.privacy-badge {
  background: #eef4ff; border: 1px solid #c9dcff; border-radius: 8px;
  padding: 10px 14px; font-size: 14px;
}
.verify-banner {
  background: #fff3d6; border: 1px solid #f0df9e; border-radius: 8px;
  padding: 10px 14px; font-size: 14px; font-weight: 600; color: #6b4a00;
}
.saved-note { font-size: 13px; color: var(--ok); font-weight: 600; }

/* forms */
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
label { display: block; font-size: 14px; font-weight: 600; }
input, select {
  width: 100%; margin-top: 6px; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 8px; font-size: 15px;
  background: #fff; color: var(--ink);
}
input:focus, select:focus { outline: 2px solid var(--brand); border-color: var(--brand); }
.hint { font-weight: 400; font-size: 12px; color: var(--muted); display: block; margin-top: 4px; min-height: 16px; }

/* dropzone */
.dropzone {
  border: 2px dashed #b9c6dd; border-radius: var(--radius);
  padding: 34px 20px; text-align: center; background: #fafcff;
  cursor: pointer; transition: border-color .15s, background .15s;
}
.dropzone:hover, .dropzone.drag { border-color: var(--brand); background: #eef4ff; }
.dropzone:focus { outline: 2px solid var(--brand); }
.dz-main { font-size: 17px; margin: 0 0 6px; }
.linklike { background: none; border: none; color: var(--brand); font-size: inherit; cursor: pointer; text-decoration: underline; padding: 0; }

/* buttons */
.btn {
  display: inline-block; border: 1px solid var(--line); background: #fff; color: var(--ink);
  border-radius: 8px; padding: 10px 18px; font-size: 15px; font-weight: 600; cursor: pointer;
}
.btn:hover { border-color: var(--brand); color: var(--brand); }
.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-ghost { background: transparent; }
.btn-pro { background: #f59e0b; border-color: #f59e0b; color: #1c2433; text-decoration: none; }
.btn-pro:hover { background: #d97706; color: #fff; }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn-danger { border-color: #f3b7ba; color: var(--err); }
.btn-danger:hover { border-color: var(--err); color: var(--err); background: var(--err-bg); }
.row { display: flex; align-items: center; }
.gap { gap: 10px; margin-top: 14px; }
.wrap-row { flex-wrap: wrap; }

/* radio toggle */
.radio-toggle { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.radio-toggle label { font-size: 14px; font-weight: 600; padding: 10px 16px; cursor: pointer; margin: 0; }
.radio-toggle input { width: auto; margin: 0 6px 0 0; padding: 0; vertical-align: middle; }
.radio-toggle label:has(input:checked) { background: var(--brand); color: #fff; }

/* tables */
.table-wrap { overflow-x: auto; margin-top: 12px; }
.data-table, .mini-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table th, .data-table td, .mini-table th, .mini-table td {
  text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top;
}
.data-table th, .mini-table th { background: #f1f4f9; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.mini-table td code { background: #eef1f6; padding: 1px 6px; border-radius: 4px; font-size: 12px; }
.totals-line { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.gap-banner {
  background: var(--err-bg); border: 2px solid var(--err); border-radius: 8px;
  padding: 12px 16px; margin: 14px 0; font-size: 15px;
}
.cols-help { margin-top: 14px; }

/* paywall overlay */
.overlay {
  position: fixed; inset: 0; background: rgba(16, 24, 40, .6);
  display: none; align-items: center; justify-content: center; z-index: 200; padding: 18px;
}
.overlay.open { display: flex; }
.paywall {
  background: #fff; border-radius: 16px; padding: 32px; max-width: 440px; width: 100%;
  text-align: center; box-shadow: 0 20px 60px rgba(0, 0, 0, .3);
}
.paywall h3 { font-size: 24px; margin: 0 0 12px; }
.paywall .price { font-size: 32px; font-weight: 800; color: var(--brand); margin: 12px 0; }
.paywall ul { text-align: left; color: var(--muted); font-size: 14px; margin: 16px 0; padding-left: 20px; }
.paywall .btn { width: 100%; margin-top: 8px; }
.paywall .ghost { background: none; border: none; color: var(--muted); margin-top: 12px; cursor: pointer; font-size: 14px; text-decoration: underline; }
.paywall .tiny { display: block; margin-top: 14px; font-size: 12px; color: var(--muted); }

.footer { padding: 10px 0 40px; font-size: 14px; }
.footer p { margin: 8px 0; }

/* toast */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: #101828; color: #fff; padding: 12px 20px; border-radius: 10px;
  font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
  max-width: 90vw; z-index: 300;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.error { background: var(--err); }

/* print: only the journal pages */
.print-only { display: none; }
@page journal-letter { size: letter; margin: 0.55in 0.5in; }
@page journal-a4 { size: A4; margin: 14mm 12mm; }
@media print {
  body > *:not(#print-journal) { display: none !important; }
  #print-journal { display: block !important; }
  body.page-size-letter .jpage { page: journal-letter; }
  body.page-size-a4 .jpage { page: journal-a4; }
  .jpage {
    font-family: Georgia, "Times New Roman", serif; color: #000;
    page-break-after: always; break-after: page;
  }
  .jpage:last-child { page-break-after: auto; break-after: auto; }
  .jhead { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; border-bottom: 3px double #000; padding-bottom: 8px; margin-bottom: 10px; }
  .jhead h1 { font-size: 24px; margin: 0 0 4px; letter-spacing: .06em; text-transform: uppercase; }
  .jhead p { font-size: 11.5px; margin: 0; }
  .jpageno { font-size: 12px; white-space: nowrap; padding-top: 4px; }
  .jtable { width: 100%; border-collapse: collapse; font-size: 11px; table-layout: fixed; }
  .jtable th, .jtable td { border: 1px solid #000; padding: 5px 6px; text-align: left; vertical-align: top; word-wrap: break-word; }
  .jtable th { background: #eee; font-size: 10px; text-transform: uppercase; letter-spacing: .03em; }
  .jtable .c-num { width: 7%; }
  .jtable .c-date { width: 12%; }
  .jtable .c-fee { width: 9%; text-align: right; }
  .jtable tr.blank td { height: 22px; }
  .jsig { margin-top: 22px; display: flex; gap: 48px; }
  .jsig div { flex: 1; border-top: 1px solid #000; padding-top: 4px; font-size: 11px; }
  .jnote { font-size: 9.5px; color: #333; margin-top: 12px; font-style: italic; }
}

@media (max-width: 760px) {
  .grid2, .grid3 { grid-template-columns: 1fr; }
  .card { padding: 18px; }
  .hero h1 { font-size: 23px; }
  .topbar-inner { padding: 10px 14px; }
}
