/*
 * FITCO Articles Design System
 * Blue/neutral professional palette — UTM-guide quality
 * Single stylesheet for all Knowledge Centre article pages
 * ─────────────────────────────────────────────────────────
 */

/* ── 1. DESIGN TOKENS ─────────────────────────────────── */
:root {
  /* Palette */
  --bg:            #f4f6f9;
  --surface:       #ffffff;
  --surface-soft:  #eef2f8;
  --ink:           #161e2e;
  --muted:         #5a6a82;
  --line:          rgba(22, 30, 46, 0.1);

  /* Brand — blue */
  --brand:         #2563eb;
  --brand-dark:    #1e3a8a;
  --brand-light:   #3b82f6;
  --brand-tint:    #eff6ff;

  /* Accent */
  --accent:        #0ea5e9;
  --accent-light:  #e0f2fe;
  --success:       #059669;

  /* Gradients */
  --hero-bg:       linear-gradient(170deg, #f0f5ff 0%, #e8edf8 100%);

  /* Radii */
  --radius-xl:     28px;
  --radius-lg:     20px;
  --radius-md:     14px;
  --radius-sm:     8px;

  /* Shadows */
  --shadow-hero:   0 32px 80px rgba(37, 99, 235, 0.12);
  --shadow-lg:     0 20px 60px rgba(37, 99, 235, 0.14);
  --shadow-sm:     0 4px 24px rgba(22, 30, 46, 0.07);

  /* Layout */
  --max:           1180px;
  --section-gap:   72px;
}

/* ── 2. RESET & BASE ──────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a   { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4, h5 {
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin: 0;
  color: var(--ink);
}

p { margin: 0; }

/* ── 3. LAYOUT UTILITIES ──────────────────────────────── */
.container {
  width: min(calc(100% - 32px), var(--max));
  margin-inline: auto;
}

/* ── 4. BUTTONS ───────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.94rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  white-space: nowrap;
  line-height: 1;
}
.btn:hover { transform: translateY(-2px); text-decoration: none; }

.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.22);
}
.btn-primary:hover { box-shadow: 0 14px 28px rgba(37, 99, 235, 0.28); }

.btn-ghost {
  background: var(--surface);
  color: var(--ink);
  border-color: rgba(37, 99, 235, 0.18);
  box-shadow: none;
}
.btn-ghost:hover {
  background: var(--brand-tint);
  border-color: rgba(37, 99, 235, 0.28);
}

.btn-secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}

/* ── 5. CASE-STUDY WRAPPER ────────────────────────────── */
.fitco-article-page {
  min-height: 100vh;
}

/* ── 6. CASE STUDY HERO ───────────────────────────────── */
.case-study-header {
  background: var(--hero-bg);
  border-bottom: 1px solid rgba(37, 99, 235, 0.10);
  padding: 64px 0 56px;
  position: relative;
  overflow: hidden;
}

.case-study-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(37, 99, 235, 0.07), transparent 55%);
  pointer-events: none;
}

.header-content {
  position: relative;
  max-width: 820px;
}

/* tag + date row */
.industry-tag {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.industry-tag .tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--brand-tint);
  border: 1px solid rgba(37, 99, 235, 0.18);
  color: var(--brand-dark);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.industry-tag .tag::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
  flex-shrink: 0;
}

.industry-tag .date {
  font-size: 0.88rem;
  color: var(--muted);
}

/* headline */
.case-study-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 18px;
  max-width: 22ch;
}

.case-study-title .highlight {
  background: linear-gradient(120deg, var(--brand) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.case-study-subtitle {
  font-size: 1.08rem;
  color: var(--muted);
  line-height: 1.65;
  max-width: 66ch;
  margin-bottom: 36px;
}

/* metrics strip */
.key-metrics {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.metric {
  background: var(--surface);
  border: 1px solid rgba(37, 99, 235, 0.12);
  border-radius: var(--radius-md);
  padding: 16px 22px;
  text-align: center;
  min-width: 110px;
  box-shadow: var(--shadow-sm);
}

.metric-value {
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--brand);
  line-height: 1;
  margin-bottom: 4px;
}

.metric-label {
  font-size: 0.78rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.3;
}

/* ── 7. CASE STUDY ARTICLE BODY ───────────────────────── */
.case-study-main {
  display: grid;
  gap: 0;
}

/* alternating section backgrounds */
.case-study-main > section:nth-child(even) {
  background: var(--surface);
}

.case-study-main > section {
  padding: 60px 0;
}

/* shared section title */
.section-title {
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  margin-bottom: 28px;
  letter-spacing: -0.025em;
}

/* ── 8. CLIENT CARD ───────────────────────────────────── */
.client-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 32px 36px;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--brand);
}

