/* ================================================================
   CauseComply Design System
   Modern SaaS aesthetic — clean, authoritative, premium
   ================================================================ */

/* --- Tokens ---------------------------------------------------- */
:root {
  /* Surface */
  --bg: #ffffff;
  --bg-subtle: #f8fafc;
  --bg-muted: #f1f5f9;
  --bg-wash: #e2e8f0;
  --bg-dark: #0f172a;
  --bg-dark-subtle: #1e293b;

  /* Text */
  --ink: #0f172a;
  --ink-secondary: #334155;
  --ink-soft: #64748b;
  --ink-faint: #94a3b8;
  --ink-inverse: #f8fafc;

  /* Brand */
  --brand: #4f46e5;
  --brand-hover: #4338ca;
  --brand-light: #eef2ff;
  --brand-subtle: #c7d2fe;
  --brand-text: #3730a3;

  /* Accent */
  --accent: #06b6d4;
  --accent-light: #ecfeff;

  /* Semantic */
  --success: #059669;
  --success-light: #ecfdf5;
  --success-border: #a7f3d0;
  --warning: #d97706;
  --warning-light: #fffbeb;
  --warning-border: #fde68a;
  --danger: #dc2626;
  --danger-light: #fef2f2;
  --danger-border: #fecaca;

  /* Borders & Surfaces */
  --line: #e2e8f0;
  --line-subtle: #f1f5f9;
  --card: #ffffff;
  --ring: rgba(79, 70, 229, 0.25);

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  --shadow-glow: 0 0 0 3px var(--ring);

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --duration: 200ms;

  /* Layout */
  --container: 1200px;
  --container-narrow: 720px;
}

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

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.background-glow {
  display: none;
}

a {
  color: var(--brand);
  text-decoration: none;
  transition: color var(--duration) var(--ease);
}

a:hover {
  color: var(--brand-hover);
}

img {
  max-width: 100%;
  display: block;
}

/* --- Typography ------------------------------------------------ */
h1, h2, h3, h4, h5, h6 {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink);
}

h1 {
  font-size: clamp(2rem, 3.2vw, 3rem);
  margin: 0 0 0.5rem;
  letter-spacing: -0.03em;
}

h2 {
  font-size: 1.35rem;
  margin: 0 0 0.75rem;
}

h3 {
  font-size: 1.1rem;
  margin: 0 0 0.5rem;
}

p {
  margin: 0 0 1rem;
}

/* --- Header ---------------------------------------------------- */
.site-header {
  width: 100%;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-weight: 800;
  font-size: 1.15rem;
  text-decoration: none;
  color: var(--ink);
  letter-spacing: -0.03em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.brand-icon {
  width: 28px;
  height: 28px;
  background: var(--brand);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 900;
  font-size: 0.8rem;
}

nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

nav a {
  color: var(--ink-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.875rem;
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: all var(--duration) var(--ease);
  white-space: nowrap;
}

nav a:hover {
  background: var(--bg-subtle);
  color: var(--ink);
}

nav a.nav-cta {
  background: var(--brand);
  color: white;
  font-weight: 600;
  margin-left: 0.25rem;
}

nav a.nav-cta:hover {
  background: var(--brand-hover);
  color: white;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.6rem;
  cursor: pointer;
  color: var(--ink);
  font-size: 1.15rem;
  line-height: 1;
}

/* --- Main Content ---------------------------------------------- */
main {
  max-width: var(--container);
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
  min-height: calc(100vh - 64px - 200px);
}

/* --- Hero Section ---------------------------------------------- */
.hero {
  padding: 3.5rem 0 3rem;
  animation: fadeUp 600ms var(--ease) both;
}

.hero.compact {
  padding: 2.5rem 0 2rem;
}

.hero.centered {
  text-align: center;
}

.hero.centered .subtitle {
  margin-left: auto;
  margin-right: auto;
}

.hero.with-bg {
  background: linear-gradient(135deg, var(--brand-light) 0%, var(--bg) 50%, var(--accent-light) 100%);
  margin: -2rem -1.5rem 2rem;
  padding: 4rem 3rem 3.5rem;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  color: var(--brand);
  margin: 0 0 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.75rem;
}

.subtitle {
  color: var(--ink-soft);
  font-size: 1.125rem;
  line-height: 1.65;
  max-width: 56ch;
  margin: 0;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.75rem;
}

/* --- Buttons --------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: var(--radius-md);
  padding: 0.625rem 1.25rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.875rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  font-family: inherit;
  line-height: 1.5;
  white-space: nowrap;
}

.btn.primary {
  background: var(--brand);
  color: #fff;
  box-shadow: var(--shadow-xs), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.btn.primary:hover {
  background: var(--brand-hover);
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.btn.primary:active {
  transform: translateY(0);
}

.btn.secondary {
  background: var(--bg);
  color: var(--ink-secondary);
  border-color: var(--line);
  box-shadow: var(--shadow-xs);
}

.btn.secondary:hover {
  background: var(--bg-subtle);
  border-color: var(--bg-wash);
  color: var(--ink);
}

.btn.ghost {
  background: transparent;
  color: var(--brand);
  padding: 0.5rem 0.75rem;
}

.btn.ghost:hover {
  background: var(--brand-light);
}

.btn.sm {
  padding: 0.375rem 0.75rem;
  font-size: 0.8125rem;
  border-radius: var(--radius-sm);
}

.btn.lg {
  padding: 0.8rem 1.75rem;
  font-size: 1rem;
  border-radius: var(--radius-lg);
}

.btn[disabled],
button[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

button:not(.btn) {
  font-family: inherit;
}

/* --- Panels / Cards -------------------------------------------- */
.panel {
  margin-top: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--card);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  animation: fadeUp 500ms var(--ease) both;
}

.panel + .panel {
  animation-delay: 80ms;
}

.panel h2:first-child,
.panel h3:first-child {
  margin-top: 0;
}

/* --- State Grid ------------------------------------------------ */
.state-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.state-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1rem 1.15rem;
  text-decoration: none;
  color: inherit;
  background: var(--bg);
  transition: all var(--duration) var(--ease);
  display: block;
}

