/**
 * RENALYTICA SERVICES & SOLUTIONS STYLESHEET (services.css)
 * Specification: 03_SERVICES_CONTENT.md
 * Visual Philosophy: High-End Enterprise Financial Analytics, Lenis/GSAP Smooth Momentum,
 * Parallax Depth, Interactive Sliders, Tabbed Steppers, and Dynamic Light/Dark Themes.
 */

/* ==========================================================================
   1. HERO STAGE
   ========================================================================== */
.services-hero-section {
  position: relative;
  background: var(--canvas-primary);
  padding: 136px 0 64px;
  border-bottom: 1px solid var(--border-light);
  overflow: hidden;
}

.services-hero-section::before {
  content: '';
  position: absolute;
  top: -140px;
  right: -80px;
  width: 540px;
  height: 540px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-momentum-subtle) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.services-hero-container {
  position: relative;
  z-index: 1;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.services-badge-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.services-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 9999px;
  background: var(--surface-gray);
  border: 1px solid var(--border-light);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  text-transform: uppercase;
}

.services-pill-badge.accent {
  background: var(--accent-momentum-subtle);
  border-color: var(--accent-momentum-border);
  color: var(--accent-momentum);
}

.pulse-dot-orange {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-momentum);
  box-shadow: 0 0 0 0 var(--accent-momentum-glow);
  animation: servicesPulse 2s infinite;
}

@keyframes servicesPulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 var(--accent-momentum-glow); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px transparent; }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 transparent; }
}

.services-hero-title {
  font-size: clamp(32px, 4.8vw, 56px);
  font-weight: 800;
  line-height: 1.12;
  color: var(--text-primary);
  margin-bottom: 18px;
  letter-spacing: -0.02em;
}

.services-hero-title .title-accent {
  color: var(--accent-momentum);
}

.services-hero-desc {
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 860px;
  margin-bottom: 36px;
}

/* Service Anchor Jump Bar */
.service-anchor-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.service-anchor-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 8px;
  background: var(--surface-card);
  border: 1px solid var(--border-light);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.service-anchor-pill:hover {
  border-color: var(--accent-momentum);
  color: var(--accent-momentum);
  background: var(--accent-momentum-subtle);
  transform: translateY(-2px);
}

.service-anchor-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-momentum);
  background: var(--surface-gray);
  padding: 2px 6px;
  border-radius: 4px;
}

/* Client Trust Bar */
.services-trust-bar {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding: 18px 24px;
  background: var(--surface-tint);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  font-size: 13px;
  color: var(--text-secondary);
}

.services-trust-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  text-transform: uppercase;
}

.services-trust-tags {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.services-trust-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--text-secondary);
}

.services-trust-tag strong {
  color: var(--text-primary);
}

/* ==========================================================================
   2. PILLAR SHARED CONTAINER STYLES
   ========================================================================== */
.service-pillar-section {
  padding: 96px 0;
  border-bottom: 1px solid var(--border-light);
  scroll-margin-top: 80px;
}

.service-pillar-section:nth-child(even) {
  background: var(--surface-tint);
}

.pillar-header {
  margin-bottom: 48px;
}

.pillar-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent-momentum);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.pillar-title {
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}

.pillar-desc {
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 840px;
}

/* ==========================================================================
   3. PILLAR 1: PUBLISHED REPORTS & BUNDLE ANATOMY
   ========================================================================== */
.bundle-anatomy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

.bundle-card {
  background: var(--surface-card);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 28px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  transition: transform 0.25s ease, border-color 0.25s ease;
  position: relative;
}

.bundle-card:hover {
  border-color: var(--accent-momentum-border);
  transform: translateY(-3px);
}

.bundle-card-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--accent-momentum);
  text-transform: uppercase;
  margin-bottom: 14px;
}

.bundle-card-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.bundle-card-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.bundle-features-list {
  margin: 0;
  padding-left: 18px;
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.bundle-features-list li {
  margin-bottom: 8px;
}

/* Coverage Desks Grid */
.coverage-desks-stage {
  margin-bottom: 56px;
}

.coverage-desks-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.coverage-desks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.desk-item-card {
  background: var(--surface-card);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 20px;
  transition: all 0.2s ease;
}

.desk-item-card:hover {
  border-color: var(--accent-momentum);
  background: var(--surface-gray);
  transform: translateY(-2px);
}

.desk-icon {
  font-size: 26px;
  margin-bottom: 12px;
  display: inline-block;
}

.desk-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.desk-summary {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text-secondary);
}

