/* Fintech Core Integrations (fci-) — scoped to these pages only */
.fci {
  --fci-black: #000000;
  --fci-yellow: #ffd00e;
  --fci-red: #ff4e50;
  --fci-white: #ffffff;
  --fci-n900: #0c0c0c;
  --fci-n850: #141414;
  --fci-n800: #1a1a1a;
  --fci-n750: #202020;
  --fci-n700: #262626;
  --fci-n300: #9a9a9a;
  --fci-n200: #c7c7c7;
  --fci-border: rgba(255, 255, 255, 0.14);
  --fci-border-subtle: rgba(255, 255, 255, 0.08);
  --fci-font: "AvenirNext", "Avenir Next", "AvenirNext Fallback", Arial, sans-serif;
  --fci-radius: 16px;
  --fci-radius-pill: 999px;
  --fci-green: #3ecf8e;
  --fci-amber: #f5a623;
  --fci-blue: #4da3ff;
  --fci-orange: #ff7a2f;

  background: var(--fci-black);
  color: var(--fci-white);
  font-family: var(--fci-font);
  overflow-x: hidden;
}

.fci a:focus-visible,
.fci button:focus-visible {
  outline: 2px solid var(--fci-yellow);
  outline-offset: 3px;
}

.fci-container {
  margin: 0 auto;
  max-width: 1200px;
  padding: 0 20px;
  width: 100%;
}

.fci-section {
  padding: 72px 0;
  background:
    radial-gradient(60% 70% at 12% 100%, rgba(255, 122, 47, 0.12), transparent 70%),
    radial-gradient(50% 60% at 95% 0%, rgba(255, 208, 14, 0.1), transparent 70%),
    var(--fci-black);
}

.fci-section--tint {
  background: var(--fci-n900);
}

.fci-section--hero {
  padding-top: 56px;
  padding-bottom: 40px;
  background:
    radial-gradient(60% 70% at 12% 100%, rgba(255, 122, 47, 0.2), transparent 70%),
    radial-gradient(50% 60% at 95% 0%, rgba(255, 208, 14, 0.16), transparent 70%),
    var(--fci-black);
}

.fci-section--control {
  background:
    radial-gradient(60% 80% at 0% 0%, rgba(255, 208, 14, 0.08), transparent 70%),
    var(--fci-n850);
  border-top: 1px solid rgba(255, 208, 14, 0.45);
  border-bottom: 1px solid var(--fci-border-subtle);
}

.fci-section--cta {
  padding: 56px 0 88px;
}

.fci-section--list {
  padding-top: 0;
  padding-bottom: 72px;
}

.fci-section-head {
  margin-bottom: 32px;
  max-width: 880px;
}

.fci-h2 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin: 0 0 12px;
  text-transform: uppercase;
}

.fci-h3 {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 10px;
  text-transform: uppercase;
}

.fci-lead {
  color: var(--fci-yellow);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 12px;
}

.fci-body {
  color: var(--fci-n300);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  margin: 0;
  text-wrap: pretty;
}

.fci-note {
  color: var(--fci-n300);
  font-size: 14px;
  line-height: 1.5;
  margin: 16px 0 0;
}

