/* ============================================================
   NOVOCENTUS — Creative Workforce OS
   Static frontend prototype stylesheet
   ============================================================ */

/* ---------- Design Tokens ---------- */
:root {
  /* ===== Brand accents (theme-independent) ===== */
  --blue:          #0B7CFF;
  --cyan:          #06B6D4;
  --purple:        #8B5CF6;
  --green:         #22C55E;
  --amber:         #F59E0B;
  --red:           #EF4444;
  --brand:         #FF6A00;   /* NOVOCENTUS logo orange */

  /* ===== Dark theme (default) ===== */
  --bg:            #070C19;
  --sidebar:       #0B1220;
  --card:          #111827;
  --card-2:        #0E1626;
  --border:        #1F2A3D;
  --border-soft:   #16223a;
  --border-hover:  #2a3a55;

  --t1:            #F8FAFC;   /* primary text */
  --t2:            #94A3B8;   /* secondary text */
  --t3:            #64748B;   /* muted text */

  /* tinted accent fills (badges, icon chips) */
  --blue-dim:      rgba(11,124,255,.14);
  --cyan-dim:      rgba(6,182,212,.14);
  --purple-dim:    rgba(139,92,246,.14);
  --green-dim:     rgba(34,197,94,.14);
  --amber-dim:     rgba(245,158,11,.14);
  --red-dim:       rgba(239,68,68,.14);

  /* readable accent text-on-surface (used for colored text, not fills) */
  --blue-ink:      #4FA3FF;
  --cyan-ink:      #2BC4DE;
  --purple-ink:    #A78BFA;
  --green-ink:     #4ADE80;
  --amber-ink:     #FBBF24;
  --red-ink:       #F87171;

  /* surfaces / overlays */
  --topbar-bg:     rgba(7,12,25,.72);
  --nav-bg:        rgba(7,12,25,.8);
  --grad-card:     linear-gradient(135deg, var(--card), var(--card-2));
  --grad-aside:    linear-gradient(160deg, #0A1426, #070C19);
  --grad-band:     linear-gradient(135deg, #0A1A3A, #0B1220);
  --on-accent:     #fff;      /* text on solid blue/purple buttons & bubbles */

  /* shadows */
  --shadow:        0 8px 28px -12px rgba(0,0,0,.6);
  --shadow-pop:    0 18px 40px -14px rgba(0,0,0,.7);
  --shadow-drag:   0 24px 54px -12px rgba(0,0,0,.8);

  /* radii / sizing / spacing */
  --r-sm: 8px;  --r: 12px;  --r-lg: 16px;  --r-xl: 20px;
  --sb-w: 256px;  --tb-h: 66px;
  --sp-1: 6px; --sp-2: 10px; --sp-3: 14px; --sp-4: 18px; --sp-5: 24px; --sp-6: 32px;
  --font: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color-scheme: dark;
}

/* ===== Light theme ===== */
[data-theme="light"] {
  --bg:            #F4F6FB;
  --sidebar:       #FFFFFF;
  --card:          #FFFFFF;
  --card-2:        #F7F9FC;
  --border:        #E2E8F0;
  --border-soft:   #EDF1F7;
  --border-hover:  #CBD5E1;

  --t1:            #0F172A;   /* dark slate on light — strong contrast */
  --t2:            #475569;   /* secondary, AA on white */
  --t3:            #64748B;   /* muted, still AA on white */

  /* slightly stronger tints so colored chips read on white */
  --blue-dim:      rgba(11,124,255,.12);
  --cyan-dim:      rgba(6,182,212,.14);
  --purple-dim:    rgba(139,92,246,.13);
  --green-dim:     rgba(34,197,94,.15);
  --amber-dim:     rgba(245,158,11,.16);
  --red-dim:       rgba(239,68,68,.12);

  /* darker accent inks for text on light surfaces (AA compliant) */
  --blue-ink:      #0B63CC;
  --cyan-ink:      #0E7490;
  --purple-ink:    #6D28D9;
  --green-ink:     #15803D;
  --amber-ink:     #B45309;
  --red-ink:       #DC2626;

  --topbar-bg:     rgba(255,255,255,.78);
  --nav-bg:        rgba(255,255,255,.85);
  --grad-card:     linear-gradient(135deg, #FFFFFF, #F7F9FC);
  --grad-aside:    linear-gradient(160deg, #FFFFFF, #EEF2F9);
  --grad-band:     linear-gradient(135deg, #E8F0FF, #F4F6FB);
  --on-accent:     #fff;

  --shadow:        0 8px 24px -14px rgba(15,23,42,.18);
  --shadow-pop:    0 18px 40px -18px rgba(15,23,42,.22);
  --shadow-drag:   0 24px 54px -16px rgba(15,23,42,.28);
  color-scheme: light;
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--t1);
  -webkit-font-smoothing: antialiased;
  line-height: 1.45;
  font-size: 14px;
}
a { color: inherit; text-decoration: none; }
.ic { width: 1.15em; height: 1.15em; flex: 0 0 auto; display: inline-block; vertical-align: -0.18em; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input { font-family: inherit; }
ul { list-style: none; }
::-webkit-scrollbar { height: 8px; width: 8px; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 8px; }
::-webkit-scrollbar-track { background: transparent; }

/* ============================================================
   APP SHELL
   ============================================================ */
.app { display: none; min-height: 100vh; }
.app.is-active { display: block; }

.app-grid {
  display: grid;
  grid-template-columns: var(--sb-w) 1fr;
  min-height: 100vh;
  transition: grid-template-columns .22s ease;
}
.app-grid.sb-collapsed { grid-template-columns: 76px 1fr; }

/* ---------- Sidebar ---------- */
.sidebar {
  background: var(--sidebar);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  padding: 18px 14px;
  gap: 6px;
}
.brand {
  display: flex; align-items: center; justify-content: space-between;
  padding: 4px 6px 14px;
}
.brand-mark { display: flex; align-items: center; gap: 10px; }
.brand-logo {
  font-weight: 900; font-size: 18px; letter-spacing: 1px;
  color: var(--brand);
  line-height: 1;
}
.brand-logo small { display: block; font-size: 9px; letter-spacing: 3px; font-weight: 800; }
.sb-toggle {
  width: 26px; height: 26px; border-radius: 7px; color: var(--t2);
  display: grid; place-items: center; border: 1px solid var(--border);
}
.sb-toggle:hover { color: var(--t1); background: var(--card); }

.sb-search {
  display: flex; align-items: center; gap: 8px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r-sm); padding: 9px 11px; color: var(--t3);
  margin-bottom: 8px;
}
.sb-search input { background: none; border: none; outline: none; color: var(--t1); width: 100%; font-size: 13px; }
.sb-search input::placeholder { color: var(--t3); }

.nav-group { margin-top: 10px; }
.nav-label {
  font-size: 11px; letter-spacing: 1.4px; font-weight: 700;
  color: var(--t3); padding: 4px 10px 6px; text-transform: uppercase;
}
.nav-item {
  display: flex; align-items: center; gap: 11px;
  padding: 9px 10px; border-radius: var(--r-sm);
  color: var(--t2); font-weight: 500; font-size: 13.5px;
  width: 100%; text-align: left; position: relative;
}
.nav-item:hover { background: var(--card); color: var(--t1); }
.nav-item.active { background: var(--blue-dim); color: var(--blue); }
.nav-item .ico { flex: 0 0 18px; display: grid; place-items: center; }
.nav-item .tag {
  margin-left: auto; font-size: 9.5px; font-weight: 700;
  padding: 2px 7px; border-radius: 20px; background: var(--green-dim); color: var(--green);
}
.sb-collapsed .nav-label,
.sb-collapsed .nav-item span.lbl,
.sb-collapsed .nav-item .tag,
.sb-collapsed .brand-logo small,
.sb-collapsed .sb-search input { display: none; }
.sb-collapsed .brand { justify-content: center; }
.sb-collapsed .sb-search { justify-content: center; }
.sb-collapsed .nav-item { justify-content: center; }

/* ---------- Topbar ---------- */
.main-col { display: flex; flex-direction: column; min-width: 0; }
.topbar {
  height: var(--tb-h); flex: 0 0 var(--tb-h);
  display: flex; align-items: center; gap: 14px;
  padding: 0 24px; border-bottom: 1px solid var(--border);
  background: var(--topbar-bg); backdrop-filter: blur(10px);
  position: sticky; top: 0; z-index: 30;
}
.ws-switch {
  display: flex; align-items: center; gap: 8px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r-sm); padding: 7px 12px; font-weight: 600; font-size: 13px;
}
.ws-switch .chev { color: var(--t3); }
.tb-search {
  flex: 1; max-width: 460px;
  display: flex; align-items: center; gap: 8px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r-sm); padding: 8px 12px; color: var(--t3);
}
.tb-search input { background: none; border: none; outline: none; color: var(--t1); width: 100%; font-size: 13px; }
.tb-search input::placeholder { color: var(--t3); }
.tb-spacer { flex: 1; }
.tb-right { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.icon-btn {
  width: 36px; height: 36px; border-radius: var(--r-sm); color: var(--t2);
  display: grid; place-items: center; position: relative;
}
.icon-btn:hover { background: var(--card); color: var(--t1); }
.icon-btn .dot { position: absolute; top: 8px; right: 9px; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); }
/* segmented language toggle — active option fully filled green */
.lang-seg { display: inline-flex; border: 1px solid var(--border); border-radius: var(--r-sm); overflow: hidden; flex: 0 0 auto; }
.lang-opt { padding: 7px 13px; font-size: 12px; font-weight: 700; letter-spacing: .4px; color: var(--t2); background: var(--card); transition: background .18s, color .18s; }
.lang-opt + .lang-opt { border-left: 1px solid var(--border); }
.lang-opt:hover:not(.on) { color: var(--t1); }
.lang-opt.on { background: var(--green); color: #04210F; }
/* theme toggle: show the icon for the theme you'll switch TO */
.theme-light { display: none; }
[data-theme="light"] .theme-dark { display: none; }
[data-theme="light"] .theme-light { display: inline-flex; }
.tb-user { display: flex; align-items: center; gap: 10px; }
.tb-user .av {
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  display: grid; place-items: center; font-weight: 700; font-size: 13px;
}
.tb-user .meta { line-height: 1.2; }
.tb-user .meta b { font-size: 13px; }
.tb-user .meta small { color: var(--t2); font-size: 12px; }

/* avatar image variant (illustrated avatar) */
.av-img { overflow: hidden; }
.av-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tb-user .meta-name { text-align: right; }
.tb-user .meta-name b { display: block; font-size: 13px; font-weight: 700; }
.tb-user .meta-name small { color: var(--t2); font-size: 12px; }

/* ---------- Dropdown system ---------- */
.dropdown { position: relative; }
.dd-menu {
  position: absolute; top: calc(100% + 10px); z-index: 60;
  min-width: 240px; background: var(--sidebar);
  border: 1px solid var(--border); border-radius: var(--r);
  padding: 8px; box-shadow: 0 24px 60px -20px rgba(0,0,0,.75);
  opacity: 0; transform: translateY(-6px) scale(.98); pointer-events: none;
  transition: opacity .16s ease, transform .16s ease;
}
.dd-left  { left: 0; }
.dd-right { right: 0; min-width: 236px; }
.dropdown.open .dd-menu { opacity: 1; transform: none; pointer-events: auto; }
.dd-label { font-size: 12px; font-weight: 700; letter-spacing: .6px; color: var(--t2); padding: 6px 10px 8px; text-transform: none; }
.dd-head { display: flex; align-items: center; gap: 11px; padding: 8px 10px 10px; }
.dd-head .av { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg,var(--blue),var(--purple)); display:grid; place-items:center; font-weight:700; }
.dd-sep { height: 1px; background: var(--border); margin: 6px 4px; }
.dd-item {
  display: flex; align-items: center; gap: 11px; width: 100%; text-align: left;
  padding: 10px 11px; border-radius: var(--r-sm); color: var(--t1);
  font-size: 13.5px; font-weight: 500;
}
.dd-item:hover { background: var(--card); }
.dd-item .ic { color: var(--t2); width: 17px; height: 17px; flex: 0 0 17px; }
.dd-cta { color: var(--blue); font-weight: 600; }
.dd-cta .ic { color: var(--blue); }
.dd-danger { color: var(--red); }
.dd-danger .ic { color: var(--red); }

/* workspace items */
.ws-item { gap: 12px; }
.ws-ico { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; flex: 0 0 34px; }
.ws-ico .ic { width: 18px; height: 18px; }
.ws-meta { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.ws-meta b { font-size: 13.5px; font-weight: 700; }
.ws-meta small { color: var(--t2); font-size: 12px; }
.ws-check { margin-left: auto; color: var(--blue); }
.ws-check .ic { width: 16px; height: 16px; }
.ws-item:not(.active) .ws-check { display: none; }

/* ---------- Main / Page ---------- */
.main { padding: 30px 34px 90px; overflow: auto; }
.page { display: none; animation: fade .25s ease; }
.page.is-active { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.page-head { margin-bottom: 26px; }
.page-head .row { display: flex; align-items: flex-start; gap: 16px; justify-content: space-between; flex-wrap: wrap; }
.page-title { font-size: 32px; font-weight: 800; letter-spacing: -.8px; line-height: 1.1; }
.page-sub { color: var(--t2); margin-top: 6px; font-size: 16px; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin: 32px 0 16px; flex-wrap: wrap; gap: 8px; }
.section-head h2 { font-size: 24px; font-weight: 800; letter-spacing: -.5px; }
.section-head p { color: var(--t2); font-size: 15px; margin-top: 4px; }

/* ============================================================
   PRIMITIVES
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 0 15px; min-height: 38px; border-radius: var(--r-sm);
  font-weight: 600; font-size: 13px; line-height: 1;
  border: 1px solid var(--border); background: var(--card); color: var(--t1);
  white-space: nowrap; transition: filter .15s, background .15s, border-color .15s;
}
.btn:hover { background: var(--card-2); }
.btn-primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn-primary:hover { filter: brightness(1.08); background: var(--blue); }
.btn-cyan { background: var(--cyan); border-color: var(--cyan); color: #042027; }
.btn-cyan:hover { filter: brightness(1.06); }
.btn-block { width: 100%; }
.btn-sm { min-height: 32px; padding: 0 12px; font-size: 12px; }
.btn .ic { width: 16px; height: 16px; flex: 0 0 16px; }
.btn-sm .ic { width: 15px; height: 15px; flex: 0 0 15px; }

.badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 20px;
  background: var(--border); color: var(--t2); white-space: nowrap;
}
.badge.blue   { background: var(--blue-dim);   color: var(--blue-ink); }
.badge.cyan   { background: var(--cyan-dim);   color: var(--cyan-ink); }
.badge.purple { background: var(--purple-dim); color: var(--purple-ink); }
.badge.green  { background: var(--green-dim);  color: var(--green-ink); }
.badge.amber  { background: var(--amber-dim);  color: var(--amber-ink); }
.badge.red    { background: var(--red-dim);    color: var(--red-ink); }

.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  font-size: 12.5px; font-weight: 600; padding: 7px 14px; border-radius: 20px;
  background: var(--card); border: 1px solid var(--border); color: var(--t2);
}
.chip:hover { color: var(--t1); }
.chip.active { background: var(--blue); border-color: var(--blue); color: #fff; }

.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-pill {
  font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: var(--r-sm);
  background: var(--card-2); border: 1px solid var(--border); color: var(--t2);
}

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 18px; overflow-x: auto; }
.tab {
  padding: 10px 14px; font-size: 13.5px; font-weight: 600; color: var(--t2);
  border-bottom: 2px solid transparent; white-space: nowrap;
}
.tab.active { color: var(--t1); border-bottom-color: var(--blue); }

.searchbar {
  display: flex; align-items: center; gap: 9px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r); padding: 12px 15px; color: var(--t3); flex: 1; min-width: 0;
}
.searchbar input { background: none; border: none; outline: none; color: var(--t1); width: 100%; font-size: 13.5px; }
.searchbar input::placeholder { color: var(--t3); }

.select {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r); padding: 11px 14px; font-size: 13px; font-weight: 600; color: var(--t2);
}
.select .chev { color: var(--t3); }

/* ---------- Global Card ---------- */
.card {
  display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 18px;
}
.card-header { margin-bottom: 14px; }
.card-content { flex: 1; }
.card-actions { margin-top: auto; padding-top: 14px; display: flex; gap: 8px; }
.card:hover { border-color: var(--border-hover); }

/* generic grid helpers */
.grid { display: grid; gap: 16px; }
.divider { height: 1px; background: var(--border); margin: 14px 0; }

/* ---------- Reusable utilities (replace repeated inline styles) ---------- */
.u-row        { display: flex; align-items: center; gap: 10px; }
.u-between    { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.u-col        { display: flex; flex-direction: column; }
.u-fill       { flex: 1; min-width: 0; }
.u-wrap       { flex-wrap: wrap; }
.u-mt         { margin-top: 16px; }
.u-muted      { color: var(--t2); font-size: 12px; }
.u-hint       { color: var(--t3); font-size: 12px; }
.u-strong     { font-weight: 700; }
.u-title-sm   { font-size: 13px; font-weight: 700; }
.u-line       { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 13px; margin: 6px 0; }
.u-line .k    { color: var(--t2); }
.u-line .v    { font-weight: 700; }
.u-divider-b  { padding-bottom: 12px; border-bottom: 1px solid var(--border-soft); }
.u-toolbar    { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 18px 0; }

/* ---------- Metric Card ---------- */
.metric {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 18px; display: flex; flex-direction: column; gap: 12px;
  min-width: 0;
}
.metric .top { display: flex; align-items: flex-start; justify-content: space-between; }
.m-ico {
  width: 44px; height: 44px; border-radius: 10px;
  display: grid; place-items: center; flex: 0 0 auto;
}
.m-ico .ic { width: 20px; height: 20px; }
.metric .m-ico {
  width: 40px; height: 40px; border-radius: var(--r-sm);
  display: grid; place-items: center; background: var(--blue-dim); color: var(--blue);
}
.metric.cyan   .m-ico { background: var(--cyan-dim);   color: var(--cyan); }
.metric.green  .m-ico { background: var(--green-dim);  color: var(--green); }
.metric.amber  .m-ico { background: var(--amber-dim);  color: var(--amber); }
.metric.red    .m-ico { background: var(--red-dim);    color: var(--red); }
.metric.purple .m-ico { background: var(--purple-dim); color: var(--purple); }
.metric .delta { font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; gap: 3px; }
.metric .delta.up { color: var(--green); }
.metric .delta.down { color: var(--red); }
.metric .m-label { color: var(--t2); font-size: 14px; }
.metric .m-value { font-size: 28px; font-weight: 800; letter-spacing: -.5px; }
.metric .m-sub { color: var(--t3); font-size: 13px; }

/* ---------- Insight Card ---------- */
.insight {
  background: var(--grad-card);
  border: 1px solid var(--border); border-radius: var(--r-lg); padding: 18px;
  display: flex; flex-direction: column; gap: 6px; min-width: 0;
  position: relative; overflow: hidden;
}
.insight::before { content: ""; position: absolute; inset: 0; opacity: .5;
  background: radial-gradient(120px 80px at 18% 0%, var(--accent, var(--cyan-dim)), transparent); }
.insight > * { position: relative; }
.insight .i-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.insight .i-icon { width: 38px; height: 38px; border-radius: var(--r-sm); display: grid; place-items: center; }
.insight.cyan   { --accent: var(--cyan-dim); }   .insight.cyan   .i-icon { background: var(--cyan-dim); color: var(--cyan); }
.insight.green  { --accent: var(--green-dim); }  .insight.green  .i-icon { background: var(--green-dim); color: var(--green); }
.insight.amber  { --accent: var(--amber-dim); }  .insight.amber  .i-icon { background: var(--amber-dim); color: var(--amber); }
.insight.purple { --accent: var(--purple-dim); } .insight.purple .i-icon { background: var(--purple-dim); color: var(--purple); }
.insight h4 { font-size: 15px; font-weight: 700; }

/* ---------- Progress bar ---------- */
.bar { height: 6px; border-radius: 6px; background: var(--border); overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 6px; background: var(--blue); }
.bar.green > i { background: var(--green); }
.bar.amber > i { background: var(--amber); }
.bar.red > i { background: var(--red); }
.bar.cyan > i { background: var(--cyan); }

/* ---------- Project Card ---------- */
.proj .card-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.proj h3 { font-size: 17px; font-weight: 800; letter-spacing: -.3px; }
.proj .client { color: var(--t2); font-size: 12.5px; margin-top: 3px; }
.proj .pwrap { margin: 4px 0 14px; }
.proj .prow { display: flex; justify-content: space-between; font-size: 12px; color: var(--t2); margin-bottom: 6px; }
.proj .meta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 10px; }
.proj .mi .k { color: var(--t2); font-size: 13px; }
.proj .mi .v { font-weight: 700; font-size: 15px; margin-top: 2px; }
.proj .foot { display: flex; justify-content: space-between; align-items: center; }
.proj .foot .lab { color: var(--t2); font-size: 12.5px; display: flex; align-items: center; gap: 6px; }

/* ---------- Client Card ---------- */
.client-c .card-header { display: flex; align-items: flex-start; gap: 12px; }
.client-c .c-logo {
  width: 42px; height: 42px; border-radius: var(--r-sm); flex: 0 0 42px;
  background: var(--blue-dim); color: var(--blue); display: grid; place-items: center;
}
.client-c h3 { font-size: 16px; font-weight: 800; }
.client-c .ind { color: var(--t2); font-size: 12.5px; }
.client-c .kv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.client-c .kv .k { color: var(--t2); font-size: 13px; }
.client-c .kv .v { font-weight: 700; font-size: 14px; margin-top: 2px; display: flex; align-items: center; gap: 5px; }
.client-c .na { margin-top: 14px; }
.client-c .na .k { color: var(--t2); font-size: 13px; }
.client-c .na .v { font-size: 14px; margin-top: 3px; }

/* ---------- Talent Card ---------- */
.talent .card-header { display: flex; align-items: flex-start; gap: 12px; }
.talent .av {
  width: 42px; height: 42px; border-radius: 50%; flex: 0 0 42px;
  display: grid; place-items: center; font-weight: 800; font-size: 14px;
  background: linear-gradient(135deg, var(--blue), var(--purple)); color: #fff;
}
.talent .av.ai { background: var(--purple-dim); color: var(--purple); border-radius: var(--r-sm); }
.talent h3 { font-size: 15px; font-weight: 800; }
.talent .role { color: var(--t2); font-size: 12px; }
/* base stat row (used by talent, agent, finance cards) */
.stat { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; margin: 7px 0; gap: 10px; }
.stat .k { color: var(--t2); display: flex; align-items: center; gap: 6px; }
.stat .v { font-weight: 700; text-align: right; }

/* ---------- AI Agent Card ---------- */
.agent .card-header { display: flex; align-items: flex-start; gap: 12px; }
.agent .a-ico { width: 40px; height: 40px; border-radius: var(--r-sm); flex: 0 0 40px;
  background: var(--purple-dim); color: var(--purple); display: grid; place-items: center; }
.agent h3 { font-size: 15px; font-weight: 800; }
.agent .role { color: var(--t2); font-size: 12px; }
.agent .bestfor .k { color: var(--t2); font-size: 13px; }
.agent .bestfor .v { font-weight: 700; font-size: 14px; margin: 3px 0 10px; }

/* ---------- Role Requirement Card ---------- */
.role-c { gap: 4px; }
.role-c .card-header { display: flex; justify-content: space-between; align-items: flex-start; }
.role-c h4 { font-size: 14.5px; font-weight: 800; }
.role-c .supplied { color: var(--t2); font-size: 13px; margin-top: 2px; }
.role-c .assigned { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; margin-top: 8px; }
.role-c .fit { font-size: 12px; color: var(--t2); margin-top: 8px; }

/* ---------- Task Card ---------- */
.task {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--r);
  padding: 13px; display: flex; flex-direction: column; gap: 9px;
}
.task .t-title { font-weight: 600; font-size: 13.5px; }
.task .t-foot { display: flex; align-items: center; justify-content: space-between; }
.task .t-client { color: var(--t2); font-size: 12px; }

.kanban { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.kan-col .kc-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.kan-col .kc-head b { font-size: 13.5px; }
.kan-col .kc-head .badge { font-size: 11px; }
.kan-list { display: flex; flex-direction: column; gap: 12px; }

/* ---------- Approval Card ---------- */
.approval {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 16px; display: flex; flex-direction: column; gap: 12px; min-width: 0;
}
.approval .a-head { display: flex; gap: 11px; align-items: flex-start; }
.approval .a-ico { width: 34px; height: 34px; border-radius: var(--r-sm); flex: 0 0 34px;
  background: var(--blue-dim); color: var(--blue); display: grid; place-items: center; }
.approval h4 { font-size: 14px; font-weight: 700; }
.approval .a-sub { color: var(--t2); font-size: 13px; }
.approval .a-actions { display: flex; gap: 8px; margin-top: auto; }

/* ---------- Cost Summary Card ---------- */
.cost .crow { display: flex; justify-content: space-between; padding: 9px 0; font-size: 13.5px; border-bottom: 1px solid var(--border-soft); }
.cost .crow:last-of-type { border-bottom: none; }
.cost .crow .k { color: var(--t2); display: flex; align-items: center; gap: 7px; }
.cost .crow .v { font-weight: 700; }
.cost .crow.total .k, .cost .crow.total .v { color: var(--t1); font-weight: 800; }
.cost .crow.profit .v { color: var(--green); }
.cost .margin { margin-top: 14px; }
.cost .margin .top { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 7px; }

/* ============================================================
   LAYOUT GRIDS (responsive)
   ============================================================ */
/* ---------- Reusable responsive grids ----------
   .grid-auto adapts column count to available width (no fixed counts).
   Override density per use with --col-min inline or a modifier class. */
.kpi-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.insight-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.proj-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }

.split-2 { display: grid; grid-template-columns: 1fr 320px; gap: 18px; align-items: start; }
.split-2 > * { min-width: 0; }
.detail-split { display: grid; grid-template-columns: 1fr 300px; gap: 20px; align-items: start; }
.detail-split > * { min-width: 0; }

/* ---------- Carousel ---------- */
.carousel {
  display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: 6px; -webkit-overflow-scrolling: touch;
}
.carousel > * { scroll-snap-align: start; }

/* ============================================================
   GLOBAL SLIDER — applies on ALL screen sizes (per slider spec)
   Wrap any card row with .slider; the track gets .slide-track.
   JS adds prev/next controls + arrow visibility.
   ============================================================ */
.slider { position: relative; }
.slider .slide-track {
  display: flex; gap: 16px; overflow-x: auto; scroll-behavior: smooth;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  padding: 4px 2px 14px;
  align-items: stretch;             /* equal-height cards in a row */
  scrollbar-width: none;            /* Firefox */
}
.slider .slide-track::-webkit-scrollbar { display: none; }  /* WebKit */
/* each card keeps an intrinsic width so multiple show on desktop and swipe on mobile */
.slider .slide-track > * {
  scroll-snap-align: start;
  flex: 0 0 var(--slide-w, 320px);
  max-width: var(--slide-w, 320px);
  height: auto;                     /* fill stretched track height */
}
/* width presets per content type */
.slider.s-kpi      { --slide-w: 230px; }
.slider.s-insight  { --slide-w: 300px; }
.slider.s-project  { --slide-w: 360px; }
.slider.s-talent   { --slide-w: 300px; }
.slider.s-agent    { --slide-w: 300px; }
.slider.s-client   { --slide-w: 360px; }
.slider.s-approval { --slide-w: 360px; }
.slider.s-team     { --slide-w: 300px; }
.slider.s-offer,
.slider.s-proposal,
.slider.s-invoice  { --slide-w: 320px; }

/* arrow controls */
.slider .slide-btn {
  position: absolute; top: 38%; transform: translateY(-50%);
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--card); border: 1px solid var(--border);
  color: var(--t1); display: grid; place-items: center; z-index: 5;
  box-shadow: var(--shadow); transition: opacity .18s, background .18s, transform .12s;
}
.slider .slide-btn:hover { background: var(--blue); border-color: var(--blue); }
.slider .slide-btn:active { transform: translateY(-50%) scale(.92); }
.slider .slide-btn.prev { left: -8px; }
.slider .slide-btn.next { right: -8px; }
.slider .slide-btn.next .ic { transform: rotate(180deg); }
.slider .slide-btn[disabled] { opacity: 0; pointer-events: none; }
.slider .slide-btn .ic { width: 18px; height: 18px; }

@media (max-width: 768px) {
  /* hide arrows on touch; swipe only */
  .slider .slide-btn { display: none; }
  .slider .slide-track > * {
    flex-basis: 84%; max-width: 84%;
  }
  .slider.s-kpi .slide-track > * { flex-basis: 64%; max-width: 64%; }
}

/* ============================================================
   FLOATING INSIGHT PANELS (draggable + minimize to bubble)
   ============================================================ */
@keyframes fp-floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes fp-pop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.fp {
  position: fixed; width: 300px; z-index: 70;
  background: var(--grad-card);
  border: 1px solid var(--border); border-radius: var(--r-lg);
  box-shadow: var(--shadow-pop);
  display: flex; flex-direction: column; max-height: 72vh;
}
.fp.fp-idle { animation: fp-floaty 4.5s ease-in-out infinite; }
.fp.fp-pop { animation: fp-pop .22s ease-out; }
.fp-grip {
  display: flex; align-items: center; gap: 9px; padding: 12px 14px;
  border-bottom: 1px solid var(--border-soft); cursor: grab; user-select: none; flex: 0 0 auto;
}
.fp-grip:active { cursor: grabbing; }
.fp-grip .fp-drag { color: var(--t3); flex: 0 0 auto; }
.fp-grip .fp-title { font-size: 14px; font-weight: 700; flex: 1; display: flex; align-items: center; gap: 7px; min-width: 0; }
.fp-grip .fp-title .ic { width: 17px; height: 17px; }
.fp-min { width: 26px; height: 26px; border-radius: 7px; color: var(--t2); display: grid; place-items: center; flex: 0 0 auto; }
.fp-min:hover { background: var(--card); color: var(--t1); }
.fp-body { padding: 12px 14px; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; }
.fp.dragging { animation: none; box-shadow: var(--shadow-drag); transition: none; }

/* corner bubble (minimized state) — fixed at right-middle, click to restore */
.fp-bubble {
  position: fixed; width: 54px; height: 54px; border-radius: 50%;
  background: var(--purple); color: #fff; display: none; place-items: center;
  box-shadow: 0 12px 28px -6px rgba(139,92,246,.6); z-index: 71; cursor: pointer;
}
.fp-bubble.show { display: grid; }
.fp-bubble:hover { filter: brightness(1.08); }
.fp-bubble .ic { width: 22px; height: 22px; }
.fp-bubble .fp-count {
  position: absolute; top: -3px; right: -3px; min-width: 18px; height: 18px; padding: 0 4px;
  border-radius: 9px; background: var(--red); color: #fff; font-size: 10px; font-weight: 700;
  display: grid; place-items: center;
}
.fp-accent-cyan   { color: var(--cyan); }
.fp-accent-purple { color: var(--purple); }
.fp-accent-blue   { color: var(--blue); }

@media (max-width: 1024px) {
  /* narrow screens: panels render inline, no floating/minimize */
  .fp { position: static; width: auto; max-height: none; animation: none; box-shadow: none; }
  .fp-grip { cursor: default; }
  .fp-min, .fp-drag { display: none; }
  .fp-bubble { display: none !important; }
}

/* ---------- Dev Navigation (FAB + panel) ---------- */
.devnav { position: fixed; right: 22px; bottom: 22px; z-index: 80; }
.fab {
  position: fixed; right: 22px; bottom: 22px; width: 52px; height: 52px;
  border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center;
  box-shadow: 0 12px 30px -8px rgba(11,124,255,.6); z-index: 81;
  transition: transform .2s ease, opacity .2s ease;
}
.fab .ic { width: 22px; height: 22px; }
.fab:hover { filter: brightness(1.08); }
.fab-close { transform: rotate(45deg) scale(0); opacity: 0; pointer-events: none; }
.devnav.open .fab { transform: scale(0); opacity: 0; pointer-events: none; }
.devnav.open .fab-close { transform: rotate(45deg) scale(1); opacity: 1; pointer-events: auto; }

.devnav-panel {
  position: absolute; right: 0; bottom: 66px; width: 232px;
  background: var(--sidebar); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 14px; box-shadow: 0 30px 70px -24px rgba(0,0,0,.8);
  opacity: 0; transform: translateY(14px) scale(.96); transform-origin: bottom right;
  pointer-events: none; transition: opacity .2s ease, transform .2s ease;
}
.devnav.open .devnav-panel { opacity: 1; transform: none; pointer-events: auto; }
.dn-head { display: flex; align-items: center; gap: 11px; padding: 4px 6px 2px; }
.dn-head .dn-ico { width: 32px; height: 32px; border-radius: 9px; background: var(--blue-dim); color: var(--blue); display: grid; place-items: center; flex: 0 0 32px; }
.dn-head .dn-ico .ic { width: 17px; height: 17px; }
.dn-head b { font-size: 13.5px; font-weight: 700; display: block; }
.dn-head small { color: var(--t2); font-size: 12px; }
.dn-sep { height: 1px; background: var(--border); margin: 12px 2px; }
.dn-item {
  display: flex; align-items: center; gap: 11px; width: 100%; text-align: left;
  padding: 9px 8px; border-radius: var(--r-sm); color: var(--t1); font-size: 13px; font-weight: 500;
}
.dn-item:hover { background: var(--card); }
.dn-item .ic { color: var(--blue); width: 16px; height: 16px; flex: 0 0 16px; }

@media (max-width: 768px){ .devnav { bottom: 80px; } }

/* ============================================================
   MOBILE BOTTOM NAV
   ============================================================ */
.bottom-nav { display: none; }
@media (max-width: 768px) {
  .bottom-nav {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    background: var(--sidebar); border-top: 1px solid var(--border);
    padding: 8px 6px calc(8px + env(safe-area-inset-bottom));
    justify-content: space-around;
  }
  .bn-item {
    display: flex; flex-direction: column; align-items: center; gap: 3px;
    color: var(--t3); font-size: 10px; font-weight: 600; flex: 1;
  }
  .bn-item.active { color: var(--blue); }
}

/* ============================================================
   AUTH PAGES
   ============================================================ */
.auth { display: none; min-height: 100vh; }
.auth.is-active { display: grid; }
.auth { grid-template-columns: 1fr 1fr; }
.auth-form-side { display: flex; align-items: center; justify-content: center; padding: 40px; }
.auth-form { width: 100%; max-width: 380px; }
.auth-form .brand-logo { font-size: 22px; margin-bottom: 28px; }
.auth-form h1 { font-size: 30px; font-weight: 800; }
.auth-form .sub { color: var(--t2); margin: 6px 0 26px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 7px; }
.field input {
  width: 100%; background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r-sm); padding: 12px 13px; color: var(--t1); font-size: 14px; outline: none;
}
.field input:focus { border-color: var(--blue); }
.field input::placeholder { color: var(--t3); }
.auth-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; font-size: 13px; }
.auth-row label { display: flex; align-items: center; gap: 7px; color: var(--t2); }
.auth-row a { color: var(--blue); font-weight: 600; }
.or { display: flex; align-items: center; gap: 12px; color: var(--t3); font-size: 12px; margin: 18px 0; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.auth-foot { text-align: center; margin-top: 20px; color: var(--t2); font-size: 13px; }
.auth-foot a { color: var(--blue); font-weight: 700; }
.auth-aside {
  background: var(--grad-aside);
  border-left: 1px solid var(--border);
  display: flex; flex-direction: column; justify-content: center; gap: 16px; padding: 60px;
}
.auth-aside h2 { font-size: 26px; font-weight: 800; margin-bottom: 8px; }
.aside-card {
  display: flex; align-items: center; gap: 14px;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 16px;
}
.aside-card .ac-ico { width: 44px; height: 44px; border-radius: var(--r-sm); display: grid; place-items: center; }
.aside-card b { font-size: 16px; }
.aside-card small { color: var(--t2); display: block; }

/* sign-up checklist + mini cards */
.aside-check { display: flex; align-items: flex-start; gap: 12px; }
.aside-check .ac-tick { color: var(--blue); flex: 0 0 auto; margin-top: 1px; }
.aside-check .ac-tick .ic { width: 20px; height: 20px; }
.aside-check b { font-size: 15px; font-weight: 700; }
.aside-check small { color: var(--t2); display: block; font-size: 12.5px; margin-top: 2px; }
.aside-mini { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.aside-mini .card { min-height: 120px; }
.field-hint { display: block; color: var(--t2); font-size: 12px; margin-top: 5px; }
.auth-error { color: var(--red); font-size: 13px; padding: 10px 14px; background: var(--red-dim); border-radius: var(--r-sm); margin-bottom: 12px; }
.auth-foot a { color: var(--blue); cursor: pointer; text-decoration: underline; }
.auth-foot a:hover { color: var(--blue-ink); }
/* password eye toggle */
.pw-field { position: relative; }
.pw-field input { padding-right: 40px; }
.pw-eye { position: absolute; right: 8px; top: 34px; color: var(--t3); padding: 4px; cursor: pointer; }
.pw-eye:hover { color: var(--t1); }
.pw-eye .ic { width: 18px; height: 18px; }
/* password strength + match */
.pw-strength, .pw-match { font-size: 12px; margin-top: 6px; display: flex; flex-wrap: wrap; gap: 4px 10px; }
.pw-strength .rule { color: var(--t3); }
.pw-strength .rule.pass { color: var(--green); }
.pw-strength .rule.fail { color: var(--red); }
.pw-match.ok { color: var(--green); }
.pw-match.fail { color: var(--red); }

/* ── Modal ─────────────────────────────────────────── */
.modal-overlay { position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,.6); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; padding: 24px; }
.modal { background: var(--card); border: 1px solid var(--border); border-radius: var(--r-lg); width: 100%; max-width: 520px; max-height: 85vh; overflow-y: auto; padding: 28px; box-shadow: var(--shadow-pop); }
.modal h2 { font-size: 22px; font-weight: 800; margin-bottom: 20px; }
.modal .field { margin-bottom: 16px; }
.modal .field label { display: block; font-size: 13px; font-weight: 600; color: var(--t2); margin-bottom: 6px; }
.modal .field input, .modal .field select, .modal .field textarea { width: 100%; padding: 10px 14px; border-radius: var(--r-sm); border: 1px solid var(--border); background: var(--bg); color: var(--t1); font-size: 14px; font-family: var(--font); }
.modal .field input:focus, .modal .field select:focus, .modal .field textarea:focus { border-color: var(--blue); outline: none; }
.modal .field textarea { min-height: 80px; resize: vertical; }
.modal .field select { appearance: none; cursor: pointer; }
.modal .modal-actions { display: flex; gap: 10px; margin-top: 24px; }
.modal .modal-actions .btn { flex: 1; }
.modal-sec { font-size: 12px; font-weight: 700; color: var(--t3); text-transform: uppercase; letter-spacing: .6px; margin: 20px 0 10px; padding-top: 16px; border-top: 1px solid var(--border); }
.modal-sec:first-of-type { border-top: none; margin-top: 0; padding-top: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ============================================================
   LANDING
   ============================================================ */
.landing { display: none; }
.landing.is-active { display: block; }
.lp-nav {
  display: flex; align-items: center; gap: 24px; padding: 18px 40px;
  border-bottom: 1px solid var(--border); position: sticky; top: 0; background: var(--nav-bg); backdrop-filter: blur(10px); z-index: 30;
}
.lp-nav .links { display: flex; gap: 24px; margin-left: 30px; color: var(--t2); font-size: 13.5px; font-weight: 500; }
.lp-nav .links a:hover { color: var(--t1); }
.lp-nav .spacer { flex: 1; }
.lp-hero { text-align: center; padding: 80px 24px 60px; max-width: 880px; margin: 0 auto; }
.lp-hero .badge { margin-bottom: 22px; font-size: 14px; padding: 6px 16px; }
.lp-hero h1 { font-size: 52px; font-weight: 800; letter-spacing: -1.5px; line-height: 1.08; }
.lp-hero p { color: var(--t2); font-size: 17px; max-width: 620px; margin: 18px auto 30px; }
.lp-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.lp-section { max-width: 1080px; margin: 0 auto; padding: 60px 24px; }
.lp-section h2 { text-align: center; font-size: 32px; font-weight: 800; letter-spacing: -.6px; }
.lp-section .lead { text-align: center; color: var(--t2); margin: 10px auto 36px; max-width: 560px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pill-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.pill-grid .pill {
  display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 22px 14px; font-weight: 600; font-size: 13.5px;
  transition: border-color .16s, transform .16s;
}
.pill-grid .pill:hover { border-color: var(--blue); transform: translateY(-2px); }
.pill-grid .pill .ic { width: 26px; height: 26px; color: var(--blue); }
.lp-band {
  text-align: center; padding: 70px 24px; margin: 40px auto; max-width: 1080px;
  background: var(--grad-band); border: 1px solid var(--border); border-radius: var(--r-xl);
}
.lp-band h2 { font-size: 34px; font-weight: 800; letter-spacing: -.6px; }
.lp-band p { color: var(--t2); max-width: 540px; margin: 14px auto 26px; }
.lp-foot { border-top: 1px solid var(--border); padding: 30px 40px; color: var(--t3); font-size: 13px; text-align: center; }

/* ---------- Landing: hero glow + product mockup ---------- */
.lp-hero {
  position: relative; max-width: 1080px;
}
.lp-hero::before {
  content: ""; position: absolute; left: 50%; top: -40px; transform: translateX(-50%);
  width: 720px; height: 420px; pointer-events: none; z-index: -1;
  background: radial-gradient(60% 60% at 50% 30%, rgba(11,124,255,.22), transparent 70%),
              radial-gradient(50% 50% at 70% 60%, rgba(139,92,246,.16), transparent 70%);
  filter: blur(12px);
}
.lp-mock {
  max-width: 960px; margin: 40px auto 0; padding: 18px;
  background: linear-gradient(180deg, rgba(17,24,39,.9), rgba(11,18,32,.9));
  border: 1px solid var(--border); border-radius: var(--r-xl);
  box-shadow: 0 40px 80px -40px rgba(0,0,0,.8); text-align: left;
}
.lp-mock .mock-bar { display:flex; align-items:center; justify-content:space-between; padding: 4px 6px 14px; border-bottom: 1px solid var(--border-soft); margin-bottom: 14px; }
.lp-mock .mock-bar b { font-size: 13px; display:flex; align-items:center; gap:8px; }
.lp-mock .mock-bar .badge { font-size: 12px; }
.lp-mock-grid { display: grid; grid-template-columns: 2fr 1.4fr 1.4fr; gap: 12px; }
.lp-mc { background: var(--card); border: 1px solid var(--border); border-radius: var(--r); padding: 14px; }
.lp-mc h5 { font-size: 13px; font-weight: 700; }
.lp-mc .s { color: var(--t2); font-size: 12px; margin-top: 2px; }
.lp-mc .v { font-size: 18px; font-weight: 800; margin-top: 6px; }
.lp-mc .v.g { color: var(--green); }
.lp-mock-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.lp-mc .bar { margin-top: 8px; }

/* ---------- Landing: section variants ---------- */
.lp-section.tight { padding-top: 30px; }
.lp-eyebrow { text-align:center; color: var(--blue); font-weight:700; font-size:12.5px; letter-spacing:1.5px; text-transform:uppercase; margin-bottom:10px; }
.prob-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.prob-grid .prob { text-align:center; padding: 26px 18px; }
.prob .p-ico { width:52px; height:52px; border-radius:14px; display:grid; place-items:center; margin:0 auto 14px; background:var(--red-dim); color:var(--red); }
.prob .p-ico .ic, .hybrid .h-ico .ic, .wl .w-ico .ic { width:22px; height:22px; }
.prob h3 { font-size:16px; font-weight:800; }
.prob p { color: var(--t2); font-size:13px; margin-top:8px; }

/* feature pills already styled; persona cards */
.persona-grid { display:grid; grid-template-columns: repeat(4,1fr); gap:16px; }
.persona { position:relative; }
.persona.feat { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue) inset, 0 20px 50px -30px var(--blue); }
.persona .pop { position:absolute; top:-10px; right:14px; }
.persona h3 { font-size:15px; font-weight:800; margin-bottom:10px; }
.persona li { display:flex; align-items:center; gap:8px; color:var(--t2); font-size:12.5px; padding:5px 0; }
.persona li .ic { color: var(--green); width:15px; height:15px; }

/* hybrid workforce 3-col */
.hybrid-grid { display:grid; grid-template-columns: repeat(3,1fr); gap:16px; }
.hybrid h3 { font-size:16px; font-weight:800; display:flex; align-items:center; gap:10px; }
.hybrid .h-ico { width:40px; height:40px; border-radius:10px; display:grid; place-items:center; }
.hybrid li { color:var(--t2); font-size:12.5px; padding:5px 0; display:flex; gap:8px; align-items:center; }
.hybrid li::before { content:""; width:5px; height:5px; border-radius:50%; background:var(--t3); flex:0 0 auto; }

/* financial strip */
.fin-strip { display:grid; grid-template-columns: repeat(4,1fr); gap:14px; }
.fin-strip .fin { text-align:left; }
.fin .k { color: var(--t3); font-size:12px; }
.fin .v { font-size:24px; font-weight:800; margin-top:6px; }
.fin .v.g { color: var(--green); }

/* white-label 2x2 */
.wl-grid { display:grid; grid-template-columns: repeat(2,1fr); gap:16px; }
.wl h3 { font-size:15px; font-weight:800; display:flex; align-items:center; gap:10px; }
.wl p { color:var(--t2); font-size:13px; margin-top:8px; }
.wl .w-ico { width:40px; height:40px; border-radius:10px; display:grid; place-items:center; background:var(--blue-dim); color:var(--blue); }

/* rich footer */
.lp-foot-rich { border-top:1px solid var(--border); padding:48px 40px 30px; max-width:1200px; margin:0 auto; }
.lp-foot-cols { display:grid; grid-template-columns: 1.4fr repeat(4,1fr); gap:30px; }
.lp-foot-cols h6 { font-size:12px; text-transform:uppercase; letter-spacing:1px; color:var(--t3); margin-bottom:12px; }
.lp-foot-cols a { display:block; color:var(--t2); font-size:13px; padding:5px 0; }
.lp-foot-cols a:hover { color:var(--t1); }
.lp-foot-bottom { border-top:1px solid var(--border); margin-top:30px; padding-top:20px; display:flex; justify-content:space-between; color:var(--t3); font-size:12.5px; flex-wrap:wrap; gap:10px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1200px) {
  .feature-grid { grid-template-columns: 1fr; }
  .pill-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1024px) {
  .split-2, .detail-split { grid-template-columns: 1fr; }
  .kanban { grid-template-columns: repeat(2, 1fr); }
  .lp-hero h1 { font-size: 40px; }
  .persona-grid { grid-template-columns: repeat(2,1fr); }
  .lp-mock-grid { grid-template-columns: 1fr; }
  .lp-foot-cols { grid-template-columns: 1fr 1fr; }
}

/* tablet/mobile */
@media (max-width: 768px) {
  :root { --tb-h: 56px; }
  .app-grid { grid-template-columns: 1fr; }
  .app-grid.sb-collapsed { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .main { padding: 18px 16px 96px; }
  .page-title { font-size: 24px; }
  .topbar { padding: 0 14px; gap: 10px; }
  .ws-switch .lbl, .tb-user .meta { display: none; }
  .tb-search { max-width: none; }

  .kanban { display: flex; overflow-x: auto; gap: 14px; }
  .kan-col { flex: 0 0 80%; }

  .auth { grid-template-columns: 1fr; }
  .auth-aside { display: none; }

  .lp-nav { padding: 14px 16px; }
  .lp-nav .links { display: none; }
  .lp-hero { padding: 50px 16px 30px; }
  .lp-hero h1 { font-size: 32px; }
  .pill-grid { grid-template-columns: repeat(2, 1fr); }
  .prob-grid, .persona-grid, .hybrid-grid, .wl-grid, .fin-strip,
  .lp-mock-grid, .lp-mock-row2 { grid-template-columns: 1fr; }
  .lp-foot-cols { grid-template-columns: 1fr 1fr; }
  .lp-foot-rich { padding: 36px 18px 24px; }
}