/* Licensing Tiers 3-Card Grid */
.licensing-tiers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.licensing-tier-card {
  background: var(--surface-card);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.licensing-tier-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
}

.licensing-tier-card.featured {
  border-color: var(--accent-momentum);
  background: var(--surface-card);
  box-shadow: 0 10px 30px rgba(255, 128, 0, 0.08);
}

.tier-ribbon-tag {
  position: absolute;
  top: -12px;
  right: 24px;
  background: var(--accent-momentum);
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 9999px;
  box-shadow: 0 2px 8px var(--accent-momentum-glow);
}

.tier-name {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.tier-scope {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.tier-price-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-light);
}

.tier-price {
  font-family: var(--font-mono);
  font-size: 36px;
  font-weight: 800;
  color: var(--text-primary);
}

.tier-currency {
  font-size: 13px;
  color: var(--text-tertiary);
  font-weight: 500;
}

.tier-checklist {
  list-style: none;
  margin: 0 0 28px 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 13.5px;
  color: var(--text-secondary);
  flex-grow: 1;
}

.tier-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.5;
}

.tier-checklist li svg {
  flex-shrink: 0;
  color: var(--accent-momentum);
  margin-top: 2px;
}

.btn-tier-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-tier-cta.primary {
  background: var(--accent-momentum);
  color: #FFFFFF;
}

.btn-tier-cta.primary:hover {
  background: var(--accent-momentum-hover);
  box-shadow: 0 6px 20px var(--accent-momentum-glow);
}

.btn-tier-cta.outline {
  background: var(--surface-gray);
  border-color: var(--border-light);
  color: var(--text-primary);
}

.btn-tier-cta.outline:hover {
  border-color: var(--accent-momentum);
  color: var(--accent-momentum);
}

/* ==========================================================================
   4. PILLAR 2: CUSTOM FEASIBILITY & 4-PHASE RESEARCH LIFECYCLE
   ========================================================================== */
.bespoke-practice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 48px;
}

.bespoke-practice-card {
  background: var(--surface-card);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 24px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.bespoke-practice-num {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-momentum);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.bespoke-practice-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
  line-height: 1.35;
}

.bespoke-practice-desc {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-secondary);
}

/* 4-Phase Research Lifecycle Stepper */
.research-lifecycle-stage {
  background: var(--surface-card);
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 36px;
  margin-bottom: 56px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.03);
}

.lifecycle-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-light);
}

.lifecycle-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
}

.lifecycle-sla-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-momentum);
  background: var(--accent-momentum-subtle);
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid var(--accent-momentum-border);
}

.lifecycle-steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  position: relative;
}

.lifecycle-step-card {
  background: var(--surface-tint);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 22px;
  position: relative;
  transition: border-color 0.2s ease;
}

.lifecycle-step-card:hover {
  border-color: var(--accent-momentum);
}

.step-phase-badge {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  color: var(--accent-momentum);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.step-phase-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.step-phase-timeline {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-tertiary);
  margin-bottom: 14px;
}

.step-bullets {
  margin: 0;
  padding-left: 16px;
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.step-bullets li {
  margin-bottom: 6px;
}

/* ==========================================================================
   5. CASE STUDIES SLIDER (INTERACTIVE)
   ========================================================================== */
.case-studies-container {
  margin-bottom: 48px;
}

.case-studies-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.case-studies-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
}

.slider-nav-btns {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-slider-nav {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  background: var(--surface-card);
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.btn-slider-nav:hover {
  border-color: var(--accent-momentum);
  color: var(--accent-momentum);
  background: var(--surface-gray);
}

.case-study-card {
  display: none;
  background: var(--surface-card);
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 36px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.03);
}

.case-study-card.active {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  animation: caseFadeIn 0.35s ease forwards;
}

@keyframes caseFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.case-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-momentum);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.case-headline {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: 16px;
}

.case-detail-block {
  margin-bottom: 16px;
  font-size: 14px;
  line-height: 1.6;
}

.case-detail-block strong {
  color: var(--text-primary);
}

.case-metric-box {
  background: var(--surface-tint);
  border: 1px solid var(--border-light);
  border-left: 4px solid var(--accent-momentum);
  border-radius: 8px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.metric-big-num {
  font-family: var(--font-mono);
  font-size: 38px;
  font-weight: 900;
  color: var(--accent-momentum);
  line-height: 1;
  margin-bottom: 8px;
}

.metric-big-label {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.metric-big-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ==========================================================================
   6. PILLAR 3: CORPORATE SUBSCRIPTIONS (THE RESEARCH TERMINAL)
   ========================================================================== */
.terminal-privileges-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 48px;
}

.terminal-privilege-card {
  background: var(--surface-card);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 22px;
}

.privilege-icon {
  font-size: 24px;
  margin-bottom: 10px;
  display: inline-block;
}

.privilege-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.privilege-desc {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-secondary);
}

