/* ============================================================
   pages.css — Styles for all inner pages
   (services, sectors, cases, articles, legal, blog listing)
   ============================================================ */

/* =========================
   PAGE HERO
   ========================= */

.page-hero {
  background: var(--bg-dark-gradient);
  padding: 80px 0;
  padding-top: 140px; /* account for fixed nav + subnav */
  color: var(--text-on-dark);
}

.page-hero--service .page-hero__metrics { border-top: 1px solid rgba(255,255,255,0.1); margin-top: 40px; padding-top: 32px; }
.page-hero--sector .page-hero__title { max-width: 700px; }
.page-hero--case .page-hero__metric { font-family: var(--font-display); font-weight: 700; font-size: 80px; color: var(--accent); line-height: 1; margin-bottom: 12px; }
.page-hero--article .page-hero__title { max-width: 720px; }

.page-hero__breadcrumb {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 24px;
}

.breadcrumb {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 14px;
  color: var(--text-on-dark-muted);
}

.breadcrumb a {
  color: var(--text-on-dark-muted);
  transition: color var(--transition-fast);
}

.breadcrumb a:hover {
  color: #fff;
}

.breadcrumb__sep {
  margin: 0 8px;
  color: var(--text-on-dark-muted);
  opacity: 0.5;
}

.page-hero__label {
  display: block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--label-size);
  text-transform: uppercase;
  letter-spacing: var(--label-spacing);
  color: var(--accent);
  margin-bottom: 16px;
}

.page-hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 56px;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 16px;
}

.page-hero__subtitle {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 20px;
  color: var(--text-on-dark-muted);
  max-width: 600px;
  line-height: 1.6;
}

.page-hero__metrics {
  display: flex;
  gap: 0;
  margin-top: 32px;
}

.page-hero__metric-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0 32px;
  text-align: left;
}

.page-hero__metric-item:first-child { padding-left: 0; }
.page-hero__metric-item:not(:last-child) { border-right: 1px solid rgba(255,255,255,0.15); }

.page-hero__metric-value {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 28px;
  color: #fff;
  line-height: 1.2;
}

.page-hero__metric-label {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 13px;
  color: var(--text-on-dark-muted);
  margin-top: 4px;
}

.page-hero__meta {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 14px;
  color: var(--text-on-dark-muted);
  margin-top: 16px;
}

.page-hero__case-subtitle {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 24px;
  color: var(--text-on-dark-muted);
  margin-bottom: 16px;
}

.page-hero__client-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 13px;
  color: var(--accent);
  background: var(--accent-light);
  padding: 4px 14px;
  margin-top: 16px;
}

/* =========================
   SUB-NAVIGATION
   ========================= */

.subnav {
  position: sticky;
  top: 60px;
  z-index: 999;
  background: var(--bg-light);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.subnav::-webkit-scrollbar { display: none; }

.subnav__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 0;
  white-space: nowrap;
}

.subnav__link {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  color: var(--text-muted);
  padding: 16px 0;
  border-bottom: 2px solid transparent;
  transition: color var(--transition-fast), border-color var(--transition-fast);
}

.subnav__link:hover {
  color: var(--text-primary);
}

.subnav__link--active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* =========================
   PAGE CONTENT AREAS
   ========================= */

.page-content {
  background: #fff;
  padding: 80px 0;
}

.page-content--alt {
  background: var(--bg-light-alt);
}

.page-content--dark {
  background: var(--bg-dark);
  color: var(--text-on-dark);
}

.page-content--accent {
  background: var(--accent);
  color: #fff;
}

.page-content__inner {
  max-width: 800px;
  margin: 0 auto;
}

.page-content__inner--wide {
  max-width: 1100px;
  margin: 0 auto;
}

/* =========================
   SIDEBAR LAYOUT
   ========================= */

.page-layout--sidebar {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 64px;
  align-items: start;
}

