/*
 * SmartBiz public portal — shared design system
 * Used by index.html (client portal) and architecture.html (technical blueprint).
 * Light surfaces with dark "band" sections; one token set, one component vocabulary.
 */

:root {
  /* Surfaces */
  --bg-page: #f8fafc;
  --bg-white: #ffffff;
  --bg-subtle: #f1f5f9;
  --bg-dark: #0f172a;
  --bg-dark-card: #1e293b;
  --bg-dark-deep: #1e1b4b;

  /* Text */
  --text-main: #0f172a;
  --text-body: #475569;
  --text-muted: #64748b;
  --text-on-dark: #f8fafc;
  --text-on-dark-body: #cbd5e1;
  --text-on-dark-muted: #94a3b8;

  /* Brand */
  --brand-primary: #0284c7;
  --brand-primary-dark: #0369a1;
  --brand-sky: #38bdf8;
  --brand-accent: #4f46e5;
  --brand-emerald: #059669;
  --brand-emerald-bg: #ecfdf5;
  --brand-teal: #0f766e;
  --brand-teal-bg: #f0fdfa;
  --brand-amber: #d97706;
  --brand-amber-bg: #fffbeb;
  --brand-rose: #e11d48;
  --brand-rose-bg: #fff1f2;
  --brand-sky-bg: #e0f2fe;
  --brand-indigo-bg: #eef2ff;

  /* Lines, radii, shadows, type */
  --border-light: #e2e8f0;
  --border-dark: rgba(255, 255, 255, 0.12);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 4px 12px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 20px 45px -12px rgba(15, 23, 42, 0.12);
  --gradient-brand: linear-gradient(135deg, var(--brand-primary), var(--brand-accent));
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu,
    Cantarell, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  color: var(--text-main);
  background-color: var(--bg-page);
  line-height: 1.6;
}

body {
  overflow-x: hidden;
  background-color: var(--bg-page);
}

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

code {
  font-family: var(--font-mono);
  font-size: 0.86em;
  padding: 0.1em 0.35em;
  border-radius: 5px;
  background: var(--bg-subtle);
  color: var(--brand-primary-dark);
  overflow-wrap: anywhere;
}

.band-dark code {
  background: rgba(56, 189, 248, 0.12);
  color: #7dd3fc;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.text-link {
  color: var(--brand-primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ---------- Navigation ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 4.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.brand-accent {
  color: var(--brand-primary);
}

.brand-icon {
  width: 2.4rem;
  height: 2.4rem;
  display: inline-flex;
  flex-shrink: 0;
}

.brand-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.brand-tag {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  background: var(--brand-sky-bg);
  color: var(--brand-primary-dark);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--text-body);
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--brand-primary);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.35rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.92rem;
  transition: all 0.2s ease;
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-brand);
  color: #ffffff;
  box-shadow: 0 8px 20px -6px rgba(2, 132, 199, 0.45);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px -6px rgba(2, 132, 199, 0.6);
}

.btn-secondary {
  background: var(--bg-white);
  color: var(--text-main);
  border: 1px solid var(--border-light);
}

.btn-secondary:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
}

.btn:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(2, 132, 199, 0.45);
  outline-offset: 2px;
}

/* ---------- Hero ---------- */
.hero {
  padding: 5rem 0 4.5rem;
  background:
    radial-gradient(circle at 10% 15%, rgba(2, 132, 199, 0.08), transparent 40%),
    radial-gradient(circle at 90% 25%, rgba(79, 70, 229, 0.08), transparent 40%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: center;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: var(--brand-emerald-bg);
  color: var(--brand-emerald);
  border: 1px solid rgba(5, 150, 105, 0.25);
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 1.35rem;
}

.badge-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 4px rgba(5, 150, 105, 0.15);
}

.hero h1 {
  font-size: clamp(2.3rem, 4.3vw, 3.45rem);
  font-weight: 800;
  line-height: 1.13;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.highlight {
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p {
  font-size: 1.14rem;
  color: var(--text-body);
  margin-bottom: 2rem;
  max-width: 56ch;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.25rem;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 600;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.trust-check {
  color: var(--brand-emerald);
  font-weight: 900;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
}

.metric-val {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
}

.metric-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* ---------- Preview / mock cards ---------- */
.dashboard-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
  min-width: 0;
}

.dash-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-bottom: 1rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-light);
}

.dash-company {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  font-size: 0.95rem;
  min-width: 0;
}

.dash-subtitle {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  overflow-wrap: anywhere;
}

.dash-avatar {
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  background: var(--brand-sky-bg);
  color: var(--brand-primary);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.live-badge,
.tenant-pill {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--brand-emerald);
  background: var(--brand-emerald-bg);
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  white-space: nowrap;
}

.tenant-pill {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--brand-primary-dark);
  background: var(--brand-sky-bg);
  white-space: normal;
  overflow-wrap: anywhere;
}

.window-dots {
  display: flex;
  gap: 0.4rem;
}