/* Subscriptions Plans Comparison Table */
.subscriptions-table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  background: var(--surface-card);
  margin-bottom: 48px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.02);
}

.subscriptions-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  text-align: left;
}

.subscriptions-table th {
  background: var(--surface-gray);
  color: var(--text-primary);
  padding: 16px 20px;
  border-bottom: 2px solid var(--border-light);
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.subscriptions-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-secondary);
}

.subscriptions-table tr:hover {
  background: var(--surface-tint);
}

.subscriptions-table td strong {
  color: var(--text-primary);
}

/* ==========================================================================
   7. PILLAR 4: EXECUTIVE BRIEFINGS & BOARDROOM ADVISORY
   ========================================================================== */
.briefings-split-stage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 48px;
}

.briefings-img-frame {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.briefings-img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.briefings-img-frame:hover img {
  transform: scale(1.03);
}

.briefing-format-card {
  background: var(--surface-card);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 16px;
  transition: border-color 0.2s ease;
}

.briefing-format-card:hover {
  border-color: var(--accent-momentum);
}

.briefing-format-title {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.briefing-format-desc {
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-secondary);
}

/* ==========================================================================
   8. MASTER DECISION MATRIX & COMPARISON GUIDE
   ========================================================================== */
.decision-matrix-section {
  padding: 104px 0;
  background: var(--canvas-primary);
  border-bottom: 1px solid var(--border-light);
  position: relative;
}

.matrix-header {
  margin-bottom: 40px;
}

.matrix-title {
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin: 10px 0 12px;
  line-height: 1.2;
}

.matrix-desc {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 820px;
}

.matrix-table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--border-light);
  border-radius: 16px;
  background: var(--surface-card);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.04);
  position: relative;
  -webkit-overflow-scrolling: touch;
}

/* Custom scrollbar for matrix table */
.matrix-table-wrapper::-webkit-scrollbar {
  height: 8px;
}
.matrix-table-wrapper::-webkit-scrollbar-track {
  background: var(--surface-gray);
  border-radius: 4px;
}
.matrix-table-wrapper::-webkit-scrollbar-thumb {
  background: var(--border-medium);
  border-radius: 4px;
}
.matrix-table-wrapper::-webkit-scrollbar-thumb:hover {
  background: var(--accent-momentum);
}

.matrix-table {
  width: 100%;
  min-width: 1020px;
  border-collapse: separate;
  border-spacing: 0;
  text-align: left;
}

/* Table Header */
.matrix-table thead th {
  padding: 22px 20px;
  background: var(--surface-gray);
  border-bottom: 2px solid var(--border-light);
  border-right: 1px solid var(--border-light);
  vertical-align: bottom;
  position: relative;
}

.matrix-table thead th:last-child {
  border-right: none;
}

.th-dimension {
  width: 18%;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-transform: uppercase;
  background: var(--surface-tint) !important;
}

.th-col {
  width: 20.5%;
}

.th-title {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--text-primary);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.th-subtitle {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 500;
  font-family: var(--font-primary);
  text-transform: none;
}

/* Highlighted Column: Corporate Subscription */
.th-highlighted {
  background: rgba(239, 125, 0, 0.06) !important;
  border-top: 3px solid var(--accent-momentum) !important;
}

.th-badge-popular {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  border-radius: 9999px;
  background: var(--accent-momentum);
  color: #FFFFFF;
  text-transform: uppercase;
  margin-bottom: 6px;
}

/* Table Body Cells */
.matrix-table tbody tr {
  transition: background 0.15s ease;
}

.matrix-table tbody tr:nth-child(even) {
  background: rgba(0, 0, 0, 0.015);
}

[data-theme="dark"] .matrix-table tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.02);
}

.matrix-table tbody tr:hover {
  background: rgba(239, 125, 0, 0.04);
}

.matrix-table tbody td {
  padding: 18px 20px;
  border-bottom: 1px solid var(--border-light);
  border-right: 1px solid var(--border-light);
  color: var(--text-secondary);
  font-size: 13.5px;
  line-height: 1.55;
  vertical-align: middle;
}

