/* Design tokens + reset + typography */

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/poppins-400-f3f0f5ee.woff2") format("woff2");
}

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/poppins-600-1f3eca1a.woff2") format("woff2");
}

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/poppins-700-54e23180.woff2") format("woff2");
}

:root {
  --color-bg: #f6f7f9;
  --color-surface: #ffffff;
  --color-border: #eceef2;
  --color-text: #1f2937;
  --color-text-muted: #6b7280;

  /* Green: primary / income */
  --color-primary: #16a34a;
  --color-primary-dark: #12813b;
  --color-primary-soft: #e7f6ec;

  /* Pink-red: expenses */
  --color-expense: #f43f5e;
  --color-expense-dark: #d92646;
  --color-expense-soft: #fdebef;

  /* Blue: balance / info */
  --color-info: #3b82f6;
  --color-info-soft: #eaf1fd;

  /* Extra pastels for icon circles & charts */
  --color-purple: #8b5cf6;
  --color-purple-soft: #f1ebfd;
  --color-amber: #f59e0b;
  --color-amber-soft: #fdf3e0;

  --color-accent: #f59e0b;
  --color-accent-soft: #fdf3e0;
  --color-danger: #d92646;
  --color-danger-soft: #fdebef;
  --color-success: #12813b;
  --color-success-soft: #e7f6ec;

  --font-sans: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --radius-s: 0.625rem;
  --radius-m: 1rem;
  --radius-l: 1.5rem;
  --radius-pill: 999px;

  --shadow-s: 0 1px 3px rgba(31, 41, 55, 0.05);
  --shadow-m: 0 12px 32px rgba(31, 41, 55, 0.08);

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4.5rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  line-height: 1.25;
  margin: 0 0 var(--space-4);
  font-weight: 700;
}

h1 { font-size: clamp(2rem, 4.5vw, 3rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.375rem, 3vw, 1.875rem); letter-spacing: -0.01em; }
h3 { font-size: 1.125rem; }

p {
  margin: 0 0 var(--space-4);
}

a {
  color: var(--color-primary);
}

img, svg {
  max-width: 100%;
  height: auto;
}

button {
  font: inherit;
}

input, select, textarea {
  font: inherit;
}

.text-green { color: var(--color-primary); }
.text-expense { color: var(--color-expense); }
.text-info { color: var(--color-info); }
