/*
Theme Name: Confidence Interval
Theme URI: https://www.confidenceinterval.com
Author: Confidence Interval, LLC
Author URI: https://www.confidenceinterval.com
Description: Official theme for Confidence Interval — Accountable Analytics consulting.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: confidence-interval
Tags: business, analytics, custom-colors, custom-logo, custom-menu, responsive-layout
*/

/* ─── CSS Variables ─────────────────────────────────────────────────────────── */
:root {
  --ci-purple: #7F1AF5;
  --ci-indigo: #6E4AEF;
  --ci-blue: #647FEA;
  --ci-sky: #65B4E6;
  --ci-teal: #6FE5E3;
  --ci-dark: #12103A;
  --ci-navy: #1E1B52;
  --ci-purple-light: #EDE8FE;
  --ci-purple-mid: #C4B3FB;

  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;

  --max-w: 72rem;
  --px: 1rem;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Armata', sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--slate-700);
  background: #ffffff;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ─── Container ─────────────────────────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--px);
  padding-right: var(--px);
}
@media (min-width: 640px)  { .container { padding-left: 1.5rem; padding-right: 1.5rem; } }
@media (min-width: 1024px) { .container { padding-left: 2rem;   padding-right: 2rem;   } }

/* ─── Typography ────────────────────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 { line-height: 1.2; }

.section-heading {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 1rem;
}

.section-subheading {
  font-size: 1.125rem;
  color: var(--slate-600);
  margin-bottom: 2.5rem;
  max-width: 42rem;
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ci-teal);
  margin-bottom: 1rem;
}

/* ─── Buttons ───────────────────────────────────────────────────────────────── */
.btn-primary {
  display: inline-block;
  background: var(--ci-purple);
  color: #ffffff;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 0.375rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1;
  text-align: center;
}
.btn-primary:hover { background: var(--ci-indigo); color: #ffffff; }
.btn-primary:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(127,26,245,0.35);
}

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--ci-purple);
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 0.375rem;
  border: 2px solid var(--ci-purple);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1;
  text-align: center;
}
.btn-secondary:hover { background: var(--ci-purple-light); }
.btn-secondary:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(127,26,245,0.35);
}

.btn-outline-white {
  display: inline-block;
  background: transparent;
  color: #ffffff;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 0.375rem;
  border: 2px solid #ffffff;
  cursor: pointer;
  transition: background 0.2s;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1;
  text-align: center;
}
.btn-outline-white:hover { background: rgba(255,255,255,0.1); color: #ffffff; }

.btn-sm { padding: 0.5rem 1.125rem; font-size: 0.875rem; }

/* ─── Forms ─────────────────────────────────────────────────────────────────── */
.form-input {
  width: 100%;
  border-radius: 0.375rem;
  border: 1px solid var(--slate-300);
  padding: 0.625rem 1rem;
  color: var(--slate-800);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-input::placeholder { color: var(--slate-400); }
.form-input:focus {
  outline: none;
  border-color: var(--ci-purple);
  box-shadow: 0 0 0 1px var(--ci-purple);
}

.form-error { margin-top: 0.25rem; font-size: 0.875rem; color: #dc2626; }

.form-label {
  display: block;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--slate-700);
  margin-bottom: 0.375rem;
}

.form-group { margin-bottom: 1.25rem; }

/* ─── Gradients ─────────────────────────────────────────────────────────────── */
.hero-gradient {
  background: linear-gradient(135deg, var(--ci-dark) 0%, var(--ci-navy) 50%, var(--ci-indigo) 100%);
}

.cta-gradient {
  background: linear-gradient(to right, var(--ci-dark), var(--ci-navy), var(--ci-indigo));
}

/* ─── Header / Navigation ───────────────────────────────────────────────────── */
.site-header {
  background: var(--ci-dark);
  border-bottom: 1px solid var(--ci-navy);
  position: sticky;
  top: 0;
  z-index: 50;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

.site-logo img { height: 2.75rem; width: auto; }

.site-nav { display: none; }
@media (min-width: 768px) {
  .site-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
  }
}

.site-nav a {
  display: block;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--slate-300);
  transition: color 0.15s, background 0.15s;
}
.site-nav a:hover,
.site-nav a.current-menu-item,
.site-nav a[aria-current="page"] {
  color: var(--ci-teal);
  background: var(--ci-navy);
}

.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  border-radius: 0.375rem;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--slate-300);
  transition: color 0.15s, background 0.15s;
}
.nav-toggle:hover { color: var(--ci-teal); background: var(--ci-navy); }
@media (min-width: 768px) { .nav-toggle { display: none; } }

