/* ==========================================================================
   PuertoPay Design Tokens
   Palette sampled directly from brand assets (icon gradient + wordmark inks).
   ========================================================================== */

:root {
  /* ---- Brand core ---- */
  --pp-pink: #dc2e58;
  --pp-orange: #ef9d40;
  --pp-cream: #fcefd4;
  --pp-navy: #0b1420;

  --pp-gradient: linear-gradient(135deg, var(--pp-pink) 0%, var(--pp-orange) 100%);
  --pp-gradient-soft: linear-gradient(135deg, rgba(220,46,88,0.12) 0%, rgba(239,157,64,0.12) 100%);

  /* ---- Neutrals (derived off navy, warmed slightly to match cream undertone) ---- */
  --pp-ink-900: #0b1420;
  --pp-ink-800: #16212f;
  --pp-ink-700: #263141;
  --pp-ink-600: #3d4a5c;
  --pp-ink-500: #5b6a7d;
  --pp-ink-400: #8592a3;
  --pp-ink-300: #b7c0cc;
  --pp-ink-200: #dde2e8;
  --pp-ink-100: #eef1f4;
  --pp-ink-50:  #f7f8fa;
  --pp-white:   #ffffff;

  /* ---- Semantic ---- */
  --pp-success: #1c9c6e;
  --pp-success-bg: #e6f6ef;
  --pp-danger: #d13b3b;
  --pp-danger-bg: #fbe9e9;
  --pp-warning: #b8791a;
  --pp-warning-bg: #fbf1de;
  --pp-pending: #5b6a7d;
  --pp-pending-bg: #eef1f4;
  --pp-info: #2563a8;
  --pp-info-bg: #e8f1fb;

  /* ---- Surfaces ---- */
  --pp-bg: var(--pp-ink-50);
  --pp-surface: var(--pp-white);
  --pp-surface-raised: var(--pp-white);
  --pp-border: var(--pp-ink-200);
  --pp-border-strong: var(--pp-ink-300);

  /* ---- Text ---- */
  --pp-text: var(--pp-ink-900);
  --pp-text-muted: var(--pp-ink-500);
  --pp-text-faint: var(--pp-ink-400);
  --pp-text-on-dark: var(--pp-cream);
  --pp-text-on-dark-muted: #aeb9c7;
  --pp-text-on-gradient: var(--pp-cream);

  /* ---- Type ---- */
  --pp-font-display: 'Manrope', 'Segoe UI', sans-serif;
  --pp-font-body: 'Inter', 'Segoe UI', sans-serif;
  --pp-font-mono: 'IBM Plex Mono', 'SFMono-Regular', Consolas, monospace;

  --pp-fs-2xs: 0.6875rem;  /* 11px */
  --pp-fs-xs: 0.75rem;     /* 12px */
  --pp-fs-sm: 0.875rem;    /* 14px */
  --pp-fs-base: 1rem;      /* 16px */
  --pp-fs-md: 1.125rem;    /* 18px */
  --pp-fs-lg: 1.375rem;    /* 22px */
  --pp-fs-xl: 1.75rem;     /* 28px */
  --pp-fs-2xl: 2.25rem;    /* 36px */
  --pp-fs-3xl: 3rem;       /* 48px */
  --pp-fs-4xl: 3.75rem;    /* 60px */

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

  /* ---- Radius ---- */
  --pp-radius-sm: 8px;
  --pp-radius-md: 14px;
  --pp-radius-lg: 20px;
  --pp-radius-xl: 28px;
  --pp-radius-pill: 999px;
  --pp-radius-icon: 22%; /* matches app icon squircle proportion */

  /* ---- Shadow ---- */
  --pp-shadow-sm: 0 1px 2px rgba(11,20,32,0.06), 0 1px 1px rgba(11,20,32,0.04);
  --pp-shadow-md: 0 4px 16px rgba(11,20,32,0.08), 0 1px 3px rgba(11,20,32,0.06);
  --pp-shadow-lg: 0 12px 32px rgba(11,20,32,0.12), 0 2px 6px rgba(11,20,32,0.06);
  --pp-shadow-glow: 0 8px 30px rgba(220,46,88,0.22);

  /* ---- Motion ---- */
  --pp-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --pp-fast: 140ms;
  --pp-med: 240ms;
  --pp-slow: 420ms;

  /* ---- Layout ---- */
  --pp-sidebar-w: 248px;
  --pp-topbar-h: 64px;
  --pp-bottomnav-h: 64px;
  --pp-content-max: 1120px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
