/* =========================================================================
   Multnomah County AI Hub — Shared Design System
   ========================================================================= */

/* --- Tokens --- */
:root {
  --hub-bg: #ffffff;
  --hub-bg-alt: #f8f9fa;
  --hub-bg-tint: #f1f3f4;
  --hub-text: #202124;
  --hub-text-muted: #5f6368;
  --hub-text-subtle: #80868b;
  --hub-border: #dadce0;
  --hub-border-subtle: #e8eaed;

  --hub-blue: #1a73e8;
  --hub-blue-hover: #1967d2;
  --hub-blue-light: #e8f0fe;
  --hub-green: #137333;
  --hub-green-light: #e6f4ea;
  --hub-yellow: #f29900;
  --hub-yellow-light: #fef7e0;
  --hub-purple: #7b1fa2;
  --hub-purple-light: #f3e5f5;
  --hub-red: #d93025;
  --hub-red-light: #fce8e6;
  --hub-amber: #e8710a;
  --hub-amber-light: #fef3e0;
  --hub-cyan: #007b83;
  --hub-cyan-light: #e0f7fa;
  --multco-blue: #316094;

  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --shadow-xs: 0 1px 2px rgba(60,64,67,.04);
  --shadow-sm: 0 1px 2px 0 rgba(60,64,67,.06), 0 1px 3px 1px rgba(60,64,67,.04);
  --shadow: 0 1px 3px 0 rgba(60,64,67,.10), 0 4px 8px 3px rgba(60,64,67,.08);
  --shadow-lg: 0 1px 3px 0 rgba(60,64,67,.10), 0 8px 24px 4px rgba(60,64,67,.10);
  --ease: 220ms cubic-bezier(.4,0,.2,1);

  --font-display: 'Google Sans Display', 'Google Sans', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-text: 'Google Sans Text', 'Google Sans', Roboto, system-ui, -apple-system, sans-serif;
  --font-mono: 'Roboto Mono', 'SF Mono', Menlo, Consolas, monospace;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 1.6;
  color: var(--hub-text);
  background: var(--hub-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; line-height: 1.25; margin: 0 0 .5em; color: var(--hub-text); letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 400; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 500; }
h3 { font-size: 1.125rem; font-weight: 500; }
p { margin: 0 0 1em; }
a { color: var(--hub-blue); text-decoration: none; transition: color var(--ease); }
a:hover { color: var(--hub-blue-hover); text-decoration: underline; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }

/* --- Layout --- */
.hub-container { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }

/* --- Top Nav --- */
.hub-nav {
  background: var(--hub-bg);
  border-bottom: 1px solid var(--hub-border-subtle);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: rgba(255,255,255,.92);
}
.hub-nav__inner {
  max-width: 1280px; margin: 0 auto;
  padding: 0 1.5rem;
  display: flex; align-items: center;
  height: 60px;
  gap: 1rem;
}
.hub-nav__logos { display: flex; align-items: center; gap: .75rem; text-decoration: none; }
.hub-nav__logos img { display: block; height: 26px; width: auto; }
.hub-nav__logos .x { color: var(--hub-text-subtle); font-weight: 400; font-size: .875rem; }
.hub-nav__brand {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: .875rem;
  color: var(--hub-text);
  text-decoration: none;
  white-space: nowrap;
}
.hub-nav__brand small {
  display: block; color: var(--hub-text-muted); font-size: .75rem; font-weight: 400;
}
.hub-nav__spacer { flex: 1; }
.hub-nav__links {
  display: flex; align-items: center; gap: .25rem;
}
.hub-nav__link {
  display: inline-flex; align-items: center; gap: .375rem;
  padding: .5rem .875rem;
  font-size: .8125rem;
  font-weight: 500;
  color: var(--hub-text-muted);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: all var(--ease);
  white-space: nowrap;
}
.hub-nav__link:hover { color: var(--hub-text); background: var(--hub-bg-tint); text-decoration: none; }
.hub-nav__link--active { color: var(--hub-blue); background: var(--hub-blue-light); }
.hub-nav__link svg { width: 16px; height: 16px; }

/* Mobile nav toggle */
.hub-nav__toggle {
  display: none;
  background: none; border: none;
  padding: .5rem; color: var(--hub-text-muted);
}
.hub-nav__toggle svg { width: 24px; height: 24px; }

@media (max-width: 768px) {
  .hub-nav__brand { display: none; }
  .hub-nav__toggle { display: flex; }
  .hub-nav__links {
    display: none;
    position: absolute;
    top: 60px; left: 0; right: 0;
    flex-direction: column;
    background: var(--hub-bg);
    border-bottom: 1px solid var(--hub-border-subtle);
    padding: .5rem 1rem;
    box-shadow: var(--shadow);
  }
  .hub-nav__links.open { display: flex; }
  .hub-nav__link { width: 100%; padding: .75rem 1rem; border-radius: var(--radius-sm); }
}

/* --- Footer --- */
.hub-footer {
  border-top: 1px solid var(--hub-border-subtle);
  margin-top: 3rem;
  padding: 2rem 1.5rem;
  background: var(--hub-bg-alt);
}
.hub-footer__inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; gap: 2rem; flex-wrap: wrap; align-items: center;
}
.hub-footer__inner img { height: 24px; }
.hub-footer__inner p { color: var(--hub-text-muted); font-size: .8125rem; margin: 0; }
.hub-footer__spacer { flex: 1; }
.hub-footer__inner a { color: var(--hub-text-subtle); }
.hub-footer__inner a:hover { color: var(--hub-blue); }

