/**
 * VarkaSolar — Hyper-Premium Design System Tokens (Version 3.0)
 * God-Level Enterprise Architecture
 * Shared CSS variables for public + admin surfaces.
 */
:root {
  /*
   * Brand — Varka Solar playbook (Apr 2026): Gold-Standard Yellow + Obsidian Canvas.
   */
  --color-brand-yellow: #FFC700;
  --color-brand-yellow-hsl: 47, 100%, 50%;
  --color-brand-yellow-deep: #E6B400;
  --color-brand-black: #0F172A;
  --color-brand-black-hsl: 222, 47%, 11%;
  --color-brand-navy: #0F172A;

  /* Core Brand Palette (HSL Driven) */
  --color-primary: hsl(var(--color-brand-yellow-hsl));
  --color-primary-rgb: 255, 199, 0;
  --color-primary-soft: hsla(var(--color-brand-yellow-hsl), 0.12);
  --color-secondary: hsl(var(--color-brand-black-hsl));
  --color-accent: var(--color-primary);
  --color-accent-soft: hsla(var(--color-brand-yellow-hsl), 0.15);
  --color-savings: #059669;

  /* Enterprise Canvas */
  --color-bg: #FDFDFD;
  --color-surface: #FFFFFF;
  --color-surface-soft: #F8FAFC;
  --color-border: #F1F5F9;
  --color-border-hover: #E2E8F0;
  --color-text: #334155;
  --color-dark: hsl(var(--color-brand-black-hsl));
  --color-muted: #64748B;
  --color-ghost: rgba(15, 23, 42, 0.02);
  --color-focus-ring: hsla(var(--color-brand-yellow-hsl), 0.4);

  /* Status Colors */
  --color-success: #10B981;
  --color-warning: #F59E0B;
  --color-error: #EF4444;
  --color-info: #3B82F6;

  /* Fluid typography — High-Fidelity Font Stack */
  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --font-family: 'Inter', sans-serif;
  --font-h1: clamp(2rem, 5vw + 1rem, 4rem);
  --font-h2: clamp(1.5rem, 3.5vw + 0.5rem, 2.75rem);
  --font-h3: clamp(1.25rem, 2vw + 0.5rem, 2rem);
  --font-h4: clamp(1.1rem, 1.2vw + 0.4rem, 1.35rem);
  --font-body: clamp(0.95rem, 0.15vw + 0.9rem, 1.05rem);
  --font-small: 0.875rem;
  --font-tiny: 0.75rem;

  /* Precision Spacing System */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --space-10: 160px;

  /* Effects & Depth (Layered Shadows) */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 24px;
  --radius-xl: 40px;
  
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.02);
  --shadow: 
    0 4px 6px -1px rgba(0, 0, 0, 0.03),
    0 2px 4px -2px rgba(0, 0, 0, 0.03);
    
  --shadow-md: 
    0 10px 15px -3px rgba(15, 23, 42, 0.08),
    0 4px 6px -4px rgba(15, 23, 42, 0.05);

  --shadow-premium: 
    0 20px 25px -5px rgba(15, 23, 42, 0.1),
    0 8px 10px -6px rgba(15, 23, 42, 0.05);

  --shadow-elite: 
    0 40px 80px -20px rgba(15, 23, 42, 0.15),
    0 0 1px rgba(15, 23, 42, 0.1);
  
  /* Futuristic Gradients */
  --grad-hero: radial-gradient(circle at top right, hsla(var(--color-brand-yellow-hsl), 0.08), transparent);
  --grad-accent: linear-gradient(135deg, #FFC700 0%, #E6B400 100%);
  --grad-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.6) 100%);
  
  /* Transitions */
  --trans-fast: 200ms cubic-bezier(0.2, 0, 0, 1);
  --trans-base: 300ms cubic-bezier(0.2, 0, 0, 1);
  --trans-slow: 600ms cubic-bezier(0.2, 0, 0, 1);
  --trans-spring: 600ms cubic-bezier(0.175, 0.885, 0.32, 1.275);

  /* Layout */
  --vs-gutter: clamp(1.25rem, 5vw, 3rem);
  --vs-content-max: 1320px;
  --vs-section-y: clamp(5rem, 12vw, 12rem);
  --vs-section-inner-gap: clamp(2rem, 5vw, 4rem);
  --vs-nav-h: 100px;
  
  /* Premium Accents & Glassmorphism */
  --vs-glass-blur: blur(24px) saturate(160%);
  --vs-glass-bg: rgba(255, 255, 255, 0.7);
  --vs-glass-border: 1px solid rgba(255, 255, 255, 0.4);
  --vs-glass-shadow: 0 8px 32px 0 rgba(15, 23, 42, 0.08);

  /* Icon System — SVG Size & Stroke Tokens (vs-ds-icon-* classes) */
  --vs-ds-icon-2xs: 12px;
  --vs-ds-icon-xs:  16px;
  --vs-ds-icon-ms:  18px;
  --vs-ds-icon-sm:  20px;
  --vs-ds-icon-md:  24px;
  --vs-ds-icon-lg:  32px;
  --vs-ds-icon-xl:  40px;
  --vs-ds-icon-stroke: 1.5;

  /* Global radius fallback (used by img, video elements) */
  --radius: 12px;

  /* ── Customer Portal & Legacy Semantic Aliases ──────────────────────
     These map the older --vs-* naming convention used in customer-portal.css
     to the primary brand token palette. */
  --vs-black:          hsl(var(--color-brand-black-hsl));
  --vs-primary:        hsl(var(--color-brand-yellow-hsl));
  --vs-primary-hover:  #E6B400;
  --vs-primary-glow:   hsla(var(--color-brand-yellow-hsl), 0.15);
  --vs-accent:         hsl(var(--color-brand-yellow-hsl));
  --vs-border:         #F1F5F9;
  --vs-muted:          #64748B;
  --vs-muted-2:        #94A3B8;
  --vs-radius-lg:      24px;
  --vs-radius-md:      12px;
  --vs-slate-100:      #F1F5F9;
  --vs-slate-400:      #94A3B8;
  --vs-slate-500:      #64748B;
  --vs-slate-700:      #334155;

  /* Mobile App-Like Navigation Tokens */
  --vs-app-nav-h: 72px;
  --vs-safe-bottom: env(safe-area-inset-bottom, 0px);
  --vs-mobile-nav-bg: rgba(255, 255, 255, 0.85);
  --vs-mobile-nav-blur: blur(24px) saturate(200%);

}

