/* Trusty — design tokens
   Ink #17202e text · Vellum #f5f2ec canvas · Paper #fff surfaces · Rule #e3ddd2 lines
   Navy #1d3557 brand · Brass #b08433 accent (the seal on the document)
   Fraunces for headings (bookish, steady) · Instrument Sans for everything you read and click; tabular figures for money. */
:root {
  --ink: #17202e; --ink-2: #3b4656; --ink-3: #6a7483; --vellum: #f5f2ec; --paper: #fff; --rule: #e3ddd2; --rule-2: #cfc7b8;
  --brand: #1d3557; --brand-ink: #14263f; --brand-soft: #eaeff6; --brass: #b08433; --brass-bg: #faf1dd; --brass-ink: #7a5a1c;
  --green: #1f6b4a; --green-bg: #e4f2ea; --blue: #24508f; --blue-bg: #e6eef9; --amber: #8a5a00; --amber-bg: #fcf0d6; --red: #a3281f; --red-bg: #fbe9e6; --muted-bg: #eeebe4;
  --r: 10px; --r-sm: 6px; --side: 256px;
  --shadow: 0 1px 2px rgba(23,32,46,.05), 0 6px 20px rgba(23,32,46,.06);
  --focus: 0 0 0 3px rgba(29,53,87,.28);
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif; --sans: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 15px/1.55 var(--sans); color: var(--ink); background: var(--vellum); }
a { color: var(--brand); text-underline-offset: 2px; }
a:hover { color: var(--brand-ink); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; }
h1 { font: 600 1.75rem/1.15 var(--serif); letter-spacing: -.01em; }
h2 { font-size: 1.05rem; font-weight: 700; }
h3 { font-size: .95rem; font-weight: 700; }
p { margin: 0 0 .9em; }
small, .muted { color: var(--ink-3); }
code { font: .88em ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--muted-bg); padding: .1em .35em; border-radius: 4px; word-break: break-all; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 4px; }
.ic { flex: none; vertical-align: -3px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--paper); padding: 8px 12px; border-radius: var(--r-sm); z-index: 100; }
.skip:focus { left: 8px; }
.mark { flex: none; display: block; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; font: 600 14px/1 var(--sans); padding: 10px 16px; border-radius: 8px; border: 1px solid var(--brand); background: var(--brand); color: #fff; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background .12s, border-color .12s; }
.btn:hover { background: var(--brand-ink); border-color: var(--brand-ink); color: #fff; }
.btn:disabled { opacity: .6; cursor: default; }
.btn-ghost { background: var(--paper); color: var(--brand); border-color: var(--rule-2); }
.btn-ghost:hover { background: var(--brand-soft); color: var(--brand-ink); border-color: var(--brand); }
.btn-sm { padding: 7px 11px; font-size: 13px; }
.btn-lg { padding: 14px 22px; font-size: 16px; border-radius: 10px; }
.btn-block { display: flex; width: 100%; }
.btn-link { background: none; border: 0; color: var(--brand); padding: 2px 4px; font-weight: 500; text-decoration: underline; }
.btn-link:hover { background: none; color: var(--brand-ink); }
.btn-danger-ghost { background: none; color: var(--red); border-color: transparent; padding-left: 4px; }
.btn-danger-ghost:hover { background: var(--red-bg); color: var(--red); border-color: transparent; }
.btn-light { background: #fff; color: var(--brand); border-color: #fff; }
.btn-light:hover { background: var(--brass-bg); color: var(--brand-ink); border-color: var(--brass-bg); }
form.inline { display: inline; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 14px 0 4px; }

/* ---------- app shell ---------- */
body.app { display: flex; min-height: 100vh; }
.side { width: var(--side); flex: none; background: var(--brand-ink); color: #c9d3e2; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.side-brand { display: flex; align-items: center; gap: 10px; padding: 18px 18px 14px; color: #fff; text-decoration: none; font: 600 1.35rem var(--serif); }
.side-brand:hover { color: #fff; }
.side-brand .mark rect { fill: #24456f; }
.side-nav { padding: 4px 10px 16px; flex: 1; }
.side-link { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 7px; color: #c9d3e2; text-decoration: none; font-weight: 500; font-size: 14px; }
.side-link:hover { background: rgba(255,255,255,.07); color: #fff; }
.side-link.is-active { background: rgba(255,255,255,.12); color: #fff; box-shadow: inset 3px 0 0 var(--brass); }
.side-section { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #8496b0; padding: 16px 10px 5px; font-weight: 600; }
.side-file { margin: 14px 2px 6px; padding: 12px 10px 10px; border-top: 1px solid rgba(255,255,255,.12); }
.side-file small { display: block; color: #d7b56a; font-size: 11px; letter-spacing: .04em; text-transform: uppercase; font-weight: 600; }
.side-file strong { display: block; color: #fff; font: 600 1.02rem/1.25 var(--serif); margin-top: 2px; }
.side-foot { padding: 12px 18px; font-size: 12px; color: #8496b0; border-top: 1px solid rgba(255,255,255,.08); }
.shell { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.top { display: flex; align-items: center; gap: 12px; padding: 10px 22px; background: var(--paper); border-bottom: 1px solid var(--rule); position: sticky; top: 0; z-index: 20; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 8px; border: 0; background: none; color: var(--ink-2); cursor: pointer; }
.icon-btn:hover { background: var(--muted-bg); }
.only-mobile { display: none; }
details[data-dropdown] { position: relative; }
details[data-dropdown] > summary { list-style: none; cursor: pointer; }
details[data-dropdown] > summary::-webkit-details-marker { display: none; }
.switcher > summary { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border: 1px solid var(--rule); border-radius: 8px; max-width: 320px; }
.switcher > summary:hover { border-color: var(--rule-2); }
.switcher-text strong { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 250px; }
.switcher-caret { color: var(--ink-3); }
.menu { position: absolute; top: calc(100% + 6px); left: 0; min-width: 280px; max-height: 70vh; overflow-y: auto; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r); box-shadow: var(--shadow); padding: 6px; z-index: 30; }
.menu-right { left: auto; right: 0; min-width: 240px; }
.menu-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; padding: 8px 10px; border-radius: 7px; border: 0; background: none; color: var(--ink); text-decoration: none; font: inherit; text-align: left; cursor: pointer; }
.menu-item:hover, .menu-item.is-current { background: var(--brand-soft); color: var(--ink); }
.menu-item small { display: block; }
.menu-item > span { flex: 1; }
.menu-head { padding: 8px 10px 10px; border-bottom: 1px solid var(--rule); margin-bottom: 6px; }
.menu-head small { display: block; }
.menu-filter { width: 100%; margin-bottom: 6px; }
.top-search { flex: 1; display: flex; align-items: center; gap: 8px; max-width: 460px; margin-left: auto; padding: 0 12px; border: 1px solid var(--rule); border-radius: 8px; color: var(--ink-3); background: var(--vellum); }
.top-search input[type=search] { border: 0; background: none; padding: 9px 0; width: 100%; box-shadow: none; }
.top-search input[type=search]:focus { box-shadow: none; }
.top-search:focus-within { border-color: var(--brand); background: var(--paper); }
.avatar { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; font-size: 13px; }
.main { padding: 26px 30px 90px; max-width: 1040px; width: 100%; margin: 0 auto; }
.main-wide { max-width: 1320px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--ink-3); margin-bottom: 10px; }
.crumbs a { color: var(--ink-3); }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.page-head h1 { margin-bottom: 4px; }
.sub { color: var(--ink-2); margin: 0; max-width: 70ch; }
.page-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.flash, .banner { display: flex; align-items: flex-start; gap: 9px; padding: 11px 14px; border-radius: var(--r-sm); margin-bottom: 16px; background: var(--green-bg); color: #164d35; border: 1px solid #bfdfcc; }
.flash-err, .banner-warn { background: var(--red-bg); color: #7c1e17; border-color: #efc4be; }
.banner { background: var(--brass-bg); color: var(--brass-ink); border-color: #ead7a8; display: block; }
.banner-warn { background: var(--red-bg); color: #7c1e17; border-color: #efc4be; }
.warn { color: var(--amber); background: var(--amber-bg); padding: 9px 12px; border-radius: var(--r-sm); }

/* ---------- surfaces ---------- */
.card { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r); padding: 20px 22px; margin-bottom: 18px; box-shadow: 0 1px 2px rgba(23,32,46,.03); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.card-head h2 { margin: 0; }
.card-quiet { background: #fbfaf6; }
.card h3 { margin-top: 16px; }
.cols { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 18px; }
.stat { display: flex; flex-direction: column; gap: 2px; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r); padding: 14px 16px; text-decoration: none; color: inherit; }
a.stat:hover { border-color: var(--brand); color: inherit; }
.stat-label { font-size: 12px; color: var(--ink-3); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.stat-value { font: 600 1.5rem/1.2 var(--serif); font-variant-numeric: tabular-nums; }
.tone-red { color: var(--red); } .tone-amber { color: var(--amber); }
.empty { text-align: center; padding: 44px 20px; background: var(--paper); border: 1px dashed var(--rule-2); border-radius: var(--r); margin-bottom: 18px; }
.empty h1, .empty h2 { font: 600 1.25rem var(--serif); }
.empty p { color: var(--ink-2); max-width: 52ch; margin: 0 auto 14px; }
.pill { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.pill::first-letter { text-transform: uppercase; }
.pill-muted { background: var(--muted-bg); color: var(--ink-2); } .pill-blue { background: var(--blue-bg); color: var(--blue); } .pill-green { background: var(--green-bg); color: var(--green); }
.pill-amber { background: var(--amber-bg); color: var(--amber); } .pill-red { background: var(--red-bg); color: var(--red); }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--rule); margin-bottom: 18px; overflow-x: auto; }
.tab { padding: 9px 14px; color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 14px; border-bottom: 2px solid transparent; white-space: nowrap; }
.tab.is-active { color: var(--brand); border-bottom-color: var(--brass); }
.dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0; }
.dl dt { color: var(--ink-3); } .dl dd { margin: 0; font-weight: 500; }
.notes { background: var(--vellum); border-left: 3px solid var(--brass); padding: 10px 12px; border-radius: 0 var(--r-sm) var(--r-sm) 0; margin-top: 12px; }
.plain { list-style: none; margin: 0; padding: 0; } .plain li { padding: 4px 0; }
.who + .who { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--rule); }
.who h3 { margin: 0 0 4px; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); }
.who h3 small { text-transform: none; letter-spacing: 0; font-weight: 500; }
.disclose { margin-top: 14px; border-top: 1px solid var(--rule); padding-top: 10px; }
.disclose > summary { cursor: pointer; font-weight: 600; color: var(--brand); }
.disclose-body { padding-top: 14px; }
.tasklist { list-style: none; margin: 0; padding: 0; }
.tasklist li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--rule); }
.tasklist li:last-child { border-bottom: 0; }
.tasklist-full li > span { flex: 1; }
.tasklist small { white-space: nowrap; }
.neg { color: var(--red); }
.checks { list-style: none; margin: 0; padding: 0; }
.checks li { display: flex; gap: 8px; align-items: flex-start; padding: 6px 0; }
.checks .ok { color: var(--green); } .checks .todo { color: var(--amber); } .checks span { color: var(--ink); }
.doc-preview { width: 100%; height: 76vh; border: 1px solid var(--rule); border-radius: var(--r); background: #fff; }
img.doc-preview { height: auto; }
.qr svg { display: block; width: 180px; height: 180px; margin: 6px 0 10px; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; margin: 0 -6px; padding: 0 6px; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 12px; font-weight: 600; color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; padding: 8px 10px; border-bottom: 1px solid var(--rule-2); white-space: nowrap; }
.table td { padding: 10px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tr[data-href] { cursor: pointer; } .table tr[data-href]:hover td { background: #faf8f3; }
.table td > a:first-child { color: var(--ink); text-decoration: none; } .table td > a:first-child:hover { color: var(--brand); }
.table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table td.wrap { min-width: 180px; }
.table tfoot th { border-top: 2px solid var(--rule-2); border-bottom: 0; text-transform: none; font-size: 14px; color: var(--ink); letter-spacing: 0; }
.table-empty { padding: 6px 0; margin: 0; }
.money { font-variant-numeric: tabular-nums; }
.sort { color: inherit; text-decoration: none; } .sort:hover, .sort.is-sorted { color: var(--brand); }
.table-form td { vertical-align: middle; padding: 6px 8px; } .table-form select, .table-form input:not([type=checkbox]) { min-width: 110px; padding: 7px 8px; }
.sort-table select[name^=do_] { min-width: 230px; }
.report tr.group th { text-transform: none; font-size: 14px; color: var(--ink); letter-spacing: 0; padding-top: 18px; border-bottom: 1px solid var(--rule-2); font-family: var(--serif); font-size: 1rem; }
.report tr.sub th { text-transform: none; font-size: 13px; letter-spacing: 0; color: var(--ink-2); border-bottom: 0; padding-bottom: 2px; }
.report tr.total th, .budget tr.total th { text-transform: none; font-size: 14px; color: var(--ink); letter-spacing: 0; border-top: 1px solid var(--rule-2); border-bottom: 0; }
.report tr.grand th, .budget tr.grand th { text-transform: none; font-size: 14.5px; color: var(--ink); letter-spacing: 0; border-top: 2px solid var(--ink); border-bottom: 0; background: #faf8f3; }
.report td { border-bottom: 0; padding: 5px 10px; } .report .indent { padding-left: 18px; display: inline-block; }
.budget tr.group th { text-transform: none; font: 600 1rem var(--serif); color: var(--ink); letter-spacing: 0; padding-top: 16px; }
.budget input { text-align: right; max-width: 130px; }
.recon td, .recon th { padding: 9px 10px; }
.pager { display: flex; align-items: center; gap: 12px; justify-content: center; margin: 6px 0 18px; }

/* ---------- forms ---------- */
input, select, textarea { font: inherit; color: inherit; }
input[type=text], input[type=email], input[type=password], input[type=date], input[type=number], input[type=search], input[type=tel], input:not([type]), select, textarea {
  width: 100%; padding: 9px 11px; border: 1px solid var(--rule-2); border-radius: 7px; background: var(--paper); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: var(--focus); }
.field { margin-bottom: 14px; min-width: 0; border: 0; padding: 0; }
.field > label, .field > legend { display: block; font-weight: 600; font-size: 13.5px; margin-bottom: 5px; padding: 0; }
.opt { font-weight: 400; color: var(--ink-3); font-size: 12px; }
.help { display: block; color: var(--ink-3); font-size: 12.5px; margin-top: 4px; font-weight: 400; }
.row { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.narrow { max-width: 220px; }
.affix { display: flex; } .affix span { display: flex; align-items: center; padding: 0 10px; background: var(--muted-bg); border: 1px solid var(--rule-2); border-right: 0; border-radius: 7px 0 0 7px; color: var(--ink-3); } .affix input { border-radius: 0 7px 7px 0; }
.check { display: flex; align-items: flex-start; gap: 9px; padding: 5px 0; font-weight: 500; cursor: pointer; }
.check input { margin-top: 4px; accent-color: var(--brand); width: 16px; height: 16px; flex: none; }
.radios .check { padding: 9px 12px; border: 1px solid var(--rule); border-radius: 8px; margin-bottom: 6px; }
.radios .check:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
input.file { padding: 8px; border: 1px dashed var(--rule-2); border-radius: 8px; width: 100%; background: var(--vellum); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; }
.filters input[type=search] { flex: 1 1 240px; width: auto; } .filters select { width: auto; max-width: 220px; } .filters input[type=date] { width: auto; }
.filters label { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-3); font-size: 13px; }
.or { text-align: center; color: var(--ink-3); margin: 16px 0; font-size: 13px; }
.upload-status { font-size: 13px; }

/* ---------- bank, reports ---------- */
.bank-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 18px; }
.bank-figs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 10px 0 16px; padding: 12px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.bank-figs small { display: block; font-size: 11.5px; } .bank-figs strong { font-variant-numeric: tabular-nums; }
.report-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; }
.report-link { display: block; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r); padding: 16px 18px; text-decoration: none; color: var(--ink); }
.report-link:hover { border-color: var(--brand); color: var(--ink); }
.report-link strong { display: block; font: 600 1.05rem var(--serif); margin-bottom: 4px; } .report-link span { color: var(--ink-2); font-size: 13.5px; }
.print-head { display: none; }

/* ---------- help ---------- */
.help-fab { position: fixed; right: 20px; bottom: 20px; display: inline-flex; align-items: center; gap: 8px; padding: 11px 16px; border-radius: 999px; border: 0; background: var(--brass); color: #fff; font: 600 14px var(--sans); cursor: pointer; box-shadow: var(--shadow); z-index: 40; }
.help-fab:hover { background: var(--brass-ink); }
dialog.helpbox { border: 1px solid var(--rule); border-radius: 14px; padding: 0; width: min(440px, calc(100vw - 24px)); margin: auto 20px 76px auto; box-shadow: 0 12px 40px rgba(23,32,46,.25); color: var(--ink); }
dialog.helpbox::backdrop { background: rgba(23,32,46,.18); }
.help-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px 12px 18px; border-bottom: 1px solid var(--rule); font-family: var(--serif); font-size: 1.1rem; }
.help-log { padding: 14px 18px; max-height: 46vh; min-height: 120px; overflow-y: auto; }
.help-log .q { font-weight: 600; margin: 10px 0 4px; } .help-log .a { white-space: pre-wrap; margin: 0 0 10px; background: var(--vellum); padding: 10px 12px; border-radius: 8px; }
.help-form { display: flex; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--rule); }

/* ---------- auth ---------- */
body.auth { background: var(--vellum); min-height: 100vh; }
.auth-wrap { max-width: 440px; margin: 0 auto; padding: 48px 18px; }
.auth-wide { max-width: 720px; }
.auth-brand { display: flex; align-items: center; justify-content: center; gap: 10px; font: 600 1.7rem var(--serif); color: var(--brand); text-decoration: none; margin-bottom: 22px; }
.auth .card { padding: 26px; box-shadow: var(--shadow); }
.auth-foot { text-align: center; color: var(--ink-3); font-size: 13px; margin-top: 18px; }

/* ---------- public site ---------- */
body.mkt { background: #fdfcf9; font-size: 16.5px; }
.mkt-in { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.mkt-top { position: sticky; top: 0; background: rgba(253,252,249,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--rule); z-index: 30; }
.mkt-bar { display: flex; align-items: center; gap: 28px; height: 66px; }
.mkt-logo { display: inline-flex; align-items: center; gap: 9px; font: 600 1.45rem var(--serif); color: var(--brand); text-decoration: none; }
.mkt-nav { display: flex; gap: 24px; margin-left: 14px; flex: 1; }
.mkt-nav a { color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: 15px; } .mkt-nav a:hover { color: var(--brand); }
.mkt-cta { display: flex; align-items: center; gap: 16px; } .mkt-signin { font-weight: 600; text-decoration: none; font-size: 15px; }
.hero { padding: 72px 0 78px; background: linear-gradient(180deg, #f5f2ec 0%, #fdfcf9 100%); overflow: hidden; }
.hero-in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--brass-ink); margin-bottom: 14px; }
.hero h1 { font-size: clamp(2.3rem, 4.6vw, 3.55rem); line-height: 1.06; letter-spacing: -.02em; margin-bottom: 20px; color: var(--brand-ink); }
.lede { font-size: 1.2rem; color: var(--ink-2); max-width: 54ch; margin-bottom: 26px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }
.hero-note { color: var(--ink-3); font-size: 14.5px; }
.hero-art { position: relative; min-height: 440px; }
.art-card { background: #fff; border: 1px solid var(--rule); border-radius: 14px; box-shadow: 0 18px 50px rgba(20,38,63,.14); padding: 20px 22px; font-size: 14px; }
.art-main { position: relative; z-index: 2; max-width: 440px; border-top: 4px solid var(--brass); }
.art-kicker { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--brass-ink); font-weight: 700; }
.art-head strong { font: 600 1.35rem var(--serif); color: var(--brand-ink); }
.art-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 16px 0; padding: 14px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.art-stats small { display: block; font-size: 11px; } .art-stats b { font: 600 1.05rem var(--serif); font-variant-numeric: tabular-nums; }
.art-rows { list-style: none; margin: 0; padding: 0; } .art-rows li { display: flex; align-items: center; gap: 9px; padding: 7px 0; } .art-rows em { display: block; font-style: normal; color: var(--ink-3); font-size: 12.5px; }
.art-rows li > span:last-child { line-height: 1.3; }
.dotg, .dotb, .dota { width: 8px; height: 8px; border-radius: 50%; flex: none; } .dotg { background: var(--green); } .dotb { background: var(--blue); } .dota { background: var(--brass); }
.art-doc { position: absolute; right: 0; bottom: -40px; width: 290px; z-index: 3; }
.art-doc small { font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: 11px; }
.art-doc-row { display: flex; gap: 10px; align-items: flex-start; padding: 9px 0; border-top: 1px solid var(--rule); margin-top: 8px; font-weight: 600; }
.art-doc-row i { width: 22px; height: 28px; border-radius: 3px; background: var(--brand-soft); border: 1px solid #c9d6e8; flex: none; } .art-doc-row em { font-style: normal; font-weight: 400; color: var(--ink-3); font-size: 12.5px; }
.strip { background: var(--brand-ink); color: #dfe6f0; padding: 26px 0; }
.strip-in { display: grid; grid-template-columns: .6fr 1fr 1fr; gap: 34px; align-items: start; }
.strip strong { font: 600 1.25rem var(--serif); color: #fff; } .strip b { display: block; color: #e7c77f; margin-bottom: 4px; } .strip span { font-size: 15px; }
.sect { padding: 78px 0; } .sect-alt { background: var(--vellum); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.sect h2 { font: 600 clamp(1.7rem, 3vw, 2.3rem)/1.15 var(--serif); letter-spacing: -.01em; color: var(--brand-ink); max-width: 24ch; margin-bottom: 14px; }
.sect-lede { font-size: 1.1rem; color: var(--ink-2); max-width: 66ch; margin-bottom: 36px; }
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px 34px; }
.feat h3 { font: 600 1.15rem/1.25 var(--serif); margin: 12px 0 6px; color: var(--brand-ink); } .feat p { color: var(--ink-2); font-size: 15.5px; margin: 0; }
.feat-ic { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 10px; background: var(--brass-bg); color: var(--brass-ink); }
.how { display: grid; grid-template-columns: 1.3fr 1fr; gap: 54px; align-items: start; }
.steps { padding-left: 0; list-style: none; counter-reset: s; margin: 26px 0 0; }
.steps li { counter-increment: s; position: relative; padding: 0 0 22px 52px; color: var(--ink-2); }
.steps li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: #fff; font: 600 1rem/34px var(--serif); text-align: center; }
.steps strong { color: var(--ink); display: block; }
.types { background: #fff; border: 1px solid var(--rule); border-radius: 14px; padding: 26px; }
.types h3 { font: 600 1.2rem var(--serif); color: var(--brand-ink); margin-bottom: 12px; } .types ul { list-style: none; margin: 0; padding: 0; } .types li { display: flex; gap: 9px; padding: 6px 0; color: var(--ink-2); font-size: 15px; } .types .ic { color: var(--green); margin-top: 4px; }
.who-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 30px; }
.who-grid article { background: #fff; border: 1px solid var(--rule); border-radius: 12px; padding: 22px; border-top: 3px solid var(--brass); }
.who-grid h3 { font: 600 1.15rem var(--serif); color: var(--brand-ink); margin-bottom: 6px; } .who-grid p { margin: 0; color: var(--ink-2); font-size: 15.5px; }
.price-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 420px)); gap: 24px; }
.price { background: #fff; border: 1px solid var(--rule); border-radius: 14px; padding: 28px; display: flex; flex-direction: column; }
.price-main { border: 2px solid var(--brand); box-shadow: var(--shadow); }
.price h3 { font: 600 1.3rem var(--serif); color: var(--brand-ink); }
.price-fig { display: flex; align-items: baseline; gap: 10px; margin: 4px 0 10px; } .price-fig b { font: 600 3rem/1 var(--serif); color: var(--brand-ink); } .price-fig span { color: var(--ink-3); }
.price ul { list-style: none; padding: 0; margin: 6px 0 22px; flex: 1; } .price li { padding: 6px 0 6px 24px; position: relative; font-size: 15.5px; color: var(--ink-2); }
.price li::before { content: ''; position: absolute; left: 3px; top: 13px; width: 10px; height: 6px; border-left: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(-45deg); }
.price-note { color: var(--ink-3); margin-top: 22px; font-size: 15px; }
.sec { display: grid; grid-template-columns: 1fr 1.25fr; gap: 54px; }
.sec-list { list-style: none; margin: 0; padding: 0; } .sec-list li { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--rule); color: var(--ink-2); } .sec-list .ic { color: var(--brass-ink); margin-top: 3px; } .sec-list strong { color: var(--ink); }
.faq { max-width: 820px; } .faq details { border-bottom: 1px solid var(--rule-2); padding: 16px 0; } .faq summary { cursor: pointer; font: 600 1.12rem var(--serif); color: var(--brand-ink); } .faq p { margin: 10px 0 0; color: var(--ink-2); }
.cta { background: var(--brand); color: #fff; padding: 70px 0; text-align: center; }
.cta h2 { font: 600 clamp(1.8rem, 3.4vw, 2.5rem) var(--serif); margin-bottom: 10px; } .cta p { color: #cdd8e8; max-width: 56ch; margin: 0 auto 26px; font-size: 1.1rem; }
.mkt-foot { background: var(--brand-ink); color: #b4c1d4; padding: 48px 0 22px; font-size: 14.5px; }
.mkt-foot-in { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 30px; }
.mkt-foot .mkt-logo { color: #fff; } .mkt-foot .mark rect { fill: #24456f; } .mkt-foot p { max-width: 34ch; margin-top: 10px; }
.mkt-foot strong { display: block; color: #fff; margin-bottom: 10px; } .mkt-foot-in a { display: block; color: #b4c1d4; text-decoration: none; padding: 3px 0; } .mkt-foot-in a:hover { color: #fff; }
.mkt-copy { display: flex; justify-content: space-between; gap: 20px; margin-top: 34px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.12); font-size: 12.5px; color: #8496b0; }
.site-admin { color: #8496b0; white-space: nowrap; } .site-admin:hover { color: #fff; }
body.mkt .flash { max-width: 1140px; margin: 16px auto; }

/* ---------- printable packet ---------- */
body.packet { background: #fff; max-width: 900px; margin: 0 auto; padding: 24px; }
.packet-bar { text-align: right; margin-bottom: 20px; }
.packet-cover { padding: 80px 0 60px; border-bottom: 3px double var(--ink); margin-bottom: 30px; } .packet-cover h1 { font-size: 2.4rem; } .packet-cover h2 { font: 600 1.4rem var(--serif); margin-top: 30px; }
.packet-sheet { margin-bottom: 40px; } .packet-sheet h2 { font: 600 1.4rem var(--serif); margin-bottom: 2px; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .cols, .hero-in, .how, .sec { grid-template-columns: 1fr; }
  .feat-grid, .who-grid { grid-template-columns: repeat(2, 1fr); }
  .strip-in { grid-template-columns: 1fr; gap: 16px; }
  .mkt-nav { display: none; } .mkt-cta { margin-left: auto; }
  .hero { padding: 48px 0 56px; } .hero-art { min-height: 0; } .art-doc { position: static; width: auto; margin-top: 14px; } .art-main { max-width: none; }
  .mkt-foot-in { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .side { position: fixed; left: 0; top: 0; z-index: 50; transform: translateX(-100%); transition: transform .18s; }
  body.side-open .side { transform: none; box-shadow: 0 0 0 100vmax rgba(23,32,46,.4); }
  .only-mobile { display: inline-flex; }
  .top { padding: 8px 12px; gap: 8px; } .top-search { display: none; } .switcher { flex: 1; min-width: 0; } .switcher > summary { max-width: none; } .switcher-text { min-width: 0; flex: 1; } .switcher-text strong { max-width: 46vw; } .me { margin-left: auto; }
  .main { padding: 18px 16px 90px; }
  .card { padding: 16px; }
  .help-fab span { display: none; } .help-fab { padding: 13px; right: 14px; bottom: 14px; }
  dialog.helpbox { margin: auto auto 12px; }
}
@media (max-width: 640px) {
  .feat-grid, .who-grid, .price-grid { grid-template-columns: 1fr; }
  .mkt-in { padding: 0 16px; } .sect { padding: 54px 0; }
  .mkt-signin { display: none; }
  .mkt-copy { flex-direction: column; }
  .dl { grid-template-columns: 1fr; gap: 0; } .dl dd { margin-bottom: 8px; }
  .bank-grid { grid-template-columns: 1fr; } .bank-figs { grid-template-columns: 1fr 1fr; }
  h1 { font-size: 1.5rem; }
}
@media print {
  .side, .top, .help-fab, .no-print, .page-actions, .crumbs, .filters, .flash { display: none !important; }
  body, body.app { background: #fff; display: block; } .main { max-width: none; padding: 0; } .card { border: 0; padding: 0; box-shadow: none; }
  .print-head { display: block; margin-bottom: 10px; } .print-head strong { display: block; font: 600 1.3rem var(--serif); }
  .packet-sheet, .packet-cover { break-after: page; } .table { font-size: 11px; } .report td, .report th { padding: 3px 6px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .side, .btn { transition: none; } }

.table-wrap + .btn, .table-wrap + button { margin-top: 14px; }
