/* StatementToCSV site styles. Colours and type come from the original converter (web/template.html). */
@font-face { font-family: "Schibsted Grotesk"; font-weight: 600; font-display: swap; src: url(/assets/fonts/schibsted-grotesk-600.woff2) format("woff2"); }
@font-face { font-family: "Schibsted Grotesk"; font-weight: 700; font-display: swap; src: url(/assets/fonts/schibsted-grotesk-700.woff2) format("woff2"); }
@font-face { font-family: "Schibsted Grotesk"; font-weight: 800; font-display: swap; src: url(/assets/fonts/schibsted-grotesk-800.woff2) format("woff2"); }
@font-face { font-family: "Public Sans"; font-weight: 400; font-display: swap; src: url(/assets/fonts/public-sans-400.woff2) format("woff2"); }
@font-face { font-family: "Public Sans"; font-weight: 500; font-display: swap; src: url(/assets/fonts/public-sans-500.woff2) format("woff2"); }
@font-face { font-family: "Public Sans"; font-weight: 600; font-display: swap; src: url(/assets/fonts/public-sans-600.woff2) format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 400; font-display: swap; src: url(/assets/fonts/jetbrains-mono-400.woff2) format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 500; font-display: swap; src: url(/assets/fonts/jetbrains-mono-500.woff2) format("woff2"); }

