/* ============================================
   Cloverleaf — Design System
   Fonts: Fraunces (display) + DM Sans (body)
   ============================================ */

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

:root {
  --clr-bg: #FAFAF7;
  --clr-surface: #FFFFFF;
  --clr-text: #1A1A18;
  --clr-text-secondary: #5C5B56;
  --clr-text-tertiary: #8A8983;
  --clr-border: rgba(0,0,0,0.2);
  --clr-accent: #1B7A5A;
  --clr-accent-light: #E8F5EE;
  --clr-accent-dark: #0F5E42;
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --radius: 12px;
  --radius-lg: 20px;
  --max-w: 1120px;
  --px: clamp(1.5rem, 4vw, 3rem);
  /* Theme colors */
  --clr-blue: #2E5EA6;
  --clr-blue-light: #E8EEFB;
  --clr-purple: #6B52B5;
  --clr-purple-light: #F3EEFB;
  --clr-gold: #B07C1E;
  --clr-gold-light: #FEF3E2;
  --clr-red: #B04040;
  --clr-red-light: #FDE8E8;
  --clr-green-alt: #1E8B7D;
  --clr-green-alt-light: #E0F4F1;
  --clr-slate: #5C6B7A;
  --clr-slate-light: #EDF0F3;
  /* Sector colors */
  --clr-assoc: #D4890E;
  --clr-gov: #2E6DB4;
  --clr-nonprofit: #2E8B57;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
html { scroll-padding-top: 80px; }

body {
  font-family: var(--font-body);
  background: var(--clr-bg);
  color: var(--clr-text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

/* ---- FOCUS STYLES (WCAG 2.4.7) ---- */
:focus-visible {
  outline: 2px solid var(--clr-accent);
  outline-offset: 2px;
}

/* ---- SKIP LINK (WCAG 2.4.1) ---- */
/* ---- SCREEN-READER ONLY ---- */
.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;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  z-index: 1000;
  background: var(--clr-accent);
  color: #fff;
  padding: 12px 24px;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 0 0 var(--radius) 0;
  text-decoration: none;
}
.skip-link:focus {
  position: fixed;
  left: 0;
  top: 0;
  width: auto;
  height: auto;
  overflow: visible;
  clip: auto;
  white-space: normal;
}

/* ---- ICON THEMES ---- */
.icon-accent { background: var(--clr-accent-light); color: var(--clr-accent); }
.icon-blue { background: var(--clr-blue-light); color: var(--clr-blue); }
.icon-purple { background: var(--clr-purple-light); color: var(--clr-purple); }
.icon-gold { background: var(--clr-gold-light); color: var(--clr-gold); }
.icon-red { background: var(--clr-red-light); color: var(--clr-red); }
.icon-green-alt { background: var(--clr-green-alt-light); color: var(--clr-green-alt); }

/* ---- ELEMENT THEMES (split-visuals, case thumbs) ---- */
.theme-blue { background: var(--clr-blue-light); color: var(--clr-blue); }
.theme-purple { background: var(--clr-purple-light); color: var(--clr-purple); }
.theme-gold { background: var(--clr-gold-light); color: var(--clr-gold); }
.theme-green-alt { background: var(--clr-green-alt-light); color: var(--clr-green-alt); }
.theme-slate { background: var(--clr-slate-light); color: var(--clr-slate); }

/* ---- CARD BORDER ACCENTS ---- */

/* ---- SECTOR DOT & LABEL COLORS ---- */
.dot-assoc { background: var(--clr-assoc); }
.dot-gov { background: var(--clr-gov); }
.dot-purple { background: var(--clr-purple); }
.dot-red { background: var(--clr-red); }
.dot-nonprofit { background: var(--clr-nonprofit); }
.label-assoc { color: #99660E; }
.label-gov { color: #1E5A94; }
.label-purple { color: #5240A0; }
.label-red { color: #8B3333; }
.label-nonprofit { color: #1E7045; }

/* ---- CARD LINK ---- */
.card-link {
  font-size: 0.8125rem; font-weight: 500;
  color: var(--clr-accent); text-decoration: none;
  display: inline-block; margin-top: 0.75rem;
}

/* ---- BUTTON SIZES ---- */
.btn-demo-lg { padding: 12px 28px; font-size: 0.9375rem; }

/* ---- SECTION HELPERS ---- */
.section-center .card-grid,
.section-center .features-grid { margin-top: 2rem; }
.subsection-header { text-align: center; margin-bottom: 2rem; }
.subsection-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.4vw, 1.5rem);
  font-weight: 400;
}
.subsection-header p {
  color: var(--clr-text-secondary);
  font-size: 1rem; margin: 0;
}
.section-label {
  font-family: var(--font-body);
  font-size: 0.875rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--clr-text-secondary);
  margin-top: 2rem; margin-bottom: 1rem;
}

/* ---- LOGO GRID (client logos) ---- */
h2.logo-eyebrow {
  font-family: var(--font-body);
  font-size: 0.8125rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--clr-text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.65;
}
.logo-grid {
  display: flex; flex-wrap: wrap;
  justify-content: center; align-items: center;
  gap: 2rem 3rem; max-width: 960px; margin: 0 auto;
}
.logo-placeholder {
  width: 120px; height: 100px;
  background: var(--clr-border); border-radius: 8px;
}
.logo-img {
  height: 100px; width: auto;
  object-fit: contain;
}

/* ---- CONTACT HELPERS ---- */
.contact-alt {
  margin-top: 2.5rem; padding-top: 2rem;
  border-top: 1px solid var(--clr-border);
}
.form-hint {
  font-size: 0.8125rem;
  color: var(--clr-text-secondary);
  margin-bottom: 0.5rem;
}

/* ---- NAV ---- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250,250,247,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--clr-border);
  padding: 0 var(--px);
}
.nav-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 66px;
}
.nav-logo {
  font-family: var(--font-display);
  font-weight: 600; font-size: 1.15rem;
  color: var(--clr-accent-dark);
  text-decoration: none;
  letter-spacing: -0.02em;
  display: flex; align-items: center; gap: 8px;
}
.nav-logo-mark {
  width: 24px; height: 24px;
}
.nav-links { display: flex; gap: 1.75rem; align-items: center; }
.nav-links a {
  font-size: 0.875rem; color: var(--clr-text-secondary);
  text-decoration: none; font-weight: 400;
  position: relative;
  transition: color 0.2s;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 1.5px;
  background: var(--clr-accent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
}
.nav-links a:hover { color: var(--clr-text); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links a.active { color: var(--clr-text); font-weight: 500; }
.nav-links a.active::after { transform: scaleX(1); }
.nav-links a.btn-demo::after { display: none; }
.nav-cta-sep {
  width: 1px; height: 20px;
  background: var(--clr-border);
  margin-left: 0.25rem;
}

.btn-demo {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--clr-accent); color: #fff;
  font-size: 0.8125rem; font-weight: 500;
  padding: 8px 18px; border-radius: 100px;
  text-decoration: none; border: none; cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  font-family: var(--font-body);
}
.btn-demo:hover { background: var(--clr-accent-dark); transform: translateY(-1px); }
.nav-links a.btn-demo,
.nav-links a.btn-demo:hover { color: #fff; }

.btn-outline {
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent; color: var(--clr-accent);
  font-size: 0.875rem; font-weight: 500;
  padding: 10px 24px; border-radius: 100px;
  text-decoration: none; border: 1.5px solid var(--clr-accent);
  font-family: var(--font-body);
  transition: background 0.2s, color 0.2s, transform 0.15s;
  cursor: pointer;
}
.btn-outline:hover { background: var(--clr-accent); color: #fff; transform: translateY(-1px); }

/* Mobile menu */
.nav-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  width: 32px; height: 32px;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
}
.nav-toggle span {
  display: block; width: 20px; height: 2px;
  background: var(--clr-text); border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-cta-sep { display: none; }
  .nav-links {
    position: absolute; top: 66px; left: 0; right: 0;
    background: var(--clr-bg);
    border-bottom: 1px solid var(--clr-border);
    flex-direction: column; gap: 0; padding: 0.5rem 0;
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    visibility: hidden;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  }
  .nav-links.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    visibility: visible;
  }
  .nav-links a, .nav-links .btn-demo {
    padding: 0.75rem var(--px);
    width: 100%;
    border-radius: 0;
    font-size: 0.9375rem;
  }
  .nav-links a::after { display: none; }
  .nav-links .btn-demo {
    margin: 0.5rem var(--px); width: auto;
    border-radius: 100px;
  }
}

/* ---- HERO ---- */
.hero {
  max-width: var(--max-w); margin: 0 auto;
  padding: clamp(3rem, 8vw, 6rem) var(--px) clamp(2rem, 5vw, 4rem);
  text-align: center;
}
.hero-eyebrow {
  font-size: 0.8125rem; font-weight: 500;
  color: var(--clr-accent);
  text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: 1rem;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 400; line-height: 1.2;
  letter-spacing: -0.02em;
  max-width: 720px; margin: 0 auto 1.25rem;
}
.hero h1 em {
  font-style: italic; font-weight: 300;
  color: var(--clr-accent);
}
.hero p {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  color: var(--clr-text-secondary);
  max-width: 560px; margin: 0 auto;
  line-height: 1.7;
}
.hero-actions {
  display: flex; gap: 1rem;
  justify-content: center; flex-wrap: wrap;
  margin-top: 2rem;
}

/* Hero bottom gradient */
.hero-home,
.hero-gradient {
  position: relative;
  overflow: hidden;
  max-width: none;
}
.hero-home::after,
.hero-gradient::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 160px;
  background: linear-gradient(
    to right,
    var(--clr-assoc),
    var(--clr-gov),
    var(--clr-purple),
    var(--clr-nonprofit)
  );
  -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,0.18), transparent);
  mask-image: linear-gradient(to top, rgba(0,0,0,0.18), transparent);
  pointer-events: none;
}

