/* PB Ikone (prototip: .ways, .way-ic) */
.pbw-ways {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 18px 14px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.pbw-ways li {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	min-width: 92px;
	text-align: center;
}

/* Natpis ispod kruga u jednom retku ("Otisak prsta" se ne lomi) */
.pbw-ways:not(.pbw-ways--list):not(.pbw-ways--rows) b {
	font-size: .88rem;
	font-weight: 500;
	white-space: nowrap;
}

/* Mobitel: svi krugovi u jednom redu, jednake širine; natpis se smije prelomiti */
@media (max-width: 640px) {
	.pbw-ways:not(.pbw-ways--list):not(.pbw-ways--rows) {
		display: grid;
		grid-auto-columns: minmax(0, 1fr);
		grid-auto-flow: column;
		gap: 6px;
	}

	.pbw-ways:not(.pbw-ways--list):not(.pbw-ways--rows) li {
		min-width: 0;
	}

	.pbw-ways:not(.pbw-ways--list):not(.pbw-ways--rows) b {
		font-size: .78rem;
		white-space: normal;
	}
}

.pbw-ways__ic {
	display: grid;
	place-items: center;
	width: 80px;
	height: 80px;
	border: 1.5px solid var(--accent);
	border-radius: 50%;
	color: var(--accent);
}

.pbw-ways__ic svg {
	width: 38px;
	height: 38px;
}

.pbw-ways__ic svg.pbw-icon--fill {
	fill: currentColor;
}

/* Animacija u petlji (6 s, kao zvjezdice u recenzijama): ikone su prvo blijede, pa jedna po jedna slijeva nadesno
   postaju teal uz lagano povećanje, zadrže se, pa se istim redom vrate. Petlja kreće kad red dođe na ekran (is-lit, pb-icon-row.js).
   :not(#pb-x) nadjačava boje iz kontrola widgeta; bez animacije (reduced motion) ikone ostaju teal. */
/* Boja prije paljenja: svijetla siva iz palete (--text-on-dark-2 #A1A1A6), između obruba i tercijarnog teksta */
.pbw-ways--anim {
	--pbw-way-off: var(--text-on-dark-2);
}

@media (prefers-reduced-motion: no-preference) {
	.pbw-ways.pbw-ways--anim .pbw-ways__ic:not(#pb-x) {
		border-color: var(--border);
		color: var(--pbw-way-off);
	}

	.pbw-ways.pbw-ways--anim .pbw-ways__ic:not(#pb-x) svg {
		fill: var(--pbw-way-off);
	}

	.pbw-ways.pbw-ways--anim b:not(#pb-x) {
		color: var(--pbw-way-off);
	}

	.pbw-ways--anim.is-lit .pbw-ways__ic {
		animation: pbw-way-ic 6s ease-out infinite both;
		animation-delay: calc(var(--i) * 250ms + 200ms);
	}

	.pbw-ways--anim.is-lit .pbw-ways__ic svg {
		animation: pbw-way-svg 6s ease-out infinite both;
		animation-delay: calc(var(--i) * 250ms + 200ms);
	}

	.pbw-ways--anim.is-lit b {
		animation: pbw-way-label 6s ease-out infinite both;
		animation-delay: calc(var(--i) * 250ms + 200ms);
	}
}

@keyframes pbw-way-ic {
	0% { transform: scale(1); border-color: var(--border); color: var(--pbw-way-off); }
	5% { transform: scale(1.12); border-color: var(--accent); color: var(--accent); }
	10% { transform: scale(1); }
	75% { border-color: var(--accent); color: var(--accent); }
	83%, 100% { transform: scale(1); border-color: var(--border); color: var(--pbw-way-off); }
}

@keyframes pbw-way-svg {
	0% { fill: var(--pbw-way-off); }
	5%, 75% { fill: var(--accent); }
	83%, 100% { fill: var(--pbw-way-off); }
}

@keyframes pbw-way-label {
	0% { color: var(--pbw-way-off); }
	5%, 75% { color: var(--accent-hover); }
	83%, 100% { color: var(--pbw-way-off); }
}

/* Popis pogodnosti (prototip: .trust na stranici proizvoda) */
.pbw-ways--list {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px 18px;
	justify-content: stretch;
	padding-top: 16px;
	border-top: 1px solid var(--border);
}

.pbw-ways.pbw-ways--list li {
	flex-direction: row;
	align-items: center;
	gap: 8px;
	width: auto;
	text-align: left;
}

.pbw-ways.pbw-ways--list .pbw-ways__ic {
	width: 18px;
	height: 18px;
	border: 0;
	border-radius: 0;
	flex-shrink: 0;
}

.pbw-ways.pbw-ways--list .pbw-ways__ic svg {
	width: 18px;
	height: 18px;
}

.pbw-ways.pbw-ways--list b {
	color: var(--text-secondary);
	font-size: .88rem;
	font-weight: 400;
}

/* Retci s ikonom: jedan način u retku, tanke linije između (naslovnica, "Što je pametna brava?") */
/* Retci s ikonom + animacija: ikona i tekst se pale zajedno (sivo pa teal), kao krugovi s natpisom */
.pbw-ways.pbw-ways--rows.pbw-ways--anim .pbw-ways__ic {
	transform-origin: 50% 50%;
}

/* Bez crte iznad prvog i ispod zadnjeg retka: tanke linije samo između redaka */
.pbw-ways--rows {
	display: block;
}

.pbw-ways.pbw-ways--rows li:last-child {
	border-bottom: 0;
}

.pbw-ways.pbw-ways--rows li {
	flex-direction: row;
	align-items: center;
	gap: 14px;
	width: auto;
	padding: 13px 0;
	border-bottom: 1px solid var(--border);
	text-align: left;
}

.pbw-ways.pbw-ways--rows .pbw-ways__ic {
	flex-shrink: 0;
	width: 22px;
	height: 22px;
	border: 0;
	border-radius: 0;
	color: var(--text);
}

.pbw-ways.pbw-ways--rows .pbw-ways__ic svg {
	width: 22px;
	height: 22px;
}

.pbw-ways.pbw-ways--rows b {
	color: var(--text);
	font-size: 1.02rem;
	font-weight: 400;
}

.pbw-ways b {
	color: var(--accent-hover);
	font-size: .95rem;
	font-weight: 600;
	line-height: 1.25;
}