.matrix-table tbody td:last-child {
  border-right: none;
}

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

/* Left Dimension Cell */
.td-dimension {
  background: var(--surface-gray) !important;
  border-right: 1px solid var(--border-light) !important;
  font-weight: 700;
  color: var(--text-primary) !important;
  white-space: nowrap;
}

.dimension-icon {
  margin-right: 8px;
  font-size: 15px;
}

.dimension-name {
  font-family: var(--font-primary);
  font-size: 13.5px;
  font-weight: 700;
}

.td-highlighted {
  background: rgba(239, 125, 0, 0.03);
}

.cell-quote {
  font-style: italic;
  color: var(--text-secondary);
  line-height: 1.45;
  display: block;
}

/* Format Chips */
.format-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.format-chip {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 5px;
  background: var(--surface-gray);
  border: 1px solid var(--border-light);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-primary);
}

.format-chip.accent {
  background: var(--accent-momentum-subtle);
  border-color: var(--accent-momentum-border);
  color: var(--accent-momentum);
}

/* Matrix Pills */
.matrix-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
}

.matrix-pill.fast {
  background: rgba(34, 197, 94, 0.12);
  color: #16a34a;
  border: 1px solid rgba(34, 197, 94, 0.25);
}

[data-theme="dark"] .matrix-pill.fast {
  color: #4ade80;
}

.matrix-pill.time {
  background: var(--surface-gray);
  color: var(--text-primary);
  border: 1px solid var(--border-light);
}

.matrix-pill.accent {
  background: var(--accent-momentum-subtle);
  color: var(--accent-momentum);
  border: 1px solid var(--accent-momentum-border);
}

.matrix-pill.scheduled {
  background: var(--surface-gray);
  color: var(--text-primary);
  border: 1px solid var(--border-light);
}

.matrix-pill.sla {
  background: rgba(239, 125, 0, 0.12);
  color: var(--accent-momentum);
  border: 1px solid var(--accent-momentum-border);
  font-weight: 800;
}

.matrix-pill.live {
  background: var(--surface-gray);
  color: var(--text-primary);
  border: 1px solid var(--border-light);
  font-weight: 700;
}

.price-val {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 800;
  color: var(--text-primary);
}

.price-val.text-accent {
  color: var(--accent-momentum);
}

.price-sub {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ==========================================================================
   9. CLIENT SCOPING & 4-STEP ONBOARDING WORKFLOW
   ========================================================================== */
.rfp-workflow-section {
  padding: 104px 0;
  background: var(--surface-tint);
  border-bottom: 1px solid var(--border-light);
  position: relative;
  overflow: hidden;
}

.rfp-header {
  margin-bottom: 48px;
}

.rfp-title {
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin: 10px 0 12px;
  line-height: 1.2;
}

.rfp-desc {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 820px;
}

.rfp-steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}

/* Sleek horizontal progress line on desktop */
@media (min-width: 1025px) {
  .rfp-steps-grid::before {
    content: '';
    position: absolute;
    top: 51px;
    left: 48px;
    right: 48px;
    height: 2px;
    background: var(--border-light);
    z-index: 0;
  }
}

.rfp-step-card {
  background: var(--surface-card);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 30px 24px 26px;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.rfp-step-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent-momentum);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08);
}

.rfp-step-card.featured {
  border-color: var(--accent-momentum-border);
  background: linear-gradient(to bottom, var(--surface-card) 0%, var(--surface-tint) 100%);
}

.rfp-step-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.rfp-step-icon-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--surface-gray);
  border: 2px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  transition: all 0.25s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.rfp-step-card:hover .rfp-step-icon-circle {
  border-color: var(--accent-momentum);
  background: var(--accent-momentum-subtle);
  transform: scale(1.08);
}

.rfp-step-icon-circle.accent {
  border-color: var(--accent-momentum);
  background: var(--accent-momentum-subtle);
}

.rfp-step-num-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.rfp-step-num-tag.accent {
  color: var(--accent-momentum);
}

.rfp-step-name {
  font-size: 17px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.35;
  margin-bottom: 12px;
}

.rfp-step-desc {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 22px;
  flex-grow: 1;
}

.rfp-step-desc code {
  background: var(--surface-gray);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-momentum);
}

.rfp-step-footer {
  padding-top: 14px;
  border-top: 1px solid var(--border-light);
}

.rfp-step-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
}

.rfp-step-badge.accent {
  color: var(--accent-momentum);
}

