/* Bank Statement Converter. 2026-11-01 redo after looking at bankstatementconverter.com, financefileconverter.com and
   docuclipper.com: keyword H1 centred over one big upload box, a row of three short facts under it, then how-to and FAQ.
   Light grey page, white cards, one indigo accent; green and red only for "balances" / "doesn't add up".
   System fonts only, so the site makes no third-party requests. */
:root {
  --bg: #f3f4f6;
  --paper: #ffffff;
  --ink: #111827;
  --muted: #4b5563;
  --line: #e3e5ea;
  --rule: #c5c9d3;
  --accent: #4450c4;
  --accent-ink: #ffffff;
  --accent-soft: #eef0fb;
  --bad: #b42318;
  --bad-bg: #fdecea;
  --ok: #1d6b3a;
  --ok-bg: #e5f3e9;
  --warn: #7a4f00;
  --warn-bg: #fbf1d9;
  --pro: #9a5b00;
  --shadow: 0 1px 2px rgba(17, 24, 39, .05), 0 6px 20px -12px rgba(17, 24, 39, .18);
  --sans: system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14161b;
    --paper: #1d2027;
    --ink: #e9ebf0;
    --muted: #a6adba;
    --line: #333844;
    --rule: #4a5060;
    --accent: #9aa3f2;
    --accent-ink: #12153a;
    --accent-soft: #262a48;
    --bad: #ff8f85;
    --bad-bg: #3b1f1d;
    --ok: #8fd6a5;
    --ok-bg: #173022;
    --warn: #f3c56b;
    --warn-bg: #362b14;
    --pro: #f0b25a;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 26px -12px rgba(0, 0, 0, .7);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.55 var(--sans); }
a { color: var(--accent); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.01em; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; background: var(--paper); padding: 8px 12px; z-index: 10; }

/* ---------- header / footer ---------- */
header.site, footer.site, main, .crumb-bar { max-width: 1160px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
header.site { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; padding-top: 16px; padding-bottom: 16px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 750; font-size: 18px; color: var(--ink); text-decoration: none; }
header.site nav { display: flex; gap: 6px 18px; flex-wrap: wrap; }
header.site nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px; }
header.site nav a:hover { text-decoration: underline; }
footer.site { display: grid; grid-template-columns: 2fr 1.4fr 1fr; gap: 32px; padding-top: 40px; padding-bottom: 56px; margin-top: 72px; border-top: 1px solid var(--line); font-size: 15px; color: var(--muted); }
footer.site nav { display: flex; flex-direction: column; gap: 8px; }
footer.site nav a { color: var(--muted); }
.brand-small { font-weight: 700; color: var(--ink); margin: 0 0 6px; }
.crumbs { font-size: 14px; color: var(--muted); margin: 4px 0 0; }
.crumbs a { color: var(--muted); }

/* ---------- hero + tool ---------- */
.hero { padding-top: 36px; text-align: center; }
.hero h1 { font-size: clamp(30px, 4.4vw, 48px); margin: 0 auto 14px; font-weight: 750; max-width: 18em; }
.hero .lede { margin-left: auto; margin-right: auto; }
.lede { font-size: 19px; color: var(--muted); margin: 0 0 12px; max-width: 38em; }
.tool { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 18px; box-shadow: var(--shadow); max-width: 880px; margin: 26px auto 0; text-align: left; }
.drop {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center;
  min-height: 260px; padding: 28px 20px; border: 2px dashed var(--rule); border-radius: 10px; cursor: pointer; color: var(--accent);
  background: var(--bg);
  transition: background-color .15s, border-color .15s;
}
.drop-button { display: inline-flex; align-items: center; min-height: 52px; padding: 12px 28px; border-radius: 8px; background: var(--accent); color: var(--accent-ink); font-size: 19px; font-weight: 650; }
.drop:hover .drop-button { filter: brightness(1.08); }
.facts { list-style: none; padding: 0; margin: 22px auto 0; max-width: 880px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 28px; text-align: left; font-size: 15px; color: var(--muted); }
.facts strong { display: block; color: var(--ink); font-size: 16px; margin-bottom: 2px; }
.drop:hover, .drop.over { border-color: var(--accent); background-color: var(--accent-soft); }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.drop:focus-within { outline: 3px solid var(--accent); outline-offset: 2px; }
.drop-title { font-size: 21px; font-weight: 700; color: var(--ink); }
.drop-sub { color: var(--muted); font-size: 15px; }
.linkish { color: var(--accent); text-decoration: underline; text-underline-offset: .18em; }
.local-note { font-size: 14px; color: var(--muted); margin: 12px 2px 0; }
.dot { display: inline-block; vertical-align: 1px; margin: 0 8px 0 3px; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); flex: none; }
.local-note.offline-now .dot { background: var(--warn); }
.offline-msg { color: var(--ink); }
.pw { margin-top: 14px; padding: 14px; border-radius: 8px; background: var(--warn-bg); }
.pw-row { display: flex; gap: 8px; margin-top: 6px; }
.pw-row input { flex: 1; min-width: 0; }
.field-label { display: block; font-weight: 600; font-size: 15px; }
.status { min-height: 1.5em; margin: 10px 2px 0; font-size: 15px; color: var(--muted); }
.status.error { color: var(--bad); }
.hint { font-size: 14px; color: var(--muted); }

