/* CVeze Design Tokens — adapted from the handoff "Lab" v0.7
 *
 * Brand thesis: a Palo Alto AI lab's product. Confident, current,
 * unfussy. The market-watching system shouldn't dress like a
 * heritage instrument — it's software, and it's proud of it.
 *
 * Three commitments:
 *
 * 1. WHITE PAPER. Crisp, near-pure white. Cards a hair dimmer.
 *    No cream, no parchment, no ash. Just clean canvas.
 *
 * 2. INK BLACK TYPE. Near-pure zinc black for everything that
 *    speaks. Generous tonal scale to nothing for support text.
 *
 * 3. ELECTRIC INDIGO. One saturated, intentional accent. Used
 *    only where conviction is being claimed: a strong match,
 *    the primary CTA, the AI moment. Never decorative.
 *
 * Light-only. Dark mode dropped per Phase-1 plan.
 */

:root {
  /* === Paper — clean canvas === */
  --paper: #ffffff;
  --paper-2: #fafafa;
  --paper-3: #f4f4f5;

  /* === Ink — zinc black scale === */
  --ink: #09090b;        /* zinc-950 */
  --ink-2: #18181b;      /* zinc-900 */
  --ink-3: #3f3f46;      /* zinc-700 */
  --ink-4: #71717a;      /* zinc-500 */
  --ink-5: #a1a1aa;      /* zinc-400 */
  --ink-6: #d4d4d8;      /* zinc-300 */
  --rule: #e4e4e7;       /* zinc-200 */
  --rule-strong: #d4d4d8;

  /* === Signal — electric indigo === */
  --accent: #4f46e5;     /* indigo-600 */
  --accent-2: #4338ca;   /* indigo-700 */
  --accent-3: #6366f1;   /* indigo-500 */
  --accent-tint: #eef2ff;
  --accent-tint-2: #e0e7ff;
  --accent-deep: #312e81;

  /* === AI signal — same family === */
  --ai: #4f46e5;
  --ai-ink: #ffffff;
  --ai-tint: #eef2ff;

  /* === Status === */
  --success: #059669;          /* emerald-600 */
  --success-tint: #d1fae5;
  --warning: #b45309;          /* amber-700, used SPARINGLY */
  --warning-tint: #fef3c7;
  --danger: #dc2626;
  --danger-tint: #fee2e2;

  /* === Type === */
  --font-sans: 'Inter', system-ui, -apple-system, 'Helvetica Neue', sans-serif;
  --font-display: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'IBM Plex Mono', ui-monospace, 'SF Mono', monospace;
  --font-serif: 'Inter', system-ui, sans-serif;

  /* === Radii === */
  --r-xs: 4px;
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 20px;
  --r-pill: 999px;

  /* === Shadows === */
  --shadow-sm: 0 1px 2px rgba(9, 9, 11, 0.04), 0 1px 1px rgba(9, 9, 11, 0.03);
  --shadow-md: 0 4px 12px rgba(9, 9, 11, 0.06), 0 1px 2px rgba(9, 9, 11, 0.04);
  --shadow-lg: 0 24px 48px rgba(9, 9, 11, 0.08), 0 4px 12px rgba(9, 9, 11, 0.05);

  /* === Density === */
  --row-h: 56px;
  --pad: 20px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-feature-settings: "cv11", "ss01", "ss03";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; }

/* Type utilities */
.display {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.04em;
  font-feature-settings: "cv11", "ss01";
}
.display-thin {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.03em;
}
.serif {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.015em;
}
.serif-display {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.04em;
}
.mono {
  font-family: var(--font-mono);
  font-feature-settings: normal;
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-4);
  font-weight: 500;
}
.tick-row {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ink-4);
}

/* Indigo dot — the brand's signature mark */
.indigo-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-tint);
}

/* Subtle dotted grid */
.dot-grid {
  background-image: radial-gradient(circle, rgba(9,9,11,0.08) 1px, transparent 1px);
  background-size: 20px 20px;
}

/* Rule motif */
.rule-print {
  border-top: 1px solid var(--ink);
  position: relative;
}
.rule-print::before {
  content: '';
  position: absolute;
  top: -1px; left: 0;
  width: 32px; height: 2px;
  background: var(--accent);
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--rule-strong); border-radius: 999px; border: 2px solid var(--paper); }
::-webkit-scrollbar-thumb:hover { background: var(--ink-5); }

h1, h2, h3, h4, h5, h6, p { margin: 0; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--accent); color: #ffffff; }
