/* FinSight page content styles (scoped) */
.finsight-page {
  --fs-cyan: #00d1f9;
  --fs-cyan-deep: #0a8fab;
  --fs-cyan-soft: #e2f6fd;
  --fs-blue: #3b82f6;
  --fs-gray-50: #f9fafb;
  --fs-gray-100: #f3f4f6;
  --fs-gray-200: #e5e7eb;
  --fs-gray-300: #d1d5db;
  --fs-gray-500: #6b7280;
  --fs-gray-600: #4b5563;
  --fs-gray-700: #374151;
  --fs-gray-900: #111827;
  --fs-spacing-xs: 0.5rem;
  --fs-spacing-sm: 0.75rem;
  --fs-spacing-md: 1rem;
  --fs-spacing-lg: 1.5rem;
  --fs-spacing-xl: 2rem;
  --fs-spacing-2xl: 2.5rem;
  --fs-radius-lg: 1rem;
  --primary-accent: var(--fs-cyan-deep);
  --gray-50: var(--fs-gray-50);
  --gray-100: var(--fs-gray-100);
  --gray-200: var(--fs-gray-200);
  --gray-300: var(--fs-gray-300);
  --gray-500: var(--fs-gray-500);
  --gray-600: var(--fs-gray-600);
  --gray-700: var(--fs-gray-700);
  --gray-900: var(--fs-gray-900);
  --spacing-xs: var(--fs-spacing-xs);
  --spacing-sm: var(--fs-spacing-sm);
  --spacing-md: var(--fs-spacing-md);
  --spacing-lg: var(--fs-spacing-lg);
  --spacing-xl: var(--fs-spacing-xl);
  --spacing-2xl: var(--fs-spacing-2xl);
}

.finsight-page .container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--fs-spacing-md);
}

.finsight-page .section-header {
  text-align: center;
  margin-bottom: var(--fs-spacing-lg);
}

.finsight-page .section-title {
  font-family: var(--display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  color: var(--fs-gray-900);
  margin-bottom: var(--fs-spacing-sm);
}

.finsight-page .section-subtitle {
  font-size: 1.125rem;
  color: var(--fs-gray-600);
  line-height: 1.7;
  max-width: 760px;
  margin: 0 auto;
}

.finsight-page .solution-card {
  background: var(--fs-gray-50);
  border-radius: var(--fs-radius-lg);
  border: 1px solid var(--fs-gray-200);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.finsight-page .solution-card:hover {
  border-color: var(--fs-cyan);
  box-shadow: 0 12px 32px rgba(0, 209, 249, 0.12);
}

.finsight-page .example-datasets-heading {
  font-family: var(--display);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--fs-gray-700);
  text-align: center;
  margin: 0 auto var(--fs-spacing-lg);
  max-width: 1000px;
}

.finsight-page .example-datasets-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--fs-spacing-lg);
  max-width: 1000px;
  margin: 0 auto;
}

[data-theme="dark"] .finsight-page .example-datasets-heading {
  color: var(--ink-dim, #a8b0bb);
}

@media (max-width: 640px) {
  .finsight-page .example-datasets-grid {
    grid-template-columns: 1fr;
  }
}

.finsight-page .finsight-summary {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.finsight-page .finsight-summary-heading {
  font-family: var(--display);
  font-size: 1.125rem;
  font-weight: 600;
}

.finsight-page .finsight-summary-list {
  display: block;
}

.finsight-page .finsight-summary-list > div {
  display: block;
  padding: 0;
  border: 0;
}

.finsight-page .finsight-summary-list dt,
.finsight-page .finsight-summary-list dd {
  display: inline;
  margin: 0;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
}

.finsight-page .finsight-faq {
  padding: var(--fs-spacing-2xl) 0;
}

.finsight-page .finsight-faq .section-title {
  text-align: center;
  margin-bottom: var(--fs-spacing-xl);
}

.finsight-page .finsight-heritage {
  padding: var(--fs-spacing-2xl) 0;
  background: var(--fs-gray-50);
}

.finsight-page .finsight-eyebrow {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: var(--fs-spacing-sm);
}

.finsight-page .finsight-heritage-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--fs-spacing-lg);
  max-width: 1000px;
  margin: 0 auto;
}

