/*
 * SCIOS Apps design tokens.
 * Replace the brand primitives and --font-* values here to re-theme the site.
 */

:root {
  color-scheme: light;

  /* Paleta oficial SCIOS / App Makers */
  --scios-red: #e53935;
  --scios-dark-gray: #4a4a4a;
  --scios-tech-purple: #7b3ff2;
  --scios-pastel-pink: #efa2a0;
  --scios-pastel-violet: #c9b2f6;
  --brand-50: #f6f1ff;
  --brand-100: #ede4ff;
  --brand-200: #dccbff;
  --brand-300: #c9b2f6;
  --brand-400: #a87df3;
  --brand-500: #8c55f3;
  --brand-600: #7b3ff2;
  --brand-700: #6630d0;
  --brand-800: #5127a6;
  --brand-900: #3f227a;
  --teal-500: #7b3ff2;
  --coral-500: #e53935;

  /* Typography */
  --font-sans: Inter, Manrope, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-md: 1.125rem;
  --font-size-lg: 1.25rem;
  --font-size-xl: clamp(1.4rem, 1.7vw, 1.65rem);
  --font-size-2xl: clamp(1.8rem, 3vw, 2.5rem);
  --font-size-3xl: clamp(2.35rem, 5.8vw, 4.8rem);
  --line-tight: 1.08;
  --line-heading: 1.18;
  --line-body: 1.65;
  --weight-regular: 400;
  --weight-medium: 560;
  --weight-semibold: 650;
  --weight-bold: 760;
  --tracking-tight: -0.035em;
  --tracking-wide: 0.09em;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-7: 1.75rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-14: 3.5rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Shape */
  --radius-xs: 0.5rem;
  --radius-sm: 0.75rem;
  --radius-md: 1rem;
  --radius-lg: 1.25rem;
  --radius-xl: 1.5rem;
  --radius-2xl: 2rem;
  --radius-round: 999px;

  /* Layout */
  --content-max: 76rem;
  --content-wide: 90rem;
  --content-narrow: 48rem;
  --gutter: clamp(1rem, 3vw, 2rem);
  --header-height: 4.5rem;
  --tap-size: 2.75rem;

  /* Motion */
  --duration-fast: 140ms;
  --duration-base: 220ms;
  --duration-slow: 420ms;
  --ease-standard: cubic-bezier(0.2, 0, 0, 1);
  --ease-emphasis: cubic-bezier(0.2, 0.8, 0.2, 1);

  /* Light semantic palette */
  --color-bg: #fbf9fc;
  --color-bg-accent: #f7f1ff;
  --color-surface: #ffffff;
  --color-surface-elevated: #ffffff;
  --color-surface-soft: #f7f2fa;
  --color-surface-subtle: #eee7f2;
  --color-text: #4a4a4a;
  --color-text-muted: #626262;
  --color-text-subtle: #737373;
  --color-border: #e4dce8;
  --color-border-strong: #cdbed5;
  --color-brand: var(--brand-600);
  --color-brand-hover: var(--brand-700);
  --color-brand-active: var(--brand-800);
  --color-brand-soft: var(--brand-50);
  --color-on-brand: #ffffff;
  --color-secondary: #b62f2c;
  --color-secondary-hover: #992724;
  --color-secondary-soft: #fff0f0;
  --color-accent: var(--scios-red);
  --color-accent-soft: #fff0ef;
  --color-link: #6630d0;
  --color-link-hover: #5127a6;
  --color-success: #176f49;
  --color-success-soft: #edf7f1;
  --color-warning: #8b5a00;
  --color-warning-soft: #fff5df;
  --color-danger: #b62f2c;
  --color-danger-soft: #fff0f0;
  --color-info: #6630d0;
  --color-info-soft: #f1eaff;
  --color-focus: #7b3ff2;
  --color-overlay: rgba(36, 24, 43, 0.84);
  --color-skeleton: #ebe4ee;
  --color-selection: #e2d4fb;

  /* Elevation */
  --shadow-xs: 0 1px 2px rgba(74, 50, 86, 0.06);
  --shadow-sm: 0 8px 24px rgba(74, 50, 86, 0.09);
  --shadow-md: 0 18px 48px rgba(74, 50, 86, 0.14);
  --shadow-lg: 0 28px 80px rgba(53, 33, 63, 0.2);
  --focus-ring: 0 0 0 3px rgba(123, 63, 242, 0.32);

  /* Layering */
  --z-sticky: 30;
  --z-dropdown: 50;
  --z-toast: 80;
  --z-dialog: 100;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --color-bg: #1d1a20;
  --color-bg-accent: #251f2b;
  --color-surface: #2c2830;
  --color-surface-elevated: #37313c;
  --color-surface-soft: #3b3441;
  --color-surface-subtle: #463d4d;
  --color-text: #f8f5fa;
  --color-text-muted: #d7cedb;
  --color-text-subtle: #b9afbe;
  --color-border: #514858;
  --color-border-strong: #6b5e74;
  --color-brand: #c9b2f6;
  --color-brand-hover: #d7c6fa;
  --color-brand-active: #e5dafa;
  --color-brand-soft: #44315f;
  --color-on-brand: #29183d;
  --color-secondary: #efa2a0;
  --color-secondary-hover: #f3b5b3;
  --color-secondary-soft: #51302f;
  --color-accent: #f06a67;
  --color-accent-soft: #542b2a;
  --color-link: #d5c2fa;
  --color-link-hover: #e7ddfc;
  --color-success: #5bd49a;
  --color-success-soft: #123326;
  --color-warning: #f4c465;
  --color-warning-soft: #483719;
  --color-danger: #f48784;
  --color-danger-soft: #4d2928;
  --color-info: #c9b2f6;
  --color-info-soft: #44315f;
  --color-focus: #efa2a0;
  --color-overlay: rgba(16, 11, 18, 0.92);
  --color-skeleton: #463d4d;
  --color-selection: #5a417b;
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.22);
  --shadow-sm: 0 10px 28px rgba(0, 0, 0, 0.24);
  --shadow-md: 0 20px 52px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 30px 88px rgba(0, 0, 0, 0.4);
  --focus-ring: 0 0 0 3px rgba(239, 162, 160, 0.42);
}