/* --- Status Pills --- */
.status-pill {
  display: inline-flex; align-items: center; gap: .375rem;
  padding: .25rem .75rem;
  font-size: .6875rem; font-weight: 600; letter-spacing: .03em;
  text-transform: uppercase;
  border-radius: 999px;
  white-space: nowrap;
}
.status-pill::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.status-pill--production { background: var(--hub-green-light); color: var(--hub-green); }
.status-pill--production::before { background: var(--hub-green); }
.status-pill--development { background: var(--hub-blue-light); color: var(--hub-blue); }
.status-pill--development::before { background: var(--hub-blue); }
.status-pill--discovery { background: var(--hub-yellow-light); color: var(--hub-amber); }
.status-pill--discovery::before { background: var(--hub-yellow); }
.status-pill--proposed { background: var(--hub-bg-tint); color: var(--hub-text-muted); }
.status-pill--proposed::before { background: var(--hub-text-subtle); }

/* --- Stats Strip --- */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
}
.stat-card {
  text-align: center;
  padding: 1.25rem 1rem;
  border-radius: var(--radius);
  background: var(--hub-bg-alt);
  border: 1px solid var(--hub-border-subtle);
  transition: all var(--ease);
}
.stat-card:hover { border-color: var(--hub-border); box-shadow: var(--shadow-xs); }
.stat-card__num {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 500;
  color: var(--multco-blue);
  line-height: 1;
  letter-spacing: -0.02em;
}
.stat-card__label {
  font-size: .75rem;
  color: var(--hub-text-muted);
  text-transform: uppercase;
  letter-spacing: .04em;
  font-weight: 500;
  margin-top: .5rem;
  line-height: 1.3;
}