/* ---- SECTION PRIMITIVES ---- */
.section {
  max-width: var(--max-w); margin: 0 auto;
  padding: clamp(3rem, 6vw, 5rem) var(--px);
}
.section-bordered {
  border-top: none;
  position: relative;
}
.section-bordered::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--clr-border) 15%, var(--clr-border) 85%, transparent);
}
.section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.8vw, 1.8rem);
  font-weight: 400; line-height: 1.3;
}
.section h2 em { font-style: italic; font-weight: 300; }
.section-center { text-align: center; }
.section-center h2 { margin-bottom: 0.75rem; }
.section-center > p {
  color: var(--clr-text-secondary);
  max-width: 600px; margin: 0 auto 1rem;
  font-size: 1rem;
}
.section-center > p:last-of-type { margin-bottom: 2.5rem; }

/* ---- GRID CARDS ---- */
.card-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}
.card-grid > * {
  flex: 0 1 calc((100% - 2rem) / 3);
  min-width: 280px;
  max-width: 400px;
}
.card-grid-3 > * { flex-basis: 300px; }
.card {
  background: var(--clr-surface);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: left;
}
.card .card-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
}
.card .card-icon svg { width: 20px; height: 20px; }
.card h3, .card h4 {
  font-family: var(--font-body);
  font-size: 1rem; font-weight: 500;
  margin-bottom: 0.35rem;
}
.card p {
  font-size: 0.875rem;
  color: var(--clr-text-secondary);
  line-height: 1.55;
}