.sidebar {
  position: sticky;
  top: 140px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.sidebar__card {
  background: var(--bg-light-alt);
  border: 1px solid var(--border-subtle);
  padding: 24px;
}

.sidebar__card-title {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.sidebar__link {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 14px;
  color: var(--text-secondary);
  padding: 6px 0;
  transition: color var(--transition-fast);
}

.sidebar__link:hover {
  color: var(--accent);
}

/* =========================
   EXECUTIVE SUMMARY
   ========================= */

.executive-summary {
  background: var(--bg-light-alt);
  border-left: 3px solid var(--accent);
  padding: 24px 28px;
  margin-bottom: 40px;
}

.executive-summary__title {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.executive-summary__item {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
  padding: 4px 0 4px 20px;
  position: relative;
}

.executive-summary__item::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* =========================
   DATA CALLOUT
   ========================= */

.data-callout__stat {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 48px;
  color: var(--accent);
  margin-bottom: 8px;
  line-height: 1;
}

.data-callout__context {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.data-callout {
  border-left: 3px solid var(--accent);
  background: var(--bg-light-alt);
  padding: 32px;
  margin: 32px 0;
}

/* =========================
   BEFORE/AFTER BAR
   ========================= */

.before-after-bar {
  display: flex;
  align-items: stretch;
  margin: 32px 0;
  border: 1px solid var(--border-subtle);
  overflow: hidden;
}

.before-after-bar__side {
  flex: 1;
  padding: 20px 24px;
  text-align: center;
}

.before-after-bar__side--before {
  background: var(--bg-light-alt);
}

.before-after-bar__side--after {
  background: var(--accent-light);
}

.before-after-bar__label {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.before-after-bar__value {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 24px;
  color: var(--text-primary);
}

.before-after-bar__side--after .before-after-bar__value {
  color: var(--accent);
}

/* =========================
   FAQ ACCORDION
   ========================= */

.faq__item {
  border-bottom: 1px solid var(--border-subtle);
}

.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 20px 0;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 18px;
  color: var(--text-primary);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: color var(--transition-fast);
}

.faq__question:hover {
  color: var(--accent);
}

.faq__chevron {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform 300ms ease;
  color: var(--text-muted);
}

.faq__item--open .faq__chevron {
  transform: rotate(180deg);
}

.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 400ms ease, padding 400ms ease;
}

.faq__answer-inner {
  padding: 0 0 20px;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.faq__item--open .faq__answer {
  max-height: 500px;
}

/* =========================
   TABLE OF CONTENTS
   ========================= */

.toc {
  position: sticky;
  top: 140px;
}

.toc__title {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.toc__link {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 14px;
  color: var(--text-muted);
  padding: 6px 0 6px 16px;
  border-left: 2px solid transparent;
  transition: color var(--transition-fast), border-color var(--transition-fast);
}

.toc__link:hover {
  color: var(--text-primary);
}

.toc__link--active {
  color: var(--accent);
  font-weight: 600;
  border-left-color: var(--accent);
}

/* =========================
   ARTICLE BODY TYPOGRAPHY
   ========================= */

.article-body {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.8;
  color: var(--text-primary);
}

.article-body p {
  margin-bottom: 24px;
  color: var(--text-secondary);
}

.article-body h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 36px;
  color: var(--text-primary);
  margin-top: 48px;
  margin-bottom: 20px;
  scroll-margin-top: 140px;
}

.article-body h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 24px;
  color: var(--text-primary);
  margin-top: 36px;
  margin-bottom: 16px;
}

.article-body blockquote {
  border-left: 3px solid var(--accent);
  padding: 16px 24px;
  margin: 32px 0;
  font-style: italic;
  color: var(--text-secondary);
  background: var(--bg-light-alt);
}

.article-body ul,
.article-body ol {
  padding-left: 24px;
  margin-bottom: 24px;
}

.article-body ol { list-style: decimal; }
.article-body ul { list-style: disc; }

.article-body li {
  margin-bottom: 8px;
  color: var(--text-secondary);
}

.article-body strong {
  font-weight: 600;
  color: var(--text-primary);
}

.article-body a {
  color: var(--accent);
  text-decoration: underline transparent;
  transition: text-decoration-color var(--transition-fast);
}

.article-body a:hover {
  text-decoration-color: var(--accent);
}

/* Article layout: TOC sidebar + body */
.article-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 48px;
  align-items: start;
}

/* =========================
   ARTICLE TAGS
   ========================= */

.article-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
}

.article-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 13px;
  color: var(--accent);
  background: var(--accent-light);
  padding: 4px 14px;
  transition: background var(--transition-fast);
}

.article-tag:hover {
  background: rgba(37, 99, 235, 0.15);
}

/* =========================
   AUTHOR BIO
   ========================= */

.author-bio {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px;
  margin-top: 32px;
  border-top: 1px solid var(--border-subtle);
  padding-top: 32px;
  background: var(--bg-light-alt);
}

.author-bio__avatar {
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 20px;
  flex-shrink: 0;
}

