/* invoicerunner.co.za: the holding page and the shared-document page.
   Tokens from docs/DESIGN.md: calm, light, Inter 400/600, one primary
   action, the amount is the only bold thing. Mobile first. */

@font-face {
  font-family: "Inter";
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url("/assets/fonts/Inter-Regular.woff") format("woff");
}

@font-face {
  font-family: "Inter";
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  src: url("/assets/fonts/Inter-SemiBold.woff") format("woff");
}

:root {
  --ink: #0F172A;
  --ink-secondary: #475569;
  --paper: #FFFFFF;
  --surface: #F8FAFC;
  --hairline: #E2E8F0;
  --teal: #00BFA5;
  --teal-text: #00796B;
  --focus: #00BFA5;
  --radius: 12px;
  --s4: 4px;
  --s8: 8px;
  --s12: 12px;
  --s16: 16px;
  --s24: 24px;
  --s32: 32px;
  --s48: 48px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.4;
}

.page {
  min-height: 100vh;
  min-height: 100dvh;
  max-width: 480px;
  margin: 0 auto;
  padding: var(--s24) var(--s16) var(--s16);
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

p { margin: 0; }

.caption {
  font-size: 13px;
  color: var(--ink-secondary);
}

.stack > * + * { margin-top: var(--s8); }

.summary {
  margin-top: var(--s24);
  padding: var(--s16);
  background: var(--surface);
  border-radius: var(--radius);
}

.summary .doc {
  font-size: 15px;
  font-weight: 600;
}

.summary .label { margin-top: var(--s16); }

.amount {
  margin-top: var(--s4);
  font-size: 28px;
  font-weight: 600;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.due {
  margin-top: var(--s8);
  font-size: 13px;
  color: var(--ink);
}

.button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  margin-top: var(--s24);
  padding: var(--s12) var(--s16);
  border: 0;
  border-radius: var(--radius);
  background: var(--teal);
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.button:active { filter: brightness(0.95); }

.button[aria-busy="true"] { opacity: 0.7; }

.button.secondary {
  background: var(--paper);
  border: 1px solid var(--hairline);
}

a { color: var(--teal-text); }

a:focus-visible,
.button:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.note { margin-top: var(--s12); }

.intro { margin-top: var(--s16); }

.wordmark {
  font-size: 28px;
  font-weight: 600;
  line-height: 1.2;
}

.wordmark .runner { color: var(--teal); }

footer {
  margin-top: var(--s48);
  padding-top: var(--s16);
  border-top: 1px solid var(--hairline);
  font-size: 13px;
  color: var(--ink-secondary);
}

footer a { color: var(--ink-secondary); }

[hidden] { display: none !important; }