.client-card h3 {
  font-size: 1.2rem;
  margin-bottom: 18px;
  color: var(--brand-dark);
}

.client-details {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}

.detail-item {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.5;
}

.detail-item strong {
  color: var(--ink);
  margin-right: 6px;
}

/* ── 9. CHALLENGE GRID ────────────────────────────────── */
.lead-text {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 72ch;
  margin-bottom: 28px;
}

.challenge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 36px;
}

.challenge-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.challenge-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(37, 99, 235, 0.1);
}

.challenge-item.animate-in {
  animation: fadeUp 0.5s ease both;
}

.challenge-icon {
  font-size: 1.6rem;
  margin-bottom: 12px;
  line-height: 1;
}

.challenge-item h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.challenge-item p {
  font-size: 0.93rem;
  color: var(--muted);
  line-height: 1.6;
}

/* standards / compliance sub-grid */
.standards-compliance {
  background: var(--surface-soft);
  border: 1px solid rgba(37, 99, 235, 0.1);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  margin-top: 8px;
}

.standards-compliance h3 {
  font-size: 1.05rem;
  margin-bottom: 18px;
  color: var(--brand-dark);
}

.standards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

.standard-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.standard-item strong {
  font-size: 0.95rem;
  color: var(--brand-dark);
}

.standard-item span {
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.4;
}

/* ── 10. SOLUTION / UTM SYSTEMS ───────────────────────── */
.solution-intro {
  margin-bottom: 28px;
}

.solution-intro h3 {
  font-size: 1.18rem;
  margin-bottom: 10px;
}

.utm-systems {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 36px;
}

.utm-system {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  border-top: 3px solid var(--brand);
}

.utm-system h4 {
  font-size: 1.02rem;
  margin-bottom: 10px;
  color: var(--brand-dark);
}

.utm-system p {
  font-size: 0.93rem;
  color: var(--muted);
  margin-bottom: 14px;
  line-height: 1.6;
}

.utm-system ul {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
}

.utm-system ul li {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.5;
}

/* ── 11. TECH ENHANCEMENTS ────────────────────────────── */
.tech-enhancements {
  background: var(--surface-soft);
  border: 1px solid rgba(37, 99, 235, 0.1);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.tech-enhancements h3 {
  font-size: 1.08rem;
  margin-bottom: 20px;
  color: var(--brand-dark);
}

.enhancement-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}

.enhancement-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.enhancement-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.08);
}

.enhancement-item.animate-in {
  animation: fadeUp 0.5s ease both;
}

.enhancement-item h4 {
  font-size: 0.96rem;
  margin-bottom: 8px;
  color: var(--brand-dark);
}

.enhancement-item p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ── 12. RESULTS SECTION ──────────────────────────────── */
.results-intro {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 72ch;
  margin-bottom: 28px;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 36px;
}

.result-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.result-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(37, 99, 235, 0.1);
}

.result-item.animate-in {
  animation: fadeUp 0.5s ease both;
}

.result-metric {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--brand);
  line-height: 1;
  margin-bottom: 6px;
}

.result-label {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink);
  margin-bottom: 10px;
  line-height: 1.3;
}

.result-item p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.6;
}

/* compliance achievement */
.compliance-achievement {
  background: var(--surface-soft);
  border: 1px solid rgba(37, 99, 235, 0.1);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.compliance-achievement h3 {
  font-size: 1.08rem;
  margin-bottom: 20px;
  color: var(--brand-dark);
}

.compliance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}

.compliance-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.compliance-item.achieved {
  border-color: rgba(5, 150, 105, 0.25);
  background: #f0fdf4;
}

.compliance-item .checkmark {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(5, 150, 105, 0.12);
  color: var(--success);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 800;
  margin-top: 2px;
}

.compliance-item div strong {
  display: block;
  font-size: 0.94rem;
  color: var(--ink);
  margin-bottom: 4px;
}