.finsight-page .finsight-heritage-note {
  text-align: center;
  font-family: var(--display);
  font-size: clamp(0.9rem, 1.76vw, 1.2rem);
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: -0.015em;
  color: var(--ink);
  max-width: 760px;
  margin: var(--fs-spacing-xl) auto 0;
  padding: var(--fs-spacing-lg) var(--fs-spacing-xl);
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

[data-theme="dark"] .finsight-page .finsight-heritage {
  background: rgba(255, 255, 255, 0.03);
}

[data-theme="dark"] .finsight-page .finsight-eyebrow {
  color: var(--accent-text);
}

@media (max-width: 640px) {
  .finsight-page .finsight-heritage-grid {
    grid-template-columns: 1fr;
  }
}

.finsight-page .finsight-flow-labels text {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  fill: #374151;
}

[data-theme="dark"] .finsight-page .finsight-flow-labels text {
  fill: #c8ced8;
}

.finsight-page .finsight-features {
  display: grid;
  gap: var(--fs-spacing-xl);
  max-width: 1120px;
  margin: 0 auto;
}

.finsight-page .finsight-feature-card {
  text-align: left;
  padding: var(--fs-spacing-xl);
  display: grid;
  grid-template-columns: 1fr minmax(380px, 46%);
  gap: var(--fs-spacing-lg);
  align-items: center;
}

.finsight-page .finsight-feature-card--reverse {
  grid-template-columns: minmax(380px, 46%) 1fr;
}

.finsight-page .finsight-feature-illustration .finsight-zoom-trigger {
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  cursor: zoom-in;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.finsight-page .finsight-feature-illustration .finsight-zoom-trigger:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-lift);
}

.finsight-page .finsight-feature-illustration .finsight-zoom-trigger:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.finsight-page .finsight-feature-illustration img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: calc(var(--radius-md) - 1px);
}

.finsight-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.finsight-lightbox[hidden] {
  display: none;
}

.finsight-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(13, 15, 18, 0.82);
  cursor: zoom-out;
}

.finsight-lightbox-panel {
  position: relative;
  z-index: 1;
  max-width: min(96vw, 1400px);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.finsight-lightbox-image {
  display: block;
  max-width: min(96vw, 1400px);
  max-height: calc(92vh - 48px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lift);
  background: var(--surface);
}

.finsight-lightbox-caption {
  margin: 0;
  max-width: min(96vw, 900px);
  text-align: center;
  font-size: 0.875rem;
  color: #e4e8ed;
}

.finsight-lightbox-close {
  position: absolute;
  top: -12px;
  right: -12px;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(33, 41, 48, 0.95);
  color: #f3f6f8;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.finsight-lightbox-close:hover {
  border-color: var(--accent);
  color: var(--accent);
}

body.finsight-lightbox-open {
  overflow: hidden;
}

.finsight-page .cta-section {
  background: var(--fs-slate, #212930);
  color: #fff;
  text-align: center;
  padding: var(--fs-spacing-2xl) 0;
}

.finsight-page .cta-content h2 {
  font-family: var(--display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  margin-bottom: var(--fs-spacing-sm);
}

.finsight-page .cta-content p {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: var(--fs-spacing-xl);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

[data-theme="dark"] .finsight-page .page-header,
[data-theme="dark"] .finsight-page section[style*="background: var(--gray-50)"] {
  background: var(--fs-slate) !important;
}

[data-theme="dark"] .finsight-page h1,
[data-theme="dark"] .finsight-page h2,
[data-theme="dark"] .finsight-page h3,
[data-theme="dark"] .finsight-page .section-title {
  color: var(--fs-paper, #edf6f9) !important;
}

[data-theme="dark"] .finsight-page p,
[data-theme="dark"] .finsight-page .section-subtitle {
  color: var(--ink-dim, #a8b0bb) !important;
}

[data-theme="dark"] .finsight-page .solution-card {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
}

@media (max-width: 968px) {
  .finsight-page .finsight-feature-card,
  .finsight-page .finsight-feature-card--reverse {
    grid-template-columns: 1fr !important;
  }

  .finsight-page .finsight-feature-card--reverse > .finsight-feature-illustration {
    order: -1;
    margin-bottom: var(--fs-spacing-md);
  }

  .finsight-page .solution-card[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }

  .finsight-page .solution-card[style*="grid-template-columns"] > div:first-child {
    order: 2;
  }

  .finsight-page .solution-card[style*="grid-template-columns"] > div:last-child {
    order: 1;
    margin-bottom: var(--fs-spacing-md);
  }
}