.state-card:hover {
  border-color: var(--brand-subtle);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  color: inherit;
}

.state-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0 0 0.25rem;
  color: var(--ink);
}

.state-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.8125rem;
  line-height: 1.45;
}

/* --- Split Layout ---------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

/* --- Facts Grid ------------------------------------------------ */
.facts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.75rem;
}

.facts div {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 0.875rem 1rem;
  background: var(--bg-subtle);
  transition: border-color var(--duration) var(--ease);
}

.facts div:hover {
  border-color: var(--brand-subtle);
}

.facts span {
  color: var(--ink-soft);
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.25rem;
}

.facts strong {
  display: block;
  font-weight: 600;
  color: var(--ink);
  font-size: 0.9375rem;
}

/* --- Forms ----------------------------------------------------- */
form label,
legend {
  font-weight: 600;
  display: block;
  font-size: 0.875rem;
  color: var(--ink-secondary);
  margin-bottom: 0.35rem;
}

input[type="text"],
input[type="email"],
input[type="date"],
input[type="password"],
input[type="url"],
input[type="number"],
select,
textarea,
input:not([type]) {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 0.6rem 0.85rem;
  font: inherit;
  font-size: 0.9375rem;
  color: var(--ink);
  background: var(--bg);
  margin-bottom: 0.85rem;
  transition: all var(--duration) var(--ease);
  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--brand);
  box-shadow: var(--shadow-glow);
}

input[readonly] {
  background: var(--bg-muted);
  color: var(--ink-soft);
}

input::placeholder {
  color: var(--ink-faint);
}

fieldset {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  margin: 0.85rem 0 1.25rem;
  padding: 1rem;
}

legend {
  padding: 0 0.5rem;
}

.state-options {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.4rem;
}

.state-option {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.6rem;
  font-weight: 500;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
}

.state-option:hover {
  border-color: var(--brand-subtle);
  background: var(--brand-light);
}

.state-option input[type="checkbox"] {
  margin: 0;
  width: auto;
  accent-color: var(--brand);
}

/* --- Tables ---------------------------------------------------- */
.calendar-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.75rem;
  font-size: 0.875rem;
}

.calendar-table th {
  text-align: left;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.6rem 0.75rem;
  border-bottom: 2px solid var(--line);
  background: var(--bg-subtle);
}

.calendar-table th:first-child {
  border-radius: var(--radius-sm) 0 0 0;
}

.calendar-table th:last-child {
  border-radius: 0 var(--radius-sm) 0 0;
}

.calendar-table td {
  text-align: left;
  border-bottom: 1px solid var(--line-subtle);
  padding: 0.6rem 0.75rem;
  vertical-align: top;
  color: var(--ink-secondary);
}

