/*
 * Super Pay placeholder styles. The designer's HTML export replaces this file and the page markup.
 * Rules that stay whatever the look: money in tabular figures, amounts selectable text, visible focus,
 * nothing wider than the phone at 360 px, reduced motion honoured.
 */
@font-face { font-family: 'Inter'; src: url('/assets/fonts/inter-latin-wght-normal.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
/* Placeholder money face (amounts, dates, account numbers): tabular by default, 0/O and 1/l distinct. */
@font-face { font-family: 'Money'; src: url('/assets/fonts/ibm-plex-mono-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Money'; src: url('/assets/fonts/ibm-plex-mono-latin-600-normal.woff2') format('woff2'); font-weight: 500 600; font-display: swap; }
@font-face { font-family: 'Money'; src: url('/assets/fonts/ibm-plex-mono-latin-700-normal.woff2') format('woff2'); font-weight: 700 900; font-display: swap; }
:root {
  --ink: #111; --muted: #5b5b57; --line: #e4e4df; --paper: #fafaf7; --card: #fff; --accent: #2b2bff;
  --ok: #0a7d3b; --warn: #8a5a00; --bad: #a3231b; --radius: 14px;
  --s-draft: #6b6b66; --s-issued: #3a3a36; --s-viewed: #3a3a36; --s-partially_paid: #8a5a00; --s-paid: #0a7d3b; --s-overdue: #a3231b; --s-void: #6b6b66;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: 'Inter', system-ui, sans-serif; color: var(--ink); background: var(--paper); line-height: 1.45; font-size: 16px; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
main { max-width: 980px; margin: 0 auto; padding: 16px; }
.num, .money { font-family: 'Money', ui-monospace, monospace; letter-spacing: -0.01em; }
h1 { font-size: 1.6rem; margin: 0 0 .5rem; letter-spacing: -0.01em; }
h2 { font-size: 1.1rem; margin: 0 0 .75rem; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; color: var(--muted); margin: 0 0 .25rem; }
.muted { color: var(--muted); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin: 0 0 16px; }
.card.narrow { max-width: 460px; margin: 10vh auto; }
.grid2 { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .grid2 { grid-template-columns: 1fr 1fr; } main { padding: 24px; } }
.topbar { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--card); flex-wrap: wrap; }
.topbar .brand { font-weight: 800; letter-spacing: -0.02em; text-decoration: none; }
.topbar nav { display: flex; gap: 12px; flex-wrap: wrap; font-size: .95rem; }
.button, button { display: inline-block; font: inherit; font-weight: 600; background: var(--ink); color: #fff; border: 0; border-radius: 10px; padding: 10px 16px; cursor: pointer; text-decoration: none; min-height: 44px; }
.button.secondary, button.secondary { background: #fff; color: var(--ink); border: 1px solid var(--ink); }
button.link { background: none; color: var(--ink); text-decoration: underline; padding: 0; min-height: 0; font-weight: 500; }
input, select, textarea { font: inherit; width: 100%; padding: 10px 12px; border: 1px solid #c8c8c2; border-radius: 10px; background: #fff; min-height: 44px; }
label { display: block; font-weight: 600; margin: 12px 0 4px; font-size: .95rem; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.notice { border-radius: 10px; padding: 10px 14px; margin: 0 0 14px; border: 1px solid var(--line); background: #fff; }
.notice-error { border-color: var(--bad); color: var(--bad); }
.notice-ok { border-color: var(--ok); color: var(--ok); }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; padding: 8px 6px; border-bottom: 1px solid var(--ink); }
td { padding: 10px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
td.r, th.r { text-align: right; }
.scroll-x { overflow-x: auto; }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; padding: 3px 8px; border-radius: 999px; border: 1.5px solid currentColor; white-space: nowrap; }
.status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status-draft { color: var(--s-draft); border-style: dashed; } .status-issued { color: var(--s-issued); } .status-viewed { color: var(--s-viewed); }
.status-partially_paid { color: var(--s-partially_paid); } .status-paid { color: var(--s-paid); } .status-overdue { color: var(--s-overdue); }
.status-void { color: var(--s-void); text-decoration: line-through; }
.vmark { display: inline-block; font-size: .78rem; font-weight: 700; border: 1.5px solid var(--ink); border-radius: 6px; padding: 0 6px; margin-left: 6px; vertical-align: middle; }
.estimated { display: inline-block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; border: 1.5px dashed var(--muted); color: var(--muted); border-radius: 6px; padding: 1px 6px; }
.tag { display: inline-block; font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; border: 1px solid #bbb; color: var(--muted); border-radius: 5px; padding: 1px 5px; }

/* Invoice page */
.hero { position: relative; padding: 22px 18px; overflow: hidden; }
.hero .amount { font-size: clamp(2.4rem, 11vw, 4.2rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1; margin: 4px 0 10px; position: relative; z-index: 2; }
.hero .facts { display: flex; flex-wrap: wrap; gap: 8px 22px; position: relative; z-index: 2; }
.hero .facts div { min-width: 120px; }
.hero .k, .k { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.hero .v { font-weight: 700; }
.hero .actions { margin-top: 16px; position: relative; z-index: 2; }
.sticker-zone { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.sticker { position: absolute; width: 44px; height: 44px; pointer-events: none; transition: opacity .6s ease, transform .6s ease; }
.lines td.desc { min-width: 160px; }
.totals { margin-left: auto; max-width: 380px; }
.totals td { border: 0; padding: 4px 6px; }
.totals tr.due td { border-top: 2px solid var(--ink); font-weight: 800; font-size: 1.15rem; padding-top: 10px; }
.bank dl { display: grid; grid-template-columns: auto 1fr auto; gap: 4px 10px; margin: 6px 0 12px; align-items: center; }
.bank dt { color: var(--muted); }
.bank dd { margin: 0; font-weight: 600; word-break: break-all; }
.copy { font-size: .8rem; padding: 4px 10px; min-height: 32px; background: #fff; color: var(--ink); border: 1px solid #bbb; }
.copy.done { border-color: var(--ok); color: var(--ok); }
.voidnotice { border: 2px solid var(--ink); }
.changelog li { margin-bottom: 10px; }
.paid-moment { position: fixed; inset: 0; background: rgba(250,250,247,.96); z-index: 50; display: grid; place-items: center; text-align: center; }
.paid-moment .medal { font-size: 4rem; font-weight: 900; letter-spacing: .3em; border: 6px double var(--ok); color: var(--ok); padding: 10px 26px; border-radius: 18px; }
.paid-moment[hidden] { display: none; }
.footer { color: var(--muted); font-size: .85rem; padding: 24px 0 40px; }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.timeline li.estimate-start { border-top: 2px dashed var(--muted); }
.stats { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 760px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stats .v { font-size: 1.3rem; font-weight: 800; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
.reveal { opacity: 0; transform: translateY(8px); transition: opacity .35s ease, transform .35s ease; }
.reveal.in { opacity: 1; transform: none; }
.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; }
input[type='checkbox'], input[type='radio'] { width: 20px; height: 20px; min-height: 0; padding: 0; margin: 0 6px 0 0; vertical-align: middle; accent-color: var(--ink); }
input[type='file'] { min-height: 0; padding: 8px; }