/* Base Global Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: rgba(245, 192, 0, 0.28);
}

/* Kill default browser blue hyperlinks inside page content (Clay ink only) */
.vs-app main#page-main a[href]:where(:not([class*="vs-btn"])) {
  color: var(--color-secondary);
  text-underline-offset: 0.14em;
}

.vs-app main#page-main a[href]:where(:not([class*="vs-btn"])):hover {
  color: var(--vs-primary-hover);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
}

/* Decorative / UI sprites: opt out of global radius when marked */
img.vs-img--raw,
img[role="presentation"] {
  border-radius: 0;
}

/* Compact shell on small viewports — tighter rhythm without hurting readability */
@media (max-width: 639px) {
  :root {
    --vs-nav-h: 68px;
    --vs-section-y: clamp(1.15rem, 4vw + 0.2rem, 2.65rem);
    --vs-section-inner-gap: clamp(0.7rem, 2.2vw, 1.1rem);
  }
}

@media (max-width: 389px) {
  :root {
    --vs-nav-h: 64px;
  }
}

/* Inline SVG blocks: fixed box + stroke; colour = `color` on parent */
.vs-ds-icon {
  display: inline-flex;
  line-height: 0;
}

.vs-ds-icon svg {
  width: var(--vs-ds-icon-md);
  height: var(--vs-ds-icon-md);
  stroke-width: var(--vs-ds-icon-stroke);
}

.vs-ds-icon--2xs svg {
  width: var(--vs-ds-icon-2xs);
  height: var(--vs-ds-icon-2xs);
  stroke-width: var(--vs-ds-icon-stroke);
}

.vs-ds-icon--xs svg {
  width: var(--vs-ds-icon-xs);
  height: var(--vs-ds-icon-xs);
  stroke-width: var(--vs-ds-icon-stroke);
}

/* Root-level stroke / fill icons (markup: <svg class="vs-ds-svg-*" …>) */
svg.vs-ds-svg-2xs {
  width: var(--vs-ds-icon-2xs);
  height: var(--vs-ds-icon-2xs);
  stroke-width: var(--vs-ds-icon-stroke);
}

svg.vs-ds-svg-xs {
  width: var(--vs-ds-icon-xs);
  height: var(--vs-ds-icon-xs);
  stroke-width: var(--vs-ds-icon-stroke);
}

svg.vs-ds-svg-ms {
  width: var(--vs-ds-icon-ms);
  height: var(--vs-ds-icon-ms);
  stroke-width: var(--vs-ds-icon-stroke);
}

svg.vs-ds-svg-sm {
  width: var(--vs-ds-icon-sm);
  height: var(--vs-ds-icon-sm);
  stroke-width: var(--vs-ds-icon-stroke);
}

svg.vs-ds-svg-md {
  width: var(--vs-ds-icon-md);
  height: var(--vs-ds-icon-md);
  stroke-width: var(--vs-ds-icon-stroke);
}

svg.vs-ds-svg-md-fill {
  width: var(--vs-ds-icon-md);
  height: var(--vs-ds-icon-md);
}

svg.vs-ds-svg-xl {
  width: var(--vs-ds-icon-xl);
  height: var(--vs-ds-icon-xl);
  stroke-width: var(--vs-ds-icon-stroke);
}