.calendar-table tbody tr:hover {
  background: var(--bg-subtle);
}

.calendar-table tbody tr:last-child td {
  border-bottom: none;
}

.calendar-table form {
  margin: 0;
}

/* --- Status Pills ---------------------------------------------- */
.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-full);
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.6;
}

.status-pill.verified {
  background: var(--success-light);
  color: var(--success);
}

.status-pill.needs_review {
  background: var(--warning-light);
  color: var(--warning);
}

.status-pill.missing {
  background: var(--danger-light);
  color: var(--danger);
}

/* Workflow priority pills */
.status-pill.workflow-priority-urgent {
  background: var(--danger-light);
  color: var(--danger);
}

.status-pill.workflow-priority-high {
  background: var(--warning-light);
  color: var(--warning);
}

.status-pill.workflow-priority-normal {
  background: var(--brand-light);
  color: var(--brand);
}

.status-pill.workflow-priority-low {
  background: var(--bg-muted);
  color: var(--ink-soft);
}

/* Workflow status pills */
.status-pill.workflow-status-todo {
  background: var(--brand-light);
  color: var(--brand);
}

.status-pill.workflow-status-in_progress {
  background: var(--warning-light);
  color: var(--warning);
}

.status-pill.workflow-status-blocked {
  background: var(--danger-light);
  color: var(--danger);
}

.status-pill.workflow-status-done {
  background: var(--success-light);
  color: var(--success);
}

.status-pill.workflow-status-open {
  background: var(--brand-light);
  color: var(--brand);
}

/* --- Risk Levels ----------------------------------------------- */
.risk.low {
  color: var(--success);
  font-weight: 600;
}

.risk.moderate {
  color: var(--warning);
  font-weight: 600;
}

.risk.high {
  color: var(--danger);
  font-weight: 600;
}

/* --- Workflow -------------------------------------------------- */
.workflow-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.workflow-metrics span {
  border: 1px solid var(--line);
  border-radius: var(--radius-full);
  padding: 0.3rem 0.75rem;
  font-size: 0.8125rem;
  background: var(--bg-subtle);
  color: var(--ink-secondary);
  font-weight: 500;
}

.workflow-metrics span strong {
  color: var(--ink);
  font-weight: 700;
}

.workflow-inline-form {
  display: grid;
  grid-template-columns: minmax(110px, 1fr) minmax(100px, 1fr) minmax(130px, 1.4fr) auto;
  gap: 0.4rem;
  align-items: center;
}

.workflow-inline-form input,
.workflow-inline-form select {
  margin-bottom: 0;
  padding: 0.4rem 0.6rem;
  font-size: 0.8125rem;
}

.workflow-inline-form .btn {
  padding: 0.4rem 0.75rem;
  font-size: 0.8125rem;
}

.inline-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.5rem;
  align-items: end;
}

.inline-form input,
.inline-form select {
  margin-bottom: 0;
}

.stack-form {
  display: grid;
  gap: 0.35rem;
}

.stack-form + .stack-form {
  margin-top: 1rem;
}

.stack-form input,
.stack-form select {
  margin-bottom: 0;
}

/* --- Banners --------------------------------------------------- */
.success-banner {
  border: 1px solid var(--success-border);
  border-radius: var(--radius-md);
  background: var(--success-light);
  color: var(--success);
  padding: 0.65rem 0.9rem;
  margin-bottom: 0.85rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.error-banner {
  border: 1px solid var(--danger-border);
  border-radius: var(--radius-md);
  background: var(--danger-light);
  color: var(--danger);
  padding: 0.65rem 0.9rem;
  margin-bottom: 0.85rem;
  font-size: 0.875rem;
  font-weight: 500;
}

/* --- Auth Panel ------------------------------------------------ */
.auth-panel {
  max-width: 480px;
}

/* --- Pricing --------------------------------------------------- */
.price-tag {
  font-size: 2rem;
  margin: 0 0 0.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.price-tag .price-period {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-soft);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.pricing-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--card);
  padding: 2rem;
  position: relative;
  transition: all var(--duration) var(--ease);
}

.pricing-card:hover {
  box-shadow: var(--shadow-lg);
}

.pricing-card.featured {
  border-color: var(--brand);
  box-shadow: var(--shadow-lg), 0 0 0 1px var(--brand);
}