@media (max-width: 1024px) {
  .rfp-steps-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 640px) {
  .rfp-steps-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* ==========================================================================
   9. BOTTOM CONCIERGE BANNER
   ========================================================================== */
.concierge-banner-section,
.services-concierge-banner {
  padding: 96px 0;
  background: var(--canvas-primary);
  position: relative;
  overflow: hidden;
}

.concierge-card-lockup {
  background: var(--surface-card);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 48px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: center;
}

.concierge-copy-col {
  display: flex;
  flex-direction: column;
}

.concierge-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent-momentum);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.concierge-title,
.concierge-banner-title {
  font-size: clamp(24px, 2.6vw, 34px);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.25;
  margin-bottom: 14px;
}

.concierge-desc,
.concierge-banner-desc {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.concierge-contacts-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}

.concierge-contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
}

.contact-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  min-width: 170px;
}

.contact-val {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 600;
}

.contact-val:hover {
  color: var(--accent-momentum);
}

.concierge-actions-col,
.concierge-actions-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn-concierge-action,
.concierge-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  border: none;
}

.btn-concierge-action.primary,
.concierge-action-btn.primary {
  background: var(--accent-momentum);
  color: #FFFFFF;
}

.btn-concierge-action.primary:hover,
.concierge-action-btn.primary:hover {
  background: var(--accent-momentum-hover);
  box-shadow: 0 6px 20px var(--accent-momentum-glow);
}

.btn-concierge-action.secondary,
.concierge-action-btn.secondary {
  background: var(--surface-gray);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
}

.btn-concierge-action.secondary:hover,
.concierge-action-btn.secondary:hover {
  border-color: var(--accent-momentum);
  color: var(--accent-momentum);
}

.btn-concierge-action.whatsapp,
.concierge-action-btn.whatsapp {
  background: #25D366;
  color: #FFFFFF;
}

.btn-concierge-action.whatsapp:hover,
.concierge-action-btn.whatsapp:hover {
  background: #20BA56;
}

/* ==========================================================================
   10. MODALS & TOASTS (RFP MODAL - HIDDEN BY DEFAULT)
   ========================================================================== */
.rfp-modal-backdrop,
.services-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  padding: 20px;
}

.rfp-modal-backdrop.active,
.services-modal-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.rfp-modal-box,
.services-modal-card {
  background: var(--surface-card);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  width: 100%;
  max-width: 620px;
  padding: 36px;
  position: relative;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
  transform: translateY(20px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  max-height: 90vh;
  overflow-y: auto;
}

.rfp-modal-backdrop.active .rfp-modal-box,
.services-modal-overlay.active .services-modal-card {
  transform: translateY(0);
}

.rfp-modal-close,
.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  background: var(--surface-gray);
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  line-height: 1;
  padding: 0;
}

.rfp-modal-close:hover,
.modal-close-btn:hover {
  background: var(--border-light);
  color: var(--accent-momentum);
}

.modal-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent-momentum);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.modal-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.modal-desc {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.rfp-form {
  display: flex;
  flex-direction: column;
}

.form-row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 580px) {
  .form-row-2col {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

.form-group,
.services-form-group {
  margin-bottom: 16px;
}

.form-group label,
.services-form-label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.form-input,
.form-select,
.form-textarea,
.services-form-input,
.services-form-select,
.services-form-textarea {
  width: 100%;
  padding: 11px 14px;
  border-radius: 8px;
  border: 1px solid var(--border-light);
  background: var(--surface-tint);
  color: var(--text-primary);
  font-family: var(--font-primary);
  font-size: 13.5px;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus,
.services-form-input:focus,
.services-form-select:focus,
.services-form-textarea:focus {
  outline: none;
  border-color: var(--accent-momentum);
  box-shadow: 0 0 0 3px var(--accent-momentum-subtle);
}

.rfp-toast,
.services-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 10001;
  background: var(--surface-card);
  border: 1px solid var(--border-light);
  border-left: 4px solid var(--accent-momentum);
  border-radius: 8px;
  padding: 14px 20px;
  font-size: 13.5px;
  color: var(--text-primary);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* ==========================================================================
   11. RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 1024px) {
  .case-study-card.active {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .briefings-split-stage {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .concierge-card-lockup {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 32px;
  }
}

@media (max-width: 768px) {
  .services-hero-section {
    padding: 110px 0 48px;
  }

  .service-pillar-section {
    padding: 64px 0;
  }

  .licensing-tiers-grid {
    grid-template-columns: 1fr;
  }

  .concierge-card-lockup {
    padding: 24px 18px;
  }
}
