/* ============================================================
   Labs — shared skin.

   The tokens are the AItelier v2 design tokens, copied value for value from
   dev/aitelier/frontend/src/styles/tokens.css (v2) — the same values as
   frontend/src/theme.css on main (Clément's --theme-* names). If those
   change, change them here too: this service is deployed separately and
   cannot import from the platform.

   Every Labs page loads this file. A demo keeps its own layout and adds
   only what is particular to it.
   ============================================================ */

:root {
  /* --- palette --- */
  --t-paper:      #F7F8FC;  /* app background */
  --t-card:       #FFFFFF;  /* surfaces / cards */
  --t-surface-2:  #F2F3F9;  /* quiet fill: table hover, read-only strips */
  --t-ink:        #10142B;  /* primary text */
  --t-ink-2:      #363B5C;
  --t-muted:      #585F7A;  /* secondary text */
  --t-faint:      #9095B0;  /* labels, placeholders */
  --t-line:       #DFE2EF;  /* borders / dividers */
  --t-line-2:     #C7CCE3;
  --t-klein:      #2038E5;  /* primary — International Klein Blue */
  --t-klein-deep: #1424A8;  /* primary hover / emphasis */
  --t-violet:     #4F2BD9;  /* secondary accent */
  --t-coral:      #F2492F;  /* alerts / risk */
  --t-coral-dark: #A8290F;  /* coral as text */
  --t-mint:       #00916E;  /* success / positive */
  --t-lemon:      #FFB324;  /* highlight / warning */
  --t-lemon-dark: #8A5A00;  /* lemon as text: the base hue is too light to read */

  /* tints, as used in the v2 Learn lab mock-up (design/v2/front-end) */
  --t-klein-tint:  #E9ECFC;
  --t-violet-tint: #ECE7FA;
  --t-coral-tint:  #FDE9E5;
  --t-mint-tint:   #E3F4EF;
  --t-lemon-tint:  #FFF4DC;

  --t-module-learn: var(--t-mint);

  /* --- typography --- */
  --t-font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --t-font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --t-font-mono:    'Spline Sans Mono', ui-monospace, monospace;

  /* --- shape & depth --- */
  --t-radius-sm: 6px;
  --t-radius:    10px;
  --t-radius-lg: 16px;
  --t-shadow:    0 1px 2px rgba(16, 20, 43, .05), 0 4px 16px rgba(16, 20, 43, .06);
  --t-shadow-accent:       0 4px 16px rgba(32, 56, 229, .3);
  --t-shadow-accent-hover: 0 8px 24px rgba(122, 59, 255, .38);
  --t-focus: 0 0 0 3px rgba(32, 56, 229, .25);
}

/* ── the pieces every Labs page shares ── */

/* The product name: the AItelier wordmark, AI in the accent gradient as on the
   platform's own pages, next to the logos of the host and the sponsor
   (shared/brand.js). */
.brand-name {
  font-family: var(--t-font-display); font-weight: 800; font-size: 17px;
  letter-spacing: -.01em; white-space: nowrap; color: var(--t-ink);
}
.brand-name .ai {
  background: linear-gradient(90deg, var(--t-klein), var(--t-violet));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.brand-logos { display: inline-flex; align-items: center; gap: 14px; }
.brand-logos:empty { display: none; }
.brand-logo { height: 30px; width: auto; max-width: 150px; object-fit: contain; display: block; }
.crumb { color: var(--t-muted); font-size: 13px; }
.crumb b { color: var(--t-ink); font-weight: 600; }

/* The platform's core button shape (frontend/src/styles/button.module.css on
   main): a pill with the accent glow. One deliberate difference: the platform's
   button is ink at rest, this one is klein. Ink under a blue glow read as
   inactive and the contrast was uncomfortable (Cathy, 29 Sep 2026). */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 22px; border-radius: 100px; border: 0;
  font-family: var(--t-font-body); font-size: 14px; font-weight: 600; cursor: pointer;
  background: var(--t-klein); color: #fff; box-shadow: var(--t-shadow-accent);
  transition: background .15s, box-shadow .2s, transform .15s;
}
.btn-primary:hover:not(:disabled) {
  transform: translateY(-1px); background: var(--t-klein-deep);
  box-shadow: var(--t-shadow-accent-hover);
}
.btn-primary:disabled { opacity: .45; cursor: not-allowed; }

.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 7px 14px; border-radius: 100px; border: 1px solid var(--t-line);
  font-family: var(--t-font-body); font-size: 12.5px; font-weight: 600; cursor: pointer;
  background: transparent; color: var(--t-ink);
}
.btn-ghost:hover:not(:disabled) { border-color: var(--t-ink); }
.btn-ghost:disabled { opacity: .45; cursor: not-allowed; }

.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px;
  border-radius: 100px; border: 1px solid var(--t-line); background: #fff;
  font-size: 12px; font-weight: 500; white-space: nowrap;
}
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--t-mint); }