.pricing-card.featured::before {
  content: "Most popular";
  position: absolute;
  top: -0.75rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--brand);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.85rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.pricing-card ul {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0;
}

.pricing-card ul li {
  padding: 0.35rem 0;
  font-size: 0.875rem;
  color: var(--ink-secondary);
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.pricing-card ul li::before {
  content: "\2713";
  color: var(--success);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

/* --- Report / Scan --------------------------------------------- */
.report-empty {
  display: grid;
  align-content: center;
  min-height: 200px;
}

.report {
  animation: fadeUp 500ms var(--ease) both;
}

/* --- Field Hints ----------------------------------------------- */
.field-hint {
  color: var(--ink-soft);
  font-size: 0.8125rem;
  line-height: 1.55;
}

/* --- Features Grid --------------------------------------------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.feature-card {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--card);
  transition: all var(--duration) var(--ease);
}

.feature-card:hover {
  border-color: var(--brand-subtle);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--brand-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-size: 1rem;
  font-weight: 650;
  margin: 0 0 0.35rem;
}

.feature-card p {
  color: var(--ink-soft);
  font-size: 0.875rem;
  margin: 0;
  line-height: 1.55;
}

/* --- Social Proof / Stats -------------------------------------- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.5rem;
  padding: 2rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 2rem 0;
}

.stat {
  text-align: center;
}

.stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--brand);
  letter-spacing: -0.03em;
  display: block;
}

.stat-label {
  font-size: 0.8125rem;
  color: var(--ink-soft);
  font-weight: 500;
  display: block;
  margin-top: 0.25rem;
}

/* --- Dividers -------------------------------------------------- */
.section-header {
  margin: 3rem 0 1.5rem;
}

.section-header h2 {
  font-size: 1.5rem;
}

.section-header p {
  color: var(--ink-soft);
  font-size: 1rem;
  max-width: 52ch;
}

/* --- Breadcrumbs ----------------------------------------------- */
.breadcrumb {
  display: flex;
  gap: 0.4rem;
  align-items: center;
  font-size: 0.8125rem;
  color: var(--ink-soft);
  margin-bottom: 1rem;
}

.breadcrumb a {
  color: var(--ink-soft);
  font-weight: 500;
}

.breadcrumb a:hover {
  color: var(--brand);
}

.breadcrumb .separator {
  color: var(--ink-faint);
}

/* --- Footer ---------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-subtle);
  padding: 3rem 0 2rem;
  margin-top: 4rem;
}

.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand p {
  color: var(--ink-soft);
  font-size: 0.875rem;
  max-width: 28ch;
  line-height: 1.6;
}

.footer-col h4 {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  margin: 0 0 0.75rem;
}

.footer-col a {
  display: block;
  color: var(--ink-secondary);
  font-size: 0.875rem;
  padding: 0.2rem 0;
}

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

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer-bottom p {
  color: var(--ink-faint);
  font-size: 0.8125rem;
  margin: 0;
}

.footer-legal-links {
  display: flex;
  gap: 1rem;
}

.footer-legal-links a {
  color: var(--ink-faint);
  font-size: 0.8125rem;
}

/* --- Notification Badge ---------------------------------------- */
.notification-badge {
  background: var(--danger);
  color: white;
  font-size: 0.625rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  padding: 0.1rem 0.35rem;
  margin-left: 0.25rem;
  vertical-align: super;
}

/* --- Empty States ---------------------------------------------- */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--ink-soft);
}

.empty-state h3 {
  color: var(--ink-secondary);
  margin-bottom: 0.5rem;
}

/* --- Dashboard Metric Cards ------------------------------------ */
.metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.metric-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1rem 1.15rem;
  background: var(--card);
}

.metric-card .metric-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  margin-bottom: 0.35rem;
}

.metric-card .metric-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
}

/* --- Tabs ------------------------------------------------------ */
.tab-nav {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--line);
  margin-bottom: 1.5rem;
}

.tab-nav a {
  padding: 0.6rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink-soft);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all var(--duration) var(--ease);
}

.tab-nav a:hover {
  color: var(--ink);
}

.tab-nav a.active {
  color: var(--brand);
  border-bottom-color: var(--brand);
}

/* --- Page Hero Banner ------------------------------------------ */
.page-banner {
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-dark-subtle) 100%);
  margin: -2rem -1.5rem 2rem;
  padding: 3rem 3rem 2.5rem;
  color: var(--ink-inverse);
}