/* ---- SPEC LIST (numbered capabilities) ---- */
.spec-list {
  display: flex;
  flex-direction: column;
  max-width: 720px;
  margin: 0 auto;
  counter-reset: spec;
}
.spec-item {
  padding: 1.75rem 0;
  border-top: 1px solid var(--clr-border);
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 0 0.75rem;
  align-items: baseline;
}
.spec-item:last-child {
  border-bottom: 1px solid var(--clr-border);
}
.spec-item::before {
  counter-increment: spec;
  content: counter(spec, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--clr-accent);
  line-height: 1;
  grid-row: 1 / 3;
  padding-top: 0.1rem;
}
.spec-item.spec-blue::before { color: var(--clr-blue); }
.spec-item.spec-purple::before { color: var(--clr-purple); }
.spec-item.spec-gold::before { color: var(--clr-gold); }
.spec-item h3 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--clr-text);
  text-align: left;
}
.spec-item p {
  font-size: 0.9375rem;
  color: var(--clr-text-secondary);
  line-height: 1.65;
  text-align: left;
}

/* Stat cards */
.stat { text-align: center; padding: 2rem 1.5rem; }
.stat .number {
  font-family: var(--font-display);
  font-size: 2.5rem; font-weight: 400;
  color: var(--clr-accent);
  line-height: 1.1;
  margin-bottom: 0.35rem;
}
.stat .label {
  font-size: 0.875rem;
  color: var(--clr-text-secondary);
}

