/* OS Builder — styles adapted from the HomePro design system.
   Same token set as fo/styles.css, scoped for the multi-phase builder app. */

@import url('https://fonts.googleapis.com/css2?family=Inter+Tight:wght@300;400;500;600;700;800;900&family=Inter:wght@400;500;600;700;800;900&family=Geist+Mono:wght@400;500&display=swap');

:root {
  /* Chartreuse */
  --chart-50:  #f8ffd6;
  --chart-100: #eeffa3;
  --chart-200: #e2ff66;
  --chart-300: #d4ff2e;
  --chart-400: #c4f000;
  --chart-500: #b6e000;
  --chart-600: #95b800;
  --chart-700: #708a08;
  --chart-800: #556812;
  --chart-900: #44531a;

  /* Lilac */
  --lilac-50:  #f6f2ff;
  --lilac-100: #ebe3ff;
  --lilac-200: #ddccff;
  --lilac-300: #c5adff;
  --lilac-400: #a98aff;
  --lilac-500: #8b6bff;
  --lilac-600: #6f4ee0;
  --lilac-700: #5a3dba;
  --lilac-800: #3e2887;
  --lilac-900: #281a5e;

  /* Ink / paper */
  --ink:    #0c0e10;
  --ink-2:  #1a1d20;
  --paper:  #ffffff;
  --paper-2: #fafafa;
  --paper-3: #f4f4f5;
  --mute-1: #5b6068;
  --mute-2: #8a8f97;
  --mute-3: #babfc7;
  --line:   rgba(12,14,16,0.08);
  --line-2: rgba(12,14,16,0.05);
  --success: #22c55e;

  --font-display: 'Inter Tight', -apple-system, system-ui, sans-serif;
  --font-body:    'Inter', -apple-system, system-ui, sans-serif;
  --font-mono:    'Geist Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper-2);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* Desktop-first builder — horizontally scrollable if viewport < 1200px */
  min-width: 1200px;
  overflow-x: auto;
}

/* ── Typography ── */
.display { font-family: var(--font-display); letter-spacing: -0.045em; line-height: 0.96; font-weight: 500; }
.eyebrow { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.16em; }

/* ── Buttons ── */
.btn-tiny-ghost {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 8px;
  border: 1px solid var(--line); background: transparent;
  font-family: var(--font-body); font-size: 12px; font-weight: 500;
  color: var(--ink); cursor: pointer;
}
.btn-tiny-ghost:hover { background: var(--paper-3); }

.btn-tiny-dark {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 8px;
  border: 0; background: var(--ink);
  font-family: var(--font-body); font-size: 12px; font-weight: 600;
  color: var(--chart-300); cursor: pointer;
}

/* ── Scrollbar styling ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--paper-3); }
::-webkit-scrollbar-thumb { background: var(--mute-3); border-radius: 99px; }

/* ── Range input ── */
input[type=range] {
  -webkit-appearance: none; width: 100%; height: 4px;
  background: var(--line); border-radius: 99px; outline: none;
}
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 14px; height: 14px;
  border-radius: 50%; background: var(--ink); cursor: pointer;
  border: 2px solid var(--paper); box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}

/* ── Number input ── */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; }

/* ── Focus rings ── */
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--lilac-500); outline-offset: 2px;
}