.page-banner .eyebrow {
  color: var(--brand-subtle);
}

.page-banner h1 {
  color: var(--ink-inverse);
}

.page-banner .subtitle {
  color: var(--ink-faint);
}

/* --- Animations ------------------------------------------------ */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* --- Blog ------------------------------------------------------ */
.blog-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 720px;
  margin: 0 auto;
}

.blog-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.blog-card:hover {
  border-color: var(--brand-subtle);
  box-shadow: var(--shadow-md);
}

.blog-card h2 {
  font-size: 1.25rem;
  margin: 0.5rem 0 0.5rem;
  line-height: 1.35;
}

.blog-card h2 a {
  color: var(--ink);
  text-decoration: none;
}

.blog-card h2 a:hover {
  color: var(--brand);
}

.blog-card p {
  color: var(--ink-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0 0 0.75rem;
}

.blog-meta {
  font-size: 0.8rem;
  color: var(--ink-soft);
  font-weight: 500;
  letter-spacing: 0.01em;
}

.blog-read-more {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--brand);
  text-decoration: none;
}

.blog-read-more:hover {
  text-decoration: underline;
}

.blog-article {
  max-width: 720px;
  margin: 0 auto;
}

.blog-header {
  margin-bottom: 2rem;
}

.blog-back {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--brand);
  text-decoration: none;
  margin-bottom: 1rem;
}

.blog-back:hover {
  text-decoration: underline;
}

.blog-header h1 {
  font-size: 2rem;
  line-height: 1.25;
  margin: 0.75rem 0 0;
}

.blog-body {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--ink-secondary);
}

.blog-body h2 {
  font-size: 1.35rem;
  color: var(--ink);
  margin: 2rem 0 0.75rem;
}

.blog-body h3 {
  font-size: 1.1rem;
  color: var(--ink);
  margin: 1.5rem 0 0.5rem;
}

.blog-body p {
  margin: 0 0 1rem;
}

.blog-body ul, .blog-body ol {
  margin: 0 0 1rem;
  padding-left: 1.5rem;
}

.blog-body li {
  margin-bottom: 0.4rem;
}

.blog-body strong {
  color: var(--ink);
}

.blog-cta {
  background: var(--brand-light);
  border: 1px solid var(--brand-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem 2rem;
  margin: 2.5rem 0 1.5rem;
}

.blog-cta h3 {
  color: var(--brand-text) !important;
  margin: 0 0 0.5rem !important;
  font-size: 1.15rem !important;
}

.blog-cta p {
  color: var(--ink-secondary);
  margin: 0 0 1rem;
  font-size: 0.95rem;
}

.hero.compact {
  padding: 2rem 0 1rem;
}

.hero.compact h1 {
  font-size: 2rem;
}

/* --- Responsive ------------------------------------------------ */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  main {
    padding: 1.25rem 1rem 3rem;
  }

  .split {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 2rem 0 1.5rem;
  }

  .hero.with-bg {
    margin: -1.25rem -1rem 1.5rem;
    padding: 2.5rem 1.5rem 2rem;
  }

  h1 {
    font-size: 1.75rem;
  }

  .subtitle {
    font-size: 1rem;
  }

  .state-grid {
    grid-template-columns: 1fr 1fr;
  }

  .facts {
    grid-template-columns: 1fr;
  }

  .workflow-inline-form {
    grid-template-columns: 1fr;
  }

  .inline-form {
    grid-template-columns: 1fr;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  /* Mobile nav */
  .nav-toggle {
    display: block;
  }

  nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border: 1px solid var(--line);
    border-top: none;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    box-shadow: var(--shadow-lg);
    flex-direction: column;
    padding: 0.5rem;
    gap: 0.1rem;
    z-index: 50;
  }

  nav.open {
    display: flex;
  }

  nav a {
    padding: 0.55rem 0.75rem;
    border-radius: var(--radius-sm);
    width: 100%;
  }

  .header-inner {
    position: relative;
  }

  .page-banner {
    margin: -1.25rem -1rem 1.5rem;
    padding: 2rem 1.25rem 1.75rem;
  }

  .stats-row {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  .metric-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .state-grid {
    grid-template-columns: 1fr;
  }

  .stats-row {
    grid-template-columns: 1fr;
  }

  .metric-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }
}

/* --- Utility --------------------------------------------------- */
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.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: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.gap-sm { gap: 0.5rem; }
.gap-md { gap: 1rem; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.w-full { width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