/* ---- VERTICAL SECTIONS (who-its-for) ---- */
.jump-links {
  display: flex; justify-content: center; gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 2.5rem;
}
.jump-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.8125rem; font-weight: 500;
  color: var(--clr-text-secondary);
  padding: 8px 16px;
  border: 1px solid var(--clr-border);
  border-radius: 100px;
  text-decoration: none;
  transition: all 0.2s;
  background: var(--clr-surface);
}
.jump-link:hover {
  border-color: var(--clr-accent);
  color: var(--clr-accent);
  background: var(--clr-accent-light);
}
.jump-dot {
  width: 8px; height: 8px; border-radius: 50%;
  display: inline-block;
}

.verticals {
  max-width: var(--max-w); margin: 0 auto;
  padding: 0 var(--px);
}
.vertical-section {
  padding: clamp(3rem, 6vw, 5rem) 0;
  border-top: 1px solid var(--clr-border);
  scroll-margin-top: 80px;
}
.vertical-section:last-child { border-bottom: 1px solid var(--clr-border); }
.vertical-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
}
@media (max-width: 768px) {
  .vertical-header { grid-template-columns: 1fr; }
}
.vertical-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.75rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.06em;
  margin-bottom: 1rem;
}
.vertical-label .jump-dot { width: 10px; height: 10px; }
.vertical-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 400; line-height: 1.25;
  letter-spacing: -0.015em;
  margin-bottom: 1rem;
}
.vertical-header h2 em { font-style: italic; font-weight: 300; }
.vertical-header .lede {
  font-size: 1rem;
  color: var(--clr-text-secondary);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.pain-solution {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-top: calc(0.75rem * 2.2 + 1rem);
}
.ps-card {
  padding: 0 0 1.5rem;
}
.ps-card + .ps-card {
  padding-top: 1.5rem;
  border-top: 1px solid var(--clr-border);
}
.ps-card-label {
  font-size: 0.8rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}
.ps-card-label.pain { color: #99522E; }
.ps-card-label.solution { color: var(--clr-accent); }
.ps-card p {
  font-size: 0.9375rem;
  color: var(--clr-text-secondary);
  line-height: 1.6;
}

.use-cases { margin-top: clamp(2rem, 4vw, 3rem); }
.use-cases h3 {
  font-family: var(--font-body);
  font-size: 0.8125rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--clr-text-tertiary);
  margin-bottom: 1rem;
}
.uc-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}
.uc-grid > * {
  flex: 0 1 calc((100% - 2rem) / 3);
  min-width: 240px;
  max-width: 400px;
}
.uc-item {
  background: var(--clr-surface);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: left;
}
.uc-item .uc-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
}
.uc-item .uc-icon svg { width: 20px; height: 20px; }
.uc-item h4 {
  font-size: 0.9375rem; font-weight: 500;
  margin-bottom: 0.35rem;
}
.uc-item p {
  font-size: 0.8125rem;
  color: var(--clr-text-secondary);
  line-height: 1.55;
}