/* --- Project Cards (Dashboard) --- */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.5rem;
}
.project-card {
  display: flex; flex-direction: column;
  border: 1px solid var(--hub-border-subtle);
  border-radius: var(--radius-lg);
  background: var(--hub-bg);
  overflow: hidden;
  transition: all var(--ease);
  text-decoration: none;
  color: inherit;
}
.project-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
  text-decoration: none;
}
.project-card__hero {
  position: relative;
  padding: 1.75rem 1.5rem 1.5rem;
  color: white;
  min-height: 140px;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.project-card__hero--blue { background: linear-gradient(135deg, #1a73e8 0%, #316094 100%); }
.project-card__hero--green { background: linear-gradient(135deg, #34a853 0%, #137333 100%); }
.project-card__hero--purple { background: linear-gradient(135deg, #7b1fa2 0%, #4a148c 100%); }
.project-card__hero--amber { background: linear-gradient(135deg, #f29900 0%, #b85600 100%); }

.project-card__status {
  display: inline-flex; align-self: flex-start;
  padding: .2rem .625rem;
  font-size: .625rem; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase;
  background: rgba(255,255,255,.2);
  color: white;
  border-radius: 999px;
  margin-bottom: .625rem;
  backdrop-filter: blur(6px);
}
.project-card__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 0; color: white;
}
.project-card__body {
  padding: 1.25rem 1.5rem 1.5rem;
  flex: 1;
  display: flex; flex-direction: column;
}
.project-card__dept {
  font-size: .6875rem;
  font-weight: 500;
  color: var(--hub-text-subtle);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: .625rem;
}
.project-card__desc {
  color: var(--hub-text-muted);
  font-size: .875rem;
  flex: 1;
  margin-bottom: 1rem;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Phase progress bar */
.phase-bar {
  display: flex; gap: .25rem;
  margin-bottom: 1rem;
}
.phase-bar__step {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: var(--hub-border-subtle);
  transition: background var(--ease);
}
.phase-bar__step--done { background: var(--hub-green); }
.phase-bar__step--active { background: var(--hub-blue); animation: pulse-phase 2s ease-in-out infinite; }
@keyframes pulse-phase {
  0%, 100% { opacity: 1; }
  50% { opacity: .5; }
}

.project-card__metrics {
  display: flex; gap: 1.25rem; flex-wrap: wrap;
  padding-top: .75rem;
  border-top: 1px solid var(--hub-border-subtle);
  margin-bottom: 1rem;
}
.project-card__metric {
  display: flex; flex-direction: column;
}
.project-card__metric-num {
  font-family: var(--font-mono);
  font-size: .875rem;
  font-weight: 500;
  color: var(--hub-text);
}
.project-card__metric-label {
  font-size: .625rem;
  color: var(--hub-text-subtle);
  text-transform: uppercase;
  letter-spacing: .03em;
}
.project-card__cta {
  display: inline-flex; align-items: center; gap: .375rem;
  color: var(--hub-blue);
  font-weight: 500;
  font-size: .875rem;
  align-self: flex-start;
}

/* --- Updates Timeline --- */
.updates-timeline { list-style: none; padding: 0; margin: 0; }
.updates-timeline li {
  display: flex; gap: 1rem;
  padding: .875rem 0;
  border-bottom: 1px solid var(--hub-border-subtle);
  font-size: .875rem;
}
.updates-timeline li:last-child { border-bottom: none; }
.update-date {
  font-family: var(--font-mono);
  font-size: .75rem;
  color: var(--hub-text-subtle);
  white-space: nowrap;
  min-width: 80px;
  padding-top: .125rem;
}
.update-type {
  display: inline-flex;
  padding: .125rem .5rem;
  font-size: .625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .03em;
  border-radius: 4px;
  white-space: nowrap;
  margin-right: .5rem;
}
.update-type--feature { background: var(--hub-blue-light); color: var(--hub-blue); }
.update-type--milestone { background: var(--hub-green-light); color: var(--hub-green); }
.update-type--upgrade { background: var(--hub-purple-light); color: var(--hub-purple); }
.update-type--fix { background: var(--hub-red-light); color: var(--hub-red); }
.update-type--feedback { background: var(--hub-yellow-light); color: var(--hub-amber); }
.update-type--planning { background: var(--hub-bg-tint); color: var(--hub-text-muted); }
.update-type--design { background: var(--hub-cyan-light); color: var(--hub-cyan); }

/* --- Section Headings --- */
.section-head {
  margin-bottom: 1.5rem;
}
.section-num {
  font-family: var(--font-mono);
  font-size: .75rem;
  color: var(--hub-text-subtle);
  font-weight: 500; letter-spacing: .04em;
  display: block; margin-bottom: .375rem;
  text-transform: uppercase;
}

/* --- Hero Section --- */
.hub-hero {
  padding-top: 3.5rem;
  padding-bottom: 2.5rem;
}
.hub-hero h1 { max-width: 28ch; margin-bottom: .625rem; }
.hub-hero__lede {
  font-size: 1.0625rem;
  max-width: 60ch;
  color: var(--hub-text-muted);
  margin-bottom: 0;
  line-height: 1.6;
}

/* --- Restricted Links --- */
.restricted-link {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem 1.5rem;
  background: var(--hub-bg);
  border: 1px solid var(--hub-border);
  border-radius: var(--radius);
  text-decoration: none;
  transition: border-color var(--ease), box-shadow var(--ease);
}
.restricted-link:hover {
  border-color: var(--multco-blue);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
}
.restricted-link__badge {
  background: var(--hub-yellow-light);
  color: var(--hub-yellow);
  font-size: .625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: .25rem .625rem;
  border-radius: 6px;
  white-space: nowrap;
}
.restricted-link__title {
  font-weight: 600;
  color: var(--hub-text);
  font-size: .875rem;
}
.restricted-link__arrow {
  margin-left: auto;
  color: var(--hub-text-muted);
  font-size: .875rem;
}

/* --- Tool Cards (ROI, Prompts links) --- */
.tool-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}
.tool-card {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--hub-border-subtle);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: all var(--ease);
}
.tool-card:hover {
  border-color: var(--hub-blue);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  transform: translateY(-1px);
}
.tool-card__icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 1.25rem;
}
.tool-card__icon--blue { background: var(--hub-blue-light); color: var(--hub-blue); }
.tool-card__icon--green { background: var(--hub-green-light); color: var(--hub-green); }
.tool-card__icon--purple { background: var(--hub-purple-light); color: var(--hub-purple); }
.tool-card__icon--amber { background: var(--hub-yellow-light); color: var(--hub-amber); }
.tool-card__text h3 { font-size: .9375rem; margin: 0 0 .125rem; }
.tool-card__text p { font-size: .8125rem; color: var(--hub-text-muted); margin: 0; }
.tool-card__arrow { margin-left: auto; color: var(--hub-text-subtle); }

/* --- Breadcrumb --- */
.hub-breadcrumb {
  display: flex; align-items: center; gap: .5rem;
  padding: 1rem 0;
  font-size: .8125rem;
  color: var(--hub-text-subtle);
}
.hub-breadcrumb a { color: var(--hub-text-muted); text-decoration: none; }
.hub-breadcrumb a:hover { color: var(--hub-blue); }
.hub-breadcrumb__sep { color: var(--hub-border); }

/* --- Detail Page Layout --- */
.detail-header {
  padding: 2rem 0 1.5rem;
  display: flex; flex-wrap: wrap; align-items: flex-start; gap: 1.5rem;
}
.detail-header__info { flex: 1; min-width: 280px; }
.detail-header__info h1 { margin-bottom: .375rem; }
.detail-header__meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: .75rem;
  font-size: .8125rem; color: var(--hub-text-muted);
  margin-bottom: .75rem;
}
.detail-header__actions {
  display: flex; gap: .5rem; flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .625rem 1.25rem;
  font-family: var(--font-text);
  font-size: .875rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--ease);
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn--primary { background: var(--hub-blue); color: white; }
.btn--primary:hover { background: var(--hub-blue-hover); color: white; }
.btn--outline { background: transparent; color: var(--hub-text); border-color: var(--hub-border); }
.btn--outline:hover { background: var(--hub-bg-tint); }
.btn--sm { padding: .375rem .875rem; font-size: .8125rem; }

/* --- Detail Grid --- */
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 2rem;
  padding-bottom: 3rem;
}
@media (max-width: 960px) {
  .detail-grid { grid-template-columns: 1fr; }
}
.detail-main { min-width: 0; }
.detail-sidebar { display: flex; flex-direction: column; gap: 1.5rem; }

/* Content panels */
.panel {
  border: 1px solid var(--hub-border-subtle);
  border-radius: var(--radius);
  background: var(--hub-bg);
  overflow: hidden;
}
.panel__header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--hub-border-subtle);
  font-family: var(--font-display);
  font-size: .9375rem;
  font-weight: 500;
}
.panel__body { padding: 1.25rem; }

/* Metric grid inside panel */
.metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
}
.metric-item { text-align: center; padding: .75rem .5rem; }
.metric-item__num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--multco-blue);
  line-height: 1;
}
.metric-item__label {
  font-size: .6875rem;
  color: var(--hub-text-muted);
  text-transform: uppercase;
  letter-spacing: .03em;
  margin-top: .375rem;
}
.metric-item__trend {
  font-size: .625rem;
  font-weight: 600;
  margin-top: .25rem;
}
.metric-item__trend--up { color: var(--hub-green); }
.metric-item__trend--down { color: var(--hub-green); }
.metric-item__trend--neutral { color: var(--hub-text-subtle); }