.compliance-item div p {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

/* ── 13. TESTIMONIAL ──────────────────────────────────── */
.testimonial-section {
  background: var(--surface) !important;
}

.testimonial {
  margin: 0;
  background: var(--brand-tint);
  border: 1px solid rgba(37, 99, 235, 0.15);
  border-radius: var(--radius-xl);
  padding: 40px 48px;
  position: relative;
}

.quote-mark {
  font-size: 5rem;
  line-height: 1;
  color: var(--brand);
  opacity: 0.18;
  position: absolute;
  top: 16px;
  left: 36px;
  font-family: Georgia, serif;
  pointer-events: none;
}

.testimonial-text {
  font-size: 1.12rem;
  line-height: 1.75;
  color: var(--ink);
  font-style: italic;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
  padding-left: 12px;
}

.testimonial-footer cite {
  font-size: 0.9rem;
  color: var(--muted);
  font-style: normal;
  font-weight: 600;
}

/* ── 14. CONCLUSION / CTA SECTION ─────────────────────── */
.conclusion-section {
  background: var(--ink) !important;
}

.conclusion-section .section-title {
  color: #fff;
}

.conclusion-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.conclusion-content .conclusion-text {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.75;
  margin-top: 12px;
}

.cta-content {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-xl);
  padding: 32px 36px;
}

.cta-content h3 {
  font-size: 1.25rem;
  color: #fff;
  margin-bottom: 10px;
}

.cta-content p {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.65;
  margin-bottom: 22px;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.cta-primary {
  display: inline-flex;
  align-items: center;
  padding: 13px 24px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.28);
}
.cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.36);
  text-decoration: none;
  color: #fff;
}

.cta-secondary {
  display: inline-flex;
  align-items: center;
  padding: 13px 24px;
  border-radius: 999px;
  background: transparent;
  color: rgba(255,255,255,0.85);
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  border: 1.5px solid rgba(255,255,255,0.25);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
.cta-secondary:hover {
  transform: translateY(-2px);
  border-color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.06);
  text-decoration: none;
  color: #fff;
}

/* ── 15. SCROLL TO TOP ────────────────────────────────── */
.scroll-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.28);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.18s ease;
  z-index: 999;
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-to-top:hover {
  transform: translateY(-3px);
}

/* ── 16. ARTICLES HOME — BENTO GRID ───────────────────── */
.fitco-articles-home {
  min-height: 100vh;
}

/* hero */
.articles-hero {
  background: var(--hero-bg);
  border-bottom: 1px solid rgba(37, 99, 235, 0.1);
  padding: 80px 0 72px;
  position: relative;
  overflow: hidden;
}

.articles-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(37, 99, 235, 0.08), transparent 50%);
  pointer-events: none;
}

.articles-hero .hero-content {
  position: relative;
  max-width: 720px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--brand-tint);
  border: 1px solid rgba(37, 99, 235, 0.18);
  color: var(--brand-dark);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
  flex-shrink: 0;
}

.hero-title {
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  margin-bottom: 18px;
}

.text-gradient {
  background: linear-gradient(120deg, var(--ink) 0%, var(--brand) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-desc {
  font-size: 1.08rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 60ch;
  margin: 0;
}

/* section scaffolding */
.bento-section,
.list-section,
.cta-section {
  padding: 64px 0;
}

.bento-section:nth-child(even),
.list-section {
  background: var(--surface);
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.section-header .section-title {
  margin-bottom: 0;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
}

/* bento grid */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}

.col-span-4 { grid-column: span 4; }
.col-span-8 { grid-column: span 8; }
.col-span-12 { grid-column: span 12; }

.bento-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 28px 32px;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  cursor: pointer;
}

.bento-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(37, 99, 235, 0.12);
  text-decoration: none;
}

/* glow blob decorative */
.glow-blob {
  position: absolute;
  top: -60px;
  right: -60px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.06), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.card-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
  background: var(--brand-tint);
  border: 1px solid rgba(37, 99, 235, 0.15);
  border-radius: 999px;
  padding: 3px 10px;
  width: fit-content;
  margin-bottom: 14px;
}

.card-title {
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  color: var(--ink);
  line-height: 1.3;
}

/* larger card title for col-span-8 */
.bento-card.col-span-8 .card-title {
  font-size: clamp(1.2rem, 2vw, 1.55rem);
}

.card-desc {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
  flex: 1;
  margin: 0;
}

.card-arrow {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--brand-tint);
  border: 1px solid rgba(37, 99, 235, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
  margin-top: 18px;
  flex-shrink: 0;
  transition: background 0.18s ease, transform 0.18s ease;
  align-self: flex-start;
}

.bento-card:hover .card-arrow {
  background: var(--brand);
  color: #fff;
  transform: translateX(3px);
}

/* static info bento cards (no-link) */
div.bento-card {
  cursor: default;
}