/* ---- FEATURE GRID (cross-cutting) ---- */
.features-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}
.features-grid > * {
  flex: 0 1 calc((100% - 2rem) / 3);
  min-width: 240px;
  max-width: 400px;
}
.feature-card {
  background: var(--clr-surface);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: left;
}
.feature-card .feat-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
}
.feature-card .feat-icon svg { width: 20px; height: 20px; }
.feature-card h3 {
  font-size: 0.9375rem; font-weight: 500;
  margin-bottom: 0.35rem;
}
.feature-card p {
  font-size: 0.8125rem;
  color: var(--clr-text-secondary);
  line-height: 1.55;
}

/* ---- PRICING ---- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.price-card {
  background: var(--clr-surface);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex; flex-direction: column;
}
.price-card:not(.featured) {
  padding-top: calc(2rem + 0.75rem + 0.5rem);
}
.price-card.featured {
  box-shadow: 0 0 0 2px var(--clr-accent);
}
.price-card .tier-label {
  font-size: 0.75rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--clr-accent);
  margin-bottom: 0.5rem;
}
.price-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem; font-weight: 400;
  margin-bottom: 0.5rem;
}
.price-card .price {
  font-family: var(--font-display);
  font-size: 2rem; font-weight: 400;
  color: var(--clr-text);
  margin-bottom: 0.25rem;
}
.price-card .price span {
  font-family: var(--font-body);
  font-size: 0.875rem; font-weight: 400;
  color: var(--clr-text-secondary);
}
.price-card .price-desc {
  font-size: 0.875rem;
  color: var(--clr-text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}
.price-card ul {
  list-style: none;
  flex: 1;
  margin-bottom: 1.5rem;
}
.price-card ul li {
  font-size: 0.875rem;
  color: var(--clr-text-secondary);
  padding: 0.4rem 0;
  padding-left: 1.5rem;
  position: relative;
  line-height: 1.5;
}
.price-card ul li::before {
  content: '';
  position: absolute; left: 0; top: 0.65rem;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--clr-accent-light);
  border: 1.5px solid var(--clr-accent);
}
.price-card .btn-demo, .price-card .btn-outline {
  width: 100%; justify-content: center;
  padding: 12px 24px; font-size: 0.875rem;
}

/* ---- CASE STUDIES ---- */
.case-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}
.case-card {
  background: var(--clr-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.2s;
  text-decoration: none; color: inherit;
  display: flex; flex-direction: column;
}
.case-card:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
.case-thumb {
  height: 30px;
}
.case-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.case-tag {
  font-size: 0.6875rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--clr-accent);
  margin-bottom: 0.5rem;
}
.case-tag.tag-assoc { color: var(--clr-assoc); }
.case-tag.tag-gov { color: var(--clr-gov); }
.case-tag.tag-highered { color: var(--clr-purple); }
.case-tag.tag-nonprofit { color: var(--clr-green-alt); }
.case-tag.tag-publicinterest { color: var(--clr-slate); }
.case-body h2 {
  font-family: var(--font-display);
  font-size: 1.15rem; font-weight: 400;
  margin-bottom: 0.5rem; line-height: 1.3;
}
.case-body p {
  font-size: 0.875rem;
  color: var(--clr-text-secondary);
  line-height: 1.6; flex: 1;
}
.case-link {
  font-size: 0.8125rem; font-weight: 500;
  color: var(--clr-accent);
  margin-top: 1rem;
}

