/* =========================================================
   HOME — Features Bento (Section 5)
   ========================================================= */
.slk-home-features.slk-sec { background: var(--slk-white); }

.slk-home-features .slk-home-features__head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: clamp(32px, 4vw, 52px);
}
.slk-home-features .slk-title { margin-bottom: 0; max-width: 820px; }

.slk-home-features .slk-home-features__grid {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: 20px;
}

/* ---------- Card ---------- */
.slk-home-features .slk-hf-card {
	display: flex;
	flex-direction: column;
	padding: 30px;
	border-radius: 28px;
	background: var(--slk-white);
	border: 1px solid rgba(30, 58, 138, .1);
	color: var(--slk-primary);
	min-width: 0;
}
.slk-home-features .slk-hf-card:hover { box-shadow: 0 24px 50px rgba(15, 23, 42, .1); }
.slk-home-features .is-w7 { grid-column: span 7; }
.slk-home-features .is-w5 { grid-column: span 5; }
.slk-home-features .slk-hf-card.is-soft { background: #f8fafc; }
.slk-home-features .slk-hf-card.is-dark { background: var(--slk-primary); border-color: var(--slk-primary); color: var(--slk-white); }

.slk-home-features .slk-hf-ico {
	width: 46px;
	height: 46px;
	border-radius: 12px;
	background: var(--slk-primary);
	color: var(--slk-accent);
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 22px;
	transition: transform .4s var(--slk-ease);
}
.slk-home-features .slk-hf-card:hover .slk-hf-ico { transform: rotate(-8deg) scale(1.06); }
.slk-home-features .slk-hf-ico .slk-icon { width: 20px; height: 20px; }
.slk-home-features .is-dark .slk-hf-ico { background: rgba(34, 197, 94, .12); border: 1px solid rgba(34, 197, 94, .3); }

.slk-home-features .slk-hf-card h3 { font-family: var(--slk-font); font-size: 22px; font-weight: 600; letter-spacing: -.01em; margin-bottom: 8px; }
.slk-home-features .slk-hf-card > p { font-size: 15.5px; line-height: 1.55; color: #475569; max-width: 460px; margin-bottom: 24px; }
.slk-home-features .is-dark > p { color: rgba(255, 255, 255, .78); }

/* Andar ka safed box */
.slk-home-features .slk-hf-box,
.slk-home-features .slk-hf-invoice {
	margin-top: auto;
	background: var(--slk-white);
	border: 1px solid rgba(30, 58, 138, .1);
	border-radius: 16px;
	padding: 16px;
	font-size: 13.5px;
}

/* Scroll par andar ki lines ek ek kar ke aayein */
.slk-home-features [style*="--i"] { transition: opacity .5s var(--slk-ease), transform .5s var(--slk-ease); transition-delay: calc(.35s + var(--i) * .12s); }
html.slk-js:not(.slk-ready) .slk-home-features .slk-hf-card:not(.is-in) [style*="--i"] { opacity: 0; transform: translateY(10px); }

/* 1. Invoice */
.slk-home-features .slk-hf-invoice__head { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid rgba(30, 58, 138, .08); }
.slk-home-features .slk-hf-invoice__head strong { display: block; font-size: 14px; font-weight: 600; }
.slk-home-features .slk-hf-invoice__head small { font-size: 12px; color: var(--slk-muted); }
.slk-home-features .slk-hf-ar { font-size: 13px; color: var(--slk-primary); }
.slk-home-features .slk-hf-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(30, 58, 138, .08); color: #1e293b; }
.slk-home-features .slk-hf-row.is-muted { color: var(--slk-muted); }
.slk-home-features .slk-hf-tag { font-style: normal; font-family: var(--slk-font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: .06em; background: #f1f5f9; color: #64748b; padding: 3px 8px; border-radius: 99px; margin-left: 6px; }
.slk-home-features .slk-hf-total { display: flex; justify-content: space-between; margin-top: 10px; padding: 12px 14px; border-radius: 10px; background: var(--slk-primary); color: var(--slk-white); font-weight: 600; }
.slk-home-features .slk-hf-total span:last-child { font-size: 17px; font-weight: 700; }
.slk-home-features .slk-hf-total small { color: var(--slk-accent); font-size: 12px; }

/* 2. Inbox */
.slk-home-features .slk-hf-inbox { margin-top: auto; background: var(--slk-primary-2); border-radius: 16px; padding: 8px; display: grid; gap: 4px; }
.slk-home-features .slk-hf-chat { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; }
.slk-home-features .slk-hf-chat.is-active { background: rgba(255, 255, 255, .07); }
.slk-home-features .slk-hf-chat > div { flex: 1; min-width: 0; }
.slk-home-features .slk-hf-chat strong { display: block; font-size: 13.5px; font-weight: 600; }
.slk-home-features .slk-hf-chat small { display: block; font-size: 12px; color: rgba(255, 255, 255, .65); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slk-home-features .slk-hf-av { flex: 0 0 32px; height: 32px; border-radius: 50%; background: rgba(255, 255, 255, .1); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; }
.slk-home-features .slk-hf-av.is-lime { background: var(--slk-accent); color: var(--slk-heading); }
.slk-home-features .slk-hf-count { width: 22px; height: 22px; border-radius: 50%; background: var(--slk-accent); color: var(--slk-heading); font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; animation: slk-pulse 2s infinite; }
.slk-home-features .slk-hf-time { font-size: 11px; color: rgba(255, 255, 255, .5); }

/* 3. Expiry */
.slk-home-features .slk-hf-exp { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 7px 0; color: #475569; }
.slk-home-features .slk-hf-exp b { color: var(--slk-primary); font-weight: 500; }
.slk-home-features .slk-hf-days { font-style: normal; font-family: var(--slk-font-mono); font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; padding: 4px 10px; border-radius: 99px; background: #f1f5f9; color: #64748b; white-space: nowrap; }
.slk-home-features .slk-hf-days.is-dark { background: var(--slk-primary); color: var(--slk-accent); }
.slk-home-features .slk-hf-days.is-lime { background: var(--slk-accent-soft); color: var(--slk-primary); }
.slk-home-features .slk-hf-next { font-size: 10.5px; color: var(--slk-muted); border-top: 1px solid rgba(30, 58, 138, .08); padding-top: 10px; margin-top: 6px; }

/* 4. Finance */
.slk-home-features .slk-hf-finance { display: flex; align-items: flex-end; gap: 20px; }
.slk-home-features .slk-hf-bars { flex: 1; display: flex; align-items: flex-end; gap: 8px; height: 120px; }
.slk-home-features .slk-hf-bars span {
	flex: 1;
	height: var(--h);
	border-radius: 4px 4px 0 0;
	background: #bbf7d0;
	transform-origin: bottom;
}
.slk-home-features .slk-hf-bars span.is-hi { background: var(--slk-accent-2); }
html.slk-js:not(.slk-ready) .slk-home-features .slk-hf-card:not(.is-in) .slk-hf-bars span { opacity: 1; transform: scaleY(0); }
.slk-home-features .slk-hf-cash { display: grid; gap: 2px; min-width: 130px; }
.slk-home-features .slk-hf-cash .slk-mono { font-size: 10px; color: var(--slk-muted); }
.slk-home-features .slk-hf-cash b { font-size: 21px; font-weight: 700; margin-bottom: 8px; }
.slk-home-features .slk-hf-cash strong { font-size: 16px; font-weight: 600; }

/* 5. Tracking */
.slk-home-features .slk-hf-track__head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; }
.slk-home-features .slk-hf-stages { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.slk-home-features .slk-hf-stages i { display: block; height: 5px; border-radius: 9px; background: #e2e8f0; overflow: hidden; position: relative; margin-bottom: 8px; }
.slk-home-features .slk-hf-stages i::after { content: ""; position: absolute; inset: 0; width: 0; border-radius: inherit; transition: width .8s var(--slk-ease); transition-delay: calc(.5s + var(--i) * .35s); }
.slk-home-features .slk-hf-stages .is-done i::after { background: var(--slk-primary); }
.slk-home-features .slk-hf-stages .is-now i::after { background: var(--slk-accent-2); box-shadow: 0 0 10px rgba(22, 163, 74, .6); }
.slk-home-features .is-in .slk-hf-stages .is-done i::after,
.slk-home-features .is-in .slk-hf-stages .is-now i::after { width: 100%; }
html:not(.slk-js) .slk-home-features .slk-hf-stages :is(.is-done, .is-now) i::after,
html.slk-ready .slk-home-features .slk-hf-stages :is(.is-done, .is-now) i::after { width: 100%; }
.slk-home-features .slk-hf-stages span { font-size: 12.5px; color: var(--slk-primary); }
.slk-home-features .slk-hf-stages div:not(.is-done):not(.is-now) span { color: var(--slk-muted); }

/* 6. Roles */
.slk-home-features .slk-hf-roles { margin-top: auto; background: var(--slk-primary-2); border-radius: 16px; padding: 10px 16px; }
.slk-home-features .slk-hf-roles div { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; font-size: 14px; }
.slk-home-features .slk-hf-role { font-style: normal; font-family: var(--slk-font-mono); font-size: 10.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 99px; background: rgba(255, 255, 255, .1); color: var(--slk-white); }
.slk-home-features .slk-hf-role.is-lime { background: var(--slk-accent); color: var(--slk-heading); }
.slk-home-features .slk-hf-role.is-line { background: rgba(34, 197, 94, .1); color: var(--slk-accent); border: 1px solid rgba(34, 197, 94, .3); }

/* ---------- Laptop ---------- */
@media (max-width: 1366px) {
	.slk-home-features .slk-home-features__grid { gap: 16px; }
	.slk-home-features .slk-hf-card { padding: 24px; border-radius: 24px; }
	.slk-home-features .slk-hf-ico { width: 42px; height: 42px; margin-bottom: 18px; }
	.slk-home-features .slk-hf-card h3 { font-size: 20px; }
	.slk-home-features .slk-hf-card > p { font-size: 14.5px; margin-bottom: 20px; }
	.slk-home-features .slk-hf-box,
	.slk-home-features .slk-hf-invoice { padding: 14px; font-size: 13px; }
	.slk-home-features .slk-hf-row { padding: 8px 0; }
	.slk-home-features .slk-hf-bars { height: 100px; }
}

/* ---------- Tablet / Mobile ---------- */
@media (max-width: 1024px) {
	.slk-home-features .is-w7,
	.slk-home-features .is-w5 { grid-column: span 6; }
}
@media (max-width: 780px) {
	.slk-home-features .slk-home-features__head { flex-direction: column; align-items: flex-start; }
	.slk-home-features .is-w7,
	.slk-home-features .is-w5 { grid-column: 1 / -1; }
	.slk-home-features .slk-hf-card { padding: 22px; border-radius: 22px; }
}
@media (max-width: 480px) {
	.slk-home-features .slk-hf-finance { flex-direction: column; align-items: stretch; }
	.slk-home-features .slk-hf-stages span { font-size: 11px; }
}

/* ---------- Bari desktop screen (1600px+) ---------- */
@media (min-width: 1600px) {
	.slk-home-features .slk-home-features__grid { gap: 24px; }
	.slk-home-features .slk-hf-card { padding: 36px; border-radius: 32px; }
	.slk-home-features .slk-hf-ico { width: 52px; height: 52px; border-radius: 14px; }
	.slk-home-features .slk-hf-ico .slk-icon { width: 23px; height: 23px; }
	.slk-home-features .slk-hf-card h3 { font-size: 25px; }
	.slk-home-features .slk-hf-card > p { font-size: 17px; max-width: 540px; }
	.slk-home-features .slk-hf-box,
	.slk-home-features .slk-hf-invoice { padding: 20px; font-size: 15px; }
	.slk-home-features .slk-hf-row { padding: 12px 0; }
	.slk-home-features .slk-hf-chat strong { font-size: 15px; }
	.slk-home-features .slk-hf-chat small { font-size: 13.5px; }
	.slk-home-features .slk-hf-bars { height: 140px; }
	.slk-home-features .slk-hf-cash b { font-size: 26px; }
	.slk-home-features .slk-hf-roles div { font-size: 15.5px; padding: 10px 0; }
	.slk-home-features .slk-hf-stages span { font-size: 14px; }
}