div.bento-card:hover {
  transform: none;
  box-shadow: var(--shadow-sm);
}

/* ── 17. STANDARDS LIST ───────────────────────────────── */
.list-container {
  display: grid;
  gap: 4px;
}

.standard-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
  gap: 16px;
}

.standard-item-row:hover {
  background: var(--brand-tint);
  border-color: rgba(37, 99, 235, 0.2);
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
}

.standard-item-row .item-content {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  min-width: 0;
}

.standard-item-row .item-code {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--brand-dark);
  background: var(--brand-tint);
  border: 1px solid rgba(37, 99, 235, 0.15);
  border-radius: var(--radius-sm);
  padding: 3px 10px;
  white-space: nowrap;
  flex-shrink: 0;
}

.standard-item-row .item-title {
  font-size: 0.96rem;
  color: var(--ink);
  font-weight: 500;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.standard-item-row .item-action {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--brand);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── 18. CTA BOX ──────────────────────────────────────── */
.cta-section {
  background: var(--bg) !important;
}

.cta-box {
  background: var(--ink);
  border-radius: var(--radius-xl);
  padding: 48px 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 120%, rgba(37, 99, 235, 0.25), transparent 55%);
  pointer-events: none;
}

.cta-box h3 {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  color: #fff;
  margin-bottom: 12px;
  position: relative;
}

.cta-box p {
  font-size: 1rem;
  color: rgba(255,255,255,0.7);
  max-width: 60ch;
  margin: 0 auto 28px;
  line-height: 1.7;
  position: relative;
}

.cta-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}

/* outline button for dark bg */
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  background: transparent;
  color: rgba(255,255,255,0.85);
  font-weight: 700;
  font-size: 0.94rem;
  border: 1.5px solid rgba(255,255,255,0.28);
  text-decoration: none;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}
.btn-outline:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.5);
  text-decoration: none;
  color: #fff;
}

/* outline on light bg (section-header) */
.section-header .btn-outline {
  color: var(--brand);
  border-color: rgba(37, 99, 235, 0.3);
}
.section-header .btn-outline:hover {
  background: var(--brand-tint);
  border-color: var(--brand);
  color: var(--brand-dark);
}

/* ── 19. technical-capabilities, measurement-capabilities */
.technical-capabilities,
.measurement-capabilities {
  margin-top: 32px;
}

.technical-capabilities h3,
.measurement-capabilities h3 {
  font-size: 1.08rem;
  margin-bottom: 14px;
  color: var(--brand-dark);
}

.technical-capabilities .lead-text {
  margin-bottom: 20px;
}

.implementation-scenarios h3 {
  font-size: 1.08rem;
  margin-bottom: 10px;
  color: var(--brand-dark);
}

.applications-intro .lead-text {
  margin-bottom: 0;
}

/* ── 20. ANIMATIONS ───────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0);    }
}

/* ── 21. RESPONSIVE ───────────────────────────────────── */
@media (max-width: 1024px) {
  .bento-grid .col-span-8 { grid-column: span 12; }
  .bento-grid .col-span-4 { grid-column: span 6; }
}

@media (max-width: 768px) {
  :root { --section-gap: 48px; }

  .case-study-header { padding: 48px 0 40px; }

  .key-metrics { gap: 10px; }
  .metric { min-width: 90px; padding: 12px 16px; }
  .metric-value { font-size: 1.35rem; }

  .conclusion-wrapper { grid-template-columns: 1fr; gap: 28px; }

  .bento-grid .col-span-4,
  .bento-grid .col-span-8 { grid-column: span 12; }

  .cta-box { padding: 36px 28px; }

  .testimonial { padding: 32px 28px; }
  .quote-mark { font-size: 3.5rem; top: 12px; left: 24px; }

  .standard-item-row .item-title { white-space: normal; }
}

@media (max-width: 540px) {
  .case-study-title { max-width: none; }
  .case-study-subtitle { font-size: 0.97rem; }

  .client-details { grid-template-columns: 1fr; }

  .challenge-grid,
  .utm-systems,
  .enhancement-grid,
  .results-grid,
  .compliance-grid,
  .standards-grid { grid-template-columns: 1fr; }

  .cta-buttons { flex-direction: column; }
  .cta-actions { flex-direction: column; align-items: center; }

  .section-header { flex-direction: column; align-items: flex-start; }

  .standard-item-row { flex-direction: column; align-items: flex-start; }

  .articles-hero { padding: 48px 0 40px; }
}
