/**
 * BIG ZAINT — Master Customer Design System
 * 2026 Premium E-Commerce & Customer Portal Tokens
 * Scoped under :root and .customer-app
 */

@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400;1,600&display=swap');

:root,
.customer-app {
  /* =========================================================================
     Color Palette: Clean, Premium Light Theme (Zero Dark Mode)
     ========================================================================= */
  /* Surfaces & Backgrounds */
  --c-bg: #f8fafc;
  --c-surface: #ffffff;
  --c-surface-soft: #f1f5f9;
  --c-surface-hover: #f8fafc;
  --c-surface-elevated: #ffffff;
  --c-surface-subtle: #f8fafc;

  /* Typography Colors */
  --c-text: #0f172a;           /* Deep Slate / Charcoal */
  --c-text-muted: #64748b;     /* Balanced Neutral Gray */
  --c-text-subtle: #94a3b8;    /* Light Gray for placeholders & metadata */
  --c-text-inverse: #ffffff;   /* Pure White */

  /* Borders & Dividers */
  --c-border: #e2e8f0;         /* 1px clean separation */
  --c-border-subtle: #f1f5f9;
  --c-border-strong: #cbd5e1;
  --c-border-focus: #0c3578;   /* Primary Navy Focus Ring */

  /* Brand Primary: Deep Commerce Navy */
  --c-primary: #0c3578;
  --c-primary-hover: #072252;
  --c-primary-active: #05193d;
  --c-primary-light: #eef4ff;
  --c-primary-subtle: #f0f5ff;
  --c-primary-text: #0c3578;

  /* Brand Accent: Energetic BIG ZAINT Amber / Orange */
  --c-accent: #f97316;
  --c-accent-hover: #ea580c;
  --c-accent-active: #c2410c;
  --c-accent-light: #fff7ed;
  --c-accent-subtle: #ffedd5;
  --c-accent-text: #ea580c;

  /* Functional Status Colors */
  --c-success: #10b981;
  --c-success-hover: #059669;
  --c-success-light: #ecfdf5;
  --c-success-text: #065f46;

  --c-warning: #f59e0b;
  --c-warning-hover: #d97706;
  --c-warning-light: #fffbeb;
  --c-warning-text: #92400e;

  --c-danger: #ef4444;
  --c-danger-hover: #dc2626;
  --c-danger-light: #fef2f2;
  --c-danger-text: #991b1b;

  --c-info: #0284c7;
  --c-info-light: #f0f9ff;
  --c-info-text: #075985;

  /* =========================================================================
     Typography Scale (Poppins Font Hierarchy)
     ========================================================================= */
  --c-font: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  
  --c-fs-2xs: 0.6875rem; /* 11px */
  --c-fs-xs: 0.75rem;    /* 12px */
  --c-fs-sm: 0.84375rem; /* 13.5px */
  --c-fs-base: 0.9375rem;/* 15px */
  --c-fs-md: 1rem;       /* 16px - Minimum on inputs to prevent iOS zoom */
  --c-fs-lg: 1.125rem;   /* 18px */
  --c-fs-xl: 1.25rem;    /* 20px */
  --c-fs-2xl: 1.5rem;    /* 24px */
  --c-fs-3xl: 1.875rem;  /* 30px */

  --c-fw-light: 300;
  --c-fw-regular: 400;
  --c-fw-medium: 500;
  --c-fw-semibold: 600;
  --c-fw-bold: 700;
  --c-fw-extrabold: 800;

  --c-lh-tight: 1.2;
  --c-lh-normal: 1.5;
  --c-lh-relaxed: 1.65;

  /* =========================================================================
     Border Radii
     ========================================================================= */
  --c-radius-2xs: 4px;
  --c-radius-xs: 6px;
  --c-radius-sm: 10px;
  --c-radius-md: 14px;
  --c-radius-lg: 18px;
  --c-radius-xl: 24px;
  --c-radius-full: 9999px;

  /* =========================================================================
     Elevation & Shadows (Soft, Multi-layered, Natural Light)
     ========================================================================= */
  --c-shadow-xs: 0 1px 2px 0 rgba(15, 23, 42, 0.04);
  --c-shadow-sm: 0 2px 6px -1px rgba(15, 23, 42, 0.05), 0 1px 4px -1px rgba(15, 23, 42, 0.03);
  --c-shadow-md: 0 6px 16px -2px rgba(15, 23, 42, 0.06), 0 3px 6px -2px rgba(15, 23, 42, 0.03);
  --c-shadow-lg: 0 12px 28px -4px rgba(15, 23, 42, 0.08), 0 4px 10px -2px rgba(15, 23, 42, 0.04);
  --c-shadow-xl: 0 20px 40px -6px rgba(15, 23, 42, 0.12), 0 8px 16px -4px rgba(15, 23, 42, 0.06);

  /* Hover Lift Shadow */
  --c-shadow-hover: 0 14px 30px -4px rgba(12, 53, 120, 0.10), 0 6px 12px -2px rgba(15, 23, 42, 0.05);
  --c-shadow-active: 0 4px 10px -1px rgba(12, 53, 120, 0.12);

  /* =========================================================================
     Transitions & Motion
     ========================================================================= */
  --c-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --c-ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --c-transition-fast: 150ms var(--c-ease-out);
  --c-transition-normal: 250ms var(--c-ease-out);
  --c-transition-slow: 350ms var(--c-ease-out);

  /* Touch Target Standards */
  --c-min-touch: 48px;
}

/* =========================================================================
   Base Scoped Reset for Customer Application
   ========================================================================= */
body.customer-app,
.customer-app {
  font-family: var(--c-font);
  background-color: var(--c-bg);
  color: var(--c-text);
  line-height: var(--c-lh-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

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

/* Base Typographic Hierarchy */
.customer-app h1, 
.customer-app .c-h1 {
  font-size: var(--c-fs-2xl);
  font-weight: var(--c-fw-bold);
  line-height: var(--c-lh-tight);
  color: var(--c-text);
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem 0;
}

.customer-app h2, 
.customer-app .c-h2 {
  font-size: var(--c-fs-xl);
  font-weight: var(--c-fw-bold);
  line-height: var(--c-lh-tight);
  color: var(--c-text);
  letter-spacing: -0.015em;
  margin: 0 0 0.5rem 0;
}

.customer-app h3, 
.customer-app .c-h3 {
  font-size: var(--c-fs-lg);
  font-weight: var(--c-fw-semibold);
  line-height: var(--c-lh-tight);
  color: var(--c-text);
  margin: 0 0 0.375rem 0;
}

.customer-app h4, 
.customer-app .c-h4 {
  font-size: var(--c-fs-md);
  font-weight: var(--c-fw-semibold);
  color: var(--c-text);
  margin: 0 0 0.25rem 0;
}

.customer-app p {
  margin: 0 0 0.75rem 0;
  color: var(--c-text);
}

.customer-app p.c-muted,
.customer-app .c-text-muted {
  color: var(--c-text-muted);
}

.customer-app a:not(.c-btn):not(.btn) {
  color: var(--c-primary);
  text-decoration: none;
  transition: color var(--c-transition-fast);
}

.customer-app a:not(.c-btn):not(.btn):hover {
  color: var(--c-accent);
}

/* Accessibility Focus Ring */
.customer-app :focus-visible {
  outline: 2px solid var(--c-primary);
  outline-offset: 2px;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  .customer-app *,
  .customer-app *::before,
  .customer-app *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