/* Highlight list */
.highlight-list { list-style: none; padding: 0; margin: 0; }
.highlight-list li {
  padding: .625rem 0;
  border-bottom: 1px solid var(--hub-border-subtle);
  font-size: .875rem;
  color: var(--hub-text-muted);
  display: flex; align-items: flex-start; gap: .5rem;
}
.highlight-list li:last-child { border-bottom: none; }
.highlight-list li::before {
  content: '→';
  color: var(--hub-blue);
  font-weight: 500;
  flex-shrink: 0;
}

/* Tech stack pills */
.tech-stack { display: flex; flex-wrap: wrap; gap: .375rem; }
.tech-pill {
  display: inline-block;
  padding: .25rem .625rem;
  font-size: .6875rem;
  font-weight: 500;
  color: var(--hub-text-muted);
  background: var(--hub-bg-tint);
  border-radius: 999px;
}

/* Document links */
.doc-links { list-style: none; padding: 0; margin: 0; }
.doc-links li { border-bottom: 1px solid var(--hub-border-subtle); }
.doc-links li:last-child { border-bottom: none; }
.doc-links a {
  display: flex; align-items: center; gap: .75rem;
  padding: .75rem 0;
  color: var(--hub-text);
  text-decoration: none;
  font-size: .875rem;
  transition: color var(--ease);
}
.doc-links a:hover { color: var(--hub-blue); }
.doc-links__type {
  font-size: .625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .03em;
  padding: .125rem .5rem;
  border-radius: 4px;
  background: var(--hub-bg-tint);
  color: var(--hub-text-subtle);
  white-space: nowrap;
}

