/*!
 * Nexus People OS Design System v0.1.0
 * https://github.com/michael-olivier/nexus-people-os-design-system
 */

/**
 * Nexus People OS — design tokens
 * Source: career-coach-agent prototype (styles.css :root)
 */
:root {
  color-scheme: light;

  /* Brand gradient scale */
  --nx-palette-1: #357DE8;
  --nx-palette-2: #2898BD;
  --nx-palette-3: #22A06B;
  --nx-palette-4: #6A9A23;
  --nx-palette-5: #B38600;
  --nx-palette-6: #E06C00;
  --nx-palette-7: #E2483D;
  --nx-palette-8: #CD519D;
  --nx-palette-9: #AF59E1;

  /* Semantic aliases (prototype-compatible) */
  --palette-1: var(--nx-palette-1);
  --palette-2: var(--nx-palette-2);
  --palette-3: var(--nx-palette-3);
  --palette-4: var(--nx-palette-4);
  --palette-5: var(--nx-palette-5);
  --palette-6: var(--nx-palette-6);
  --palette-7: var(--nx-palette-7);
  --palette-8: var(--nx-palette-8);
  --palette-9: var(--nx-palette-9);

  --bg: rgb(247, 248, 249);
  --surface: #ffffff;
  --surface-muted: #f1f3f4;
  --text: #202124;
  --muted: #8C8F97;
  --line: #DDDEE1;
  --accent: #357de8;
  --accent-soft: #CFE1FD;
  --sand: #f3f4f6;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(17, 24, 39, 0.08);
  --nexus-cyan: var(--palette-7);

  /* Typography */
  --nx-font-sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --nx-font-weight-regular: 400;
  --nx-font-weight-light: 300;

  /* Radius */
  --nx-radius-sm: 8px;
  --nx-radius-md: 16px;
  --nx-radius-lg: 28px;
  --nx-radius-pill: 999px;

  /* Motion */
  --nx-duration-fast: 160ms;
  --nx-ease-standard: ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--nx-font-sans);
  font-weight: var(--nx-font-weight-regular);
}

a {
  color: inherit;
  text-decoration: none;
}

strong {
  font-weight: var(--nx-font-weight-regular);
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
}

svg.lucide {
  width: 1em;
  height: 1em;
  flex-shrink: 0;
}

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

.eyebrow,
.section-label {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: var(--nx-font-weight-regular);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nx-heading-1,
.brand h1 {
  margin: 0;
  font-size: 1.2rem;
  letter-spacing: -0.04em;
  font-weight: var(--nx-font-weight-regular);
}

.nx-heading-2,
.hero-card h2,
.panel h3 {
  margin: 0;
  letter-spacing: -0.04em;
  font-weight: var(--nx-font-weight-regular);
}

.panel h3 {
  font-size: 1.22rem;
}

.hero-card h2 {
  max-width: 820px;
  font-size: clamp(1.26rem, 3vw, 2.76rem);
  line-height: 0.98;
}

.brand-wordmark {
  letter-spacing: 0.14em;
}

input::placeholder,
textarea::placeholder {
  color: #9ca3af;
  font-weight: var(--nx-font-weight-light);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 4px 4px 8px;
  min-width: 0;
  border-radius: var(--nx-radius-md);
  color: inherit;
  text-decoration: none;
  transition: background var(--nx-duration-fast) var(--nx-ease-standard);
}

a.brand:hover {
  background: color-mix(in srgb, var(--palette-4) 8%, white);
}

.brand-mark {
  display: grid;
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  place-items: center;
  border-radius: 12px;
  background: color-mix(in srgb, var(--palette-7) 14%, white);
  color: var(--palette-3);
  padding: 9px;
  box-sizing: border-box;
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-mark--logo {
  padding: 0;
  background: transparent;
  overflow: hidden;
  border-radius: 12px;
}

.brand-mark--logo img {
  object-fit: contain;
}

.primary-button {
  border: 0;
  border-radius: var(--nx-radius-pill);
  background: var(--accent);
  color: var(--white);
  font-weight: var(--nx-font-weight-regular);
  padding: 12px 18px;
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.04);
  transition: filter var(--nx-duration-fast) var(--nx-ease-standard);
}

.primary-button:hover:not(:disabled) {
  filter: brightness(0.96);
}

.secondary-button,
.prompt-grid button {
  border: 1px solid var(--line);
  border-radius: var(--nx-radius-pill);
  background: var(--surface);
  color: var(--text);
  font-weight: var(--nx-font-weight-regular);
}

.secondary-button {
  padding: 12px 18px;
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.04);
}

