/* Finance / Fintech App — 04 Core features */

@keyframes cw-fin-feat-fade {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

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

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

.cw-finance-features__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
}

.cw-finance-features__title {
  margin: 0;
  max-width: 700px;
  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-features__title-em {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: #c8391a;
}

.cw-finance-features__badge {
  height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  background: #d4f53c;
  display: inline-flex;
  align-items: center;
  font: 600 13.5px 'Inter', sans-serif;
  flex: none;
}

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

.cw-finance-features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  gap: 10px;
}

.cw-finance-features__card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(20, 18, 16, 0.08);
  background: #fff;
  color: #141210;
  text-align: left;
  cursor: pointer;
  font: inherit;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  min-height: 150px;
  width: 100%;
}

.cw-finance-features__card.is-active {
  border-color: #141210;
  background: #141210;
  color: #f3efe7;
}

.cw-finance-features__card:focus-visible {
  outline: 2px solid #141210;
  outline-offset: 2px;
}

.cw-finance-features__card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cw-finance-features__card-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--cw-fin-feat-icon-bg, #d4f53c);
  color: #141210;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.cw-finance-features__card-no {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  opacity: 0.6;
}

.cw-finance-features__card-title {
  font-family: 'Inter Tight', 'Inter', sans-serif;
  font-weight: 800;
  font-size: 16px;
  line-height: 1.25;
}

.cw-finance-features__card-desc {
  font-size: 13.5px;
  line-height: 1.55;
  opacity: 0.8;
}

.cw-finance-features__phone-wrap {
  display: flex;
  justify-content: center;
}

.cw-finance-features__phone {
  width: 260px;
  height: 520px;
  border-radius: 44px;
  background: #0b0a09;
  padding: 10px;
  box-sizing: border-box;
  box-shadow:
    0 0 0 1px rgba(234, 231, 225, 0.12),
    0 50px 100px -40px rgba(0, 0, 0, 0.9);
  flex: none;
}

.cw-finance-features__phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 35px;
  overflow: hidden;
  background: #f6f3ee;
  color: #141210;
  display: flex;
  flex-direction: column;
}

.cw-finance-features__phone-status {
  height: 34px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
  font-size: 11px;
  font-weight: 600;
}

.cw-finance-features__phone-notch {
  width: 70px;
  height: 20px;
  border-radius: 12px;
  background: #0b0a09;
}

.cw-finance-features__phone-body {
  flex: 1;
  padding: 8px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
  animation: cw-fin-feat-fade 0.35s ease-out both;
}

.cw-finance-features__phone-body.is-updating {
  animation: cw-fin-feat-fade 0.35s ease-out both;
}

.cw-finance-features__phone-tag {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 9.5px;
  letter-spacing: 0.14em;
  color: #6b6158;
}

.cw-finance-features__phone-title {
  font-family: 'Inter Tight', 'Inter', sans-serif;
  font-weight: 800;
  font-size: 20px;
  line-height: 1.15;
}

.cw-finance-features__phone-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cw-finance-features__phone-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 18px -14px rgba(20, 18, 16, 0.4);
}

.cw-finance-features__phone-row-icon {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font: 800 11px 'Inter Tight', sans-serif;
  flex: none;
}

.cw-finance-features__phone-row-label {
  flex: 1;
  font-size: 12.5px;
  font-weight: 500;
  min-width: 0;
}

.cw-finance-features__phone-row-val {
  font: 700 12px 'Inter', sans-serif;
  flex: none;
}

.cw-finance-features__phone-cta {
  margin-top: auto;
  height: 42px;
  border-radius: 999px;
  background: #1b3fd8;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font: 600 13px 'Inter', sans-serif;
}

.cw-finance-features [data-cw-finance-features-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-features [data-cw-finance-features-reveal].is-visible {
  opacity: 1;
  transform: none;
}
