/* Authoritative Aigentic foundations. HVAC copies are generated; edit this file only. */
@layer theme, base, components, utilities, system;

:root {
  /* Brand and semantic color roles. */
  --bg-primary: #06111F;
  --bg-surface: #0B1C2C;
  --bg-elevated: #0F2239;
  --bg-light: #F8FCFE;
  --text-primary: #EDF5F8;
  --text-secondary: #A9BDCC;
  --text-muted: #7A93A8;
  --text-on-light: #0B1C2C;
  --text-on-light-secondary: #3A536B;
  --accent: #10D9F1;
  --accent-hover: #0BB8D0;
  --accent-dark: #087681;
  --on-surface-accent: var(--accent);
  --secondary-hover-surface: var(--bg-elevated);
  --demo-speaker: #18313E;
  --demo-label: #50616B;
  --input-border: #80978F;
  /* Existing HVAC validation red; reserved for errors, never a brand accent. */
  --status-danger: #9D2636;
  --status-success: var(--accent-dark);
  --status-danger-surface: color-mix(in srgb, var(--status-danger) 8%, var(--bg-light));
  --border: color-mix(in srgb, var(--text-secondary) 24%, transparent);
  --border-light: color-mix(in srgb, var(--text-on-light-secondary) 22%, transparent);
  --border-device: 7px;
  --border-width: 1px;
  --border-width-strong: 2px;
  --focus-width: 2px;
  --focus-offset: 4px;

  /* Typography: only these five font faces are loaded by either site. */
  --font-heading: "Manrope", sans-serif;
  --font-body: "DM Sans", sans-serif;
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;
  --type-display: clamp(40px, 4.5vw, 64px);
  --type-section: clamp(32px, 3.4vw, 48px);
  --type-card: 24px;
  --type-intro: 18px;
  --type-body: 16px;
  --type-ui: 14px;
  --type-caption: 12px;
  --type-quote: clamp(28px, 2.8vw, 40px);
  --type-quote-mark: 80px;
  --leading-solid: 1;
  --leading-display: 1.1;
  --leading-heading: 1.15;
  --leading-card: 1.3;
  --leading-control: 1.4;
  --leading-caption: 1.5;
  --leading-intro: 1.6;
  --leading-body: 1.65;
  --tracking-heading: -.035em;
  --tracking-label: .12em;
  --tracking-normal: 0;

  /* Shared spacing scale, in CSS pixels. Zero remains the CSS keyword 0. */
  --space-2: 2px;
  --space-4: 4px;
  --space-6: 6px;
  --space-8: 8px;
  --space-10: 10px;
  --space-12: 12px;
  --space-16: 16px;
  --space-20: 20px;
  --space-22: 22px;
  --space-24: 24px;
  --space-28: 28px;
  --space-32: 32px;
  --space-40: 40px;
  --space-48: 48px;
  --space-56: 56px;
  --space-64: 64px;
  --space-80: 80px;
  --space-96: 96px;
  --space-112: 112px;
  --space-128: 128px;

  --content-width: 1200px;
  --reading-width: 760px;
  --copy-width: 65ch;
  --page-gutter: var(--space-32);
  --section-space: var(--space-96);
  --section-compact: var(--space-24);
  --container-width: calc(var(--content-width) + 2 * var(--page-gutter));
  --brand-width: 168px;
  --brand-height: 56px;
  --header-height: 80px;
  --anchor-offset: calc(var(--header-height) + var(--space-24));
  --card-padding: var(--space-24);
  --card-gap: var(--space-24);

  /* Cards, controls, and illustrative geometry have separate roles. */
  --radius-card: 16px;
  --radius-control: 12px;
  --radius-detail: 8px;
  --radius-device: 28px;
  --radius-bubble-tail: 3px;
  --radius-pill: 999px;
  --radius-circle: 50%;
  --shadow: 0 8px 24px color-mix(in srgb, var(--bg-primary) 12%, transparent);
  --shadow-button: 0 4px 12px color-mix(in srgb, var(--bg-primary) 16%, transparent);
  --shadow-deep: 0 28px 80px color-mix(in srgb, var(--bg-primary) 69%, transparent);
  --shadow-inset: inset 0 1px 0 color-mix(in srgb, var(--text-primary) 8%, transparent);
  --shadow-selected: inset 0 0 0 1px var(--accent);
  --shadow-focus: 0 0 0 3px color-mix(in srgb, var(--accent) 24%, transparent);
  --shadow-glow: 0 0 24px color-mix(in srgb, var(--accent) 24%, transparent);
  --shadow-text: 0 3px 16px color-mix(in srgb, var(--bg-primary) 72%, transparent);

  --control-height: 52px;
  --control-height-small: 48px;
  --touch-target: 44px;
  --button-padding-block: var(--space-12);
  --button-padding-inline: var(--space-20);
  --button-gap: var(--space-12);
  --button-text: var(--bg-primary);
  --button-background: var(--accent);
  --button-hover: var(--accent-hover);
  --field-background: var(--bg-light);
  --field-text: var(--text-on-light);
  --field-padding-block: var(--space-12);
  --field-padding-inline: var(--space-16);

  --ease: cubic-bezier(.16, 1, .3, 1);
  --duration-control: .25s;
  --duration-motion: .4s;
  --duration-reveal: .8s;
  --duration-entry: .9s;
  --opacity-disabled: .6;
  --z-nav: 20;
  --z-mobile-action: 30;
  --z-skip: 40;

  /* Compatibility aliases: resolve to canonical roles, never a second palette. */
  --bg: var(--bg-primary);
  --card: var(--bg-surface);
  --text: var(--text-primary);
  --muted: var(--text-secondary);
  --accent-light: var(--accent);
  --rep-custom-surface: var(--bg-surface);
  --navy-0: var(--bg-primary);
  --navy-1: var(--bg-surface);
  --navy-2: var(--bg-elevated);
}