.fci-btn {
  align-items: center;
  border: 1px solid transparent;
  border-radius: var(--fci-radius-pill);
  display: inline-flex;
  font-size: 14px;
  font-weight: 700;
  justify-content: center;
  line-height: 1;
  min-height: 48px;
  padding: 0 24px;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.fci-btn--primary {
  background: var(--fci-yellow);
  color: var(--fci-black);
}

.fci-btn--primary:hover {
  background: var(--fci-black);
  border-color: var(--fci-yellow);
  color: var(--fci-yellow);
}

.fci-btn--secondary {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}

.fci-btn--secondary:hover {
  border-color: var(--fci-yellow);
  color: var(--fci-yellow);
}

.fci-text-link {
  color: var(--fci-yellow);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.fci-text-link:hover {
  text-decoration: underline;
}

/* Status pills — color + text label (never color alone) */
.fci-status {
  align-items: center;
  background: var(--fci-n700);
  border: 1px solid var(--fci-border);
  border-radius: var(--fci-radius-pill);
  display: inline-flex;
  gap: 8px;
  padding: 6px 12px;
}

.fci-status__dot {
  border-radius: 50%;
  flex-shrink: 0;
  height: 8px;
  width: 8px;
  background: var(--fci-n300);
}

.fci-status__label {
  color: var(--fci-white);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
}

.fci-status--green .fci-status__dot { background: var(--fci-green); }
.fci-status--amber .fci-status__dot { background: var(--fci-amber); }
.fci-status--blue .fci-status__dot { background: var(--fci-blue); }
.fci-status--orange .fci-status__dot { background: var(--fci-orange); }
.fci-status--red .fci-status__dot { background: var(--fci-red); }
.fci-status--neutral .fci-status__dot { background: var(--fci-n300); }

.fci-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
}

.fci-chip {
  background: var(--fci-n700);
  border: 1px solid var(--fci-border-subtle);
  border-radius: var(--fci-radius-pill);
  color: var(--fci-n200);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 6px 10px;
  text-transform: uppercase;
}

.fci-icon {
  color: var(--fci-yellow);
  display: inline-flex;
  margin-bottom: 12px;
}

/* Breadcrumbs (vendor pages) */
.fci-breadcrumbs {
  margin: 0 0 16px;
  max-width: 100%;
  min-width: 0;
}

.fci-breadcrumbs__list {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

.fci-breadcrumbs__list::before,
.fci-breadcrumbs__item::before {
  content: none;
}

.fci-breadcrumbs__item {
  align-items: center;
  color: var(--fci-n300);
  display: inline-flex;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  max-width: 100%;
  min-width: 0;
}

.fci-breadcrumbs__item:not(:last-child)::after {
  color: var(--fci-n400, #6b6b6b);
  content: "›";
  margin: 0 8px;
  speak: never;
}

.fci-breadcrumbs__link {
  color: var(--fci-n200);
  text-decoration: none;
  white-space: nowrap;
}

.fci-breadcrumbs__link:hover {
  color: var(--fci-yellow);
}

.fci-breadcrumbs__current {
  color: var(--fci-n300);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Hero */
.fci-hero__title,
.fci-index-header .fci-hero__title {
  font-size: 38px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.02;
  margin: 0;
  text-transform: uppercase;
  text-wrap: balance;
}

.fci-hero__sub {
  color: var(--fci-n200);
  font-size: 17px;
  line-height: 1.55;
  margin: 20px 0 0;
  max-width: 640px;
}

.fci-hero .fci-btn {
  margin-top: 28px;
}

.fci-logo-pair {
  align-items: center;
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.fci-logo-pair__fc,
.fci-logo-pair__vendor {
  display: block;
  height: auto;
  max-height: 28px;
  object-fit: contain;
  width: auto;
}

.fci-logo-pair__x {
  color: var(--fci-n300);
}

.fci-hero__stats {
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
}

.fci-hero__stat {
  align-items: baseline;
  color: var(--fci-n300);
  display: flex;
  font-size: 16px;
  gap: 12px;
  line-height: 1.45;
}

.fci-hero__stat-dot {
  background: var(--fci-yellow);
  border-radius: 50%;
  flex-shrink: 0;
  height: 6px;
  transform: translateY(-3px);
  width: 6px;
}

.fci-hero__stat-value {
  color: var(--fci-yellow);
  font-weight: 700;
  margin-right: 6px;
}

.fci-index-header__count {
  color: var(--fci-yellow);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin: 20px 0 0;
  text-transform: uppercase;
}

/* About */
.fci-about {
  align-items: flex-start;
  background: transparent;
  border: 1px solid var(--fci-border-subtle);
  border-radius: var(--fci-radius);
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 24px;
}

.fci-about__logo {
  height: auto;
  max-height: 48px;
  max-width: 140px;
  object-fit: contain;
}

.fci-about__body .fci-btn {
  margin-top: 20px;
}

.fci-about__body .fci-text-link {
  display: inline-block;
  margin-top: 10px;
}

/* Feature cards */
.fci-card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.fci-card-grid--2 > li,
.fci-card-grid--3 > li {
  flex: 1 1 100%;
  min-width: 0;
}

.fci-card-grid--center {
  justify-content: center;
}

.fci-feature-card {
  background: var(--fci-n800);
  border: 1px solid var(--fci-border-subtle);
  border-radius: var(--fci-radius);
  display: flex;
  flex-direction: column;
  padding: 24px 20px;
}

/* How */
.fci-how__steps {
  counter-reset: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Kill global ol li:before numbering (typography.scss) — circles are the only numbers */
.fci-how__step::before {
  content: none;
}

.fci-how__step {
  border-left: 1.5px solid var(--fci-border);
  list-style: none;
  margin-left: 14px;
  padding: 0 0 28px 24px;
  position: relative;
}

.fci-how__step:last-child {
  border-left-color: transparent;
  padding-bottom: 0;
}

.fci-how__num {
  align-items: center;
  background: var(--fci-black);
  border: 1.5px solid var(--fci-yellow);
  border-radius: 50%;
  color: var(--fci-yellow);
  display: inline-flex;
  font-size: 12px;
  font-weight: 700;
  height: 28px;
  justify-content: center;
  left: -15px;
  position: absolute;
  top: 0;
  width: 28px;
}

.fci-how__label {
  display: block;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.fci-how__text {
  color: var(--fci-n300);
  font-size: 15px;
  line-height: 1.5;
  margin: 0;
}

.fci-how__reuse {
  display: none;
}

.fci-how__diagram {
  margin: 40px 0 0;
}

.fci-how__diagram img {
  border: 1px dashed var(--fci-border);
  border-radius: var(--fci-radius);
  display: block;
  height: auto;
  max-width: 100%;
  width: 100%;
}

/* Status table */
.fci-record-status {
  margin-bottom: 48px;
}

.fci-status-table {
  background: var(--fci-n800);
  border: 1px solid var(--fci-border-subtle);
  border-radius: var(--fci-radius);
  overflow: hidden;
}

.fci-status-table__head {
  display: none;
}

.fci-status-table__row {
  border-top: 1px solid var(--fci-border-subtle);
  display: grid;
  gap: 10px;
  padding: 18px 20px;
}

.fci-status-table__row:first-child {
  border-top: none;
}

/* Control */
.fci-control__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.fci-control__item {
  border-top: 1px solid var(--fci-border-subtle);
  display: flex;
  gap: 14px;
  padding: 20px 0;
}

.fci-control__item:first-child {
  border-top: none;
  padding-top: 0;
}

.fci-control__check {
  color: var(--fci-yellow);
  flex-shrink: 0;
  margin-top: 2px;
}

.fci-control__label {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 6px;
}

/* Cases */
.fci-case-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: flex-start;
  list-style: none;
  margin: 0;
  padding: 0;
}

.fci-case-grid--1 {
  justify-content: flex-start;
}

.fci-case-grid--2 {
  justify-content: center;
}

.fci-case-grid--3 {
  justify-content: flex-start;
}

.fci-case-card {
  aspect-ratio: 1 / 1.05;
  background: var(--fci-n800);
  border: 1px solid var(--fci-border-subtle);
  border-radius: var(--fci-radius);
  display: flex;
  flex: 1 1 100%;
  flex-direction: column;
  gap: 10px;
  max-width: 100%;
  min-width: 0;
  padding: 24px 20px;
}

.fci-case-card__logo {
  height: 40px;
  max-width: 120px;
  object-fit: contain;
  object-position: left center;
  width: auto;
}

.fci-case-card__value {
  color: var(--fci-yellow);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.1;
  margin: 8px 0 0;
}

.fci-case-card__metric {
  color: var(--fci-n300);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin: 0;
  text-transform: uppercase;
}

.fci-case-card .fci-text-link {
  margin-top: auto;
}

/* Explore / link cards */
.fci-explore__head {
  align-items: baseline;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}

.fci-explore__all--desktop {
  display: none;
}

.fci-explore__all--mobile {
  display: inline-block;
  margin-top: 20px;
}

.fci-link-card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.fci-link-card-grid > li {
  flex: 1 1 100%;
  min-width: 0;
}

.fci-link-card {
  background: var(--fci-n800);
  border: 1px solid var(--fci-border-subtle);
  border-radius: var(--fci-radius);
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 100%;
  min-height: 140px;
  padding: 20px;
  text-decoration: none;
}

.fci-link-card--static {
  cursor: default;
}

.fci-link-card__logo {
  height: 32px;
  margin-bottom: 8px;
  max-width: 120px;
  object-fit: contain;
  object-position: left center;
}

.fci-link-card__title {
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
}

.fci-link-card__meta {
  color: var(--fci-n300);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.fci-link-card__text {
  color: var(--fci-n300);
  font-size: 14px;
  line-height: 1.45;
}

/* CTA */
.fci-cta {
  background:
    linear-gradient(135deg, rgba(255, 208, 14, 0.1), rgba(255, 78, 80, 0.06)),
    var(--fci-n800);
  border: 1px solid rgba(255, 208, 14, 0.22);
  border-radius: 18px;
  max-width: 880px;
  padding: 32px 24px;
}

.fci-cta__title {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 16px;
  text-transform: uppercase;
}

.fci-cta__highlight {
  color: var(--fci-yellow);
}

.fci-cta .fci-btn {
  margin-top: 24px;
}

.fci-cta__note {
  color: var(--fci-n300);
  font-size: 14px;
  margin: 16px 0 0;
}

/* Index filters + cards */
.fci-filters {
  margin-bottom: 28px;
}

.fci-filters__tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  margin: 0 -20px;
  overflow-x: auto;
  padding: 0 20px 4px;
  scrollbar-width: thin;
}

.fci-ftab {
  background: transparent;
  border: 1px solid var(--fci-border);
  border-radius: var(--fci-radius-pill);
  color: var(--fci-white);
  cursor: pointer;
  display: inline-flex;
  flex-shrink: 0;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  gap: 6px;
  letter-spacing: 0.06em;
  padding: 11px 20px;
  text-transform: uppercase;
  white-space: nowrap;
}

.fci-ftab.is-active {
  background: var(--fci-yellow);
  border-color: var(--fci-yellow);
  color: var(--fci-black);
}

.fci-ftab__count {
  opacity: 0.7;
}

.fci-intgrid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.fci-intgrid__item {
  display: flex;
  flex: 1 1 100%;
  min-width: 0;
}

.fci-intgrid__item.is-hidden {
  display: none;
}

.fci-intcard {
  background: var(--fci-n800);
  border: 1px solid var(--fci-border-subtle);
  border-radius: var(--fci-radius);
  color: inherit;
  display: flex;
  flex: 1;
  flex-direction: column;
  overflow: hidden;
  text-decoration: none;
}

.fci-intcard__thumb {
  align-items: center;
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(70% 90% at 0% 100%, rgba(255, 78, 80, 0.75), transparent 65%),
    radial-gradient(60% 70% at 100% 0%, rgba(255, 208, 14, 0.45), transparent 70%),
    #050505;
  display: flex;
  justify-content: center;
  position: relative;
}

.fci-intcard__logo {
  height: auto;
  max-height: 64px;
  max-width: 140px;
  object-fit: contain;
  width: auto;
}

.fci-intcard__badge {
  left: 16px;
  position: absolute;
  top: 16px;
}

.fci-intcard__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
  padding: 24px 20px;
}

.fci-intcard__category {
  color: var(--fci-yellow);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.fci-intcard__title {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
  text-transform: uppercase;
}

.fci-intcard__summary {
  color: var(--fci-n300);
  font-size: 16px;
  line-height: 1.55;
  margin: 0;
}

.fci-intcard__footer {
  align-items: flex-end;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 12px;
}

.fci-intcard__footer .fci-chips {
  margin: 0;
}

.fci-intcard__arrow {
  color: var(--fci-yellow);
  flex-shrink: 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
}

.fci-empty {
  border-bottom: 1px solid var(--fci-border-subtle);
  border-top: 1px solid var(--fci-border-subtle);
  color: var(--fci-n300);
  font-size: 17px;
  line-height: 1.5;
  padding: 56px 0;
}

.fci-empty[hidden] {
  display: none;
}

@media (min-width: 768px) {
  .fci-container {
    padding: 0 40px;
  }

  .fci-section {
    padding: 88px 0;
  }

  .fci-section--hero {
    padding-top: 120px;
    padding-bottom: 64px;
  }

  .fci-section--list {
    padding-bottom: 112px;
  }

  .fci-h2 {
    font-size: 34px;
  }

  .fci-hero__title,
  .fci-index-header .fci-hero__title {
    font-size: 64px;
  }

  .fci-hero__sub {
    font-size: 20px;
  }

  .fci-about {
    align-items: center;
    flex-direction: row;
    gap: 40px;
    padding: 32px 40px;
  }

  .fci-about__logo {
    max-height: 64px;
    max-width: 180px;
  }

  .fci-about__body {
    border-left: 1px solid var(--fci-border-subtle);
    padding-left: 40px;
  }

  .fci-card-grid--2 > li {
    flex: 0 0 calc((100% - 24px) / 2);
  }

  .fci-card-grid--3 > li {
    flex: 0 0 calc((100% - 48px) / 3);
  }

  .fci-card-grid {
    gap: 24px;
  }

  .fci-how {
    /* 2–6 columns: width tracks step count so 2–3 steps stay compact */
    max-width: min(100%, calc(var(--fci-steps, 6) * 200px));
    margin-left: auto;
    margin-right: auto;
    padding-top: 64px;
    position: relative;
    width: 100%;
  }

  .fci-how__reuse {
    border: 1.5px dashed rgba(255, 208, 14, 0.6);
    border-bottom: none;
    border-radius: 20px 20px 0 0;
    display: block;
    height: 40px;
    left: calc((var(--fci-reuse-from, 2) - 1) / var(--fci-steps, 6) * 100% + 42px);
    position: absolute;
    right: calc(100% / var(--fci-steps, 6) - 42px);
    top: 16px;
  }

  .fci-how__reuse-label {
    background: var(--fci-black);
    color: var(--fci-yellow);
    font-size: 12px;
    font-weight: 700;
    left: 50%;
    letter-spacing: 0.12em;
    padding: 0 12px;
    position: absolute;
    text-transform: uppercase;
    top: -11px;
    transform: translateX(-50%);
    white-space: nowrap;
  }

  .fci-how__steps {
    display: grid;
    gap: 0;
    grid-template-columns: repeat(var(--fci-steps, 6), minmax(0, 1fr));
    position: relative;
  }

  .fci-how__steps::before {
    border-top: 1.5px solid var(--fci-border);
    content: "";
    left: 42px;
    position: absolute;
    right: calc(100% / var(--fci-steps, 6) - 42px);
    top: 14px;
  }

  .fci-how__step {
    border-left: none;
    margin-left: 0;
    padding: 40px 12px 0;
  }

  .fci-how__num {
    left: 12px;
    position: absolute;
    top: 0;
  }

  .fci-status-table__head {
    background: var(--fci-n750);
    color: var(--fci-n300);
    display: grid;
    font-size: 13px;
    font-weight: 700;
    grid-template-columns: 360px minmax(0, 1fr);
    letter-spacing: 0.12em;
    padding: 18px 32px;
    text-transform: uppercase;
  }

  .fci-status-table__row {
    align-items: center;
    grid-template-columns: 360px minmax(0, 1fr);
    padding: 18px 32px;
  }

  .fci-status-table__row:first-child {
    border-top: 1px solid var(--fci-border-subtle);
  }

  .fci-control {
    display: grid;
    gap: 80px;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  }

  .fci-control__head {
    margin-bottom: 0;
  }

  .fci-case-card,
  .fci-case-grid--1 .fci-case-card,
  .fci-case-grid--2 .fci-case-card,
  .fci-case-grid--3 .fci-case-card {
    flex: 0 0 calc((100% - 48px) / 3);
  }

  .fci-link-card-grid > li {
    flex: 0 0 calc((100% - 48px) / 3);
  }

  .fci-explore__all--desktop {
    display: inline;
  }

  .fci-explore__all--mobile {
    display: none;
  }

  .fci-cta {
    padding: 48px 40px;
  }

  .fci-cta__title {
    font-size: 40px;
  }

  .fci-filters__tabs {
    flex-wrap: wrap;
    margin: 0;
    overflow: visible;
    padding: 0;
  }

  .fci-intgrid {
    gap: 24px;
  }

  .fci-intgrid__item {
    flex: 0 0 calc((100% - 48px) / 3);
  }

  .fci-intcard__body {
    padding: 28px;
  }

  .fci-intcard__title {
    font-size: 22px;
  }

  .fci-btn {
    width: auto;
  }
}

@media (min-width: 768px) {
  .fci-hero .fci-btn,
  .fci-cta .fci-btn {
    width: auto;
  }
}

@media (max-width: 767px) {
  .fci-hero .fci-btn,
  .fci-cta .fci-btn {
    width: 100%;
  }
}