.prompt-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  max-width: 900px;
}

.prompt-grid button {
  padding: 10px 22px;
  transition:
    background var(--nx-duration-fast) var(--nx-ease-standard),
    border-color var(--nx-duration-fast) var(--nx-ease-standard),
    box-shadow var(--nx-duration-fast) var(--nx-ease-standard);
}

.prompt-grid button.is-selected {
  border-color: color-mix(in srgb, var(--palette-4) 45%, var(--line));
  background: color-mix(in srgb, var(--palette-4) 8%, var(--surface));
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.06);
}

.icon-button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: var(--text);
  transition:
    background var(--nx-duration-fast) var(--nx-ease-standard),
    color var(--nx-duration-fast) var(--nx-ease-standard),
    opacity var(--nx-duration-fast) var(--nx-ease-standard);
}

.icon-button svg.lucide {
  width: 20px;
  height: 20px;
}

.secondary-icon {
  background: var(--surface-muted);
}

.secondary-icon:hover:not(:disabled),
.secondary-icon.listening {
  background: var(--accent-soft);
  color: var(--accent);
}

.send-icon {
  border: 0;
  background: var(--accent);
  color: var(--white);
}

.send-icon:disabled {
  background: var(--surface-muted);
  color: #b8bec7;
  opacity: 1;
}

.chat-composer {
  display: grid;
  gap: 10px;
  width: 100%;
  max-width: 940px;
  margin: 18px 0 20px;
  text-align: center;
}

.chat-composer label {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: var(--nx-font-weight-regular);
}

.input-row {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: var(--surface);
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.04);
}

.input-row-compact {
  grid-template-columns: 1fr auto auto;
}

.input-row input {
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 15px 16px;
  color: var(--text);
}

.panel {
  display: grid;
  gap: 18px;
  min-height: 260px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--nx-radius-lg);
  background: var(--surface);
  box-shadow: 0 14px 44px rgba(17, 24, 39, 0.04);
}

.panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.hero-card {
  display: grid;
  gap: 22px;
  justify-items: center;
  margin-bottom: 24px;
  padding: clamp(20px, 4vw, 42px) 0 28px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.hero-copy {
  width: min(100%, 760px);
  max-width: 760px;
  text-align: center;
}

.metric,
.pill {
  border-radius: var(--nx-radius-pill);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: var(--nx-font-weight-regular);
  padding: 5px 9px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  justify-self: end;
  box-sizing: border-box;
  height: 32px;
  padding: 0 10px 0 8px;
  border-radius: var(--nx-radius-pill);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.status-pill-icon {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  color: inherit;
}

.status-pill-icon svg.lucide {
  font-size: 14px;
  color: currentColor;
  line-height: 1;
}

.status-pill-overdue {
  background: #feecef;
  color: #e11d48;
}

.status-pill-pending {
  background: #fff7ed;
  color: #ea580c;
}

.status-pill-progress {
  background: #ecfdf9;
  color: #0d9488;
}

.status-pill-enrolled {
  background: var(--white);
  color: var(--text);
  border: 1px solid color-mix(in srgb, var(--text) 12%, var(--line));
}

.agent-icon {
  display: grid;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  place-items: center;
  border-radius: var(--nx-radius-sm);
}

.agent-icon svg.lucide {
  font-size: 16px;
  line-height: 1;
}

.agent-icon-career {
  background: color-mix(in srgb, var(--palette-1) 12%, white);
  color: var(--palette-1);
}

.agent-icon-feedback {
  background: color-mix(in srgb, var(--palette-2) 12%, white);
  color: var(--palette-2);
}

.agent-icon-learning {
  background: color-mix(in srgb, var(--palette-3) 12%, white);
  color: var(--palette-3);
}

.agent-icon-travel {
  background: color-mix(in srgb, var(--palette-6) 14%, white);
  color: var(--palette-4);
}

.agent-icon-meeting {
  background: color-mix(in srgb, var(--palette-4) 12%, white);
  color: var(--palette-4);
}

.agent-page-title {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 6px;
}

.agent-page-title .eyebrow {
  margin: 0;
}

.agent-icon-lg {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}

.agent-icon-lg svg.lucide {
  font-size: 18px;
}