/* ---- CASE STUDY DETAIL ---- */
.case-logo {
  width: 150px; height: 150px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.5rem;
  font-family: var(--font-display);
  font-size: 0.8125rem; font-weight: 400;
  color: var(--clr-text-tertiary);
  font-style: italic;
}
.case-logo img {
  max-width: 100%; max-height: 100%;
  object-fit: contain;
}

.case-detail h2 {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.5vw, 1.6rem);
  font-weight: 400; line-height: 1.3;
  margin-bottom: 1rem;
}
.case-detail p {
  font-size: 1rem;
  color: var(--clr-text-secondary);
  line-height: 1.7;
}
.case-detail p + p {
  margin-top: 1rem;
}

.stat-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0;
}
.stat-grid > * {
  flex: 0 1 calc((100% - 2rem) / 3);
  min-width: 240px;
  max-width: 400px;
}
.stat-card {
  background: var(--clr-surface);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: left;
}
.stat-card .number {
  font-family: var(--font-display);
  font-size: 2rem; font-weight: 400;
  color: var(--clr-accent);
  line-height: 1.1;
  margin-bottom: 0.35rem;
}
.stat-card .label {
  font-size: 0.9375rem; font-weight: 500;
  margin-bottom: 0.35rem;
}
.stat-card p {
  font-size: 0.8125rem;
  color: var(--clr-text-secondary);
  line-height: 1.55;
}

/* ---- CONTACT FORM ---- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
@media (max-width: 768px) {
  .contact-layout { grid-template-columns: 1fr; }
}
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-size: 0.8125rem; font-weight: 500;
  margin-bottom: 0.4rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  background: var(--clr-surface);
  color: var(--clr-text);
  transition: border-color 0.2s;
  line-height: 1.5;
}
.form-group input:focus-visible,
.form-group select:focus-visible,
.form-group textarea:focus-visible {
  outline: 2px solid var(--clr-accent);
  outline-offset: 2px;
  border-color: var(--clr-accent);
  box-shadow: 0 0 0 3px rgba(27,122,90,0.1);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group select { appearance: none; cursor: pointer; }

.form-message {
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  margin-bottom: 1.25rem;
  display: none;
}
.form-message.success {
  display: block;
  background: var(--clr-accent-light);
  color: var(--clr-accent-dark);
  border: 1px solid rgba(27,122,90,0.2);
}
.form-message.error {
  display: block;
  background: #FEF2F2;
  color: #991B1B;
  border: 1px solid rgba(153,27,27,0.15);
}

.contact-info h3 {
  font-family: var(--font-display);
  font-size: 1.3rem; font-weight: 400;
  margin-bottom: 1rem; line-height: 1.3;
}
.contact-info p {
  font-size: 0.9375rem;
  color: var(--clr-text-secondary);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}
.contact-checklist {
  list-style: none;
}
.contact-checklist li {
  font-size: 0.875rem;
  color: var(--clr-text-secondary);
  padding: 0.5rem 0;
  padding-left: 1.75rem;
  position: relative;
  line-height: 1.5;
}
.contact-checklist li::before {
  content: '';
  position: absolute; left: 0; top: 0.7rem;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--clr-accent-light);
  border: 2px solid var(--clr-accent);
}

/* ---- ABOUT / SPLIT LAYOUTS ---- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (max-width: 768px) {
  .split { grid-template-columns: 1fr; }
}
.split h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 400; line-height: 1.25;
  margin-bottom: 1rem;
}
.split h2 em { font-style: italic; font-weight: 300; }
.split p {
  font-size: 1rem;
  color: var(--clr-text-secondary);
  line-height: 1.7;
  margin-bottom: 1rem;
}
.split p:last-child { margin-bottom: 0; }

.split-visual {
  border-radius: var(--radius-lg);
  aspect-ratio: 4/3;
  display: flex; align-items: flex-start; justify-content: flex-start;
  position: relative; overflow: hidden;
}
.pattern-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}
.split-visual-label {
  position: relative; z-index: 1;
  margin: 1rem;
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.45;
  color: inherit;
}
.split-visual-logo {
  width: 80px; height: 80px;
  opacity: 0.35;
}

/* Values */
.values-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}
.values-grid > * {
  flex: 0 1 calc((100% - 2rem) / 3);
  min-width: 240px;
  max-width: 400px;
}
.value-item h4 {
  font-size: 0.9375rem; font-weight: 500;
  margin-bottom: 0.35rem;
}
.value-item p {
  font-size: 0.8125rem;
  color: var(--clr-text-secondary);
  line-height: 1.55;
}

