/* DocParser — "ledger" identity.
   Cool ledger paper, ink text, one ledger-green for verification and actions,
   stamp red only for warnings. Type: Bona Nova (A. Heidrich, designer of Polish banknotes)
   for headings, Lato (Ł. Dziedzic) for text and all figures (tabular by default). OFL, self-hosted. */

@font-face { font-family: "Bona Nova"; font-weight: 400; font-display: swap; src: url(fonts/bona-nova-latin-400.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Bona Nova"; font-weight: 400; font-display: swap; src: url(fonts/bona-nova-latin-ext-400.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Bona Nova"; font-weight: 700; font-display: swap; src: url(fonts/bona-nova-latin-700.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Bona Nova"; font-weight: 700; font-display: swap; src: url(fonts/bona-nova-latin-ext-700.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Lato"; font-weight: 400; font-display: swap; src: url(fonts/lato-latin-400.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Lato"; font-weight: 400; font-display: swap; src: url(fonts/lato-latin-ext-400.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Lato"; font-weight: 700; font-display: swap; src: url(fonts/lato-latin-700.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Lato"; font-weight: 700; font-display: swap; src: url(fonts/lato-latin-ext-700.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --paper: #eef2ee;      /* ledger paper */
  --sheet: #ffffff;      /* the statement sheet */
  --ink: #172335;        /* text */
  --ink-2: #4a5566;      /* secondary text */
  --rule: #c9d2cb;       /* ledger rules */
  --ledger: #1d5c49;     /* verified / primary action */
  --on-ledger: #ffffff;
  --stamp: #a12631;      /* warnings only */
  --stamp-wash: #f7e4e4;
  --serif: "Bona Nova", Georgia, "Times New Roman", serif;
  --sans: "Lato", "Segoe UI", system-ui, sans-serif;
  --measure: 68ch;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0f1a24; --sheet: #16232f; --ink: #e6ecef; --ink-2: #a3b0ba; --rule: #2c3b48;
    --ledger: #6cc3a0; --on-ledger: #0f1a24; --stamp: #f08a8f; --stamp-wash: #3a1f25;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.6 var(--sans); }
a { color: var(--ledger); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible {
  outline: 3px solid var(--ledger); outline-offset: 3px; border-radius: 2px; }
.wrap { max-width: 1120px; margin-inline: auto; padding-inline: 20px; }  /* inline only: sections own vertical rhythm */

/* header */
.top { border-bottom: 1px solid var(--rule); background: var(--paper); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px 28px; min-height: 68px; flex-wrap: wrap; padding-block: 10px; }
.logo { font: 700 26px/1 var(--serif); color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
nav { display: flex; gap: 8px 24px; align-items: center; flex-wrap: wrap; }
nav a { color: var(--ink); text-decoration: none; font-size: 16px; }
nav a:hover { text-decoration: underline; }
nav .lang { color: var(--ink-2); }
.draft { max-width: none; margin: 0; border-bottom: 1px solid var(--stamp); background: var(--stamp-wash); color: var(--stamp); text-align: center; padding: 8px 20px; font-size: 15px; }

/* type */
h1, h2, h3 { font-family: var(--serif); font-weight: 700; color: var(--ink); }
h1 { font-size: clamp(34px, 5.2vw, 54px); line-height: 1.08; letter-spacing: -0.015em; margin: 0 0 20px; max-width: 16ch; }
h2 { font-size: clamp(26px, 3.2vw, 34px); line-height: 1.15; margin: 0 0 24px; }
h3 { font-size: 21px; line-height: 1.25; margin: 0 0 6px; }
p { margin: 0 0 14px; max-width: var(--measure); }
.lead { font-size: 20px; line-height: 1.55; color: var(--ink-2); }
.small, .muted { font-size: 15px; color: var(--ink-2); }

/* buttons */
.btn { display: inline-block; font: 700 17px/1 var(--sans); padding: 15px 22px; border-radius: 4px; text-decoration: none;
  background: var(--ledger); color: var(--on-ledger); border: 2px solid var(--ledger); cursor: pointer; }
.btn:hover { filter: brightness(1.08); }
.btn.quiet { background: transparent; color: var(--ledger); }
.btn.small { padding: 9px 14px; font-size: 15px; }

/* sections */
main > section { padding-top: 88px; }
main > .hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); column-gap: 56px;
  grid-template-areas: "head sheet" "body sheet"; grid-template-rows: auto 1fr; align-items: start; padding-top: 64px; }
.hero-head { grid-area: head; align-self: end; }
.hero-body { grid-area: body; }
.hero .sheet { grid-area: sheet; align-self: center; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 14px; }
.audience { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--rule); font-size: 16px; color: var(--ink-2); }
.audience strong { color: var(--ink); font-weight: 700; }

/* the statement sheet: the one bold element */
.sheet { background: var(--sheet); border: 1px solid var(--rule); border-radius: 6px; padding: 22px 24px 20px; margin: 0;
  font-variant-numeric: tabular-nums lining-nums; }
.sheet table { width: 100%; border-collapse: collapse; font-size: 15px; }
.sheet th { font: 400 13px/1.3 var(--sans); color: var(--ink-2); text-align: left; padding: 0 0 8px; border-bottom: 1px solid var(--rule); }
.sheet td { padding: 9px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.sheet td.date { color: var(--ink-2); white-space: nowrap; padding-right: 14px; }
.sheet .num { text-align: right; white-space: nowrap; padding-left: 12px; }
.reconcile { display: grid; grid-template-columns: auto 1fr auto; gap: 4px 12px; align-items: baseline; margin-top: 18px; font-size: 16px; }
.reconcile .op { color: var(--ink-2); width: 1ch; text-align: center; }
.reconcile .label { color: var(--ink-2); }
.reconcile .num { text-align: right; }
.reconcile .sum-rule { grid-column: 1 / -1; border-top: 2px solid var(--ink); margin-top: 2px; }
.reconcile .total { font-weight: 700; font-size: 20px; }
.reconcile .total.label { color: var(--ink); font-size: 16px; }
.verdict { display: flex; align-items: center; gap: 12px; margin-top: 18px; color: var(--ledger); font-weight: 700; }
.verdict svg { flex: none; }
.verdict .tick { stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw .7s .4s ease-out forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .verdict .tick { animation: none; stroke-dashoffset: 0; } }

/* features as a ledger of entries */
.entries { margin: 0; display: grid; grid-template-columns: minmax(180px, 280px) minmax(0, 1fr); border-top: 2px solid var(--ink); }
.entries dt, .entries dd { margin: 0; padding: 18px 0; border-bottom: 1px solid var(--rule); }
.entries dt { font: 700 20px/1.3 var(--serif); padding-right: 32px; }
.entries dd { color: var(--ink-2); padding-right: 8%; }

/* steps: a real sequence */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0 0 24px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.steps li { counter-increment: step; border-top: 2px solid var(--ink); padding-top: 14px; }
.steps li::before { content: counter(step); display: block; font: 700 40px/1 var(--serif); color: var(--ledger); margin-bottom: 10px; }
.code { background: var(--sheet); border: 1px solid var(--rule); border-radius: 6px; padding: 16px 18px; overflow-x: auto; font-size: 14px; line-height: 1.5; margin: 0; }

/* pricing as a tariff list */
.plans { list-style: none; padding: 0; margin: 0; border-top: 2px solid var(--ink); }
.plans li { display: grid; grid-template-columns: minmax(150px, 1fr) minmax(160px, 1fr) minmax(0, 2fr); gap: 8px 32px; align-items: baseline;
  padding: 20px 16px; border-bottom: 1px solid var(--rule); }
.plans h3 { margin: 0; }
.plans .price { font: 700 28px/1.1 var(--sans); font-variant-numeric: tabular-nums; }
.plans .price small { font-size: 15px; font-weight: 400; color: var(--ink-2); }
.plans .price.text { font-size: 20px; }
.plans p { margin: 0 0 4px; }
.plans li.featured { background: var(--sheet); box-shadow: inset 4px 0 0 var(--ledger); }
.billing { margin-top: 18px; }

/* faq */
details { border-bottom: 1px solid var(--rule); }
details:first-of-type { border-top: 2px solid var(--ink); }
summary { cursor: pointer; font: 700 19px/1.35 var(--serif); padding: 18px 32px 18px 0; list-style: none; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font: 400 24px/1 var(--sans); color: var(--ledger); }
details[open] summary::after { content: "\2212"; }
details p { color: var(--ink-2); padding-bottom: 18px; }

.foot { color: var(--ink-2); font-size: 15px; padding: 72px 20px 48px; }
.foot p { margin: 0 0 6px; }

/* upload page + results (classes used by upload.js) */
.narrow { max-width: 860px; }
.card { background: var(--sheet); border: 1px solid var(--rule); border-radius: 6px; padding: 22px 24px; margin: 18px 0; }
.form { display: grid; gap: 14px; }
.form label { display: grid; gap: 6px; font-weight: 700; }
.form input { font: inherit; padding: 11px 12px; border-radius: 4px; border: 1px solid var(--rule); background: var(--paper); color: var(--ink); width: 100%; }
.status { margin: 16px 0; font-weight: 700; }
.status.error { color: var(--stamp); }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
.card table { font-size: 15px; }
.card th, .card td { text-align: left; padding: 7px 8px; border-bottom: 1px solid var(--rule); vertical-align: top; }
td.num, th.num { text-align: right; white-space: nowrap; }
.flag { margin: 4px 0; } .flag b { font-size: 14px; margin-right: 8px; }
.flag.critical b { color: var(--stamp); } .flag.warning b { color: var(--stamp); } .flag.info b { color: var(--ink-2); }
.ok { color: var(--ledger); font-weight: 700; }

@media (max-width: 860px) {
  main > section { padding-top: 64px; }
  main > .hero { grid-template-columns: 1fr; grid-template-areas: "head" "sheet" "body"; row-gap: 0; padding-top: 28px; }
  .hero .sheet { margin: 4px 0 28px; }
  .entries { grid-template-columns: 1fr; }
  .entries dt { border-bottom: 0; padding-bottom: 4px; }
  .entries dd { padding-top: 0; }
  .steps { grid-template-columns: 1fr; gap: 24px; }
  .plans li { grid-template-columns: 1fr; gap: 4px; }
  .sheet { padding: 16px; }
  .sheet table { font-size: 14px; }
}

/* phones: one-row header (logo, language, CTA); section anchors dropped (three sections, plain scroll) */
@media (max-width: 640px) {
  .bar { flex-wrap: nowrap; min-height: 60px; gap: 12px; }
  .logo { font-size: 22px; }
  nav { flex-wrap: nowrap; gap: 14px; }
  nav .section-link { display: none; }
  nav .lang { font-size: 15px; }
  h1 { font-size: 31px; margin-bottom: 16px; }
  .lead { font-size: 18px; }
  .sheet { padding: 12px 14px 14px; }
  .sheet td { padding: 6px 0; }
  .sheet th { padding-bottom: 6px; }
  .reconcile { margin-top: 12px; }
  .reconcile .total { font-size: 18px; }
  .verdict { margin-top: 12px; }
}
