/* AMC Core 1.0.0 — shared foundation for AMC Enterprises products
   Load before the product stylesheet. Everything here is namespaced (--amc-*, .amc-*)
   so it never collides with a product's own tokens or classes.
   Products keep their identity by overriding the accent tokens only:
     --amc-accent, --amc-accent-2, --amc-accent-grad
   Copy this file and fonts/inter-latin.woff2 into each app (no shared CDN):
     <assets>/css/amc-core.css  +  <assets>/fonts/inter-latin.woff2 */

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Type */
  --amc-font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --amc-mono: ui-monospace, "SFMono-Regular", "JetBrains Mono", Menlo, Consolas, monospace;
  --amc-tracking-display: -.035em;
  --amc-tracking-heading: -.02em;
  --amc-tracking-caps: .12em;

  /* Dark neutrals (backgrounds, sidebars, footers) */
  --amc-obsidian: #080B12;
  --amc-surface: #101827;
  --amc-surface-2: #141E31;
  --amc-surface-3: #1A263D;
  --amc-border-dark: #1E293F;
  --amc-border-dark-strong: #2B3954;

  /* Light neutrals */
  --amc-ink: #0F172A;
  --amc-ink-2: #1E293B;
  --amc-text: #334155;
  --amc-muted: #64748B;
  --amc-faint: #94A3B8;
  --amc-bg: #FFFFFF;
  --amc-bg-2: #F8FAFC;
  --amc-bg-3: #F1F5F9;
  --amc-line: #E2E8F0;
  --amc-line-2: #CBD5E1;

  /* Text on dark */
  --amc-on-dark: #F8FAFC;
  --amc-on-dark-2: #CBD5E1;
  --amc-on-dark-muted: #94A3B8;
  --amc-on-dark-subtle: #64748B;

  /* Family accents. Products override --amc-accent* with their own colour. */
  --amc-indigo: #6366F1;
  --amc-ice: #38BDF8;
  --amc-accent: var(--amc-indigo);
  --amc-accent-2: var(--amc-ice);
  --amc-accent-grad: linear-gradient(135deg, var(--amc-accent) 0%, var(--amc-accent-2) 100%);

  /* Status */
  --amc-ok: #22C55E;
  --amc-warn: #F59E0B;
  --amc-bad: #EF4444;
  --amc-info: #38BDF8;

  /* Shape and depth */
  --amc-radius-sm: 8px;
  --amc-radius: 12px;
  --amc-radius-lg: 18px;
  --amc-radius-pill: 999px;
  --amc-shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
  --amc-shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 8px 24px -12px rgba(15, 23, 42, .14);
  --amc-shadow-lg: 0 2px 4px rgba(15, 23, 42, .04), 0 24px 48px -20px rgba(15, 23, 42, .25);
  --amc-ease: cubic-bezier(.2, .7, .2, 1);

  /* Layout */
  --amc-container: 1200px;
  --amc-gutter: clamp(16px, 4vw, 32px);
  --amc-header-h: 72px;
}

/* ---------- Brand lockup: [mark] AMC / PRODUCT ----------
   <a class="amc-brand"><svg class="amc-mark">…</svg><span class="amc-word"><b>AMC</b><span>PRODUCT</span></span></a>
   Add .amc-brand-on-dark on dark backgrounds. */
.amc-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--amc-ink); text-decoration: none; flex-shrink: 0; }
.amc-brand:hover { text-decoration: none; color: var(--amc-ink); }
.amc-mark { width: 34px; height: 34px; flex: 0 0 auto; fill: var(--amc-accent-2); stroke: var(--amc-accent); }
.amc-word { display: flex; flex-direction: column; line-height: 1.05; font-family: var(--amc-font); }
.amc-word b { font-size: 1.02rem; font-weight: 700; letter-spacing: .02em; }
.amc-word span { font-size: .68rem; font-weight: 600; letter-spacing: .24em; color: var(--amc-muted); }
.amc-brand-on-dark, .amc-brand-on-dark:hover { color: var(--amc-on-dark); }
.amc-brand-on-dark .amc-word span { color: var(--amc-on-dark-muted); }

/* ---------- Honesty label for previews ("Sample data", "Illustrative preview") ---------- */
.amc-preview-label { display: inline-flex; align-items: center; gap: 6px; font: 600 .72rem/1 var(--amc-font); letter-spacing: .1em; text-transform: uppercase; color: var(--amc-on-dark-muted); }
.amc-preview-label::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--amc-accent-2); }

/* ---------- Product window frame (hero screenshots) ---------- */
.amc-window { border-radius: var(--amc-radius-lg); overflow: hidden; background: var(--amc-surface); border: 1px solid var(--amc-border-dark-strong); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .65), 0 0 0 1px rgba(255, 255, 255, .02) inset; }
.amc-window-bar { display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 14px; border-bottom: 1px solid var(--amc-border-dark); }
.amc-window-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--amc-border-dark-strong); }
.amc-window-bar i + i { margin-left: -6px; }
.amc-window-bar span { margin-left: 6px; font: 500 .8rem/1 var(--amc-font); color: var(--amc-on-dark-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.amc-window img { display: block; width: 100%; height: auto; }
