/* Front Desk — Linear-style design tokens (light + dark) */

:root {
  --bg:           oklch(99% 0.002 250);
  --surface:      oklch(100% 0 0);
  --surface-2:    oklch(97.5% 0.003 250);
  --surface-3:    oklch(95% 0.004 250);
  --fg:           oklch(18% 0.012 260);
  --fg-2:         oklch(34% 0.012 260);
  --muted:        oklch(54% 0.012 260);
  --muted-2:      oklch(68% 0.010 260);
  --border:       oklch(92% 0.005 260);
  --border-2:     oklch(88% 0.006 260);
  --accent:       oklch(56% 0.18 275);
  --accent-fg:    oklch(99% 0.005 275);
  --accent-soft:  oklch(94% 0.05 275);
  --success:      oklch(64% 0.14 155);
  --warning:      oklch(72% 0.14 75);
  --danger:       oklch(62% 0.20 25);

  --font-sans: -apple-system, BlinkMacSystemFont, 'Inter Variable', 'Inter', 'SF Pro Text', 'Segoe UI', system-ui, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, 'Inter Variable', 'Inter Display', 'SF Pro Display', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', ui-monospace, 'IBM Plex Mono', Menlo, monospace;

  --radius-1: 4px;
  --radius-2: 6px;
  --radius-3: 8px;
  --radius-4: 12px;
  --radius-5: 16px;
  --radius-full: 9999px;

  --shadow-1: 0 1px 0 oklch(0% 0 0 / 0.03), 0 1px 2px oklch(0% 0 0 / 0.04);
  --shadow-2: 0 1px 0 oklch(0% 0 0 / 0.03), 0 4px 12px oklch(0% 0 0 / 0.06), 0 0 0 1px var(--border);
  --shadow-3: 0 12px 32px oklch(0% 0 0 / 0.10), 0 0 0 1px var(--border);
  --shadow-pop: 0 24px 64px oklch(0% 0 0 / 0.18), 0 0 0 1px var(--border);

  --duration-1: 120ms;
  --duration-2: 200ms;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  --cz-content: 1200px;
}

[data-theme="dark"] {
  --bg:           oklch(15% 0.008 260);
  --surface:      oklch(17.5% 0.010 260);
  --surface-2:    oklch(20% 0.010 260);
  --surface-3:    oklch(23% 0.012 260);
  --fg:           oklch(97% 0.005 260);
  --fg-2:         oklch(85% 0.005 260);
  --muted:        oklch(64% 0.012 260);
  --muted-2:      oklch(48% 0.012 260);
  --border:       oklch(26% 0.014 260);
  --border-2:     oklch(32% 0.014 260);
  --accent:       oklch(68% 0.18 275);
  --accent-fg:    oklch(14% 0.02 275);
  --accent-soft:  oklch(28% 0.10 275);
  --success:      oklch(70% 0.16 155);
  --warning:      oklch(78% 0.14 75);
  --danger:       oklch(68% 0.20 25);

  --shadow-1: 0 1px 0 oklch(0% 0 0 / 0.30), 0 1px 2px oklch(0% 0 0 / 0.40);
  --shadow-2: 0 1px 0 oklch(0% 0 0 / 0.30), 0 8px 24px oklch(0% 0 0 / 0.40), 0 0 0 1px var(--border);
  --shadow-3: 0 16px 40px oklch(0% 0 0 / 0.50), 0 0 0 1px var(--border);
  --shadow-pop: 0 32px 80px oklch(0% 0 0 / 0.55), 0 0 0 1px var(--border);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'cv11', 'ss01', 'ss03';
  text-rendering: optimizeLegibility;
  transition: background var(--duration-2) var(--ease), color var(--duration-2) var(--ease);
}

button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent-soft); color: var(--fg); }

/* ============================================================ TOKENS / TYPE */
.kbd {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px; padding: 0 5px;
  font-family: var(--font-mono); font-size: 10.5px; line-height: 1;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-bottom-width: 1.5px;
  border-radius: 4px;
}

.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.tab-num { font-variant-numeric: tabular-nums; }
.uppercase { text-transform: uppercase; letter-spacing: 0.06em; }
.eyebrow { font-size: 10.5px; font-weight: 500; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }

