/*
  SimplePay Design Plan
  
  Subject:
  1. SimplePay: plain, honest payroll calculator for Malaysian workshops, independent cafes, clinics, and small trade shops with up to 50 workers.
  2. The 50-employee threshold: the exact operational boundary where complex enterprise HR software becomes an expensive nuisance.
  3. The printed physical pay envelope with perforated tear-strip and columnar itemization.
  4. The accountant's columnar ledger pad: pale parchment ground, deep forest ink, spruce tally green.
  5. The ritual of payroll balancing in Malaysian Ringgit (RM) before direct bank transfers.
  6. Statutory deductions: EPF, Socso, EIS, SKBBK, HRDC, zakat, and Income Tax (PCB).
  7. Monthly rated salaries (RM 5,000, RM 10,000, RM 15,000, RM 20,000) and overtime calculated down to exact sen.
  8. The constraint: zero guesswork—every sen deducted must balance against gross earnings.
  9. The dual-column statement: earnings on the left, statutory deductions on the right, net pay centered at the bottom.
  10. Employer payroll tax visibility: showing the owner their true labor cost alongside take-home pay in RM.

  The Idea:
  On this site, the perforated columnar pay slip becomes an instant live calculation engine where every monthly salary or hour typed immediately balances gross earnings against statutory deduction lines (EPF, Socso, EIS, SKBBK, HRDC, zakat, Income Tax) down to the sen in Malaysian Ringgit (RM).
  (Nearest competitor Gusto or ADP fails this test: they are foreign SaaS suites with US defaults, subscription walls, and benefit upsells; SimplePay is a single open Malaysian columnar ledger built specifically to calculate gross-to-net pay from monthly salaries and hours worked without fuss.)
*/

:root {
  /* 6 core palette colours from the accountant's ledger pad and physical pay envelope */
  --color-ground: #f7f6f0;
  --color-surface: #ffffff;
  --color-surface-dim: #edeae0;
  --color-ink: #142019;
  --color-ink-muted: #4e5e54;
  --color-accent: #1b6e4a;

  /* Derived tones using color-mix */
  --color-accent-hover: color-mix(in oklch, var(--color-accent) 85%, black);
  --color-accent-soft: color-mix(in oklch, var(--color-accent) 12%, var(--color-surface));
  --color-border: color-mix(in oklch, var(--color-ink) 18%, transparent);
  --color-border-subtle: color-mix(in oklch, var(--color-ink) 8%, transparent);
  --color-focus: var(--color-accent);
  --color-error: #a8251e;
  --color-error-bg: color-mix(in oklch, var(--color-error) 10%, var(--color-surface));
  --color-success-bg: color-mix(in oklch, var(--color-accent) 12%, var(--color-surface));

  /* Type stacks: Bahnschrift/DIN for crisp numerical ledger headers, Inter/system for plain human body */
  --font-display: Bahnschrift, 'DIN Alternate', 'Franklin Gothic Medium', 'Nimbus Sans Narrow', sans-serif-condensed, sans-serif;
  --font-body: Inter, Roboto, 'Helvetica Neue', Arial, sans-serif;

  /* Type sizes */
  --text-xs: 0.8125rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.1875rem;
  --text-xl: 1.625rem;
  --text-2xl: 2.25rem;

  /* Spacing scale on 4px base */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;

  /* Corner decision: sharp architectural edge like clean-cut pay envelopes and ledger sheets */
  --radius-sm: 2px;
  --radius-md: 2px;
  --radius-lg: 2px;
}