input, select, button { font: inherit; color: inherit; }
input[type="text"], input[type="password"], input:not([type]), input[inputmode], select {
  border: 1px solid var(--line); border-radius: 6px; padding: 8px 10px; background: var(--paper); min-height: 40px;
}
button { cursor: pointer; }
.go, .button, .fmt {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 42px; padding: 8px 16px; border-radius: 6px;
  border: 1px solid var(--accent); background: var(--accent); color: var(--accent-ink); font-weight: 600; text-decoration: none;
}
.button.quiet, .fmt { background: transparent; color: var(--accent); }
.fmt.primary { background: var(--accent); color: var(--accent-ink); }
.fmt.primary .pro-tag { color: var(--accent-ink); }
.go:hover, .button:hover, .fmt:hover { filter: brightness(1.08); }
.pro-tag { font-size: 12px; font-weight: 600; color: var(--muted); }
body.is-pro [data-free-only] { display: none; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--accent); text-decoration: underline; text-underline-offset: .18em; }

/* ---------- results ---------- */
.results { margin-top: 32px; }
.summary:empty { display: none; }
.summary { font-weight: 600; margin-bottom: 12px; }
.stmt { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 18px; margin-bottom: 20px; box-shadow: var(--shadow); }
.stmt-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.stmt-head h2 { font-size: 19px; margin: 0; overflow-wrap: anywhere; }
.stmt-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; font-size: 15px; color: var(--muted); }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0; padding: 12px 14px; border-radius: 8px; font-size: 16px; }
.check strong { white-space: nowrap; }
.check.ok { background: var(--ok-bg); color: var(--ok); }
.check.mismatch { background: var(--bad-bg); color: var(--bad); }
.check.unverified, .check.empty { background: var(--warn-bg); color: var(--warn); }
.check p { margin: 0; }
.balances { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-bottom: 12px; }
.balances label { display: flex; flex-direction: column; font-size: 14px; color: var(--muted); gap: 4px; }
.balances input { width: 11em; font-variant-numeric: tabular-nums; text-align: right; }
.warn-list { font-size: 14px; color: var(--warn); margin: 0 0 10px; padding-left: 18px; }

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: 8px; }
table.ledger { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 640px; }
table.ledger th { text-align: left; font-size: 14px; font-weight: 600; color: var(--muted); padding: 8px; border-bottom: 2px solid var(--rule); position: sticky; top: 0; background: var(--paper); }
table.ledger td { padding: 0; border-bottom: 1px solid color-mix(in srgb, var(--rule) 55%, transparent); }
table.ledger td.n { width: 3em; text-align: right; padding-right: 8px; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
table.ledger input { width: 100%; border: 0; border-radius: 0; background: transparent; padding: 7px 8px; min-height: 36px; font-variant-numeric: tabular-nums; }
table.ledger input:focus { outline: 2px solid var(--accent); outline-offset: -2px; background: var(--accent-soft); }
table.ledger .num, table.ledger th.num { text-align: right; }
table.ledger .c-date { width: 9.5em; }
table.ledger .c-amt, table.ledger .c-bal { width: 9em; }
table.ledger .c-x { width: 2.6em; }
table.ledger tr.bad td { background: var(--bad-bg); }
table.ledger tr.bad td.n { color: var(--bad); font-weight: 700; }
table.ledger input.neg { color: var(--bad); }
table.ledger tr.bad input.neg { color: inherit; }
.del { border: 0; background: none; color: var(--muted); width: 100%; min-height: 36px; font-size: 18px; line-height: 1; }
.del:hover { color: var(--bad); }
.row-actions { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; margin-top: 10px; font-size: 15px; }

.repair { margin-top: 16px; padding: 14px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); }
.repair h3 { margin: 0 0 6px; font-size: 16px; }
.repair p { margin: 0 0 8px; font-size: 15px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; margin: 8px 0 10px; }
.consent input { margin-top: 4px; width: 18px; height: 18px; flex: none; }
.go:disabled { opacity: .5; cursor: not-allowed; filter: none; }

