@import url("https://fonts.googleapis.com/css2?family=Geist:wght@400..800&family=Inter:opsz,wght@14..32,400..700&family=JetBrains+Mono:wght@400;500;600&display=swap");

/* hyf.id neutral design tokens — CSS custom properties.
   Import this file on any surface that cannot run JavaScript brand injection.
   Override individual variables in a :root block to apply brand theming. */

:root {
  /* Colors */
  --hyfid-brand-action: #C9F24A;
  --hyfid-brand-action-border: #A8D62E;
  --hyfid-brand-background: #F4F1EB;
  --hyfid-brand-border: #E3DED4;
  --hyfid-brand-disabled: #BAB4A8;
  --hyfid-brand-error: #B83A2C;
  --hyfid-brand-form-background: #ffffff;
  --hyfid-brand-form-border: #D9D4CA;
  --hyfid-brand-inverse: #0E1116;
  --hyfid-brand-outline: #0E1116;
  --hyfid-brand-primary: #0E1116;
  --hyfid-brand-secondary: #4A463F;
  --hyfid-brand-success: #1F8A55;
  --hyfid-brand-scrolled: #F4F1EB;

  /* Shape */
  --hyfid-brand-radius: 16px;
  --hyfid-brand-button-radius: 8px;
  --hyfid-brand-form-radius: 8px;

  /* Typography */
  --hyfid-brand-font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --hyfid-brand-button-font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --hyfid-brand-input-font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --hyfid-brand-label-font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --hyfid-brand-subheading-font: "Geist", system-ui, sans-serif;
  --hyfid-brand-footnote-font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Typography scale */
  --hyfid-type-font-body: var(--hyfid-brand-font);
  --hyfid-type-font-heading: var(--hyfid-brand-subheading-font);
  --hyfid-type-font-label: var(--hyfid-brand-label-font);
  --hyfid-type-font-button: var(--hyfid-brand-button-font);
  --hyfid-type-font-input: var(--hyfid-brand-input-font);
  --hyfid-type-font-footnote: var(--hyfid-brand-footnote-font);
  --hyfid-type-font-mono: var(--hyfid-type-font-body);
  --hyfid-type-font-features: "calt", "cv11", "ss03";
  --hyfid-type-size-section-label: 10.5px;
  --hyfid-type-size-2xs: 0.72rem;
  --hyfid-type-size-xs: 0.75rem;
  --hyfid-type-size-sm: 0.8125rem;
  --hyfid-type-size-md: 0.875rem;
  --hyfid-type-size-base: 0.9375rem;
  --hyfid-type-size-lg: 1rem;
  --hyfid-type-size-xl: 1.125rem;
  --hyfid-type-size-2xl: 1.25rem;
  --hyfid-type-size-3xl: 1.375rem;
  --hyfid-type-size-title: 1.75rem;
  --hyfid-type-size-display-xs: 1.8rem;
  --hyfid-type-size-display-sm: 2.2rem;
  --hyfid-type-size-display-md: 3rem;
  --hyfid-type-size-display-lg: clamp(3rem, 7vw, 4.5rem);
  --hyfid-type-line-solid: 1;
  --hyfid-type-line-tight: 1.05;
  --hyfid-type-line-heading: 1.12;
  --hyfid-type-line-title: 1.2;
  --hyfid-type-line-label: 1.25;
  --hyfid-type-line-body: 1.5;
  --hyfid-type-line-copy: 1.55;
  --hyfid-type-line-loose: 1.65;
  --hyfid-type-letter-normal: -0.006em;
  --hyfid-type-letter-nav: -0.003em;
  --hyfid-type-letter-display: -0.03em;
  --hyfid-type-letter-heading: -0.015em;
  --hyfid-type-letter-label: 0.05em;
  --hyfid-type-weight-regular: 400;
  --hyfid-type-weight-medium: 500;
  --hyfid-type-weight-label: 550;
  --hyfid-type-weight-semibold: 600;
  --hyfid-type-weight-bold: 700;
  --hyfid-type-weight-heavy: 800;

  /* Spacing scale */
  --hyfid-space-0: 0;
  --hyfid-space-1: 4px;
  --hyfid-space-2: 8px;
  --hyfid-space-3: 12px;
  --hyfid-space-4: 16px;
  --hyfid-space-5: 20px;
  --hyfid-space-6: 24px;
  --hyfid-space-7: 32px;
  --hyfid-space-8: 40px;
  --hyfid-space-9: 48px;
  --hyfid-space-10: 64px;

  /* Shared shape. Brand radius remains for compatibility; primitives use semantic radii. */
  --hyfid-radius-mark: 4px;
  --hyfid-radius-control: 8px;
  --hyfid-radius-field: 8px;
  --hyfid-radius-surface: 8px;
  --hyfid-radius-panel: 8px;
  --hyfid-radius-dialog: 8px;
  --hyfid-radius-round: 999px;

  /* Elevation */
  --hyfid-elevation-none: none;
  --hyfid-shadow-tint: 42, 39, 34;
  --hyfid-elevation-mark: 0 2px 6px rgba(42, 39, 34, 0.32);
  --hyfid-elevation-panel: 0 0 0 1px rgba(42, 39, 34, 0.08), 0 1px 1px rgba(42, 39, 34, 0.04), 0 6px 16px -6px rgba(42, 39, 34, 0.10);
  --hyfid-elevation-surface: inset 0 1px 0 #FFFFFF, 0 0 0 1px rgba(42, 39, 34, 0.09), 0 2px 4px -1px rgba(42, 39, 34, 0.08);
  --hyfid-elevation-raised: inset 0 1px 0 #FFFFFF, 0 0 0 1px rgba(42, 39, 34, 0.12), 0 4px 10px -2px rgba(42, 39, 34, 0.12);
  --hyfid-elevation-overlay: 0 0 0 1px rgba(42, 39, 34, 0.10), 0 12px 32px -8px rgba(42, 39, 34, 0.22);
  --hyfid-elevation-input: inset 0 0 0 1px var(--hyfid-brand-form-border, #D9D4CA), inset 0 1px 2px rgba(42, 39, 34, 0.06);
  --hyfid-elevation-input-contact: inset 0 1px 2px rgba(42, 39, 34, 0.06);
  --hyfid-elevation-button: 0 0 0 1px var(--hyfid-brand-form-border, #D9D4CA), 0 1px 2px rgba(42, 39, 34, 0.08);
  --hyfid-elevation-button-contact: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 1px 2px rgba(42, 39, 34, 0.08);
  --hyfid-elevation-button-accent: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 0 0 1px var(--hyfid-brand-action-border, #A8D62E), 0 1px 2px rgba(42, 39, 34, 0.14);
  --hyfid-elevation-button-accent-contact: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 1px 2px rgba(42, 39, 34, 0.14);
  --hyfid-elevation-avatar: inset 0 0 0 1px rgba(42, 39, 34, 0.06);
  --hyfid-elevation-chip: inset 0 0 0 1px var(--hyfid-surface-border, #E3DED4);
  --hyfid-elevation-chrome: 0 18px 54px -14px rgba(42, 39, 34, 0.42);
  --hyfid-text-shadow-strong: 0 1px 12px rgba(7, 13, 10, 0.42);
  --hyfid-motion-duration-fast: 120ms;
  --hyfid-motion-duration-base: 200ms;
  --hyfid-motion-duration-slow: 280ms;
  --hyfid-motion-ease-standard: ease;
  --hyfid-motion-interactive: background-color var(--hyfid-motion-duration-base) var(--hyfid-motion-ease-standard), border-color var(--hyfid-motion-duration-base) var(--hyfid-motion-ease-standard), color var(--hyfid-motion-duration-base) var(--hyfid-motion-ease-standard), box-shadow var(--hyfid-motion-duration-base) var(--hyfid-motion-ease-standard), transform var(--hyfid-motion-duration-base) var(--hyfid-motion-ease-standard);

  /* Surfaces, chrome, and state layers */
  --hyfid-surface-canvas: var(--hyfid-brand-background);
  --hyfid-surface-muted: var(--hyfid-brand-scrolled);
  --hyfid-surface-panel: #FCFBF8;
  --hyfid-surface-avatar: #ECE8E0;
  --hyfid-surface-panel-raised: var(--hyfid-brand-form-background);
  --hyfid-surface-border: var(--hyfid-brand-border);
  --hyfid-text-primary: var(--hyfid-brand-primary);
  --hyfid-text-muted: var(--hyfid-brand-secondary);
  --hyfid-text-faint: #7A7469;
  --hyfid-text-label: #2A2722;
  --hyfid-chrome-bg: #0E1115;
  --hyfid-chrome-surface: #181B1F;
  --hyfid-chrome-surface-raised: #26292C;
  --hyfid-chrome-indicator: #404345;
  --hyfid-chrome-border: #26292C;
  --hyfid-chrome-border-strong: #404345;
  --hyfid-chrome-text: #F1EEE8;
  --hyfid-chrome-text-muted: rgba(241, 238, 232, 0.80);
  --hyfid-chrome-text-faint: rgba(241, 238, 232, 0.68);
  --hyfid-chrome-text-on-action: #0E1116;
  --hyfid-chrome-state-hover: #181B1F;
  --hyfid-chrome-state-active: #26292C;
  --hyfid-chrome-state-selected: #26292C;
  --hyfid-overlay-scrim: rgba(14, 17, 22, 0.58);
  --hyfid-overlay-scrim-strong: rgba(14, 17, 22, 0.74);
  --hyfid-focus-outline-color: color-mix(in srgb, var(--hyfid-brand-outline) 74%, var(--hyfid-brand-action));
  --hyfid-focus-outline-width: 2px;
  --hyfid-focus-outline-offset: 3px;
  --hyfid-focus-ring: 0 0 0 3px color-mix(in srgb, var(--hyfid-brand-outline) 20%, transparent);
  --hyfid-state-hover: color-mix(in srgb, var(--hyfid-brand-border) 42%, var(--hyfid-brand-form-background));
  --hyfid-state-active: color-mix(in srgb, var(--hyfid-brand-border) 64%, var(--hyfid-brand-form-background));
  --hyfid-state-selected: color-mix(in srgb, var(--hyfid-brand-action) 18%, var(--hyfid-brand-form-background));
  --hyfid-state-disabled-bg: color-mix(in srgb, var(--hyfid-brand-disabled) 24%, var(--hyfid-brand-form-background));
  --hyfid-state-disabled-text: color-mix(in srgb, var(--hyfid-brand-secondary) 62%, transparent);

  /* Status colors */
  --hyfid-status-info: #2A6BD9;
  --hyfid-status-info-bg: color-mix(in srgb, #2A6BD9 8%, var(--hyfid-brand-form-background));
  --hyfid-status-info-border: color-mix(in srgb, #2A6BD9 28%, transparent);
  --hyfid-status-success-bg: color-mix(in srgb, var(--hyfid-brand-success) 10%, var(--hyfid-brand-form-background));
  --hyfid-status-success-border: color-mix(in srgb, var(--hyfid-brand-success) 30%, transparent);
  --hyfid-status-warning: #8A5800;
  --hyfid-status-warning-bg: color-mix(in srgb, #D4890A 10%, var(--hyfid-brand-form-background));
  --hyfid-status-warning-border: color-mix(in srgb, #D4890A 30%, transparent);
  --hyfid-status-error-bg: color-mix(in srgb, var(--hyfid-brand-error) 10%, var(--hyfid-brand-form-background));
  --hyfid-status-error-border: color-mix(in srgb, var(--hyfid-brand-error) 30%, transparent);

  /* Owned product lane accents */
  --hyfid-concern-programs: var(--hyfid-brand-action);
  --hyfid-concern-programs-text: var(--hyfid-brand-inverse);
  --hyfid-concern-membership: #6B6F65;
  --hyfid-concern-membership-text: #FFFFFF;

  /* Shared background primitive */
  --hyfid-background-network-image: url("data:image/svg+xml,%3Csvg width='720' height='480' viewBox='0 0 720 480' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%230E1116' stroke-width='1.2' stroke-linecap='round' opacity='0.08'%3E%3Cpath d='M64 384c72-86 152-128 240-126s157-38 208-120'/%3E%3Cpath d='M102 92c78 47 138 68 180 62s86-46 132-120'/%3E%3Cpath d='M236 424c46-62 95-91 147-88s107 29 165 78'/%3E%3Cpath d='M430 72c42 42 77 74 106 96s66 40 112 54'/%3E%3Ccircle cx='64' cy='384' r='3'/%3E%3Ccircle cx='304' cy='258' r='3'/%3E%3Ccircle cx='512' cy='138' r='3'/%3E%3Ccircle cx='102' cy='92' r='3'/%3E%3Ccircle cx='282' cy='154' r='3'/%3E%3Ccircle cx='414' cy='34' r='3'/%3E%3Ccircle cx='383' cy='336' r='3'/%3E%3Ccircle cx='548' cy='414' r='3'/%3E%3Ccircle cx='648' cy='222' r='3'/%3E%3C/g%3E%3C/svg%3E");
  --hyfid-background-network-inverse-image: url("data:image/svg+xml,%3Csvg width='720' height='480' viewBox='0 0 720 480' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23C9F24A' stroke-width='1.2' stroke-linecap='round' opacity='0.10'%3E%3Cpath d='M64 384c72-86 152-128 240-126s157-38 208-120'/%3E%3Cpath d='M102 92c78 47 138 68 180 62s86-46 132-120'/%3E%3Cpath d='M236 424c46-62 95-91 147-88s107 29 165 78'/%3E%3Cpath d='M430 72c42 42 77 74 106 96s66 40 112 54'/%3E%3Ccircle cx='64' cy='384' r='3'/%3E%3Ccircle cx='304' cy='258' r='3'/%3E%3Ccircle cx='512' cy='138' r='3'/%3E%3Ccircle cx='102' cy='92' r='3'/%3E%3Ccircle cx='282' cy='154' r='3'/%3E%3Ccircle cx='414' cy='34' r='3'/%3E%3Ccircle cx='383' cy='336' r='3'/%3E%3Ccircle cx='548' cy='414' r='3'/%3E%3Ccircle cx='648' cy='222' r='3'/%3E%3C/g%3E%3C/svg%3E");
  --hyfid-background-network-size: 720px 480px;
  --hyfid-background-network-position: center top;
  --hyfid-background-chrome-gradient: linear-gradient(180deg, #0E1115 0%, #0E1115 100%);
  --hyfid-layout-max-content: 1200px;
  --hyfid-layout-max-wide: 1200px;
  --hyfid-layout-max-data: 1440px;
  --hyfid-layout-max-prose: 65ch;
  --hyfid-z-base: 0;
  --hyfid-z-nav: 20;
  --hyfid-z-menu: 40;
  --hyfid-z-overlay: 60;
  --hyfid-z-toast: 80;
}

[data-hyfid-color-mode="dark"] {
  /* Keep the legacy brand tokens in sync with the semantic dark palette.
     Shared component CSS still consumes some brand tokens directly. */
  --hyfid-brand-background: #0E1115;
  --hyfid-brand-border: #6B716B;
  --hyfid-brand-disabled: #6B716B;
  --hyfid-brand-error: #FF9A90;
  --hyfid-brand-form-background: #181B1F;
  --hyfid-brand-form-border: #6B716B;
  --hyfid-brand-outline: #C9F24A;
  --hyfid-brand-primary: #F1EEE8;
  --hyfid-brand-secondary: #C0C7BC;
  --hyfid-brand-scrolled: #26292C;
  --hyfid-brand-success: #8EF0B7;
  --hyfid-surface-canvas: #0E1115;
  --hyfid-surface-muted: #26292C;
  --hyfid-surface-panel: #181B1F;
  --hyfid-surface-avatar: #26292C;
  --hyfid-text-label: var(--hyfid-brand-primary);
  --hyfid-surface-panel-raised: #26292C;
  --hyfid-surface-border: #6B716B;
  --hyfid-text-primary: var(--hyfid-brand-primary, #F1EEE8);
  --hyfid-text-muted: var(--hyfid-brand-secondary, rgba(241, 238, 232, 0.68));
  --hyfid-text-faint: rgba(241, 238, 232, 0.56);
  --hyfid-elevation-panel: 0 18px 54px -14px rgba(7, 13, 10, 0.46);
  --hyfid-elevation-input: inset 0 0 0 1px var(--hyfid-brand-form-border, #6B716B), inset 0 1px 2px rgba(0, 0, 0, 0.16);
  --hyfid-elevation-input-contact: inset 0 1px 2px rgba(0, 0, 0, 0.16);
  --hyfid-elevation-button: 0 0 0 1px var(--hyfid-surface-border), 0 1px 2px rgba(0, 0, 0, 0.16);
  --hyfid-elevation-button-contact: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 1px 2px rgba(0, 0, 0, 0.16);
  --hyfid-elevation-surface: 0 18px 54px -14px rgba(7, 13, 10, 0.46);
  --hyfid-elevation-raised: 0 20px 58px -12px rgba(7, 13, 10, 0.54);
  --hyfid-elevation-overlay: 0 22px 64px -10px rgba(7, 13, 10, 0.58);
  --hyfid-state-hover: #181B1F;
  --hyfid-state-active: #26292C;
  --hyfid-state-selected: #26292C;
  --hyfid-state-disabled-bg: #26292C;
  --hyfid-state-disabled-text: rgba(241, 238, 232, 0.62);
  --hyfid-focus-outline-color: var(--hyfid-brand-action, #C9F24A);
  --hyfid-focus-ring: 0 0 0 3px color-mix(in srgb, var(--hyfid-brand-action, #C9F24A) 28%, transparent);
  --hyfid-status-info: #AFC6FF;
  --hyfid-status-info-bg: rgba(122, 168, 255, 0.14);
  --hyfid-status-info-border: rgba(122, 168, 255, 0.30);
  --hyfid-status-success-bg: rgba(95, 219, 154, 0.14);
  --hyfid-status-success-border: rgba(95, 219, 154, 0.30);
  --hyfid-status-warning: #FFD27A;
  --hyfid-status-warning-bg: rgba(244, 184, 74, 0.16);
  --hyfid-status-warning-border: rgba(244, 184, 74, 0.34);
  --hyfid-status-error-bg: rgba(255, 116, 102, 0.14);
  --hyfid-status-error-border: rgba(255, 116, 102, 0.34);
}

/* Typography is shared by static pages and generated brand themes. */
html,
body {
  font-family: var(--hyfid-type-font-body);
  font-feature-settings: var(--hyfid-type-font-features);
  font-optical-sizing: auto;
  font-weight: var(--hyfid-type-weight-regular);
  letter-spacing: var(--hyfid-type-letter-normal);
  -webkit-font-smoothing: auto;
}