.window-dots span {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
}

.dot-red { background: #f87171; }
.dot-amber { background: #fbbf24; }
.dot-green { background: #34d399; }

.dash-ai-pulse {
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.08), rgba(5, 150, 105, 0.08));
  border: 1px solid rgba(2, 132, 199, 0.3);
  border-radius: var(--radius-md);
  padding: 0.85rem;
  margin-bottom: 1.15rem;
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.82rem;
  line-height: 1.45;
}

.ai-pulse-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  background: var(--brand-primary);
  color: #ffffff;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  flex-shrink: 0;
}

.dash-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
  margin-bottom: 1.15rem;
}

.stat-box {
  background: var(--bg-page);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1rem;
  min-width: 0;
}

.stat-label {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.stat-value {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 0.25rem 0;
}

.stat-value.is-mono {
  font-family: var(--font-mono);
  font-size: 1.05rem;
}

.stat-note {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--brand-emerald);
}

.stat-note.amber { color: var(--brand-amber); }
.stat-note.muted { color: var(--text-muted); }

.dash-activity {
  background: var(--bg-page);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1rem;
}

.activity-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.activity-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.86rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-light);
}

.activity-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.tag {
  font-weight: 700;
  font-size: 0.72rem;
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  white-space: nowrap;
}

.tag-paid,
.status-done { background: var(--brand-emerald-bg); color: var(--brand-emerald); }
.tag-stock,
.status-progress { background: var(--brand-amber-bg); color: var(--brand-amber); }
.status-info { background: var(--brand-sky-bg); color: var(--brand-primary-dark); }

/* Code snippet (always dark, high contrast on any surface) */
.code-snippet {
  background: var(--bg-dark);
  color: #e2e8f0;
  border-radius: var(--radius-md);
  padding: 1rem 1.15rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.7;
  overflow-x: auto;
}

.code-snippet code { background: none; color: inherit; padding: 0; }
.code-comment { color: #64748b; }
.code-kw { color: #c084fc; font-weight: 600; }
.code-str { color: #34d399; }
.code-fn { color: #38bdf8; }

/* ---------- Sections ---------- */
section {
  padding: 5rem 0;
}

.section-tight {
  padding-top: 1rem;
}

.section-white {
  background: var(--bg-white);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3.5rem;
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--brand-primary);
  margin-bottom: 0.5rem;
}

.section-header h2 {
  font-size: clamp(1.85rem, 3vw, 2.45rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 0.85rem;
}

.section-header p {
  color: var(--text-body);
  font-size: 1.05rem;
}

/* Dark band sections */
.band-dark {
  background: var(--bg-dark);
  color: var(--text-on-dark);
}

.band-dark .section-eyebrow { color: var(--brand-sky); }
.band-dark .section-header p { color: var(--text-on-dark-muted); }

/* ---------- Cards & grids ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(330px, 100%), 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.85rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, border-color 0.2s ease;
  min-width: 0;
}

.card:hover {
  transform: translateY(-3px);
  border-color: var(--brand-primary);
}

.card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.card p {
  color: var(--text-body);
  font-size: 0.94rem;
  margin-bottom: 1.15rem;
}

.card p:last-child { margin-bottom: 0; }

.card.tone-sky { border-color: rgba(2, 132, 199, 0.4); background: linear-gradient(to bottom, #ffffff, #f0f9ff); }
.card.tone-emerald { border-color: rgba(5, 150, 105, 0.4); background: linear-gradient(to bottom, #ffffff, var(--brand-emerald-bg)); }
.card.tone-teal { border-color: rgba(13, 148, 136, 0.35); background: linear-gradient(to bottom, #ffffff, var(--brand-teal-bg)); }
.card.tone-indigo { border-color: rgba(79, 70, 229, 0.35); background: linear-gradient(to bottom, #ffffff, var(--brand-indigo-bg)); }

.card-icon {
  width: 2.85rem;
  height: 2.85rem;
  border-radius: 12px;
  background: var(--brand-sky-bg);
  color: var(--brand-primary);
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  margin-bottom: 1.15rem;
}

.tone-emerald .card-icon { background: #d1fae5; color: var(--brand-emerald); }
.tone-teal .card-icon { background: #ccfbf1; color: var(--brand-teal); }

.card-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  margin-bottom: 0.85rem;
}

.benefit-bullets {
  list-style: none;
  border-top: 1px solid var(--border-light);
  padding-top: 0.95rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.benefit-bullets li::before {
  content: "\2713  ";
  color: var(--brand-emerald);
  font-weight: 800;
}

/* Before vs. after */
.pain-grid,
.devices-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.pain-box {
  border-radius: var(--radius-md);
  padding: 2rem;
  border: 1px solid var(--border-light);
}

.pain-box.old-way { background: var(--brand-rose-bg); border-color: #fecdd3; }
.pain-box.smart-way { background: #f0fdf4; border-color: #bbf7d0; }

.pain-box h3 {
  font-size: 1.2rem;
  margin-bottom: 1.15rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pain-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-body);
}

.pain-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

/* Dark-band device cards */
.device-card {
  background: var(--bg-dark-card);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-md);
  padding: 2.25rem;
  min-width: 0;
}

.device-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.7rem;
  border-radius: 6px;
  background: rgba(56, 189, 248, 0.15);
  color: var(--brand-sky);
  margin-bottom: 1rem;
}

.device-card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
}

.device-card p {
  color: var(--text-on-dark-body);
  font-size: 0.95rem;
  margin-bottom: 1.35rem;
}

.device-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: #e2e8f0;
}

.device-list li::before {
  content: "\2713  ";
  color: #34d399;
  font-weight: 800;
}

/* Steps */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 1.5rem;
}

