/* DepotIQ design tokens */
:root {
  /* Palette — warm neutral with amber accent */
  --bg: oklch(98.5% 0.004 80);
  --bg-alt: oklch(96.5% 0.006 80);
  --bg-sunken: oklch(94% 0.008 80);
  --surface: #ffffff;
  --surface-2: oklch(99% 0.003 80);
  --ink: oklch(18% 0.012 250);
  --ink-2: oklch(35% 0.012 250);
  --ink-3: oklch(52% 0.010 250);
  --ink-4: oklch(70% 0.008 250);
  --line: oklch(89% 0.006 80);
  --line-2: oklch(83% 0.008 80);

  --amber: oklch(72% 0.15 75);
  --amber-ink: oklch(38% 0.10 60);
  --amber-soft: oklch(94% 0.05 80);
  --amber-line: oklch(82% 0.10 78);

  --good: oklch(60% 0.13 145);
  --good-soft: oklch(94% 0.05 145);
  --warn: oklch(65% 0.14 50);
  --warn-soft: oklch(95% 0.05 60);
  --bad:  oklch(58% 0.18 25);
  --bad-soft: oklch(95% 0.04 25);
  --info: oklch(55% 0.13 245);
  --info-soft: oklch(95% 0.03 245);

  /* Steel-blue secondary for corporate/ERP context */
  --steel: oklch(42% 0.05 245);
  --steel-2: oklch(58% 0.07 245);
  --steel-soft: oklch(94% 0.02 245);

  /* Dark variants — for the mobile app field UI */
  --d-bg:        #0c0d0e;
  --d-bg-2:      #131416;
  --d-bg-3:      #1b1d20;
  --d-line:      #25282c;
  --d-line-2:    #34373c;
  --d-ink:       #f1efe9;
  --d-ink-2:     #b9b6ad;
  --d-ink-3:     #7a7770;
  --d-amber:     #f4c861;
  --d-amber-soft: rgba(244,200,97,0.14);
  --d-good:      #6eb48c;
  --d-good-soft: rgba(110,180,140,0.16);

  /* Type */
  --font-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --font-display: "Geist", ui-sans-serif, system-ui, sans-serif;

  /* Radii / shadow / motion */
  --r-1: 4px;
  --r-2: 6px;
  --r-3: 10px;
  --r-4: 14px;
  --r-5: 22px;
  --shadow-1: 0 1px 0 rgba(15,17,20,0.04), 0 1px 2px rgba(15,17,20,0.05);
  --shadow-2: 0 1px 0 rgba(15,17,20,0.04), 0 4px 16px -2px rgba(15,17,20,0.06);
  --shadow-3: 0 24px 48px -16px rgba(15,17,20,0.18), 0 8px 16px -8px rgba(15,17,20,0.10);
  --ease: cubic-bezier(.2,.7,.2,1);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";
}
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; padding: 0; }
a { color: inherit; text-decoration: none; }
.mono { font-family: var(--font-mono); font-feature-settings: "tnum","zero"; letter-spacing: -0.01em; }
.tnum { font-variant-numeric: tabular-nums; }

/* Common — global nav across pages */
.dq-globalnav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.dq-globalnav-inner {
  max-width: 1320px; margin: 0 auto;
  height: 56px; padding: 0 24px;
  display: flex; align-items: center; gap: 28px;
}
.dq-globalnav-links { display: flex; gap: 22px; margin-left: auto; align-items: center;}
.dq-globalnav-links a {
  font-size: 13px; color: var(--ink-2); padding: 8px 0; position: relative;
}
.dq-globalnav-links a.active { color: var(--ink); }
.dq-globalnav-links a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px;
  height: 2px; background: var(--ink);
}
.dq-globalnav-cta {
  background: var(--amber); color: var(--amber-ink);
  padding: 8px 14px; border-radius: var(--r-2);
  font-size: 13px; font-weight: 600;
  border: 1px solid var(--amber-line, transparent);
  transition: background .15s ease;
}
.dq-globalnav-cta:hover { background: oklch(78% 0.16 75); }

/* Logo lockup */
.dq-logo { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); }
.dq-logo-mark { width: 24px; height: 24px; flex-shrink: 0; }
.dq-logo-text {
  font-weight: 600; font-size: 15px; letter-spacing: -0.01em;
}
.dq-logo-text .iq { color: var(--amber-ink); }

/* Pill / chip */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 8px; border-radius: 999px;
  background: var(--bg-alt); border: 1px solid var(--line);
  font-size: 11.5px; color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}
.chip.dot::before {
  content: ""; width: 6px; height: 6px; border-radius: 999px; background: var(--ink-3);
}
.chip-good { background: var(--good-soft); color: var(--good); border-color: transparent; }
.chip-good.dot::before { background: var(--good); }
.chip-warn { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.chip-warn.dot::before { background: var(--warn); }
.chip-bad  { background: var(--bad-soft); color: var(--bad); border-color: transparent; }
.chip-bad.dot::before  { background: var(--bad); }
.chip-info { background: var(--info-soft); color: var(--info); border-color: transparent; }
.chip-info.dot::before { background: var(--info); }
.chip-amber { background: var(--amber-soft); color: var(--amber-ink); border-color: var(--amber-line);}
.chip-amber.dot::before { background: var(--amber); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 6px; padding: 8px 14px; border-radius: var(--r-2);
  font-size: 13px; font-weight: 500;
  border: 1px solid transparent;
  transition: background .15s var(--ease), border-color .15s var(--ease);
  white-space: nowrap;
}
.btn-primary { background: var(--amber); color: var(--amber-ink); }
.btn-primary:hover { background: oklch(78% 0.16 75); }
.btn-amber { background: var(--amber); color: var(--amber-ink); }
.btn-amber:hover { background: oklch(78% 0.16 75); }
.btn-ghost { background: var(--surface); border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { background: var(--bg-alt); }
.btn-sm { padding: 5px 10px; font-size: 12px; }

/* Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-3);
}

/* sr-only */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
