/* Finance / Fintech App — 06 Why fintech apps matter */

.cw-finance-why-matters {
  background: #f3efe7;
  color: #141210;
  font-family: 'Inter', system-ui, sans-serif;
  width: 100%;
  box-sizing: border-box;
}

.cw-finance-why-matters__inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(72px, 9vw, 120px) clamp(20px, 4vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.cw-finance-why-matters__head {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 32px;
  align-items: end;
}

.cw-finance-why-matters__title {
  margin: 0;
  font-family: 'Inter Tight', 'Inter', sans-serif;
  font-weight: 800;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1;
  letter-spacing: -0.035em;
}

.cw-finance-why-matters__title-em {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: #c8391a;
}

.cw-finance-why-matters__intro {
  margin: 0;
  font-size: 16.5px;
  line-height: 1.7;
  color: #3a332d;
}

.cw-finance-why-matters__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 12px;
}

.cw-finance-why-matters__card {
  position: relative;
  background: #fff;
  border-radius: 24px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 300px;
  box-sizing: border-box;
  overflow: hidden;
  transition: transform 0.35s ease, background 0.35s ease, color 0.35s ease;
}

.cw-finance-why-matters__card:hover,
.cw-finance-why-matters__card:focus-within {
  transform: translateY(-8px);
  background: #141210;
  color: #f3efe7;
}

.cw-finance-why-matters__card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cw-finance-why-matters__card-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: var(--cw-fin-matter-icon-bg, #d4f53c);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.cw-finance-why-matters__card-no {
  font-family: 'Inter Tight', 'Inter', sans-serif;
  font-weight: 800;
  font-size: 44px;
  line-height: 0.8;
  color: rgba(224, 67, 28, 0.9);
}

.cw-finance-why-matters__card-title {
  margin: auto 0 0;
  font-family: 'Inter Tight', 'Inter', sans-serif;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.015em;
}

.cw-finance-why-matters__card-text {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.6;
  opacity: 0.82;
}

.cw-finance-why-matters [data-cw-finance-why-matters-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.cw-finance-why-matters [data-cw-finance-why-matters-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .cw-finance-why-matters__card {
    transition: background 0.35s ease, color 0.35s ease;
  }

  .cw-finance-why-matters__card:hover,
  .cw-finance-why-matters__card:focus-within {
    transform: none;
  }
}