/* --- Prompt Library --- */
.prompt-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 2rem;
  padding-bottom: 3rem;
}
@media (max-width: 960px) {
  .prompt-layout { grid-template-columns: 1fr; }
  .prompt-sidebar { display: none; }
  .prompt-mobile-cats { display: flex !important; }
}

.prompt-sidebar {
  position: sticky; top: 80px;
  align-self: start;
}
.prompt-sidebar nav { display: flex; flex-direction: column; gap: .125rem; }
.prompt-cat-btn {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%;
  padding: .5rem .75rem;
  font-size: .8125rem;
  font-weight: 500;
  color: var(--hub-text-muted);
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  transition: all var(--ease);
  text-align: left;
}
.prompt-cat-btn:hover { background: var(--hub-bg-tint); color: var(--hub-text); }
.prompt-cat-btn--active { background: var(--hub-blue-light); color: var(--hub-blue); }
.prompt-cat-count {
  font-size: .6875rem;
  font-weight: 600;
  padding: .125rem .375rem;
  background: var(--hub-bg-tint);
  border-radius: 4px;
  min-width: 1.5rem;
  text-align: center;
}
.prompt-cat-btn--active .prompt-cat-count {
  background: rgba(26,115,232,.15);
}

/* Prompt cards */
.prompt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
}
.prompt-card {
  display: flex; flex-direction: column;
  border: 1px solid var(--hub-border-subtle);
  border-radius: var(--radius);
  background: var(--hub-bg);
  overflow: hidden;
  transition: all var(--ease);
  cursor: pointer;
}
.prompt-card:hover {
  border-color: var(--hub-border);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}
.prompt-card__top { padding: 1rem 1.25rem .5rem; }
.prompt-card__cat {
  display: inline-block;
  padding: .125rem .5rem;
  font-size: .625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .03em;
  border-radius: 4px;
}
.prompt-card__cat--governmental { background: var(--hub-green-light); color: var(--hub-green); }
.prompt-card__cat--public-service { background: var(--hub-blue-light); color: var(--hub-blue); }
.prompt-card__cat--compliance { background: var(--hub-yellow-light); color: var(--hub-amber); }
.prompt-card__cat--citizen-service { background: var(--hub-red-light); color: var(--hub-red); }
.prompt-card__cat--hr { background: var(--hub-purple-light); color: var(--hub-purple); }
.prompt-card__cat--it { background: var(--hub-cyan-light); color: var(--hub-cyan); }
.prompt-card__cat--finance { background: var(--hub-green-light); color: var(--hub-green); }
.prompt-card__cat--document { background: var(--hub-bg-tint); color: var(--hub-text-muted); }
.prompt-card__cat--operations { background: var(--hub-yellow-light); color: var(--hub-amber); }
.prompt-card__cat--advanced { background: var(--hub-blue-light); color: var(--hub-blue); }