/* ============================================================ BUTTONS */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  height: 28px; padding: 0 10px;
  font-size: 13px; font-weight: 500;
  background: var(--surface);
  color: var(--fg);
  border: 1px solid var(--border);
  border-radius: var(--radius-2);
  transition: background var(--duration-1) var(--ease), border-color var(--duration-1) var(--ease), transform var(--duration-1) var(--ease);
}
.btn:hover { background: var(--surface-2); border-color: var(--border-2); }
.btn:active { transform: translateY(0.5px); }
.btn--primary { background: var(--accent); color: var(--accent-fg); border-color: transparent; }
.btn--primary:hover { background: oklch(from var(--accent) calc(l - 0.04) c h); }
.btn--ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn--ghost:hover { background: var(--surface-2); color: var(--fg); }
.btn--lg { height: 36px; padding: 0 14px; font-size: 14px; }
.btn--sm { height: 24px; padding: 0 8px; font-size: 12px; }
.btn--icon { width: 28px; padding: 0; justify-content: center; }
.btn--full { width: 100%; justify-content: center; }

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  height: 22px; padding: 0 8px;
  font-size: 11.5px; font-weight: 500;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  color: var(--fg-2);
}
.pill--accent { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.pill--success { background: color-mix(in oklch, var(--success) 14%, transparent); color: var(--success); border-color: transparent; }
.pill--warning { background: color-mix(in oklch, var(--warning) 14%, transparent); color: var(--warning); border-color: transparent; }
.pill--mono { font-family: var(--font-mono); font-size: 11px; }

/* ============================================================ CARDS */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-4);
  overflow: hidden;
}
.card-head { padding: 12px 14px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 8px; }
.card-body { padding: 14px; }

/* ============================================================ DOT / STATUS */
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--muted-2); display: inline-block; }
.dot--accent { background: var(--accent); box-shadow: 0 0 0 3px color-mix(in oklch, var(--accent) 22%, transparent); }
.dot--success { background: var(--success); }
.dot--warning { background: var(--warning); }
.dot--pulse { animation: pulse 1.6s var(--ease) infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

/* ============================================================ AVATARS */
.avatar {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--surface-3);
  color: var(--fg-2);
  font-size: 10.5px; font-weight: 600;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}
.avatar--md { width: 32px; height: 32px; font-size: 12px; }
.avatar--lg { width: 40px; height: 40px; font-size: 14px; }
.avatar--accent { background: var(--accent); color: var(--accent-fg); }

/* ============================================================ LAYOUT HELPERS */
.row { display: flex; align-items: center; gap: 8px; }
.col { display: flex; flex-direction: column; gap: 8px; }
.spacer { flex: 1; }
.sep { width: 1px; align-self: stretch; background: var(--border); }
.divider { height: 1px; background: var(--border); width: 100%; }

/* ============================================================ THEME TOGGLE */
.theme-toggle {
  position: fixed; bottom: 16px; right: 16px; z-index: 80;
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-2);
}
.theme-toggle button {
  width: 28px; height: 28px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--muted);
}
.theme-toggle button[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent); }
.theme-toggle svg { width: 14px; height: 14px; }

/* ============================================================ DEVICE FRAMES */
.iphone-frame {
  width: 390px; height: 844px;
  background: var(--bg);
  border-radius: 54px;
  position: relative;
  box-shadow:
    inset 0 0 0 2px oklch(28% 0.01 260),
    inset 0 0 0 11px oklch(8% 0 0),
    0 28px 80px oklch(0% 0 0 / 0.4),
    0 0 0 2px oklch(28% 0.01 260);
  overflow: hidden;
}
.iphone-frame .screen {
  position: absolute;
  inset: 11px;
  background: var(--bg);
  border-radius: 44px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.island {
  position: absolute;
  top: 22px; left: 50%; transform: translateX(-50%);
  width: 124px; height: 36px;
  background: oklch(2% 0 0);
  border-radius: 999px;
  z-index: 20;
}
.status-bar {
  height: 54px;
  padding: 18px 28px 0;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 15px; font-weight: 600;
  position: relative;
  z-index: 10;
}
.status-bar .time { letter-spacing: -0.01em; }
.status-bar .indicators { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.home-indicator {
  position: absolute;
  bottom: 8px; left: 50%; transform: translateX(-50%);
  width: 134px; height: 5px;
  background: var(--fg);
  opacity: 0.35;
  border-radius: 999px;
  z-index: 30;
}