.author-bio__info {
  flex: 1;
}

.author-bio__name {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.author-bio__desc {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.author-bio__link {
  font-size: 13px;
  color: var(--accent);
  font-weight: 500;
  margin-top: 4px;
  display: inline-block;
}

/* =========================
   RELATED CONTENT
   ========================= */

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--card-gap);
}

.related-grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

.related-grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

/* =========================
   BACK LINK
   ========================= */

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.back-link:hover {
  color: var(--accent);
  transform: translateX(-4px);
}

/* =========================
   PAGE META ROW
   ========================= */

.page-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.page-meta__item {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 14px;
  color: var(--text-on-dark-muted);
}

.page-meta__sep {
  color: var(--text-on-dark-muted);
  opacity: 0.4;
}

/* =========================
   CTA BANNER — INLINE (mid-article)
   ========================= */

.cta-banner--inline {
  background: var(--accent);
  color: #fff;
  padding: 32px;
  margin: 40px 0;
  text-align: center;
}

.cta-banner--inline p {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 18px;
  color: #fff;
  margin-bottom: 16px;
}

.cta-banner--inline .btn {
  background: #fff;
  color: var(--accent);
  border: 2px solid #fff;
  font-weight: 600;
  font-size: 15px;
  padding: 12px 24px;
  border-radius: var(--radius-btn);
  display: inline-block;
  margin: 0 auto;
}

.cta-banner--inline .btn:hover {
  background: rgba(255,255,255,0.9);
}

/* =========================
   QUICK FACTS CARD (case studies)
   ========================= */

.quick-facts {
  background: var(--bg-light-alt);
  border: 1px solid var(--border-subtle);
  padding: 28px;
}

.quick-facts__title {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.quick-facts__row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-subtle);
  font-family: var(--font-body);
  font-size: 14px;
}

.quick-facts__row:last-child { border-bottom: none; }

.quick-facts__label {
  color: var(--text-muted);
  font-weight: 400;
}

.quick-facts__value {
  color: var(--text-primary);
  font-weight: 600;
}

/* =========================
   BENEFIT GRID
   ========================= */

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--card-gap);
}