.mobile-nav {
  display: none;
  border-top: 1px solid var(--ci-navy);
  background: var(--ci-dark);
  padding: 0.75rem 1rem;
}
.mobile-nav.is-open { display: block; }

.mobile-nav a {
  display: block;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--slate-300);
  transition: color 0.15s, background 0.15s;
  margin-bottom: 0.25rem;
}
.mobile-nav a:hover,
.mobile-nav a.current-menu-item {
  color: var(--ci-teal);
  background: var(--ci-navy);
}

/* ─── Footer ────────────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--ci-dark);
  color: var(--slate-400);
}

.site-footer .footer-inner {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
}

.footer-brand .footer-logo { height: 3rem; width: auto; margin-bottom: 0.75rem; }
.footer-brand p { font-size: 0.875rem; line-height: 1.7; }

.footer-col-title {
  color: #ffffff;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.footer-links { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links a { font-size: 0.875rem; transition: color 0.15s; }
.footer-links a:hover { color: var(--ci-teal); }

.footer-social { display: flex; gap: 1rem; margin-top: 1rem; }
.footer-social a { transition: color 0.15s; }
.footer-social a:hover { color: var(--ci-teal); }
.footer-social svg { width: 1.25rem; height: 1.25rem; }

.footer-bottom {
  border-top: 1px solid var(--ci-navy);
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.875rem;
}
@media (min-width: 640px) { .footer-bottom { flex-direction: row; } }

.footer-bottom-links { display: flex; gap: 1.5rem; }
.footer-bottom-links a:hover { color: var(--ci-teal); }

/* ─── Hero Sections ─────────────────────────────────────────────────────────── */
.hero {
  padding-top: 6rem;
  padding-bottom: 6rem;
  color: #ffffff;
}
@media (min-width: 768px) { .hero--tall { padding-top: 8rem; padding-bottom: 8rem; } }

.hero h1 {
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}
@media (min-width: 768px) { .hero h1 { font-size: 3rem; } }

.hero-sub {
  font-size: 1.125rem;
  color: var(--slate-300);
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 48rem;
}
@media (min-width: 768px) { .hero-sub { font-size: 1.25rem; } }

.hero-max { max-width: 48rem; }

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
@media (min-width: 640px) { .hero-actions { flex-direction: row; } }

/* Page hero (shorter) */
.page-hero { padding-top: 4rem; padding-bottom: 4rem; color: #ffffff; }
.page-hero h1 { font-size: 2.25rem; font-weight: 700; margin-bottom: 0.75rem; }
.page-hero p { font-size: 1.125rem; color: var(--slate-300); max-width: 42rem; }

/* ─── Cards ─────────────────────────────────────────────────────────────────── */
.card {
  background: #ffffff;
  border-radius: 0.75rem;
  border: 1px solid var(--slate-200);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.card:hover { border-color: var(--ci-indigo); box-shadow: 0 4px 16px rgba(0,0,0,0.08); }

.card-accent-bar { height: 6px; width: 100%; }

.card-body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }

.card-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.25rem;
}

.card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 0.25rem;
  transition: color 0.2s;
}
.card:hover .card-title { color: var(--ci-purple); }

.card-desc {
  font-size: 0.875rem;
  color: var(--slate-600);
  line-height: 1.6;
  flex: 1;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1rem;
}

.card-price { font-size: 1.25rem; font-weight: 700; color: var(--ci-dark); }

.card-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ci-purple);
  transition: color 0.2s;
}
.card:hover .card-link { color: var(--ci-indigo); }

/* ─── Pricing Cards (full-width) ────────────────────────────────────────────── */
.pricing-card {
  background: #ffffff;
  border-radius: 1rem;
  border: 1px solid var(--slate-200);
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  overflow: hidden;
  scroll-margin-top: 6rem;
}

.pricing-card-header {
  padding: 1.5rem 2rem;
  color: #ffffff;
}
.pricing-card-header h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: 0.25rem; }
.pricing-card-header p { color: rgba(255,255,255,0.8); font-size: 0.875rem; }

.pricing-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  padding: 1rem 2rem;
  background: var(--slate-50);
  border-bottom: 1px solid var(--slate-200);
}