.prompt-card__title {
  font-size: .9375rem;
  font-weight: 600;
  margin: .5rem 0 .25rem;
  line-height: 1.3;
  color: var(--hub-text);
}
.prompt-card__desc {
  font-size: .8125rem;
  color: var(--hub-text-muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}
.prompt-card__tags {
  display: flex; flex-wrap: wrap; gap: .25rem;
  padding: .5rem 1.25rem;
}
.prompt-card__tag {
  font-size: .625rem;
  padding: .125rem .375rem;
  background: var(--hub-bg-tint);
  color: var(--hub-text-subtle);
  border-radius: 3px;
}
.prompt-card__footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: .625rem 1.25rem;
  border-top: 1px solid var(--hub-border-subtle);
  background: var(--hub-bg-alt);
}
.prompt-card__usage {
  font-size: .6875rem;
  color: var(--hub-text-subtle);
  display: flex; align-items: center; gap: .25rem;
}
.prompt-card__copy {
  display: inline-flex; align-items: center; gap: .25rem;
  padding: .25rem .625rem;
  font-size: .6875rem;
  font-weight: 500;
  color: var(--hub-blue);
  background: transparent;
  border: 1px solid var(--hub-blue);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--ease);
}
.prompt-card__copy:hover { background: var(--hub-blue-light); }
.prompt-card__copy--done { background: var(--hub-green-light); color: var(--hub-green); border-color: var(--hub-green); }

/* Prompt modal */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.4);
  z-index: 200;
  display: none; align-items: center; justify-content: center;
  padding: 2rem;
  backdrop-filter: blur(4px);
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--hub-bg);
  border-radius: var(--radius-lg);
  max-width: 720px; width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}
.modal__header {
  padding: 1.5rem 1.5rem 1rem;
  border-bottom: 1px solid var(--hub-border-subtle);
}
.modal__close {
  float: right;
  background: none; border: none;
  font-size: 1.5rem;
  color: var(--hub-text-muted);
  cursor: pointer;
  padding: .25rem;
  line-height: 1;
}
.modal__close:hover { color: var(--hub-text); }
.modal__body { padding: 1.5rem; }
.modal__template {
  background: var(--hub-bg-tint);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  font-family: var(--font-text);
  font-size: .875rem;
  line-height: 1.7;
  white-space: pre-wrap;
  word-wrap: break-word;
  position: relative;
}
.modal__template .placeholder {
  background: rgba(242,153,0,.15);
  color: var(--hub-amber);
  font-weight: 600;
  padding: .0625rem .25rem;
  border-radius: 3px;
}
.modal__footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--hub-border-subtle);
  display: flex; align-items: center; justify-content: space-between;
}

/* Search bar */
.search-bar {
  position: relative;
  margin-bottom: 1rem;
}
.search-bar input {
  width: 100%;
  padding: .625rem 1rem .625rem 2.5rem;
  border: 1px solid var(--hub-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-text);
  font-size: .875rem;
  outline: none;
  transition: border-color var(--ease);
  background: var(--hub-bg);
}
.search-bar input:focus { border-color: var(--hub-blue); box-shadow: 0 0 0 2px rgba(26,115,232,.15); }
.search-bar input::placeholder { color: var(--hub-text-subtle); }
.search-bar__icon {
  position: absolute;
  left: .75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--hub-text-subtle);
  pointer-events: none;
}
.search-bar__clear {
  position: absolute; right: .5rem; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: var(--hub-text-subtle);
  cursor: pointer; font-size: 1.125rem; padding: .25rem;
  display: none;
}
.search-bar__clear.visible { display: block; }

/* Sort/filter row */
.filter-row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: .75rem;
  margin-bottom: 1.5rem;
}
.filter-row select {
  padding: .375rem .75rem;
  font-family: var(--font-text);
  font-size: .8125rem;
  border: 1px solid var(--hub-border);
  border-radius: var(--radius-sm);
  background: var(--hub-bg);
  cursor: pointer;
  outline: none;
}
.filter-row select:focus { border-color: var(--hub-blue); }
.filter-row__count {
  font-size: .8125rem;
  color: var(--hub-text-muted);
}
.filter-row__count strong { color: var(--hub-text); }

/* Mobile category pills */
.prompt-mobile-cats {
  display: none;
  gap: .5rem;
  overflow-x: auto;
  padding-bottom: .5rem;
  margin-bottom: 1rem;
  -webkit-overflow-scrolling: touch;
}
.prompt-mobile-cat {
  padding: .375rem .75rem;
  font-size: .75rem;
  font-weight: 500;
  border: none;
  border-radius: 999px;
  background: var(--hub-bg-tint);
  color: var(--hub-text-muted);
  white-space: nowrap;
  cursor: pointer;
  transition: all var(--ease);
}
.prompt-mobile-cat:hover { background: var(--hub-border-subtle); }
.prompt-mobile-cat--active { background: var(--hub-blue); color: white; }

