/* FirstCall brand layer — Hypernative visual system (palette + type).
   Loaded by every template before its page-specific <style nonce> block,
   so pages can override any rule. Fonts are self-hosted: the CSP
   (default-src 'self') blocks the Google Fonts CDN. */

@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/PlusJakartaSans-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/PlusJakartaSans-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/PlusJakartaSans-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/PlusJakartaSans-700.woff2') format('woff2');
}

:root {
  /* Official palette */
  --hn-white: #FFFFFF;
  --hn-blue: #5BEFEF;
  --hn-blue-hi: #C6FDFF;
  --hn-navy: #072F48;
  --hn-cream: #FAFAFA;
  --hn-purple: #8575FA;
  --hn-purple-hi: #D0C6F1;

  /* Dark-navy surface system (derived from --hn-navy) */
  --bg: #04263B;
  --surface: #072F48;
  --surface-2: #0B3B59;
  --border: #174A68;
  --border-strong: #24607F;
  --text: #FFFFFF;
  --muted: rgba(255, 255, 255, 0.65);
  --faint: rgba(255, 255, 255, 0.42);

  /* Semantic roles */
  --accent: var(--hn-blue);
  --accent-hover: var(--hn-blue-hi);
  --accent-2: var(--hn-purple);
  --accent-2-hi: var(--hn-purple-hi);
  --on-accent: var(--hn-navy);
  --success: var(--hn-blue);
  /* Functional status colors — not brand colors, used only for state */
  --warn: #F5C451;
  --error: #FF7A85;
  --error-strong: #E5484D;

  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'SF Mono', 'JetBrains Mono', Consolas, monospace;
  --bg-gradient:
    radial-gradient(1200px 600px at 85% -10%, rgba(91, 239, 239, 0.07), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(133, 117, 250, 0.08), transparent 60%),
    var(--bg);
}

body {
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-variant-numeric: tabular-nums;
}

h1, h2, h3 { font-weight: 600; letter-spacing: -0.01em; }

::selection { background: rgba(91, 239, 239, 0.3); color: var(--hn-white); }

/* Hypernative icon mark beside the "FirstCall" title (decorative: alt="") */
.brand-mark {
  width: 2.25rem; height: 2.25rem; flex-shrink: 0;
  display: block;
  border-radius: 0.6rem;
  border: 1px solid var(--border);
}

/* Line icon used in place of emoji (security badge, delete buttons) */
.ico {
  width: 1em; height: 1em;
  display: inline-block; vertical-align: -0.125em;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}
.sec-badge { color: var(--accent); }