.pricing-card-price {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}
.pricing-card-price .amount { font-size: 1.875rem; font-weight: 700; color: var(--ci-dark); }
.pricing-card-price .period { font-size: 0.875rem; color: var(--slate-500); }

.pricing-card-divider {
  display: none;
  width: 1px;
  height: 1.5rem;
  background: var(--slate-300);
}
@media (min-width: 640px) { .pricing-card-divider { display: block; } }

.pricing-card-timeline {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  color: var(--slate-600);
}
.pricing-card-timeline svg { width: 1rem; height: 1rem; flex-shrink: 0; }

.pricing-card-cta { margin-left: auto; }

.pricing-card-body { padding: 1.5rem 2rem; }

/* ─── Checklist / Deliverables ──────────────────────────────────────────────── */
.check-list { display: flex; flex-direction: column; gap: 0.5rem; }
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--slate-700);
}
.check-list .check-icon { width: 1rem; height: 1rem; flex-shrink: 0; margin-top: 0.1rem; }

.x-list { display: flex; flex-direction: column; gap: 0.5rem; }
.x-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--slate-500);
}
.x-list .x-icon { width: 1rem; height: 1rem; flex-shrink: 0; margin-top: 0.1rem; color: var(--slate-400); }

.checklist-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem 2.5rem;
}
@media (min-width: 768px) { .checklist-grid { grid-template-columns: repeat(2, 1fr); } }

.checklist-category-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

/* ─── Maturity Track ────────────────────────────────────────────────────────── */
.maturity-box {
  border-radius: 0.75rem;
  border: 1px solid var(--slate-200);
  background: var(--slate-50);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.maturity-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--slate-400);
  margin-bottom: 0.75rem;
}

.maturity-phases {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem;
  margin-bottom: 0.75rem;
}

.maturity-phase {
  border-radius: 9999px;
  padding: 0.125rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 600;
}

.maturity-phase--inactive {
  background: var(--slate-200);
  color: var(--slate-400);
}

.maturity-arrow { font-size: 0.75rem; color: var(--slate-300); }

.maturity-desc { font-size: 0.875rem; color: var(--slate-600); line-height: 1.6; }

/* ─── Note / Info boxes ─────────────────────────────────────────────────────── */
.note-box {
  margin-top: 1.5rem;
  font-size: 0.75rem;
  color: var(--slate-500);
  background: var(--slate-50);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--slate-200);
}

.not-included-box {
  margin-top: 1.5rem;
  border-radius: 0.75rem;
  border: 1px solid var(--slate-200);
  background: var(--slate-50);
  padding: 1.25rem;
}

.not-included-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--slate-400);
  margin-bottom: 0.75rem;
}

/* ─── About page phases ─────────────────────────────────────────────────────── */
.phases-list { display: flex; flex-direction: column; }

.phase-item {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--slate-200);
  scroll-margin-top: 6rem;
}
.phase-item:last-child { border-bottom: none; }
@media (min-width: 768px) { .phase-item { flex-direction: row; gap: 2.5rem; } }

.phase-number-col {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  flex-shrink: 0;
}
@media (min-width: 768px) {
  .phase-number-col { flex-direction: column; align-items: center; width: 4rem; gap: 0; }
}

.phase-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 0.75rem;
  background: var(--ci-purple);
  color: #ffffff;
  font-weight: 700;
  font-size: 1.125rem;
  flex-shrink: 0;
}

.phase-connector {
  display: none;
  width: 1px;
  flex: 1;
  background: var(--ci-purple-mid);
  margin-top: 0.5rem;
  min-height: 2rem;
}
@media (min-width: 768px) { .phase-connector { display: block; } }

.phase-content { flex: 1; padding-bottom: 0.5rem; }
.phase-title { font-size: 1.25rem; font-weight: 700; color: var(--slate-900); margin-bottom: 0.25rem; }
.phase-outcome { font-size: 0.875rem; font-weight: 600; color: var(--ci-purple); margin-bottom: 0.75rem; }
.phase-desc { color: var(--slate-600); line-height: 1.7; }

/* ─── Outcomes list ─────────────────────────────────────────────────────────── */
.outcomes-list { display: flex; flex-direction: column; gap: 0.75rem; }
.outcomes-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--slate-700);
}
.outcomes-list svg { width: 1.25rem; height: 1.25rem; color: var(--ci-teal); flex-shrink: 0; margin-top: 0.125rem; }