/* --- ROI Calculator --- */
.roi-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  padding-bottom: 3rem;
}
@media (max-width: 860px) {
  .roi-layout { grid-template-columns: 1fr; }
}

.roi-panel {
  border: 1px solid var(--hub-border-subtle);
  border-radius: var(--radius-lg);
  background: var(--hub-bg);
  overflow: hidden;
}
.roi-panel__header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--hub-border-subtle);
  font-family: var(--font-display);
  font-weight: 500;
}
.roi-panel__body { padding: 1.5rem; }

/* Form controls */
.roi-field { margin-bottom: 1.25rem; }
.roi-field:last-child { margin-bottom: 0; }
.roi-label {
  display: block;
  font-size: .8125rem;
  font-weight: 500;
  color: var(--hub-text);
  margin-bottom: .375rem;
}
.roi-sublabel {
  font-size: .75rem;
  color: var(--hub-text-subtle);
  font-weight: 400;
}
.roi-input {
  width: 100%;
  padding: .625rem .875rem;
  border: 1px solid var(--hub-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-text);
  font-size: .9375rem;
  outline: none;
  transition: border-color var(--ease);
}
.roi-input:focus { border-color: var(--hub-blue); box-shadow: 0 0 0 2px rgba(26,115,232,.15); }
.roi-range {
  width: 100%;
  accent-color: var(--hub-blue);
  margin-top: .25rem;
}
.roi-range-val {
  text-align: right;
  font-family: var(--font-mono);
  font-size: .8125rem;
  color: var(--hub-text-muted);
}
.roi-select {
  width: 100%;
  padding: .625rem .875rem;
  border: 1px solid var(--hub-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-text);
  font-size: .9375rem;
  background: var(--hub-bg);
  cursor: pointer;
  outline: none;
}

/* Results */
.roi-results {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.roi-result-card {
  text-align: center;
  padding: 1.25rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--hub-border-subtle);
}
.roi-result-card--highlight {
  background: var(--hub-green-light);
  border-color: var(--hub-green);
}
.roi-result__num {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 500;
  line-height: 1;
  color: var(--multco-blue);
}
.roi-result-card--highlight .roi-result__num { color: var(--hub-green); }
.roi-result__label {
  font-size: .75rem;
  color: var(--hub-text-muted);
  margin-top: .375rem;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.roi-comparison {
  margin-top: 1.5rem;
}
.roi-comparison table {
  width: 100%;
  border-collapse: collapse;
  font-size: .875rem;
}
.roi-comparison th {
  text-align: left;
  padding: .625rem .75rem;
  font-weight: 500;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: var(--hub-text-subtle);
  border-bottom: 2px solid var(--hub-border);
}
.roi-comparison td {
  padding: .625rem .75rem;
  border-bottom: 1px solid var(--hub-border-subtle);
}
.roi-comparison td:nth-child(2),
.roi-comparison td:nth-child(3) {
  text-align: right;
  font-family: var(--font-mono);
  font-size: .8125rem;
}
.roi-comparison .savings { color: var(--hub-green); font-weight: 600; }

/* Copy summary button */
.roi-copy-btn {
  display: inline-flex; align-items: center; gap: .5rem;
  margin-top: 1rem;
  padding: .5rem 1rem;
  font-size: .8125rem;
  font-weight: 500;
  color: var(--hub-blue);
  background: var(--hub-blue-light);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--ease);
}
.roi-copy-btn:hover { background: rgba(26,115,232,.2); }

/* --- Animations --- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-in {
  animation: fadeInUp .4s var(--ease) both;
}
.animate-in-1 { animation-delay: .05s; }
.animate-in-2 { animation-delay: .1s; }
.animate-in-3 { animation-delay: .15s; }
.animate-in-4 { animation-delay: .2s; }
.animate-in-5 { animation-delay: .25s; }

/* --- Utility --- */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.text-muted { color: var(--hub-text-muted); }
.text-subtle { color: var(--hub-text-subtle); }
.font-mono { font-family: var(--font-mono); }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: .5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.gap-1 { gap: .5rem; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