.step-num {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--gradient-brand);
  color: #ffffff;
  font-weight: 800;
  display: grid;
  place-items: center;
  margin-bottom: 1.15rem;
}

/* Vault / security callout */
.vault-box {
  background: linear-gradient(135deg, var(--bg-dark), var(--bg-dark-deep));
  color: var(--text-on-dark);
  border-radius: var(--radius-lg);
  padding: 3rem;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
  align-items: center;
}

.vault-box h2 {
  font-size: clamp(1.65rem, 2.6vw, 2.2rem);
  line-height: 1.2;
  margin-bottom: 0.85rem;
}

.vault-box p {
  color: var(--text-on-dark-body);
  margin-bottom: 1.5rem;
}

.vault-box .section-eyebrow { color: var(--brand-sky); }

.vault-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.vault-badges {
  display: grid;
  gap: 0.85rem;
}

.vault-item {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-dark);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  font-size: 0.9rem;
}

.vault-item strong {
  display: block;
  color: var(--brand-sky);
  margin-bottom: 0.2rem;
}

/* ---------- Architecture blueprint components ---------- */
.arch-wrapper {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.arch-wrapper + .arch-wrapper,
.mb-section { margin-bottom: 2.5rem; }

.arch-layers {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.arch-layer {
  background: var(--bg-page);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.arch-layer-title {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.arch-layer-title span:first-child { color: var(--brand-primary-dark); }

.arch-nodes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 0.9rem;
}

.arch-node {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-top: 3px solid var(--text-muted);
  border-radius: var(--radius-sm);
  padding: 1rem 1.1rem;
  min-width: 0;
}

.arch-node.highlight-sky { border-top-color: var(--brand-primary); }
.arch-node.highlight-indigo { border-top-color: var(--brand-accent); }
.arch-node.highlight-emerald { border-top-color: var(--brand-emerald); }

.arch-node h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.45rem;
  line-height: 1.35;
}

.arch-node p {
  font-size: 0.86rem;
  color: var(--text-body);
}

.arch-connector {
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--brand-primary-dark);
  padding: 0.35rem 0;
}

.isolation-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.feature-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.feature-badge {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--gradient-brand);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.85rem;
  display: grid;
  place-items: center;
}

.feature-item h4 {
  font-size: 1.05rem;
  margin-bottom: 0.3rem;
}

.feature-item p {
  font-size: 0.92rem;
  color: var(--text-body);
}

/* Tables */
.table-wrap {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow-x: auto;
  box-shadow: var(--shadow-sm);
}

.table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  min-width: 640px;
}

.table-wrap th {
  text-align: left;
  background: var(--bg-subtle);
  color: var(--text-muted);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--border-light);
}

.table-wrap td {
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-body);
  vertical-align: top;
}

.table-wrap td strong { color: var(--text-main); }
.table-wrap tr:last-child td { border-bottom: none; }
.table-wrap th.col-highlight { color: var(--brand-primary); }
.table-wrap td.col-highlight { background: #f0f9ff; color: var(--brand-primary-dark); font-weight: 600; }

.status-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  white-space: nowrap;
}

/* ---------- Footer ---------- */
footer {
  background: var(--bg-white);
  border-top: 1px solid var(--border-light);
  padding: 3rem 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  font-weight: 600;
}

.footer-links a:hover { color: var(--brand-primary); }

.stack-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
  width: 100%;
}

.stack-pill {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--border-light);
  background: var(--bg-page);
  color: var(--text-body);
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .nav-links { display: none; }
}

@media (max-width: 900px) {
  .hero-grid,
  .pain-grid,
  .devices-grid,
  .vault-box,
  .isolation-grid {
    grid-template-columns: 1fr;
  }

  .hero-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vault-box { padding: 2rem 1.5rem; }
}

@media (max-width: 560px) {
  .container { padding: 0 1rem; }
  section { padding: 3.5rem 0; }
  .hero { padding: 3rem 0; }
  .nav-cta .btn-secondary { display: none; }
  .dash-stats { grid-template-columns: 1fr; }
  .activity-row { flex-direction: column; align-items: flex-start; }
  .pain-box,
  .card,
  .device-card { padding: 1.4rem; }
}