/* ─── Dark callout card ─────────────────────────────────────────────────────── */
.dark-callout {
  background: var(--ci-dark);
  border-radius: 1rem;
  padding: 2rem;
  color: #ffffff;
}
.dark-callout .eyebrow { color: var(--ci-teal); }
.dark-callout h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 1rem; }
.dark-callout p { color: var(--slate-300); line-height: 1.7; margin-bottom: 1rem; }

/* ─── Credential cards ──────────────────────────────────────────────────────── */
.cred-card {
  background: #ffffff;
  border-radius: 0.75rem;
  border: 1px solid var(--slate-200);
  padding: 1.5rem;
}
.cred-card h3 { font-size: 1.125rem; font-weight: 700; color: var(--slate-900); margin-bottom: 0.75rem; }
.cred-card p { font-size: 0.875rem; color: var(--slate-600); line-height: 1.7; margin-bottom: 1rem; }
.cred-card a { font-size: 0.875rem; font-weight: 600; color: var(--ci-indigo); }
.cred-card a:hover { text-decoration: underline; }

/* ─── Grid layouts ──────────────────────────────────────────────────────────── */
.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 640px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 768px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }

.grid-col-5 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
@media (min-width: 1024px) { .grid-col-5 { grid-template-columns: 3fr 2fr; } }

/* ─── Technology tags ───────────────────────────────────────────────────────── */
.tech-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.tech-tag {
  background: var(--slate-50);
  border: 1px solid var(--ci-purple-mid);
  border-radius: 9999px;
  padding: 0.625rem 1.25rem;
  color: var(--ci-indigo);
  font-weight: 500;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

/* ─── Platforms grid ────────────────────────────────────────────────────────── */
.platforms-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 640px) { .platforms-grid { grid-template-columns: repeat(3, 1fr); } }

.platform-group-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ci-indigo);
  margin-bottom: 0.75rem;
}

.platform-list { display: flex; flex-direction: column; gap: 0.5rem; }
.platform-list li { display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; color: var(--slate-700); }
.platform-dot {
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 9999px;
  background: var(--ci-indigo);
  flex-shrink: 0;
}

/* ─── FAQ ───────────────────────────────────────────────────────────────────── */
.faq-item {
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--slate-100);
  margin-bottom: 1.5rem;
}
.faq-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.faq-q { font-weight: 600; color: var(--slate-900); margin-bottom: 0.25rem; }
.faq-a { font-size: 0.875rem; color: var(--slate-600); line-height: 1.7; }

/* ─── Limits badges ─────────────────────────────────────────────────────────── */
.limits-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1.5rem; }
.limit-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background: var(--slate-100);
  border-radius: 9999px;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--slate-600);
}
.limit-badge svg { width: 0.875rem; height: 0.875rem; color: var(--slate-400); }

/* ─── Bridge box ────────────────────────────────────────────────────────────── */
.bridge-box {
  border-radius: 1rem;
  border: 1px solid var(--slate-200);
  background: #ffffff;
  padding: 1.5rem 2rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.bridge-box .eyebrow-grey {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--slate-400);
  margin-bottom: 0.5rem;
}
.bridge-box h3 { font-size: 1.125rem; font-weight: 700; color: var(--ci-dark); margin-bottom: 0.5rem; }
.bridge-box p { font-size: 0.875rem; color: var(--slate-600); line-height: 1.7; margin-bottom: 1rem; }

/* ─── Newsletter section ────────────────────────────────────────────────────── */
.newsletter-section { padding: 4rem 0; }

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 28rem;
  margin: 0 auto;
}
@media (min-width: 640px) { .newsletter-form { flex-direction: row; } }

.newsletter-form .form-input { flex: 1; }