.benefit-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.benefit-item__icon {
  width: 24px;
  height: 24px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.benefit-item__title {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.benefit-item__desc {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* =========================
   USE CASE CARDS
   ========================= */

.usecase-card {
  background: var(--card-light-bg);
  border: 1px solid var(--border-subtle);
  padding: 28px;
}

.usecase-card__industry {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent);
  margin-bottom: 12px;
}

.usecase-card__title {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 18px;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.usecase-card__desc {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* =========================
   WORKFLOW STEPS (sector pages)
   ========================= */

.workflow-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  padding-left: 32px;
}

.workflow-steps::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--accent);
  opacity: 0.3;
}

.workflow-step {
  position: relative;
  padding: 16px 0 16px 24px;
  border-radius: 4px;
  transition: background-color var(--transition-fast);
}

.workflow-step:hover {
  background-color: rgba(37, 99, 235, 0.05);
}

.workflow-step__dot {
  position: absolute;
  left: -29px;
  top: 22px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
}

.workflow-step__title {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 18px;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.workflow-step__desc {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* =========================
   PAIN POINT CARDS (sector pages)
   ========================= */

.pain-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--card-gap);
}

.pain-card {
  padding: 32px;
  border: 1px solid var(--border-subtle);
  background: var(--card-light-bg);
}

.pain-card__icon {
  width: 32px;
  height: 32px;
  color: #EF4444;
  margin-bottom: 16px;
  opacity: 0.8;
}

.pain-card__icon svg {
  stroke-width: 2;
}

.pain-card__title {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 18px;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.pain-card__desc {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* =========================
   INLINE CASE STUDY CARD
   ========================= */

.inline-case {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 32px;
  align-items: center;
  padding: 32px;
  border: 1px solid var(--border-dark);
  background: var(--card-dark-bg);
}

.inline-case--light {
  border-color: var(--border-subtle);
  background: var(--card-light-bg);
}

.inline-case__metric {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 56px;
  color: var(--accent);
  line-height: 1;
}

.inline-case--small .inline-case__metric {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 36px;
}

.inline-case__body-title {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 8px;
}

.inline-case__body-text {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.6;
}

.inline-case__link {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  color: var(--accent);
  margin-top: 12px;
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.inline-case__link:hover {
  color: var(--accent-hover);
  transform: translateX(4px);
}

/* =========================
   FEATURED INSIGHT CARD (full-width dark)
   ========================= */

.featured-insight {
  background: var(--card-dark-bg);
  border: 1px solid var(--border-dark);
  padding: 40px;
  display: block;
  transition: border-color var(--transition-base);
}

.featured-insight:hover {
  border-color: var(--accent);
}

/* =========================
   NEWSLETTER CTA
   ========================= */

.newsletter-form {
  display: flex;
  gap: 12px;
  max-width: 520px;
  margin: 0 auto;
  align-items: center;
}

.newsletter-form .form-input {
  flex: 1;
  min-width: 280px;
  border: 1px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.1);
  color: #fff;
  padding: 14px 20px;
}

.newsletter-form .form-input::placeholder {
  color: rgba(255,255,255,0.5);
}

.newsletter-form .form-input:focus {
  border-color: #fff;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.1);
}

.newsletter-form .btn {
  background: #fff;
  color: var(--accent);
  border-color: #fff;
  font-weight: 600;
  padding: 14px 24px;
  flex-shrink: 0;
}

.newsletter-form .btn:hover {
  background: rgba(255,255,255,0.9);
}

/* =========================
   "MOST POPULAR" BADGE
   ========================= */

.card-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #fff;
  background: var(--accent);
  padding: 4px 10px;
  z-index: 2;
}

/* =========================
   TECH STACK CARD (case studies)
   ========================= */

.tech-stack {
  background: var(--bg-light-alt);
  padding: 28px;
  margin: 32px 0;
}

.tech-stack__title {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.tech-stack__items {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tech-stack__item {
  display: inline-flex;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  color: #fff;
  background: #1F2937;
  border: 1px solid #374151;
  border-radius: 4px;
  padding: 6px 16px;
}

/* =========================
   TESTIMONIAL CARD (case study page)
   ========================= */

.testimonial-card {
  padding: 40px;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.testimonial-card__quote {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  font-style: italic;
  color: var(--text-primary);
  line-height: 1.4;
  margin-bottom: 16px;
}

.testimonial-card__cite {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 14px;
  color: var(--text-muted);
}

.testimonial-card__result {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  color: var(--accent);
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
}

/* =========================
   OTHER SECTORS ROW
   ========================= */

.sectors-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.sector-link-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px 20px;
  background: #0F1B2E;
  border: 1px solid var(--border-dark);
  min-height: 140px;
  transition: border-color var(--transition-base), transform var(--transition-base);
}

.sector-link-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.sector-link-card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  color: #fff;
  margin-bottom: 6px;
}

.sector-link-card__sub {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 13px;
  color: var(--text-on-dark-muted);
}

/* =========================
   PROGRESS BAR (implementation time)
   ========================= */

.progress-indicator {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
  padding: 20px 24px;
  background: var(--card-light-bg);
  border: 1px solid var(--border-subtle);
}

.progress-indicator__bar {
  flex: 1;
  height: 6px;
  background: var(--border-subtle);
  border-radius: 3px;
  overflow: hidden;
}

.progress-indicator__fill {
  height: 100%;
  background: var(--accent);
  border-radius: 3px;
}

.progress-indicator__label {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  color: var(--text-secondary);
  white-space: nowrap;
}

/* =========================
   UTILITY CLASSES (extracted from inline styles)
   ========================= */

/* Text colors */
.text-white { color: #fff; }
.text-accent { color: var(--accent); }
.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-on-dark { color: var(--text-on-dark); }
.text-on-dark-muted { color: var(--text-on-dark-muted); }

/* Headings used in page sections */
.page-section-h2 { color: #fff; font-family: var(--font-display); font-size: 40px; }
.page-cta-subtitle { color: rgba(255,255,255,0.8); font-size: 18px; margin-top: 12px; margin-bottom: 32px; }

/* Metric display (results sections) */
.metric-display { font-family: var(--font-display); font-weight: 700; font-size: 56px; color: var(--accent); line-height: 1; }
.metric-label { font-size: 15px; color: var(--text-on-dark-muted); margin-top: 8px; }
.metric-secondary { font-weight: 700; font-size: 32px; color: var(--accent); }
.metric-secondary-label { font-size: 14px; color: var(--text-on-dark-muted); margin-top: 4px; }

/* How-it-works cards on service pages */
.howit-card { position: relative; overflow: hidden; }
.howit-card .card-dark__number { color: rgba(0,0,0,0.04); }
.howit-title { font-weight: 600; font-size: 18px; margin-bottom: 8px; }
.howit-desc { font-size: 15px; color: var(--text-secondary); line-height: 1.6; }

/* Sidebar CTA card internals */
.sidebar-desc { font-size: 14px; color: var(--text-secondary); line-height: 1.6; margin-bottom: 16px; }
.sidebar-btn { font-size: 14px; padding: 10px 20px; }

/* Featured insight tag on dark bg */
.tag-on-dark { background: rgba(37,99,235,0.2); color: var(--accent); margin-bottom: 16px; }
.featured-insight-title { font-family: var(--font-body); font-weight: 600; font-size: 22px; color: #fff; margin: 16px 0 12px; }
.featured-insight-desc { font-size: 15px; color: var(--text-on-dark-muted); line-height: 1.6; max-width: 640px; }
.featured-insight-link { display: inline-block; margin-top: 16px; font-size: 14px; font-weight: 500; color: var(--accent); }

/* Case-page dark section overrides */
.results-section-label { color: var(--accent); }
.before-after-dark .before-after-bar__side--before { background: rgba(255,255,255,0.05); }
.before-after-dark .before-after-bar__label { color: var(--text-on-dark-muted); }
.before-after-dark .before-after-bar__value { color: #fff; }

/* Sidebar case metric */
.sidebar-metric { font-size: 28px; font-weight: 700; color: var(--accent); margin-bottom: 8px; }
.sidebar-metric-desc { font-size: 14px; color: var(--text-secondary); line-height: 1.5; margin-bottom: 12px; }

/* Article layout wrapper */
.article-layout-wrap { max-width: 1000px; margin: 0 auto; }

/* Executive summary section padding */
.section-compact { padding: 40px 0; }

/* Inline case card color overrides for light bg */
.inline-case--light .inline-case__body-title { color: var(--text-primary); }
.inline-case--light .inline-case__body-text { color: var(--text-secondary); }

/* Legal page back link wrapper */
.legal-back { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border-subtle); }

/* Disclaimer text */
.results-disclaimer { font-size: 12px; color: var(--text-on-dark-muted); text-align: center; margin-top: 24px; opacity: 0.7; }

/* =========================
   RESPONSIVE — INNER PAGES
   ========================= */

@media (max-width: 1024px) {
  .page-layout--sidebar {
    grid-template-columns: 1fr 280px;
    gap: 40px;
  }

  .article-layout {
    grid-template-columns: 180px 1fr;
    gap: 32px;
  }

  .benefit-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .sectors-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .related-grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .page-hero {
    padding-top: 120px;
    padding-bottom: 60px;
  }

  .page-hero__title {
    font-size: 36px;
  }

  .page-hero--case .page-hero__metric {
    font-size: 56px;
  }

  .page-hero__metrics {
    flex-wrap: wrap;
  }

  .page-hero__metric-item {
    padding: 12px 16px;
  }

  .page-layout--sidebar {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .sidebar {
    position: static;
  }

  .article-layout {
    grid-template-columns: 1fr;
  }

  .toc {
    position: static;
    margin-bottom: 32px;
    padding: 20px;
    background: var(--bg-light-alt);
  }

  .benefit-grid,
  .pain-grid {
    grid-template-columns: 1fr;
  }

  .related-grid,
  .related-grid--4 {
    grid-template-columns: 1fr;
  }

  .related-grid--2 {
    grid-template-columns: 1fr;
  }

  .sectors-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .inline-case {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .before-after-bar {
    flex-direction: column;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .article-body h2 {
    font-size: 28px;
  }

  .author-bio {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .page-hero__title {
    font-size: 28px;
  }

  .page-hero--case .page-hero__metric {
    font-size: 44px;
  }

  .page-hero__subtitle {
    font-size: 17px;
  }

  .page-hero__metric-item {
    width: 50%;
  }

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

  .subnav__inner {
    gap: 20px;
  }

  .faq__question {
    font-size: 16px;
  }

  .testimonial-card__quote {
    font-size: 20px;
  }
}

/* Additional utilities (second pass) */
.footer-padding { padding: 80px 0 40px; }
.max-w-900 { max-width: 900px; }
.mt-20 { margin-top: 20px; }
.mt-32 { margin-top: 32px; }
.mt-40 { margin-top: 40px; }
.mt-48 { margin-top: 48px; }
.mb-48 { margin-bottom: 48px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--card-gap); }
