/* APOLLO — Design tokens oficiais */
@font-face { font-family: 'Manrope'; src: url('/assets/fonts/manrope-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Manrope'; src: url('/assets/fonts/manrope-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Manrope'; src: url('/assets/fonts/manrope-600.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Manrope'; src: url('/assets/fonts/manrope-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Manrope'; src: url('/assets/fonts/manrope-800.woff2') format('woff2'); font-weight: 800; font-display: swap; }
@font-face { font-family: 'Sora'; src: url('/assets/fonts/sora-300.woff2') format('woff2'); font-weight: 300; font-display: swap; }
@font-face { font-family: 'Sora'; src: url('/assets/fonts/sora-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Sora'; src: url('/assets/fonts/sora-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Sora'; src: url('/assets/fonts/sora-600.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Sora'; src: url('/assets/fonts/sora-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }

:root {
  /* Marca */
  --brand-navy: #060F2C;
  --brand-deep: #0A1B4D;
  --brand-ocean: #1A2FD6;
  --brand-electric: #1E6BFF;
  --brand-capri: #12B5EA;
  --brand-turquoise: #27E3F2;
  /* Complementares */
  --coral: #FF7A6B;
  --pink: #F59BBE;
  --lavender: #9D8CFF;
  --orange: #FFA24D;
  --aqua: #2FD3B5;

  --font-ui: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Sora', 'Manrope', system-ui, sans-serif;

  --r-xs: 8px; --r-sm: 12px; --r-md: 16px; --r-lg: 22px; --r-xl: 28px; --r-pill: 999px;
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 20px; --sp-6: 24px; --sp-8: 32px; --sp-10: 40px;
  --ease: cubic-bezier(.2,.8,.2,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --tabbar-h: 68px;
  --header-h: 60px;
}

/* Tema claro (padrão) */
:root, [data-theme="light"] {
  color-scheme: light;
  --bg: #F2F5FA;
  --bg-tint: radial-gradient(1200px 500px at 0% -10%, rgba(18,181,234,.10), transparent 60%), radial-gradient(900px 500px at 100% 0%, rgba(30,107,255,.07), transparent 60%);
  --surface: #FFFFFF;
  --surface-2: #F6F8FC;
  --surface-3: #EDF2F9;
  --glass: rgba(255,255,255,.78);
  --line: #E3E9F2;
  --line-2: #D5DEEA;
  --text: #0A1633;
  --text-2: #4A5878;
  --text-3: #8592AD;
  --accent: var(--brand-electric);
  --accent-2: var(--brand-capri);
  --accent-soft: #E7F0FF;
  --income: #0E9F87; --income-soft: #E2F7F2;
  --expense: #E65446; --expense-soft: #FDEDEB;
  --pending: #E88A1E; --pending-soft: #FEF2E3;
  --projected: #7C6CF0; --projected-soft: #EFEDFE;
  --info-soft: #E5F6FD;
  --shadow-1: 0 1px 2px rgba(10,27,77,.04), 0 6px 18px rgba(10,27,77,.05);
  --shadow-2: 0 12px 40px rgba(10,27,77,.12);
  --shadow-fab: 0 10px 26px rgba(30,107,255,.38), 0 2px 6px rgba(10,27,77,.18);
  --hero: linear-gradient(135deg, #0A1B4D 0%, #10318F 48%, #1E6BFF 100%);
  --chart-grid: #E8EDF5;
  --skeleton: linear-gradient(90deg, #EDF2F9 0%, #F7F9FD 50%, #EDF2F9 100%);
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #050B1F;
  --bg-tint: radial-gradient(1000px 500px at 0% -10%, rgba(30,107,255,.16), transparent 60%), radial-gradient(800px 500px at 100% 0%, rgba(39,227,242,.07), transparent 60%);
  --surface: #0B1431;
  --surface-2: #0F1A3C;
  --surface-3: #142250;
  --glass: rgba(9,17,42,.78);
  --line: rgba(160,185,255,.10);
  --line-2: rgba(160,185,255,.18);
  --text: #EAF1FF;
  --text-2: #A9B6D6;
  --text-3: #6E7DA3;
  --accent: #4C8DFF;
  --accent-2: var(--brand-turquoise);
  --accent-soft: rgba(76,141,255,.14);
  --income: #3DDBBC; --income-soft: rgba(61,219,188,.12);
  --expense: #FF8173; --expense-soft: rgba(255,129,115,.12);
  --pending: #FFB061; --pending-soft: rgba(255,176,97,.12);
  --projected: #ADA1FF; --projected-soft: rgba(173,161,255,.13);
  --info-soft: rgba(39,227,242,.10);
  --shadow-1: 0 1px 0 rgba(255,255,255,.03) inset, 0 8px 24px rgba(0,0,0,.25);
  --shadow-2: 0 16px 50px rgba(0,0,0,.5);
  --shadow-fab: 0 10px 30px rgba(30,107,255,.45);
  --hero: linear-gradient(135deg, #0B1F63 0%, #133AA6 55%, #1E6BFF 100%);
  --chart-grid: rgba(160,185,255,.09);
  --skeleton: linear-gradient(90deg, #0F1A3C 0%, #16244E 50%, #0F1A3C 100%);
}