.newsletter-message { font-size: 0.875rem; margin-top: 0.5rem; }
.newsletter-message--success { color: var(--ci-teal); }
.newsletter-message--error { color: #f87171; }

/* ─── Contact page ──────────────────────────────────────────────────────────── */
.schedule-card {
  background: linear-gradient(135deg, var(--ci-dark), var(--ci-navy), var(--ci-indigo));
  border-radius: 0.75rem;
  padding: 1.5rem;
  color: #ffffff;
}
.schedule-card-header { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.75rem; }
.schedule-card-header svg { width: 1.5rem; height: 1.5rem; color: var(--ci-teal); flex-shrink: 0; }
.schedule-card-header h3 { font-size: 1.125rem; font-weight: 700; }
.schedule-card p { font-size: 0.875rem; color: var(--slate-300); line-height: 1.7; margin-bottom: 1rem; }

.careers-card {
  background: var(--ci-purple-light);
  border-radius: 0.75rem;
  padding: 1.5rem;
  border: 1px solid rgba(196,179,251,0.4);
}
.careers-card h3 { font-size: 1.125rem; font-weight: 700; color: var(--slate-900); margin-bottom: 0.5rem; }
.careers-card p { font-size: 0.875rem; color: var(--slate-600); line-height: 1.7; margin-bottom: 0.75rem; }
.careers-card a { color: var(--ci-purple); font-weight: 500; transition: color 0.15s; }
.careers-card a:hover { color: var(--ci-indigo); }

.contact-dl { display: flex; flex-direction: column; gap: 1.25rem; color: var(--slate-600); }
.contact-dl-item { display: flex; gap: 0.75rem; }
.contact-dl-item svg { width: 1.25rem; height: 1.25rem; color: var(--ci-purple); flex-shrink: 0; margin-top: 0.125rem; }
.contact-dl-item a { color: var(--ci-purple); transition: color 0.15s; }
.contact-dl-item a:hover { color: var(--ci-indigo); }
.contact-dl-item strong { color: var(--slate-800); }

/* ─── Blog ──────────────────────────────────────────────────────────────────── */
.blog-card {
  background: #ffffff;
  border-radius: 0.75rem;
  border: 1px solid var(--slate-200);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.blog-card:hover { border-color: var(--ci-indigo); box-shadow: 0 4px 16px rgba(0,0,0,0.08); }

.blog-card-body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }

.blog-card-meta { font-size: 0.75rem; color: var(--slate-400); margin-bottom: 0.75rem; }

.blog-card-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 0.5rem;
  line-height: 1.3;
  transition: color 0.2s;
}
.blog-card:hover .blog-card-title { color: var(--ci-purple); }

.blog-card-excerpt { font-size: 0.875rem; color: var(--slate-600); line-height: 1.6; flex: 1; }

.blog-card-link {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ci-purple);
  transition: color 0.2s;
}
.blog-card:hover .blog-card-link { color: var(--ci-indigo); }

.blog-tag {
  display: inline-block;
  background: var(--ci-purple-light);
  color: var(--ci-indigo);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  margin-right: 0.375rem;
  margin-bottom: 0.375rem;
}

/* Single post */
.post-content { max-width: 42rem; }
.post-content h2 { font-size: 1.5rem; font-weight: 700; color: var(--slate-900); margin: 2rem 0 0.75rem; }
.post-content h3 { font-size: 1.25rem; font-weight: 700; color: var(--slate-900); margin: 1.5rem 0 0.5rem; }
.post-content p { margin-bottom: 1rem; line-height: 1.75; color: var(--slate-700); }
.post-content ul, .post-content ol { margin: 1rem 0 1rem 1.5rem; }
.post-content li { margin-bottom: 0.25rem; color: var(--slate-700); }
.post-content blockquote {
  border-left: 4px solid var(--ci-purple);
  padding-left: 1rem;
  margin: 1.5rem 0;
  color: var(--slate-600);
  font-style: italic;
}
.post-content a { color: var(--ci-purple); }
.post-content a:hover { text-decoration: underline; }
.post-content strong { font-weight: 700; color: var(--slate-800); }
.post-content code {
  font-size: 0.85em;
  background: var(--slate-100);
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
}
.post-content pre {
  background: var(--slate-900);
  color: var(--slate-100);
  padding: 1rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}