/* ---- CTA BAND ---- */
.cta-band {
  max-width: var(--max-w); margin: 0 auto;
  padding: clamp(3rem, 6vw, 4.5rem) var(--px);
}
.cta-band-inner {
  background: var(--clr-accent);
  border-radius: var(--radius-lg);
  padding: clamp(2.5rem, 5vw, 3.5rem);
  text-align: center;
  color: #fff;
}
.cta-band-inner h2 {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.8vw, 1.9rem);
  font-weight: 400; line-height: 1.3;
  margin-bottom: 0.75rem;
}
.cta-band-inner p {
  font-size: 0.9375rem;
  opacity: 0.92;
  max-width: 480px; margin: 0 auto 1.75rem;
  line-height: 1.6;
}
.btn-demo-inv {
  display: inline-flex; align-items: center; gap: 6px;
  background: #fff; color: var(--clr-accent-dark);
  font-size: 0.875rem; font-weight: 500;
  padding: 10px 24px; border-radius: 100px;
  text-decoration: none;
  font-family: var(--font-body);
  transition: transform 0.15s, box-shadow 0.2s;
}
.btn-demo-inv:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(0,0,0,0.15); }

/* ---- FAQ ---- */
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--clr-border);
  padding: 1.25rem 0;
}
.faq-item summary {
  font-size: 0.9375rem; font-weight: 500;
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.25rem; font-weight: 300;
  color: var(--clr-text-tertiary);
  transition: transform 0.2s;
}
.faq-item[open] summary::after { content: '\2212'; }
.faq-item .faq-answer {
  padding-top: 0.75rem;
  font-size: 0.875rem;
  color: var(--clr-text-secondary);
  line-height: 1.65;
  max-width: 600px;
}

/* ---- FOOTER ---- */
.footer {
  background: var(--clr-text);
  color: rgba(255,255,255,0.65);
  padding: clamp(3rem, 6vw, 4.5rem) var(--px) 0;
  margin-top: 0;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  padding-bottom: clamp(2.5rem, 5vw, 3.5rem);
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.footer-brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.footer-brand-name img {
  width: 20px;
  height: 20px;
}
.footer-tagline {
  font-size: 0.875rem;
  line-height: 1.6;
  max-width: 280px;
}
.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.65);
  margin-bottom: 1rem;
}
.footer-col a {
  display: block;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  padding: 0.25rem 0;
  transition: color 0.15s;
}
.footer-col a:hover {
  color: #fff;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.6);
}
.footer-bottom a {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  transition: color 0.15s;
}
.footer-bottom a:hover {
  color: rgba(255,255,255,0.85);
}
@media (max-width: 768px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ---- ANIMATIONS ---- */
@media (prefers-reduced-motion: no-preference) {
  .fade-in {
    opacity: 0; transform: translateY(16px);
    animation: fadeUp 0.6s ease forwards;
  }
  @keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
  }
  .delay-1 { animation-delay: 0.1s; }
  .delay-2 { animation-delay: 0.2s; }
  .delay-3 { animation-delay: 0.3s; }
  .delay-4 { animation-delay: 0.4s; }
}
