/* COPY of design/tokens.css — edit there, then re-copy. The landing deploys standalone. */
/* InvoiceQA design tokens — R2_Phase_0.
   One brand for landing/ and frontend/: custom properties + the small set of
   shared component classes (pills, badges, cards). No URLs in this file —
   each consuming surface declares its own @font-face for the three families
   (paths differ per surface): "Archivo Variable" (display), "Instrument
   Sans" (text/UI), "IBM Plex Mono" (figures). */

:root {
  /* --- Ground ---------------------------------------------------------- */
  --bg: #0a0a0b;
  --surface: #131316;
  --surface-2: #1a1a1f;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);

  /* --- Ink ------------------------------------------------------------- */
  --text: #f5f5f4;
  --text-dim: #a1a1aa;
  --text-faint: #8a8a94; /* AA on every ground (≥5:1) */

  /* --- Meaningful colour (the only colour) ------------------------------ */
  --safe: #34d399;
  --review: #fbbf24;
  --hold: #f87171;

  /* --- Metal (hero artefacts, rings, dividers) -------------------------- */
  --metal: linear-gradient(160deg, #e8e8ec 0%, #9b9ba6 45%, #55555e 100%);
  --metal-dim: linear-gradient(160deg, #3a3a41 0%, #232328 60%, #141417 100%);

  /* --- Type ------------------------------------------------------------- */
  --font-display: "Archivo Variable", "Archivo", "Arial Narrow", sans-serif;
  --font-text: "Instrument Sans", "Inter", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --display-settings: "wdth" 84, "wght" 650; /* condensed CAPS display */
  --display-settings-tight: "wdth" 78, "wght" 700;

  /* --- Shape ------------------------------------------------------------ */
  --radius-card: 20px;
  --radius-panel: 26px;
  --radius-pill: 999px;

  /* --- Elevation -------------------------------------------------------- */
  --shadow-artefact: 0 40px 80px rgba(0, 0, 0, 0.55), 0 12px 28px rgba(0, 0, 0, 0.45);
  --shadow-lift: 0 10px 30px rgba(0, 0, 0, 0.35);

  /* --- Texture ---------------------------------------------------------- */
  --dots: radial-gradient(circle, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  --dots-size: 22px 22px;
}

/* Component classes live in @layer components so that, inside the app,
   Tailwind's utilities (a later layer) can override them — an unlayered
   `.display { margin: 0 }` would silently beat every `mt-*`. On the
   landing page the unlayered site styles win over this layer, same idea. */
@layer components {
/* --- Display headings ---------------------------------------------------- */
.display {
  font-family: var(--font-display);
  font-variation-settings: var(--display-settings);
  text-transform: uppercase;
  line-height: 0.95;
  letter-spacing: -0.01em;
  margin: 0;
}

/* --- Pills (CTAs) --------------------------------------------------------- */
.pill,
.pill-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-text);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 1.7rem;
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.pill {
  background: var(--text);
  color: var(--bg);
  border: 1px solid var(--text);
}
.pill:hover {
  transform: translateY(-1px);
}
.pill-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line-strong);
}
.pill-ghost:hover {
  border-color: var(--text-dim);
  transform: translateY(-1px);
}

/* --- Feature-state badges (Part II truth table) --------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-text);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong);
  color: var(--text-dim);
  white-space: nowrap;
}
.badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.badge--live {
  color: var(--safe);
  border-color: rgba(52, 211, 153, 0.35);
  background: rgba(52, 211, 153, 0.08);
}
.badge--demo {
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.04);
}
.badge--lock {
  color: #e8e8ec;
  border-color: var(--line-strong);
  background: var(--metal-dim);
}
.badge--lock::before {
  content: none; /* the padlock glyph is markup, not a dot */
}
.badge--dev {
  color: var(--review);
  border-color: rgba(251, 191, 36, 0.3);
  background: rgba(251, 191, 36, 0.06);
}

/* --- Cards (bento) --------------------------------------------------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 1.75rem;
}
.card:hover {
  border-color: var(--line-strong);
}

/* --- Small utility chips --------------------------------------------------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-text);
  font-size: 0.8rem;
  color: var(--text-dim);
  border: 1px solid var(--line);
  background: rgba(20, 20, 23, 0.72);
  backdrop-filter: blur(6px);
  border-radius: 12px;
  padding: 0.6rem 0.9rem;
}
}
