/*
 * DESIGN PLAN — KiraBuddy
 *
 * Subject inventory (what belongs to KiraBuddy and Malaysian car hire-purchase):
 * 1. The yellow-carbon and buff-paper Hire Purchase (Sewa Beli) calculation slip handed across a showroom desk.
 * 2. JPJ number plate contrast: deep asphalt matte black with crisp white/ivory stamped characters.
 * 3. Ringgit Malaysia (RM) figures and the 10% standard deposit benchmark vs custom RM downpayment.
 * 4. Flat-rate annual interest (kadar faedah setahun flat rate) multiplied across full loan years (1 to 9 tahun).
 * 5. The four exact figures a car buyer writes on the back of a brochure: Harga Kereta, Deposit, Kadar Faedah, Tempoh Pinjaman.
 * 6. The three decisive outputs: Bayaran Bulanan (monthly commitment), Jumlah Pinjaman (principal), Jumlah Faedah (total interest paid to the bank).
 * 7. Puspakom & road-tax windscreen sticker highway green — the signal of a road-ready approval.
 * 8. Mechanical odometer / tabular ledger alignment where every sen lines up vertically.
 * 9. The quiet check before signing: comparing 5, 7, and 9 years side by side to see how much extra interest those extra years really cost.
 *
 * The Idea:
 * "On this site, the showroom salesperson's handwritten Sewa Beli carbon-copy calculation slip becomes a live, tactile ledger where changing any of the four loan inputs immediately stamps the monthly instalment, principal vs interest split, and a 5/7/9-year tenure comparison table."
 *
 * Why it fits this brief:
 * Car buyers in Malaysia are often handed a hasty monthly figure on a slip of paper without seeing how much of their money goes to principal versus bank interest over 7 or 9 years. Turning that slip into an honest, immediate flat-rate ledger makes the math transparent at a glance.
 *
 * The one bold element:
 * An oversized asphalt-ink Sewa Beli docket readout on the first screen where the monthly RM figure sits at display scale above a live proportional bar dividing Jumlah Pinjaman (principal) from Jumlah Faedah (bank interest).
 */

:root {
  /* Palette: 6 tokens rooted in Malaysian showroom specification sheets, asphalt plates & highway signs */
  --color-ground: #F4F1EA;        /* Warm buff showroom specification paper */
  --color-surface: #EAE5DA;       /* Stepped docket ledger tone */
  --color-ink: #14171A;           /* JPJ number-plate deep asphalt black */
  --color-accent: #005C4B;        /* Lebuhraya signboard deep emerald green */
  --color-signal: #C84B31;        /* Stamped carmine red for interest cost warning/contrast */
  --color-paper-bright: #FAF8F3;  /* Crisp input field sheet */

  /* Derived tones using color-mix in oklch */
  --color-ink-muted: color-mix(in oklch, var(--color-ink) 68%, var(--color-ground));
  --color-ink-soft: color-mix(in oklch, var(--color-ink) 45%, var(--color-ground));
  --color-surface-strong: color-mix(in oklch, var(--color-surface) 82%, var(--color-ink));
  --color-accent-hover: color-mix(in oklch, var(--color-accent) 85%, var(--color-ink));
  --color-accent-tint: color-mix(in oklch, var(--color-accent) 12%, var(--color-ground));
  --color-signal-tint: color-mix(in oklch, var(--color-signal) 12%, var(--color-ground));
  --color-docket-ink-muted: color-mix(in oklch, var(--color-ground) 72%, var(--color-ink));
  --color-docket-surface: color-mix(in oklch, var(--color-ink) 92%, var(--color-accent));

  /* Typography: Industrial condensed display + humanist sans body */
  --font-display: Bahnschrift, 'DIN Alternate', 'Franklin Gothic Medium', 'Nimbus Sans Narrow', sans-serif-condensed, sans-serif;
  --font-body: Seravek, 'Gill Sans Nova', Ubuntu, Calibri, 'DejaVu Sans', source-sans-pro, sans-serif;

  /* Type scale (5 sizes) */
  --text-xl: clamp(2.5rem, 6vw, 4.25rem);
  --text-lg: clamp(1.65rem, 3.5vw, 2.35rem);
  --text-md: clamp(1.15rem, 2vw, 1.35rem);
  --text-base: 1.0625rem;
  --text-sm: 0.9375rem;

  /* Spacing scale (4px base) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-8: 3rem;
  --space-10: 4.5rem;

  /* Corner decision: crisp square docket corners */
  --radius-none: 0px;
}