/* CSS custom properties cannot be used in media conditions. */
@media (max-width: 900px) {
  :root { --header-height: 72px; --brand-width: 140px; }
}
@media (max-width: 767px) {
  :root { --section-space: var(--space-64); --page-gutter: var(--space-22); --header-height: 68px; --brand-width: 120px; --brand-height: 46px; }
}

/* Named translucent surfaces. Components never define their own color recipes. */
:root {
  --blend-bg-light-outcome-accent-92: color-mix(in srgb, var(--bg-light) 92%, var(--outcome-accent));
  --blend-outcome-accent-accent-48: color-mix(in srgb, var(--outcome-accent) 48%, var(--accent));
  --blend-outcome-accent-bg-light-72: color-mix(in srgb, var(--outcome-accent) 72%, var(--bg-light));
  --blend-outcome-fill-bg-light-92: color-mix(in srgb, var(--outcome-fill) 92%, var(--bg-light));
  --blend-outcome-fill-outcome-accent-72: color-mix(in srgb, var(--outcome-fill) 72%, var(--outcome-accent));
  --blend-story-accent-bg-light-24: color-mix(in srgb, var(--story-accent) 24%, var(--bg-light));
  --blend-story-accent-text-muted-48: color-mix(in srgb, var(--story-accent) 48%, var(--text-muted));
  --blend-story-accent-text-muted-72: color-mix(in srgb, var(--story-accent) 72%, var(--text-muted));
  --blend-text-muted-bg-elevated-24: color-mix(in srgb, var(--text-muted) 24%, var(--bg-elevated));
  --tint-accent-12: color-mix(in srgb, var(--accent) 12%, transparent);
  --tint-accent-16: color-mix(in srgb, var(--accent) 16%, transparent);
  --tint-accent-24: color-mix(in srgb, var(--accent) 24%, transparent);
  --tint-accent-4: color-mix(in srgb, var(--accent) 4%, transparent);
  --tint-accent-48: color-mix(in srgb, var(--accent) 48%, transparent);
  --tint-accent-72: color-mix(in srgb, var(--accent) 72%, transparent);
  --tint-accent-8: color-mix(in srgb, var(--accent) 8%, transparent);
  --tint-accent-dark-16: color-mix(in srgb, var(--accent-dark) 16%, transparent);
  --tint-bg-elevated-12: color-mix(in srgb, var(--bg-elevated) 12%, transparent);
  --tint-bg-elevated-16: color-mix(in srgb, var(--bg-elevated) 16%, transparent);
  --tint-bg-elevated-24: color-mix(in srgb, var(--bg-elevated) 24%, transparent);
  --tint-bg-elevated-48: color-mix(in srgb, var(--bg-elevated) 48%, transparent);
  --tint-bg-elevated-72: color-mix(in srgb, var(--bg-elevated) 72%, transparent);
  --tint-bg-elevated-8: color-mix(in srgb, var(--bg-elevated) 8%, transparent);
  --tint-bg-light-12: color-mix(in srgb, var(--bg-light) 12%, transparent);
  --tint-bg-light-4: color-mix(in srgb, var(--bg-light) 4%, transparent);
  --tint-bg-light-48: color-mix(in srgb, var(--bg-light) 48%, transparent);
  --tint-bg-light-72: color-mix(in srgb, var(--bg-light) 72%, transparent);
  --tint-bg-light-92: color-mix(in srgb, var(--bg-light) 92%, transparent);
  --tint-bg-primary-24: color-mix(in srgb, var(--bg-primary) 24%, transparent);
  --tint-bg-primary-48: color-mix(in srgb, var(--bg-primary) 48%, transparent);
  --tint-bg-primary-72: color-mix(in srgb, var(--bg-primary) 72%, transparent);
  --tint-bg-primary-8: color-mix(in srgb, var(--bg-primary) 8%, transparent);
  --tint-bg-primary-92: color-mix(in srgb, var(--bg-primary) 92%, transparent);
  --tint-bg-surface-24: color-mix(in srgb, var(--bg-surface) 24%, transparent);
  --tint-bg-surface-48: color-mix(in srgb, var(--bg-surface) 48%, transparent);
  --tint-bg-surface-92: color-mix(in srgb, var(--bg-surface) 92%, transparent);
  --tint-border-12: color-mix(in srgb, var(--border) 12%, transparent);
  --tint-border-16: color-mix(in srgb, var(--border) 16%, transparent);
  --tint-border-24: color-mix(in srgb, var(--border) 24%, transparent);
  --tint-border-light-12: color-mix(in srgb, var(--border-light) 12%, transparent);
  --tint-border-light-16: color-mix(in srgb, var(--border-light) 16%, transparent);
  --tint-border-light-24: color-mix(in srgb, var(--border-light) 24%, transparent);
  --tint-source-color-24: color-mix(in srgb, var(--source-color) 24%, transparent);
  --tint-text-muted-12: color-mix(in srgb, var(--text-muted) 12%, transparent);
  --tint-text-muted-16: color-mix(in srgb, var(--text-muted) 16%, transparent);
  --tint-text-muted-24: color-mix(in srgb, var(--text-muted) 24%, transparent);
  --tint-text-muted-4: color-mix(in srgb, var(--text-muted) 4%, transparent);
  --tint-text-muted-48: color-mix(in srgb, var(--text-muted) 48%, transparent);
  --tint-text-muted-8: color-mix(in srgb, var(--text-muted) 8%, transparent);
  --tint-text-secondary-12: color-mix(in srgb, var(--text-secondary) 12%, transparent);
  --tint-text-secondary-16: color-mix(in srgb, var(--text-secondary) 16%, transparent);
}
