/* =============================================
   embraceband design tokens
   Single source for color, type, spacing, radii, shadows, focus and motion.
   ============================================= */
@import url('https://fonts.googleapis.com/css2?family=Urbanist:ital,wght@0,100..900;1,100..900&display=swap');

:root {
  /* Brand palette */
  --eb-teal: #0BE9CE;
  --eb-pink: #FF3399;
  --eb-violet: #B27BFF;
  --eb-ink: #0D0E10;
  --eb-bg: #E6E6EE;
  --eb-bg-soft: #F3F3F8;
  --eb-panel: rgba(255,255,255,.58);
  --eb-panel-solid: #F8F8FB;
  --eb-border: rgba(255,255,255,.72);
  --eb-line: rgba(13,14,16,.08);
  --eb-muted: rgba(13,14,16,.52);
  --eb-gradient: linear-gradient(145deg, #0BE9CE 0%, #B27BFF 52%, #FF3399 100%);

  /* Semantic component surfaces */
  --eb-surface-drawer: #F4F4FA;
  --eb-surface-popover: #FFFFFF;
  --eb-surface-control: rgba(255,255,255,.46);
  --eb-surface-control-hover: #F5F5F9;
  --eb-surface-control-active: #EDEDF5;
  --eb-overlay-dim: rgba(13,14,16,.3);
  --eb-control-border: rgba(13,14,16,.1);
  --eb-control-border-hover: rgba(13,14,16,.2);
  --eb-control-disabled: #C8C8D1;
  --eb-status-active: #08AFCB;
  --eb-danger: #E92E1D;

  /* Legacy aliases kept for existing templates and feature CSS. */
  --primary: var(--eb-violet);
  --primary-dark: #8F5DE4;
  --primary-light: rgba(178,123,255,.16);
  --primary-ring: rgba(11,233,206,.26);
  --secondary: var(--eb-teal);
  --accent: var(--eb-teal);
  --success: #10B981;
  --danger: #EF4444;
  --warning: #F59E0B;

  /* Surfaces and text */
  --bg: var(--eb-bg);
  --surface: rgba(255,255,255,.72);
  --surface-2: rgba(255,255,255,.42);
  --surface-dark: #0F0F1A;
  --text: var(--eb-ink);
  --text-muted: var(--eb-muted);
  --text-xmuted: rgba(13,14,16,.42);
  --border: rgba(13,14,16,.11);
  --border-subtle: rgba(255,255,255,.66);

  /* Type */
  --font-sans: 'Urbanist', system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-alt: Inter, system-ui, sans-serif;
  --text-xs: .72rem;
  --text-sm: .8125rem;
  --text-md: .875rem;
  --text-lg: 1rem;
  --text-xl: 1.5rem;
  /* Desktop typography follows the available canvas instead of staying at
     the small Figma baseline on large, high-density displays. */
  --eb-type-copy: clamp(.875rem, .77rem + .13vw, 1.0625rem);
  /* 15px on compact desktop canvases, 16px at Full HD and 20px at 2560px.
     DPR must not shrink CSS type: Retina adds pixels, not visual size. */
  --eb-type-nav: clamp(.9375rem, .25rem + .625vw, 1.25rem);
  --eb-type-section: clamp(1rem, .86rem + .18vw, 1.25rem);
  --eb-type-display: clamp(3rem, 2.25rem + .65vw, 3.75rem);

  /* Company workspace chrome scales as one unit. */
  --eb-nav-icon-size: clamp(1.25rem, .5rem + .625vw, 1.5rem);
  --eb-nav-row-height: clamp(2.75rem, 1.25rem + 1.25vw, 3.25rem);
  --eb-nav-width: clamp(12.1875rem, 5.625rem + 5.47vw, 14.375rem);
  --eb-nav-column-gap: clamp(.6875rem, .125rem + .47vw, .875rem);

  /* Space */
  --space-1: .25rem;
  --space-2: .5rem;
  --space-3: .75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;

  /* Controls */
  --control-height-sm: 36px;
  --control-height: 44px;
  --control-height-lg: 48px;

  /* Radius */
  --radius-xs: 6px;
  --radius-sm: 18px;
  --radius: 24px;
  --radius-lg: 30px;
  --radius-xl: 32px;
  --radius-2xl: 24px;
  --radius-full: 999px;

  /* Shadows */
  --shadow-sm: 0 1px 0 rgba(255,255,255,.7) inset, 0 8px 22px rgba(13,14,16,.04);
  --shadow: 0 1px 0 rgba(255,255,255,.7) inset, 0 18px 44px rgba(13,14,16,.07);
  --shadow-lg: 0 1px 0 rgba(255,255,255,.72) inset, 0 26px 72px rgba(13,14,16,.11);
  --shadow-popover: 0 4px 24px rgba(0,0,0,.05);

  /* Layering: use these tokens instead of feature-specific z-index values. */
  --z-base: 0;
  --z-sticky: 200;
  --z-menu: 320;
  --z-backdrop: 400;
  --z-dialog: 410;
  --z-toast: 500;

  /* Focus and motion */
  --focus-ring: none;
  --ease: cubic-bezier(.4,0,.2,1);
  --t: 150ms var(--ease);
}

/* Form fields stay visually stable while focused; focus is conveyed by caret and label. */
input:focus,
textarea:focus,
select:focus {
  outline: none !important;
  box-shadow: none !important;
  border-color: var(--eb-control-border) !important;
}