/* ─── Pagination ────────────────────────────────────────────────────────────── */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 3rem;
}
.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--slate-600);
  border: 1px solid var(--slate-200);
  transition: background 0.15s, color 0.15s;
}
.pagination a:hover { background: var(--ci-purple-light); color: var(--ci-purple); }
.pagination .current { background: var(--ci-purple); color: #ffffff; border-color: var(--ci-purple); }

/* ─── Section spacing helpers ───────────────────────────────────────────────── */
.section-sm { padding-top: 3.5rem; padding-bottom: 3.5rem; }
.section-md { padding-top: 5rem; padding-bottom: 5rem; }
.section-lg { padding-top: 6rem; padding-bottom: 6rem; }

.bg-white { background: #ffffff; }
.bg-slate-50 { background: var(--slate-50); }
.border-t { border-top: 1px solid var(--slate-200); }
.border-t-2 { border-top: 2px solid var(--slate-200); }

.space-y-12 > * + * { margin-top: 3rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }

/* ─── CTA section ───────────────────────────────────────────────────────────── */
.cta-section { padding: 3.5rem 0; text-align: center; color: #ffffff; }
.cta-section h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: 0.75rem; }
.cta-section p { color: var(--slate-300); margin-bottom: 1.5rem; max-width: 32rem; margin-left: auto; margin-right: auto; }

/* ─── 404 ───────────────────────────────────────────────────────────────────── */
.error-page { text-align: center; padding: 6rem 0; }
.error-code { font-size: 6rem; font-weight: 700; color: var(--ci-purple); line-height: 1; margin-bottom: 1rem; }
.error-title { font-size: 1.5rem; font-weight: 700; color: var(--slate-900); margin-bottom: 0.75rem; }
.error-desc { color: var(--slate-600); margin-bottom: 2rem; max-width: 28rem; margin-left: auto; margin-right: auto; }

/* ─── WordPress alignment classes ───────────────────────────────────────────── */
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignleft { float: left; margin-right: 1.5rem; margin-bottom: 1rem; }
.alignright { float: right; margin-left: 1.5rem; margin-bottom: 1rem; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 0.875rem; color: var(--slate-500); margin-top: 0.375rem; }

/* ─── Nav cards (industries/customers index) ────────────────────────────────── */
.nav-card {
  display: block;
  background: #ffffff;
  border-radius: 1rem;
  border: 1px solid var(--slate-200);
  padding: 2rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  transition: box-shadow 0.2s, border-color 0.2s;
  text-decoration: none;
}
.nav-card:hover { border-color: var(--ci-indigo); box-shadow: 0 4px 16px rgba(0,0,0,0.1); }

.nav-card-eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ci-indigo);
  margin-bottom: 0.25rem;
}
.nav-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ci-dark);
  margin-bottom: 0.75rem;
  transition: color 0.15s;
}
.nav-card:hover .nav-card-title { color: var(--ci-indigo); }
.nav-card-desc { font-size: 0.875rem; color: var(--slate-600); line-height: 1.6; }
.nav-card-link { margin-top: 1rem; font-size: 0.875rem; font-weight: 600; color: var(--ci-indigo); }

/* ─── Bullet dot list (industry/customer challenge lists) ───────────────────── */
.ci-bullet-list { display: flex; flex-direction: column; gap: 0.75rem; }
.ci-bullet-list li { display: flex; align-items: flex-start; gap: 0.75rem; color: var(--slate-700); line-height: 1.6; }
.ci-bullet-dot {
  margin-top: 0.5rem;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  background: var(--ci-indigo);
  flex-shrink: 0;
}

/* ─── How-we-help cards (2-col grid on industry/customer pages) ─────────────── */
.help-card {
  background: #ffffff;
  border-radius: 0.75rem;
  border: 1px solid var(--slate-200);
  padding: 1.5rem;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
}
.help-card h3 { font-size: 1rem; font-weight: 700; color: var(--slate-900); margin-bottom: 0.5rem; }
.help-card p { font-size: 0.875rem; color: var(--slate-600); line-height: 1.7; flex: 1; }
.help-card a { margin-top: 0.75rem; font-size: 0.875rem; font-weight: 600; color: var(--ci-indigo); }
.help-card a:hover { text-decoration: underline; }

/* ─── Industry/customer page CTA row ────────────────────────────────────────── */
.page-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* ─── Services page self-select list ────────────────────────────────────────── */
.self-select-list { display: flex; flex-direction: column; gap: 1rem; }
.self-select-item { display: flex; align-items: flex-start; gap: 0.75rem; }
.self-select-icon {
  flex-shrink: 0;
  margin-top: 0.125rem;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 9999px;
  background: var(--ci-purple-light);
  display: flex;
  align-items: center;
  justify-content: center;
}
.self-select-icon svg { width: 0.75rem; height: 0.75rem; color: var(--ci-purple); }
.self-select-item span { color: var(--slate-700); line-height: 1.7; }

/* ─── Utility ───────────────────────────────────────────────────────────────── */
.text-center { text-align: center; }
.max-3xl { max-width: 48rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