:root {
  --bg: #f4f7f6; --surface: #ffffff; --ink: #13201c; --muted: #586a64; --line: #d7e0dc; --wash: #ebf1ee;
  --accent: #0e6a5a; --accent-ink: #ffffff;
  --ok: #1d7a3e; --ok-wash: #e3f3e8; --bad: #b42318; --bad-wash: #fdecea; --warn: #9a4d07; --warn-wash: #fdf1e3;
  --display: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --body: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #0e1513; --surface: #15201d; --ink: #e4ede9; --muted: #95a6a0; --line: #26342f; --wash: #1a2724;
  --accent: #4cc2a6; --accent-ink: #06231c;
  --ok: #5fd389; --ok-wash: #15301f; --bad: #ff8a7e; --bad-wash: #3a1714; --warn: #f2b06b; --warn-wash: #36240f; color-scheme: dark; } }
:root[data-theme="dark"] {
  --bg: #0e1513; --surface: #15201d; --ink: #e4ede9; --muted: #95a6a0; --line: #26342f; --wash: #1a2724;
  --accent: #4cc2a6; --accent-ink: #06231c;
  --ok: #5fd389; --ok-wash: #15301f; --bad: #ff8a7e; --bad-wash: #3a1714; --warn: #f2b06b; --warn-wash: #36240f; color-scheme: dark; }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.6; overflow-wrap: break-word; }
a { color: var(--accent); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
img, svg { max-width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--accent); color: var(--accent-ink); padding: 10px 14px; border-radius: 6px; z-index: 10; font-weight: 600; }
.skip:focus { top: 12px; }

.shell { max-width: 1040px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
main.shell { padding-top: 18px; padding-bottom: 56px; display: grid; gap: 28px; }
main.shell > * { min-width: 0; }

/* header */
.site-head { border-bottom: 1px solid var(--line); background: var(--surface); }
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 8px 20px; flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px; }
.mark { font-family: var(--display); font-weight: 800; font-size: 19px; letter-spacing: -0.01em; color: var(--ink); text-decoration: none; }
.mark span { color: var(--accent); }
.nav { display: flex; flex-wrap: wrap; gap: 2px 4px; margin: 0 -8px; }
.nav a { color: var(--ink); text-decoration: none; font-size: 14.5px; font-weight: 500; padding: 8px 8px; border-radius: 6px; }
.nav a:hover { background: var(--wash); }
.nav a[aria-current="page"] { color: var(--accent); font-weight: 600; }

/* breadcrumbs */
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; font-size: 13.5px; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 4px; color: var(--line); }
.crumbs a { color: var(--muted); }

/* hero */
.hero { display: grid; gap: 10px; }
.eyebrow { margin: 0; font-size: 12.5px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.015em; line-height: 1.18; text-wrap: balance; }
h1 { font-weight: 700; font-size: clamp(28px, 4.6vw, 44px); line-height: 1.1; letter-spacing: -0.02em; margin: 0; max-width: 24ch; }
h2 { font-size: clamp(22px, 3vw, 28px); font-weight: 700; margin: 0 0 10px; }
h3 { font-size: 18.5px; font-weight: 700; margin: 0 0 6px; }
.lede { margin: 0; color: var(--muted); font-size: 17.5px; max-width: 64ch; }
.lede b, .lede strong { color: var(--ink); font-weight: 600; }
.status { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.tagline { margin: 0; font-size: 14px; color: var(--muted); }

/* badges */
.badge { display: inline-block; font: 600 11.5px/1 var(--body); letter-spacing: 0.05em; text-transform: uppercase; padding: 6px 9px; border-radius: 999px; vertical-align: middle; }
.badge.ok { background: var(--ok-wash); color: var(--ok); }
.badge.beta { background: var(--warn-wash); color: var(--warn); }
.pro-badge { display: inline-block; font: 600 10.5px/1 var(--body); letter-spacing: 0.04em; text-transform: uppercase; padding: 4px 7px; border-radius: 999px; background: var(--wash); color: var(--accent); border: 1px solid var(--line); vertical-align: 2px; margin-left: 4px; white-space: nowrap; }
.btn.primary .pro-badge { background: transparent; color: inherit; border-color: currentColor; }

/* prose */
.prose { max-width: 72ch; display: grid; gap: 0; }
.prose > * { margin: 0 0 14px; }
.prose h2 { margin: 22px 0 10px; }
.prose h3 { margin: 16px 0 6px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin: 0 0 6px; }
.prose li > p { margin: 0; }
.prose ol.steps { list-style: none; padding: 0; counter-reset: s; display: grid; gap: 10px; }
.prose ol.steps > li { counter-increment: s; position: relative; padding: 12px 14px 12px 52px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; margin: 0; }
.prose ol.steps > li::before { content: counter(s); position: absolute; left: 14px; top: 11px; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font: 700 14px/26px var(--display); text-align: center; }
.prose ol.steps strong { display: block; }
.prose code, .prose kbd { font-family: var(--mono); font-size: 0.88em; background: var(--wash); padding: 1px 5px; border-radius: 4px; }
.prose pre { font: 13px/1.5 var(--mono); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 12px; overflow-x: auto; }
.prose table { border-collapse: collapse; width: 100%; font-size: 14.5px; background: var(--surface); }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.prose th { background: var(--wash); font-weight: 600; }
.tablewrap { overflow-x: auto; }
.callout { background: var(--wash); border-left: 3px solid var(--accent); border-radius: 0 8px 8px 0; padding: 12px 14px; }
.callout.warn { background: var(--warn-wash); border-left-color: var(--warn); }
.callout > :last-child { margin-bottom: 0; }
.callout p { margin: 0 0 8px; }

/* home sections */
.band { display: grid; gap: 14px; }
.band > h2 { margin: 0; }
.band-intro { margin: 0; color: var(--muted); max-width: 66ch; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; list-style: none; margin: 0; padding: 0; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 16px; display: grid; gap: 6px; align-content: start; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.card .num-step { font: 700 13px/1 var(--display); color: var(--accent); letter-spacing: 0.04em; text-transform: uppercase; }
.card h3 { margin: 0; }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.checklist li { padding-left: 26px; position: relative; }
.checklist li::before { content: ""; position: absolute; left: 2px; top: 6px; width: 14px; height: 8px; border-left: 2.5px solid var(--ok); border-bottom: 2.5px solid var(--ok); transform: rotate(-45deg); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } }
.ledger { font-family: var(--mono); font-size: 13.5px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 14px; display: grid; gap: 6px; }
.ledger div { display: flex; justify-content: space-between; gap: 12px; }
.ledger .tot { border-top: 1px solid var(--line); padding-top: 6px; font-weight: 500; }
.ledger .good { color: var(--ok); }
.ledger .flagged { color: var(--bad); }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 20px; display: grid; gap: 12px; align-content: start; }
.plan.featured { border: 2px solid var(--accent); padding: 19px; }
.plan h3 { margin: 0; font-size: 20px; }
.price { font: 700 34px/1 var(--display); letter-spacing: -0.02em; }
.price small { font: 500 15px var(--body); color: var(--muted); letter-spacing: 0; }
.plan .btns { display: flex; gap: 8px; flex-wrap: wrap; }
.plan .note { margin: 0; }
a.btn { text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
.btn[aria-disabled="true"] { opacity: .6; cursor: not-allowed; }

/* faq */
.faq { display: grid; gap: 8px; max-width: 80ch; }
.faq h2 { margin: 0 0 6px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.faq summary { cursor: pointer; padding: 13px 16px; font-weight: 600; list-style: none; position: relative; padding-right: 40px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 16px; top: 10px; font: 500 20px/1 var(--mono); color: var(--accent); }
.faq details[open] summary::after { content: "−"; }
.faq .ans { padding: 0 16px 12px; color: var(--ink); }
.faq .ans p { margin: 0 0 8px; }

/* link grids */
.related { display: grid; gap: 10px; }
.related h2 { margin: 0; }
.link-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.link-grid a { display: grid; gap: 3px; height: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; text-decoration: none; color: var(--ink); }
.link-grid a:hover { border-color: var(--accent); }
.lg-t { font-weight: 600; color: var(--accent); }
.lg-d { font-size: 14px; color: var(--muted); }
.bank-table td:first-child { font-weight: 600; white-space: nowrap; }

.cta { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; }
.cta p { margin: 0; max-width: 60ch; }

/* footer */
.site-foot { border-top: 1px solid var(--line); background: var(--surface); font-size: 14.5px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 24px; padding-top: 32px; padding-bottom: 20px; }
@media (max-width: 820px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }
.foot-grid h2 { font: 600 12.5px var(--body); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.foot-grid a { color: var(--ink); text-decoration: none; }
.foot-grid a:hover { color: var(--accent); text-decoration: underline; }
.foot-brand p { color: var(--muted); margin: 8px 0 0; max-width: 40ch; }
.foot-legal { border-top: 1px solid var(--line); padding-top: 14px; padding-bottom: 28px; color: var(--muted); font-size: 13px; display: grid; gap: 4px; }
.foot-legal p { margin: 0; }

/* ---------- converter (from web/template.html) ---------- */
.converter { display: grid; gap: 14px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 18px; display: grid; gap: 14px; min-width: 0; font-size: 15px; line-height: 1.55; }
.modes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.modes button { text-align: left; display: grid; gap: 3px; padding: 12px 14px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; font: inherit; }
.modes button:hover { border-color: var(--accent); }
.modes button[aria-selected="true"] { border: 2px solid var(--accent); padding: 11px 13px; background: var(--wash); }
.mode-name { font-weight: 600; font-size: 15px; }
.modes button[aria-selected="true"] .mode-name { color: var(--accent); }
.mode-sub { font-size: 13px; color: var(--muted); line-height: 1.35; }
@media (max-width: 480px) { .modes { grid-template-columns: 1fr; } }
.acctbar { display: grid; gap: 10px; background: var(--warn-wash); border-radius: 8px; padding: 12px 14px; }
.acctbar p { margin: 0; font-size: 14px; }
.acctbar p strong { color: var(--warn); }
.acctchips { display: flex; gap: 8px; flex-wrap: wrap; }
.acctchips .chip { background: var(--surface); }
.setbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.setbar span { min-width: 0; overflow-wrap: anywhere; }
.drop { border: 1.5px dashed var(--line); border-radius: 8px; padding: 22px 16px; display: grid; gap: 10px; justify-items: center; text-align: center; background: var(--wash); transition: border-color .15s, background .15s; }
.drop.over { border-color: var(--accent); }
.drop p { margin: 0; color: var(--muted); font-size: 14px; }
.drop:focus-within .btn.primary { outline: 2px solid var(--accent); outline-offset: 2px; }
.drop .privacy-line { display: inline-flex; align-items: center; gap: 6px; color: var(--ok); font-weight: 500; font-size: 13.5px; }
.btn { font: 600 14px/1 var(--body); border-radius: 7px; padding: 11px 15px; cursor: pointer; border: 1px solid var(--line); background: var(--surface); color: var(--ink); min-height: 42px; }
.btn:hover { border-color: var(--accent); }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.samples { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; font-size: 13px; color: var(--muted); }
.chip { font: 500 13px/1 var(--body); padding: 9px 11px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; min-height: 34px; }
.chip:hover, .chip[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); }
.pw { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.pw input { font: 15px var(--body); padding: 10px 12px; border-radius: 7px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); min-width: 0; flex: 1 1 200px; }
.note { font-size: 13px; color: var(--muted); margin: 0; }
.err { font-family: var(--mono); font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.result-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.fname { font-weight: 600; overflow-wrap: anywhere; }
.pill { font: 600 12px/1 var(--body); letter-spacing: 0.04em; text-transform: uppercase; padding: 7px 10px; border-radius: 999px; display: inline-block; }
.pill.ok { background: var(--ok-wash); color: var(--ok); }
.pill.bad { background: var(--bad-wash); color: var(--bad); }
.pill.warn { background: var(--warn-wash); color: var(--warn); }
.proof { display: flex; flex-wrap: wrap; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.proof div { background: var(--surface); padding: 12px 14px; display: grid; gap: 2px; flex: 1 1 140px; align-content: start; }
.proof .lbl { font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
.proof .num { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 17px; font-weight: 500; }
.proof .op { color: var(--muted); font-family: var(--mono); margin-right: 4px; }
.proof .final .num { color: var(--ok); }
.proof.bad .final .num { color: var(--bad); }
.verdict { margin: 0; font-size: 14px; }
.issues { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.issues:empty { display: none; }
.issues li { background: var(--bad-wash); color: var(--ink); border-radius: 7px; padding: 10px 12px; font-size: 14px; }
.issues li strong { color: var(--bad); }
.notes li { background: var(--warn-wash); }
.notes li strong { color: var(--warn); }
.exports { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.help { display: grid; gap: 10px; }
.linkbtn { font: inherit; color: var(--accent); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.helpbox { display: grid; gap: 10px; background: var(--wash); border-radius: 8px; padding: 12px 14px; font-size: 14px; }
.helpbox p { margin: 0; }
.helppre { margin: 0; font: 11px/1.45 var(--mono); background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 10px; max-height: 220px; overflow: auto; white-space: pre; }
.help.prominent #helpLead { color: var(--ink); font-size: 14px; }
.toast { font-size: 13px; color: var(--muted); min-height: 1.2em; }
.toast:empty { min-height: 0; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; max-height: 420px; overflow-y: auto; }
.table-scroll table { border-collapse: collapse; width: 100%; font-size: 13.5px; }
.table-scroll th { position: sticky; top: 0; background: var(--wash); text-align: left; font: 600 12px var(--body); letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); padding: 9px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table-scroll td { padding: 8px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table-scroll td.n, .table-scroll th.n { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.table-scroll td.d { font-family: var(--mono); white-space: nowrap; }
.table-scroll td.desc { min-width: 220px; }
.table-scroll tr.flag td { background: var(--bad-wash); }
.table-scroll tr:last-child td { border-bottom: 0; }
.checks td:first-child { font-weight: 600; white-space: nowrap; }
.checks td:last-child { min-width: 260px; }
.checks { max-height: none; }
@media (max-width: 640px) {
  .checks table, .checks tbody, .checks tr, .checks td { display: block; }
  .checks thead { display: none; }
  .checks tr { padding: 10px 12px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; }
  .checks tr:last-child { border-bottom: 0; }
  .checks td { padding: 0; border: 0; }
  .checks td:first-child { white-space: normal; }
  .checks td:last-child { grid-column: 1 / -1; min-width: 0; }
}
.sub { font: 600 13px var(--body); letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); margin: 6px 0 -4px; }
td.src { font-size: 12px; color: var(--muted); white-space: nowrap; }
tr.muted td { color: var(--muted); }
.in { color: var(--ok); }
.conv-foot { margin: 0; font-size: 13px; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
.mt { margin-top: 12px; }
.plan h2.h3like { font-size: 20px; margin: 0; }
a.card { text-decoration: none; color: var(--ink); }
a.card:hover { border-color: var(--accent); }
a.card h3 { color: var(--accent); }
ul.cols { columns: 3 170px; column-gap: 24px; } ul.cols li { break-inside: avoid; }
.prose > * { min-width: 0; } .prose code { overflow-wrap: anywhere; }