.export { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 18px; box-shadow: var(--shadow); }
.export h2 { margin: 0 0 12px; font-size: 19px; }
.formats { display: flex; flex-wrap: wrap; gap: 10px; }
.ofx-opts { margin-top: 14px; font-size: 15px; }
.ofx-opts summary { cursor: pointer; color: var(--accent); }
.opts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-top: 10px; }
.opts-grid label { display: flex; flex-direction: column; gap: 4px; color: var(--muted); font-size: 14px; }

/* ---------- content sections ---------- */
.how ol { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; counter-reset: step; }
.how li { counter-increment: step; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 18px; }
.how li::before { content: "Step " counter(step); color: var(--muted); font-weight: 600; font-size: 14px; }
.how h3 { margin: 4px 0 6px; font-size: 18px; }
.how p { margin: 0; color: var(--muted); }
section.how, section.prose, section.offline, section.plans, section.faq { margin-top: 64px; }
section h2 { font-size: 26px; margin: 0 0 14px; }
.prose { max-width: 46em; }
.prose h2 { margin-top: 32px; }
.prose h2:first-child { margin-top: 0; }
.offline { max-width: 46em; padding: 20px 22px; border: 1px solid var(--line); background: var(--paper); border-radius: 12px; }
.offline ol { padding-left: 20px; }
.offline li { margin-bottom: 8px; }
.plans .table-wrap { max-width: 760px; }
table.plain { width: 100%; border-collapse: collapse; font-size: 16px; }
table.plain th, table.plain td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.plain thead th { font-size: 14px; color: var(--muted); }
.plans-cta { margin: 16px 0 6px; }
.faq { max-width: 46em; }
.faq details { border-bottom: 1px solid var(--line); padding: 12px 0; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { margin: 8px 0 0; color: var(--muted); }

/* ---------- pages ---------- */
.page { padding-top: 16px; }
.page.narrow { max-width: 640px; }
.page h1 { font-size: clamp(30px, 4vw, 42px); margin: 12px 0 12px; }
.tiers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 28px 0 12px; }
.tier { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 20px; display: flex; flex-direction: column; }
.tier-pro { border: 2px solid var(--accent); }
.tier h2 { font-size: 18px; margin: 0; }
.price { font-size: 34px; font-weight: 800; margin: 8px 0; font-variant-numeric: tabular-nums; }
.price span { font-size: 15px; font-weight: 500; color: var(--muted); }
.tier ul { padding-left: 18px; margin: 0 0 18px; flex: 1; font-size: 15px; }
.tier li { margin-bottom: 6px; }
.checkout-note { padding: 10px 14px; border-radius: 8px; background: var(--warn-bg); color: var(--warn); font-size: 15px; }
.license { display: grid; gap: 8px; margin-top: 16px; }
.usage-line { font-size: 18px; }

/* ---------- small screens ---------- */
@media (max-width: 900px) {
  .hero { padding-top: 16px; }
  .tiers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  footer.site { grid-template-columns: 1fr 1fr; }
  footer.site > div { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  header.site, footer.site, main, .crumb-bar { padding-left: 16px; padding-right: 16px; }
  .how ol { grid-template-columns: minmax(0, 1fr); }
  .facts { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .hero, .hero h1 { text-align: left; }
  .hero .lede { margin-left: 0; }
  .drop-button { font-size: 17px; padding: 10px 20px; }
  .tiers { grid-template-columns: minmax(0, 1fr); }
  footer.site { grid-template-columns: minmax(0, 1fr); }
  .drop { min-height: 190px; }
  .tool, .stmt, .export { padding: 14px; }
  .balances input { width: 9.5em; }
  .fmt { flex: 1 1 calc(50% - 10px); }
  .check { flex-direction: column; gap: 2px; }
}
